Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Advice needed: book on interpreter construction
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Francis Burton  
View profile  
 More options Jan 27 1996, 3:00 am
Newsgroups: comp.compilers
Followup-To: comp.os.msdos.programmer
From: fbur...@nyx10.cs.du.edu (Francis Burton)
Date: 1996/01/27
Subject: Re: Advice needed: book on interpreter construction
l...@csg.uwaterloo.ca (Luiz Henrique de Figueiredo) writes:

>try Lua

Lua is a splendid piece of software, imho -- very clean language
design, powerful through its reflexivity, nice API. The documentation
is a pleasure to read. Would that all software were as neat as Lua!

It also appears to be quite portable. I don't know if it was ever
intended to be used in the MS-DOS environment, but I got it running
more or less "out of the box". Borland C 3.1 compiled all the files
fine. There was a warning for some files: "Undefined structure 'hash'"
which I corrected by including hash.h in the pertinent files. The test
program executed all but one of the sample scripts correctly. Frankly,
I was amazed and delighted.

However, the script long.lua failed spectacularly crashing the DOS
session I was running under Windoze. This script creates an array of
5000 descending integers by adding them one at a time, selection sorts
them into ascending order and prints the 512th element.  Using Bounds
Checker to screen memory accesses I discovered that the fault occurred
when a vector node occupying more than 64k bytes memory was created
and initialised (in hashnodecreate).  Of course, this was the old
segmented memory problem: pointers in the large memory model wrap
round at 64k.  Recompiling using the huge memory model didn't work --
I think pointers have to be declared as 'huge' too.

I'd love to be able to use Lua in my DOS programs, so if anyone can
think of a simple solution to this I would be extremely grateful.

Francis

[maybe followups should be set out of comp.compilers, to
comp.os.msdos.programmer?]
--
Send compilers articles to compil...@iecc.com,
meta-mail to compilers-requ...@iecc.com.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google