ioquatix

Joined 17 years ago

Karma
1,352
Submissions
504
Member since
Oct 2
http://www.codeotaku.com
View on Hacker News

Recent submissions

Comment · 2 years ago
Have you actually benchmarked this and published the benchmarks somewhere?
Comment · 3 years ago
https://github.com/socketry/async uses coroutines and I think in general it’s been a great model with very few downsides in practice.
Comment · 3 years ago
Sounds like a useful feature to me.
Comment · 3 years ago
"All Programming is about State". All code is state. All state is code. It's turtles all the way down.
Comment · 4 years ago
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 concurrency. It shows promising performance.
Comment · 5 years ago
The fiber scheduler also hooks into the `Timeout` module to provide safe(r) timeouts using the event loop.
Comment · 5 years ago
Every task is a promise you can wait on for the result. Concurrent fan out is trivial.
Comment · 5 years ago
That's pretty accurate.
Comment · 5 years ago
The gem namespace was transferred to me some time around 2017.
Comment · 5 years ago
ActiveRecord does work but it’s hugely limited because they have explicit per-thread resource pools which we can’t get around very easily.
Comment · 5 years ago
> 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 write the interface once, and have concurrency be an implementation detail?

Comment · 5 years ago
So what are we going to do about it?
Comment · 5 years ago
Extinction :(
Comment · 5 years ago
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, one could probably use DB as a driver under AR. One person even basically uses AR to generate SQL and then executes it with the DB gem, which I thought was pretty clever.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton