Tag: ruby

Exploring speculative execution and evaluation

Consider a simple search problem with multiple paths. The main processing path can be computed in series as required functionality is identified. Completion occurs whenever an adequate solution is found. Alternatively, potential paths can be searched in batches or all simultaneously ahead of time**. This diminishes the wait for required functionality at the cost of additional processing, some of which may never be necessary. We trade computation power for statistically lower execution time.

(more…)

Practical First Rails Threading Example

Getting a Handle On Threads

Yesterday I wrote briefly about threading in Ruby. Ruby threads don’t natively take advantage of multiple processors or cores (this may have changed), but they’re a great way to lower wait time on concurrent external delays. This is a non-blocking solution to initiating several API calls simultaneously, and greatly reduces delay, an imperative requirement to web services. (more…)

Walking down the tracks with Ruby on Rails

A Sea of Glass - The Chihuly Exhibit at the Ballagio in Vegas
this is a follow on post to Pigs may not have wings, but I can Ride the Rails with a flu

Gems Gems Gems

The first barrier to entry to ramping up on RoR (Ruby on Rails) was setting up a build environment. I found several windows friendly developmet options. Netbeans has an install. Steel Ruby has a visual studio variant, Instant Ruby creates an environment you can drop rails projects into (instantly ;) ), and Ruby Forge has an executable for windows machines. I opted for the Ruby Forge windows exec after trying the other routes to varying degrees of success. Primarily because it almost works (there’s no shuffle! Array function on the RoR Ruby Forge version, or my environment still has problems), it’s command line driven, and I know where the common install/gem folder is.

(more…)