r/computerscience • u/Dry_Day1307 • Jun 19 '26
General DinoCode v0.2.0 - My own programming language built in Rust is now open source
I have been developing this idea for years. If you review my GitHub, you might find some very old, primitive versions from back when it was just an editor with an experimental language built in. I even wrote one of the very first iterations in AutoHotkey! However, this current version has nothing to do with that past chaos. It was written entirely in Rust.
What makes DinoCode different? The language design focuses on reducing syntax friction by using a principle called inference of intention. Traditional delimiters and symbols are optional. If you choose to omit them, the language infers what you meant to do based on logical rules detailed in my graduation research, which is written in Spanish since I am from Ecuador. Technically, the parser bypasses the traditional AST creation, emitting Reverse Polish Notation (RPN) bytecode directly to a custom stack-based virtual machine.
What is new in v0.2.0?
- Real Interactive Console: It supports real-time keyboard inputs and execution pauses without freezing the browser main thread.
- Live Flowcharts: As you type, the platform generates and updates a visual flowchart of your program logic instantly.
- Bytecode Inspection: You can view the exact bytecode generated by the compiler and executed by the VM in real time.
- Full Documentation: I personally wrote comprehensive guides, complete with executable code blocks right inside the browser.
I decided to open source the entire codebase. I hope it can be useful to anyone studying compiler design. The repository is wide open for feedback, questions, Issues, and Pull Requests.
Link to Web Platform (Live Playground and Repo): https://dinocode.blassgo.dev
View all comments
Show parent comment
8
u/emmowo_dev Jun 19 '26 edited Jun 19 '26
well as a language it reads like someone's idea of a really simplified BASIC (with macros) but merged with Bash and modern OOP without the benefits of either. I know it's turing complete so in theory anything is possible, but it just feels odd.
That's part of my initial thought, because it didn't seem like a sound implementation, especially as an object-oriented language which I feel nowadays calls for at least an ability to hint type like in Python.
Like for one, the handling of 'functions' in this language feels like a compromise between the existing C-style method, and whatever they're trying to do with the whitespaced args.
like having no AST means that you cannot implement functionality such as functions in the properly efficient manner, and you can't really do proper optimizations outside basic simplifications.
My overengineered 1kloc, half-JSON dialog scripting language has more granular control flow since I implemented regex and switch-cases halfway through to reduce the amount of writing I had to do for a game.