[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison
- From: Justin Cormack <justin@...>
- Date: Wed, 17 Jul 2013 17:53:28 +0100
On 17 Jul 2013 17:33, "Tim Mensch" <tim-lua-l@bitgems.com> wrote:
>
> On 7/17/2013 8:25 AM, Steve Litt wrote:
> > So true Tim. And besides that, if you're not doing a random number
> > generator or a hugely graphics heavy program, is runtime speed
> > really that important?
>
> I do games. I have to do ALL of my upkeep, graphics set-up, AI calculations, etc., in 16.66ms or less, or it's going to skip a frame.
>
> Yes, speed is still important. ;P
>
> The rest of your points are good, of course, which is why I'm using LuaJIT instead of writing most of the code in C++.
>
> The only way things would be better for me (and games in general) is if LuaJIT had an optional reference-counted garbage collector. It seems that Lua CAN be modified to use one (see LuaPlus [1]), and the slight decrease in amortized performance would be more than offset (for needs of games) by the decreased memory required compared to mark-and-sweep and the increase in predictability of execution times.
You can reference count LuaJIT ffi objects yourself if you want to/need to.
> Tim
>
> [1] http://luaplus.org/#What-is-LuaPlus -- tl;dr: "An optional high performance reference counted garbage collector."
- References:
- Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Daniel Bolgheroni
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Liao Yu Lei
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Andrew Wilson
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, oliver
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Andrew Starks
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, NU-g.lister
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Tim Mensch
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, NU-g.lister
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Tim Mensch
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Steve Litt
- Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison, Tim Mensch
- Prev by Date:
Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison
- Next by Date:
Re: Lua 5.3 work1 Considering math.isinteger or type()
- Previous by thread:
Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison
- Next by thread:
Re: Perl, Python, Ruby, PHP, C, C++, Lua, tcl, javascript and Java comparison
- Index(es):