JOP – Java Optimized Processor

(jopdesign.com)

39 points | by gjvc 3 days ago

6 comments

  • mzajc 19 hours ago
    It's a very different project, but this reminded me that Jazelle[0] actually made it to some consumer hardware. It's always funny seeing this on an old Raspberry Pi's cpuinfo:

      Features: half thumb fastmult vfp edsp java tls
    
    I believe "thumb" refers to ThumbEE, Jazelle's successor, but it's a little easier to miss than the flag called "java".

    [0]: https://en.wikipedia.org/wiki/Jazelle, also mentioned in passing on https://www.jopdesign.com/perf.jsp

    • MiroslavPokorny 18 hours ago
      Thumb is an alternate more compact instruction encoding and has nothing to do with Jazelle. Jazelle is support for SOME bytecode execution, the two are different technologies and thats partly why they are listed as separated features as you have shared.
      • hobo123 14 hours ago
        Yes, ARM Thumb, back when apps running on phones/embedded really had to be tiny.
    • brunoff 17 hours ago
      Java is not alone in ARM's ISA silicon honors. There's FJCVTZS, a javascript specific instruction, representing "Floating-point Javascript Convert to Signed fixed-point, rounding toward Zero".
  • exabrial 15 hours ago
    Obviously general purpose CPUs are much more "useful" in the real world, but why dont thinks like this exist for WASM, Java Bytecode, etc?
    • cmrdporcupine 5 hours ago
      I've built something like this for WASM (on FPGA).

      Whether it makes any financial sense as a product is the question. There's just such incredible economies of scale behind general purpose CPUs and Moore's law has always won out.

      In the past any time people have invested man hours into building things like this they've just ended up slower than just running the same software (often under emulation) on a general purpose CPU.

      There's a security argument now, though. It's in theory harder for an AI agent to "break out" of a sandbox which extends down to the hardware level. e.g. if instructions literally do not exist that break encapsulation, memory protection, etc.

  • Veliladon 18 hours ago
    Didn't ARM do that back in the '90s?
  • exabrial 2 days ago
    I believe Azul Systems actually ended up creating such a thing IRL back in the day.
    • nayuki 19 hours ago
      Seems so. About a decade ago, I watched some of Azul's talks. My memory is fallible, but basically they built their own ASIC CPUs and also pioneered low-latency garbage collection with their C4 (Continuously Concurrent Compacting Collector). Later, they found that their CPU's memory model (which is technically correct according to specifications) broke too many applications because applications were wrongly coded to rely on x86's stricter rules, and also found that it was cheaper to focus on building their proprietary JVM software to run on commodity x86 processors anyway. Oh yeah, and OpenJDK got two new low-latency garbage collectors in the late 2010s, namely ZGC and Shenandoah.
    • mcbridematt 17 hours ago
      Indeed:

      Java on a 1000 Cores - Tales of Hardware / Software CoDesign (2009) https://www.youtube.com/watch?v=5uljtqyBLxI

    • jamesfinlayson 19 hours ago
      Yeah I thought it was a short-lived thing back in the late 1990s: https://en.wikipedia.org/wiki/PicoJava

      Edit: no this is the one I was thinking of https://en.wikipedia.org/wiki/Jazelle

  • cmrdporcupine 16 hours ago
    Love it.

    The OG of this kind of thing (OO etc in HW) is https://retrocomputingforum.com/t/rekursiv-the-audiophiles-c... ; I've got the book describing it on my shelf here.

    And recently have recreated in FPGA.

    And then ported the Smalltalk-80 "blue book" VM to run via its microcode (in lieu of the Rekursiv's Lingo for which we have no surviving docs)

    And then flashed it as an FPGA core onto the Mega65 retro computer (as one does).

    And then wrote a WASM/WasmGC implementation for it as well.

    Please help me. Pull the plug.

  • MiroslavPokorny 17 hours ago
    THanks for sharing!