base-make-javascript-code.js
tao
base-make-javascript-code.js | tao | |
---|---|---|
1 | 11 | |
1 | 1,070 | |
- | - | |
10.0 | 7.7 | |
about 2 years ago | 8 months ago | |
JavaScript | Rust | |
- | Mozilla Public License 2.0 |
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.
base-make-javascript-code.js
-
Why does Rust have parameters on impl?
I have a basic parser to convert the Link text into a JSON tree. I had a rough draft of a basic prototype compiler here, but in the process of porting that over to BaseLink. That last link converts Link to JavaScript in a hello-world level of degree haha, didn't get anywhere near robustness yet, I'm still a beginner too. Also haven't gotten around to doing the typechecking portion yet either.
tao
-
What backwards-incompatible changes would you make in a hypothetical Rust 2.0?
If you want some prior work on this, I've implemented effect-objects-as-return-values in my own language Tao, using uniqueness types. There's still work to be done, but I think it's sufficient as a proof of concept that this approach is viable without type soup.
- Why does Rust have parameters on impl?
-
What are Rust’s biggest weaknesses?
I've personally found through my experiments working on my language Tao that having effects be a property of the return value and not the function itself is very useful and opens up a lot of doors, like iterators that generate effectful values and more precise control over when side effects occur and in what context.
-
Hey Rustaceans! Got a question? Ask here! (29/2022)!
If you’d like to see some examples of great error messages written by a language with a parser combinator, I recommend you check out tao, which is parsed via chumsky, and provides rust-like error messages with the help of ariadne! I have been fiddling with writing my own language for a while now, and after trying out the alternatives, I found Chumsky to be great to work with, and can not recommend it enough. There are also great examples that you can find in the repo as well!
- Tao: A statically-typed functional language
- Tao: 一种静态类型的函数式语言 (Tao: A statically-typed functional language)
-
Hacker News top posts: Jul 5, 2022
Tao: A statically-typed functional language\ (0 comments)
-
Write your own programming language in an hour with Chumsky
I've been developing both throughout the development of Tao, my own hobby language. It's since developed quite an extensive syntax (see here for an example: https://github.com/zesterer/tao/blob/master/examples/99.tao), so you can count it as evidence that chumsky scales to complex grammars: https://github.com/zesterer/tao
What are some alternatives?
base - A TreeCode Programming Framework
statix - lints and suggestions for the nix programming language
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
pom - PEG parser combinators using operator overloading without macros.
mlton - The MLton repository
owo - Export your OneNote note collection to Obsidian, Logseq, Org Mode or any other plain text note-taking app! [Moved to: https://github.com/alopezrivera/OneNoteExporter]
chumsky - Write expressive, high-performance parsers with ease.
bril - an educational compiler intermediate representation
lalrpop - LR(1) parser generator for Rust
nom - Rust parser combinator framework
redis-rs - Redis library for rust
ariadne - A fancy diagnostics & error reporting crate