News for hackers. Stuff that matters.

shawn42

Re:From Ruby to Crystal: A Quick Look on Friday March 24, 2017 @01:25PM (#13950600)
Author of the article here. This implementation of A* was me playing around. It is definitely not optimized for either Ruby or Crystal It was merely a chunk of Ruby code that I had lying around. You are right about the unsorted queue being a hack around Array, but it was part of another experiment of using a "Fast Stack"[1] for the A* algorithm. It allowed me to swap in other Queue implementations easily.

The point of the article was merely "How much work does it take to port Ruby to Crystal" The performance differences were just fun to see, not the intent.

If I get time, maybe I'll run this through jRuby+Truffle as a comparison, that would be interesting to see.

[1] https://github.com/SteveRabin/JPSPlusWithGoalBounding

Re:From Ruby to Crystal: A Quick Look on Friday March 24, 2017 @01:17PM (#13950523)
Sweet. I'm glad to see progress on this already.
Re:From Ruby to Crystal: A Quick Look on Friday March 24, 2017 @01:03PM (#13950386)
There are quite a few web frameworks headed in that direction: https://github.com/veelenga/awesome-crystal#web-frameworks
Re:From Ruby to Crystal: A Quick Look on Friday March 24, 2017 @12:42PM (#13950180)
Neat. Thanks for posting that. Hopefully, that process could be cleaned up and streamlined as a lot of it would be repetitive boiler plate.
Re:How to Pick Your Battles on a Software Team on Tuesday June 21, 2016 @01:11PM (#11947365)
I think it's important to keep in mind that the OP is a consultant not a developer at a product company. I'm sure they end up working with external development teams that can't simply be dismissed (or fired), but must be worked with for the good of the customer.

Simply saying "bad management" or "bad hire" takes too narrow a view on software development. The OP is a developer trying to get work done with the team, not a manager with authority over the others.

Re:Building an Infinite Procedurally-Generated World on Wednesday May 06, 2015 @10:46AM (#9498989)
Ha, touché.
Re:Building an Infinite Procedurally-Generated World on Wednesday May 06, 2015 @10:41AM (#9498948)
Nice! I really like the art style; but isn't >2D Simplex noise patented?
Re:Building an Infinite Procedurally-Generated World on Tuesday May 05, 2015 @09:18AM (#9492281)
I like your idea here. I think the downside of this approach is you must scale your random data points by a scaling factor to get them in a known range.
Re:Building an Infinite Procedurally-Generated World on Monday May 04, 2015 @08:34PM (#9490219)
The downside of Simplex noise is that anything greater than 2D is patented: http://en.wikipedia.org/wiki/Simplex_noise There is another project called OpenSimplex that has similar results.
Re:Building an Infinite Procedurally-Generated World on Monday May 04, 2015 @08:32PM (#9490210)
Unintentional, that's what happens when you write a toy not intending to publish it. Article has been updated with credit.
Re:Building an Infinite Procedurally-Generated World on Monday May 04, 2015 @05:36PM (#9489378)
(Author here): One approach is to use multiple layers of noise configured with different parameters. By joining multiple layers you can give the appearance of things like ocean, flatlands, and mountains.

Also, cannot recommend Amit Patel's stuff enough. That guy is a fountain of knowledge for all things gamedev.

Re:Matz at RubyConf 2014: Will Ruby 3.0 Be Statically Typed? on Thursday November 20, 2014 @12:50PM (#8637013)
Supporting some sort of JIT in Ruby is a long time coming. Glad to hear it!

I wonder how this "soft typing" would affect things like method_missing magic and the like. Would it be an optional runtime option to enforce the implicit interface?

Re:Kicking the Tires on Ruby 2.1 Preview on Thursday September 26, 2013 @01:56PM (#6452436)
2.1 changes how the method cache works. It is now hierarchical as opposed to the old global cache.
Re:Kicking the Tires on Ruby 2.1 Preview on Thursday September 26, 2013 @01:33PM (#6452269)
Charles Nutter (of JRuby) has said that many of his main complaints on refinements have been resolved. His original rant can be found here: http://blog.headius.com/2012/11/refining-ruby.html
Re:Kicking the Tires on Ruby 2.1 Preview on Thursday September 26, 2013 @01:07PM (#6452087)
+1 I wonder if anyone has a branch of what the "refined" activesupport would look like.
Re:What Engineers Want – A Rebuttal to the 501 Manifesto on Thursday April 19, 2012 @10:08AM (#3863031)
Good points. Makers need to make and use their creativity ( http://spin.atomicobject.com/2012/04/08/do-what-you-love/ ). We cannot just be butts in seats. The 501 guys seem to want to just be a cog in a machine, but that is not enough for me. I think other makers would agree.
Re:Small teams are dramatically more efficient than large teams on Wednesday January 11, 2012 @10:04AM (#3452010)
Having worked in both of these situations, I completely agree with this post. Even with the adoption of "Corporate Agile", our large teams were not able to get near the efficiency of a smaller 4-6 man team.

I think another point to look at would be the level of scrutiny that goes into hiring another member of a dev team of 5-20. A 100 dev team is usually hiring by resume via HR with less focus on culture fit and in-depth technical knowledge.

Re:Objection: Dependency Injection Framework on Tuesday February 01, 2011 @03:21PM (#2167172)
I like it! It really helps, especially in writing concise tests.