Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adamthekiwi99
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
adamthekiwi99
3y ago
That's right! I think it's a good balance between giving the typechecker the info it needs, but also being flexible in how you can supply it!
2.
▲
by
adamthekiwi99
3y ago
Hello, thanks for the great question! Yes, you do have to specify where a variant comes from, but it doesn't have to be nominal at all! Here's an example: ``` enum Option<T> {Some(T), Nothing} // Create a value wit
3.
▲
by
adamthekiwi99
3y ago
I'll have to check it out and reimplement it's good features for THIS Sage hahaha
4.
▲
by
adamthekiwi99
3y ago
How long until we enumerate all the herbs?!?!?!?!?! The pantry's almost empty!!!
5.
▲
by
adamthekiwi99
3y ago
My major constraint is just that the name must lend itself well to artistic representations and fun mottos/slogans hahaha! I love these suggestions, especially Moss and Ivy! Thank you!
6.
▲
by
adamthekiwi99
3y ago
Hahaha I doubt there's an English word left!!!
7.
▲
by
adamthekiwi99
3y ago
Thanks for the great question, and for checking out the project! This project started out because I noticed some really interesting properties about compiling brainfuck-like programming languages while writing high level language compilers
8.
▲
by
adamthekiwi99
3y ago
I like it! And if that's trademarked too I could always fall back on "spearmint" instead haha
9.
▲
by
adamthekiwi99
3y ago
Thanks so much! I originally added it to experiment with the structural typing -- the type system is a really cool foundation for some awesome future stuff! Thanks for checking out the project, I'm glad I was able to surprise you haha!
10.
▲
by
adamthekiwi99
3y ago
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
11.
▲
by
adamthekiwi99
3y ago
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
12.
▲
by
adamthekiwi99
3y ago
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 check
13.
▲
Show HN: The Sage Programming Language
(github.com)
114 points
by
adamthekiwi99
3y ago
|
28 comments