6 ms·
Ruby 2.4.0-preview1 released
- deleted 10y ago[deleted]
- mrmondo 10y agoAs someone that really appreciates overlayed comparative graphs has anyone visualised some common benchmarks yet *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.
- fsiefken 10y agonice, what's keeping http://www.isrubyfastyet.com/ http://www.isrubyfastyet.com/ from updating the charts to > 2.2?
- Hates_ 10y agoI can only assume it's been abandoned https://github.com/brianhempel/isrubyfastyet/issues/18 https://github.com/brianhempel/isrubyfastyet/issues/18
- peterkshultz 10y agohttp://www.isrubyfastyet.com/latest.log http://www.isrubyfastyet.com/latest.log I agree with you. The latest "nightly" log was taken in January 2015.
- deleted 10y ago[deleted]
- wasd 10y agoCheck out RubyBench. https://rubybench.org https://rubybench.org
- tbrock 10y agoWow, good lookin' site. I'm glad this is around. What gets measured gets improved.
- fsiefken 10y agoyes, really nice. I see there is a Discourse benchmark script, each Rails/Ruby project (like for example GitLab) could benefit from having this benchmark run with each minor version increment.
- kristianp 10y agoThe author might be waiting for ruby 3: The goal of Ruby 3x3 is to make Ruby 3 be 3 times faster than Ruby 2 https://news.ycombinator.com/item?id=10600017 https://news.ycombinator.com/item?id=10600017
- danso 10y agoI've spent the past couple weeks thinking about what framework I want to use to build static sites. I've primarily used Middleman, or Jekyll when working with collaborators (think of Middleman as Jekyll but with no restrictions -- i.e. You don't have to use Liquid and you can write plain old Ruby objects and include them as with a typical full-stack app). I used to do Ruby because of Rails work...now I do my work exclusively in Python and Node. I thought it'd be worthwhile to move to a new framework just so I don't have to juggle so many languages on a daily basis. Lektor (Python) is exciting and I'll check it out as a way to build client sites...but it'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's and Ruby's slow speed of execution versus the hugely popular Hugo (static framework in Go) The truth of it is, is that once you've picked up Ruby, nothing feels quite as nice as a scripting glue language. I haven'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. It does seem that the excitement over Rails and Ruby has ebbed, if you look at Github stats and Stackoverflow'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 "old" languages that I sometimes have to come back to, Ruby has been the most welcoming.
- sergiotapia 10y agoTry Phoenix with Elixir. Really similar to Rails with Ruby on the surface, and surface similarities are all you will really worry about for static pages. Views (called Templates in Phoenix) are compiled as strings and cached by the CPU automatically so you get really nice scaling out of the box, with no effort on your part.
- joshmn 10y agoIt's similar to Rails in Rails' ideas, but not in its ecosystem. The most powerful thing of Rails is not MVC, or convention over configuration, but the vast, vast ecosystem.
- desireco42 10y agoThat 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.
- bdcravens 10y agoThey're on a predictable cycle: minor version release every December 25. (so 2.4.0 final will be released December 25, 2016; which is why they're calling it "early" as the many features may need more testing)
- tcopeland 10y agoI 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): $ ./ruby -e "puts RUBY_DESCRIPTION ; rand(BasicObject.new)" ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14] -e:1:in `rand': undefined method `begin' for #<BasicObject:0x007fe0be4cb548> (NoMethodError) from -e:1:in `<main>' In 2.2.3 you get this, which I'd expect: $ ./ruby -e "puts RUBY_DESCRIPTION ; rand(BasicObject.new)" ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] -e:1:in `rand': undefined method `respond_to?' for #<BasicObject:0x007fa2d719bf78> (NoMethodError) from -e:1:in `<main>' It's as if rb_obj_respond_to changed... I don't understand it.
- tvon 10y agoI think you're looking in the wrong place, `BasicObject` has no `respond_to?` so you'd need to trace the `rand_random` execution to see what ends up calling `respond_to?` on your `BasicObject` instance. Poking through github I'm guessing it's `rb_funcallv_public` but I may be missing something(s).
- tcopeland 10y agoBut that's just it; I would have thought the NoMethodError would have been around the missing "respond_to?" - like it was in 2.2.3 - not around a missing "begin".
- mnarayan01 10y agoLike @tvon, I'm not up to digging through the code, but I'd guess it's falling through to eventually make an unconditional call to http://ruby-doc.org/core-2.3.0/Range.html#method-i-begin http://ruby-doc.org/core-2.3.0/Range.html#method-i-begin.
- tcopeland 10y agoThat's exactly right; but that's happening because vm_respond_to is returning true on a nil method entry. It's a puzzler...