Better HN
topnewbestaskshowjobs
Log inSign up

HappyDoge

11 karma · joined May 19, 2020 (6y ago) · 4 submissions

Submissions

comment 6y ago · link · parent

Ostensibly yes, but F# has limited and clunky compile time ad-hoc polymorphism mechanism that can be used to implement "type classes" - which however can be abused to great effect if you really want generalised binds https://github.com/fsprojects/FSharpPlus.

Not to mention it has subtype polymorphism on par with what you get in C# that you can really get a lot of mileage from (and which gets too easily glossed over by some FP neophytes), AND an extensive reflection API to bridge the gap if you have nothing else to fall back to.

comment 6y ago · link · parent

Sure, Scala has fancier stuff on the high end of things, but it doesn't nail the basics the way F# does. I don't feel like sacrificing day-to-day productivity so I can skip duplicating some code with recursion schemes.

Your dream language sounds a lot more like F# than Scala tbh.

F# doesn't have (easy to use) type classes or higher kinded types, but has simplified modules and full access to .NET object system for all your polymorphism needs, and a much more seamless interop with the platform it's running on as there's significantly less "magic" happening in the compiler compared to Scala.

comment 6y ago · link · parent

Only to an untrained eye. F# is a firmly rooted in ML language family history, only making concessions where necessary due to the fact it's running on the CLR. Scala is a random walk of language design space, with different ideas either working or ending up complete trainwrecks, and the fact it's missing this clean ML core makes it a painful language to pick up coming in from F# (or in fact most other statically typed FP languages).

comment 6y ago · link · parent

Walmart has been running on Jet tech stack heavily as far as supply chain side of things is concerned.

Both the distribution centers and the technology driving them have been integrated with Walmart systems early on after acquisition and many current and future developments in that area are based around formerly Jet tech written in F#.

That's not going anywhere.