TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ruby 2.4.0-preview1 released

146 pointsby basealmost 9 years ago

5 comments

dansoalmost 9 years ago
I&#x27;ve spent the past couple weeks thinking about what framework I want to use to build static sites. I&#x27;ve primarily used Middleman, or Jekyll when working with collaborators (think of Middleman as Jekyll but with no restrictions -- i.e. You don&#x27;t have to use Liquid and you can write plain old Ruby objects and include them as with a typical full-stack app).<p>I used to do Ruby because of Rails work...now I do my work exclusively in Python and Node. I thought it&#x27;d be worthwhile to move to a new framework just so I don&#x27;t have to juggle so many languages on a daily basis. Lektor (Python) is exciting and I&#x27;ll check it out as a way to build client sites...but it&#x27;s not quite as flexible as Middleman (to be fair, Lektor is very new)...Pelican looks good as well...but for now, I think Middleman hits the perfect spot for speed of deployment and hackability (it recently extricated itself from sprockets so that you can incorporate webpack.js or whatever asset build system you like), even accounting for Middleman&#x27;s and Ruby&#x27;s slow speed of execution versus the hugely popular Hugo (static framework in Go)<p>The truth of it is, is that once you&#x27;ve picked up Ruby, nothing feels quite as nice as a scripting glue language. I haven&#x27;t kept up much with updates to the language...all I know is that yesterday, I finally updated my Ruby environment manager (rbenv)...it had been 2 years...and changed my system Ruby to 2.3.1 (from 2.1.5)...I had to update a few version numbers for dependencies, but otherwise, all of my old projects worked with barely a hitch...and it took me no time to get into writing custom plugins for my next Middleman site.<p>It does seem that the excitement over Rails and Ruby has ebbed, if you look at Github stats and Stackoverflow&#x27;s latest survey. I am curious to see where the language can go from here, or how it can make a strong niche for itself besides Rails. but of all the &quot;old&quot; languages that I sometimes have to come back to, Ruby has been the most welcoming.
评论 #11946126 未加载
评论 #11948173 未加载
评论 #11946307 未加载
评论 #11946112 未加载
评论 #11946170 未加载
评论 #11946630 未加载
fsiefkenalmost 9 years ago
nice, what&#x27;s keeping <a href="http:&#x2F;&#x2F;www.isrubyfastyet.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.isrubyfastyet.com&#x2F;</a> from updating the charts to &gt; 2.2?
评论 #11945965 未加载
评论 #11945849 未加载
评论 #11951815 未加载
评论 #11945880 未加载
tcopelandalmost 9 years ago
I am still surprised by this behavior change from 2.2.3 to 2.3.0 (and also present in 2.3.1 and 2.4.0):<p><pre><code> $ .&#x2F;ruby -e &quot;puts RUBY_DESCRIPTION ; rand(BasicObject.new)&quot; ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14] -e:1:in `rand&#x27;: undefined method `begin&#x27; for #&lt;BasicObject:0x007fe0be4cb548&gt; (NoMethodError) from -e:1:in `&lt;main&gt;&#x27; </code></pre> In 2.2.3 you get this, which I&#x27;d expect:<p><pre><code> $ .&#x2F;ruby -e &quot;puts RUBY_DESCRIPTION ; rand(BasicObject.new)&quot; ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] -e:1:in `rand&#x27;: undefined method `respond_to?&#x27; for #&lt;BasicObject:0x007fa2d719bf78&gt; (NoMethodError) from -e:1:in `&lt;main&gt;&#x27; </code></pre> It&#x27;s as if rb_obj_respond_to changed... I don&#x27;t understand it.
评论 #11947768 未加载
mrmondoalmost 9 years ago
As someone that really appreciates overlayed comparative graphs has anyone visualised some common benchmarks yet<p>*edit: interesting HN site bug, I hit edit to update some autocorrect mistakes and rather than updating my comment it added a fresh one - but not the second time. Interesting.
desireco42almost 9 years ago
That is fast, I barely started using 2.3.0 in my projects. Not following closely what is added but have impression that rate of change in ruby land is picked up significantly.
评论 #11947705 未加载