by kaba0 · 3y ago · 0 comments
JS is not a serious contender in the space. OCaml and Haskell fit better, but with a much different language paradigm.
Also, rust is not a backend language, it can be used for that, but that’s definitely not its main appeal.
TamaGo, used to write the firmware used in USB armory.
https://www.withsecure.com/en/solutions/innovative-security-...
TinyGo, which even has official Arduino and ARM support, and is sponsored by Google
Ah but that isn't proper Go.
Well neither is the C code that is allowed to be used in typical kernel code, almost nothing from ISO C standard library is available, and usually plenty of compiler specific language extensions are used instead.
You are the one who always mention stuff like gcj - how is that, available at Java 1.2 times, any different than Go, in a fundamental way?
I don't think it's likely that a presentation about Zig is stealth marketing for Go. It seems more likely that the presenter, say, didn't think as many people in the audience would be familiar with Haskell, or maybe doesn't personally care for JavaScript.
It’s obviously not coming from the presenter, but it is waay too common to see Rust and Go in the same sentence, when it is just dumb in most contexts.
Which is all to say, comparing Go to Rust makes a lot of sense to me.
How many production systems use Rust as their backends? Sure, it has 3 half-baked frameworks going on for it, but it is nothing like Spring, asp.net, python’s django, RoR, etc feature wise. It is as much a backend language as haskell is, hell, I’m quite sure there are much more haskell backends buzzing somewhere, than do rust ones, and even that is insignificant.
If Go is a low-level language, is OCaml, Haskell, C# and Java also that? They all are (or have ways to) AOT-compiled to a single binary that contains their runtime as well, there are zero differences to Go. Hell, all of them have arbitrary pointer manipulation as well, even if it doesn’t have specific syntax in every case, but it is a special library call. So there is an objective distinction in how Rust or Zig fundamentally operates compared to these.
For instance the three languages listed in the title were organically brought up when discussing zigs cross compilation features (~14m into the video) because it still manages its cross compilation even for cgo and rust with c or c++ ffi.
Perhaps OP remembers this like I do?
I'm aware that Go has more-or-less become a language for writing webapps, but once upon a time the team had loftier goals.
I abandoned pursuing the language when these plans were dropped. My interest in working on anything web-related died around 2003 or so.
Go is always compared to Rust for some godforsaken reason.
I didn't make this claim.¹
With that being said, high(er)-levels languages can be used for OS development and the like. There's considerable work in providing the underpinnings necessary for the abstractions, but it's doable and has been done.
There are plenty of archived discussions from the nascent-Go days on this topic. Using Go in the places C is used was discussed and, given that a directory named "freestanding" exists in the source tree from that time, I'm inclined to believe it was seriously considered.
[1] Also, FWIW, C is not a low-level language. As with any other systems language, a generous amount of work has to be done in order to make its abstractions map to the computer architecture. A macro assembler is a low-level language.