Live data from Hacker News

Viewing profile — ioquatix

ioquatix

HN member
Joined
Fri, Oct 02, 2009, 12:10 PM UTC
HN karma
1,352
Public activity
504 items

About ioquatix

http://www.codeotaku.com

Recent public activity

  1. story
  2. comment
    Comment #41784403

    Have you actually benchmarked this and published the benchmarks somewhere?

  3. comment
    Comment #37357711

    https://github.com/socketry/async uses coroutines and I think in general it’s been a great model with very few downsides in practice.

  4. comment
    Comment #36292886

    Sounds like a useful feature to me.

  5. comment
    Comment #34688996

    "All Programming is about State". All code is state. All state is code. It's turtles all the way down.

  6. comment
    Comment #33222367

    It's adopted by Ruby: https://github.com/socketry/io-event > which is used by https://github.com/socketry/async > which is part of the Ruby 3+ Fiber Scheduler for light weight conc…

  7. comment
    Comment #29087338

    The fiber scheduler also hooks into the `Timeout` module to provide safe(r) timeouts using the event loop.

  8. comment
    Comment #29052274

    Every task is a promise you can wait on for the result. Concurrent fan out is trivial.

  9. comment
    Comment #29052263

    That's pretty accurate.

  10. comment
    Comment #29051756

    The gem namespace was transferred to me some time around 2017.

  11. comment
    Comment #29051742

    ActiveRecord does work but it’s hugely limited because they have explicit per-thread resource pools which we can’t get around very easily.

  12. comment
    Comment #28362239

    > When designing an API in Rust which performs IO, you have to make a decision whether you want it to be synchronous, asynchronous, or both. Why must that be true? Why can't you wr…

  13. comment
    Comment #27440500

    So what are we going to do about it?

  14. comment
    Comment #27349582

    Extinction :(

  15. comment
    Comment #27252997

    Nope, they are totally different. However, the DB gem is an interface/driver similar to PHP's PDO, while AR is a set of drivers, interfaces and high level ORM interfaces. In theory…

  16. comment
    Comment #27242007

    The fiber scheduler solves this as concurrent execution is now built into the core of Ruby 3.

  17. comment
    Comment #27242002

    Also, it turns out the `pg` is also partially non-blocking. But AR may need to improve their connection pool implementation.

  18. comment
    Comment #27239801

    Non-blocking Postgres https://github.com/socketry/db-postgres Non-blocking MariaDB https://github.com/socketry/db-mariadb

  19. comment
    Comment #26756656

    Yes, it was. It was originally a front end and back end (query server) for CouchDB. But CouchDB 2 really went in a different direction to what I expected with query servers so I ga…

  20. comment
    Comment #26704666

    For the lolz: https://github.com/ioquatix/relaxo

  21. comment
    Comment #26097428

    This problem is being addressed in Ruby 3.

  22. comment
    Comment #25577318

    Ruby FFI has been experimenting with provided support for kicking external functions to background threads with a single keyword argument.

  23. comment
    Comment #25576612

    https://github.com/socketry/async-pool

  24. comment
    Comment #25576506

    We can do the same model for Ruby (preemption of event driven fibers) and may choose to do so in the future. We are just taking one step at a time.

  25. comment
    Comment #25576487

    Yes, you run one scheduler per core.