Live data from Hacker News

Borgo is a statically typed language that compiles to Go

github.com

1–10 of 559 posts

Re: Borgo is a statically typed language that compiles to Go

#4
post #2

Is it correct to say Borgo "compiles to Go", or should it say "transpiles to Go" It appears to be a transpiler (consumes a Borgo and does the work to convert and emit a Go program as text): https://github.com/borgo-lang/borgo/blob/main/compiler/src/c...

Readme says transpile: "Borgo is a new language that transpiles to Go."

And it's written in rust. Kinda unholy.

Re: Borgo is a statically typed language that compiles to Go

#5
post #2

Is it correct to say Borgo "compiles to Go", or should it say "transpiles to Go" It appears to be a transpiler (consumes a Borgo and does the work to convert and emit a Go program as text): https://github.com/borgo-lang/borgo/blob/main/compiler/src/c...

Readme says transpile: "Borgo is a new language that transpiles to Go." And it's written in rust. Kinda unholy.

Yeah, the top of the project says "compiles", then the readme says "transpiles". Perhaps the author was just trying to get all the SEO terms in there.

> And it's written in rust. Kinda unholy.

Agreed, it's like, do you really hate writing Go so much that you'll really write all that Rust to get out of it? Haha. Reminds me of the web frameworks which generated the JS so you didn't have to touch it, like GWT of old.

I'm sure it was a fun exercise to create Borgo, though.

My favorite transpiler is Haxe. It targets so many other languages, the surface area is impressive.

https://haxe.org/

Re: Borgo is a statically typed language that compiles to Go

#7

Why would you target Go?

it's literally the 2nd sentence of README: "It's fully compatible with existing Go packages."

It's a nice way to bootstrap ecosystem IMHO. No one wants to use a brand-new language without library support for common tasks.

Re: Borgo is a statically typed language that compiles to Go

#9
post #2

Is it correct to say Borgo "compiles to Go", or should it say "transpiles to Go" It appears to be a transpiler (consumes a Borgo and does the work to convert and emit a Go program as text): https://github.com/borgo-lang/borgo/blob/main/compiler/src/c...

Transpiler is a kind of compiler

Re: Borgo is a statically typed language that compiles to Go

#10
post #6

Why would you target Go?

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.

Post reply on HN