Earlier quoted context omitted.
This is a terrible take. It's like one of those people who buys a massive over priced knife block with 48 knives in it that they never use. Most go devs have lived through bloated java/php/python/ruby/js projects that become a pile of dependencies. Go is to coding what brutalism is to architecture. Simple, functional, efficient. Dont build a massive dependency chain, dont build magic, repeating yourself is OK. Be an…
I'm not sure why you included php in your list of examples of things that become bloated with dependencies. I've never seen that be the case.
Borgo is a statically typed language that compiles to Go
131–140 of 559 posts
Re: Borgo is a statically typed language that compiles to Go
#132Earlier quoted context omitted.
They produce text, such as Golang source code.
Thanks for your response, but the Go spec asserts that Go source is represented as UTF-8. UTF-8 is a binary encoding. We're talking about compilers that produce something other than binary output.
Re: Borgo is a statically typed language that compiles to Go
#133Great! Something I've always wanted. I'd love to be able to use a bit more type-y Go such as Borgo, and have a Pythonesque dynamic scripting language that latches onto it effortlessly. Dynamic typing is great for exploratory work, whether that's ML research or developing new features for a web app. But it would be great to be able to morph it over time into a more specified strongly typed language without having to r…
Sounds like JavaScript and typescript would be a good fit for you. Highly expressive, dynamic and strongly typed, and highly performant both on server side and within the browser.
Re: Borgo is a statically typed language that compiles to Go
#134Great! Something I've always wanted. I'd love to be able to use a bit more type-y Go such as Borgo, and have a Pythonesque dynamic scripting language that latches onto it effortlessly. Dynamic typing is great for exploratory work, whether that's ML research or developing new features for a web app. But it would be great to be able to morph it over time into a more specified strongly typed language without having to r…
I like the idea but in all honesty I have difficulty imagining it working in practice. Once your python code is stable (i.e. You've worked out 99% of the bugs you might have caught earlier with strict type checking) would there be any incentive to go back and make the types more rigid or rigorous? Would there be a non-negligible chance of introducing bugs in that process?
Re: Borgo is a statically typed language that compiles to Go
#135I like the graph at the top of the readme as a summary. The rest of the readme focuses on the delta between Go and Borgo. It doesn't say much about the delta between Borgo and Rust. I think the delta there is mainly no lifetimes/ownership?
Re: Borgo is a statically typed language that compiles to Go
#136Would it be possible to make a Python (without C extensions) that compiles to Go?
You could of course write a bytecode VM in Golang but I guess that defeats the purpose.
Re: Borgo is a statically typed language that compiles to Go
#137This and pub/private modifiers for structs instead of letter casing is all I've ever wanted.
I love Go's letter casing. It's such a neat way to remove cruft.
Re: Borgo is a statically typed language that compiles to Go
#138The only language I can think of that has pulled off “compiles to another totaling language” and gained mainstream adoption is typescript, and I’m sure it wouldn’t have done so if it were possible to run in the browser otherwise. Can anyone think of another example?
clojurescript is fairly popular too.
Re: Borgo is a statically typed language that compiles to Go
#139Earlier quoted context omitted.
It's a language known for having a great runtime and tooling but subpar language semantics. Makes sense to me, at least. Most of the benefits of go with fewer drawbacks.
I'm not trying to be argumentative, I'm genuinely curious: what is it about the go runtime and tooling that makes them great? I did not post your parent comment.