Scripting Preference

Pages: 12
closed account (S6k9GNh0)
I'm 17. :D But still, that's what they teach us at Comp Science. That's also the time I finish our entire 6 weeks projects in about an hour and spend the rest of the time post here. My final project was a pong game. Though it took about 5 minutes to make at least, it still impressed everyone. :D Unfortunately, it had no online play.
Last edited on
Baw, and I wanted to play online Pong!
Lol... Pong is pretty cool. Maybe you could have made the AI so good that... well... http://xkcd.com/117/
closed account (S6k9GNh0)
I wanna create a more flexible pong game using clan-lib with C++.
Tcl/Tk
For scripting I almost always turn to the Tool Command Language.

The Tcler's Wiki
http://wiki.tcl.tk/

The Tcl/Tk 8.5 Manual
http://www.tcl.tk/man/tcl8.5/

Hello world (console program)
1
2
#! /usr/bin/env tclsh
puts "Hello, world!"

Hello world (GUI program)
1
2
3
4
#! /usr/bin/env wish
package require Tk
button .b -text "Hello, world!" -command exit
pack .b

Both of these examples work equally well on Windows, Unix, Linux, Minix, Mac Classic, Mac OS X, etc. The first is a standard console program. The second is a full-fledged GUI program, with a window and a button and everything.

Tcl is exceedingly powerful. It is introspectable. It is ... well, it can do anything you want. Anything.

It is old, and does have a few rough edges, but far fewer than other languages I've encountered. It is mature and available in some form or other on nearly any piece of hardware you can find.

Tcl was designed as an embeddable scripting language, and its C interface is done the Right Way. So if you are looking at an embeddable language, this is it.


Python
I also like Python. It is a pleasurable programming language. It does have some internal inconsistencies... but typically they are cosmetic.

http://www.python.org/

Python Documentation Index
http://www.python.org/doc/

PyGame Game Development (SDL)
http://www.pygame.org/

Python is likewise embeddable as an internal scripting language, and it isn't hard, but it isn't pretty. But that's just small grapes from me.


PLT Scheme
Scheme is a very standardized, small, and efficient dialect of Common Lisp. I like its simplicity and power.

http://www.schemers.org/

PLT Scheme
http://plt-scheme.org/

MIT Scheme
http://www.gnu.org/software/mit-scheme/

Teach Yourself Scheme in Fixnum Days
http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html

Revised (5) Report on the Algorithmic Language Scheme
http://www.swiss.csail.mit.edu/~jaffer/r5rs_toc.html

There are many good implementations of Scheme. I prefer the PLT brand -- it is very mature and has excellent documentation and reference capabilities, and it comes with a very nice IDE and you can easily develop GUI applications with it.

PLT scheme has facilities to properly embed modules into a C program, and are pretty easy to use.


I use some other obscure scripting stuff on occasion... but that's all you're gonna get out of me today.

Hope this helps.


[edit] BTW, garob I don't know what you are talking about with "all these problems it has with windows". What problems are you referring to? (I do most of my Tcl/Tk development on Windows.)

chrisname
Tcl/Tk also has the finest socket library you'll ever find. Better than Python's. And python's is pretty nice!
Last edited on
I'll bare that in mind; maybe have a look. But I'm sticking with C and C++ for a while.

Edit: Except for small scripts. I just cut a 100-odd line Python script into a 15 line Python script and 13-line shell script. Damn.
Last edited on
::cough:: lua ::cough::
Duoas, you know you were saying about cool things you can do in Python that you probably shouldn't be able to do?
1
2
3
4
5
6
7
8
9
10
>>> import os as sys
>>> import sys as os
>>> os.stdout = os.__stdout__
>>> sys.system("")
0
>>> import Tkinter
>>> import Tkinter as tkinter
>>> tkinter is Tkinter
True
>>> exit()

Fun with the as keyword :)
Last edited on
Oh jeez. That's awesome, but...
Ever play with Radical Language Modification? In Tcl it is pretty easy:
http://wiki.tcl.tk/495
(Part of Tcl's design is that you can implement new control constructs and the like)
At first, I thought "that's Tcl?!", but then I realized those are just regular expressions.
I actualy never studied scripting languages or how to use them ... might be a future project also do you know of a PHP tutorial so I can make a logon type of thing for a website?
http://www.w3schools.com/
Scroll down to Server Scripting. I could give you a direct link but this way you see how awesome that website is. It's run by the World Wide Web Consortium (w3c).
I second that! w3schools is a very good site for tutorials!
It's about time they updated their website. Since I got into web development back in 2000, they've had the same crappy website... which is odd considering they define the standards for web...
Which website? w3schools.com is pretty good.

Anyway I hate webdev. I totally suck at it; I can write the code but I can't draw or get layouts to look decent.
Anyway I hate webdev. I totally suck at it; I can write the code but I can't draw or get layouts to look decent.

You're like my more-knowledgable twin!
More knowledgeable maybe.

Just kidding ;-)
Topic archived. No new replies allowed.
Pages: 12