News for hackers. Stuff that matters.

EduardoRFS

Re:OCaml at Bloomberg on Monday August 23, 2021 @05:25PM (#28282179)
OCaml is really good at building in parallel. So even without that many files it can still compile using 32 threads.

Making so that a project with 20k loc is less than a second in debug mode. And recompile time in native(debug) mode is almost 100% linking time.

For bytecode you can have wild rebuild times, in the milisecond range.

Re:OCaml at Bloomberg on Monday August 23, 2021 @05:21PM (#28282141)
OCaml is much faster than Go in the bytecode mode, as you have interfaces files which drastically simplify the typing process.

The compiling pipeline of bytecode is basically typing -> lambda -> bytegen

Bytegen is really close to what Zinc does.

Re:OCaml Workshop 2020 Online Conference is live now on Friday August 28, 2020 @12:47PM (#24307033)
I have some tools that you can use to cross compile pretty easily, not a first class yet but it works, you can build generic toolchains quite easily, just a new `sysroot` with the compiler + some flags

https://github.com/EduardoRFS/reason-mobile

Re:OCaml: Add support to iOS/Mac ARM64 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 on Tuesday July 28, 2020 @01:10PM (#23978082)
Most developers, there is a lot of places to get this information but if you look at the stackoverflow survey, which is a survey large enough to be relevant, you get some data around 25% of developers using Linux.

We're talking about as their computer, not servers tho, everyone uses Linux for server

Re:OCaml: Add support to iOS/Mac ARM64 on Tuesday July 28, 2020 @12:42PM (#23977676)
Android isn't even on the official list of OS supported, recently I fixed the build system for Android, OCaml is just not a mobile language(yet)
Re:OCaml: Add support to iOS/Mac ARM64 on Tuesday July 28, 2020 @11:42AM (#23976924)
There was a previous PR where I got the overall patches needed, but almost everything was developed on the iOS + QEMU, at first I didn't had spare money to buy an used iPhone.

The only feature developed on the real iPhone was the dynamic linking, but because I already got the device.

Also I don't have a mac so Hackintosh, a powerful Hackintosh but nonetheless

Re:OCaml: Add support to iOS/Mac ARM64 on Tuesday July 28, 2020 @11:18AM (#23976683)
I don't think that was the case for a long time on the tooling side, OCaml has a great support for ARM64 for a long time now, but Linux ARM64. But well most developers aren't actually using Linux.

But a thing that is going to change is supporting iOS, one of the reasons that this PR was approved(and it adds support to iOS) it's mostly because there is a Mac ARM64