Programming Zen

programmingzen.com · Personal blog · on HN since 2010

Programmingzen is Antonio Cangiano's blog on programming languages, Ruby performance, career advice, and developer education.

What HN saysHN links it mainly for the Great Ruby Shootout benchmarks, which commenters cite when comparing Ruby implementations, and for its views on interviewing.
29HN people shared it
13linked it in comments
95stories submitted
1.7Kstory points
1 year agolast shared
2010people per year2026

Most-shared posts

  1. 1
    The Great Ruby Shootout (July 2010)
    4 people · 74 points · first shared 2010 · 41 comments on HN
  2. 2
    Programming is a Super Power
    2 people · 129 points · first shared 2011 · 65 comments on HN
  3. 3
    The Real Reason Italy Sucks at the Startup Game
    2 people · 98 points · first shared 2011 · 73 comments on HN
  4. 4
    Thoughts on Clojure
    2 people · 93 points · first shared 2010 · 40 comments on HN
  5. 5
    The pursuit of excellence in programming
    2 people · 43 points · first shared 2010 · 1 comments on HN
  6. 6
    The need for good vocational schools for programmers
    2 people · 21 points · first shared 2011 · 12 comments on HN
  7. 7
    On Programming Languages as Languages
    2 people · 18 points · first shared 2014 · 8 comments on HN
  8. 8
  9. 9
    New Ruby shootout on Windows
    2 people · 5 points · first shared 2010 · discussion on HN
  10. 10
    A Language for the Next 10 Years
    2 people · 3 points · first shared 2016 · discussion on HN
  11. 11
    Recommended Ruby on Rails 3 Books
    2 people · 2 points · first shared 2010 · discussion on HN
  12. 12
    The Best Ruby Books
    2 people · 1 points · first shared 2011 · discussion on HN
  13. 13
    Benchmarking macruby 0 6
    2 people · first shared 2010
  14. 14
  15. 15
    On the Usability of Codecademy
    1 people · 253 points · first shared 2012 · 83 comments on HN

What HN people wrote when they linked it

