News for hackers. Stuff that matters.
Re:Android and RISC-V: What you need to know to be ready by awill on Monday October 30, 2023 @09:23PM (#38078825)
They expect developers to get ready?

They're thinking about this wrong. They need to make it zero work, followed by optional optimizations, like Apple did with their M1.

Remember when Google told everyone to test their Android apps on x86. And then again on MIPS? And then nothing happened. Developers will not waste their time.

Re:Android and RISC-V: What you need to know to be ready by Vt71fcAqt7 on Monday October 30, 2023 @09:35PM (#38078959)
Most java only apps will Just Work as you just add another compiler option.
Re:Android and RISC-V: What you need to know to be ready by lxgr on Tuesday October 31, 2023 @12:31AM (#38080331)
What compiler option would a pure Java app even need?

Android apps aren't AOT-compiled to any specific architecture at build time; that happens after installation on the device itself.

Re:Android and RISC-V: What you need to know to be ready by pjmlp on Tuesday October 31, 2023 @03:01AM (#38081147)
Small correction, on Android 5 and 6, it happened during installation hence why it took ages, and an hybrid interpreter/JIT/AOT toolchain was introduced in 7.

Nowadays AOT compilation happens when the device is idle, taking into account either the generated PGO metadata gathered by the JIT, or the one downloaded alongside the APK at installation time.

Re:Android and RISC-V: What you need to know to be ready by lxgr on Tuesday October 31, 2023 @09:43AM (#38084707)
Yes, but the point is that all of these are implementation details of the runtime. From an application developer's point of view, Android executes architecture-independent DEX files.

All versions of Android keep the original DEX bytecode around to allow for later recompilation (JIT or AOT) and "later" can mean anything from "seconds after the APK was downloaded" to "during/after the next Android update" or "at any convenient time" (e.g. when the phone is charging and has nothing else to do).

Re:Android and RISC-V: What you need to know to be ready by saagarjha on Monday October 30, 2023 @09:52PM (#38079121)
That's because nobody shipped devices that mattered with that architecture.
Re:Android and RISC-V: What you need to know to be ready by Georgelemental on Monday October 30, 2023 @10:33PM (#38079487)
Could the causal chain go the other way? (Nobody shipped any devices with that architecture, because app availability was too low)
Re:Android and RISC-V: What you need to know to be ready by toast0 on Tuesday October 31, 2023 @12:27AM (#38080303)
It's possible, but I think the more likely issue is nobody shipped very many devices with x86, because Intel cancelled development of x86 for phones[1] before they had many design wins.

Also, and I missed this at the time, it seems like Qualcomm was restricting manufacturers from also using competitors chips[2], although it seems the ruling was reversed on appeal [3], there's still evidence of restrictions. It would be unappealing to market an x86 device if it means losing access to Qualcomm cpus, especially in an era where Qualcomm modems were practically mandatory, so it makes sense that the only x86 (Asus Zenphone) I can think of is made by a company that didn't make a lot of phones.

Personally, I don't think the lack of app support would have been that much of a problem for sales of phones in the 2012 to 2016 time frame. If you got a couple hundred thousand phones out there, app developers would add support, because it wasn't too hard, a lot of developers were running x86 Android emulators, and they may have already had the x86 native code libraries and just didn't ship them because why bother when there's no phones.

Some of the first generation Asus Zenphone ran on x86, and it might have been rough for a while, but I think they sold reasonable numbers, and app developers started shipping x86 libraries. I don't know when Google Play added support for ABI specific APKs, maybe that was a factor too (if you have to have everything you support in the APK, then you'll be careful about what you support)

[1] https://www.pcworld.com/article/414673/intel-is-on-the-verge...

[2] https://www.cnn.com/2019/05/22/tech/qualcomm-antitrust/index...

[3] https://www.reuters.com/article/us-qualcomm-antitrust-idUSKC...

Re:Android and RISC-V: What you need to know to be ready by roneythomas6 on Tuesday October 31, 2023 @01:06AM (#38080566)
No, For x86, They were fine when all mobile CPU's where Single and Dual core. Intel actually had upper hand for a short time thanks to hyperthreading. But once Qualcomm and other ARM SOCs jumped to Quad core, Intel CPU's where power in-efficient and slow compared to other ARM SOCs. So they gave up Smartphone and concentrated on tablet chips for Android and Win8 devices. Later they gave up the Android tablets mainly due to cheap ARM chips from Mediatek and others. As for MIPS they gave up on making SOCs for Android after Imagination Technologies acquired it in 2013. Also keep in mind Smartphone's where growing double digit market share in early 2010's and developers were definitely eager to support whatever new architecture to get market share. Even though there is no x86 smartphone or tablet anymore, the app support is quite good thanks to Chromebooks, Google Play Games for Windows and Android app support in Windows.
Re:Android and RISC-V: What you need to know to be ready by kllrnohj on Tuesday October 31, 2023 @10:25AM (#38085351)
Intel had / would have had few significant issues at the time competing on the CPU side of thing. What killed them in phones was the radios. They sucked at them, and buying a discreet chip for it hurt margins and efficiency too much.
Re:Android and RISC-V: What you need to know to be ready by mianos on Tuesday October 31, 2023 @01:23AM (#38080653)
There are quite a few x86 Chromebooks, millions. If you have one it is kinda surprising just how many Android apps run on them. (Or is it all emulated?)
Re:Android and RISC-V: What you need to know to be ready by baq on Tuesday October 31, 2023 @02:43AM (#38081053)
The not-jvm apps should just work. Apps using binary libraries may be AOT-translated by Google or be jitted on device. The tech was there about a decade ago specifically for Android (look up Houdini) but in general is as old as the hills.
Re:Android and RISC-V: What you need to know to be ready by leonidbelyaev on Monday October 30, 2023 @10:00PM (#38079206)
I don't think that makes sense. RISC-V is by definition a new ISA, M1 is based on the existing ARM ISA.
Re:Android and RISC-V: What you need to know to be ready by gumby on Monday October 30, 2023 @10:20PM (#38079382)
That transition was from x86 to ARM.

This is ARM to RISC V.

Re:Android and RISC-V: What you need to know to be ready by spookie on Monday October 30, 2023 @10:27PM (#38079448)
From a mature architecture to another, versus going to a "pretty much only used on embedded devices" arch?

Yeah, they really have got their work cut out for themselves!

Re:Android and RISC-V: What you need to know to be ready by IshKebab on Tuesday October 31, 2023 @03:18AM (#38081227)
Android phones are pretty much embedded devices though (unfortunately) so I suspect we'll see a load of phones that have super custom kernels with tons of hard-coded driver configs etc. Similar to SBC other than the RPi.

It's kind of an issue for ARM too but they're a bit further towards solving it than RISC-V.

In any case it's mainly a problem for people that want OS updates or the ability to install other OSes, so it's not going to affect app writers or normal users much.

Re:Android and RISC-V: What you need to know to be ready by snvzz on Tuesday October 31, 2023 @03:44AM (#38081394)
>It's kind of an issue for ARM too but they're a bit further towards solving it than RISC-V.

Can you elaborate on why do you think so?

I understand it is the opposite: RISC-V is much further towards solving it.

This is because RISC-V has put effort from the start into standardizing boot process (spl -> sbi -> uboot|uefi), ISA (profiles), the firmware-kernel interface (sbi, uefi protocol, acpi) as well as the platform itself (platform spec, standards for interrupts, timers, hypervisor support, the uart requirement, the watchdog and further platform standardization efforts).

This has happened (and is happening still) before significant deployment of SoCs using RISC-V microarchitectures as the application processor.

Meanwhile, ARM realized, quite late, that this is important, and is lagging behind, with plenty of non-fixable, bespoke platform hardware deployed, and low vendor uptake as they are asking their clients to change what they already have in place.

Re:Android and RISC-V: What you need to know to be ready by ryukafalz on Tuesday October 31, 2023 @08:30AM (#38083751)
I haven't been keeping up to date with RISC-V happenings lately but does this imply that it'll be easier for distros to have live images that can install to arbitrary RISC-V machines like we're used to on x86? If so, that's exciting!
Re:Android and RISC-V: What you need to know to be ready by snvzz on Tuesday October 31, 2023 @04:38PM (#38091036)
>it'll be easier for distros to have live images that can install to arbitrary RISC-V machines like we're used to on x86?

Yes. The experience will be equal or better over the IBM PC-derived platform, by design.

PC was an accidental platform, RISC-V platform spec is an intentional (and very informed) one.

Re:Android and RISC-V: What you need to know to be ready by brucehoult on Saturday November 04, 2023 @06:05AM (#38139566)
Pretty bad take given that Android recently transitioned from 32 bit ARM to 64 bit ARM, which are essentially totally different ISAs and 64 bit ARM was used in absolutely nothing at all before Phones -- iPhone 5s first, then Android a couple of years later with e.g. Galaxy S6. The one advantage that transition had was that the same CPU could run both ISAs -- something ARM has dropped in their latest (and all future) 64 bit-only CPU cores. And for some time now apps could still be 32 bit but the OS had to be 64 bit.

A transition to RISC-V will be cold turkey. It's technically possible of course to build one CPU that can run both A64 and RV64, but only ARM can legally do it, and they probably won't unless they're really losing, sometime 5 or 10 years from now.

Re:Android and RISC-V: What you need to know to be ready by ojn on Monday October 30, 2023 @10:42PM (#38079565)
Zero work? I guess memory fades quickly sometimes.

Apple rented out DTK systems for $500 for developers to get their hands on ARM hardware and port their applications. Hardly zero work. You couldn't even keep the hardware, you had to send it back (and originally you wouldn't even get $500 in credit to buy a production system with, luckily they fixed that after the easily predictable uproar).

Google is providing software emulators instead, much easier to work with and doesn't require complicated device logistics. Not only that, but the only audience that really needs to do work to get ready, are either those producing NDK applications, or those working on hardware support for RISC-V.

Java/Kotlin applications would not need any porting. Sounds like zero work to me!

Re:Android and RISC-V: What you need to know to be ready by lxgr on Tuesday October 31, 2023 @12:26AM (#38080293)
If you were initially fine with software emulation (i.e. Rosetta 2), as were many small and large software projects for macOS or Unix, you had no need whatsoever to get a DTK.
Re:Android and RISC-V: What you need to know to be ready by makeitdouble on Tuesday October 31, 2023 @04:10AM (#38081547)
> If you were initially fine with software emulation (i.e. Rosetta 2)

You'd need a DTK to know if you're fine with emulation or not.

If you cared at all about your app running, you wouldn't just assume that it magically runs fine on an emulation layer you never touched, and that at speeds that are reasonable.

For a reference point, Rosetta was far from being great, and while some apps could run against it, it was most of the time an ultra painful experience. That pain helped devs to put the effort into making native versions, but it also means you couldn't expect Rosetta 2 to give acceptable performances from Apple's track record.

Re:Android and RISC-V: What you need to know to be ready by xvector on Tuesday October 31, 2023 @04:11AM (#38081553)
Are you talking about Rosetta 1 or 2? Because Rosetta 2 was not an "ultra painful experience" in any sense of the phrase.

Rosetta 2 was straightforward and surprisingly fast, requiring zero tweaking or user interaction. Most people never even noticed.

Re:Android and RISC-V: What you need to know to be ready by Narishma on Tuesday October 31, 2023 @06:43AM (#38082756)
They are saying that given Apple's track record with Rosetta 1, developers had no reason to trust Rosetta 2 would be sufficient to test their applications with, and would thus need to buy the expensive DTK.
Re:Android and RISC-V: What you need to know to be ready by alxlaz on Tuesday October 31, 2023 @06:48AM (#38082796)
> Rosetta 2 was straightforward and surprisingly fast, requiring zero tweaking or user interaction. Most people never even noticed.

Yes, but if you were a developer who had to make sure your application worked on the upcoming M1 models, there was no way to know that without getting the DTK.

At the time when Apple announced their transition to their own silicon and that there would be a Rosetta 2, the only thing you had to go on other than the DTK was the precedent of the first Rosetta. It was a major feat back in its day (god I feel old just writing that...) but it was nowhere near Rosetta 2's compatibility and speed. Armed with nothing but the first Rosetta's precedent, it was a somewhat risky outlook.

Re:Android and RISC-V: What you need to know to be ready by eliasmacpherson on Tuesday October 31, 2023 @07:19AM (#38083040)
On Rosetta 2, from the horses mouth:

Rosetta translates all x86_64 instructions, but it doesn't support the execution of some newer instruction sets and processor features, such as AVX, AVX2, and AVX512 vector instructions.

I can imagine quite a number of users running into the above situation in multimedia related code.

Re:Android and RISC-V: What you need to know to be ready by afavour on Tuesday October 31, 2023 @07:27AM (#38083133)
That’s still a small minority of all the apps out there, though.
Re:Android and RISC-V: What you need to know to be ready by thereddaikon on Tuesday October 31, 2023 @08:29AM (#38083733)
But we're talking about Macs. That's a huge chunk of their userbase. For the people who use Macs for actual work you can broadly classify them in two groups, Devs who need Xcode and media. Yes there are exceptions but that's the majority. For one of those groups AVX is pretty important.
Re:Android and RISC-V: What you need to know to be ready by izacus on Tuesday October 31, 2023 @09:57AM (#38084899)
And those apps had to be ready too. You don't build a reliable platform by randomly breaking "a small minority of apps". You yourself are certanly in "small minority" of at least a few features you rely on.
Re:Android and RISC-V: What you need to know to be ready by afavour on Tuesday October 31, 2023 @10:22AM (#38085286)
This is just an endless logic circle.

“Not all apps needed to worry about the CPU change”

“But some did!”

“And Apple made test hardware available for those people”

“But not enough for all apps to be tested”

“Not all apps needed to worry about the CPU change”

Re:Android and RISC-V: What you need to know to be ready by eliasmacpherson on Tuesday October 31, 2023 @03:26PM (#38090133)
To clarify:

The initial claim was, lxgr: "If you were initially fine with software emulation (i.e. Rosetta 2), as were many small and large software projects for macOS or Unix, you had no need whatsoever to get a DTK."

The subsequent claim was, xvector: "Rosetta 2 was straightforward and surprisingly fast, requiring zero tweaking or user interaction. Most people never even noticed."

Posters, myself included, are reacting against these claims, as they both put the cart before the horse, and the second gives only an end user perspective.

Devs had verified with a DTK that Rosetta2 ran their programs acceptably. Keep in mind patches had to be issued for programs which did not check for the presence of AVX, AVX2 or AVX512, else they would crash. This invalidates the first claim. It shows why the second claim is only the second half of the story.

So the logic follows a line rather than a circle.

Also nobody made the claim that: “And Apple made test hardware available for those people, But not enough for all apps to be tested”

Re:Android and RISC-V: What you need to know to be ready by makeitdouble on Tuesday October 31, 2023 @08:34AM (#38083801)
The "ultra painful experience" part is about Rosetta 1.

For Rosetta 2, I agree Apple made a much better translation layer. There were still swaths of software that couldn't run on Rosetta 2, but the previous generation of Intel machine was still there kicking and alive, so people who didn't feel like taking the risk didn't need to.

Re:Android and RISC-V: What you need to know to be ready by beebmam on Tuesday October 31, 2023 @01:12AM (#38080597)
Java/JVM on ARM/M1 had an enormous amount of bugs for the first several years, fyi. Source: I encountered many of them, which eventually got fixed.
Re:Android and RISC-V: What you need to know to be ready by KingOfCoders on Tuesday October 31, 2023 @01:30AM (#38080692)
"Java/JVM" in general or on Android? Seems to be the second b/c I heavily used Java in the 90s and didn't encounter JVM bugs.
Re:Android and RISC-V: What you need to know to be ready by heavyset_go on Tuesday October 31, 2023 @02:02AM (#38080846)
Android doesn't use the JVM.
Re:Android and RISC-V: What you need to know to be ready by pjmlp on Tuesday October 31, 2023 @02:57AM (#38081133)
It actually does, the devices might run ART, however the whole developer toolchain depends heavily on the JVM, Gradle, Android Studio/InteliJ, the pleothoara of little CLI tools to transform those .class files into .dex, desugar modern JVM bytecodes into JVM bytecodes that can actually be mapped into existing .dex ones (for pre-Android 12 devices), library calls that need to be polyfilled into something else,....
Re:Android and RISC-V: What you need to know to be ready by mardifoufs on Tuesday October 31, 2023 @04:07PM (#38090637)
Stupid question: why does android use ART (and Dalvik before that)? I guess it's more performant for mobile phones, but then, is there a reason why other java apps don't use it outside of android? Has anyone tried using ART/Dalvik outside of the android ecosystem?
Re:Android and RISC-V: What you need to know to be ready by pjmlp on Tuesday October 31, 2023 @09:22PM (#38093520)
Easy, Google screwing up Sun licensing for embedded devices and creating their own Java based ecosystem from scratch.

Note that ART as it is now is the third implementation, first it was Dalvik, then ART pure AOT, and now ART interpreter/JIT/AOT.

Nokia and Sony-Ericsson already had relatively good J2ME implementations for Symbian, and Blackberry OS was powered by Java, when Android came out.

Unfortunately it didn't went for Google the same way, as it did for Microsoft.

Gosling interview on the matter,

https://www.youtube.com/watch?v=ZYw3X4RZv6Y&feature=youtu.be...

Re:Android and RISC-V: What you need to know to be ready by heavyset_go on Tuesday October 31, 2023 @07:17PM (#38092676)
Definitely agree about the toolchain, I was referring more to code execution on the OS itself.
Re:Android and RISC-V: What you need to know to be ready by KingOfCoders on Tuesday October 31, 2023 @03:56AM (#38081463)
Thanks, didn't know.
Re:Android and RISC-V: What you need to know to be ready by dathinab on Tuesday October 31, 2023 @07:43AM (#38083288)
It's a bit of a question about what you define the term "JVM" as. For many people it just means the thing which runs bytecode java was compiled to, in which case the Android runtime (ART) is a JVM (it has AOT, JIT and can run bytecode prodced from Java if done so in the right way).

But a more nit-picky/correct definition would expect the JVM to follow various specs (e.g. expect the bytecode the have exact the same format, features etc. as the one you find in a classical java application) and have various features which do not apply to the ART at all.

Or in other words, people which have nothing to do with java might call the ART a JVM in a generic way but people which do might be for good reason very insistent that this isn't the case. (Also Google lawyer will be VERY insistent it's no a JVM.)

Re:Android and RISC-V: What you need to know to be ready by pjmlp on Tuesday October 31, 2023 @09:22AM (#38084429)
Which is a kind of nit picking for Google laywers, as the approach taken by Dalvik/ART has been quite common in the embeded space, see PTC, Aicas, Aonix, microEJ, Websphere Real Time,...

Not all of them are available, however all of them do support AOT compilation, and their own bytecode format more optmized for their use cases than regular .class files.

The big difference between them and Google, is that they always played by the Sun/Oracle rules regarding Java licensing.

Re:Android and RISC-V: What you need to know to be ready by dathinab on Tuesday October 31, 2023 @07:35AM (#38083210)
they probably mean Sun(Oracle) JVM on ARM, as far as I remember there where tons of issues with that one

and in general there where tons of issues with multi threaded code during the time Java did move to the "current" memory model (was that in Java 1.5 or Java 1.6? I don't remember), through Sun(Oracle) JVM having issues on ARM was still a think after a huge part of the ecosystem moved to Java 1.6+ but I think wasn't anymore much of an issue when Java 1.8 was approaching but uh that was many years ago the my memory is a bit vague

Re:Android and RISC-V: What you need to know to be ready by KingOfCoders on Tuesday October 31, 2023 @10:31AM (#38085443)
"and in general there where tons of issues with multi threaded code during the time Java did move to the "current" memory model"

I wrote code or managed Java development teams from around 1996 to ~2010 and I don't remember any problems with multi threaded code or memory models. But of course you might be right if you did run Java on an ARM mobile like the Nokia.

The only challenge I remember with two high load (thousands of write transactions/sec - back then) websites were GC pauses, where we had to hire consultants to help with tuning the GCs on different machines for the high load.

Re:Android and RISC-V: What you need to know to be ready by dathinab on Tuesday October 31, 2023 @07:20AM (#38083060)
luckily many of the things which caused bugs on ARM where related to the weaker memory ordering and code having (invalid) implicit assumptions about stuff like memory barriers

luckily because this has mostly been fixed and is also the biggest stumbling block when going from x86 => RISC-V

Through there was something about the specific LR/SC definition which I found quite problematic when it comes to implementing certain atomic patterns. But that was 2?? years or so ago and I don't remember the details at all.

Eitherway theoretically if you have a correct C++ standard compatible program without UB it should "just work" on RISK-V by now, but then I don't think such a thing exists (/s/j).

Re:Android and RISC-V: What you need to know to be ready by snvzz on Tuesday October 31, 2023 @08:26AM (#38083701)
Related, Debian initial RISC-V official port sid build status[0] and overall[1].

0. https://buildd.debian.org/status/architecture.php?a=riscv64&...

1. https://buildd.debian.org/stats/

Re:Android and RISC-V: What you need to know to be ready by freedomben on Tuesday October 31, 2023 @09:11AM (#38084295)
Why is this downvoted? Is it technically wrong?
Re:Android and RISC-V: What you need to know to be ready by brucehoult on Saturday November 04, 2023 @05:39AM (#38139438)
> if you have a correct C++ standard compatible program without UB it should "just work" on RISK-V by now, but then I don't think such a thing exists

Fortunately, what does exist is programs that have been ported to work on arm64 (or are native there), which will Just Work on RISC-V which has a slightly stronger memory model than Arm.

Re:Android and RISC-V: What you need to know to be ready by fweimer on Tuesday October 31, 2023 @03:49AM (#38081418)
GNU/Linux applications are typically quite portable across CPUs. Is Android really that different? I would expect that once you have ported it an NDK application to at least two architectures, the third one should be really easy. And with Android, you already get two easily testable architecture (the ubiquitous aarch64, and x86-64 under virtualization).

(It's not that many Debian or Fedora community contributors have a mainframe in their basement—yet the software they package tends to build and run on s390x just fine. Okay, maybe there are some endianess issues, but you wouldn't hit those with RISC-V.)

Re:Android and RISC-V: What you need to know to be ready by charcircuit on Tuesday October 31, 2023 @04:13AM (#38081566)
Assuming you have the source code for all your native code, then yes it should mostly work. 3rd party libraries can contain native code which means that you may be dependent on someone else porting their code.
Re:Android and RISC-V: What you need to know to be ready by dathinab on Tuesday October 31, 2023 @08:52AM (#38084042)
> Is Android really that different?

no, this has little to do with android

but "GNU/Linux applications are typically quite portable across CPUs" is only this case because a lot of people have a lot of interest and time invested into making that work

but for many commercial apps there is little insensitive to spend any time into making them work with anything but ARM (even older armv7 might not be supported because depending on what your app does the market share makes that not worth it)

still with both ARM and RSIV-V havine somewhat similar memory models and in general today people writing much more C/C++ standard compatible code instead of "it's UB in therefor but will work on this hardware"-nonsense I don't see to many technical issues

on issue could be that a non negligible amount of Android apps which use the NDK use it only to "link" code from other toolchains into android apps, e.g. rust binaries. And while I'm not worried about rust I wouldn't be surprised if some toolchains used might not support RISK-V when it starts to become relevant. Especially when it comes to the (mostly but not fully) snake oil nonsense stuff banking apps tend to use I would be surprised if there wouldn't be some issues.

Through in the end the biggest issue is a fully non technical one:

- if you release an app with NDK you want to test it on real hardware for all archs you support (no matter if there is some auto cross compilation or interpretation (like Roseta)

- but to do so you need access to such hardware, emulators might be okay but are not always cutting it

- but there aren't any RISK-V android phones yet

- but to release such phones you want to have apps, especially stuff like paypal or banking apps available

- but to have such things available the providers much evaluate it to be worth the money it costs to test which is based on marked share which is starting at 0 and slow growing due to missing support for some apps and missing killer features

So I think RISK-V android will be a think but as long as multiple big companies are not pushing it strongly it will take a very long time until it becomes relevant in any way.

Re:Android and RISC-V: What you need to know to be ready by flohofwoe on Tuesday October 31, 2023 @06:07AM (#38082475)
At least for my C/C++/ObjC code it was literally zero work, just recompile and done.

In reality I have a lot more trouble with differences between macOS versions than differences between CPU architectures.

Re:Android and RISC-V: What you need to know to be ready by Sparkyte on Monday October 30, 2023 @11:22PM (#38079883)
I just expect better compilers. Having a diverse platform is very healthy, but it is completely unreasonable to expect people to keep switching technology if it isn't easy to adopt.
Re:Android and RISC-V: What you need to know to be ready by kllrnohj on Monday October 30, 2023 @11:22PM (#38079884)
> Remember when Google told everyone to test their Android apps on x86. And then again on MIPS? And then nothing happened. Developers will not waste their time.

x86 builds of Android apps & libraries are extremely common to have since it's the most common target for emulators.

As for MIPS, I don't think Google ever pushed it. It was just kinda there.

Also also, this blog post is aimed at device manufacturers more than app developers which is why it talks about building AOSP & pending patches. It's not asking app devs to do anything (in fact it even says at the bottom "Make sure to stay tuned as we look into ways to make it as easy for Android developers writing native to target new platforms as it is for our Java and Kotlin developers!")

Re:Android and RISC-V: What you need to know to be ready by a-dub on Tuesday October 31, 2023 @12:01AM (#38080130)
if you don't use the ndk, isn't it, in fact, zero work?

how prevalent is ndk use? games and multimedia apps maybe?

Re:Android and RISC-V: What you need to know to be ready by roneythomas6 on Tuesday October 31, 2023 @12:13AM (#38080202)
MIPS died for Android after Imagination Technologies acquired it in 2013. There is nothing for Google to do when there is no new SOC or new phones. As for x86, it is still widely used thanks to Chromebooks. Unless you use NDK there is nothing on your end to do for new targets.
Re:Android and RISC-V: What you need to know to be ready by kimixa on Tuesday October 31, 2023 @01:45AM (#38080756)
MIPS died for android well before that - they only had microcontroller-level cores in development, which were rather unsuited to the performance requirements of android.
Re:Android and RISC-V: What you need to know to be ready by qwery on Tuesday October 31, 2023 @01:08AM (#38080583)
> They expect developers to get ready?

No, I don't think they do in a general sense. It's in the title: "What you need to know to be ready" --> if you would like to be ready, we have some information/advice for you. You can take it or leave it.

% Note: I'm using the word "you" here as it is used in the title, not you specifically.

Re:Android and RISC-V: What you need to know to be ready by Lammy on Tuesday October 31, 2023 @01:46AM (#38080763)
Re:Android and RISC-V: What you need to know to be ready by circuit10 on Tuesday October 31, 2023 @03:09AM (#38081184)
"The pronoun one often has connotations of formality, and is often avoided in favour of more colloquial alternatives such as generic you."
Re:Android and RISC-V: What you need to know to be ready by rickdeckard on Tuesday October 31, 2023 @06:31AM (#38082655)
Not every developer is an App-Developer. Some develop platforms, devices, physical products
Re:Android and RISC-V: What you need to know to be ready by Rebelgecko on Wednesday November 01, 2023 @09:18PM (#38107724)
It's a whole new architecture. Developers have to put code to support it into the AOSP. It's actually pretty similar to Apple and the M1 (although IIRC all of that development was done behind closed doors). Apple had to do a ton of work to smooth out the M1 transition, and it'll take a lot of work to make the process equally smooth on Android