ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
HumanG33k has joined #crystal-lang
adam12 has quit [Quit: Ping timeout (120 seconds)]
adam12 has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
sagax has joined #crystal-lang
riza has quit [*.net *.split]
DeBot has quit [*.net *.split]
xybre has quit [*.net *.split]
DeBot has joined #crystal-lang
riza has joined #crystal-lang
xybre has joined #crystal-lang
fifr has quit [*.net *.split]
mattt2 has quit [*.net *.split]
mattt2 has joined #crystal-lang
fifr has joined #crystal-lang
sagax has quit [Read error: Connection reset by peer]
sagax has joined #crystal-lang
taupiqueur has joined #crystal-lang
hightower2 has joined #crystal-lang
taupiqueur has quit [Ping timeout: 268 seconds]
notzmv has quit [Ping timeout: 245 seconds]
raz has quit [Ping timeout: 256 seconds]
raz has joined #crystal-lang
raz has quit [Changing host]
raz has joined #crystal-lang
taupiqueur has joined #crystal-lang
<FromGitter> <> JSON.parse and symbols, meh :/. Just a prototype for now, right?
raz has quit [Quit: *fump*]
raz has joined #crystal-lang
raz has quit [Changing host]
raz has joined #crystal-lang
<SamantazFox> Hello! How can I measure/profile crystal programs
<FromGitter> <seanchristophergregory_gitlab> it's a proof of concept, so yeah a prototype. Whatcha mean by JSON.parse and symbols?
<SamantazFox> (I need both at runtime and during compilation, to get why it takes 16 minutes on `Codegen (bc+obj)`)
<SamantazFox> (`--verbose` doesn't print anything more that `--stats --progress` ecept for the final link)er command
notzmv has joined #crystal-lang
hightower2 has quit [Ping timeout: 265 seconds]
taupiqueur has quit [Ping timeout: 250 seconds]
HumanG33k has quit [Quit: WeeChat 3.0]
HumanG33k has joined #crystal-lang
DeBot has quit [Quit: Crystal IRC]
straight-shoota has quit [Quit: ZNC 1.8.2 -]
jhass|off has quit [Quit: Bye]
DeBot has joined #crystal-lang
jhass has joined #crystal-lang
taupiqueur has joined #crystal-lang
straight-shoota has joined #crystal-lang
hightower2 has joined #crystal-lang
<FromGitter> <> what's the best way to check if a hostname resolves to an IP in Crystal?
<FromGitter> <paulocoghi> One possibility is this shard:
<FromGitter> <> Better avoid using them if possible, generally
<FromGitter> <> Strings instead of symbols, and static objects instead of JSON::Any
<FromGitter> <Blacksmoke16> or Enum, depending on the context
greenbigfrog has quit [Ping timeout: 268 seconds]
greenbigfrog has joined #crystal-lang
<FromGitter> <seanchristophergregory_gitlab> oh for sure. I actually haven't heard an argument against symbols yet. are you speaking to the podman client or the app itself. Both are very poc, but I'd like to formalize them correctly. Most of the work done in the podman client was building models that were JSON::Serializable.
<FromGitter> <Dan-Do> It seems this line is incorrect, isn't it?
<FromGitter> <Dan-Do> `XXH3_64bits_withSeed(const void* data, size_t len, XXH64_hash_t seed)`
<FromGitter> <Dan-Do> I think we have to convert the string to slice of bytes
<FromGitter> <Blacksmoke16> im pretty sure it should use `.bytesize` instead of `.size`
<FromGitter> <Blacksmoke16> but you can just pass the string since crystal will automatically call its `#to_unsafe` method
<FromGitter> <Dan-Do> Thanks, just know that :)
taupiqueur has quit [Ping timeout: 265 seconds]
taupiqueur has joined #crystal-lang
* FromGitter * thinks he broke the compiler again
ur5us has joined #crystal-lang
<FromGitter> <> realized a compilation had been taking 20 minutes and cancelled it...project has been taking ~1 minute to compile until that. Been running with `--verbose --progress --stats` for ~10 minutes, stuck at the codegen step
<FromGitter> <> any way to get more info on what's happening where it's stuck?
<xyhuvud> how much did the other steps take?
<FromGitter> <> Do you use StaticArrays? 😄
taupiqueur has quit [Ping timeout: 260 seconds]
sagax has quit [Excess Flood]
<FromGitter> <> less than a second each.
<FromGitter> <> no
<FromGitter> <> I've had it running since around 3:15PM EST and it's still going
<FromGitter> <> why am I so damn good at breaking things 😞