Home » Developing U++ » U++ Developers corner » FEAT: Tcl as a plugin
Re: FEAT: Tcl as a plugin [message #31044 is a reply to message #31041] |
Wed, 02 February 2011 10:21   |
chickenk
Messages: 171 Registered: May 2007 Location: Grenoble, France
|
Experienced Member |
|
|
Well if we go that way and want to find a scripting language to embed, I'm gonna give my 2 cents.
I personally love ruby and I know it's easy to embed, the C API is very clean. I also start to like python, but I don't know whether it's easy to embed or not.
But definitely, I would recommend lua.
This is THE scripting language totally designed to be embedded, and it is very powerful and most importantly, extremely fast. Try googling for luaJIT.
Besides, here is a comparison website that is really useful. I tried to put in the chart some elements of comparison (sorry, Tcl is not in the list):
http://shootout.alioth.debian.org/u32/which-programming-lang uages-are-fastest.php?gpp=on&luajit=on&v8=on&lua =on&python=on&yarv=on&calc=chart
This one is also interesting, where all languages are given a weight 2 for speed and weight 1 for size in memory (you can change these weights to your liking, depending on what you expect). In this chart, we can see LuaJIT is the first non-compiled language (well ok, it's compiled by the JIT engine but in realtime) in 8th position.
http://shootout.alioth.debian.org/u32/which-language-is-best .php?calc=calculate&xfullcpu=2&xmem=1&xloc=0& ;amp ;nbody=1&fannkuchredux=1&meteor=0&fasta=1&sp ectralnorm=1&revcomp=1&mandelbrot=1&knucleotide= 1®exdna=1&pidigits=1&chameneosredux=0&thr eadring=0&binarytrees=1
Really, lua is an easy language, easy to embed, very light on memory and really fast even without the JIT. Please do have a look at it.
Lionel
[Updated on: Wed, 02 February 2011 10:23] Report message to a moderator
|
|
|
 |
|
FEAT: Tcl as a plugin
By: kohait00 on Tue, 01 February 2011 20:40
|
 |
|
Re: FEAT: Tcl as a plugin
|
 |
|
Re: FEAT: Tcl as a plugin
By: tojocky on Wed, 02 February 2011 08:42
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Wed, 02 February 2011 09:28
|
 |
|
Re: FEAT: Tcl as a plugin
By: oan1971 on Wed, 02 February 2011 09:51
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Wed, 02 February 2011 09:59
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Wed, 02 February 2011 10:11
|
 |
|
Re: FEAT: Tcl as a plugin
By: chickenk on Wed, 02 February 2011 10:21
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Wed, 02 February 2011 10:33
|
 |
|
Re: FEAT: Tcl as a plugin
By: chickenk on Wed, 02 February 2011 11:10
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Wed, 02 February 2011 14:03
|
 |
|
Re: FEAT: Tcl as a plugin
By: masu on Wed, 02 February 2011 18:09
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Wed, 02 February 2011 19:15
|
 |
|
Re: FEAT: Tcl as a plugin
By: tojocky on Thu, 03 February 2011 10:50
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Thu, 03 February 2011 11:23
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Thu, 31 March 2011 14:42
|
 |
|
Re: FEAT: Tcl as a plugin
By: kohait00 on Mon, 11 April 2011 14:53
|
Goto Forum:
Current Time: Tue Jul 15 21:21:27 CEST 2025
Total time taken to generate the page: 0.03300 seconds
|