Lua? It is very simple language. Unfortunately, there is a performance penalty with dynamic langues, which wont go away.
You'd be amazed at the sorts of aggressive optimizations that can be done at compile-time.
11–20 of 21 posts
Lua? It is very simple language. Unfortunately, there is a performance penalty with dynamic langues, which wont go away.
You'd be amazed at the sorts of aggressive optimizations that can be done at compile-time.
Does anyone here have a single example of a performance problem caused by using a 'dynamic' language rather than a 'static' language? The only performance problems I've ever encountered 'in the wild' have been down to things like database access, I/O, bad sorting algorithms, string concatenation, etc.
I've also done audio processing projects in Python, and ended up switching to D because Python couldn't do floating point additions and multiplications across large lists fast enough.
Lua? It is very simple language. Unfortunately, there is a performance penalty with dynamic langues, which wont go away.
Its an interesting read. Lua seems pretty sweet!
Lua? It is very simple language. Unfortunately, there is a performance penalty with dynamic langues, which wont go away.
> Unfortunately, there is a performance penalty with dynamic langues, which wont go away. You'd be amazed at the sorts of aggressive optimizations that can be done at compile-time.
If the symbols are "hard linked", it is not dynamic anymore.
I wonder what strategy the LISP dialects out there typically use? I was impressed how easy it is to create an object system in a LISP, but somewhat dismayed because all examples just used (cond) for symbol lookup. Maybe because they were just academic examples, or perhaps they really don't care about performance at all?
Earlier quoted context omitted.
> Unfortunately, there is a performance penalty with dynamic langues, which wont go away. You'd be amazed at the sorts of aggressive optimizations that can be done at compile-time.
Still, how do you get around the fundamental problem of symbol lookup? Maybe sometimes you can infer the type, but I doubt that it is possible in general. If the symbols are "hard linked", it is not dynamic anymore. I wonder what strategy the LISP dialects out there typically use? I was impressed how easy it is to create an object system in a LISP, but somewhat dismayed because all examples just used (cond) for symbo…
Lies, slander! ;-)
Anything that happens within a function can be treated as a black box, and compiled down to the metal, if you like.
The language can be as dynamic as you like; that doesn't preclude the output format from being tightly optimized machine code.
Earlier quoted context omitted.
Still, how do you get around the fundamental problem of symbol lookup? Maybe sometimes you can infer the type, but I doubt that it is possible in general. If the symbols are "hard linked", it is not dynamic anymore. I wonder what strategy the LISP dialects out there typically use? I was impressed how easy it is to create an object system in a LISP, but somewhat dismayed because all examples just used (cond) for symbo…
> If the symbols are "hard linked", it is not dynamic anymore. Lies, slander! ;-) Anything that happens within a function can be treated as a black box, and compiled down to the metal, if you like. The language can be as dynamic as you like; that doesn't preclude the output format from being tightly optimized machine code.
Lua? It is very simple language. Unfortunately, there is a performance penalty with dynamic langues, which wont go away.
Here is a good discussion about using Lua to script stuff for embedded or cell phone development: http://lua-users.org/lists/lua-l/2007-11/msg00248.html Its an interesting read. Lua seems pretty sweet!
Earlier quoted context omitted.
Here is a good discussion about using Lua to script stuff for embedded or cell phone development: http://lua-users.org/lists/lua-l/2007-11/msg00248.html Its an interesting read. Lua seems pretty sweet!
maximilian, we are already doing that.
Earlier quoted context omitted.
maximilian, we are already doing that.
doing..? hacking cell phone software in Lua? I'd love to have at some embedded stuff with a non-c language. So much less to worry about screwing up. Although a lot of embedded stuff is hardware level stuff that has to be done in c anyway, so no lua there.