276 karma · joined Nov 15, 2019 (7y ago) · 69 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
https://www.statista.com/statistics/275746/rmbs-issuance-in-...
comment 6y ago · link · parent
He calls this restriction by paradigms.
comment 6y ago · link · parent
It works really well and intuitively I would say, and even more; this is a common application to show the advantages of functional programming. Here is an article comparing sending messages asynchronously between threads in Elixir and Clojure (two common functional languages) https://bentomi.github.io/posts-output/2017-06-04-message-se...
comment 6y ago · link · parent
Very off topic, but I have read several times the argument that the rise of functional programming is due to it's easy concurrency (since functions don't have side effects) and that concurrency becomes more and more important due to moores law being dead (i.e. we can't scale the hardware up, we have to add cores to our processors).
Could someone with more experience comment on that? Is concurrency really easier in functional languages and is the rising importance of concurrency a valid reason to look into functional programming?
comment 6y ago · link · parent
I firmly believe (against the common HN sentiment) that 99% of the developers do exactly 0 exploration of new technology and they couldn't care less (which is their good right). Also not everybody sits in a fancy startup in the Bay-Area and has even the skills or time to adapt. Most developers sit in a big company that has been doing their stuff for 10+ years and are not very susceptible to change. As an anecdotal example, I recently talked to a company that could not figure out why they could not attract talent. They claimed "we are so innovative, we even adapted PostgreSQL". Before that they used csv as their "database".
comment 6y ago · link · parent
While I share your sentiment, I've recently talked to about 5 people who write software for low-level, security relevant things in airplanes. Imho the best application for Rust one could think of. None of them had even heard of Rust. But this is highly anecdotal of course.
comment 6y ago · link · parent
My core criticism that is not really mentioned in the article is the error messages. At the beginning I often felt lost and had no idea where to look if something went wrong.
comment 6y ago · link · parent
We also used it extensively for teaching, since you can implement a lot of cool things without having to worry to deeply about programming or CS.
comment 6y ago · link · parent
Once you got used to it, you notice other things like the speed and configurability.
But tbh I do think it only makes sense if you do a lot in the terminal, and need to switch often between applications.
comment 6y ago · link · parent
That is a really good point. From my personal pov languages that take to long to understand and take you >1 week to get productive are rarely useful since you won't be able to afford or train "normal" people to use it.
In my company we recently switched from Python + Numba to Python and Clojure. Since even though people never heard of functional programming or Clojure, they can get started on simple things within the first week.
comment 6y ago · link · parent
Correct me if I'm wrong, but didn't Scala overtake Clojure some years ago as the second most popular language on the JVM (second to Java ofc). From my point of view it rarely happens that these trends reverse.
Scala has the advantage that it allows OOP or Functional Programming, which Clojure does not.
But I do get your point about simplicity. I tried 3 times to learn functional programming by learning Haskell and it never clicked. Then I learned Clojure and who would have thought, functional programming is actually not as hard as Haskell makes it out to be.