A programming language similar to Python that compiles to Rust or Go will be amazing.
Lisette a little language inspired by Rust that compiles to Go
21–30 of 168 posts
Re: Lisette a little language inspired by Rust that compiles to Go
#22There are several languages that compile to Go, trying to be a better a Go. Off the top of my head: XGo ( https://github.com/goplus ), Borgo ( https://github.com/borgo-lang/borgo ), Soppo ( https://github.com/halcyonnouveau/soppo )...
How do compile errors propagate back from the target language to the source language?
Re: Lisette a little language inspired by Rust that compiles to Go
#23A programming language similar to Python that compiles to Rust or Go will be amazing.
Last commit was 9 years ago though, so targets Python 2.7.
Re: Lisette a little language inspired by Rust that compiles to Go
#24A programming language similar to Python that compiles to Rust or Go will be amazing.
Re: Lisette a little language inspired by Rust that compiles to Go
#25Re: Lisette a little language inspired by Rust that compiles to Go
#26Oh look, a better syntax than the Go team could design!
Re: Lisette a little language inspired by Rust that compiles to Go
#27Re: Lisette a little language inspired by Rust that compiles to Go
#28Earlier quoted context omitted.
OCaml has a lot of other cons though that Rust doesn't have. I would definitely pick Rust over OCaml even for projects that can tolerate a runtime with GC pauses. (And clearly most people agree.)
What cons?
Still, where absolute max performance or realtime are not required, I'd choose OCaml as it is elegant & a pleasure to code in (personal opinion, ymmv).
Re: Lisette a little language inspired by Rust that compiles to Go
#29Looks great. But I can't help wondering: If it is similar to Rust why not make it the the same as Rust where it feature-matches? Why import "foo.bar" instead of use foo::bar? Why Bar.Baz => instead of Bar::Baz =>? What are you achieving here? Why make it subtlety different so someone who knows Rust has to learn yet another language? And someone who doesn't know Rust learns a language that is different enough that the…
Re: Lisette a little language inspired by Rust that compiles to Go
#30I love Rust for what it is, but for most of my projects, I can’t justify the added complexity. Sure, there are a bunch of things I miss from the Rust world when I’m working on large-scale distsys services in Go, but introducing Rust in that space would be a recipe for disaster.
I guess the Go team knows that if they start adding everyone’s favorite Rust features, the language would become unrecognizable. So we’re not getting terser error-handling syntax or enums. Having union types would be nice too.
But I work in platform engineering, so my needs are quite different from someone writing business logic in Go. I understand that having a more expressive syntax is nice when you’re writing complex business code, but in reality, that almost always comes with a complexity/fragility tradeoff. That’s part of the reason no one wants to use Rust to write their business logic, despite it being so much more expressive.
For distsys, programming ergonomics matter far less compared to robustness and introspectability. So the Go runtime with Go syntax is perfect for this. But of course, that’s not true for all use cases.
Sorry for the rant - completely uncalled for. This is a cool project nonetheless :)