Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

the bigger question is why they're using a C++ Thrift server

Because it's already there and it already works just fine.

It's so frustrating to see this sort of comment on nearly every post about a language outside the mainstream. It's a religious argument and not a productive one.



> Because it's already there and it already works just fine.

Well clearly it didn't work just fine if its threading model was interacting poorly with that of their Haskell code. If there's a mismatch between those two components then that will continue to bite them in the future, and it's legitimate to ask whether moving the boundary would be a better way to solve the problem.


There is an old saying: "We did what we did, not because it was easy; But because we thought it was going to be easy"

When they realized the bug the path forward probably seemed like patching and not a Haskell re-write, and that's a reasonable mistake to make.


your right, makes more sense to have both in c++


That was the last tried solution, didn't work out well. And what is holding is nothing haskell specific. Is just wasting effort re implementing good broad used code at Facebook.


I think the "why not write it all in Haskell" argument is a bit spurious. Only the engineers on the team knew best the advantages and disadvantages of the various approaches. Presumably there were very good reasons to integrate it the way that they did, whether driven by architecture, performance, knowledge, library, smallest-effective-change, or other reasons. It's clearly worked out very well in the most basic sense (it does the job). And on top of that, we now have bug fixes and other improvements submitted to ghc. Seems like a win-win.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: