Jump to content

March 2017 »

192021 22 232425

Recent Entries

Recent Comments

- - - - -


2: Adsense

I just read @rbritt's journal entry about scripting... and I said, check out LuaJIT. If in doubt that's what I'll use for my C++ game. But I really want to roll my own. I've been messing with language design & implementation for 20 years on and off. I've done it before, I can do it again. Might even be practical. But it won't be anything special. So why bother?

Well, coding a simple compiler is nothing compared to coding a substantial game; weeks vs years. Being a game script lang helps keep it simple. And I don't have to worry about a user community; it's just me and my game and a few demos.

Ultimately <uncharacteristic optimism> I hope there'll be languages that are less than ideal, but popular and standardized AND simple enough that any decent programmer can write a compiler that'll run any code written in that language. Forth was kinda like that, and I think we can do better... simple but more mainstream. Unlikely, but maybe my language will be a big hit. Maybe I'll find some other language I like, write a better compiler for it, and suggest a few tweaks. Maybe other people do all that before I get around to it, and I catch a free ride. Doesn't really matter. Any of that would be better than the most likely outcome, </optimism> that all languages will suck forever and ever, so get used to it. But that's no reason to give up. If this problem is ever going to be solved, who's gonna solve it? Gamedevs!

Sep 08 2014 05:29 PM

What kind of languages are you favorable toward?


Looking for flexibility in the language like javascript? Readability? Or if you're developing it yourself, more of a hard statically typed language?

Sep 08 2014 06:26 PM

More of the latter... static types (with inference), good vector/array types & operations, solid module system, clean error handling. Should be readable, predictable, straightforward, almost minimalist. Avoid gotchas like closures, exceptions, OO inheritance, overly flexible syntax. Maybe a dynamic GC'd convenience layer... but that's gotta be optional in a language that's not just for scripting.


My favorite mainstream languages are Javascript, Python, C.... also Forth and APL for historical guidance.

Note: GameDev.net moderates comments.