ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <Blacksmoke16> https://github.com/crystal-lang/crystal/issues/3825 this helpful at all?
<FromGitter> <Blacksmoke16> @perfecto25
<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.
<FromGitter> ... im/crystal-lang/crystal?at=610f2e109484630efa27e3cc]
ua__ has quit [Ping timeout: 276 seconds]
ua__ has joined #crystal-lang
ur5us__ has joined #crystal-lang
ur5us__ has quit [Ping timeout: 240 seconds]
ua__ has quit [Ping timeout: 258 seconds]
ur5us__ has joined #crystal-lang
cfebs has joined #crystal-lang
ur5us__ has quit [Ping timeout: 256 seconds]
debayer has joined #crystal-lang
ua_ has joined #crystal-lang
ur5us__ has joined #crystal-lang
r0bby has quit [Ping timeout: 256 seconds]
r0bby has joined #crystal-lang
kevinsjoberg has quit [Ping timeout: 272 seconds]
jrayhawk has quit [Ping timeout: 256 seconds]
dostoyevsky2 has quit [Ping timeout: 256 seconds]
cfebs has quit [Ping timeout: 252 seconds]
ur5us__ has quit [Ping timeout: 272 seconds]
kevinsjoberg has joined #crystal-lang
dostoyevsky2 has joined #crystal-lang
dostoyevsky2 has quit [Client Quit]
Welog has quit [Ping timeout: 245 seconds]
jrayhawk has joined #crystal-lang
dostoyevsky2 has joined #crystal-lang
cfebs has joined #crystal-lang
Welog has joined #crystal-lang
dostoyevsky2 has quit [Ping timeout: 252 seconds]
dostoyevsky2 has joined #crystal-lang
Welog- has joined #crystal-lang
Welog has quit [Ping timeout: 256 seconds]
mookie has quit [Ping timeout: 245 seconds]
mookie has joined #crystal-lang
<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> <Blacksmoke16> `.split("::").last`
debayer has quit [Quit: Textual IRC Client: www.textualapp.com]
elf_fortrez has joined #crystal-lang
elf_fortrez has quit [Ping timeout: 246 seconds]
<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
<f1refly> hmm
<straight-shoota> The implementation of Dir#children uses Dir#each_child https://github.com/crystal-lang/crystal/blob/6d9a1d583/src/dir.cr#L105
<straight-shoota> There should really be no way they could show different results...
notzmv has joined #crystal-lang
ur5us__ has joined #crystal-lang
notzmv has quit [Ping timeout: 258 seconds]
ua_ has quit [Excess Flood]
ua_ has joined #crystal-lang
ua_ has quit [Ping timeout: 245 seconds]
ua_ has joined #crystal-lang
notzmv has joined #crystal-lang