<FromGitter>
<Blacksmoke16> can you build a binary from input via stdin or something?
<FromGitter>
<Blacksmoke16> i.e. w/o needing a file
postmodern has joined #crystal-lang
ur5us has joined #crystal-lang
notzmv has quit [Ping timeout: 258 seconds]
<FromGitter>
<didactic-drunk> This is an idea I'm playing with. Is it possible to translate "#{class}.{method}" to a fixed offset at compile time? Example:
<FromGitter>
<HertzDevil> however this index is the overload order not the declaration order
<FromGitter>
<HertzDevil> it's still unique though
ua_ has quit [Ping timeout: 265 seconds]
maria_elis has quit [Ping timeout: 250 seconds]
ua_ has joined #crystal-lang
maria_elis has joined #crystal-lang
ua_ has quit [Ping timeout: 272 seconds]
ua_ has joined #crystal-lang
ua_ has quit [Remote host closed the connection]
ua_ has joined #crystal-lang
notzmv has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
DeBot has quit [*.net *.split]
Liothen has quit [*.net *.split]
DeBot_ has joined #crystal-lang
Liothen has joined #crystal-lang
mikko has quit [*.net *.split]
mikko has joined #crystal-lang
yxhuvud has quit [*.net *.split]
oprypin has quit [*.net *.split]
fifr has quit [*.net *.split]
Guest1975 has quit [*.net *.split]
xyhuvud has joined #crystal-lang
oprypin has joined #crystal-lang
fifr_ has joined #crystal-lang
Guest1975 has joined #crystal-lang
hexology has quit [*.net *.split]
r0bby has quit [*.net *.split]
willamin has quit [*.net *.split]
r0bby has joined #crystal-lang
willamin has joined #crystal-lang
hexology has joined #crystal-lang
<FromGitter>
<wyhaines> @Blacksmoke16 ⏎ ⏎ ```{{ system("cat") }}``` ⏎ ⏎ STDIN is defined for macro code, but off the top of my head right now I don't know if there is a way to read from it with macro code currently. [https://gitter.im/crystal-lang/crystal?at=60ebe88f48f9b1084a25ecda]
lucf117 has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
aquijoule__ has quit [Ping timeout: 252 seconds]
richbridger has joined #crystal-lang
ur5us has quit [Ping timeout: 255 seconds]
straight-shoota has quit [Quit: ZNC 1.8.2 - https://znc.in]
straight-shoota has joined #crystal-lang
aquijoule_ has joined #crystal-lang
richbridger has quit [Read error: Connection reset by peer]
Guest27 has joined #crystal-lang
Guest27 has quit [Client Quit]
Guest2732 has joined #crystal-lang
Guest2732 has quit [Client Quit]
postmodern has quit [Quit: Leaving]
jhass has quit [Ping timeout: 240 seconds]
jhass has joined #crystal-lang
Guest64 has quit [Quit: Ping timeout (120 seconds)]
notzmv has quit [Ping timeout: 272 seconds]
notzmv has joined #crystal-lang
aquijoule_ has quit [Quit: Leaving]
<FromGitter>
<jrei:matrix.org> `{{ read_file }}`
<FromGitter>
<jrei:matrix.org> I didn't read before on what you want to do, here is only a better snippet
<FromGitter>
<didactic-drunk> Is it possible to monkey patch `IO::FileDescriptor#read`? https://carc.in/#/r/bj7v
<FromGitter>
<oprypin:matrix.org> why tho
<FromGitter>
<didactic-drunk> Measure wait time
<xyhuvud>
it should work to monkeypatch as long as you make certain the original is already loaded. file_descriptor should be loaded though
<xyhuvud>
it works for me, but then I don't depend on previous_def.
<FromGitter>
<didactic-drunk> `previous_def` is the important part. `require "socket" ` doesn't seem to help. Is this a load order problem or issue with modules? https://carc.in/#/r/bj8y
<mikko>
my almost trivial code has been compiling for many minutes due to this line: StaticArray(Bool, 10_000).new(true)
<FromGitter>
<Blacksmoke16> nice
<FromGitter>
<Blacksmoke16> is there a reason to have a 10k member static array tho?
<mikko>
i was just wanting to experiment with bitarray vs staticarray vs array
<mikko>
trying to see what kind of performance i get with each
<FromGitter>
<Blacksmoke16> fair enough
<FromGitter>
<wyhaines> I think that if you search the archives in here, you will find some other discussion of StaticArray and that compilation performance cost. I remember seeing it....a yearish-ish ago.