If you wanted a new/updated programming language wrapper....
-
- Posts: 83
- Joined: Fri May 28, 2010 8:59 am
- Location: Perth, Australia
If you wanted a new/updated programming language wrapper....
If you wanted a new/updated programming language wrapper/binding for the Irrlicht engine what language wrapper would you like to see?
-Lua (Most likely the easy one)
-Ruby (Easy to understand, does have some old wrapper for OpenAl etc.)
-Java (The fastest, harder than the other two, has wrappers for OpenAl, Bullet, ODE etc.)
-?
Give your opinion if your a person who wants a certain language library? Or thinks that one of these would be good for the community?
-Lua (Most likely the easy one)
-Ruby (Easy to understand, does have some old wrapper for OpenAl etc.)
-Java (The fastest, harder than the other two, has wrappers for OpenAl, Bullet, ODE etc.)
-?
Give your opinion if your a person who wants a certain language library? Or thinks that one of these would be good for the community?
Last edited by LizardGamer on Wed Jun 01, 2011 12:22 pm, edited 1 time in total.
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
I'm gonna say that the Java wrapper could use an update, seeing the popularity of Java these days
But as I already told you, don't jump into writing wrappers yet, you'll need to dig deep into irrlicht's internals and you have to understand what all the internal functions do
Don't write a wrapper until you're really really comfortable with irrlicht, the target language and 3D graphics in generals
But as I already told you, don't jump into writing wrappers yet, you'll need to dig deep into irrlicht's internals and you have to understand what all the internal functions do
Don't write a wrapper until you're really really comfortable with irrlicht, the target language and 3D graphics in generals
-
- Posts: 83
- Joined: Fri May 28, 2010 8:59 am
- Location: Perth, Australia
Yes, I am going to learn Java definetly because I'm haven't tried it and it looks interesting, but I'm just seeing if the commmunity wants another binding since I have actually tried Ruby and (a small amount of) Lua and both are quite easy to understand.
And you have got your message already across to me Radikalizm, yes I do understand, I'm just curious what people think/want.
And you have got your message already across to me Radikalizm, yes I do understand, I'm just curious what people think/want.
-
- Posts: 758
- Joined: Mon Mar 31, 2008 3:32 pm
- Location: Bulgaria
-
- Posts: 83
- Joined: Fri May 28, 2010 8:59 am
- Location: Perth, Australia
Agreed. Do rendering in C++ and game logic in Lua or whatever you prefer.
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Sadly enough lots of people shiver when they have to think of leaving their humble little Java or C# environment for a C++ environment, so wrappers will always be needed for them
Although I do agree that people should try to use C++ instead of wrappers, wrappers only eat performance, and performance is a rather crucial element in graphics development
Although I do agree that people should try to use C++ instead of wrappers, wrappers only eat performance, and performance is a rather crucial element in graphics development
Worthless bastards to a man
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
-
- Posts: 83
- Joined: Fri May 28, 2010 8:59 am
- Location: Perth, Australia
Isn't that a port and not a wrapper? (If that is what a wrapper is then I should probably just mod the Jirr one)devsh wrote:writing a wrapper == like rewriting the entire code of irrlicht
But changing subject again, I'm wanting to do this so anyone could learn this language (which every one the wrapper is) so then they can find it easy to move onto C++. Because I tried learn C++ a couple of months ago and I started to go nice in some tutorials until I got to a certain one, then I was just running into a brick wall.
Lua could be very nice for beginners but I'm not sure it could be easy to move onto C++ since it is mainly better as a scripting language, Java could show what programming languages are really like but not so sure if people find it nice with the debuging etc.
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
It's true that wrappers require you to rewrite a lot of functionality (you should take a look at greenya's .NET wrapper for example) because you have to provide your end-users with managed versions of irrlicht's non-managed structures
Sure, you can have an irrlicht app up and running rather fast in managed code if you want (not recommending it), but a wrapper assumes you provide complete functionality of the library in the targeted language, which requires you to wrap every single class/struct/whatever irrlicht provides in a managed form
Sure, you can have an irrlicht app up and running rather fast in managed code if you want (not recommending it), but a wrapper assumes you provide complete functionality of the library in the targeted language, which requires you to wrap every single class/struct/whatever irrlicht provides in a managed form
Re: If you wanted a new/updated programming language wrapper
Why reinvent the wheel? Brush up on your favorite language's Foreign Function Interface, then use Frank Dodd's wrapper, written for imperative style languages (but trivially easy to adapt to any language with a full FFI implementation.)
Learning to use FFI effectively gives you a great weapon in your code-fu arsenal.
LuaJIT, for example, has an absolutely wonderful FFI extension, and achieves performance on par with c/c++, all with the flexibility and sexiness of scripting. The wrapper itself has a trivial impact on performance, with virtually no difference between using it and raw Irrlicht.
Of course, using c++ and raw Irrlicht is probably desirable if you need features beyond what the wrapper provides... but for the most part, it will suffice.
Learning to use FFI effectively gives you a great weapon in your code-fu arsenal.
LuaJIT, for example, has an absolutely wonderful FFI extension, and achieves performance on par with c/c++, all with the flexibility and sexiness of scripting. The wrapper itself has a trivial impact on performance, with virtually no difference between using it and raw Irrlicht.
Of course, using c++ and raw Irrlicht is probably desirable if you need features beyond what the wrapper provides... but for the most part, it will suffice.
Re: If you wanted a new/updated programming language wrapper
There are also N3xtD, a portage of Irrlicht intended primarily for languages such as Basic -> http://www.n3xt-d.org
(use by Innesoft for create DeepMesh)
(use by Innesoft for create DeepMesh)
Strength and wisdom.
Admin of the http://www.irrlicht.fr and dad of N3xtD.
Sorry for my poor English.
Admin of the http://www.irrlicht.fr and dad of N3xtD.
Sorry for my poor English.