mpl
Pegged
Our great sponsors
mpl | Pegged | |
---|---|---|
7 | 7 | |
287 | 534 | |
16.8% | - | |
8.4 | 5.5 | |
about 2 months ago | 8 months ago | |
Standard ML | D | |
GNU General Public License v3.0 or later | - |
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.
mpl
-
Garbage Collection for Systems Programmers
I'm one of the authors of this work -- I can explain a little.
"Provably efficient" means that the language provides worst-case performance guarantees.
For example in the "Automatic Parallelism Management" paper (https://dl.acm.org/doi/10.1145/3632880), we develop a compiler and run-time system that can execute extremely fine-grained parallel code without losing performance. (Concretely, imagine tiny tasks of around only 10-100 instructions each.)
The key idea is to make sure that any task which is *too tiny* is executed sequentially instead of in parallel. To make this happen, we use a scheduler that runs in the background during execution. It is the scheduler's job to decide on-the-fly which tasks should be sequentialized and which tasks should be "promoted" into actual threads that can run in parallel. Intuitively, each promotion incurs a cost, but also exposes parallelism.
In the paper, we present our scheduler and prove a worst-case performance bound. We specifically show that the total overhead of promotion will be at most a small constant factor (e.g., 1% overhead), and also that the theoretical amount of parallelism is unaffected, asymptotically.
All of this is implemented in MaPLe (https://github.com/mpllang/mpl) and you can go play with it now!
- MPL: Automatic Management of Parallelism
-
Good languages for writing compilers in?
Maple is a fork of MLton: https://github.com/MPLLang/mpl
-
Comparing Objective Caml and Standard ML
Some of us are still using SML for research and teaching, e.g. https://github.com/mpllang/mpl
- MaPLe Compiler for Parallel ML v0.3 Release Notes
- MPL-v0.3 Release Notes
Pegged
-
Metaprogramming in Zig and Parsing CSS
Here's a parser generator that uses metaprogramming in D to run it at compile time:
https://github.com/PhilippeSigaud/Pegged
-
C++17’s Useful Features for Embedded Systems
This is the intended purpose of the feature. gzip may be a little aggressive given that you have to unzip it again at the other end but its very possible (and potentially not even as expensive as one might expect given that these types of compression algorithms can be tuned on a speed/size tradeoff and backoff when struggling to compress).
https://github.com/PhilippeSigaud/Pegged is a D library that generates a parser generator for you based on a grammar (string) at compile time.
-
Good languages for writing compilers in?
Also pegged is a pretty nice library for generating parsers from PEG grammars.
-
Rule
I LOVE PEGGED IT'S MY FAVORITE PARSER GENERATOR FOR THE D PROGRAMMING LANGUAGE
-
Writing a JSON parser from scratch in TypeScript
I mean it kind of depends on the parser generator if it's simpler or harder to use. I have mainly used this which is very simple to use.
- Ohm – A library and language for building parsers, interpreters, compilers, etc.
- Pegged – a parsing expression grammar (PEG) generator in the D language
What are some alternatives?
cakeml - CakeML: A Verified Implementation of ML
ohm - A library and language for building parsers, interpreters, compilers, etc.
LunarML - The Standard ML compiler that produces Lua/JavaScript
usfm-grammar - An elegant USFM parser.
HPCInfo - Information about many aspects of high-performance computing. Wiki content moved to ~/docs.
ppci - A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python
mlton - The MLton repository
pymetaterp - A python parser that builds python ASTs in 502 lines of python without using modules
1ml - 1ML prototype interpreter
meowlang - Meow Programming Language
TablaM - The practical relational programing language for data-oriented applications