🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs can be inspected at colabti.org/irclogger/irclogger_log/raku-dev | For MoarVM see #moarvm
Set by lizmat on 26 April 2021.
[Tux] Rakudo v2021.04-28-g816281b91 (v6.d) on MoarVM 2021.04-46-g5ee04f0fa
csv-ip5xs0.862 - 0.906
csv-ip5xs-208.897 - 9.402
csv-parser27.416 - 29.893
csv-test-xs-200.370 - 0.372
test8.008 - 8.183
test-t2.087 - 2.148
test-t --race0.900 - 0.903
test-t-2036.232 - 36.951
test-t-20 --race10.355 - 11.215
08:43
MasterDuke it seems like github.com/Raku/nqp/blob/master/sr...#L277-L283 (i.e., `nqp::stat('path/to/file', nqp::const::STAT_CHANGETIME)`) is hitting the Exception path on windows 09:08
so i think github.com/Raku/nqp/blob/master/t/...#L222-L223 needs to be todo'ed for jvm/windows 09:13
lizmat but Windows also has the concept of modification time on files, does it not ? 09:14
MasterDuke the case right above is for mtime
moarvm uses uv_fs_stat, wonder what it does 09:19
"windows: Re-implement uv_fs_stat. The st_ctime field now contains the change windows: Re-implement uv_fs_stat. The st_ctime field now contains the change", well that's from their 2013.08.25 changelog 09:20
lizmat hmmm 09:21
I seem to draw a blank: 09:28
If I want to sort numerically in reverse order, then I can prefix a - to the condition 09:29
m: dd ^10 .pick(*).sort( -*)
camelia (9, 8, 7, 6, 5, 4, 3, 2, 1, 0).Seq
lizmat but we don't have a string equivalent for that, right? 09:30
m: dd <a b c d e f g h i j>.pick(*).sort.reverse
camelia ("j", "i", "h", "g", "f", "e", "d", "c", "b", "a").Seq
lizmat that's the only way, right ?
raydiak m: say sort { $^b leg $^a }, "a".."j" 09:36
camelia (j i h g f e d c b a)
lizmat yeah, but that would not do a Schwartzian transform under the hood 09:40
sorry, should have been more explicit
MasterDuke m: dd <a b c d e f g h i j>.pick(*).sort(-*.ord) 09:46
camelia ("j", "i", "h", "g", "f", "e", "d", "c", "b", "a").Seq
lizmat yeah, that'd work for single chars 09:54
raydiak m: say sort -«*.ords, "aa".."aj" 10:14
camelia (aj ai ah ag af ae ad ac ab aa)
raydiak single-argument variable-length reverse string sort, but I doubt sorting a list of lists is more efficient than using .reverse
lizmat yeah.. 10:25
and I'm now considering the validity of .sort returning a .Seq on a sorted list, instead of just the sorted list 10:26
as .reverse on a list won't need to copy, just use a special iterator that starts at the end
MasterDuke m: dd <bad bat a c d e f g h i j>.pick(*).sort(&infix:<lt>) 10:31
camelia ("j", "i", "h", "g", "f", "e", "d", "c", "bat", "bad", "a").Seq
MasterDuke bartolin_: do you have any experience using JNA to call windows native api functions? 12:58
bartolin_ MasterDuke: sorry, but I have no experience there 17:09
tellable6 bartolin_, I'll pass your message to MasterDuke 17:10