Click here to get back home

Namespace for Z-machine parse/translate module

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Namespace for Z-machine parse/translate module Amir Karger 07-29-2004
Posted by Amir Karger on July 29, 2004, 10:02 am
Please log in for more thread options
[Posted to modules@perl.org and Warnocked. I see on module-authors
that they're trying to re-invigorate lists like modules@perl.org...]

I've written a module that parses Z-machine files[1] and translates
them
into executable Perl scripts. In the future, it'll be translating to
other languages: first on the list is PIR. I'd like to CPAN-ify it,
and wanted to ask about namespace.

Possible names:

* Language::Zcode - makes sense, but a Z-file contains more than just
Z-code commands

* Language::Zmachine - makes more sense, except that Z-machine isn't
technically a language

* Games::Zmachine - well, Z-machine isn't technically just for games.
I say "technically" because the most "useful" Z-machine program I've
seen is a Befunge interpreter. But this module is really doing more
munging than gaming.

* Zmachine - cute, in that it's like Sun:: or MacOS::, but it's
starting a new top-level namespace, which is probably not considered
cool. Especially since there probably won't be more than a couple
modules ever written for this namespace.

* Perl6::Zmachine - just kidding. But Dan Sugalski's slide saying
parrot -b:zmachine zork1.dat
*was* the original impetus for my writing this.

I'm definitely leaning towards Language::something - maybe
Language::Zmachine since Z-machine is a more well-known term - but I
wanted to know what others thought. Any better suggestions?

Existing modules:

* Games::Rezrov is an interpreter for Z-machine files. It allows you
to actually play said games. I've stolen a bunch of its code, but
my module is definitely doing different stuff, so it wouldn't make
sense as a sub-namespace of G::R.

Thanks,

-Amir Karger
akarger@cpan.org

[1]For those unfamiliar with the Z-machine, it's a virtual machine
used
for the Infocom text adventure games, and the less moribund
Inform interactive fiction programming language.
Files for the Z-machine contain some header information, tables
containing game data (objects in the game, etc.), text strings to
print, and a bunch of commands in Z-code. Z-code is Z-machine machine
language, which is made super-compact (in case you're curious) by
using as few bits as possible for each command and argument. Which
makes it even harder to read than regular machine language.


Similar ThreadsPosted
TL1 module namespace May 12, 2005, 1:13 pm
A module looking for a namespace March 4, 2005, 11:15 pm
New module namespace May 17, 2006, 8:38 pm
Module namespace query July 23, 2004, 12:36 pm
Namespace for new module: HTML::Template::HTX? May 13, 2005, 7:17 pm
Module namespace: Tie::Flatfile::Array February 25, 2007, 11:55 pm
Choosing a good namespace for a module to upload to CPAN July 14, 2004, 1:46 pm
Namespace Recommendation for Abuse Reporting Utilities Module February 26, 2006, 10:53 pm
Scary module base namespace proposal: Metaweb August 16, 2007, 5:51 pm
SGF namespace August 1, 2005, 5:18 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap