View Single Post
  #13  
Old 01-29-2009, 10:12 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Loriel View Post
If we are going down that road, keep your python to yourself and give me C++.
Why have one when you can have both? It's quite easy to write C/C++ extensions for Python.
Quote:
Originally Posted by Loriel View Post
Lua is designed for embedding to begin with and there are plenty of ways to wrap C++ into lua. What makes boost.python superior to third-party lua binding libraries?
Python is designed for both embedding and extending. Boost::Python is merely the connection between C++ and Python's C API, and is designed to wrap your C++ code without changing it. There's also the fact that it is part of Boost, I'd think the name carries some weight.
Quote:
Originally Posted by Loriel View Post
lua, and I am pretty sure javascript as well, does these too, for what it is worth, and the associative-array data type is way more integrated into the core languages of lua and javascript as far as I can tell.
Python uses the dict (dictionary/associative-array) data type for storing all local, module (global), and object variables. It is a vital part of the language, so naturally it is extremely optimized same with Lua and Javascript.
Quote:
Originally Posted by Loriel View Post
This is way subjective. Show me how Python is more readable than lua. Lua's syntax is really hard to beat as far as elegance and straightfowardness go.
I'd like a specific situation to apply it to.
__________________

Last edited by Inverness; 01-29-2009 at 10:31 PM..
Reply With Quote