MoarVM (Metamodel On A Runtime Virtual Machine) is a virtual machine built for the 6model object system. It serves as the primary VM backend for NQP and Raku.
Questions tagged [moarvm]
14 questions
14
votes
2 answers
How can I compile perl6 file to exe
I am playing with perl6 version which built on MoarVM on windows. I created some perl6 file and want to compile it to exe. I tried the following:
perl6 --target=MAST r.pl>r
Now I want to compile the r to executable
I found this link which talk…

smith
- 3,232
- 26
- 55
12
votes
1 answer
Perl6 IO::Socket::Async truncates data
I'm rewriting my P5 socket server in P6 using IO::Socket::Async, but the data received got truncated 1 character at the end and that 1 character is received on the next connection. Someone from Perl6 Facebook group (Jonathan Worthington) pointed…

Zarul Zakuan
- 510
- 3
- 13
9
votes
5 answers
How do the Perl 6 set operations compare elements?
Running under moar (2016.10)
Consider this code that constructs a set and tests for membership:
my $num_set = set( < 1 2 3 4 > );
say "set: ", $num_set.perl;
say "4 is in set: ", 4 ∈ $num_set;
say "IntStr 4 is in set: ", IntStr.new(4, "Four") ∈…

brian d foy
- 129,424
- 31
- 207
- 592
8
votes
1 answer
How to dump MoarVM bytecode
I wonder how I can debug the Moarvm bytecode. Is there a document that describes for instance
howto convert raku to moarvm and howto dump the generated bytecode. If i try to i.e. run:
rakudo-m --target=mbc c.p6
===SORRY!===
Cannot dump this object;…

Konrad Eisele
- 3,088
- 20
- 35
8
votes
1 answer
Does Raku always parse?
raku -version
This is Rakudo version 2020.01 built on MoarVM version 2020.01.1
implementing Perl 6.d.
Currently it looks like I can't start any Raku Perl6 program
with a runtime lower than about 130 ms (mostly startup time).
-Is Raku always…

Peter Bauer
- 284
- 2
- 7
6
votes
3 answers
How to return a Hash/Raku object from native call?
I am writing a library that uses NativeCall, it would be very convenient for me to be able to return a Raku Hash from an exported function. How can I do this?
For example, in Ruby, if I wanted to return a Hash from C, I would do something…

Rawley Fowler
- 1,366
- 7
- 15
6
votes
1 answer
Is there a way to use only precompiled modules
I wonder if is possible to have only precompiled modules or some sort of MoarVM bytecode.
The idea is to protect the source code at some grade - at least i don't want to be in plain text

Demayl
- 63
- 4
6
votes
2 answers
perl6 How to give more memory to MoarVM?
I have to run data analysis on about 2 million lines of data and each line about 250 bytes long. So total about 500 megabytes of data. I am running latest Rakudo on Virtualbox Linux with 4G memory.
After about 8 hours, I got MoarVM panic due to…

lisprogtor
- 5,677
- 11
- 17
5
votes
1 answer
How are dynamically scoped variables implemented in Rakudo/MoarVM?
That is, variables like $*scalar, @*array and %*hash.
I'm asking this question mainly because I want to have an idea of how much of a burden they are on the overall performance of the grammar/regex engine.
To add a bit of precision to my question, I…

WhiteMist
- 885
- 4
- 13
5
votes
2 answers
Strings and Strands in MoarVM
When running Raku code on Rakudo with the MoarVM backend, is there any way to print information about how a given Str is stored in memory from inside the running program? In particular, I am curious whether there's a way to see how many Strands…

codesections
- 8,900
- 16
- 50
5
votes
1 answer
MOAR process ballooning while running Perl6 socket server
I have a socket server using IO::Socket::Async and Redis::Async for message publishing. Whenever there is a message received by the server, the script would translate the message and generate acknowledge message to be sent back to the sender so that…

Zarul Zakuan
- 510
- 3
- 13
4
votes
1 answer
What are nqp, nqp-m, rakudo-debug, rakudo-debug-m, rakudo-gdb-m, rakudo-m, rakudo-valgrind-m?
When I install rakudo from source:
$ git clone git@github.com:rakudo/rakudo.git
$ cd rakudo
$ perl Configure.pl --gen-moar --gen-nqp --backends=moar
$ make
$ make install
it generates the following files in ./install/bin:
$ ls -1…

Håkon Hægland
- 39,012
- 21
- 81
- 174
2
votes
1 answer
Why does MoarVM complain about "built for archive which is not the architecture being linked" on Mac OS X?
I'm trying to build Moar from the latest on GitHub and the download on MoarVM.org. I keep getting an error about third-party libraries:
ld: warning: ld: warning: ld: warning: ignoring file 3rdparty/libatomic_ops/src/libatomic_ops.a, file was built…

brian d foy
- 129,424
- 31
- 207
- 592
1
vote
2 answers
Why does panda fail to install my module when all tests pass locally?
I'm the author of Pod-Perl5 a Perl 6 module that parses Perl 5 pod. Until the release of Perl 6.c, this module installed fine with panda install Pod::Perl5. Now it fails with an extensive list of errors (excerpt is below, full output is here). All…

David Farrell
- 427
- 6
- 16