News for hackers. Stuff that matters.
Re:TypeScript vs. ReasonML by gridlockd on Wednesday September 04, 2019 @10:47AM (#20877639)
None of these are worth switching to a fringe ecosystem for.

The compile-example is misleading. Clean build times don't really matter. Iteration times with "tsc -w" would've likely been well under a second.

The boiler-plate in the redux example could be reduced, but redux itself is extremely boilerplate-heavy when written in this explicit style. It would be interesting to see how the ReasonML typesystem gets in the way of metaprogramming.

Re:TypeScript vs. ReasonML by sikan on Wednesday September 04, 2019 @01:17PM (#20879308)
At work our TS project with a thousand files takes 30mins on CI, incremental save takes at least 20 second. Half of the time makes the machine run out of memory.

Bucklescript can have a clean build of 1.2k files project in under 4 seconds! https://twitter.com/bobzhang1988/status/1160846763747508224

Re:TypeScript vs. ReasonML by gridlockd on Wednesday September 04, 2019 @02:59PM (#20880323)
Thanks for the data point. Those aren't the same thousand files though.

If your project has a thousand source files of any programming language, it's probably time to quit and join a younger company.

Re:TypeScript vs. ReasonML by a0 on Wednesday September 04, 2019 @11:34AM (#20878149)
One place where clean build times do matter is in the CI. Having very fast builds and tests is great for speedy deployments.
Re:TypeScript vs. ReasonML by gridlockd on Wednesday September 04, 2019 @03:00PM (#20880335)
Why? Does your CI do a clean build for every test?
Re:TypeScript vs. ReasonML by yawaramin on Wednesday September 04, 2019 @08:14PM (#20882697)
Most CIs do clean builds for every PR, merge, and deploy ... that adds up to a lot of time.