This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html Set by lizmat on 8 June 2022. |
|||
00:32
habere-et-disper left
|
|||
nemokosch | That's rather costly | 07:39 | |
librasteve | i would preprocess ‘@lines’ and grep out all lines (before and after) unambiguous markers, depending on if you have lines you are joining or using multiline grammar of some kind | 13:57 | |
dwinkley | hello! is there a way for reading a float in the little endian format in raku? | 20:10 | |
since in the documentation for the 'unpack' method, i only found letters for bigendian | |||
ab5tract | It doesn’t look like we have such in core, no :( | 20:19 | |
librasteve | o/ | 20:30 | |
ab5tract | \o | 20:59 | |
dwinkley: have you seen raku.land/zef:dwarring/Native::Packing? | 21:21 | ||
dwinkley | thanks | 21:31 | |
MasterDuke | diwnkley: have you looked at Byte/Buf's read-num(32|64) methods? they take an `Endian` parameter | 21:47 | |
s/Byte/Blob/ | 21:48 | ||
m: my Buf $a .= new(1, 2, 3, 4); say $a.read-num32(0, LittleEndian), say $a.read-num32(0, BigEndian) | 21:50 | ||
camelia | 2.387939260590663e-38 1.539989614439558e-36True |
||
dwinkley | this is even more convenient | 21:57 | |
thank you | |||
MasterDuke | np | 21:59 | |
22:53
Nemokosch joined
23:01
Nemokosch left,
Nemokosch joined
|