Re: Z machine

2005-02-23 Thread Steve Peters
On Wed, Feb 23, 2005 at 03:02:32PM +0100, Leopold Toetsch wrote: > I've here some small parts of a Z machine code translator. It runs not > much more then a hello-worldish program. > > * written in PIR, using objects > * translates Z code files to PIR > * ~ 10 opcodes

Z machine

2005-02-23 Thread Leopold Toetsch
I've here some small parts of a Z machine code translator. It runs not much more then a hello-worldish program. * written in PIR, using objects * translates Z code files to PIR * ~ 10 opcodes done * objects, props, attributes, abbrevs are all missing I've no time to play with it furth

Re: parrot stack and Z-machine

2003-10-08 Thread Amir Karger
anyway. (OK, I'm really hoping that's not true, but we'll see.) > Then let's think of some other solutions to the problem. This will be > pretty abstract, mind you. Right. I should probably explain a bit about Z-code, because saving the stack in Z is way easier (I think)

Re: parrot stack and Z-machine

2003-10-08 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > Maybe continuations aren't so hard to serialize after all (well, > excluding things like open filehandles and such). What's the status on > the serialization subsystem? *nobody* did answer my summary of different schemes. > Luke leo

Re: parrot stack and Z-machine

2003-10-07 Thread Luke Palmer
Amir Karger writes: > Still working on the prelude to the preface to the "Z-machine running > natively on Parrot" project, namely translating Z-code into a Perl > executable. (My brother, who's a CS professor so he should know, says > I'm actually *compili

parrot stack and Z-machine

2003-10-07 Thread Amir Karger
Still working on the prelude to the preface to the "Z-machine running natively on Parrot" project, namely translating Z-code into a Perl executable. (My brother, who's a CS professor so he should know, says I'm actually *compiling* it. Compiling bytecode to an interpreted l

Re: Parrot Z-machine

2003-09-09 Thread Amir Karger
est it?! Actually, I posted to rec.arts.int-fiction today to see if there are any Z-machine regression tests lying around. > I think that if you're comfortable writing it in perl, you should > write > one in perl first. It's a prototype. You can use it to learn how to > d

Re: Parrot Z-machine

2003-09-09 Thread Nicholas Clark
On Mon, Sep 08, 2003 at 08:48:07PM -0700, Amir Karger wrote: > Sure we can, and it's a tool we might want. I had gotten the impression > that Dan considered having any extra scripts to be cheating. Then > again, > maybe cheating isn't such a bad thing, if it helps get the project > started. Cheat

Re: Parrot Z-machine

2003-09-09 Thread Uri Guttman
> "AK" == Amir Karger <[EMAIL PROTECTED]> writes: AK> --- Uri Guttman <[EMAIL PROTECTED]> wrote: >> > "AK" == Amir Karger <[EMAIL PROTECTED]> writes: >> >> the designs range from a total code conversion, load and translate >> the zcode into equivilent imcc. this should be the e

Re: Parrot Z-machine

2003-09-09 Thread Uri Guttman
> "AK" == Amir Karger <[EMAIL PROTECTED]> writes: AK> So you mean you require the first byte to be a number <=8, and the AK> pointer to the end of the dictionary has to be less than the size AK> of the file, the flag bits need to have sane values, etc.? AK> Interesting. I guess with so

Re: Parrot Z-machine

2003-09-09 Thread Amir Karger
--- Uri Guttman <[EMAIL PROTECTED]> wrote: > > "AK" == Amir Karger <[EMAIL PROTECTED]> writes: > > the designs range from a > total code conversion, load and translate the zcode into equivilent > imcc. this should be the easiest to do as you just need to write a > code > generator for each zco

Re: Parrot Z-machine

2003-09-09 Thread Amir Karger
--- Uri Guttman <[EMAIL PROTECTED]> wrote: > > "AK" == Amir Karger <[EMAIL PROTECTED]> writes: > > AK> Er, I'll assume you have a magic (pun slightly intended) way to > AK> decide which files are Zcode? How will you tell the Zcode > AK> from other bytecode noise? I don't see anything pa

Re: Parrot Z-machine

2003-09-08 Thread Dan Sugalski
3, Amir Karger wrote: > I'll need to write Zmachine.ops, or some such. It will include all > the Z-machine operations, which the bytecode will call. Yep. OK. Although Luke Palmer seems to think differently. That's OK--there are a number of different ways to go about this. He s

Re: Parrot Z-machine

2003-09-08 Thread Uri Guttman
> "AK" == Amir Karger <[EMAIL PROTECTED]> writes: AK> Er, I'll assume you have a magic (pun slightly intended) way to AK> decide which files are Zcode? I mean, sure, if the rule is AK> "anything that doesn't match a Parrot header", you're fine, but AK> once you've included Python bytec

Re: Parrot Z-machine

2003-09-08 Thread Amir Karger
i <[EMAIL PROTECTED]> wrote: > On Sat, 6 Sep 2003, Amir Karger wrote: > > > I'll need to write Zmachine.ops, or some such. It will include all > > the Z-machine operations, which the bytecode will call. > > Yep. OK. Although Luke Palmer seems to think differentl

Re: Parrot Z-machine

2003-09-08 Thread Dan Sugalski
; it's extremely hard? > > > > We'd need dynamic opcode loading because we don't want to have the > > Z-machine specific opcodes compiled into every parrot (or every other > > specialist set of opcodes) > > Right. What you're saying here is that I&

Re: Parrot Z-machine

2003-09-08 Thread Dan Sugalski
On Mon, 8 Sep 2003, Piers Cawley wrote: > Luke Palmer <[EMAIL PROTECTED]> writes: > > Zellyn Hunter writes: > >> So I take it the goal is to to teach parrot to understand z-machine > >> opcodes, rather than simply writing a z-machine interpreter that > >&

Re: Parrot Z-machine

2003-09-08 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > Zellyn Hunter writes: >> So I take it the goal is to to teach parrot to understand z-machine >> opcodes, rather than simply writing a z-machine interpreter that >> runs on parrot, or rewriting inform to compile to parrot? &

Re: Parrot Z-machine

2003-09-08 Thread Amir Karger
ading because we don't want to have the > Z-machine specific opcodes compiled into every parrot (or every other > specialist set of opcodes) Right. What you're saying here is that I'll need to write Zmachine.ops, or some such. It will include all the Z-machine operations,

parrotZ license issues (was Re: Parrot Z-machine)

2003-09-04 Thread Amir Karger
icense stuff out of the way so I can get to actual coding! -Amir p.s. re the email subject: For now, I'm calling the Parrot Z-machine project "parrotZ". It's simple, it expresses that it's Z-machine in Parrot, and it even rhymes with "frotz" if you pronounce it r

Re: Parrot Z-machine

2003-09-03 Thread Dan Sugalski
On Wed, 3 Sep 2003, Bernhard Schmalhofer wrote: > Amir Karger wrote: > > A couple more questions on the coding front: > > > > (2) WinFrotz, one of the popular C Z-machine runtimes, is GPL. If I > > steal code or ideas from there, does Parrot or this piece of it have to

Re: Parrot Z-machine

2003-09-03 Thread Leopold Toetsch
Amir Karger <[EMAIL PROTECTED]> wrote: > A couple more questions on the coding front: > (1) Even though it's supposed to be "native" Parrot support, I'm still > allowed to write in PIR, right? Because that'll be translated to pasm > and thereby be native. You should target PIR. PIR is "native" pa

Re: Parrot Z-machine

2003-09-03 Thread Bernhard Schmalhofer
Amir Karger wrote: A couple more questions on the coding front: (2) WinFrotz, one of the popular C Z-machine runtimes, is GPL. If I steal code or ideas from there, does Parrot or this piece of it have to be GPL only instead of GPL/Artistic? I am happily ignorant about licensing issues. Hi, I

Re: Parrot Z-machine

2003-09-02 Thread Luke Palmer
e that'll be translated to pasm > > and thereby be native. > > > > (2) WinFrotz, one of the popular C Z-machine runtimes, is GPL. If I > > steal code or ideas from there, does Parrot or this piece of it have to > > be GPL only instead of GPL/Artistic? I am happ

Re: Parrot Z-machine

2003-09-02 Thread Zellyn Hunter
reby be native. > > (2) WinFrotz, one of the popular C Z-machine runtimes, is GPL. If I > steal code or ideas from there, does Parrot or this piece of it have to > be GPL only instead of GPL/Artistic? I am happily ignorant about > licensing issues. So I take it the goal is to to tea

Re: Parrot Z-machine

2003-09-02 Thread Vladimir Lipskiy
Amir Karger <[EMAIL PROTECTED]> wrote: > I got my fifteen bytes of fame in the P6 summary ... Geewhillikins ... But you can always get more: Convert it into Unicode (~: _VL_ "But how can we do it if we don't know what it is?" "Why, blame it all, we've GO

Re: Parrot Z-machine

2003-09-02 Thread Amir Karger
A couple more questions on the coding front: (1) Even though it's supposed to be "native" Parrot support, I'm still allowed to write in PIR, right? Because that'll be translated to pasm and thereby be native. (2) WinFrotz, one of the popular C Z-machine runtimes, is GPL.

Re: Parrot Z-machine

2003-09-02 Thread Amir Karger
m without having all this working, and when I've finished a large part of the job, one of the core Parroters will be inspired to hack up #s 1 and 2 overnight while at some YAPC instead of sleeping or drinking beer. > We'd need dynamic opcode loading because we don't want to have t

Fwd: Re: Parrot Z-machine

2003-09-02 Thread Amir Karger
ob, one of the core Parroters will be inspired to hack up #s 1 and 2 overnight while at some YAPC instead of sleeping or drinking beer. > We'd need dynamic opcode loading because we don't want to have the > Z-machine specific opcodes compiled into every parrot (or every ot

Re: Parrot Z-machine

2003-09-01 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > 2: dynamic bytecode conversion > (This is the point where someone tells me that dynamic opcode loading now > works) No it doesn't. Albeit I have posted a proof of concept standalone program months ago. > Nicholas Clark leo

Re: Parrot Z-machine

2003-09-01 Thread Nicholas Clark
meone tells me that dynamic opcode loading now works) We'd need dynamic opcode loading because we don't want to have the Z-machine specific opcodes compiled into every parrot (or every other specialist set of opcodes) We'd want dynamic bytecode conversion because we want parrot to b

Parrot Z-machine

2003-08-28 Thread Amir Karger
Hi. Hugely newbie at Parroting, but think it's the coolest. So I was bummed to see that Befunge and BASIC had already been parroted. (And Clinton Pierce even ported QuickBasic, which makes my Language::Basic completely useless. Argh!) Then I thought, "What about Z-machine?!" I w