[HN Gopher] Show HN: The Sage Programming Language
       ___________________________________________________________________
        
       Show HN: The Sage Programming Language
        
       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!
        
       Author : adamthekiwi99
       Score  : 37 points
       Date   : 2024-01-02 19:45 UTC (1 days ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | tines wrote:
       | Super cool! How is memory managed? Does it do lifetimes like Rust
       | as well?
        
         | adamthekiwi99 wrote:
         | Hello, thanks for checking out the project!
         | 
         | 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)
        
       | ljm wrote:
       | 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.
        
         | adamthekiwi99 wrote:
         | 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!
        
       | mbroshi wrote:
       | FYI, Sage is also the name of a mathematical programming
       | language: https://www.sagemath.org/
        
         | adamthekiwi99 wrote:
         | 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
        
       ___________________________________________________________________
       (page generated 2024-01-03 23:00 UTC)