Live data from Hacker News

Viewing profile — Pauan

Pauan

HN member
Joined
Fri, Feb 25, 2011, 2:15 PM UTC
HN karma
174
Public activity
19 items

About Pauan

No profile information was provided.

Recent public activity

  1. comment
    Comment #37441060

    Threads cannot scale at all, because you're limited to the number of threads (which is usually quite small). Async code can scale essentially infinitely, because it can multiplex t…

  2. comment
    Comment #37441014

    > Async traits come to mind immediately, I agree that being able to use `async` inside of traits would be very useful, and hopefully we will get it soon. > generally needing more c…

  3. comment
    Comment #37440959

    > So you’re stuck choosing a single CPU or having to write send and sync everywhere. There’s a lot of use cases where you would want a thread-per-core model like Glommio to take ad…

  4. comment
    Comment #37440933

    Even the costs you are talking about are a one-time cost to read the documentation and learn the abstraction. And the long-term benefits of the abstraction are far greater than the…

  5. comment
    Comment #37440919

    I never said that ALL abstractions in Rust are zero-cost, though the vast majority of them are, and you actually have to explicitly go out of your way to use non-zero-cost abstract…

  6. comment
    Comment #37439096

    I'm curious what things you consider to be half-baked about Rust async. I've used Rust async extensively for years, and I consider it to be the cleanest and most well designed asyn…

  7. comment
    Comment #37439029

    I am very aware of the definition of zero-cost. We're talking about the comparison between using an abstraction vs not using an abstraction. When I said "doesn't have a runtime cos…

  8. comment
    Comment #37438932

    The whole point of an abstraction is to remove complexity for the user. So I assume you mean "implementation complexity" but that's irrelevant, because that cost only needs to be p…

  9. comment
    Comment #37437613

    Ah, my mistake.

  10. comment
    Comment #37437600

    Every executor (including tokio) supports spawning Futures that aren't Send: https://docs.rs/tokio/1.32.0/tokio/task/fn.spawn_local.html There is a lot of misinformation in this th…

  11. comment
    Comment #37437591

    No, tokio does not require your Futures to be thread-safe. Every executor (including tokio) provides a `spawn_local` function that spawns Futures on the current thread, so they don…

  12. comment
    Comment #37437034

    Yes, you can do that. You can use `block_on` to convert an async Future into a synchronous blocking call. So it is entirely possible to convert from the async world back into the s…

  13. comment
    Comment #37437021

    If you choose to use Mutex, that's on you. Rust gives you channels (both synchronous blocking channels and async channels), and they work great, there is nothing stopping you from …

  14. comment
    Comment #37436983

    Rust embraces abstractions because Rust abstractions are zero-cost. So you can liberally create them and use them without paying a runtime cost. That makes abstractions far more us…

  15. comment
    Comment #37436924

    Rust has had OS channels since forever, and async channels for 5 years. Rust has changed a lot in the past 5 years, people just haven't noticed, so they assume that Rust is still a…

  16. comment
    Comment #37436892

    Rust Futures are essentially green threads, except much lighter-weight, much faster, and implemented in user space instead of being built-in to the language. Basically Rust Futures…

  17. comment
    Comment #28633113

    I think there are a couple important details you are missing... First, wasm-pack is not Ashley's personal project, it is an official Rust Wasm project. That means it is owned by th…

  18. comment
    Comment #11104965

    I am aware of Dylan, however it did not have any influence on Nulan. Nulan's macro system is very similar to Common Lisp or Arc's macro system, in the sense that a macro is simply …

  19. comment
    Comment #11104671

    Hey guys, I'm the creator of Nulan. There were some bugs in the tutorial, which I fixed just now. If the tutorial wasn't working for you, please try again. ---- This is a pleasant …