215 points · by mparramon · 12y ago · 50 comments
Need to hit vsync every 16ms? Just run a 1-3ms incremental GC every frame when you have time to spare, and as long as your game's theoretical performance is good enough, you won't ever hitch. This is one of Lua's advantages for game scripting because it's had a fairly solid incremental collector for a while, making it easy to give the GC a fixed chunk of time to operate in every frame so your game never pauses.
Scripting is a huge boon for people doing game development, game prototyping, and multimedia scripting (toolsets like Processing, for example), so having another scripting language to choose from for that is awesome.
Having said that, GC improvements are a good thing. Some of the RPG Maker folks will be delighted when this eventually reaches them.
IO/waiting for forked jobs can be done in background threads since the lock is released on some select function calls.
So while incremental GC certainly does bring down latency caused by the GC it does not bring down latency for tasks that could be parallelized.
I understand the reasoning behind both decisions (RubyMotion is following Objective-C's semantics, CRuby is following Python et al).
For those who aren't familiar with RubyMotion's syntax:
def my_method(arg1, keyword: arg2)
puts arg1
puts arg2
end
my_method("test", keyword: "test2")
# output
test
test2[0]: https://blog.heroku.com/archives/2011/7/12/matz_joins_heroku
It's also worth noticing that another implementation, JRuby is supported by Redhat. IIRC 2 people work on it full-time: Charles Nutter (Headius) and Thomas Enebo
http://www.chrisseaton.com/rubytruffle/
Obviously, this isn't people being directly paid to work on MRI, but there are side benefits like a richer set of rubyspecs and sometimes fixes landing in MRI.
Hiring GvR is better than nothing, but still a very long way from a "deep-pocketed multinational funding Python development".
Facebook has had the author of jemalloc locked up working on making PHP go faster for a few years now. Surely there's a more productive place to sink that kind of talent.
Well, you're trading connascence of position for connascence of name, which in this case is much better because you are providing context for the argument data.
Is that a valid argument? IMO, keyword arguments are just making it explicit.
I wouldn't call an 81% reduction a 500% improvement.
100 / 5 = 20 -> 100 - 20 = 80 (/ = reduction)
100 * 5 = 500 (* = improvement)
half full = half empty
same difference