3 ms·
The compiler/transpiler distinction is very blurred. Nobody disputes that LLVM-IR-targeting compilers compile programs, but the LLVM IR is not an executable. `j
by ivanbakel 6y ago
The compiler/transpiler distinction is very blurred. Nobody disputes that LLVM-IR-targeting compilers compile programs, but the LLVM IR is not an executable. `javac` "compiles" programs, but the JVM bytecode is not machine code.
There's also no need to "figure out" that it compiles to C. That's in the second line of the front page.
- tyingq 6y agoI went straight to looking for code samples. Hence, "figured out". And I thought I was clear that transpiling to C made sense to me for this space. You seem to be reading something in my comment that I didn't intend to be there. Apologies for any unintended odd tone.
- turbinerneiter 6y agoMaybe don't to straight for code examples? They have a pretty good write up about the design of the language. Programmers are all hung-up on syntax, when semantics are key.
- ReactiveJelly 6y agoHere is the Rust book explaining ownership with lots of syntax-highlighted code examples: https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html https://doc.rust-lang.org/book/ch04-01-what-is-ownership.htm... The 2nd search result for "golang goroutines" is gobyexample.com, which is 1 page, half of which is code: https://gobyexample.com/goroutines https://gobyexample.com/goroutines I need to see code to understand semantics. Otherwise I'm being asked to visualize something that is better displayed on-screen. Why am I doing the computer's job?
- tyingq 6y ago"Maybe don't to straight for code examples?" Pretty sure that isn't just me. It's a common path that works better if you have the docs for it, versus "download this tar.gz file". Had I been on my desktop, that would have worked okayish. My mobile doesn't like tar.gz files, so I was stuck. It's an opportunity to grow with mimimal effort.
- amedvednikov 6y agoI guess it's the quotes you used: "compiler".