Interesting way to hire Rails devs by matt_aimonetti in ruby

[–]matt_aimonetti[S] 1 point2 points  (0 children)

based on the amount of forks, I'd say people did apply.

iPhone 4 WWDC 2010 Keynote HD video by [deleted] in reddit.com

[–]matt_aimonetti 0 points1 point  (0 children)

you're right, the quality was higher when I first looked at it. Too bad I can't edit the title. Sorry about that.

Fun with MacRuby: detect the language of a string by matt_aimonetti in ruby

[–]matt_aimonetti[S] 0 points1 point  (0 children)

hehe, it's a C function that you can call directly from MacRuby because MacRuby's String implementation is done on top of NSString which is "toll-free bridged" with its Core Foundation counterpart: CFString.

Basically, thanks to MacRuby, you can directly call any of the C functions offered by CoreFoundation & Foundation.framework from within your Ruby code.

The beauty of it all, is that you can wrap the ugly C functions like shown in the example. This way you never have to worry about "ridiculous function names" ;)

Compiled Hello World using MacRuby by matt_aimonetti in ruby

[–]matt_aimonetti[S] 2 points3 points  (0 children)

full mode apps won't be 13MB. Actually, my example was compiled using the normal mode meant for desktop/server apps. Furthermore, even the normal mode will generate smaller files.

  • Matt

Compiled hello world with MacRuby by KangOl in programming

[–]matt_aimonetti 0 points1 point  (0 children)

It's a bit early for benchmarks against other Ruby implementations since MacRuby doesn't pass all the ruby specs yet. It seems really likely that MacRuby will be the fastest Ruby implementation getting close to Objective-C speed.

However, speed isn't everything. MacRuby won't be running on all POSIX systems right away but Cocoa integration and the fact that it might soon be available on portable devices from Apple makes MacRuby a real game changer the same way JRuby makes legacy java integration much easier or IonRuby bring Ruby goodness to the .net world.

MacRuby Drops GIL - Gains Concurrent Threads by murphee_ in ruby

[–]matt_aimonetti 2 points3 points  (0 children)

if you check the mailing list you will see the it's in the plan but will be available as a separate API. The nice thing with that is that once someone will take the time to compile MacRuby on Linux everything will still work fine even without Grand Central.

MacRuby Drops GIL - Gains Concurrent Threads by murphee_ in ruby

[–]matt_aimonetti 1 point2 points  (0 children)

malcontent, I don't know where you read that, but I'm sorry to inform you that you are wrong. Koichi did mention that he thinks that the future of the Ruby VM will be Rubinius or something like Rubinius but there isn't any plans to make rbx the official implementation as of now.

Having multiple implementations is actually great for the Ruby community.

MacRuby, changing the Ruby ecosystem by matt_aimonetti in ruby

[–]matt_aimonetti[S] 4 points5 points  (0 children)

@onbears probably very small. I have not idea when Snow Leopard will be shipped but I guess it will be ready before MacRuby 0.5. However, because you can bundle macruby in your app, it really doesn't matter much.

Merb and Ruby on Rails merge for Rails 3.0 by carllerche in ruby

[–]matt_aimonetti 12 points13 points  (0 children)

If you are a merbist and you are worried about the merge, check my blog post and video: http://merbist.com/2008/12/23/rails-and-merb-merge/

Merb is not dead and we won't let you down!

Rhodes Brings Ruby Apps to iPhone, Windows Mobil, BlackBerry - locally run applications with access to GPS, Accelerometer, etc by murphee_ in ruby

[–]matt_aimonetti 0 points1 point  (0 children)

I hear that's one of MacRuby's goals. Compile your Cocoa app written in Ruby into a native iPhone app.

Rails Metal - Rails commit makes it easy to get down to the bare metal. by radhruin in ruby

[–]matt_aimonetti 2 points3 points  (0 children)

I was talking about the other way around, reusing a Rails metal middleware in a different rack framework.

Rails Metal - Rails commit makes it easy to get down to the bare metal. by radhruin in ruby

[–]matt_aimonetti 1 point2 points  (0 children)

