home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!corax.udac.uu.se!flax
- From: flax@frej.teknikum.uu.se (Jonas Flygare)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga PROLOG wanted.
- Date: 14 Sep 1992 19:25:47 GMT
- Organization: /home2/ctrl/staff/flax/.organization
- Lines: 49
- Message-ID: <192ovrINNpko@corax.udac.uu.se>
- References: <kelso_j.716435620@kultarr> <1992Sep14.112847.331@dct.ac.uk>
- <1992Sep14.152137.24606@fwi.uva.nl>
- NNTP-Posting-Host: frej.teknikum.uu.se
- In-reply-to: mvelzen@fwi.uva.nl's message of Mon, 14 Sep 1992 15:21:37 GMT
-
- In article <1992Sep14.152137.24606@fwi.uva.nl> mvelzen@fwi.uva.nl (Marc "VELZ" van Velzen) writes:
-
- mcramm@dct.ac.uk writes:
-
- WaRREN Abstract Machine
-
- Right.
-
- It also is slow, buggy as hell, and has terrible debugging facilities ...
- Get SWI-prolog for yer PC, it's WAY better ... (this is of course not a
- plug for PCs in general, so don't start that PC<->Amiga flamewar again,
- I'd *love* a decent prolog for my 'miga, but it seems there isn't one).
-
- Slow? I think that's because people insist on running it on a 'slow'
- machine. SBProlog on a Sun is on par with Sicstus (at least their older
- version, I haven't made any comparison lately)
- As for buggy, I suspect that is mostly due to the port than the prolog.
- (Not meaning to belittle the porter, but it's quite a lot of code,
- and there are several type conversions that really should be
- properly cast, and/or prototyped. Lot's of work for a hacker.)
- The debugging facilities are the same as on many other prologs, which
- as you say aren't the best. But the 'black-box' debugger is quite
- workable after you get used to it.
- I think it's quite a catch, for being PD, it's about as fast as you
- can expect for interpreted code (although I suspect the readloop could
- be hand optimized, I've never seen so many goto's before, and SAS C's
- optimizer plain dies on it. (read: takes a looong time before giving up,
- due to lack of memory (3 Mb))
- If I ever feel I have a lot of time to spare I might let it generate
- assembler code and go from there.
-
- What I'd want would be a prolog->machine-code compiler for it.
- (Or any other prolog) Unfortunately that often means
- taking the byte code and 'straightening' out the readloop.
- We're talking lots of memory being gobbled..
- Also: I don't want typing as of Turbo Prolog. Yech. :-)
-
- Obhack: We wrote a prologmachine running on wam-code, and a
- compiler from prolog to 'our' wam-code. Neat.
- Unfortunately the prolog machine was written in Mac-prolog on a
- SE. We're talking milli-LiPS here. :-)
- (Several minutes to do a naive reverse of a list of 10 elements.
- But it compiled itself..)
- --
-
- --------------------------------------------------------
- Jonas Flygare, + Wherever you go, there you are
- V{ktargatan 32 F:621 +
- 754 22 Uppsala, Sweden +
-