prism
civlua
prism | civlua | |
---|---|---|
6 | 14 | |
766 | 20 | |
3.0% | - | |
9.9 | 9.5 | |
about 18 hours ago | 6 days ago | |
C | Lua | |
MIT License | The Unlicense |
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.
prism
-
Unveiling the big leap in Ruby 3.3's IRB
IRB type completion comes as a result of a chain of events which starts from the incredible work done by Kevin Newton (et al) to write a new canonical Ruby parser called Prism in C99 with no dependencies [1].
With Prism, you can then create tool suites like syntax_tree [2], which then leads Prettier formatters [3], a new Ruby LSP [4], which unlocks a new Ruby LSP VS Code extension [5], not to mention a laundry list of other gems like Rubocop and of course Ruby itself that will benefit from a faster and more maintainable Ruby parser.
It's a beautiful illustration of the power of questioning conventions, going back to first principles to uncover better solutions to previously solved problems, whose new solutions create new capabilities which unlocks the ability to solve new problems.
[1]: https://github.com/ruby/prism
-
RubyConf 2023 Recap
Kevin Newton talked about Prism, a new Ruby parser. He discussed the challenges that come with parsing Ruby. He shared what's next, and what we can and should expect from our Ruby tooling in the future. He ended with an impassioned discussion about building a contributor community around a single tool.
-
Ruby 3.3.0-Preview3 Released
It’s disappointing there doesn’t seem to be an easily available blog post or announcement (maybe I just didn’t find it), but the design doc lists a few motivations: https://github.com/ruby/prism/blob/main/docs/design.md
It looks like there was also a podcast interview last year that touches on the origins of the project: https://topenddevs.com/podcasts/ruby-rogues/episodes/the-new...
Reading between the lines it looks to me like this is motivated by ripper (the old parser) not being a great fit for tooling around ruby like IDE LSP integrations and such. Ripper isn’t fault tolerant (if the script has a a syntax error you don’t get a partial tree, just an exception); being implemented in ruby enough itself that it kind of depends on ruby which isn’t always convenient for integration (IDEs like vscode make plugins in JS easy, prism comes with node bindings), and maybe being enough of a crufty old code base that maintaining it and fixing those design issues was deemed impracticable.
Also worth noting if it wasn’t clear I’m pretty sure this parser is not being used or intended to be used for a ruby runtime to actually execute scripts, and that’s not what ripper was for either. This is for tooling that operates on ruby files for other purposes: syntax highlighting, linting, stuff like that.
-
Ruby 3.3.0-preview1 Released
I thought yarp was where ruby parsing was heading
- Shopify/Yarp: Yet Another Ruby Parser
- Shopify/yarp: Yet Another Ruby Parser
civlua
- LAP: Lua Async Protocol
-
IBM 360 in UK need a home
http://civboot.org is basically trying to answer exactly this question
- Drowning in code: The ever-growing problem of ever-growing codebases
-
Why the fuck are we templating YAML? (2019)
I'm designing a simple dev environment from scratch.
My solution for this is a sandboxed lua for programatic configuration:
https://github.com/civboot/civlua/tree/main/lib/luck
I can't stand JSON (for many reasons) so I created a serialization format that combines it and CSV for nested objects
https://github.com/civboot/civlua/tree/main/lib/tso
I wish the industry would standardize on a solution like this. IMO you shouldn't use a "real" language unless you can lock it down to be determinisitic. JSON is supposed to be human readable but fails for lots of real-world data like multi-line strings or lists of records.
CSV is more readable but doesn't supported nested objects.
-
Show HN: Cassette, a Personal Programming Language
Have you tried for any length of time?
For example, there's lots of little places where aligning keywords helps clarify code
https://github.com/civboot/civlua/blob/main/ds/ds.lua#L89
Formatters HATE putting multiple statements on a single line, but when they go it makes it so much easier to parse (for a person)
-
LuaX: A Lua Dialect with JSX
I've built a lua-based markdown which is more sane (from a programmer's PoV) than markdown but still concise
https://github.com/civboot/civlua/tree/main/cxt
I'm planning on supporting syntax highlighting. I could imagine creating a cxx that does what LuaX is doing, except it would support rendering to the command line as well as html.
Want to team up?
-
Unveiling the big leap in Ruby 3.3's IRB
Reading "big features" like "multi line input" makes me feel more than ever that we really need an ultra light weight embeddedable text editor.
I wrote one, and while it's not yet complete I can say it's really _not that hard_
https://github.com/civboot/civlua/blob/main/ele/README.md
-
22-Year-Old Builds Chips in His Parents' Garage (2022)
Sam was one of my main inspirations in starting http://civboot.org. Awesome to see he's managed to make his own chip now!
- I'm building a self-bootstrapped embeddedable programming environment in Lua
- Civlua: Self contained software to build a minimalist development environment
What are some alternatives?
ruby-lsp - An opinionated language server for Ruby
berry - A ultra-lightweight embedded scripting language optimized for microcontrollers.
microjit-bench - Set of benchmarks for the YJIT CRuby JIT compiler and other Ruby implementations.
ucode - JavaScript-like language with optional templating
go - The Go programming language
zeptoforth - A not-so-small Forth for Cortex-M
Vale - Compiler for the Vale programming language - http://vale.dev/
dmd - dmd D Programming Language compiler
dhall-lang - Maintainable configuration files
hylo - The Hylo programming language
templ - A language for writing HTML user interfaces in Go.
syntax_tree - Interact with the Ruby syntax tree