<FromGitter>
<perfecto25> thanks, im trying to understand how to to bind to local interface, for example a Solarflare iface that can recieve multi cast market data, I already have this working with Python, but trying to do the same in crystal ⏎ ⏎ this is the python version of working MC data listener ⏎ ⏎ https://github.com/perfecto25/muffin/blob/master/muffin/mcast.py [https://gitter.
<yxhuvud>
if nothing else you could set it up using libc calls and then create a Socket from the fd. But some parts (or all) of that can probably be done from within crystal too. I just wonder if you are the first doing multicast in crystal, so if you are unlucky some constants or bindings may be missing etc.
Welog- has quit [Remote host closed the connection]
Welog has joined #crystal-lang
<FromGitter>
<yb66> Quick question (I hope), any idea how I can get only the base class name in the inherited macro? `{{@type.name.id}}` is giving the full `A::B::C::D`… when I just want `D`.
<FromGitter>
<yb66> Thanks @Blacksmoke16, I had already tried that but I keep getting an error because of double quotes so I wondered if there was something obvious I was missing. This is my actual code: ⏎ ⏎ ``` ^``` ⏎ ⏎ Called macro defined in src/ekiden/data_store/model.cr:64:7 ... [https://gitter.im/crystal-lang/crystal?at=610feeb6933ee46b7547e16c]
dch has left #crystal-lang [#crystal-lang]
<FromGitter>
<Blacksmoke16> Add in another .id at the end
<FromGitter>
<yb66> That worked! Thanks, I'm new to macros and really appreciate the help.
<FromGitter>
<Blacksmoke16> np
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #crystal-lang
<f1refly>
is there a condition in which Dir#each_child will iterate less child elements than Dir#children.size gives?
<f1refly>
I have a Dir src. that dir has 5486 childen according to Dir#children.size. When I create an #each_child loop over the same dir src and STDERR.puts "mark" as the first instruction, then count the lines that are produced to stderr it gives me 547 every time
<f1refly>
is there a limit on how many children a dir that is iteratad with #each_child can have?
<f1refly>
I'm on arch linux (btw) with kernel 5.13.8 and btrfs as the host filesystem should that matter
<f1refly>
ls -l | wc -l returns 5486 as well for the directory src
notzmv has quit [Ping timeout: 258 seconds]
<f1refly>
I'm not doing anything funky with fibers and i'm calling STDOUT.flush and STDERR.flush before the program ends, so that cant be it
<f1refly>
oh, when i use src.children.each it iterates over the same 547