32 lines of goodness, yet another OO lib

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by BlackBulletIV »

anjo wrote:
BlackBulletIV wrote:Ruby isn't too slow, it powers Twitter (along with Rails of course).
Not actually true! Twitter was Ruby on Rails for a while, but eventually the engineering team determined that it was too slow, and shifted over to a custom Java server instead.
Argh, that's a shame for RoR. Still, the point remains, Ruby isn't that slow.
ishkabible wrote:
...maybe half as fast I think...
LOL!! have you used C++ and Ruby? i have a challenge for you, make a program in Ruby that can sort an array of 100 million integers in half a second. how can this be done in C++, really easily with std::sort...
Oops...
BlackBulletIV wrote:EDIT: That second sentence was way out of context; I was referring to Java.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by Robin »

Also, RE: Java: the core language may not be too slow, but many of the standard library things (Swing, anyone?) certainly are. And you have to take those in consideration, because Java is nothing without its stdlib.
Help us help you: attach a .love.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by kikito »

anjo wrote:Not actually true! Twitter was Ruby on Rails for a while, but eventually the engineering team determined that it was too slow, and shifted over to a custom Java server instead.
The search architecture functionality was moved to java. The rest is still ruby.
When I write def I mean function.
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by bmelts »

Robin wrote:Also, RE: Java: the core language may not be too slow, but many of the standard library things (Swing, anyone?) certainly are. And you have to take those in consideration, because Java is nothing without its stdlib.
Yes and no - Swing may be part of the standard library, but Java sees much of its use in environments that don't need a GUI - Apache Tomcat, for instance. Or everyone's favorite trivia robot, Watson, which comprises over 600,000 lines of Java (and over 400,000 lines of C++). Or a whole lot of enterprise-level software. And in these situations, which are nothing if not performance-critical, Java holds up just fine. Pretty much anything graphics-related, particularly Swing, is painfully slow, but otherwise Java is actually highly performant - the "Java is too slow for anything important" meme is very much out-of-date.
kikito wrote:The search architecture functionality was moved to java. The rest is still ruby.
Actually, the back-end stuff was switched to Scala a couple of years prior to that post. Twitter's removed Ruby from their stack entirely.
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: 32 lines of goodness, yet another OO lib

Post by thelinx »

anjo wrote:"Java is too slow for anything important" meme
It's not a meme, if anything it's a bandwagon opinion.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by Jasoco »

At least Java is fast enough for MineCraft. I wish Löve was that fast.
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: 32 lines of goodness, yet another OO lib

Post by thelinx »

Yeah, Minecraft is an excellent example of great performance and really good optimisiations.


[/sarcasm]
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: 32 lines of goodness, yet another OO lib

Post by ishkabible »

if love was a 3D library it would be fast enough for mine-craft :)
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by Jasoco »

ishkabible wrote:if love was a 3D library it would be fast enough for mine-craft :)
Prove it.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: 32 lines of goodness, yet another OO lib

Post by slime »

Pretty much all of the gameplay code for Natural Selection 2 is written in Lua. The game runs pretty bad right now but that's actually mostly due to lack of code/engine optimization rather than stuff being written in Lua, plus it has a lot more graphical prettiness compared to Minecraft (amazing dynamic lighting, etc). Vendetta Online also has a crapload of core client and server code written in Lua and it runs on decade-old computers and even shitty Android tablets.

Lua is definitely slow compared to C++ or Java, but it's probably the lightest and fastest scripting/high-level programming language out there. The Octaforge 3D game engine has chosen to use Lua as a front-end to developers. :P
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 4 guests