Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Apr 04 2021 12:26
    @dom96 banned @acroobat
  • Mar 03 2017 15:52
    @dom96 banned @Octopoda7
  • Feb 12 2017 23:57
    @dom96 banned @zzz125
  • Dec 23 2016 19:43
    @dom96 banned @Izrab
From IRC (bridge bot)
<FromDiscord> <ElegantBeef> I dont like the premise of adding stuff for people, feels a bit disingenuous
<FromDiscord> <ElegantBeef> We already have 4 posts including my Sumtypes that some people dont like the named of
<FromDiscord> <Rika> In reply to @ElegantBeef "*I dont like the": I was joking, I’ll look into the issue
<FromDiscord> <Rika> Making the issue
<FromDiscord> <ElegantBeef> Yea i was just saying why i didnt
From IRC (bridge bot)
<PMunch> @Rainbow Asteroids, now set up a server that serves a web-page that does the same thing ;⁠)
<PMunch> With an auto-refresh so every second it updates
<PMunch> "oops, it's quarter to mauve, gotta run"
<FromDiscord> <Rika> Why a refreshing webpage? You can write JS with Nim so why not a dynamic?
<PMunch> Fair enough
<PMunch> Wouldn't even require a server then, just a host
<FromDiscord> <Rika> Kind of wasteful to refresh everts second
<FromDiscord> <Rika> Every
<FromDiscord> <Rainbow Asteroids> write the autorefresh in nim, genius
<FromDiscord> <ElegantBeef> Kinda have to laugh that you used arc for that clock 😄
<FromDiscord> <Rainbow Asteroids> lol
From IRC (bridge bot)
<FromDiscord> <ElegantBeef> Gotta hit that 144fps otherwise it's an awful clock
<FromDiscord> <Rainbow Asteroids> the SDL bindings don't even have automatic memory management. first time I used SDL I had a memory leak
<FromDiscord> <Rika> Nice
<FromDiscord> <Rainbow Asteroids> my tictactoe game needs 6 GB of memory, don't question it
<FromDiscord> <ElegantBeef> Ah it also uses 300% of my cpu
<FromDiscord> <ElegantBeef> How many bitcoins do you get per second?
<FromDiscord> <Rainbow Asteroids> not enough. shoulda made it do monero instead
From IRC (bridge bot)
<FromDiscord> <ElegantBeef> Oh is tweens a port of easings.net?
<FromDiscord> <Rainbow Asteroids> no, some easing functions i wrote
<FromDiscord> <Rainbow Asteroids> i mean i copied them off of some website, but close enough
<FromDiscord> <ElegantBeef> Ah, was going to port easting.net when i get some time and patience 😄
<PMunch> @ElegantBeef, I've already ported easings.net: https://github.com/PMunch/SDLGamelib/blob/master/gamelib/tween.nim
<FromDiscord> <ElegantBeef> Ah
<PMunch> Well, I wrote a tweening implementation that can do arbitrary curves and added the curves from easings.net as options for pre-defined curves :⁠)
From IRC (bridge bot)
<FromDiscord> <System64 ~ Flandre Scarlet> Do you know how can I convert that to nim please? https://media.discordapp.net/attachments/371759389889003532/852473146694041600/unknown.png
From IRC (bridge bot)
<PMunch> @System64, did you try my nodecl suggestion?
From IRC (bridge bot)
<FromDiscord> <System64 ~ Flandre Scarlet> yeah
<FromDiscord> <System64 ~ Flandre Scarlet> no music
<FromDiscord> <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=3prn
<FromDiscord> <System64 ~ Flandre Scarlet> (Doesn't compile on the C side)
From IRC (bridge bot)
<FromDiscord> <haxscramper> Show the error too
From IRC (bridge bot)
<FromDiscord> <System64 ~ Flandre Scarlet> In reply to @haxscramper "Show the error too": https://media.discordapp.net/attachments/371759389889003532/852492793318080512/unknown.png
<FromDiscord> <haxscramper> https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-nodecl-pragma↵`> It tells Nim that it should not generate a declaration for the symbol in the C code.`
<FromDiscord> <haxscramper> You need to have a header as well for the declaration I think
<PMunch> Wait, so it compiles or it doesn't compile?
<PMunch> Since you said you got no music
<FromDiscord> <System64 ~ Flandre Scarlet> the .h thing?
<FromDiscord> <System64 ~ Flandre Scarlet> yeah but there I changed the code to create an emu, no music + doesn't compile
<PMunch> Do you have a minimal example in C and its equivalent in Nim where the C version plays sound and the Nim version doesn't?
From IRC (bridge bot)
<PMunch> If so I can try to run them and figure out what goes wrong
<PMunch> Ah never mind, this is a Windows thing?
From IRC (bridge bot)
<FromDiscord> <haxscramper> I checked their example and it also runs fine on linux, but I got no sound as well
<FromDiscord> <System64 ~ Flandre Scarlet> In reply to @haxscramper "I checked their example": With my binding or the original C code too?