Oxycon Blog
  • Home
  • About
  • Contact
  • Twitter
  • Instagram
  • OpenSource
  • Github
  • RSS
  • Home
  • About
  • Contact
  • Twitter
  • Instagram
  • OpenSource
  • Github
  • RSS
Introducing Threads, Parallelism, and Mutex in plain Ruby

Introducing Threads, Parallelism, and Mutex in plain Ruby

Ruby threads explained in plain Ruby: how threads speed up I/O-heavy work, how race conditions corrupt shared resources, and how a Mutex protects critical sections, with runnable examples and no framework required.

May 6, 2024

ruby
How to create a simple parallelized web scraper using Ruby and Async ruby

How to create a simple parallelized web scraper using Ruby and Async

Build a parallel web scraper in Ruby with the async and async-http gems: fetch many URLs concurrently using Async tasks, a Barrier to wait for results, and a Semaphore capping requests at eight at a time, all in one short script.

Apr 29, 2024

Painting 'Lady with a weasel' using genetic algorithms and Ractor parallelism in Ruby ruby

Painting 'Lady with a weasel' using genetic algorithms and Ractor parallelism in Ruby

Genetic algorithms meet Ruby Ractors: a script that repaints Lady with a Weasel generation by generation. Follow the full lifecycle (mutation, fitness scoring, crossover), see how Ractor parallelism speeds up scoring specimens, and view the final result.

Dec 11, 2023

Latest

Rails optimistic locking, pessimistic locking and how to solve StaleObjectError

Rails optimistic locking, pessimistic locking and how to solve StaleObjectError

Rails locking strategies for concurrent updates: optimistic locking with a lock_version column that works out of the box, pessimistic locking with lock! and with_lock, and practical ways to rescue and resolve the StaleObjectError that optimistic locking raises.

3 years ago optimistic-locking

Page 1 of 1
Oxycon Blog

Thought stories and ideas to Oxygenate You, Your product and The World in practice.

Explore

  • Home
  • About
  • Contact
  • Twitter
  • Instagram
  • OpenSource
  • Github
  • RSS

© 2026 Oxycon Blog. All rights reserved.

We use cookies to improve our services.