.
Last edited by xibalba on , edited 2 times in total.
Discuss and learn Lisp programming of all dialects
This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.
13 posts · 3311 views
Last edited by xibalba on , edited 2 times in total.
xibalba wrote:What free, online, and preferably all-in-one Lisp books should I read, and in what order?Paul Graham's ANSI Common Lisp and On Lisp are the books I'd recommend, in that order.
Last edited by xibalba on , edited 2 times in total.
xibalba wrote:What's AMUT?AMUT = anti-mute. There were few enemies in the entire game (if any) that actually casted mute, so giving AMUT to a mage was a waste of a spell slot.
Last edited by xibalba on , edited 1 time in total.
xibalba wrote:I intend to use whichever method of generating randomness takes up the least amount of memory. Maybe a time-based RNG like SaGa Frontier, though it could use some work.In practice, I think random number generation requires almost no memory, and modest CPU time. Nothing you need to worry about- RANDOM should be just fine.
I'm not stupid enough to make homebrew. The crappiest free computer game has more downloads than the greatest homebrew console game. RPGMaker does not have the functionality I want. I wouldn't mind hearing more about this Lua interface; I'm just curious.Basically, Lua is a real programming language (a pretty good one, at that) that can be "embedded" in a C or C++ program. Using Lua, you can call a predefined set of the C program's functions programmatically.
My absolute final goal is to make a free lightweight SaGa Frontier type MMORPG, which generates money by selling ad space in the in-game universe. Along the way, I want to build games that integrates the modding community with the developer, and I want to build the kind of games I want to play.I agree with what you said about the difficulty. Most developers don't seem to put any stock in creating frighteningly strong AI, though I'm not sure how sophisticated an AI can get in an RPG, aside from Tactics-style SRPGs.
only one module need be loaded into the RAM at any given moment, which frees up a lot of roomRAM shouldn't be a problem. Certainly not to the point where you have to design around it for such a small game. Even a mobile device AFAIK should have at least 10 MB of RAM available to the user these days.
separate Data module for handling duplicate dataYou should aim primarily for simplicity in the design, and I think you can go a lot simpler than what you have in mind here. Your program should be modular, but in the sense that individual parts of the program don't depend on each other, and make as few assumptions as possible about the rest of the program. You can more easily reuse your code for different games that way.
Last edited by xibalba on , edited 1 time in total.
xibalba wrote:I noticed that GNU Common Lisp outputs C code. How would a binary generated from that C code manage garbage collection?If you mean to ask "how can a non-dynamic language like C do garbage collection", then the answer is that dynamic languages can be implemented in C; all languages are essentially abstractions of ASM. Otherwise, I don't know the particulars of how GCL works.
^From ANSI Common Lisp. How is (x) in the above expression a list when it isn't quoted? Is it a list because it isn't a number or string (no double quotes)? Then how is it also not a symbol? Are all such variables defined by defun lists? Or should I just keep reading as it will be explained to me later on?It will become clearer after you read about macros, but basically the lambda-list (x) doesn't need to be quoted because it's not evaluated directly. Rather, when it's passed to a macro (i.e., defun) it's transformed into valid s-expressions.
Last edited by xibalba on , edited 1 time in total.