Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
chickenk is currently offline  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&regexdna=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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WARNINGS: LOG -> empty statement in RELEASE
Next Topic: Possible issue in Controls4U::Meter
Goto Forum:
  


Current Time: Tue Jul 15 21:21:27 CEST 2025

Total time taken to generate the page: 0.03300 seconds