21 April 2014

The Ruby Reflector

Topic

MacRuby

  Source Favicon
Email

Episode 38: Standing out from the pack :

This week Ben Orenstein is joined by Jeremy McAnally, employee at GitHub, author of Ruby in Practice, Rails 3 Upgrade Handbook, MacRuby in Action, and more. Jeremy and Ben discuss teaching and organizing conferences, remote working for GitHub, the and the company summits, GitHub workflows, their internal tools team. They also talk about standing out from the pack in work, life, and getting accepted to conferences, selecting …

robots.thoughtbot.com Read
  Source Favicon
By Charles Nutter of Headius over 1 year ago.
Email

…implementations that use tagged pointers to represent Fixnum (MRI, Rubinius, MacRuby), the Fixnum range is somewhat less than the base CPU bits (32/64). On JRuby, Fixnum is always a straight 64-bit signed value.

The promotion is definitely a performance concern for a couple reasons:

Every math operation that returns a new Fixnum must be range-checked. This slows all Fixnum operations.

It is difficult (if not impossible) to predict whether a Fixnum math operation will return …

blog.headius.com Read
  Source Favicon
By jeff of Comments on: blog over 3 years ago.
Email

Interesting tidbits from around the web (November 22nd):

Isaac Kearse | Packaging A HotCocoa Application - if you're going to use hotcocoa might want to slim the deployed app, this will help

Build A Mac Application From Scratch Using MacRuby and Hotcocoa - Intridea Blog - quick hello world example for using MacRuby to build a native OS X app. If you're using rvm you could also: rvm install macruby

C-Command Software ent …

blog.thequeue.net Read
  Source Favicon
By Charles Nutter of Headius over 1 year ago.
Email

…implementations that use tagged pointers to represent Fixnum (MRI, Rubinius, MacRuby), the Fixnum range is somewhat less than the base CPU bits (32/64). On JRuby, Fixnum is always a straight 64-bit signed value.

The promotion is definitely a performance concern for a couple reasons:

Every math operation that returns a new Fixnum must be range-checked. This slows all Fixnum operations.

It is difficult (if not impossible) to predict whether a Fixnum math operation will return …

blog.headius.com Read
  Source Favicon
By Roc Yu of Intridea - Company Blog over 3 years ago.
Email

Macruby + Hotcocoa = Build Mac applications without pain (For Rubyists)

Before we get started with the tutorial we need to install MacRuby and Hotcocoa.

Install Macruby from sources: svn co http://svn.macosforge.org/repository/ruby/MacRuby/tags/0.7.1 MacRuby-0.7.1 cd MacRuby-0.7.1 sudo rake install

Install using the standalone binary installer( dmg):

" MacRuby Installer":http://www.macruby.org/files/MacRuby%200.7.zip

After install you can check version …

intridea.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup over 1 year ago.
Email

Watching a nuclear-powered robot land via sky crane on Mars does make a lot of this stuff seem less important.

MacBacon - RSpec clone designed to work with MacRuby/ Objective-C.

The Origin of Master Space and Time With JavaScript - Noel Rappin explains why he wrote another book.

afreshcup.com Read
  Source Favicon
By HAML of over 3 years ago.
Email

IB. However, in macruby, we can't specify the return type. After reading enough examples, I gave something crazy a try. What if the name of the arg matters? def set_font_size(sender) # blah end

And there it appears. Damnit! Always call the arg "sender" and you will have your macruby methods show up as actions in interface builder. Macruby is too smart for its own good and the documentation is just.... lame. We need merbist to finish his book fast!

blog.hamptoncatlin.com Read
  Source Favicon
By Peter Cooper of Ruby Inside over 1 year ago.
Email

…introduces suport for formatting and code insight for Slim and Sass, MacRuby syntax highlighting, Capistrano deployment support, extra Sinatra integration, and more. It's a commercial IDE but the one I've heard the most good things about.

GitHub Takes $100m of Funding

The Ruby world celebrates its latest home grown business success, GitHub, who this week announced they've received $100m in funding from Andreessen Horowitz. Will every Rubyist eventually …

rubyinside.com Read
  Source Favicon
By Peter Cooper of Ruby Inside almost 2 years ago.
Email

The Changelog Interviews Laurent Sansonetti about Ruby Motion, MacRuby and More

The Changelog guys caught up with RubyMotion creator Laurent Sansonetti to talk about MacRuby, RubyMotion, MonoTouch, and more.

Libraries and Code

Rack Canonical Host: Middleware for Defining A Canonical Host Name

Rack middleware for defining a single hostname as the canonical host for your app. Requests for other hostnames will get redirected to the canonical host …

rubyinside.com Read
  Source Favicon
By HAML of over 3 years ago.
Email

Nope! But, Macruby has given us an answer. Do this! error = Pointer.new(:object) result = object.riskyMethod(error) if error[0] puts "That totally broke!" puts error[0].class #=> NSError end

Ok, so first off, we introduce a class that macruby magically gives us. Pointer. When we initialize it, we tell it what kind of pointer it should be. There is a lot of documentation on what you can do with pointers in the specs for Macruby... but half of it I don't understand and, …

blog.hamptoncatlin.com Read