134 points · by nh2 · 3y ago · 169 comments
If so then we should look at the slope of the graph for 'growth', and it in fact appears to have flattened recently.
And further, as the size of the market increases, you'd naturally expect more postings, if only because of churn.
Are they definitely different jobs, new positions? It could be a handful of people are rotating around a handful of jobs that then need to advertise every few months.
I mean, it's extremely likely that there are more Haskell programmers employed now than in 2008, but IMHO this doesn't show it very clearly, and doesn't show that the market is now growing.
To me there seems to be some irony in that some nice pure stats about Haskell programmers seem so ungrounded.
The second graph shows the number of job posts per year, and it seems to reflect the bigger macro-economic situation: dip during pandemic, and a slight drop after 2022. I think these features are not specific to Haskell, just showing that the Haskell segment also follows some bigger trend.
Either the term "cumulative" is being used incorrectly, or different rules are being used to classify available jobs in each graph.
Maybe the first chart is filtering out duplicates?
They are screenshots of the linked Google sheet, which has the raw data and graph formulas.
Note there is one "sheet" per diagram (sheet switcher at the bottom inside Google sheets).
I consider it one of my larger mistakes. In hindsight the real problem was building the thing in isolation and then dumping it on someone else with minimal training time. I think different tools and languages are fine, but they need a bus factor of 2-3 to prevent this kind of stuff.
One of the motivations for adoption for us was strong interest on the team. Looking back on our team...
1. We started with me (enthusiast), our expert,and a Go developer with no Haskell experience.
2. Over time, at its peak, the team grew to us 3, Python developer who had dabbled, two Ruby developers who were interested but had no experience, a frontend expert who had dabbled, and another engineer who I didn't work with closely but I think had a background in Java?
3. Our expert left the team before or around the time that the last person (maybe-Java person) joined, I think.
4. On the second Haskell team I spun up, it's me, one person from the old team, a Ruby/JS developer, and a JS developer.
We were able to get all of these people productive in Haskell. It got easier once we had more experience teaching folks. There are a handful of _key differences_ between Haskell and ALGOL-family languages (mostly around evaluation model and effect tracking), and once you nail those down, the rest is pretty smooth sailing, and your SWE experience and intuition begins kicking in again.
Although we miss our expert very much every day (they were a very cool person! They drove a motorcycle!), their departure has not had an outsized impact on our velocity.
A sibling comment recommended a bus factor of 2-3. I think this is roughly correct, although I would think of this as not merely your "don't get hit by a bus" group, but also your core teaching group.
What's your team workflow around designing the code ?
Do you follow mainstream ideas or do you have very special tricks (say innovation on top of property based testing.. metaprogramming.. whatever)
Re: design workflow - this is not very different from any other code. You have module interfaces, logical subsystems, separately deployable service entrypoints, etc. Our Haskell code tends to take special care to avoid statefulness and globals, but this is not any more of a design burden than writing idiomatic code in any other language (e.g. planning out your classes in Java).
Re: special tricks - we used fused-effects to model our effects, which has been pretty useful (it lets us delay teaching transformers), but this is by no means a secret that we've discovered.
I think the biggest trick is to write simple code. I think when you give a junior engineer a sufficiently powerful hammer (like Haskell and its effect tracking), they will attempt to nail absolutely everything to the wall (e.g. build a taxonomy of every possible effect and every possible exception and write your whole program in this framework for Maximum Compile Time Safety).
Avoid this. It's just not a productive use of time, and the gains to safety often are not worth the effort and velocity and overhead you paid to build the underlying framework. Focus on the high-ROI piece of the program. Write the effects that you would use for testing, do the rest in IO for now, and come back later if you find that you need more granularity in your effects. The important thing is to ship the product.
(I go into much more detail about this in the Serokell interview linked in the other HN comment.)
Do you guys use parsec in production? What is the motivation for having Haskell to be half of the codebase? (Are there some open-source domain-specific libraries that are used intensively? Or do you guys prefer to implement things in-house (on top of libs that are more abstract)?)
And if parsec is used in production, any tips on how to best design/debug parsec parsers? (Thanks!)
Lastly, in your experience, what are some of the best monads / design patterns to improve team productivity? :{
Really curious about it
I think we waited too long to ship our initial prototype to customers, but a big part of that was that we were pretty sloppy in our product management at that stage of the company (I think we had closed the A about a year ago, and did not yet have our first dedicated PM), and our technical rewrite was also partially a feature and UX rewrite. It's been several years since, and we have clawed our way out of that hole, and I think our delivery process is actually in a really good place now.
If I were to give advice to people looking at adopting new languages, I would say to get it into production ASAP. I believe the keyword to search for is the "tracer bullet pattern". One of my favorite blog posts on this is https://blog.thepete.net/blog/2019/10/04/hello-production/
I think Haskell and OCaml are popular in finance because they're high-level and familiar to math/quant types (who are broadly--and this is a sweeping generalization--more familiar with expressing algorithms in recursion than in procedural sequences).
I don't have much experience with OCaml, but I can also say that Haskell in particular has incredible support for building very high-level libraries that are both expressive and have strong compile-time guarantees. I've found it's relatively easier for a programming expert to build such a library and a domain expert to consume the library in Haskell than in many other languages I've seen (perhaps Python comes the closest, but that feels to me more like an ecosystem thing than a language thing).
[1] https://serokell.io/blog/haskell-in-production-standard-char...
Click on "Area" column header to sort.
Or do you mean relative to Java?
Off the top of my head, 3 advantages stood out:
1. First, if you're not going that far off the beaten low-level path, Haskell has incredible productivity benefits. Effect tracking has enormous benefits for testability and understandability. If you've ever been down a debugging rabbit hole shaped like "there's no way this logging call is sending that API request", then you might be pleasantly surprised to discover that you can statically guarantee that this doesn't occur in Haskell programs! Pattern matching, algebraic data types (sum types!), and typeclass derivation make it much easier to make it impossible to construct invalid representations of data. Other languages are finally picking this up, but their versions of pattern matching often have caveats for backwards-idiom-compatibility. And monads are a very powerful abstraction. It's like being able to write your own semantics for async-await (I've talked more about this before at https://lobste.rs/s/7cllte/monads_part_six_really_what_is_mo...).
2. Haskell was a good domain fit for us. One thing we build is the FOSSA CLI (https://github.com/fossas/fossa-cli/), which runs in customer CI pipelines to analyze their builds. It's a very compiler-shaped problem: shell out to some tools, do a lot of parsing, think very hard, and then spit out a JSON blob to send back to the API. Our first version of this was written in Go. At the time of development, writing correct, testable parsers in Go was like pulling teeth. We have a relatively small headcount-to-product-surface-area ratio, and our team was running up against the overhead of rewriting traverse in Go over and over again (that's a Haskell-flavored joke, but if you've ever been annoyed at writing yet another for-loop in Go, you get it). We decided to hack out a prototype in Haskell, and it turned out to be a good fit.
3. Lastly, the kind of people who wind up working at FOSSA and are interested in the code analysis bits tend to be the same kind of nerds who love Haskell. We had lots of people on our team who were chomping at the bit to try it, so we decided to try it out. I really can't understate how big of a productivity difference it makes when people are working with tools that they actually enjoy rather than are merely forcing themselves to use. It is night and day.
If you want to learn more, we also did an interview with Serokell on this topic (https://serokell.io/blog/haskell-in-production-fossa), and discussed it on an episode of our engineering podcast (https://fossa.com/blog/fossa-podcast-adopting-haskell/).
Re: development process - it's very similar to development in other languages. Write, compile, yell at compiler, push, complain about how slow CI is, deploy. You know, the usual.
I think the most interesting difference is the _onboarding_ curve. Haskell's curve is pretty brutal, although I think most of this is because of bad pedagogy (many monad tutorials are bad, and beginners can't tell) rather than because of intrinsically difficult concepts. Some observations:
1. Empirically, zero to code review is roughly six weeks for a professional industry software engineer. It's not that much longer than other languages we've had to teach. But it _feels_ very brutal because zero to side project is roughly three or four weeks. Contrast this against Go, where zero to side project is about five minutes.
2. Having an experienced Haskell engineer on your team to start with makes a WORLD of a difference. You've gotten a type error - why? Is it because GHC is doing weird backwards type inference stuff again? Or is it because you've misunderstood this fundamental concept? Or is it because you've done a typo, and GHC has inferred a downstream site to be a type error? This sort of thing is very difficult to explain in words and in general, and much easier to pick up through experience and mentorship. If you do not have an experienced Haskeller at your disposal, I would strongly recommend starting with side projects first, and using the Functional Programming Slack (fpslack.com), who are some of the friendliest and most patient folks I've had the pleasure of talking to.
It appears monads truly are something you can either understand or explain, but not both.
I find it suspicious. I mean, plenty of Haskell devs out there, surely it's not that hard?
We started from nothing in January, shipped the app last month.
We have 2.5 developers.
Can you elaborate the process? The only reference I could only find this: https://wiki.haskell.org/Android.
How did you end up developing/deploying your UI?
Thanks!
Have you tried fp-ts ecosystem? Code written in it looks pretty similar to Haskell, but it's still the same language, and you can gradually adopt it in the codebase instead of re-writing the whole thing.
(I've also sent a question about personal professional development to your email from profile, hope this isn't abuse of your kindness here)
That graph which is shown above the fold is cumulative graph is, well, misleading.
Absolute number and percentage are both interesting metrics depending on what you are interested in.
E.g. even if "getting your face hit by a brick, hourly" is a more widely demanded skill and has more job openings than Haskell I'd still pick the latter.
"Robert and I both knew Lisp well, and we couldn't see any reason not to trust our instincts and go with Lisp. We knew that everyone else was writing their software in C++ or Perl. But we also knew that that didn't mean anything. If you chose technology that way, you'd be running Windows. When you choose technology, you have to ignore what other people are doing, and consider only what will work the best."
It turns out the Haskell job market has been growing steadily since then, with a dip during Covid.
I'm not after FANG money but would love a job in a functional language.
I did it this way: Learned Haskell in university, found it lot better than other languages in many regards, decided that I don't want to waste my life time using worse tools for 40 years of career when there are better tools around, and set out to get a Haskell job. I taught myself enough Haskell to write real world programs besides university, and got the desired job straight after uni.
I found my job from, surprise ... the Haskell Reddit; in fact, my first job is in the raw data linked from the repo.
It is possible to onboard onto Haskell jobs without knowing the language, but it is way easier and more likely to get a job when you know it reasonably well first.
So do learn it.
If you are interested in a job using a functional language you can pick basically any of them and then jump ship to a different one. I wrote Clojure for many years before switching to Haskell.
Everything is worth learning, especially if it interests you.
That being said, you should be aware that outside of hyper niche applications, most Haskell jobs are in projects where Haskell was chosen because some lead has an affinity for it, not because of any real practical benefits in comparison to other languages.
That being said, expertise in FP can open the door to some very interesting jobs. I remember when I was a student (20+ years ago), the word was that FP was pretty much useless in the real world. While it's true that it's more niche than C++/JS, some teams use it, and it can give you an edge.
One data point - I get paid to solve problems by writing OCaml code. I am a self-taught programmer with a linguistics undergrad degree.
I hope this helps others who are interested, but are feeling insecure because of the stereotype that one needs a PhD to write programs in a particular language.
This isn't what I said. Even a high school student can write programs in OCaml, it doesn't require any degree and is no harder than other languages.
My point is that if you want to work at Meta, Jane Street, Standard Chartered, or other selective companies that use Haskell/OCaml, just having "Haskell" listed on your resume is probably not enough to be considered for interviews. You will need other skills to distinguish you from other candidates. Could be a PhD, or being good at grinding leetcode problems, a recognized expertise, a prestigious degree, domain specific knowledge and so on.
I suspect companies using these languages tend to be more selective on average than those working on more common tech (e.g. php, js).
> feeling insecure because of the stereotype that one needs a PhD to write programs in a particular language
One certainly doesn't need a PhD to program in a functional language. But I can tell you, there is a big gap between being able to do it and convincing someone to hire you. I even have a PhD in comp sci, and AFAICT, it hasn't convinced anyone that I can do anything in particular.
To you. Not to everyone. Personally, I wouldn't work in PHP for anything short of the Apollo program. The gap between Haskell and the best mainstream languages is not quite that large, but it's not negligible either.
And I get what you’re saying, but most places are not hiring PHP, they’re hiring boring languages that aren’t that bad to work with.
I know F# and think Scala or Ocaml might be a better choice as the next language I learn.
Purescript also looks promising.
I could invest all the time in Haskell first but there is an opportunity cost that I'm trying to maximize.
It seems so paradoxical.
It's a bit like someone saying, I'd love to be a hairdresser, do you think it's worth studying to be a hairdresser? There's something which blows up my brain to read that. If you love it, do it.
Nothing makes sense here!
What do you mean by this? I've been out of school for decades.
Learn out of curiosity, not for money. Money will come.
There is no expectation that a job will fall on my lap. However, if I have a better chance of winning the lottery than landing a job in a technology I'm not likely to bother learning the technology.
I'm not convince Haskell will do more to making me a better programmer than another language could. If that other language has job prospects I'm going to lean into that.
(We could talk about other languages too, but here we were talking about Haskell. It's a particularly interesting choice for growing as an engineer because it's a purely functional language, which means it will force you to unlearn a whole bunch of things and give you a lot more perspective-- it's not difficult, it's just very different than most other languages you likely have exposure to. I also recommend Clojure, that's a great language.)
At my workplace, we've been toying with Haskell and we'll be putting it in production over the next 6-12 months. I might be placing some Haskell job adverts on reddit next year!
02/01/2011 16 The F# Team are Hiring (functional programming jobs) 08/27/2022 425 Looking for a Haskell Job in Germany
Ex: Is it new companies offering new jobs... Or largely a fixed stagnant list of companies locked-in and needing to replace + expand?
Curious both by # co's, and % of jobs. Is there a few Haskell mega-employers out there, is it mostly replacement of existing with growth being from new co's, ...?
(I used to measure adoption decisions here, and employment is an awesome angle!)
From a 30 seconds look, it seems there are around 5 cryptocurrency jobs in the list for year 2022.
You will find that currently the list of Haskell companies is quite diverse across industries, which is a big change vs. 10 years ago.
Opinion: Something I did not anticipate is these languages allow a high degree of individual choice in coding style by a programmer, and companies tend to dislike this. I have read this sentiment about Clojure shops; the original authors are very capable in the codebase but it can be hard to bring in new team members later. It seems to me most companies prefer less expressive languages with opinionated style guidelines. I have never worked with Python professionally, but apparently there is a high emphasis on style consistency in the community.
Obviously there exist projects in less expressive languages that are hard to maintain, so maybe ease-of-onboarding and ease-of-maintenance depend on something else.
I still believe the type system of Haskell can provide great benefits to codebase maintenance over the long term. If the coding style were restricted and opinionated, it might assist with company adoption.
Eh, it's the other way around. As you keep adding functionality to a program in an imperative language, at some point it will turn into a mess that you can describe as a Rube Goldberg machine.
Functional programming allows one to keep one's head cool, and thus you will reach tipping point complexity at a much later stage.
FP allows one to build taller buildings. This is what attracts smart people to Haskell.
I know the one and only Haskell job I personally looked into was about smart contracts.
The functional paradigm has its strengths and weaknesses, just like any other paradigm. One of its strengths is facilitating elegant, easily understood, and highly correct code -- but that depends on the developer.
Good to see the adoption growth.
Maybe that'd be a good canary in the coal mine of the Haskell job market, so to speak.