6 ms·
It's also a bit disingenuous to say it's "on Apple Silicon" when you're running it through a translation layer that won't exist in a few year's time. I'd wager
by smoldesu 5y ago
It's also a bit disingenuous to say it's "on Apple Silicon" when you're running it through a translation layer that won't exist in a few year's time. I'd wager the reason why the GNU folks say it doesn't run on ARM is because... it doesn't. Running it as an x86 program is mandatory, apparently.
- carreau 5y agoWell they do say that they need rosetta just to compile, that once compiled it "works", though I agree it's still too shallow of an article.
- deleted 5y ago[deleted]
- cyberge99 5y agoIs it not running on Apple Silicon?
- maratc 5y agoSo Java, Groovy, Scala, Kotlin and Clojure aren't running on x86, nor ARM, nor Apple Silicon?
- smoldesu 5y agoIn a lot of ways, yes. Their runtimes are so massive that saying they "run" on any of those architectures is a stretch of what is actually happening at a lower level.
- moron4hire 5y agoNo, it's not a stretch at all. This is just nerd contrarianism.
- smoldesu 5y agoWell, let's see. Is there a way for me to run a Java program as native machine code? Or is the code that I'm executing still a runtime that interprets a program?
- maratc 5y agoThe vast majority of the programs in the world are written in Javascript, and there's no way for you to "run" them if by that you mean "natively".
- smoldesu 5y agoI'm comfortable making that distinction. JavaScript isn't executed like normal, native code, so... I still agree.
- maratc 5y agoWhen the majority of programs in the world can't be "run" according to your definition, you might want to reconsider your definition.
- robbedpeter 5y agoYou're redefining the terms, native and interpreted programs are differentiated by the execution layer, and it has nothing to do with where a majority of programs live.
- ithkuil 5y agoSince we're enjoying a nitpick picnic you can compile JS AOT to Java with rhino and then to native code with GCJ
- andrewxdiamond 5y ago> The vast majority of the programs in the world are written in Javascript Where is this coming from? What about the literal thousands and thousands of programs on your OS right now? Or the thousands of systems that power large corporations that predate JavaScript popularity? Sure the language is popular right now, but software development has a much longer history than the last 10 years
- throw10920 5y agoIn "a lot of ways", sure, but definitely not by the most common meaning of "program x runs on y architecture", and not the one being used by most people in this thread. If you ask any random programmer if "Java runs on x86", 99% of them will say either "yes" or "I don't know what x86 is". Similarly, if you ask them "does Kotlin run on the SPARC architecture", they'll say "I don't know" and, if you give them some time to find [1], they'll amend to "no". To be precise: the meaning being used by most programmers (and here) is "either the compiled binaries, the virtual machine, or the interpreter runs directly on the given architecture" - which clearly excludes MIT Scheme running on Rosetta, just as (to take a less controversial example) the fact that might be able to run the JVM on qemu on SPARC doesn't mean that the JVM runs on SPARC. Thinking about the various levels of abstraction of VM's and interpreters is a fun exercise in general, but I don't think it's constructive in this particular situation. [1] https://openjdk.java.net/jeps/381 https://openjdk.java.net/jeps/381
- kaba0 5y agoDepending on code, a quite large fraction of your java code is run as x86 machine code at any times. It hardly gets more native than that.
- jeroenhd 5y agoApple Silicon has a (mostly) hardware translation layer, which this software is running on. There's a special aarch64 build of the software available, so it clearly runs on ARM. Perhaps there's some kind of issue specifically on macOS that makes the existing ARM port incompatible with Apple's ARM implementation?
- simonh 5y ago> Apple Silicon has a (mostly) hardware translation layer… I can’t imagine what you mean by this, Rosetta 2 is a binary translation system implemented in software, based on QuickTransit. There are a few features implemented in Apple Silicon to make translation easier and more efficient, such as supporting Intel memory ordering, but thats about it. I think it’s reasonable to worry about how long rosetta2 will be available. The first version, that allowed Intel Macs to run PowerPC binaries, was available for 5 years. Having said that, there’s no guarantee versions of MacOS beyond 5 years time will run on today’s M1 anyway (though M1 compatible versions will likely still get updates beyond then).
- deleted 5y ago[deleted]
- tardyp 5y agoLooks like QuickTransit was a jit engine which was the base of Rosetta 1. Rosetta 2 is AOT translation.
- simonh 5y agoThey’re both based on QuickTransit, but Rosetta 2 has an AOT mode as well as JIT. I’m sure the R2 engine is more advanced than the original engine, Apple employed several engineers from the original team, but it still uses and is based on licensed tech.
- GeekyBear 5y agoMy understanding is that Rosetta 2 is based on LLVM. Even the company that made QuickTransit is gone now, having been bought out by IBM a decade ago.