4 ms·
> Also other popular languages like Rust and Go work well even on weird architectures and little known operating systems As someone working on porting “everyth
by saagarjha 6y ago
> Also other popular languages like Rust and Go work well even on weird architectures and little known operating systems
As someone working on porting “everything” to a decidedly not weird architecture and a very well known operating system, I chuckle a bit because neither language works right now. Not even their dependencies work. It’ll be a while before they will be supported.
(Swift works perfectly, but it would be unfair to compare it because it had a strong investment made in it to work…)
- hellofunk 6y ago> decidedly not weird architecture and a very well known operating system Can you say which ones? It's hard to place your comment without details.
- tomstuart 6y agoThe context implies it’s macOS on Apple silicon.
- qalmakka 6y agoIn that case the comment makes no sense - the details of AArch64-based Macs have been made public just a few weeks ago. It takes a while to do port and test for a new platform, even if iOS was already supported.
- jpace121 6y agoIt’s implied the OP isn’t considered part of the “public” for this issue.
- saagarjha 6y agoNo, I learned of it the same time you did, although I had a fairly good idea about when this was coming for a few years ;) And while I have a bit of additional information now, it's nothing that would really be useful for porting.
- officeplant 6y agoUnless they work for apple. Those on the inside have been toying with it for a while now.
- saagarjha 6y agoNope, just a third-party developer who until June knew of "aarch64-darwin-xnu" as "iOS" ;)
- saagarjha 6y agoYup, that’s what I’m doing. Just offering my comments on how difficult some projects are to port: some require no new code and some will require quite a bit, and some will be blocked on their dependencies being in the latter camp :)
- Abishek_Muthian 6y agoI've been running production grade Go apps[1] on aarch64 servers for ~ a year, written on macOS(x86_64), tested on aarch64 before deployment and never faced a single instance where something didn't work because of the architecture. These are the benchmarks for different ARM platforms[2], where I had submitted one for Jetson Nano a year back and now it seems there's one for Apple Silicon. I'm not telling, no one would ever find cross platform issues with Go; I'm just curious to know what issues you have faced and whether it's because of Apple's extension of ARM instructions. [1]https://needgap.com https://needgap.com [2]https://github.com/golang/go/wiki/GoArm#jetson-nano https://github.com/golang/go/wiki/GoArm#jetson-nano
- saagarjha 6y agoThe comment wasn’t really an attack on the languages being unportable itself but more that their toolchains are complicated and not very flexible, requiring a decent amount of additional work for new architectures, whereas a lot of the “./configure && make” style projects already work. Apple’s proprietary extensions don’t really affect porting efforts except in one specific case when writing high-performance JITs for language runtimes. (And there is a fairly simple patch to disable this entirely.)
- Abishek_Muthian 6y ago>chuckle a bit because neither language works right now. Not even their dependencies work. It’ll be a while before they will be supported. I'm not sure what's preventing you from giving a direct & specific answer. As it would be useful to know where Rust/Go's toolchains fail for using the code for cross - platform applications.
- saagarjha 6y agoRust is blocked on libffi, as are most things using Python (which includes cmake, and that precludes all of LLVM). I downloaded the Go bootstrap and it tried to link against crt0 directly and it's either looking up the wrong one or there is none for aarch64. It's also looking for a file called defs_darwin_arm.h which I don't have. Some warnings that will probably be problematic at the future related to the ABI defining char to be signed.
- oblio 6y agoYes, because MacOS on ARM is a super common architecture in July 2020 :-)
- saagarjha 6y agomacOS works, ARM has support for years; for many projects all you need to do is pass in the flags requesting support for both and they work pretty much out of the box. Some get a little confused about how such a thing could possibly exist, but I can’t really fault them for that :)
- oblio 6y agoThe problem about assumptions is that we can't live with them, but we can't also live without them. Many so-called "cross platform" projects have had big surprises when it actually came time them to be ported to other platforms. It's extremely rare for a project which has never been compiled and launched on another platform to actually require 0 porting effort for that platform once actually required to run there.
- saagarjha 6y agoYes, for all but the simplest or most abstracted projects sticking steadfastly to standardized features this is fairly hard to do. But the closer you stay stick to that, the more platforms your projects has been through, the more foundational (and less dependency-heavy) your project is, the more likely it will port with few or any changes. My preferred shell and text editor, for example, required zero changes; as did many core tools such as ncurses or make or autoconf. And on top of those it was easy to get things like perl or ninja up with perhaps a small tweak to their configure script or something.
- oblio 6y agoThe lowest common denominator leads to working with Stone Age tools. I'm not surprised that not everyone goes that route. And regarding your porting, Perl, sure, was easy to port. What about CPAN? Want to bet how many Perl libraries will keel over? Same thing for Ruby/gems, Python/pip, etc. Don't get me wrong, your work is nice, but the people that build on top of your work outnumber you by 2-3-5 orders of magnitude and not all of their porting efforts will be trivial.