nqp
NQP (by Raku)
MoarVM
A VM with adaptive optimization and JIT compilation, built for Rakudo (by MoarVM)
Our great sponsors
nqp | MoarVM | |
---|---|---|
8 | 11 | |
333 | 678 | |
1.8% | 1.3% | |
9.5 | 7.9 | |
6 days ago | 5 days ago | |
Raku | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nqp
Posts with mentions or reviews of nqp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-01.
-
how to make a context aware code evaluater like REPL
hi! I was looking at REPL-like evaluation of code from here and here, and tried to make a very small version for it, yet it fails:
-
DI as a first class citizen?
Second, any "inheritance" is optional. Quoting nqp's 6model overview with my added emphasis:
-
What's the position/name of Raku(formerly Perl6)'s `grammar` in parsing technology?
Considering it has a compiler (which generates an NFA), I do not think it is fair to call it an interpreter.
-
What would Raku look like without any syntactic sugar?
When I mention the Actor model, I specifically mean the Actor model, not "an actor model". That is to say, a mathematical theory, not an implementation. In contrast, ponder what you mean by "an object model". When I mention the "metamodel", I specifically mean "a framework [that] does not contain an implementation of classes, interfaces, roles, prototype objects and so forth".
-
Raku: features, community and main interpreter/VM
NQP is a compiler like MiniPerl for Perl 5. It is a bootstrapping tool which helps to compile the Raku parts of Rakudo and compile the libraries before running have compiled the libraries. Unlike MiniPerl for Perl 5 (which is an interpreter that can interpret all Perl syntax but miss some batteries: means without modules mixing Perl code and native code), NQP can only compile a "simplified Raku". NQP refers to both the compiler and the source code contained in files with the ".nqp" extension.
-
When implementing a language, what's your favourite backend?
I focus on the Raku stack: the compiler Rakudo which targets the compiler compiler NQP which targets multiple backends including MoarVM. (Which
-
Common standard library for language interop
NQP is a compiler compiler toolkit that targets multiple backends: JVM, JS, and MoarVM.
- Perl leader quits citing internal harassment
MoarVM
Posts with mentions or reviews of MoarVM.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-07.
-
Stability
Implement return prioritization #1786: superseeded
-
What's a good way to represent overloaded functions at a low level?
Now, as to how that's done at the low level, and whether the way it's done is a good way to do it, well, I can't help. Suffice to say, the main place to look for how this is handled at the low-level is MoarVM. I dug around for a couple minutes and have a link to a commit from nearly a decade ago. Does that help?
-
Language intrinsics and custom array layout
For a class the default representation is P6Opaque. This is one of a few dozen stock representations that Raku requires compiler backends implement as standard. See, for example, the 46 .c/.h pairs of C89 source files in the relevant MoarVM directory. A quick glance at the names of the source code files should paint a broad picture. A look at their code will fill in some details.
- Directly run compiled bytecode file?
-
How do you know if an allocator is good?
I'm hoping someone who knows C89 can take a quick gander at the C89 code implementing 47 representations in here and comment on it.
- MoarVM: A VM with adaptive optimization and JIT compilation, built for Rakudo
-
Any languages doing anything interesting with allocators?
This is (yet another) very un(der)documented Raku feature (over a decade after it was introduced!), but one can browse what looks to me like reasonably clean and commented C89 code implementing 47 representations in the relevant MoarVM directory.
-
Designing containers for GitHub actions
FROM alpine:latest as base ARG RAKU_RELEASE=2021.12 ENV PKGS="git make gcc musl-dev perl linux-headers bash" RUN apk update && apk upgrade \ && apk add --no-cache $PKGS \ && git clone --depth 1 --branch ${RAKU_RELEASE} https://github.com/MoarVM/MoarVM.git \ && cd MoarVM \ && perl Configure.pl --prefix /usr \ && make --print-data-base \ && make install\ && cd .. \ && git clone --depth 1 --branch ${RAKU_RELEASE} git://github.com/Raku/nqp.git \ && cd nqp \ && perl Configure.pl --backends=moar --prefix /usr \ && make install \ && cd .. \ && git clone --depth 1 --branch ${RAKU_RELEASE} https://github.com/rakudo/rakudo.git \ && cd rakudo \ && perl Configure.pl --backends=moar --prefix /usr \ && make install \ && ls /usr/share/nqp/ FROM alpine:latest ARG UID=1000 LABEL version="0.5.0" maintainer="[email protected]" raku_release=${RAKU_RELEASE} raku_user_uid=${UID} COPY --from=base /usr/lib/libmoar.so /usr/lib COPY --from=base /usr/share/nqp/ /usr/share/nqp COPY --from=base /usr/share/perl6/ /usr/share/perl6 COPY --from=base /usr/bin/moar /usr/bin/nqp /usr/bin/raku /usr/bin/perl6 /usr/bin/rakudo /usr/bin/ RUN mkdir /github \ && addgroup -S raku && adduser -S raku -G raku --uid ${UID} USER raku WORKDIR /home/raku ENTRYPOINT ["raku"]
-
What happened to the Mu MicroVM project?
Visit the MoarVM project's home page and/or its github repo.
-
Scheme string vector vs list of chars
MoarVM's representation is very cool https://github.com/MoarVM/MoarVM/blob/master/docs/strings.asciidoc
What are some alternatives?
When comparing nqp and MoarVM you can also consider the following projects:
qutebrowser-userscripts - userscripts for qutebrowser (written in Raku)
Oberon - Oberon parser, code model & browser, compiler and IDE with debugger
graalpython - A Python 3 implementation built on GraalVM
Inline-Perl5 - Use Perl 5 code in a Raku program
roast - 🦋 Raku test suite
Sparrow6 - Raku Automation Framework
json - A tiny JSON parser and emitter for Perl 6 on Rakudo
rakudo - 🦋 Rakudo – Raku on MoarVM, JVM, and JS
hubtodate - Automatically fetches and updates repositories from GitHub
Senegal - Senegal programming language