🦋 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.
00:02 reportable6 left 00:05 reportable6 joined 01:03 lucasb left 01:37 kvw_5 joined 01:41 kvw_5_ left 02:24 frost-lab joined 03:17 squashable6 left 03:19 squashable6 joined 06:01 reportable6 left 06:03 reportable6 joined 07:06 domidumont joined 07:19 sena_kun left 07:20 sena_kun joined 07:57 cog left, cog joined 08:18 b2gills left 08:20 cog_ joined 08:23 cog left 08:34 b2gills joined
[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
11:22 Kaiepi left 11:23 Kaiepi joined 12:01 reportable6 left 12:04 reportable6 joined
MasterDuke bartolin_: do you have any experience using JNA to call windows native api functions? 12:58
13:38 linkable6 left, evalable6 left 13:41 evalable6 joined 13:42 linkable6 joined 14:29 dogbert17 joined 14:32 dogbert11 left 14:39 frost-lab left 14:59 MasterDuke left 15:41 Kaiepi left 15:42 Kaiepi joined 16:00 MitarashiDango[m left 16:30 patrickb joined, patrickb left
bartolin_ MasterDuke: sorry, but I have no experience there 17:09
tellable6 bartolin_, I'll pass your message to MasterDuke 17:10
17:41 domidumont left 17:59 domidumont joined 18:02 reportable6 left 18:04 domidumont left 18:05 reportable6 joined, Kaiepi left, Kaiepi joined 18:07 domidumont joined, domidumont left 18:16 japhb left 18:23 japhb joined 20:09 linkable6 left, nativecallable6 left, greppable6 left, releasable6 left, committable6 left, benchable6 left, bloatable6 left, kawaii left 20:13 linkable6 joined, nativecallable6 joined, greppable6 joined, releasable6 joined, committable6 joined, benchable6 joined, bloatable6 joined, kawaii joined 20:16 uzl[m] left, AlexDaniel` left 20:17 patrickbkr[m] left 20:37 uzl[m] joined, patrickbkr[m] joined, AlexDaniel` joined 20:44 Kaiepi left 20:45 Kaiepi joined 20:57 patrickbkr[m] left 21:01 Kaiepi left 21:02 Kaiepi joined 21:03 AlexDaniel` left, uzl[m] left 21:25 patrickbkr[m] joined 21:37 uzl[m] joined 21:39 AlexDaniel` joined 22:27 gfldex left, gfldex joined 23:29 b2gills left, b2gills joined 23:48 dogbert11 joined 23:50 dogbert17 left