←back to thread

163 points codetrotter | 3 comments | | HN request time: 0.001s | source
Show context
somat ◴[] No.42163114[source]
I am a bit surprised Apple allows it.

I am not really familiar with the apple ecosystem, but my understanding is that they frown on open execution environments, that is emulators, virtual machines, interpreters etc. and a system that lets anyone develop and load games sounds like just that.

replies(4): >>42163186 #>>42163631 #>>42164247 #>>42164393 #
dagmx ◴[] No.42164393[source]
They allow execution environments and have for many years. See pythonista etc

They haven’t allowed emulators till this year, but Xodot isn’t an emulator.

But what you’re likely thinking of with regards to execution is that they don’t allow creating new executable code. Ie no JIT or compilers, but interpreters are fine. Hence you can do GDScript (which runs in an interpreter like Python does) but you won’t be able to use the other language backends which compile down.

replies(1): >>42173421 #
1. Kon-Peki ◴[] No.42173421[source]
> they don’t allow creating new executable code. Ie no JIT or compilers

The Metal compiler is embedded in the Metal runtime and runtime compilation of GPU kernels is part of the official API. So I'm not sure if Apple would actually prohibit JIT-ing GPU code.

Now that I think of it, I wonder if you could create a Metal IDE using nothing more than the Swift Treesitter module and a Metal definition for it. As of today, you can use the Swift Playgrounds app if you don't mind not having any compiler errors or warnings provided to you.

replies(1): >>42174418 #
2. dagmx ◴[] No.42174418[source]
There are various shader exploration tools for iPad and Vision Pro.

Here’s one that might catch your fancy https://youtu.be/4TiBP0loC7s?si=HUNUSg0KMwRbdcK3

replies(1): >>42175004 #
3. Kon-Peki ◴[] No.42175004[source]
Very cool!