News for hackers. Stuff that matters.
Re:OCaml: Add support to iOS/Mac ARM64 by weitzj on Tuesday July 28, 2020 @12:28PM (#23977456)
Does anybody know what’s the status with bitcode support? Last info from about 1.5 years ago was that the Golang and Rust toolchain did not support it, but also Apple did not make it mandatory.

What is the current state? Does ocaml support bitcode?

Re:OCaml: Add support to iOS/Mac ARM64 by EduardoRFS on Tuesday July 28, 2020 @01:11PM (#23978106)
There is no support to bitcode, but there is no major advantage to support it, so it doesn't seems to be worthy
Re:OCaml: Add support to iOS/Mac ARM64 by sanxiyn on Tuesday July 28, 2020 @06:11PM (#23981232)
tvOS and watchOS require bitcode, but yes I agree that's not major advantage compared to work required to support it.
Re:OCaml: Add support to iOS/Mac ARM64 by sanxiyn on Tuesday July 28, 2020 @06:04PM (#23981173)
Rust had bitcode support since 2018: https://github.com/rust-lang/rust/pull/48896
Re:OCaml: Add support to iOS/Mac ARM64 by weitzj on Wednesday July 29, 2020 @01:47AM (#23983815)
Good. One more reason to look at rust. Main motivation is webassembly for me
Re:OCaml: Add support to iOS/Mac ARM64 by UncleOxidant on Tuesday July 28, 2020 @01:05PM (#23978022)
There is an OCaml interpreter that does run a bitcode, is that what you're referring to?
Re:OCaml: Add support to iOS/Mac ARM64 by Gaelan on Tuesday July 28, 2020 @01:28PM (#23978337)
The App Store has an option where, in addition to uploading an ARM binary, you can upload LLVM bitcode (a binary representation of LLVM IR). This allows Apple to optimize the app differently for different devices[0], and is required to build apps for watchOS and maybe tvOS.

[0]: Not sure if Apple does this in practice, but I believe the purpose of bitcode is that they could do that if they wanted to.

Re:OCaml: Add support to iOS/Mac ARM64 by wczekalski on Tuesday July 28, 2020 @02:06PM (#23978828)
OCaml compiler isn't LLVM based and LLVM bitcode is not supported.
Re:OCaml: Add support to iOS/Mac ARM64 by plorkyeran on Tuesday July 28, 2020 @05:03PM (#23980678)
When they released the first arm64_32-based watch they rebuilt all existing apps on the app store for that architecture from bitcode.