Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: compared languages, Basic beats many?< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 11 2007,10:10 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 11 2007,13:32 QUOTE

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.
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 11 2007,14:02 QUOTE

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 ;)


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 11 2007,14:37 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 11 2007,15:34 QUOTE

"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.


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
11 replies since July 11 2007,10:10 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: compared languages

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code