gecko
molten
gecko | molten | |
---|---|---|
1 | 2 | |
19 | 52 | |
- | - | |
9.3 | 1.8 | |
over 1 year ago | about 2 years ago | |
Rust | Rust | |
The Unlicense | GNU General Public License v3.0 only |
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.
gecko
-
Statically-typed, Rust-like programming language
Hey guys,
I've been working on a Rust-like programming language written in Rust. I've worked on this compiler for the past months, and it's coming along very well.
The language features closures, higher-order function support, recursion, among other interesting things.
Here's the GitHub link, take a look!: https://github.com/geckolang/gecko
Also, come hang out on the official Discord server, I'm very interested on the compiler-design topic and can help you out if you have any questions about the project or designing your own compiler!
https://discord.gg/H3eMUXp
molten
-
Best practices for AST design in Rust?
I second looking at the rust compiler. It splits various AST elements into a struct and enum, where the enum is a 'Kind' (eg. Expr for struct which contains an ExprKind enum). That allows things like line numbers and other common data to be easily fetched from the struct and variant-specific values can be stored in the enum, which can be pattern matched. I did a similar thing in a compiler I made a while ago here https://github.com/transistorfet/molten/blob/main/src/analysis/hir.rs
-
How good is LLVM in other languages other than C++? (In my case I'm interested in using Rust)
I managed to write an ocaml-like language compiler in Rust using llvm-sys (which uses the LLVM C API) without too much trouble. It may not be the fastest but it's fairly feature cobplete. The code is at https://github.com/transistorfet/molten
What are some alternatives?
holymer - (WIP) A programming language
llrl - An experimental Lisp-like programming language
CSpydr - A static typed low-level compiled programming language inspired by Rust and C
ante - A safe, easy systems language
luxya - Programming language with a tree-walking interpreter written in Rust©™.
unlisp-llvm - Compiler for a toy Lisp language
oktac - okta programming language compiler. THIS IS A MIRROR OF THE ORIGINAL REPO HOSTED IN SOURCEHUT.
rust - Empowering everyone to build reliable and efficient software.
progge.rs - Program analysis playground for a simple, imperative language