Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
lizmat m: say (^Inf).hyper.grep(*.is-prime).skip(999998).head 09:34
camelia 15485857
lizmat this pretty reliably segfaults for me on an M1 MacMini
[Coke] lizmat: need me to try something on the m2? 12:54
lizmat say (^Inf).hyper.grep(*.is-prime).skip(999998).head :-)
[Coke] any particular version? 12:55
lizmat any recent version ? 12:58
haven't been able to get this to fail on Intel hardware 12:59
[Coke] wow, it's not failing but it's so much slower on the m2 than on my old mac mini 14:46
takes 17s on the m2
oh, the mini version I ran was from the SO article with the batch 14:47
with the batch it's just as fast.
no segfault though
v2023.06-241-gcb8d2a125.
lizmat thanks! 15:23
[Coke]: BTW, re Slang::Date: is there a reason why you didn't store an instantiated Date object as a WVal? 15:25
[Coke] I basically stopped thinking about it when the test passed. :) 15:29
ah, I'm not doing the creation at compile time, just setting up a method call. Yah, in a loop that could matter. 15:31
I think I was just copying someone else's example, honestly
I'll open a bug.
lizmat I was just wondering whether there was a reason for it...
I'll make a PR 15:32
[Coke] github.com/coke/raku-slang-date/issues/1 15:33
I don't even have to WRITE CODE!? awesome. :)
If you're writing the code, I'll cut a release within a day 15:46
... error handling, maybe. 15:47
if it changes to a compile time error, that's fine, but we might need to change the test that checks for that.
lizmat right 15:48
if that's ok with you
hmmm.. I think I found out why the Date object is not simply put into QAST 16:28
missing serialization context
we don't seem to have a simple way to put a HLL object into the current serialization context 16:29
?
[Coke]: PR created 16:44
[Coke] does the eval need the use statement? 16:58
(there's one at the top of the test file)
Amazing how much shorter your version is! 16:59
wonder if my use of nok there was a p5 holdover or something. 17:00
lizmat yes, the use inside the eval is needed, since EVAL runs on the stock grammar (unless you tell it otherwise) 17:01
[Coke] aha! 17:46