Tag: programming

  • Prolog for Ruby (ruby-prolog) Updated, Hits v1.0.1

    After a long period of inactivity I’ve updated the F/OSS ruby-prolog gem! It’s been updated for ruby 2.0.0, bundler, and minitest, and released as v1.0.1! ruby-prolog allows you to solve complex logic problems on the fly using a dynamic, Prolog-like DSL. Basic use is encompassed by stating basic facts using your data, defining rules, and…

  • Quick FASTQ File Parsing Via Memory Mapping In C/C++

    I recently had a need to speedily parse through 8GiB+ .fastq text files to calculate a simple statistic of genomic data. My initial “pfastqcount” implementation in Ruby worked fine, but with many files to process took longer than I had hoped in addition to consuming an alarming amount of CPU. I ended up reimplementing the pfastqcount…

  • 3D Desktop Ruby Applications On Linux

    Over the past year I’ve put out a few working demos of how to develop full 3D, OpenGL-based OSX applications using Ruby. Most of the comments I’ve received have been positive, but I think the high learning overhead has been the prime limiting factor in addoption. I also decided to focus exclusively on Mac OS…

  • Ruby: On The Perl Origins Of “&&” And “||” Versus “and” And “or”.

    Overview Avdi Grimm has a recent post noting the use of “and” and “or” Ruby keywords as essentially control flow operators, and hinting on their Perl origins. This instantly recalled several mental notes of old Perl programs, so I though I’d put out a few quick notes on the Perl equivalents for Ruby programmers not…

  • 3D OSX Applications With Ruby-Processing Screencast

    A two-part screencast series demonstating two different 3D ruby-processing applications. A slide presentation from 2009 created for the Phoenix Ruby Group is also attached as bonus material. Enjoy! Part 1: Starfield Demo of a 3D starfield simulation written in pure Ruby, running on the JRuby runtime as a nicely packaged .app program for Mac OS…

  • Logical Programming With ruby-prolog Slides

    I gave a ~1 hour talk last night to the Phoenix Ruby developers group on how to implement logical programming concepts in Ruby using the ruby-prolog gem recently released by OpenRain. Enjoy! [Keynote] [PDF] [Slideshare] [Code] [Releases]

  • What If Ruby Had Final Variables Like Java Or Erlang?

    After a long confusing Ruby debate today at OpenRain on the merits of functional, Erlang-esque write-once-read-many variables, I’m going to step onto the podium and just say it… Ruby should get “final” or “const” variables in a similar semantic style to Java, except at runtime. Rather than ramble on for 12 paragraphs explaining exactly how this might work,…

  • Programming Erlang Now Shipping, v1.1 PDF Released

    The Pragmattic Programmers are now shipping print copies of Programming Erlang: an outstanding introduction to the interesting new Erlang language for concurrent programming. Peeps who bought the PDF can download v1.1 here.