acangiano · 2019-12-07
I work at a very large company (IBM) and I refuse to interview people that way. My track record for great hires (both full-timers and interns) is arguably impeccable. No whiteboard or brain teaser quizzes involved. I wrote a little about my interviewing approach in my latest "hiring" post: https://programmingzen.com/new-ibm-internship-positions-in-my-team/
jeltz · 2011-12-23
"JRuby is much much faster than 1.8." Why are we even comparing JRuby and Ruby 1.8? Ruby 1.9.3 is the last version and Ruby 1.9 is much faster than Ruby 1.8. In a benchmark from last year JRuby and 1.9 were about equally fast with 1.9 the winner in most cases. With the recent improvements in JRuby I believe JRuby is faster but I have no idea about how much. http://programmingzen.com/2010/07/19/the-great-ruby-shootout-july-2010… EDIT: Note that Ruby 1.9 gained in performance compared to 1.8 due to the introduction of a new Ruby targeted VM, YARV. Previously I believe it ran directly on the AST.
wgj · 2010-12-22
You might find this interesting: http://programmingzen.com/2010/07/19/the-great-ruby-shootout-july-2010… It shows 1.9.2 to be a bit faster most of the time, and to have a smaller footprint. Still, Rubinius could be the better choice in some cases. The best thing is to run your own perf tests specific to your application, and rvm makes that head to head comparison easier to carry out.
devmonk · 2010-09-24
Has anyone done a shootout recently like this?: http://programmingzen.com/2007/12/03/the-great-ruby-shootout/ I'd heard that JRuby was fastest these days, so it would be great to see some numbers and side-by-side features comparisons.
nanairo · 2010-09-13
I agree, and I think MacRuby is a great idea. Ruby in particular is very close to Objective-C in practice, and some of the latest Apple's changes to Objective-C have made it even more so. But as much as I love Ruby, MacRuby is still not that much faster than Ruby and often it is slower [1]. But that said I am not bashing MacRuby: it is still a very young project and it has a lot of potential still untapped. [1] http://programmingzen.com/2010/05/16/benchmarking-macruby-0-6/
TuringTest · 2014-11-27
"I really feel like you're selling an awful lot of the programming language design world short here." You may be right about that :-) Although now I realize my words didn't exactly convey what I intended to say, see below. "An awful lot of what programming language design is about is making it easy to precisely express what you mean, in a way that will make sense to future programmers, be robust in the face of changes, and so on." Actually this is more what I was actually thinking when I said "the core assumption remains unchallenged". There are ways to program that don't assume you're trying to build a robust, unambiguous and precise meaning (and which are therefore much more adequate for non-technical users). But these ways have not been explored in depth, and are not known to the general mass of developers. There is a lively conversation at the original blog, would you mind to move the conversation there, to keep it at one place? http://programmingzen.com/2014/11/27/programming-languages-as-language… "Your mind must work fairly differently from mine if you find XML a natural way to reason." I was not thinking of XML as natural, but of "creating instruction sets that work as recipies and can produce different executable code, so their meaning changes depending on the context on which they're executed". :-D This is the way that humans follow instructions when they receive orders. It's what makes the following a joke: Q. How did the programmer…
irahul · 2012-07-04
> I guess since benchmarks are not completely worthless, The original keeps getting re-iterated: http://programmingzen.com/2007/11/28/holy-shmoly-ruby-19-smokes-python… The original author, on a basis of a fib benchmark, concludes ruby 1.9 is faster - that is as flawed as it gets. Did you try running with Python 3? You will get around the same time as you get with Python 2.7. Pick anything from here http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang… and run it with Python 2.7 and ruby 1.9. The programs which are faster with Python 3 will be mostly faster with Python 2.7. 2.7 isn't slower than ruby 1.9; it is faster in most of the cases. Regarding the fib example, when the original was doing the rounds, I didn't find any explanations from python or ruby implementors. I can't say why, but most likely python has a higher overhead with growing call stacks, and ruby does some optimizations.
re-space · 2017-03-05
In the programmingzen blog, Antonio Cangiano, a ruby programmer and author of several ruby books, there is a post about an interview for a job at IBM in which the question is to explain how the red-black tree algorithm works. Hey, I googled for it, here it is: http://programmingzen.com/things-ive-learned-from-hiring-interns-for-i…
danso · 2011-11-10
The included Pew center graph is powerful. And fascinating: http://programmingzen.com/wp-content/uploads/2011/11/does-success-depe… Interesting to see South Korea near the right side, rather than closer to Japan.
jshen · 2011-10-17
I'm talking about very common things. How do you talk to a mysql database, i'll bet it's C code. how do you parse html, i'll bet it's C. python has a json lib as part of it's standard library, ruby does not so you install it as a gem. Both are C. Actually, django is worse if this tutorial is correct. http://programmingzen.com/2007/12/22/how-to-install-django-with-mysql-… They are telling you to install a binary precompiled library. I much prefer having my dependencies managed as they are in bundler than downloading libraries manually and installing them.
eneveu · 2010-07-24
I found out about this interview thanks to Dave's comment on http://programmingzen.com/2010/07/09/thoughts-on-clojure/ He also links to a post discussing the interview: http://whiley.org/2010/06/23/rich-hickey-on-clojure-se-radio/
jballanc · 2012-08-18
The article focuses on the same things have been hammered on for a while now (other countries do health care better, other countries do education better, other countries do education better...), but I think there's another reason to get out of America: other countries have different cultural strengths. Antonio Cangiano wrote a post a while back about why Italy doesn't do enough startups (http://programmingzen.com/2011/11/10/the-real-reason-italy-sucks-at-th… In that post, he has a chart (http://programmingzen.com/wp-content/uploads/2011/11/does-success-depe… that shows that Americans, more that the citizens of any other country, believe that their success or failure is a direct result of their own actions. This is a blessing and a curse, as it means that Americans are willing to work harder to get what they want, but they are also willing to believe when a politician says that there's no need for universal health care or help getting people jobs because "anyone who wants it enough can work harder and get it for themselves". Regardless, I would argue that this is America's defining cultural strength. I recently moved to Turkey. Turkey has "hospitality" as its defining cultural strength. If you go to a little shop and look around for more than 10-15 min, you can expect to be offered a drink (free of charge, of course). When I go to the bakery, the woman who works there frequently slips me a cookie or pastry…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close