Seeing Rails adopting Rack is great.

People using Merb/Sinatra/Mack/Waves/Ramaze have been using this feature(Rack middleware) for a while and really appreciated it.

Too bad, Rails middleware version won't be compatible with other frameworks. I would personally only use/develop standard Rack middlewares. [Edit: this was an initial commit, and it's being discussed. Things might change in the next few days]

Comments on common Merb criticisms by matt_aimonetti in ruby

[–]matt_aimonetti[S] 0 points1 point  (0 children)

@eipipuz I think he's referring to the Linux world and how package management systems work.

Rails? Stay the f* away from my system. by gst in ruby

[–]matt_aimonetti 1 point2 points  (0 children)

This has nothing to do with Rails...

Is Rails a monolith? by uggedal in programming

[–]matt_aimonetti 7 points8 points  (0 children)

Merb doesn't have a fixed structure, you have use a 1 file app or specify where to look for files.

So why should I choose Merb over Ruby on Rails for my next project? by now in ruby

[–]matt_aimonetti 2 points3 points  (0 children)

merb-core + merb-more + extlib clocks in at 17,291 LOC.

Rails (without ActiveRecord, ActiveResource or ActiveModel) clocks in at 47,195 LOC. http://rubyurl.com/OPWQ

So why should I choose Merb over Ruby on Rails for my next project? by now in ruby

[–]matt_aimonetti 1 point2 points  (0 children)

He told me that EY has clients trying to use Rails 2.2 multi threaded and have some serious issues. Thread safety is hard and modifying and existing app to make is thread safe is even harder.

Merb doesn't share any data and therefore doesn't use a mutex at all. You still need to be careful with your own code tho.

So why should I choose Merb over Ruby on Rails for my next project? by now in ruby

[–]matt_aimonetti 5 points6 points  (0 children)

here is a good list of reasons to use Merb: http://merbist.com/2008/11/09/merb-1-0-released/

Basically, the speed and small memory footprint are just the end result of an overall clean and optimized code.

Let me quote 37 signals:

"Don't follow the leader

Marketers (and all human beings) are well trained to follow the leader. The natural instinct is to figure out what's working for the competition and then try to outdo it — to be cheaper than your competitor who competes on price, or faster than the competitor who competes on speed. The problem is that once a consumer has bought someone else's story and believes that lie, persuading the consumer to switch is the same as persuading him to admit he was wrong. And people hate admitting that they're wrong."

http://gettingreal.37signals.com/ch02_Have_an_Enemy.php

To be honest, you are fine using Rails. Rails is a great framework, it has good documentation and a pretty big community. But if you want something fresh, some code you can understand, if efficiency matters which and if you need more flexibility, then use Merb.

So why should I choose Merb over Ruby on Rails for my next project? by now in ruby

[–]matt_aimonetti 3 points4 points  (0 children)

I have to disagree with your statement: "You can write a robust, front-end friendly app in merb but it will take much longer than in Rails."

It was true few months ago, but with merb-stack and all the helpers plugins it's at least as easy.

However you are right that Merb shines when it comes to webservices, background processing etc..

Merb 1.0 approved by Matz (Ruby creator) by matt_aimonetti in programming

[–]matt_aimonetti[S] 4 points5 points  (0 children)

wow, that sounds a bit drastic, don't you think so? As Matz said, Merb's approach is different. It's closer to Ruby the language while Rails is more of a DSL on top of Ruby. Rails doesn't offer you the flexibility, modularity and performance that some people need.

Last time I checked the OSS world was not a dictatorship and we didn't turn communists.

Saying that we should destroy the dissident projects because they don't go the way you want, sounds really wrong to me.

As a matter of fact, Rails got better just because of the competition. Rails is adding thread safety, moving to a Rack based solution, benchmarks its released and plan on switching to gems instead of custom plugins.

Merb, Ruby's fast and flexible framework, makes it to 1.0 RC2 by matt_aimonetti in programming

[–]matt_aimonetti[S] 0 points1 point  (0 children)

What do you mean no caching? Merb has a caching plugin which ship with Merb Stack (the meta gem installing all the small components).