Live data from Hacker News

The Borgo Programming Language

borgo-lang.github.io

61–70 of 204 posts

Re: The Borgo Programming Language

#62

Earlier quoted context omitted.

Rust with GC is actually what many people want. And by that I don't mean using Rc everywhere nor do I even mean making a GC library and then using GC everywhere. I mean having the runtime handle all memory things with you having to think about it only when some extremely rare corner case breaks.

That sounds like C#? https://learn.microsoft.com/en-us/dotnet/standard/memory-and...

You are correct, C# straddles that line better than any other language right now imo thanks to the APIs you linked. There was a good write up about this Rust vs C# Span comparison on HN a few weeks ago but the link escapes me

Re: The Borgo Programming Language

#63
post #6

I love it. This is a language that everyone here says they want but no one will use, even though it's stable and mature (I assume because it compiles to stable and mature Go and can use every existing Go library). It hits all the "ok, Go is popular but made by morons for morons and if only it had this X advanced feature, it would be totally great". It has immutability. It has advanced enums. It has algebraic types. I…

> Because the harsh truth is that none of those things are actually big issues that would justify learning slightly different syntax. The syntax has nothing to do with it, you already know the syntax. I'm fairly confident most people reading this comment can program in this language right now, without opening the docs. The reasons I won't be using it are: 1. It's a source to source transpiler - even when done nearly…

Top 50 is incredibly generous. I wouldn’t use anything outside of the top ~20 for anything I’d be getting paid to produce.

https://survey.stackoverflow.co/2024/technology#most-popular...

The most important factor for a language is Big Tech backing. Little squabbles on syntax or language features or philosophies are entirely secondary.

Re: The Borgo Programming Language

#64
post #56

Go deserves to get TypeScripted. Another effort in this vein is Go+ https://github.com/goplus/gop

How do you figure this. Javascript got TypeScripted because it was forced on us by browsers.

Is there an equivalent api that forces the use of Go? None that I know of. Maybe there are some domains where you need access to specialized Go packages that would be hard to recreate in another language. I see that sometimes with C and C++, but I haven’t seen it with Go.

As a happy Gopher, I’m aware I probably have blind spots about this.

Re: The Borgo Programming Language

#65
post #4

The graph showing complexity against type safety is nice. I'd love to see it as a scatter plot with C and Haskell and MUMPS for example. Nevermind how to quantify those things of course.

I've no idea how to quantify such things.

I do know that adding C to that graph would require changing the Y axis to a logarithmic scale.

Re: The Borgo Programming Language

#66
Might I suggest a purple logo, since its half Go (blue) and half rust (reddish). Lol

This fills a pretty good niche. There are several backend APIs that I want to use rust for, but ends up adding so much upkeep and complexity to deal with, but Go leaves errors uncaught.

Re: The Borgo Programming Language

#67
post #5

That's very close to what I want, I wonder if we'd ever have customization for programming languages on the client side but when pushing to git it would get transpiled to the most common subset. A small change I would have loved at first glance would be the double colons (::) for namespace path along with explicit extraction and pub for public types.

> but when pushing to git it would get transpiled to the most common subset. What about the other direction? I don't think it will be very useful to not be able to read the exact code you wrote after the fact. Feels like writing a book but every sentence you enter is instantly rephrased by ChatGPT to sound more convoluted.

I was assuming that each contributor would have their custom rules on what the code looks in their editors. I agree that we should have a different solution so everyone reads the exact code they wrote in the style and format they wrote it...; Scratch all that, the more I think about it that sounds like a very bad idea, what about pair programming, collaboration, being able to talk about some parts of the code or it's design? Back to Go and Rust for me :)

Re: The Borgo Programming Language

#68
post #6

I love it. This is a language that everyone here says they want but no one will use, even though it's stable and mature (I assume because it compiles to stable and mature Go and can use every existing Go library). It hits all the "ok, Go is popular but made by morons for morons and if only it had this X advanced feature, it would be totally great". It has immutability. It has advanced enums. It has algebraic types. I…

Who are you talking to?

Some people don’t like Go but have no reason (or something compelling them) to use it. So they use other languages. They don’t need a new source-to-source compiler. Your point is moot for this group.

But some people might have to use it. So this language is at least relevant to them. If indeed it addresses all of the complaints. But that might be hard for a language which only compiles to that other language to do.

Re: The Borgo Programming Language

#69
post #8
post #2

The original ShowHN https://news.ycombinator.com/item?id=36847594

See also https://news.ycombinator.com/item?id=40211891 , which has the bulk of HN discussion about Borgo

Thanks! Macroexpanded:

Borgo is a statically typed language that compiles to Go - https://news.ycombinator.com/item?id=40211891 - April 2024 (545 comments)

Show HN: Borgo – a Rusty language that compiles to Go - https://news.ycombinator.com/item?id=36847594 - July 2023 (8 comments)

Re: The Borgo Programming Language

#70
This looks neat, but I think requiring declaration files makes interop with Go code tedious enough that nobody will bother (along with all the usual maturity arguments). I'd prefer it if this was using the Go compiler as a library to get all necessary information automatically, or if it was a straight up fork of Go.
Post reply on HN