News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Tcc - Lua
Author Message

Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #1
Tcc - Lua

Hi, since the exam-period is usually the period where anything is interesting, here another blurb.

I was thinking about the biggest disadvantage of interpreted languages like Lua is the speed. So I wrote a little test to compare a C routine passed from within Lua to tcc and have it run directly, and the same routine implemented in Lua directly.

It turns out that the tcc version is a whopping 16 times faster than the Lua version, so maybe it's of some use to people who need to write fast code for some tasks.
Another good thing about Tcc is that it should compile for all 3 platforms supported by MurgaLua (disclaimer: not tested myself), and it's really small (installed size on debian 446k).

Anyway, the simple testscript I used is here.
Hope it's of some use to anyone!


Attached File(s)
.lua File  tcctest.lua (Size: 592 bytes / Downloads: 5)
01-15-2009 11:36 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Tcc - Lua - jpjacobs - 01-15-2009 11:36 PM
RE: Tcc - Lua - jyf1987 - 01-16-2009, 11:56 PM
RE: Tcc - Lua - jpjacobs - 01-16-2009, 11:59 PM
RE: Tcc - Lua - jyf1987 - 01-17-2009, 04:30 PM
RE: Tcc - Lua - znarf - 01-23-2009, 06:42 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: