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

> I never had any problem with debugging and profiling Futures/async/await.

When you profile a server written in the asynchornous style (with, say, JFR), the server can be under heavy load and yet the profile will only show idle thread pools. I don't know what you mean by having no problem profiling, but the Java platform offers no mechanism to profile asynchronous code.

> but the question is why do you try to hide it?

We don't. Virtual threads are threads, and just like threads today Java or Scala or Rust, you need some explicit operation to perform a concurrent task on some other thread.

> and I prefer a strong typesystem

Great, but that has nothing to do with threads. Rust and Scala support threads, too, and do so without any indication in the subroutine's type for blocking operations.



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

Search: