1326
submitted 7 months ago by SeaJ@lemm.ee to c/technology@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] ICastFist@programming.dev 18 points 7 months ago

Ok, any info on how that's being done? It sure sounds like Wiseguy figured how to compile the code that was meant for the specific VR4300 (RISC) N64's CPU for typical x86-64 architecture

[-] bruhduh@lemmy.world 5 points 7 months ago* (last edited 7 months ago)

Apple Rosetta 2 technically recompiles code from x86 to arm too in jit and sometimes aot, also there's box86/64 open source project, only difference between example I've said and OP is recompilation actually saves all results and not just cache, another difficulty is in OS difference, he needs not just binary translate but have something akin to WINE too while he recompiles code

[-] ICastFist@programming.dev 2 points 7 months ago

If he's compiling from windows to windows, target OS shouldn't be a problem. Also, I just had to go one extra click to read Mr-Wiseguy's github ๐Ÿ˜…

He could also, in theory, use Cosmopolitan to generate an APE (Actually Portable Executable) that will run on linux, bsd, windows and mac. I had to find a video where Justine talks about it to understand how and why it works: it's basically a trick to rewrite the header of the executable, with the real magic being an "optional shebang" that lets both Windows and *Nix run the first bytes.

[-] bruhduh@lemmy.world 1 points 7 months ago

Thanks for detailed reply, i understood everything except i don't understand how cosmopolitan filters syscalls because deferent OS have different syscalls, otherwise there wouldn't be need for WINE

[-] ICastFist@programming.dev 1 points 7 months ago

She starts explaining APE at around 14:30. The executable is a "Windows MZ executable" that runs everywhere else, including off BIOS. Before that, she shows her redbean http server, which uses this tech.

https://invidious.baczek.me/watch?v=1ZTRb-2DZGs -- original YT link https://www.youtube.com/watch?v=1ZTRb-2DZGs

[-] PipedLinkBot@feddit.rocks 1 points 7 months ago

Here is an alternative Piped link(s):

https://www.piped.video/watch?v=1ZTRb-2DZGs

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

this post was submitted on 12 May 2024
1326 points (99.4% liked)

Technology

59983 readers
2128 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS