GPWiki.org
GPWiki.org
It is currently Mon May 20, 2013 7:15 am

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 

What language would you rather use?
Poll ended at Fri May 02, 2008 9:59 pm
Ruby 31%  31%  [ 4 ]
Lua 15%  15%  [ 2 ]
Python 38%  38%  [ 5 ]
Lisp 15%  15%  [ 2 ]
Scheme 0%  0%  [ 0 ]
ML 0%  0%  [ 0 ]
Tcl 0%  0%  [ 0 ]
Total votes : 13
Author Message
PostPosted: Thu Apr 17, 2008 9:59 pm 
Double Guru
User avatar

Joined: Fri Aug 12, 2005 8:58 am
Posts: 2009
Location: LA, CA
Yet again I've changed my design idea but I believe I have a winner this time. The idea is to write the basic low level things in c/c++ and then use swig to generate a lib so I can use a higher level language to interact with it. This gives me the flexibility to potentially use a lot of different languages but I'd rather focus on only one of them.

The idea of the poll is get a grasp of what people out there are familiar with, what they like and general concerns. Note that speed isn't one of my concerns because I can always write optimized code in c for normal routines if necessary.

Right now I'm leaning towards python for two reasons. One, the syntax is easy to learn/pickup. Two, python is install by default on macs and most linux distros , (I'm sure window has an easy installer as well).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 11:55 pm 
Level 22 Norse Warrior-Librarian

Joined: Sun Sep 05, 2004 4:59 am
Posts: 505
Location: Auckland, New Zealand
Out of that list I've only played with lua. In my simple tests lua seemed to perform very well and I'd probably use it in my next project that requires scripting.

_________________
Attack of the Meeplings - Free 2D Arcade Shooter
Caverns of Underkeep - Free Browser Based Roguelike


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 12:28 am 
Double Guru
User avatar

Joined: Fri Aug 12, 2005 8:58 am
Posts: 2009
Location: LA, CA
To put my question in context I think the library idea should be posted here as well Design pdf. Feel free to comment on the idea as well.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 12:41 am 
Level 22 Norse Warrior-Librarian
User avatar

Joined: Mon Sep 04, 2006 5:25 pm
Posts: 517
Location: U.S.
you should add Haskell to that list...I'd definitely vote for it :)
That being said, python is pretty sweet ;)

-wyrmmage

_________________
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
Programming tutorials and web-design services: http://www.wyrmmage.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 12:55 am 
Sir Postalot
User avatar

Joined: Thu Aug 26, 2004 4:34 am
Posts: 2498
I went with Python because I know what it looks like, and being a crippled imbred spawn of Basic and C, I can at least beat it with my belt until it does as it is told.

Also, I have the Python-equivalent to the Chipmunk Book, so I have enough documentation to debug syntax.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 1:28 am 
Ankle Nibbler
User avatar

Joined: Sun Mar 30, 2008 4:35 am
Posts: 141
ok but i would choose C++ because i know it =) but thats not on there so i chose lua, which is similar but is for gaming

_________________
This is a signiture.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 7:07 am 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
Ruby, ruby ruby ruby :D

Out of the lot there, ruby is the only one I've liked enough to learn. Also, ruby comes with mac and most linux distros now as well, and is really simple to install in windows the same as python (possibly easier, thinking back to some issues I've had in the past getting python set up on a windows machine in order to run some python progs).

Oh, and with ruby, you don't have a whitespace-dependant syntax, which I always count as a plus :)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 8:50 am 
Game Programming Guru

Joined: Thu Jun 08, 2006 7:48 pm
Posts: 1248
Location: Scotland
workmad3 wrote:
Ruby, ruby ruby ruby :D


I can't believe you did that. I don't even know which emoticon to use now.

I only know python and ruby. While the whole whitespace thing in python does really annoy me, i do quite like it. I don't really know ruby enough but some of its sytax annoys me a lot too.

I'd say python


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 9:10 am 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
Chances are that the bits of ruby syntax you don't like are easily avoidable :) One of the things I like about it is that it tries to be as diverse in it's syntax requirements as possible. It can get messy if you don't stick to one style, but then any language can. And it's really nice to have a scripting language that doesn't require semi-colons at the end of every line but also won't throw a spaz if I've just switched from C++ and my semi-colon finger is on auto-pilot :)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 10:27 am 
Game Programming Guru

Joined: Thu Jun 08, 2006 7:48 pm
Posts: 1248
Location: Scotland
if im correct, the number of dots in the for loop syntax determines if it's inclusive or not? hardly nice.

like i said though, i haven't learned ruby, ive just learned a bit of ruby syntax. I still try to program it like a nicer C and I just ignore all of it's features like how you pass blocks of code as arguments and stuff.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 11:01 am 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
you ignore the features that make it great? :)

And yeah, although that is range syntax, not for-loop syntax. 2 dots is a half-open range, 3 dots is a closed range (or the other way around). If you don't like it, don't use ranges though. They aren't the only option :)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 2:47 pm 
Technomaniac

Joined: Sun Dec 05, 2004 11:27 am
Posts: 3249
Location: Sydney, Australia
Python hates functional programming. Ruby doesn't. Ruby hates performance.

I like ruby :) (though I'd much prefer my own pet language, which can't even be parsed yet)

_________________
Trying is the first step towards failure
b


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 3:28 pm 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
ruby does hate performance... that's the one reason I don't use it for more than Rails applications and the occasional script :)

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 5:33 pm 
Double Guru
User avatar

Joined: Fri Aug 12, 2005 8:58 am
Posts: 2009
Location: LA, CA
I've been reading up on ruby and python (I don't know either of them) and I came up with a few conclusions.

Python seems to be inconsistence syntax wise, they have a weird idea of how self should be implemented and they keep on adding features to replace others make things even more inconstant. Pythons whitespace doesn't bother me too much as it seems to make things cleaner but I'm sure that once I started using it I would get frustrated with it.

Ruby seems very consistent and have more built in language features. The syntax can be odd at time but overall quite nice. The whole everything is an object is good for basic types "hello".length 5.to_s and so forth. From what I've read the runtime seems to have issues but 2.0 is just around the corner and there are a lot of spawns such as JRuby, Ruby.net and Yarv which look promising.

So out of the two I think ruby is higher level and is more suitable for an extension language then python. I just got a book about ruby (The Ruby Way) and plan to learn it now.

Keep in mind while I chose ruby the lib will still work with 17 other languages and of course c/c++ natively. I should have most of the Kore package done by the end of the day as work has been canceled (due to flooding).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 8:49 pm 
Bibliotherapist
User avatar

Joined: Wed Dec 21, 2005 6:23 pm
Posts: 6210
Location: Manchester, UK
With ruby, there is also the pickaxe book, available in first edition online for free, right here:
http://www.rubycentral.com/pickaxe/

Its a good introduction to ruby, although there are a fair few books around for it now (a lot of them concentrate on rails rather than ruby though... ah well :))

_________________
God must love stupid people, he made so many.
theraje: 'God doesn't love stupid people, they're just easier to make'
http://sharedillusions.blogspot.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group