News for hackers. Stuff that matters.
Re:OpenJDK Comes to Windows 10 on ARM by kweinber on Monday August 03, 2020 @09:56AM (#24037783)
With Apple Silicon being implemented on ARM architecture as well, we are seeing a major shift to ARM in general. I’d expect major OS makers to accelerate ports to ARM.... Linux should follow suit..... as hardware makers start tailoring platforms, we don’t want Linux locked out of the house.

Edit: My concern was that Apple or MS would have divergent hardware and other support with firmware variations in their “custom” implementations. Kinda like the hardware driver issues Linux has had for years, but now burned into firmware.

Re:OpenJDK Comes to Windows 10 on ARM by giancarlostoro on Monday August 03, 2020 @10:03AM (#24037889)
Theres been plenty of ARM support on Linux the issue if I am not mistaken is that ARM isnt a processor its a spec you license and manufacturers go from there so code between processors should be completely icompatible even within the same manufacturer. You see discussions about it on HN plenty of times. Theres plenty of ARM based devices out there though due to the rising popularity of SBCs. Then we have the Pinebook and similar devices.
Re:OpenJDK Comes to Windows 10 on ARM by my123 on Monday August 03, 2020 @10:28AM (#24038155)
> code between processors should be completely icompatible even within the same manufacturer

Hello,

Arm is explicitly managed to prevent such a scenario to happen. Where things can and do diverge is the boot mechanism and peripherals, even if it has been getting better with time. (Arm servers and Windows on Arm machines using UEFI + ACPI)

However, for user-mode code, compatibility is mandated and checked by Arm, even for designs not made by them. As such, don't worry about it.

Re:OpenJDK Comes to Windows 10 on ARM by giancarlostoro on Monday August 03, 2020 @10:38AM (#24038256)
Ah this is the bit I was not aware of! Thanks for that, I pick up bits of knowledge about ARM as people share them.
Re:OpenJDK Comes to Windows 10 on ARM by timthorn on Monday August 03, 2020 @10:18AM (#24038043)
That's true in embedded and mobile, but not the case in the server space. The platform has been standardized so that the same Linux ISO will work on any mainstream Arm server.

https://developer.arm.com/architectures/platform-design/serv...

Re:OpenJDK Comes to Windows 10 on ARM by my123 on Monday August 03, 2020 @10:24AM (#24038116)
Windows on Arm machines ship with UEFI and ACPI by design, using the same specs as in Arm server land.*

* minus quirks/some deviations from the spec because Qualcomm

Re:OpenJDK Comes to Windows 10 on ARM by rev_d on Monday August 03, 2020 @10:19AM (#24038062)
I'm wondering if the solution to this involves shipping more software via something like the AUR (Arch User Repository) rather than in binary packages.

It's not necessarily sane to maintain binaries for each and every device flavour, but as long as the code is reasonably portable & each manufacturer keeps their LLVM IR/JVM bytecode backends in order, that might be enough to overcome some of the pain.

I've always found Arch distributions to be more usable on ARM systems than Debian distros simply because they user-friendly ways of building & installing from source. Building from intermediate representation might be the right mix of obfuscation, performance, friendliness, and portability for the consumer space.

Re:OpenJDK Comes to Windows 10 on ARM by aseipp on Monday August 03, 2020 @11:59AM (#24039398)
It's not really an issue on "desktop class" devices you want to run Linux on and similar to x86 in practice. When people say "modern ARM devices" they are always talking about 64-bit ARMv8. Of those available chips, there simply aren't many differences in terms of available ISA features. All of the "real" differences come down to microarchitectural ones e.g. Cortex-A53 vs Cortex-A55 or whatever. But Linux distros don't need to maintain builds for all of those uarchs, anymore than Debian needs to maintain separate builds for "Haswell vs Skylake vs Zen2" on x86. You can of course compile from source and make this distinction yourself. But it's basically par for the course, like it has been in the x86 world for a while.

The reasons most ARM devices require special "builds" for $YOUR_FAVORITE_OS almost entirely comes down to bootloader/peripheral nonsense. There wasn't (until recently) any standardized way to discover devices attached to your favorite ARM chip, nor any standard boot protocol, like we have in the x86 world. Therefore every device needed its own little description of the attached peripherals and (often) needed a little support in the bootloader -- uboot -- to accompany it. Therefore there are normally device-specific kernel/bootloader packages in your favorite distro, and specific installation instructions, but not every package needs this treatment. Once you install the distro, you can use the same ARM userspace binaries/packages as any other device, more or less.

However, ARM is now settling on ACPI/UEFI like in the x86 world to handle booting and peripheral discovery in a generic manner. You can, for example, use UEFI/TianoCore on the Raspberry Pi 4 today, and boot generic ARMv8 distro images of your choosing, just like you do with x86 systems.

Re:OpenJDK Comes to Windows 10 on ARM by giancarlostoro on Monday August 03, 2020 @11:17AM (#24038763)
I think providing source based installations should be a secondary approach to distros that do provide prebuilt binaries. The benefit to prebuilt binaries is basically you only need to download it, not wait hours and hours for sources to build, plus no need to pull down every developer only dependency.
Re:OpenJDK Comes to Windows 10 on ARM by frant-hartm on Monday August 03, 2020 @10:02AM (#24037866)
There are several billions of of devices running ARM and Linux - most Android phones.
Re:OpenJDK Comes to Windows 10 on ARM by fortran77 on Monday August 03, 2020 @01:57PM (#24041058)
And many millions on Rasperry Pis.
Re:OpenJDK Comes to Windows 10 on ARM by foepys on Monday August 03, 2020 @10:10AM (#24037968)
Windows has been available for ARM since 2012, called Windows RT back then. macOS is actually the last of the popular operating systems to port to ARM, not the first.
Re:OpenJDK Comes to Windows 10 on ARM by asutekku on Monday August 03, 2020 @10:30AM (#24038181)
As usual with Apple's products, Apple is hardly ever the first one to do thing X. What they are is that they are usually the first ones to do the thing X so well that the public will adopt it. And that's what matters in the end, not who was first.
Re:OpenJDK Comes to Windows 10 on ARM by moooo99 on Monday August 03, 2020 @11:04AM (#24038582)
The big differenc is, following Apple's announcement, that they want to avoid that the users even realize there is an Arm CPU inside.

My dad had a Surface RT a few years ago (I cannot recall how long exactly). But you definitely did realize something was "different" with this thing.

I think Apple has a better chance at achieving this broad acceptance than MS has because they have a lot more control over their ecosystem and hardware. People actually seem to use their frameworks for building apps, for App Store as well as direct downloads. Unlike Microsoft who still has not managed to convince developers to move to UWP apps.

I actually don't hate using the Mac App store on my machine, but I haven't used the Microsoft Store ever since I first tried it. And for lots of more casual users, they probably actually won't realize that there is a difference between the architectures.

Re:OpenJDK Comes to Windows 10 on ARM by mixmastamyk on Monday August 03, 2020 @02:20PM (#24041361)
That sounds like a major point, but given the existence of iOS and custom chips, they are not behind on ARM expertise. Rather on the forefront.
Re:OpenJDK Comes to Windows 10 on ARM by coldtea on Monday August 03, 2020 @04:25PM (#24042931)
iOS, which is the macOS/OS X userland and kernel with different higher level development APIs and a few things toggled, has been ported and running on ARM for at least 5 years before 2012... (more if we include the iPhone development period).
Re:OpenJDK Comes to Windows 10 on ARM by my123 on Monday August 03, 2020 @10:22AM (#24038096)
Apple was the first to ship Arm 64-bit hardware back in 2013. For the Arm macs, they waited until everything was ready, with them being competitive across the whole range.

Microsoft instead cornered the laptop/tablet with integrated modem for Windows on Arm (64-bit), which allowed them to ship much earlier.

Re:OpenJDK Comes to Windows 10 on ARM by slezyr on Monday August 03, 2020 @09:58AM (#24037810)
Have you ever heard about Raspberry Pi?...

Linux has been there entire time

Re:OpenJDK Comes to Windows 10 on ARM by chrisseaton on Monday August 03, 2020 @10:02AM (#24037874)
Lots of software works on ARM on Linux... but it doesn’t always work as well as on Intel. I think there’s quite a lot of work to be done to get various parts of a complete distribution working as well as we’d like for server and desktop usage, outside of the more limited embedded role it’s already widely deployed in.
Re:OpenJDK Comes to Windows 10 on ARM by icegreentea2 on Monday August 03, 2020 @10:23AM (#24038106)
What types of "doesn't work as well" are you thinking about? My understanding of where ARM "doesn't work as well" is something like these areas:

* The underlying code is relying on x86 features or is x86 ASM. In that case ya... this is going to be a bit rough - but is a super minority, especially for use cases where you'd want to use ARM

* The runtime or compiler hasn't been ported to ARM yet. For compilers, I don't think this is a problem - I think both clang and gcc are completely ready to go for armv7 and arm64. Go is good to go too. Runtimes is a bit more dodgy, but all the major (Java, C#, Python, Ruby, Perl, Javascript/Node) languages and runtimes are just fine. Maybe the only one out is rust, which doesn't have ARM as Tier 1 supported (but should just work) yet.

* Hardware support. There may not be good open source drivers for various ARM specific hardware blobs.

What else were you thinking of?

Re:OpenJDK Comes to Windows 10 on ARM by chrisseaton on Monday August 03, 2020 @10:34AM (#24038219)
Java compilers with missing intrinsics is what surprises me in my case.
Re:OpenJDK Comes to Windows 10 on ARM by aseipp on Monday August 03, 2020 @12:17PM (#24039657)
There's a long tail of various issues to sort out and "language runtimes that have all the kinks ironed out" is definitely one of them. But I think that's just always going to be the case for any alternative trying to get up to speed with an incumbent player that has a decades-long head start. And most of it works fine today, anyway. Micro optimizations in HotSpot or whatever isn't what's holding people back from desktop ARM machines. (If any language could make a difference here, I'd actually argue it's JavaScript being optimized because it's vital to web browsing, but luckily that got sorted out years ago thanks to mobile handsets.)

Plenty of things work very well and I'd think most people would rate those working as far more important than small compiler tweaks. NVMe, GPU support etc is vastly more important to me than compiler micro-optimizations, for instance, because those actually make day to day developer usage viable. No amount of compiler optimizations will make SD cards fast. And today, you can boot generic Linux images for whatever distro, using UEFI, on high-speed ARM systems, with fully working desktops -- including working FOSS GPU drivers, full web browsers (with working javascript JITs), and high speed storage. So I think it's shaping up pretty nicely.

Re:OpenJDK Comes to Windows 10 on ARM by MaxBarraclough on Monday August 03, 2020 @10:46AM (#24038369)
By missing intrinsics do you mean you get an error if you try to use the intrinsic, or do you mean the compiler fails to map the intrinsic to the fastest instruction/instruction sequence?
Re:OpenJDK Comes to Windows 10 on ARM by chrisseaton on Monday August 03, 2020 @11:12AM (#24038689)
I mean the compiler calls a runtime routine instead of being able to insert specialised code for it.
Re:OpenJDK Comes to Windows 10 on ARM by xioxox on Monday August 03, 2020 @01:33PM (#24040756)
x86 has much stronger guarantees about memory ordering compared to ARM [1]. Maybe this comes under x86 features, but multithreaded software will not work if assumptions of memory ordering guarantees are made.

[1] https://en.wikipedia.org/wiki/Memory_ordering

Re:OpenJDK Comes to Windows 10 on ARM by blitmap on Monday August 03, 2020 @11:03AM (#24038568)
My naive understanding is ARM devices traditionally use a static, unchanging "device tree" specification to bring up hardware on boot. There's a project for implementing UEFI firmware for the Raspberry Pi - as one ARM device - so that you can take any unmodified (ARM-built) Linux that would boot off of EFI and it will Just Work (tm).

I've been using it:

https://github.com/pftf/RPi4 https://rpi4-uefi.dev/

Actually what I've been doing is using my wireless router (openwrt) to serve pxe images. So the rpi sits without an SD card. It's powered via Power over Ethernet (PoE), is advertised a pxe server, gets the initial uefi & ipxe binaries, then I can boot from an image off Github or one served locally. ipxe just adds another layer of indirection for expanded fun.

Re:OpenJDK Comes to Windows 10 on ARM by untog on Monday August 03, 2020 @10:29AM (#24038167)
It's selling the Raspberry Pi short to describe it as a "limited embed". You can run a full desktop OS on it (I do) and everything works great.
Re:OpenJDK Comes to Windows 10 on ARM by chrisseaton on Monday August 03, 2020 @10:35AM (#24038227)
For example ARM compilers with fewer optimisations compared to Intel is something I’ve seen in practice.
Re:OpenJDK Comes to Windows 10 on ARM by jcelerier on Monday August 03, 2020 @11:54AM (#24039336)
well, Intel employs people to implement those optimisations in GCC, Clang, etc...
Re:OpenJDK Comes to Windows 10 on ARM by krzyk on Monday August 03, 2020 @02:27PM (#24041464)
> major OS makers to accelerate ports to ARM.... Linux should follow suit

Have you heard of Raspberry? Even before it was released there were almost all of Debian packages in ARM, so Raspberry had it easy, they just took something that already worked. And it was years ago.

Right now the only OS ready for ARM is Linux.

Re:OpenJDK Comes to Windows 10 on ARM by ogre_codes on Monday August 03, 2020 @02:56PM (#24041849)
Do not disagree with you on the first point, Linux was on ARM first and has done a spot on job—with the Pi leading the charge—supporting ARM.

But from all reports from people with the dev kit, Mac OS is going to hit the ground running.

Re:OpenJDK Comes to Windows 10 on ARM by znpy on Monday August 03, 2020 @11:30AM (#24038952)
> Linux should follow suit

Linux has been running on ARM for at least the last 15 years.

Re:OpenJDK Comes to Windows 10 on ARM by bl4ckm0r3 on Monday August 03, 2020 @10:02AM (#24037865)
Re:OpenJDK Comes to Windows 10 on ARM by gspr on Monday August 03, 2020 @10:04AM (#24037900)
Name one mainstream Linux distro without ARM support!
Re:OpenJDK Comes to Windows 10 on ARM by _-david-_ on Monday August 03, 2020 @12:55PM (#24040191)
Not sure if it is mainstream but Arch. There is Arch Arm and Manjaro but neither are officially part of Arch.
Re:OpenJDK Comes to Windows 10 on ARM by gspr on Tuesday August 04, 2020 @05:53AM (#24048339)
Wow, I had no idea. Strange, no?
Re:OpenJDK Comes to Windows 10 on ARM by djxfade on Monday August 03, 2020 @10:36AM (#24038248)
Hannah Montana Linux?
Re:OpenJDK Comes to Windows 10 on ARM by nix23 on Monday August 03, 2020 @10:56AM (#24038466)
Thats true no ARM support!!
Re:OpenJDK Comes to Windows 10 on ARM by kcb on Monday August 03, 2020 @11:18PM (#24046190)
Name a platform that you can actually install it on.
Re:OpenJDK Comes to Windows 10 on ARM by gspr on Tuesday August 04, 2020 @05:53AM (#24048337)
https://wiki.debian.org/InstallingDebianOn/

Take your pick. Almost all the stuff listed under SBCs is ARM.

[dead]
Re:OpenJDK Comes to Windows 10 on ARM by coldtea on Monday August 03, 2020 @04:27PM (#24042958)
They both worked closely with ARM to shape it:

"In the late 1980s, Apple Computer and VLSI Technology started working with Acorn on newer versions of the Arm core. In 1990, Acorn spun off the design team into a new company named Advanced RISC Machines Ltd.,[30][31][32] which became Arm Ltd when its parent company, Arm Holdings plc, floated on the London Stock Exchange and NASDAQ in 1998.[33] The new Apple-Arm work would eventually evolve into the Arm6, first released in early 1992. Apple used the Arm6-based Arm610 as the basis for their Apple Newton PDA".

And for over a decade they have been investing in ARM (for iOS uses), and later inventing and designing their own ARM CPUs, so there's that. Plus lots of work on LLVM for ARM.

Re:OpenJDK Comes to Windows 10 on ARM by sbuk on Monday August 03, 2020 @01:05PM (#24040366)
Apple actually worked on the Arm6 architecture along with Acorn in the late 80's/early 90's. In this instance, it's fair to say that they did invent this and argualbly showed interest in the platform before anyone else.
Re:OpenJDK Comes to Windows 10 on ARM by avandvrnot on Monday August 03, 2020 @02:22PM (#24041392)
I’m probably missing sufficient context but this quote suggests a more involved route [0]

DEC approached Apple wondering if they might be interested in a high-performance ARM, to which the Apple engineers replied "Phhht, yeah. You can’t do it, but, yeah, if you could we'd use it."

[0] https://en.m.wikipedia.org/wiki/StrongARM

Re:OpenJDK Comes to Windows 10 on ARM by garblegarble on Monday August 03, 2020 @03:44PM (#24042419)
I assume they're referring to [0] which notes that ARM Holdings was co-founded by Acorn, Apple and VLSI. I don't think the comment in that StrongARM article is unreasonable given the state of technology at the time - as a bystander it seems like ARM competing with x86 in performance has only really become possible in the last few years.

[0] https://en.wikipedia.org/wiki/Arm_Holdings#Founding

Re:OpenJDK Comes to Windows 10 on ARM by timthorn on Tuesday August 04, 2020 @05:48AM (#24048307)
If memory serves, the processor in the Newton was touted as being as powerful as a 486 (386 was the mainstream CPU at that point).
Re:OpenJDK Comes to Windows 10 on ARM by mixmastamyk on Monday August 03, 2020 @02:26PM (#24041441)
Yes, somehow in this discussion iOS and their custom chips have been forgotten about. As if Apple discovered ARM last week.
Re:OpenJDK Comes to Windows 10 on ARM by ADent on Monday August 03, 2020 @03:36PM (#24042323)
Apple shipped the ARM powered Newton in 1993.