HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sideofbacon

no profile record

Submissions

We enabled Ruby's YJIT on GitHub.com today

ruby.social
5 points·by sideofbacon·2 anni fa·0 comments

“What the fuck are you talking about?”: The story of NodeTiles

island94.org
2 points·by sideofbacon·4 anni fa·0 comments

comments

sideofbacon
·10 mesi fa·discuss
Who? Everyone I recognize is continuing to contribute. https://github.com/rubygems/rubygems/graphs/contributors?fro...
sideofbacon
·3 anni fa·discuss
I'm the GoodJob author. Here's the class that is responsible for implementing Postgres's LISTEN/NOTIFY functionality in GoodJob:

https://github.com/bensheldon/good_job/blob/10e9d9b714a668dc...

That's heavily inspired by Rail's Action Cable (websockets) Adapter for Postgres, which is a bit simpler and easier to understand:

https://github.com/rails/rails/blob/be287ac0d5000e667510faba...

Briefly, it spins up a background thread with a dedicated database connection and makes a blocking Postgres LISTEN query until results are returned, and then it forwards the result to other subscribing objects.