"good enough" for what? this kind of smacks of "systems language" high-horsery, imo
-
-
Replying to @strega_nil @munificentbob
Good enough that the gains you get from rewriting your CPU-bound OCaml code in e.g. C++ are usually better than the gains you would get from parallelizing the OCaml.
1 reply 0 retweets 0 likes -
Replying to @pcwalton @munificentbob
Yes, but then you would be using C++, and losing out on the benefits of OCaml. Adding multi-core support to OCaml both 1) allows you to gain from multi-core, and 2) allows you to continue using OCaml. Plus, multi-core is tied up with effects, so you gain that benefit too on top
1 reply 0 retweets 0 likes -
your assumption seems to be that there might not be a benefit beyond speed to write in a language
1 reply 0 retweets 0 likes -
Replying to @strega_nil @munificentbob
I’m saying that in practice most people who care enough about speed to go out of their way to parallelize their code for better CPU perf will pick the speed over the language.
1 reply 0 retweets 0 likes -
Replying to @pcwalton @munificentbob
Your logic doesn't make sense. It assumes that parallelism is somehow inherently difficult, *and* that rewriting an OCaml codebase in C++ is somehow feasible.
2 replies 0 retweets 0 likes -
Replying to @strega_nil @munificentbob
Feel free to prove me wrong :) I’m not saying it’s good. I’m just saying what I’ve seen over and over: JavaScript (PJs), Golang, Haskell frameworks, etc.
1 reply 0 retweets 0 likes -
Replying to @pcwalton @munificentbob
C# and Java both support parallelism while being on a level above OCaml
2 replies 0 retweets 0 likes -
Replying to @strega_nil @munificentbob
And people don’t do nearly as much parallel CPU bound computation in them as opposed to C++.
1 reply 0 retweets 0 likes -
Replying to @pcwalton @munificentbob
This is like pointing at Unity and saying "this is a failure because C++ is used to write most games", imo. Yes, C++ is often used to write parallel code. This does not mean that C++ is the only language that one should write parallelized code in.
1 reply 0 retweets 0 likes
Why should I write parallel code in OCaml when I can write it in Rust and get the same benefits as OCaml, but much faster CPU performance?
-
-
Replying to @pcwalton @munificentbob
because Rust is a much worse language than OCaml, in terms of developer experience, imo.
1 reply 0 retweets 2 likes -
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.