News for hackers. Stuff that matters.
Re:Golang 10x faster than Ruby for web APIs by danielharan on Friday June 14, 2013 @02:27PM (#5881540)
You mean when I can write that could 3X faster?
Re:Golang 10x faster than Ruby for web APIs by Uchikoma on Friday June 14, 2013 @02:59PM (#5881756)
I pay you $1000 (or EUR) if you show me how you can be 3x faster from idea to live with RoR against something else, say Java/Play. If 50% of your time is HTML/CSS fixing,thinking,finding edge cases,testing,debugging,communication with customers etc. you need to be 6x faster. And not in the first 5 days but you need to maintain this speed even as your code size grows and more and more time is spent on understanding existing code.

The only way to reach 6x is with 3rd party libs you have in RoR but you have no equivalent on say the JVM. Massive code reuse is the only major productivity gain today.

[edit] Sorry my mistake. If 50% of your time is taken by other tasks when writing say Java code, the most you can achieve is doubling your productivity by reducing development time to zero. If you tripple your productivity during development, your overall gain is 33% I think (not that good with on the fly calculation obviously).

[edit2] Just realized, this is Amdahl's law for developer productivity with your other tasks being the sequential fraction.

Re:Golang 10x faster than Ruby for web APIs by danielharan on Friday June 14, 2013 @03:25PM (#5881904)
Amdahl's law: yeah, this is pretty much it. Of course I was only discussing dev time.

Of note, many of the best Ruby / Rails folks I know moved on to much better roles, whether CTO at growing companies or started working on cash-generating projects. Once they optimized dev time, they got more time to work on things like design or copywriting, and optimized the hell out of that too.

Re:Golang 10x faster than Ruby for web APIs by Uchikoma on Friday June 14, 2013 @03:34PM (#5881960)
Love it when people think being CTO is better than coding :-)
Re:Golang 10x faster than Ruby for web APIs by danielharan on Friday June 14, 2013 @08:13PM (#5883280)
In most cases, it was awesome for those people.
Re:Golang 10x faster than Ruby for web APIs by bhauer on Friday June 14, 2013 @02:44PM (#5881649)
What? I'm sorry, I'm going to have to ask for some evidence. If you said 30% faster, I'd just shrug and disagree. But you said 300% faster.

Developer efficiency is notoriously difficult to measure and prone to all sorts of biases. Perhaps the key word in your sentence is "I"?

Re:Golang 10x faster than Ruby for web APIs by danielharan on Friday June 14, 2013 @02:54PM (#5881719)
I meant: one I can write 3X faster. And yes, "I". Not sure how this generalizes - but it's generally a bad idea to pick a new language so the code will run fast if the time to delivery is important.

I've done my fair share of both Java and Ruby web development, and without a doubt, I was much faster writing Ruby.

For non-trivial Java apps, startup time was > 20 seconds. That kind of REPL while developing kills productivity and developer satisfaction.

The last Java app I wrote had more lines of configuration than my first Rails app had lines of code, at equivalent complexity.

The first Java job I had required a full-time script writer, a DBA, and someone to keep the web server up. In Rails, that entire team would have been shrunk by 75% (mind you it didn't exist back then).

I do work in other languages. For machine learning, Ruby's speed is a killer except for toy data sets, so I have used Octave and Python. When it comes to the web though, Rails really did do many things right, from a sane MVC, default ORM, helpers and migrations. There are times execution speed trumps development speed. For fast dev on web apps, Rails really was cutting edge and for those with an investment it can still be a better trade-off than doing something in Go.

Re:Golang 10x faster than Ruby for web APIs by Uchikoma on Friday June 14, 2013 @03:04PM (#5881791)
Not do advocate Java, but your knowledge is dated, I'd say at least 5yrs off. Play has on the fly code compilation, Jetty does fast reloads, JRebel hot class reloading etc.
Re:Golang 10x faster than Ruby for web APIs by danielharan on Friday June 14, 2013 @03:22PM (#5881879)
Upvoted because yes, it is outdated. I started doing Java professionally in 2001, and stopped years later.

It still seems as though these frameworks are all playing catch-up, with e.g. things like migrations.

Re:Golang 10x faster than Ruby for web APIs by Flying_Dwarf on Friday June 14, 2013 @02:47PM (#5881670)
And have 10x more upkeep than a statically typed language. Go is more durable, and APIs kind of need that.