Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> I think I found the C++ code for playing music https://media.discordapp.net/attachments/371759389889003532/852561265595252736/message.cpp
Bung
@bung87
formatting nim code ? nimpretty
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Ricky Spanish> not nim code is the issue, really i want something i can use to define my own rules for formatting text easilly
Bung
@bung87
strutils or strformat has a proc that you can define custom open char and close char
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Ricky Spanish> hm ok thanks ill take a look and see
From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> In reply to @Ricky Spanish "not nim code is": if you want to try I have reimplementation of google/rfmt code layout algorithm https://haxscramper.github.io/hmisc/src/hmisc/other/blockfmt.html
<FromDiscord> <Ricky Spanish> yes thats exactly the kind of thing im looking for
<FromDiscord> <haxscramper> But it is proof-of-concept at best, so not a lot of examples beyond tests.
<FromDiscord> <Ricky Spanish> worth a try, for now iv got a fairly limited usecase for it anyway so worth experimenting, thanks
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Goel> sent a code paste, see https://play.nim-lang.org/#ix=3pug
<FromDiscord> <haxscramper> I think you can unpack (v, n, a, b) = (0,0,0,0)
<FromDiscord> <haxscramper> But there is no python(?)-like assign for multiple values
<FromDiscord> <haxscramper> !eval var a, b, c: int; (a, b, c) = (1, 2, 3); echo a,b,c
<NimBot> 123
<FromDiscord> <Bung> !eval var a,b,c = 0
<NimBot> <no output>
<FromDiscord> <Bung> !eval var a,b,c = 1; echo a,b,c
<FromDiscord> <haxscramper> !eval var a, b, c = 112; echo a, " ", b, " ", c
<NimBot> 111
<NimBot> 112 112 112
<FromDiscord> <Bung> !eval var a,b,c:int; a,b,c=1; echo a,b,c
<NimBot> Compile failed: /usercode/in.nim(1, 17) Error: invalid indentation
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Goel> sent a code paste, see https://play.nim-lang.org/#ix=3puh
<FromDiscord> <Bung> this wont work
<FromDiscord> <Bung> sent a code paste, see https://play.nim-lang.org/#ix=3pul
<FromDiscord> <haxscramper> In reply to @Goel "Ok yes packing/unpacking was": They can't be assigned because the syntax does not support this
<FromDiscord> <haxscramper> This is simply not implemented this way
From IRC (bridge bot)
@FromIRC
<mst> huh
<mst> not upgraded to libera yet
From IRC (bridge bot)
@FromIRC
<ldlework> mst: please don't bring that in here
From IRC (bridge bot)
@FromIRC
<mst> ldlework: "bring htat in here" what
From IRC (bridge bot)
@FromIRC
<ldlework> "huh, not upgraded to libera yet" is pretty transparently loaded, and the channel has gotten on just fine until now
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> do you know how can I play a buffer with SDL2 please?
From IRC (bridge bot)
@FromIRC
<mst> ldlework: it's -opinionated- but not reloaded
<mst> ldlework: I presume you've warned all your users that their passwords are potentially compromised now?
<Prestige> Flandre - I think there are examples online, but I haven't used SDL2 myself
<ldlework> mst: do you have a question about nim?
<mst> ldlework: I'm working with the new sysadmin team to make sure that can't happen again but it's a legitimate concern
<mst> I might an idle comment and you addressed -me-
<mst> I wasn't going to mention it further
<mst> honestly, I'm mostly here because I'm impressed that ORC is a production version of the Bacon recylcer algorithm
<ldlework> > question about nim
<ldlework> I guess not.
<ldlework> cool, carry on then
<mst> and I haven't asked anything specifically yet because I'm still RTFMing about a bunch of stuff
From IRC (bridge bot)
@FromIRC
<mst> one thing I am curious about - is there a flag for ORC for this already or could such a thing be added so that it would emit warnings any time it cleaned up a cycle?