Better HN
topnewbestaskshowjobs
Log inSign up

EduardoRFS

49 karma · joined Jul 28, 2020 (6y ago) · 8 submissions

Submissions

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

There is no support to bitcode, but there is no major advantage to support it, so it doesn't seems to be worthy

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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)

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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