Live data from Hacker News

Show HN: The Sage Programming Language

github.com

1–10 of 32 posts

Show HN: The Sage Programming Language

#1
Sage is a Rust-like programming language built on a brainfuck-inspired VM with LLVM-like properties. https://github.com/adam-mcdaniel/sage

Check out the web-demo to run the compiler in the browser, along with a graphical example using JavaScript interop! https://adam-mcdaniel.net/sage

Sage is designed to be portable, but also useful. To prove its usefulness, I used it to implement a user-space for a new operating system: SageOS https://github.com/adam-mcdaniel/sage-os The language also runs on embedded devices, like the flipper zero!

Show HN: The Sage Programming Language
github.com

Re: Show HN: The Sage Programming Language

#4
post #3

Super cool! How is memory managed? Does it do lifetimes like Rust as well?

Right now, memory is managed like C or C++, but I intend to implement lifetimes in the frontend eventually.

But definitely no garbage collection (although, a target could implement it against the standard and it would work)

Thanks for checking out the project!

Re: Show HN: The Sage Programming Language

#7
post #6

May I suggest replacing the screenshots of code in your readme with just the code? I mean, it's hard to tell but it basically looks exactly like Rust but without lifetimes/borrow checks.

Hello, yes, I'll go back and add some text examples as well. (I didn't like how GitHub does syntax highlighting though :/)

I put all the example programs in text on the web-demo, though, if you want to see more there! You can copy, read, or modify them there!

https://adam-mcdaniel.net/sage

It's different from Rust in that it has structural typing and a more Python-like experience! Types are constants, and can be printed with `print` like other values

Thanks for your input! I hope you like the project!

Re: Show HN: The Sage Programming Language

#9
post #8

FYI, Sage is also the name of a mathematical programming language: https://www.sagemath.org/

Thank you!! Sage will eventually change its name (I just recently found out about this), but I haven't had time to come up with a good replacement name and make art + quippy sayings for it yet! :)

I might just go with a completely made up word to avoid any trademarks entirely haha

Post reply on HN