1. Technology
Send to a Friend via Email

Game Programming With Rubygame

One of the more fun projects a programmer can take on is game programming. Whether you do it for work or you do it for your own amusement, game programming is an exciting and rewarding activity. especially when using Rubygame.

Ruby Spotlight10

Effective Debug Messages

Using simple techniques to improve your debug messages.

Progress Bars with the ruby-progressbar Gem

How to use the ruby-progressbar gem to display progress bars on the command line.

Using IPAddr to Test Subnetworks

Using the built in IPAddr library to test if an IP Address belongs to a certain subnetwork.

Mutexes

Mutexes are a way to prevent more than one thread from accessing the same resource (variable, file, socket, etc) at the same time.

Thread Pools

Thread pools are a common pattern in many programs: the need to run M tasks, but only wish to run N of them in parallel at a time.

Threads

Threads are the primary method of concurrency and parallelism in Ruby.

Threading in Ruby

Threading in Ruby gets a bit of a bad rap.  While MRI doesn't support full threads, only one Ruby thread can be actively running at the same time, other Ruby

Mutexes in Ruby

Since we're talking about threads, we have to talk about mutexes.  A Mutex is the only practical way to prevent race conditions (where more than one thread

Thread Pools in Ruby

A common pattern in programs that must complete a large number of jobs is to use a thread pool, a type of producer/consumer model.  Say, for example, you have

Threads in Ruby

Ruby does have threads, however the threading support in MRI (the most widely used Ruby interpreter) is not complete.  It supports concurrency for IO-bound

You can opt-out at any time. Please refer to our privacy policy for contact information.

©2014 About.com. All rights reserved.