Readit News logoReadit News
ioquatix commented on What's New in Ruby on Rails 8   blog.appsignal.com/2024/1... · Posted by u/amalinovic
byroot · a year ago
Yes. But just for the Action Cable parts, as in you'd deploy Action Cable standalone with falcon, and then keep Puma or whatever for the purely transactional requests.

If you don't, you'll notice that your Action Cable latency will be all over the place when a transaction request comes in.

It's acceptable for "hobby" use, but if you try to provide a good user experience with reasonable latency, you can't just collocate Action Cable and the rest of Rails in a single process.

ioquatix · a year ago
Have you actually benchmarked this and published the benchmarks somewhere?
ioquatix commented on Philosophy of Coroutines   chiark.greenend.org.uk/~s... · Posted by u/Tomte
ioquatix · 2 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.
ioquatix commented on Every Signature Is Broken: Insecurity of Microsoft Office’s Ooxml Signatures   usenix.org/conference/use... · Posted by u/pseudotrash
nailer · 2 years ago
I've heard the same for Windows code signing certs - that's it possible to modify the payload and have the signature still apply.
ioquatix · 2 years ago
Sounds like a useful feature to me.
ioquatix commented on All programming philosophies are about state   worldofbs.com/minimize-st... · Posted by u/signa11
ioquatix · 3 years ago
"All Programming is about State". All code is state. All state is code. It's turtles all the way down.
ioquatix commented on Efficient IO in Linux with io_uring [pdf] (2019)   kernel.dk/io_uring.pdf... · Posted by u/gurjeet
v3ss0n · 3 years ago
Needs asynchronous libs to adopt it
ioquatix · 3 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.
ioquatix commented on Async Ruby   brunosutic.com/blog/async... · Posted by u/brunosutic
kayodelycaon · 4 years ago
Ruby’s built in timeout library creates another thread with a sleep call. If something is blocking on a socket in the C code, the timeout doesn’t work.
ioquatix · 4 years ago
The fiber scheduler also hooks into the `Timeout` module to provide safe(r) timeouts using the event loop.
ioquatix commented on Async Ruby   brunosutic.com/blog/async... · Posted by u/brunosutic
continuational · 4 years ago
That seems kinda verbose to use. It's also a bit suspicious that all the examples discard the results; is it hard to get the results back out?
ioquatix · 4 years ago
Every task is a promise you can wait on for the result. Concurrent fan out is trivial.
ioquatix commented on Async Ruby   brunosutic.com/blog/async... · Posted by u/brunosutic
Smaug123 · 4 years ago
Please, someone, correct me if I've misunderstood.

The big difference appears to be that async Ruby does not merely give you an easy sugar to perform the sync-over-async antipattern you have described. The real innovation is that, as far as the user is concerned, Ruby is magically turning blocking methods into non-blocking ones.

ioquatix · 4 years ago
That's pretty accurate.
ioquatix commented on Async Ruby   brunosutic.com/blog/async... · Posted by u/brunosutic
brunosutic · 4 years ago
> This gem is almost a decade old

Hm, the first commit to the gem was in 2017. The gem was not "advertised" so that the interfaces can be polished and done right.

Async gem is hugely improved with Ruby 3.0 release (from December 2020) when Ruby language added "fiber scheduler" feature just to integrate better with Async gem.

ioquatix · 4 years ago
The gem namespace was transferred to me some time around 2017.

u/ioquatix

KarmaCake day1352October 2, 2009
About
http://www.codeotaku.com
View Original