News for hackers. Stuff that matters.
Re:ScummVM officially released in the App Store by kmeisthax on Saturday December 30, 2023 @12:18PM (#38816829)
Apple is very weird with how they interpret that part of their rules. iSH is allowed but not iDOS, etc.
Re:ScummVM officially released in the App Store by KMnO4 on Saturday December 30, 2023 @03:18PM (#38818692)
iSH has compiled the binaries for arm64 so they actually run natively. When they do a syscall to malloc they are actually doing a syscall to malloc.

iDOS is interpreting the bytecode and wrapping the unavailable things with its own implementation. When a DOS application runs malloc, the memory is assigned by iDOS instead.

I’m not saying Apple is consistent, but your example doesn’t show that well.

Re:ScummVM officially released in the App Store by basique on Saturday December 30, 2023 @04:43PM (#38819494)
Isn't iSH literally an x86 emulator?
Re:ScummVM officially released in the App Store by doctorpangloss on Saturday December 30, 2023 @06:17PM (#38820264)
Yeah I mean, people think it’s a legal or engineering issue. If an App Store Editor (aka category manager) likes you, you will do alright.
Re:ScummVM officially released in the App Store by kmeisthax on Monday January 01, 2024 @11:20PM (#38838076)
This is why App Store needs 'conceptual approvals'. I would never build anything 'cool' on iOS knowing that 'cool' things tend to piss off Apple.
Re:ScummVM officially released in the App Store by jmah on Saturday December 30, 2023 @04:22PM (#38819303)
Though it doesn't invalidate the gist of your saying, malloc is a user-space function not a syscall. (Its implementation will occasionally do a syscall, such as to sbrk or vmmap.)
Re:ScummVM officially released in the App Store by meindnoch on Saturday December 30, 2023 @04:55PM (#38819615)
False. iSH is an x86 "bytecode" emulator.

"Possibly the most interesting thing I wrote as part of iSH is the JIT. It's not actually a JIT since it doesn't target machine code. Instead it generates an array of pointers to functions called gadgets, and each gadget ends with a tailcall to the next function; like the threaded code technique used by some Forth interpreters."

https://github.com/ish-app/ish

Re:ScummVM officially released in the App Store by kmeisthax on Monday January 01, 2024 @11:19PM (#38838068)
You're thinking of a-Shell, which does offer compiled & locked binaries in a command line environment on iOS (via "ios_system"). Even then, they also support running WASM/WASI modules in a-Shell's command line environment.