• 0 Posts
  • 38 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle


  • Why mips and not RiscV? I would assume it’s easier to emulate in software and has good support in linux

    EDIT: found it

    Some architectures had arbitrarily-shifted operands all the time (ARM), some have shitty addressing modes necessitating that they would be slow (RISCV), some would need more than 4KB to even decode instructions (x86), and some were just too complex to emulate in so little space (PPC).

    Could it be the pc relative addressing often used on risc-v would be slow to run on 4004?








  • pftbest@sh.itjust.worksto196@lemmy.blahaj.zoneRule
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    The same law which makes gun recoil happen. If you fire a pistol in vacuum you would still get the same recoil or even stronger. The rocket engine fires a lot of gas molecules instead of bullets at much higher velocity than a bullet, which gives it the constant push/recoil





  • I can’t quite understand what is your point? Are you arguing that both JVM and WASM are bad? With this I agree, they both have terrible performance and in an ideal world we wouldn’t use any of them.

    Are you arguing that JVM bytecode is better than WASM? That’s objectively not true. One example is a function pointer in C. To compile it to JVM bytecode you would need to convert it to the virtual call using some very roundabout way. But in WASM you have native support for function pointers, which gives much better flexibility when compiling other languages.