Mechanics, Electronics & Computing

A blog about gear, sparks and flops

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About
    • Me
  • Mechanics
    • CAD
  • Electronics
  • Computing
    • Sandbox

Post navigation

← Older posts

Writing C Extensions for Ruby

Posted on 2013/04/07 by admin

Hello World,

This post is about writing C extensions for Ruby.  There are benefits of writing a C extension for Ruby.

The best place to start is the Programming Ruby: The Pragmatic Programmer’s Guide chapter on Extending Ruby.

A excellent series of more in-depth tutorials were written by Chris Lalancette.

  • Writing Ruby Extensions in C – Part 1, Project Setup

  • Writing Ruby Extensions in C – Part 2, RDoc

  • Writing Ruby Extensions in C – Part 3, Extension Initialization

  • Writing Ruby Extensions in C – Part 4, Types and Return Values

  • Writing Ruby Extensions in C – Part 5, Exceptions

  • Writing Ruby Extensions in C – Part 6, Catch/Throw

  • Writing Ruby Extensions in C – Part 7, Numbers

  • Writing Ruby Extensions in C – Part 8, Strings

  • Writing Ruby Extensions in C – Part 9, Arrays

  • Writing Ruby Extensions in C – Part 10, Hashes

  • Writing Ruby Extensions in C – Part 11, Blocks and Callbacks

  • Writing Ruby Extensions in C – Part 12, Allocating memory

After your C extension is finished, you may want to package your C extension as a rubygem.

 

Posted in C, Ruby | Tagged Ruby

T-shirt for Coders

Posted on 2012/09/11 by admin

Hello World,

Here is possibly the greatest T-shirt idea ever.  (or maybe the geekiest…)

Artwork provided by

http://www.customink.com

Posted in Blah Blah Blog

Post navigation

← Older posts

Recent Posts

  • Writing C Extensions for Ruby
  • T-shirt for Coders
  • Email from Jack Ganssle
  • Fork Me on Github
  • All about Ruby C Extensions

Categories

  • AJAX
  • Blah Blah Blog
  • C
  • C++
  • CAD
  • Code
  • Computing
  • Electronics
  • I didn't ask you
  • JavaScript
  • OS X
  • Parrot Bay
  • PHP
  • Python
  • Ruby
  • Site Information
  • Windows

Head in the cloud

AJAX Apple books C++ CAD documentation embedded encryption experimental Firebug Firefox game gameQuery Github JavaScript jQuery jQuery Effects JSON Korg Mac microcontroller MIDI Mini msp430 music PHP quadrotor Raspberry Pi Regular expression resources Ruby Ruby on Rails software state machine statistics style Subversion SyntaxHighlighter unit test utility web Windows WordPress YAML

Here and Now

May 2013
M T W T F S S
« Apr    
 12345
6789101112
13141516171819
20212223242526
2728293031  

RSS /.

  • 3D Printers For Peace Contest
  • Intel's Linux OpenGL Driver Faster Than Apple's OS X Driver
  • Rough Roving: Curiosity's Wheels Show Damage
  • Tesla Motors Repays $465M Government Loan 9 Years Early
  • Why the 'Star Trek Computer' Will Be Open Source and Apache Licensed
  • NYPD Detective Accused of Hiring Email Hackers
  • Scientists Find Vitamin C Kills Drug-Resistant Tuberculosis
  • German IT Firm Seeks Autistic Workers
  • Violent Galactic Clash May Solve Cosmic Mystery
  • The Canadian Government's War On Science
  • MariaDB vs. MySQL: A Performance Comparison
  • Will Robots Take Over the Data Center?
  • Eric Schmidt: Google Will Continue Investing In UK Even If Taxes Raised
  • OSI President Questions WebM Patent License Compatibility with Open Source

RSS Hack a Day

  • Ask Hackaday: What are we going to do with the new Kinect?
  • Anti-Tetris project is a study in hand tracking

RSS hn

  • Tesla Repays Department of Energy Loan Nine Years Early
  • Whey Too Much: Greek Yogurt’s Dark Side
  • Steve Jobs emails that show how to win a negotiation
  • The Elves Leave Middle Earth – Sodas Are No Longer Free (2009)
  • My open source API client was taken down by a phony DMCA complaint
  • The Government Wants A Backdoor Into Your Online Communications
  • A Change to Google Code Download Service
  • Who is Satoshi Nakamoto, the creator of Bitcoin?

RSS Design News

  • Slideshow: Feds Study Human Brain; DARPA Wants to Make Robots Autonomous
  • Harvard, MIT Researchers Design 3D Printed, Self-Assembling Robots
  • Video: Seahorse Armor Inspires Robot Design
  • Rethink Reveals Version of Baxter Industrial Robot for Researchers
  • Video Blog: Life-Changing Inventions & the Big Bucks
  • Frequency Response: The Gold Standard
  • How to Create a Low-Pass Filter
  • Getting a Grip on Automated Manufacturing

RSS =\

  • Assign values from one member of a group to another in R
  • Static UITableViewCell returns nil on CellForRowAtIndexPath, but only for certain sections
  • if I put the full name my email telling (unknown sender) please help me
  • Comparing frequency taken from mic to known frequency

RSS CodeProject

  • “If all you have is a hammer…
  • Windows Development in C++, working with menus
  • How to ensure proper dynamic library boundary crossing for objects using smart pointers' custom deleters
  • TwitterBootstrapMvc
  • SQL Server Compact (CE) Database Maintenance Helper
  • Implementing a Basic Hello World WCF Service (v4.5)
  • EPUB Viewer for Android with Text to Speech
  • GPGPU Performance Tests
  • GPGPU Papyrus Demo
  • Basics of Single Sign on (SSO)
  • How to make a Tabbed Notepad
  • Solution Load Manager for Visual Studio 2010/2012
Proudly powered by WordPress