Our great sponsors
json | nqp | |
---|---|---|
4 | 8 | |
76 | 333 | |
- | 1.8% | |
0.0 | 9.5 | |
7 months ago | about 15 hours ago | |
Perl 6 | Raku | |
- | 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.
json
Posts with mentions or reviews of json.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-11.
-
Using Recursive-Descent-Style Functions to Specify a Full Grammar
An example is the 40 line JSON::Tiny::Grammar of the Raku module JSON::Tiny. Raku grammars are analytical grammars. This one corresponds to the grammar of JSON defined by "RFC7159, which is a superset of ECMA-404, in that it permits any value as a top-level JSON string, not just arrays and objects".
-
What's the position/name of Raku(formerly Perl6)'s `grammar` in parsing technology?
For example, the JSON::Tiny grammar uses no backtracking, has almost entirely declarative rules, but leans on the default Turing complete powered top down recursive descent invocation of those rules to drive its predictive parsing.
-
Try APL
A `rule` is a `token` with `:sigspace` also enabled (whitespace becomes the same as a call to `<.ws>`).
The only one of those that really looks anything like traditional regexes is the `value:sym` token. (Raku replaced non capturing grouping `(?:…)` with `[…]`, and character classes `[eE]` with `<[eE]>`)
This code was copied from https://github.com/moritz/json/blob/master/lib/JSON/Tiny/Gra... but some parts were simplified to be slightly easier to understand. Mainly I removed the Unicode handling capabilities.
It will generate a tree based structure when you use it.
my $json = Q:to/END/;
-
With the metaprogramming features added in ECMAScript 6 and existing JSON faculties is it feasible (or even worth it) to make a Homoiconic JS/TS derivative in the vein of REBOL and family?
For JSON specifically, here's a simple serializer/deserializer (Grammar, Actions).
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
What are some alternatives?
When comparing json and nqp you can also consider the following projects:
array - Simple array language written in kotlin
MoarVM - A VM with adaptive optimization and JIT compilation, built for Rakudo