Programming and Scripting :: compared languages



I found a link to a site comparing programming languages.
For fun I matched the only programming lang I know, basic, with some others. The results were very surprising:

basic beats the hell out of perl, python, and lua!

And everyone just keeps saying it's a bad lang..

with linux ver of freebasic many graphic libs can be straightly used, opengl or gtk2 programs with basic are possible..
so I'm back to basic programming.

Just a weird result I wanted to share

heh, comparing what?

In terms of performance, of course you would think a compiled native binary would beat interpreted scripts..

"straightly used"?  I suppose you mean using native calls to those lib APIs, but then thats due to the reason above as well (those others would need some sort of wrapper?)

And it's no problem if you prefer a basic, easier-to-read high level language (no pun intended) for your learning environment.

Basic can be interpreted too..

I don't plan to move to say assembler after this, so I don't consider it a learning environment..
I don't even like programming much. A few years ago, in the time of Dos and Qbasic I just got hooked to some text adventures and wanted to make some myself ;)

I also must say that it is an unfair comparison (what is this site, by the way, and what do you mean by "beats"?). An interpreted language has its own benefits over a compiled application, and these benefits are becoming more apparent as cpu speeds and memory availability increase, making overall performance differences less noticeable and less important.

Some of the more obvious benefits of an interpreted language are:
No compiling is necessary, which makes it much easier to test and modify.
Generally less code needed to accomplish the same task.
If the interpreter is cross-platform, the script often is too (basic programs would need to be recompiled for each platform).
It's usually always open source (very few exceptions).

I'm sure there are more technical things to compare, but since I have practically no experience with compiled languages I am no authority. Here's a lengthy piece of text focusing on interpreted languages:
http://www.tcl.tk/doc/scripting.html

Quote
opengl or gtk2 programs with basic are possible
They are possible with script as well. In fact, there is a tiny tool called GTK-server which allows you to use gtk 1 or 2 elements from just about any script, including Bash.

"beats" as in executes faster, produces smaller executables/binaries/scripts, and uses less ram when executed.

I didn't know of GTK-server, it seems great. Why was lua chosen over bash & it?

The page is Computer language shootout, link given by Robert in some old thread.

Next Page...
original here.