[MUD-Dev] Virtual machine design
Ben Greear
greear at cyberhighway.net
Sat Apr 17 19:15:29 CEST 1999
"Felix A. Croes" wrote:
>
> Ben Greear <greear at cyberhighway.net> wrote:
>
> What constitutes a "real" programming language? My guess is that you
> consider internal programming languages too slow and not powerful
> enough.
Speed doesn't really bother me, unless it's attrocious. I'm more
concerned
with the power of the language. To me a real language is anything that
has
variables and conditional branches. I believe to use such a language,
you
need a decent understanding of logic flow and programming. I don't
think
this is readily found in the general gaming populous.
> Lacking in power: may be true for some languages, but not necessarily
> for all of them. Some are powerful enough that you cannot just write
> muds in them, but any sort of internet server.
Yep, but once you reach this stage, I think the benefits of a more
standard language (c/c++/java/whatever) outweigh a proprietary language
that you write. That doesn't mean that you couldn't write a perfectly
good
language for this sort of thing, but more that the effort you put into
it may not be justified, compared to what you can do with an already
written language/compiler/profiler.
>
> "Common users can't program in any real language": did you just grant
> internal programming languages the status of "real language"? Or do
> you mean that since internal programming languages are not "real", it
> is possible that common users may be able to program in them?
Oh, I absolutely think there are many people on this list and elsewhere
that can write a relatively complete 'real' language for their game. I
just don't think it's worth it! I am *not* convinced that common users
will ever be able to use them (well?).
> While a lot of users who attempt mud programming never master the
> basic principles, it is be surprising to see how much they can
> accomplish even so. Anyone can make rooms and monsters, which may
> have predefined behaviours implemented by more capable programmers.
That is why I see a more simple scripting language as more appropriate.
Let the real programmers program in a normal language, and let those
that can or want to script use the methods/commands available to them.
> However, those who stand to gain the most from an internal programming
> language are not the commot users -- who may never see any code,
> depending on the type of mud -- but the expert programmers, because
> of the boost in productivity obtained by writing in a high-level
> language.
That is a good point, and I agree.
> - Programmers cannot crash the mud. Nothing as silly as dereferencing
> a NULL pointer is possible.
So your internal language has no pointers? I guess you could just
crash the individual 'programlets' instead of your entire server
if desired. (By crash I mean abort abruptly, as the programmer
probably did not want it to happen.)
> - Any change can be made without taking the mud down, and takes effect
> immediately. If necessary, it can also be instantly undone. A well-
> run mud doesn't have to reboot. This is particularly interesting
> for commercial muds, where downtime means loss of revenue and/or
> customer dissatisfaction.
I wonder if commercial muds would do *any* development on production
servers. If your language is powerful enough to affect the game play,
then it's definately powerful enough to affect it negatively!
It would be much safer to have multiple copies of the servers, one to
develop on, and the other to host normal players on.
> - The mud can be made enormously complex without affecting the
> complexity and reliability of the basic server, which can in fact
> be smaller and simpler than what would be needed for even a
> medium-sized mud without internal programming language.
This implies an enormously complex set of internal programs, which I
would imagine would be just as hard to maintain as the normal server
code, perhaps more-so because you also have compilers to deal with, and
a non-standard language that your programmers must become proficient at.
>
> Regards,
> Felix Croes
--
Ben Greear (greear at cyberhighway.net) http://www.primenet.com/~greear
Author of ScryMUD: mud.primenet.com 4444 (Released under GPL)
http://www.primenet.com/~greear/ScryMUD/scry.html
_______________________________________________
MUD-Dev maillist - MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev
More information about the mud-dev-archive
mailing list