codespan
starlark-rust
Our great sponsors
codespan | starlark-rust | |
---|---|---|
4 | 9 | |
1,035 | 617 | |
- | 6.0% | |
4.6 | 9.8 | |
2 months ago | 7 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache 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.
codespan
-
How Should Compilers Explain Problems to Developers? (Pdf, 2018)
Having good error messages is one of the important priorities for me in my compiler, so I made the commitment early and am using codespan[0] to report the errors, which is going well so far.
0: https://github.com/brendanzab/codespan
-
Is there a tool to emulate rust compiler error stlye code explanations?
There's https://github.com/brendanzab/codespan as well, and a number linked from their pages.
-
Ask HN: Who Wants to Collaborate?
Working in a GENERAL relational language (ie: not just a query one, like SQL, but general to make full apps, like python/delphi/c# + linq):
https://tablam.org
that is my attempt to resurrect the spirit of the FoxPro/dbase kind of tools.
Is on Rust, and is also my way to sharp my skills on it.
Now, I'm in the process of improve the parsing to be robust like in Rust, so i can show good error messages:
https://github.com/brendanzab/codespan
and also, hopefully, implement a solid type inference that work fine with the challenge of infer joins like "customer CROSS JOIN address".
---
The idea, long-term, is create a tool alike MS Access/FoxPro+Excel that I think could be great for a lot of companies (that are using stuff like "BigData" tools -like hadoop- when them are struggling with more fundamental issues!) and improve the condition of make business apps/analysis.
I already hear some interest when the vision is described in full, and I certain any company that use Excel/Access to deal with data and/or make business apps is anemically served by it.
The alternatives now are only for the cloud, and I instead wanna a local-first/on-premise offering...
-
Can i use rust to write my compiler??
Nice error messages (for YOUR lang) https://github.com/brendanzab/codespan or https://docs.rs/ariadne/0.1.3/ariadne/
starlark-rust
-
What config format do you prefer?
I haven't seen anyone mention starlark yet. It's something I want to play with as a config language.
-
loxcraft: a compiler, language server, and online playground for the Lox programming language
Aside from these, if you want some inspiration for a production-grade language built in Rust, you might want to go through the source code of Starlark and Gluon.
-
Launch HN: Moonrepo (YC W23) – Open-source build system
There is also a Rust implementation of Starlark as a starting point https://github.com/facebookexperimental/starlark-rust
To add to everyone else, please don't use YAML. Starlark is great _precisely_ because it is a readable, well known (nearly Python) language that is limited at the same time (no unbounded for loops, no way to do non-deterministic things like get the current time or `random()`).
-
Benchmarking Starlark against other embedded scripting languages
This is a follow-up to Benchmarking mlua/rlua/rhai - Rust embedded scripting languages from 4mo ago; I just added the new Starlark implementation from Meta to the benchmark posted by @aleksru.
-
The Perfect Configuration Format? Try TypeScript
The Rust implementation has it as an experimental extension (https://github.com/facebookexperimental/starlark-rust/blob/m...)
-
Making an interpreter for variable length byte-code, any way to use enums for this and not just a big u8?
u/ndmitchell has been working on a Starlark interpreter. He wrote up a blog post with some thoughts about different interpreter styles. He found that in his case using fixed sized instructions was about the same as byte-encoded ones, but compiling the AST to closures was also about the same performance as well, and doesn't need an AST->bytecode compiler.
-
Can i use rust to write my compiler??
As mentioned in other comments, type system features like algebraic data types (that Rust has) are really helpful. If you want a small-but-real example of a compiler in Rust (with an optimizer etc) then the starlark-rust compiler is good.
-
Zellij – A Terminal Workspace and Multiplexer Written in Rust
If your Rust program needs a more complicated configuration (conditionals, access to APIs and so on), also look at Facebook's Starlark parser and tooling[1]. Starlark is a subset of Python used by Bazel, Buck and a few other projects.
[1]: https://github.com/facebookexperimental/starlark-rust
-
New version of Rust Starlark, an implementation of a deterministic Python-like language
The Facebook post gives a nice overview. It also links out to the home page for the project at https://github.com/facebookexperimental/starlark-rust/, which has an introduction and links to what Starlark is, the crates.io link, the docs.rs link etc.
What are some alternatives?
miette - Fancy extension for std::error::Error with pretty, detailed diagnostic printing.
cue - CUE has moved to https://github.com/cue-lang/cue
rust-langdev - Language development libraries for Rust
cue - The home of the CUE language! Validate and define text-based and dynamic configuration
plzoo - Programming Languages Zoo
.tmux - 🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
platelet - Dispatch system for emergency volunteer couriers.
wasmtime - A fast and secure runtime for WebAssembly
quickjs-emscripten - Safely execute untrusted Javascript in your Javascript, and execute synchronous code that uses async functions
zellij - A terminal workspace with batteries included
chessmadra-frontend
Tmuxinator - Manage complex tmux sessions easily