strangenoises

About

Username
strangenoises
Joined
Visits
9
Last Active
Roles
member
Points
97
Badges
0
Posts
15
  • Microsoft contributes to Java port for Apple silicon Macs

    Will this port of JRE be available through the App Store? And if not, will installation of this JRE through manual downloading and installation be accompanied by any warnings from Apple, perhaps like the Digital Signature from Apple being absent? And will it require admin privilege to install?
    No and no.
    (...)
    Ok, interesting. I came from an ancient era where I had to install a JRE app on my computer before I could run Javascript on web pages. And you're explaining that that's all done within the web browser now, I think. That's good progress.

    That's all wrong. :-)

    1: Java never had anything to do with Javascript. The latter's naming was an early attempt to jump on Java's coattails and has spent decades confusing people ever since.
    2: Yes, you needed a JRE on the computer to run *applets*, which ran in the browser, and Java Webstart apps, launched from the browser. They were written in Java. Not Javascript.
    3: There is no java in the browser now. Applets are a thing of the past. So is Webstart.
    4: But Javascript (which is still not Java) is all in the browser... and always has been.
    fastasleeproundaboutnowjdb8167bkkcanuckwatto_cobra
  • Microsoft contributes to Java port for Apple silicon Macs

    rcfa said:
    So, for all these years there was no arm64 version of a JVM?
    I don't think Apple Silicon has the exact same instruction set as Arm. It's a variant that Apple has a license to create.
    my understanding is that it *is* aarch64, that's the license they paid for. but it's their own implementation. Think of it like Intel and AMD each having their own implementations of the x86_64 instruction set... The extensions are probably to access the extra stuff their silicon does, like neural engine/ML and Secure Enclave etc.
    Rayz2016mwhitewatto_cobra
  • Microsoft contributes to Java port for Apple silicon Macs

    Will this port of JRE be available through the App Store? And if not, will installation of this JRE through manual downloading and installation be accompanied by any warnings from Apple, perhaps like the Digital Signature from Apple being absent? And will it require admin privilege to install?
    No and no.

    These days, as a user, potentially of a Java app, you won't be asked to install a JRE. Rather, one will be packaged and embedded with the app, stripped down to just the parts that that app depends upon. It won't otherwise touch the system, handle jar files, url types, or anything, unless the app itself is coded to. Applets died many years ago, and for a while WebStart (launching desktop apps from websites) was the only reason to have a JRE, but that's gone now too. In summary, apps should basically come with their own JRE embedded within and you wouldn't even know without opening the app bundle and looking for it.

    As a developer, easiest way these days is to install it from AdoptOpenJDK.net, optionally via Homebrew, but you can also just download the OpenJDK build directly and unpack the tarball to anywhere you want, or if you want to be liable for their fees, download it from Oracle. Either way, it's all signed and notarised, and apps you write on your system you can run on your system without any problem. For packaging for customers/end-users, to run on the Mac you need to code sign and notarise the resulting app bundle as yourself with an Apple developer ID, just as with any other Mac app.

    I don't expect any of this to be different with ARM Macs, once the actual port is done and AdoptOpenJDK have a system set up to build and test theirs on.
    repressthisfastasleepGG1mwhiteroundaboutnowjdb8167watto_cobra
  • Microsoft contributes to Java port for Apple silicon Macs

    rob53 said:
    Why? Java isn't going to make use of all the Apple-specific capabilities, it's just going to continue to run on Macs. What Java applications do people even use anymore?
    I code Java for a living, and Groovy too, increasingly, and Kotlin's on the horizon. All JVM languages. But I use Macs to do it, by *strong* preference. It's not the primary target platform for the products I'm working on (although it runs on it just fine), but it's the one I choose to use to do the work. I could fall back to Linux or Windows (in order of preference), but I'd rather not. And as long as I don't have to, I'm still in the market for shiny new apple kit on a regular basis. And there's lots like me.

    Of course part of me remembers Steve Jobs promising that Java was going to be an equal first class citizen for writing Mac apps, back when OSX came out. But <sigh/>.
    repressthishattigGG1dysamoriaskippingrockroundaboutnowjdb8167FileMakerFellerwatto_cobrajony0