Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 03 2017 15:52
    @dom96 banned @Octopoda7
  • Feb 12 2017 23:57
    @dom96 banned @zzz125
  • Dec 23 2016 19:43
    @dom96 banned @Izrab
Mamy Ratsimbazafy
@mratsim
in python they are fast because they are not boxed compared to integers :P
Mateusz Czapliński
@akavel
Hi! Is there a way to render Nim code from AST? In other words, to convert Nim AST "back" to Nim code?
From IRC (bridge bot)
@FromIRC
<disruptek> somenimnode.repr
Mateusz Czapliński
@akavel
But this will dump the tree-like representation, no?
From IRC (bridge bot)
@FromIRC
<disruptek> nah.
<disruptek> you're thinking of treeRepr.
Mateusz Czapliński
@akavel
ahhh, ok, awesome, I'll try it now...
woohooo, yeah, thanks! :D :D <3 <3 <3
cool :D
From IRC (bridge bot)
@FromIRC
<disruptek> :⁠-)
<oz> Hey, it looks like the Discord chat is out of sync with IRC and Gitter.
Zachary Carter
@zacharycarter
so is Godot nim dead?
From IRC (bridge bot)
@FromIRC
<Calinou> looks like it, maybe endragor stopped working on their project
<Araq> it's not dead, but somebody needs to fork it so that PRs can be applied
Zachary Carter
@zacharycarter
ah
From IRC (bridge bot)
@FromIRC
<Araq> we can add it to important_packages and ensure Nim doesn't break it
Zachary Carter
@zacharycarter
meh
I was just curious
Mamy Ratsimbazafy
@mratsim
@akavel I use toStrLit
From IRC (bridge bot)
@FromIRC
<Zevv> pff I hate this. I have this little macro helper proc that's clearly full of duplicated code, but still I can't get it any neater then this: http://ix.io/1UQH
<Zevv> does anyone see the obvious thing I'm missing?
<Zevv> it's not at all important, but it's just bugging me
Mamy Ratsimbazafy
@mratsim
foldIt?
From IRC (bridge bot)
@FromIRC
<Zevv> hmmm lemmesee
Brent Pedersen
@brentp

what's wrong with this:

type B* = distinct seq[uint64]

proc `[]`*(x:B, i:SomeOrdinal): uint64 {.borrow.}

?

gives: Error: no symbol to borrow from found
proc len*(x:B): int {.borrow.} works as expected
From IRC (bridge bot)
@FromIRC
<Zevv> funny, you'd expect it to borrow from system.nim:1061
Varriount
@Varriount
Zevv: I guess n.kind == nnkInfix and n[0].eqIdent("|") could be turned into a proc/template?
But really, it's fairly good looking, for macro code
From IRC (bridge bot)
@FromIRC
<Zevv> "for macro code" :⁠)
<Zevv> different standards there of course, haha
Varriount
@Varriount
And macro code usually looks like someone put a programming dictionary through a meat grinder.
Mamy Ratsimbazafy
@mratsim
@brentp borrow is broken with generics
Brent Pedersen
@brentp
yeah. seems so.
Mamy Ratsimbazafy
@mratsim
macro code is like dom manipulation at the beginning of JS
Varriount
@Varriount
Zevv: Case in point: The Nim compiler
Mamy Ratsimbazafy
@mratsim
we avoid distinct and ranges in our codebase at this point
Varriount
@Varriount
Or really any programming language compiler
From IRC (bridge bot)
@FromIRC
<Araq> distinct and ranges are stable, shrug
<Araq> .borrow is a bit weird but it was a bad idea to begin with
From IRC (bridge bot)
@FromIRC
<Cadey> i'm getting "Error: unhandled exception: passNimFlags is not accessible [FieldError]" in https://github.com/Xe/within-terraform/tree/master/dyson with docker build -t xena/dyson:0.1.0 .
<Cadey> it gets that after failing to build the tempfile package
<shashlick> Dang keep getting disconnected
From IRC (bridge bot)
@FromIRC
<Araq> Cadey: I dunno, but your exec "rm -rf " & folderName make me super nervous
<Cadey> rmDir wasn't working the way i expected
From IRC (bridge bot)
@FromIRC
<Araq> it removes a directory plus its contents
<Araq> just like 'rm -rf'