Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Which scripting language?

Name: Anonymous 2007-10-01 15:46 ID:rEhGAt9q

I'm writing a game. It will have a full level editor, so it needs an embedded scripting language for custom events.

Guile, Lua, or Python?

Name: Anonymous 2007-10-01 15:50 ID:3lluihbU

One word, ``forced indentating of code'', thread over.

Name: Anonymous 2007-10-01 15:51 ID:lscK/l+S

one word... JAVA... thread really over.

Name: Anonymous 2007-10-01 15:52 ID:YRycddAx

I'm writing a game.
Sure.

Name: Anonymous 2007-10-01 16:00 ID:Heaven

NOT PHYTHON

Name: Anonymous 2007-10-01 16:03 ID:nKsDOXZO

)))))))))))) or gtfo.

Name: Anonymous 2007-10-01 16:04 ID:jg38kOJG

Lua (non idiotic answer, the only real choice)

Name: Anonymous 2007-10-01 16:08 ID:K8ORWldp

>>1
All three are about equal in power. Guile is better for Satori, as it's a Lisp, but the other two have better syntax. Guile and Lua fail at Unicode, which is a MAJOR drawback of both. Guile has some limitations and isn't as widespread as Lua, which in turn isn't nearly as widespread as Python, though it's more commonly used for embedding. Python has the best library of all; all sort of awesome things are available for Python. And it has a standard class system, unlike Lua. Python is probably the hardest to embed though; I don't know about Guile, but Lua is the easiest one to. Finally, Python enforces the good practice of the forced indentation of code. You decide.

Name: Anonymous 2007-10-01 16:09 ID:3lluihbU

>>6
That's what GIMP coders thought was cool.

Name: Anonymous 2007-10-01 16:12 ID:rEhGAt9q

Does anyone here have experience embedding Python? Specifically, how easy is it to sandbox?

Name: Anonymous 2007-10-01 16:32 ID:pl2aBkxR

For embedding, there is no choice. Lua.

Why does everyone want to write a game? There other interesting software genres you know.

Name: Anonymous 2007-10-01 16:42 ID:W2mua5Xg

>>11

They obviously just want to be adored by the masses.

Name: Anonymous 2007-10-01 16:48 ID:rEhGAt9q

>>11
Why does everyone want to write a game?
There's a game I loved as a kid that won't run on modern systems without an emulator. The design is solid, but the implementation desperately needs a modern update.

Name: Anonymous 2007-10-01 16:49 ID:swmWrzsX

>>11
Because video games are now popular instead of just being for nerds and geeks.

Name: Anonymous 2007-10-01 16:49 ID:begdxx4P

>>11
because there's already a program for every other possible computer use

Name: Anonymous 2007-10-01 16:52 ID:rEhGAt9q

What does /prog/ think of Squirrel? At a glance, it appears to be exactly what I want. Easily embedded, OO, Unicode, higher order functions, tail recursion, exceptions, generators (a big draw for a Python hacker like me).

Has anyone here tried it?

Name: Anonymous 2007-10-01 16:53 ID:uh4A0N8C

Guile and Lua fail at Unicode, which is a MAJOR drawback of both.
In games?

Unless you plan to nationalize it, I don't see the point.

Name: Anonymous 2007-10-01 18:21 ID:+09aeEL8

>>17
Surely you mean "internationalize", to translate the program to many languages, and not "nationalize", to put under state control.

Name: Anonymous 2007-10-01 18:32 ID:pl2aBkxR

>>18
With all the "communist" mainland Chinese on the Internet these days, who knows.  Although I suspect the Great Firewall of China blocks 4chan ;-)

Name: anonymous 2007-10-01 18:43 ID:JQnDCZp0

Use SWIG for exporting your functionality to any language. It works like a charm.

Ever though of using JavaScript?.

Name: Anonymous 2007-10-02 5:04 ID:hTMPNXOR

#!/usr/local/bin/runhaskell

Name: Anonymous 2007-10-02 5:34 ID:UgzH+kUZ

#!/bin/tcsh

Name: Anonymous 2007-10-02 5:43 ID:Heaven

#!/sbin/init 0

Name: Anonymous 2007-10-02 6:08 ID:rqtN7t8t

>>17
Guile and Lua fail at Unicode, which is a MAJOR drawback of both.
In games?
Yes, unless yours only ever prints "GO" and "HIGH SCORE".

Ever though of using JavaScript?
Piece of shit type system, massively flawed language, terrible design decisions, looks like a joke, failed lists, failed dictionaries, failed iteration, no standard library, low quality standard, sub-par interpreters. Other than that it's fine.

Name: Anonymous 2007-10-02 6:11 ID:rqtN7t8t

#!/bin/rm -rf /

Name: Anonymous 2007-10-02 6:55 ID:r+fBzLEd

>>24 is a troll

Name: Anonymous 2007-10-02 8:17 ID:0W67c4pX

>>1
Before jumping on the LUA bandwagon, have you considered Squirrel?
http://squirrel-lang.org/
It's a really nice, embeddable scripting language, which is quite painless to bind, imperative style (supporting OO) and has a really small footprint (90kb for static lib)

Name: Anonymous 2007-10-02 8:20 ID:gie7KbF/

>>27
Jumping on the squirrel bandwagon is so much better

Name: Anonymous 2007-10-02 8:28 ID:CWXAWZ3A

>>27
have you considered Squirrel?
Well, as a matter of fact: >>16

It's nice to hear a recommendation for it, though. I think I'll look deeper into SWIG and Squirrel and decide between the two.

Name: Anonymous 2007-10-02 9:24 ID:rqtN7t8t

>>26
No, I was serious. I usually troll /prog, but I was absolutely serious this time. If you think Unicode is not important, you're an Amerifag (and your opinion still doesn't count). If you think JavaScript is a good language, please defend it so we can all laugh.

Name: Anonymous 2007-10-02 15:31 ID:O+4kNaNg

I don't really like Lua as a language, but for small embedded scripting languages, it's pretty much the one.

Name: Anonymous 2009-03-06 8:04

What does that even   relevant to the   stepwell just as   funny even though   Python is scripting   then the reasons   you think OOP   lacks sense rather   its a piece   of code without   getting a male   to write it   yourself you lazy.

Name: Anonymous 2010-11-25 16:13

Name: Anonymous 2010-12-06 10:17

Are you GAY?
Are you a Haskell Programmer?
Are you a Raging Animu Fanboi?

If you answered "Yes" to all of the above questions, then /praque/ might be exactly what you've been looking for!

Name: Anonymous 2010-12-06 10:29

>>36
s/all/any/

Name: Anonymous 2011-02-02 23:29

Don't change these.
Name: Email:
Entire Thread Thread List