SamantazFox has quit [Killed (NickServ (GHOST command used by SamantazFox_))]
SamantazFox_ has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
_ht has joined #crystal-lang
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
Starfoxxes has quit [Ping timeout: 265 seconds]
SamantazFox has joined #crystal-lang
ur5us has quit [Ping timeout: 256 seconds]
SamantazFox_ has quit [Ping timeout: 252 seconds]
Starfoxxes has joined #crystal-lang
brw has joined #crystal-lang
notzmv has quit [Ping timeout: 265 seconds]
quazimodo has quit [Ping timeout: 256 seconds]
<FromGitter>
<oz:matrix.org> gpt can't lie, it's not sentient. :)
notzmv has joined #crystal-lang
<FromGitter>
<moe:busyloop.net> well, i've caught it bending the truth more than once.
<FromGitter>
<moe:busyloop.net> somewhat amusingly when asking it detail things about crystal, it often replies in terms of how things "should be" rather in how they actually are. (e.g. it suggests an API that doesn't exist but probably should ;))
notzmv has quit [Remote host closed the connection]
Starfoxxes has quit [Ping timeout: 272 seconds]
Starfoxxes has joined #crystal-lang
Flipez has quit [Read error: Connection reset by peer]
Flipez has joined #crystal-lang
Flipez has quit [Changing host]
Flipez has joined #crystal-lang
Ober has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 256 seconds]
taupiqueur1 has quit [Ping timeout: 265 seconds]
Sankalp has joined #crystal-lang
<FromGitter>
<skinnyjames> Does anyone know of a way to derive a unique value from the contents of a block passed to a method? ⏎ https://play.crystal-lang.org/#/r/effz
<FromGitter>
<Blacksmoke16> maybe if you use a macro, but whats the use case?
<FromGitter>
<skinnyjames> Hm, it's to form a cache key from a series of ordered instructions. ⏎ ⏎ 1) The instructions are declared as method calls and saved on an object ⏎ 2) A cache key is formed from a digest of the instructions so if the instructions don't change, then they won't be re-evaluated [https://gitter.im/crystal-lang/crystal?at=63c9b3490110ad104ddba83d]
<FromGitter>
<skinnyjames> Totally recognize that the ask is wonky
<FromGitter>
<Blacksmoke16> you can access the body of a method via a macro, but idt you can access the block
<FromGitter>
<skinnyjames> Ah, yeah i didn't think so but it's good to know for sure
hightower4 has joined #crystal-lang
hightower3 has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 255 seconds]
<FromGitter>
<skinnyjames> capturing the whole method/class body works just as well