News for hackers. Stuff that matters.
Re:Using beam tracing to calculate reflections in JavaScript by fluffyduffy on Wednesday January 15, 2014 @02:08PM (#7065395)
It really never ceases to amaze me the things you can do in JavaSCript. That's the kind of thing that up until a few years ago you'd be hesitant to do in Java. This is really cool stuff! I look forward to when we get full powered PC games done in JS. We're not there yet, I know - but it's little steps like this that'll get us there.
Re:Using beam tracing to calculate reflections in JavaScript by hcarvalhoalves on Wednesday January 15, 2014 @03:59PM (#7066111)
There's nothing particularly hard about this, or special about javascript though. This is the kind of stuff you could've implemented back in the day and ran on a Pentium MMX. It's about having an efficient algorithm.
Re:Using beam tracing to calculate reflections in JavaScript by kabla on Wednesday January 15, 2014 @02:22PM (#7065510)
I agree, the speeds you can achieve with JavaScript are astounding. They are far superior to Python, it's a shame JS doesn't have that well of a support for scientific calculations.
Re:Using beam tracing to calculate reflections in JavaScript by sgwooduk on Wednesday January 15, 2014 @02:51PM (#7065689)
If anyone could list what support there is that'd be really interesting.
Re:Using beam tracing to calculate reflections in JavaScript by dkersten on Wednesday January 15, 2014 @03:33PM (#7065951)
Just a side note: Java used to be slow, but is actually a lot lot faster now. So while javascript is certainly impressively fast, Java is actually even faster still.
Re:Using beam tracing to calculate reflections in JavaScript by stelonix on Wednesday January 15, 2014 @09:35PM (#7067695)
Although I believe this is true, I've used more fluid interfaces and played/have seen better performing demos/games in Javascript rather than Java.