Re:JIT: So you want to be faster than an interpreter on mode...
by klipklop on Monday October 13, 2025 @06:21PM
(#45573965)
A shame operating systems like iOS/iPadOS do not allow JIT. iPad Pro's have such fast CPU's that you cant even use fully because of decisions like this.
[ Parent
| on HN ]
Re:JIT: So you want to be faster than an interpreter on mode...
by Pulcinella on Monday October 13, 2025 @07:41PM
(#45574537)
Those operating systems allow it, but Apple does not. Agree that it is a total waste.
Re:JIT: So you want to be faster than an interpreter on mode...
by duped on Monday October 13, 2025 @08:40PM
(#45574944)
What advantage does JIT compilation have over Swift or Obj-C?
Re:JIT: So you want to be faster than an interpreter on mode...
by saagarjha on Monday October 13, 2025 @08:54PM
(#45575026)
It speeds up interpreted languages.
Re:JIT: So you want to be faster than an interpreter on mode...
by Pulcinella on Monday October 13, 2025 @08:58PM
(#45575054)
And emulation.
Re:JIT: So you want to be faster than an interpreter on mode...
by saagarjha on Monday October 13, 2025 @09:01PM
(#45575076)
What is an architecture but a scripting language to interpret? ;)
Re:JIT: So you want to be faster than an interpreter on mode...
by duped on Tuesday October 14, 2025 @10:51AM
(#45580804)
I get that, but what interpreted language do you want to write iOS apps in when there's Swift and Obj-C right there, with bespoke support and tooling from Apple?
And if you care about performance, why aren't you writing that code in native to begin with?
Re:JIT: So you want to be faster than an interpreter on mode...
by saagarjha on Wednesday October 15, 2025 @03:42AM
(#45589253)
Why would you care about faster cars when planes exist?
Re:JIT: So you want to be faster than an interpreter on mode...
by ranger_danger on Friday October 17, 2025 @11:46PM
(#45624730)
Re:JIT: So you want to be faster than an interpreter on mode...
by ranger_danger on Friday October 17, 2025 @11:44PM
(#45624723)
...Javascript.
Re:JIT: So you want to be faster than an interpreter on mode...
by bencyoung on Tuesday October 14, 2025 @04:26AM
(#45577562)
JIT compilation can be faster for compiled languages too, as it allows data driven inlining and devirtualization, as well as "effective constant" propogation and runtime architecture feature detection
Re:JIT: So you want to be faster than an interpreter on mode...
by varjag on Tuesday October 14, 2025 @06:42AM
(#45578404)
It can be but it never is.
Re:JIT: So you want to be faster than an interpreter on mode...
by __s on Tuesday October 14, 2025 @07:46AM
(#45578872)
Especially after PGO (profiling guided optimization) gets most of the way there
Re:JIT: So you want to be faster than an interpreter on mode...
by ignoramous on Tuesday October 14, 2025 @07:26AM
(#45578706)
To re-optimize compiled code blocks isn't without effort. Google has publicly spoken about AutoFDO and Propeller [0], after Meta had open sourced BOLT [1] in 2021.
AutoFDO has since been ported to Android and adopted by Yandex [3].
[0] https://lwn.net/Articles/995397/
Re:JIT: So you want to be faster than an interpreter on mode...
by Rohansi on Tuesday October 14, 2025 @12:09PM
(#45581752)
But is that because of JIT compilation or other decisions for how the language should work (dynamic typing, GC, etc.)?
Re:JIT: So you want to be faster than an interpreter on mode...
by ranger_danger on Friday October 17, 2025 @11:35PM
(#45624690)
Hard disagree. Many newer game system emulators (32-bit and up) rely on JIT or "dynarecs" to get playable speeds, and they pretty much all use high performance compiled languages already. They often double the performance over their interpreter or more.
Re:JIT: So you want to be faster than an interpreter on mode...
by duped on Tuesday October 14, 2025 @10:50AM
(#45580785)
Is there a production JIT for a compiled language that is actually faster? I understand the theory, I don't think the practice backs it up.
Re:JIT: So you want to be faster than an interpreter on mode...
by fragmede on Tuesday October 14, 2025 @10:57AM
(#45580876)
Depends, what do you consider Java?
Re:JIT: So you want to be faster than an interpreter on mode...
by varjag on Tuesday October 14, 2025 @11:28AM
(#45581209)
Java is certainly not the fastest language out there.
Re:JIT: So you want to be faster than an interpreter on mode...
by pcwalton on Tuesday October 14, 2025 @02:27PM
(#45583199)
Sure, but the relevant comparison isn't between languages: it's between a state-of-the-art JIT implementation of one language and a likewise-state-of-the-art AOT implementation of the same language. Unfortunately there aren't many examples of this; most languages have a preferred implementation strategy that receives much more effort than the other one.
Re:JIT: So you want to be faster than an interpreter on mode...
by pcwalton on Tuesday October 14, 2025 @02:25PM
(#45583178)
I believe HotSpot is usually faster than GCJ.
Re:JIT: So you want to be faster than an interpreter on mode...
by almostgotcaught on Monday October 13, 2025 @11:11PM
(#45575860)
> that you cant even use fully because of decisions like this.
Have no clue what this means - you can pre-compile for target platforms and therefore "fully" use whichever Apple device CPU.
Re:JIT: So you want to be faster than an interpreter on mode...
by pjc50 on Tuesday October 14, 2025 @04:54AM
(#45577750)
You can't precompile your web page's Javascript for iOS, even if you're willing to have it signed and notarized and submitted for policy review.
Re:JIT: So you want to be faster than an interpreter on mode...
by tgv on Tuesday October 14, 2025 @06:22AM
(#45578277)
Apart from the fact that its JS engine is really fast, Safari accepts WebAssembly. What else would you precompile it to?
Re:JIT: So you want to be faster than an interpreter on mode...
by true_religion on Tuesday October 14, 2025 @10:49AM
(#45580770)
Originally, iOS Safari handled WASM but only with JIT disabled.
However the EU decreed that it must allow for fair competition, leading to it claiming that it will enable JIT for authorized developers: https://developer.apple.com/support/alternative-browser-engi...
But I'm not sure that they have done so...
Re:JIT: So you want to be faster than an interpreter on mode...
by pjscott on Monday October 13, 2025 @11:56PM
(#45576109)
They do, technically, allow JIT. You need a very hard-to-obtain entitlement that lets you turn writable pages into executable read-only pages, and good luck getting that entitlement if (for some reason) your name isn’t “mobilesafari”, but the capability exists.
Re:JIT: So you want to be faster than an interpreter on mode...
by Wowfunhappy on Tuesday October 14, 2025 @07:25AM
(#45578700)
When you say it's "hard" to obtain--is it possible to obtain if you aren't Apple? Does Apple ever provide it to third party developers, or is there even a path to requesting it?
Re:JIT: So you want to be faster than an interpreter on mode...
by j16sdiz on Tuesday October 14, 2025 @08:26AM
(#45579211)
Yes.
Re:JIT: So you want to be faster than an interpreter on mode...
by cmeacham98 on Tuesday October 14, 2025 @10:43AM
(#45580686)
Source? Is there any non-Apple app that has this entitlement?
Re:JIT: So you want to be faster than an interpreter on mode...
by gf000 on Tuesday October 14, 2025 @12:14PM
(#45581811)
I believe the Delta emulator has JIT support, but possibly only when installed as a developer.
Re:JIT: So you want to be faster than an interpreter on mode...
by Wowfunhappy on Tuesday October 14, 2025 @03:26PM
(#45583773)
As far as I can tell, you need to connect your phone to a PC running software which enables JIT by exploiting a feature intended for remote debugging. https://faq.altstore.io/altstore-classic/enabling-jit
Re:JIT: So you want to be faster than an interpreter on mode...
by Rohansi on Tuesday October 14, 2025 @12:05PM
(#45581699)
If your app happens to be a browser that's only usable in the EU then:
https://developer.apple.com/documentation/browserenginekit/p...
Re:JIT: So you want to be faster than an interpreter on mode...
by ivankra on Tuesday October 14, 2025 @05:59AM
(#45578137)
They allow, but Apple's policy is to lock down that ability pretty much just to Safari/WKWebView. If you could transpile/compile your program to JS or WASM and run it through one of these blessed options, it should get JIT'ted.