Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
LISP - The Entry Point
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 26 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
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
 
ilias  
View profile  
 More options Sep 28 2002, 4:43 pm
Newsgroups: comp.lang.scheme, comp.lang.lisp
Followup-To: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Sat, 28 Sep 2002 23:52:09 +0300
Local: Sat, Sep 28 2002 4:52 pm
Subject: LISP - The Entry Point
people.

i'm happy to let you know, that i've found the entry point.

which entry-point?

i'll tell you later.

first of all: you've maybe noticed a small change.

i became a little ironic.

this is to offend the hairsplitters.

and to offend garbage.

-

garbage is not something wrong that someone tells me .

garbage is an 'expert', who tries to teach me.

and who himself has not understood.

and who don't take back his didactical tone.

even if you show him that he is (al least maybe) wrong.

that's garbage.

-

human brain.

there are facts.

and the ability to process facts.

-

from now on, i'll treat with respect only those which treat me with respect.

this is cause i've to focus my energy on working.

thus i've not enouth energy for gentleness.

-

The Entry Point.

*year*:

well, it is 1958.

John McCarthy.

there i'll begin.

maybe i've to go back more.

will see.

i've already started.

-

*language*:

C or C++

i code in C++, although i use in the begining only C subset.

i'm not exactly sure if i keep that.

*functionality*

i know nearly nothing.

the reader-concept.

the macro a little.

backquote a little.

garbage collector. i've an idea what this is, cannot imagine that it is
so complicated. claim and release memory. but will see.

and of course all that knowledge from *using* many languages. but
nothing indeep, mostly fuzzy in memory.

-

the good thing: i can assimilate everything. no need to develope it.

i'm undereducated. that's why i can decide quicker what to assimilate
and what not.

how that, without knowing it? well, i'll know what i need. i give
someone the abstract description of what i need. and he tells me: this
an that you can use. i say: explain me 'with apples' the differences.
then i decide: that one.

you see: i'm depending on experts which are able to explain 'with
apples', which is nothing more than abstracting an essence down to a
general common sense level.

but before i loose 'virginity', i'll try to build a lisp without looking
at another code.

i've no imagination of how to build such a simple system. the first
coding has started. seems really difficult.

i continue now

-

crepes with nutella.


 
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.
ilias  
View profile  
 More options Sep 28 2002, 5:22 pm
Newsgroups: comp.lang.scheme, comp.lang.lisp
Followup-To: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Sun, 29 Sep 2002 00:31:47 +0300
Local: Sat, Sep 28 2002 5:31 pm
Subject: Re: LISP - The Entry Point

Bruce Stephens wrote:
> ilias <at_n...@pontos.net> writes:

> [...]

>>but before i loose 'virginity', i'll try to build a lisp without
>>looking at another code.

> Why?

to get a sense of the difficulty of developement.

to be able to appreciate other peoples work, which i can later include
with a small decision into my developement.

to see which  of the constructs used in lisp resulting 'out of the need'
and 'out of clear human sense' or 'the natural flow of things', and
which parts are the really difficult to realize creative works.

-

The Spirit of Lisp.

Can i sense it?


 
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.
Tim Josling  
View profile  
 More options Sep 28 2002, 6:36 pm
Newsgroups: comp.lang.lisp
From: Tim Josling <t...@melbpc.org.au>
Date: Sun, 29 Sep 2002 08:31:32 +1000
Local: Sat, Sep 28 2002 6:31 pm
Subject: Re: LISP - The Entry Point

ilias wrote:

> but before i loose 'virginity', i'll try to build a lisp without looking
> at another code.

Have a look at "ANSI Common Lisp" by Paul Graham. This has an implementation
of many of the Lisp functions in Lisp.

Also "Artifical Intelligence Programming: case studies in common lisp" chapter
23 has a simple lisp compiler.

I personally found Lisp a bit overwhelming at first. So I initially Learned
scheme, which is a lot smaller, but has most of the same concepts.

Tim Josling


 
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.
ozan s yigit  
View profile  
 More options Sep 29 2002, 12:00 am
Newsgroups: comp.lang.lisp
From: ozan s yigit <o...@blue.cs.yorku.ca>
Date: 28 Sep 2002 23:51:34 -0400
Local: Sat, Sep 28 2002 11:51 pm
Subject: Re: LISP - The Entry Point
Tim Josling to someone:

> Have a look at "ANSI Common Lisp" by Paul Graham. This has an implementation
> of many of the Lisp functions in Lisp.

but that would not provide the real and deep pleasure of deriving the
entire language and its various inventions and offsprings from its
first principles, would it?

oz
--
there is a fault in reality. do not adjust your minds. -- salman rushdie


 
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.
Tim Josling  
View profile  
 More options Sep 29 2002, 3:31 am
Newsgroups: comp.lang.lisp
From: Tim Josling <t...@melbpc.org.au>
Date: Sun, 29 Sep 2002 17:26:30 +1000
Local: Sun, Sep 29 2002 3:26 am
Subject: Re: LISP - The Entry Point

ozan s yigit wrote:

> Tim Josling to someone:

> > Have a look at "ANSI Common Lisp" by Paul Graham. This has an implementation
> > of many of the Lisp functions in Lisp.

> but that would not provide the real and deep pleasure of deriving the
> entire language and its various inventions and offsprings from its
> first principles, would it?

> oz
> --
> there is a fault in reality. do not adjust your minds. -- salman rushdie

True. I suppose it depends on how short you think life is.

Tim Josling


 
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.
ilias  
View profile  
 More options Sep 29 2002, 8:55 am
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Sun, 29 Sep 2002 16:04:20 +0300
Local: Sun, Sep 29 2002 9:04 am
Subject: Re: LISP - The Entry Point

this is funny!

me: Mr. Salman Rushdie, can I?

SR: yes my son.

me: thank you!

"there is a fault in the specs. do not adjust you minds."

hehe!

> True. I suppose it depends on how short you think life is.

> Tim Josling

-

life is to short.

the middle way:

realize the problem.

trying to solve ( a few hours or days )

look at the solutions.

feel the respect for the solutions.

assimilate the best.

-

The decision: which is the best?

With the entry-point 1958, 100.000 people will have 100.000 different
results in 2002 (or better: 2003).

But there is only one.

-

The Spirit of Lisp.

-


 
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.
Fred Gilham  
View profile  
 More options Sep 29 2002, 11:19 am
Newsgroups: comp.lang.scheme, comp.lang.lisp
From: Fred Gilham <gil...@snapdragon.csl.sri.com>
Date: 29 Sep 2002 08:18:57 -0700
Local: Sun, Sep 29 2002 11:18 am
Subject: Re: LISP - The Entry Point

Why, with so many other newsgroups to ann...I mean languages to
learn, did you pick Lisp?

Why not Scheme?  Perl?  Modula-3?  Dylan?  Clipper?  Icon?  VRML?

Why not Fortran?  It's even older than Lisp, and has a much more
active following including many interesting people, who, I am sure,
will be more than happy to pan-fr...I mean spend their time
enlightening someone with such an obtu...I mean interesting approach
to learning as yours.

Think about it.  If CLL is such an unfriendly place, perhaps that says
something about Lisp itself.  Perhaps people who get to know Lisp well
become the kind of people who will flame, toast, roast and otherwise
barbecue innocent seekers after knowledge.  (My mouth is watering
already.)

It has become clear that CLL is not worthy of your attention.  I don't
think Lisp is either.  It simply has too much academic baggage for
someone with such a pristine intellect as yours.  I still think you
won't be really happy until you find your true home in some
Microsoft-related newsgroup.

--
Fred Gilham                                        gil...@csl.sri.com
``This is mere entertainment featuring fictional characters. No real
human relationships were shattered in the making of this TV series.''


 
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.
ilias  
View profile  
 More options Sep 29 2002, 11:53 am
Newsgroups: comp.lang.scheme, comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Sun, 29 Sep 2002 19:02:40 +0300
Local: Sun, Sep 29 2002 12:02 pm
Subject: Re: LISP - The Entry Point
Fred Gilham wrote:

[...]
-

>> crepes with nutella.

eat them.

they are lastily.


 
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.
Blitzen  
View profile  
 More options Sep 29 2002, 12:49 pm
Newsgroups: comp.lang.lisp
From: Blitzen <ssa...@bemail.org>
Date: Sun, 29 Sep 2002 16:49:05 GMT
Local: Sun, Sep 29 2002 12:49 pm
Subject: Re: LISP - The Entry Point
o..................... k.....................

 
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.
ilias  
View profile  
 More options Sep 29 2002, 2:51 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Sun, 29 Sep 2002 22:00:55 +0300
Local: Sun, Sep 29 2002 3:00 pm
Subject: Re: LISP - The Entry Point
i just realize that John McCarthy has read this paper here, which is was
important for the developement of lisp:

A. Church: The Calculi of lambda-Conversion. Princeteon, 1941

Can someone point me to an online discussion about this? which uses
non-academic terminology to explain it?


 
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.
Hrvoje Blazevic  
View profile  
 More options Sep 29 2002, 4:25 pm
Newsgroups: comp.lang.scheme, comp.lang.lisp
From: Hrvoje Blazevic <hrv...@despammed.com>
Date: Sun, 29 Sep 2002 22:20:12 +0200
Local: Sun, Sep 29 2002 4:20 pm
Subject: Re: LISP - The Entry Point

Fred Gilham wrote:
> It has become clear that CLL is not worthy of your attention.  I don't
> think Lisp is either.  It simply has too much academic baggage for
> someone with such a pristine intellect as yours.  I still think you
> won't be really happy until you find your true home in some
> Microsoft-related newsgroup.

:-) :-) :-)

You are probably right --- He *is* using M$ Windows for posting :-)


 
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.
ilias  
View profile  
 More options Sep 29 2002, 7:00 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Mon, 30 Sep 2002 02:09:46 +0300
Local: Sun, Sep 29 2002 7:09 pm
Subject: Re: LISP - The Entry Point

> *language*:

> C or C++

> i code in C++, although i use in the begining only C subset.

-

will change to C++.

i'm to lazy to implement with C constructs.

but will only use few things of OO.

buttom-up-from scratch design of 'foreign thoughts' is not my strength.

additionally, i'm not so good in *creating* 'facts'.

much better in *evaluating* and *interconnecting* facts.

-

so, as i stuck, i looked at some C++ code.

but much to complex implemented.

i've set an limit of 10 pages for the core.

-

can anyone point me to a design guide?

or tell me the sequence of the functions i've to implement?

-

e.g.:

(please forgive me the naming. it follows strictly my 'internal'
terminology)

i start with:

typedef unsigned long atom;

struct node
{
   atom *first;
   atom *rest;

};

now i need...

?

(i'm so 'virgin' in mind, i've *never* implemented a list)

-

i'm unable to continue my simpe C++ database project.

looks senseless to me.


 
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.
Christopher Browne  
View profile  
 More options Sep 29 2002, 7:14 pm
Newsgroups: comp.lang.lisp
From: Christopher Browne <cbbro...@acm.org>
Date: 29 Sep 2002 23:14:13 GMT
Local: Sun, Sep 29 2002 7:14 pm
Subject: Re: LISP - The Entry Point
In the last exciting episode, ilias <at_n...@pontos.net> wrote::

> i'm unable to continue my simpe C++ database project.

> looks senseless to me.

Have you considered taking your discussion to comp.databases or
comp.lang.c++, both of which would be tremendously more relevant fora
than comp.lang.lisp?
--
(reverse (concatenate 'string "moc.enworbbc@" "sirhc"))
http://cbbrowne.com/info/languages.html
"When campaigning, be swift as  the wind; in leisurely march, majestic
as the forest; in raiding and plundering, like fire; in standing, firm
as  the  mountains.   As  unfathomable  as the  clouds,  move  like  a
thunderbolt."  -- Sun Tzu, "The Art of War"

 
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.
ilias  
View profile  
 More options Sep 29 2002, 7:31 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Mon, 30 Sep 2002 02:40:12 +0300
Local: Sun, Sep 29 2002 7:40 pm
Subject: Re: LISP - The Entry Point

Christopher Browne wrote:
> In the last exciting episode, ilias <at_n...@pontos.net> wrote::

>>i'm unable to continue my simpe C++ database project.

>>looks senseless to me.

> Have you considered taking your discussion to comp.databases or
> comp.lang.c++, both of which would be tremendously more relevant fora
> than comp.lang.lisp?

Mr. Browne!

Hello, i hope you are fine.

Please read my post fully (you've quoted me 'off-context'). I'm writing
a lisp from scratch, to see how difficult it is. So i'm in topic.

I'm just a little confused, it is really difficult to find the entry
point to start coding. I know lisp only somehow fuzzy. I know cons,
pair, first, rest etc.! but i don't know exactly what they do and how
everything is represented in memory.

That why i've just printed some documents, which have more graphical
representation. so i think i'll understand until tomorrow.

But suggestion (in topic, please) are of course welcome.


 
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.
Greg Menke  
View profile  
 More options Sep 29 2002, 10:20 pm
Newsgroups: comp.lang.lisp
From: Greg Menke <gregm-n...@toadmail.com>
Date: 29 Sep 2002 22:20:32 -0400
Local: Sun, Sep 29 2002 10:20 pm
Subject: Re: LISP - The Entry Point

ilias <at_n...@pontos.net> writes:

> I'm just a little confused, it is really difficult to find the entry
> point to start coding. I know lisp only somehow fuzzy. I know cons,
> pair, first, rest etc.! but i don't know exactly what they do and how
> everything is represented in memory.

Well that is certainly an improvement over playing syntax games.  

> But suggestion (in topic, please) are of course welcome.

Start small- learn how to use loop to iterate over a list, then how to
use the various clauses to tailor its behavior.  You cannot start
coding in any non-trivial sense until you understand how a sufficient
number of parts of the language work.  This is true for any
programming language you might try to learn.  You can safely ignore
the in-memory representation of data for the time being.

Gregm


 
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.
ilias  
View profile  
 More options Sep 30 2002, 9:24 am
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Mon, 30 Sep 2002 15:46:36 +0300
Local: Mon, Sep 30 2002 8:46 am
Subject: Re: LISP - The Entry Point

Greg Menke wrote:
> ilias <at_n...@pontos.net> writes:

>>I'm just a little confused, it is really difficult to find the entry
>>point to start coding. I know lisp only somehow fuzzy. I know cons,
>>pair, first, rest etc.! but i don't know exactly what they do and how
>>everything is represented in memory.

> Well that is certainly an improvement over playing syntax games.  

i'm implementing a lisp interpreter, so i control the 'syntax-games' better.

>>But suggestion (in topic, please) are of course welcome.

> Start small- learn how to use loop to iterate over a list, then how to
> use the various clauses to tailor its behavior.  You cannot start
> coding in any non-trivial sense until you understand how a sufficient
> number of parts of the language work.  This is true for any
> programming language you might try to learn.  You can safely ignore
> the in-memory representation of data for the time being.

a missunderstanding.

i have problems with implementing a lisp interpreter in C++.

i'm a lisp novice.

after i've finishing the basic implementation of the lisp interpreter,
i'll be still a lisp novice.


 
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.
ilias  
View profile  
 More options Sep 30 2002, 1:11 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Mon, 30 Sep 2002 20:20:53 +0300
Local: Mon, Sep 30 2002 1:20 pm
Subject: Re: LISP - The Entry Point
catastrophe !!!

My 60 days trial for Borland C++ Builder expires tomorrow.

I don't know if it is allowed to try for another 60 days.

If not, i must set up another C++ system.

I use windows OS, but i'd like to switch to a linux system one day. so
i'd like to have a cross-platform C++, but a nice one, with an
integrated developement environment.

can someone suggest me one?

I don't want to deal with complicated installations-sequences.

this is stuff for freaks that have nothing better to do than to manage
complicated things.

i have this need, too. I compensate it with 'spider', this is something
like 'pacienda' (this card game on windows). *very* complicated.
Althougth i do not always win, after a few game *i* am the winner.

when i see those lousy installation read me's, i shout: why does this
guy (the manual writer, which is in general the programmer or one of the
programmers) writes all this down, so thousands of people have to do
that, instead of providing a simple install.bat or setup.exe or so.

this small detail is one reason that companies win in competition.
Whilst the others exhaust their potential customers with dealing with
details, the others make things simple (not better, just simpler) and
win the competition.

this reminds me somehow... lisp.

whow.

in topic again.

-

Get the essence:

I sense that i sense it.


 
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.
Justin Johnson  
View profile  
 More options Oct 1 2002, 7:24 am
Newsgroups: comp.lang.lisp
From: "Justin Johnson" <just...@mobiusent.com>
Date: Tue, 1 Oct 2002 12:24:04 +0100
Local: Tues, Oct 1 2002 7:24 am
Subject: Re: LISP - The Entry Point

> typedef unsigned long atom;

> struct node
> {
>    atom *first;
>    atom *rest;
> };

> now i need...

> ?

This is going to get you a one entry list because you only have pointers to
atoms.  Your pointers should also be able to point to other nodes.

Try:

struct Node
{
    union NodeData
    {
        int Integer;
        int Symbol;
        int FunctionId;
        // Other data types go here...string, float, etc etc
    };

    enum NodeType
    {
        INTEGER, SYMBOL, FUNCTIONID, LIST
    }

    NodeType Type;
    NodeData Data;
    Node* pHead; //CAR
    Node* pRest; //CDR

};

Ok, this is pretty naive but should get you going.

--
Justin Johnson

"ilias" <at_n...@pontos.net> wrote in message

news:an80mu$qb9$1@usenet.otenet.gr...


 
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.
ilias  
View profile  
 More options Oct 1 2002, 8:46 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Wed, 02 Oct 2002 03:53:25 +0300
Local: Tues, Oct 1 2002 8:53 pm
Subject: Re: LISP - The Entry Point
terrible day.

during writing i hear a little cat screaming outside.

after 5 min i went out, find it.

i think 3 to 4 months or so.

i take it with me, i give it something to eat.

but this cattle don't eat.

just: miaaah, miaaah.

i cannot keep the cat here. impossible.

so out again.

takes me all the concentrations.

i feel like a little bad now.

conscience crisis.

espsecially as the 'miaaaa' was so loud, that i was afraid the
neighbours wake up.

water helps.

more concsience crisis.

-

conscience. the word is not logical.

science.

con.

con science.

anyway.

-

the reader. i've finished the skeleton.

the specs are really complicated written.

intuition was right.

things became clear due to coding.

It should be possible to shrink the reader-algorithm-description to
about 60% to 70% of its current size.

whilst keeping information value.

whilst increasing precision.

this way people can learn quicker.

-

and of course "The Scary Readtable" is fully correct.

http://groups.google.com/groups?selm=amsq4a$cr...@usenet.otenet.gr

how can anyone believe it's not?

funny.

-

the cat is still outside.

i'll got to play with it a little.

and then home sweet home.

-


 
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.
Russell Wallace  
View profile  
 More options Oct 2 2002, 8:59 am
Newsgroups: comp.lang.lisp
From: r...@vorpalbunnyeircom.net (Russell Wallace)
Date: Wed, 02 Oct 2002 13:01:47 GMT
Local: Wed, Oct 2 2002 9:01 am
Subject: Re: LISP - The Entry Point
On 29 Sep 2002 23:14:13 GMT, Christopher Browne <cbbro...@acm.org>
wrote:

>Have you considered taking your discussion to comp.databases or
>comp.lang.c++, both of which would be tremendously more relevant fora
>than comp.lang.lisp?

Uh - no, no, C++ really isn't the right language for you ilias,
honestly, trust me on this one. Much better off to give up on it now.
Try... um, Visual Basic, that's it! That'd suit you much better :)

--
"Mercy to the guilty is treachery to the innocent."
Remove killer rodent from address to reply.
http://www.esatclear.ie/~rwallace


 
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.
ilias  
View profile  
 More options Oct 2 2002, 12:09 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Wed, 02 Oct 2002 19:18:40 +0300
Local: Wed, Oct 2 2002 12:18 pm
Subject: Re: LISP - The Entry Point
i got the first 'answer' of my 'lisp'.

-

lisp interpreter is easy to implement.

the challange is the raising complexity.

-

Borland C++ Builder 60-day-Evaluation is very gentle.

it shows since 2 days: 0 days remaining.

but it still continues to work.

am i illegal now?

i don't know.

it looks like a marketing thing.

-

write a lisp, instead of discussing in c.l.lisp

more fun.

-


 
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.
Justin Johnson  
View profile  
 More options Oct 2 2002, 12:30 pm
Newsgroups: comp.lang.lisp
From: "Justin Johnson" <just...@mobiusent.com>
Date: Wed, 2 Oct 2002 17:30:26 +0100
Local: Wed, Oct 2 2002 12:30 pm
Subject: Re: LISP - The Entry Point

> lisp interpreter is easy to implement.

Wait 'til you get to closures, macros and garbage collection. :-)

--
Justin Johnson

"ilias" <at_n...@pontos.net> wrote in message

news:anf5nq$5k3$1@usenet.otenet.gr...


 
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.
ilias  
View profile  
 More options Oct 2 2002, 7:00 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Thu, 03 Oct 2002 02:09:20 +0300
Local: Wed, Oct 2 2002 7:09 pm
Subject: Re: LISP - The Entry Point

> Borland C++ Builder 60-day-Evaluation is very gentle.

> it shows since 2 days: 0 days remaining.

> but it still continues to work.

> am i illegal now?

> i don't know.

> it looks like a marketing thing.

i've just finished the construct "reader macros".

and i got very much fun of how such a simple thing can be documented so
complicated.

it's really a game.

-

i was to early happy.

the Windows ME maschine crashed again.

after restarting: "thank you for evaluating borland"

-

my motivation is against zero now.

is there any C++ compliler for Windows OS which generates executables
for Linux / Unix / MAC ?

-

Mozilla seems to be overloaded with all this babbling in c.l.l.

i loose the saved news-content for the third time.

any suggestions for a good Newsreader, which is available for linux, too
(binary compatible)?

-


 
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.
Donald Fisk  
View profile  
 More options Oct 2 2002, 10:49 pm
Newsgroups: comp.lang.lisp
From: Donald Fisk <hibou00000nos...@enterprise.net>
Date: Thu, 03 Oct 2002 03:56:17 +0100
Local: Wed, Oct 2 2002 10:56 pm
Subject: Re: LISP - The Entry Point

Justin Johnson wrote:

> > lisp interpreter is easy to implement.

> Wait 'til you get to closures, macros and garbage collection. :-)

Closures can be implemented easily using the funarg
mechanism, and is just a matter of saving the environment
along with the function when the function is evaluated, and
then using that environment when the function is applied.
This is explained in detail in The Anatomy of Lisp starting
at page 146.

For macros, just get eval to macroexpand them (macroexpansion
is just treating the macro as a function applied to the
unevaluated arguments), before evaluating the macroexpansion.

The only problem closures and macros is keeping track of the
correct environment, but this is well understood.

Garbage collection is more problematic.   You can get
around the problem entirely by writing your interpreter
in a language such as Java which supports garbage collection,
but that of course is cheating.   A simple mark and sweep
collector is straightforward to implement in C, and the
algorithm is well known.   If you do this, you need to
remember to use an explicit stack, as if you naively
do something like

List append(List x, List y)
{
  List z = NULL;
  while (x != NULL) {
    z = cons(first(x), z);
    x = rest(x);
  }
  while (z != NULL) {
    y = cons(first(z), y);
    z = rest(z);
  }
  return y;

}

the mark phase of the garbage collector might not see
x or y when it is called during one or other of the
calls to cons.   (BTW, before anyone points out, I'm
aware the algorithm above can be rewritten recursively,
or with only one cons if pointers are rearranged.   Also,
using NULL as NIL might not be a good idea.)

More sophisticated techniques (e.g. generational
garbage collectors) are probably overkill in a learning
exercise, unless you're learning about garbage collection
per se.

Le Hibou
--
Dalinian: Lisp. Java. Which one sounds sexier?
RevAaron: Definitely Lisp. Lisp conjures up images of hippy coders,
drugs,
sex, and rock & roll. Late nights at Berkeley, coding in Lisp fueled by
LSD.
Java evokes a vision of a stereotypical nerd, with no life or social
skills.


 
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.
ilias  
View profile  
 More options Oct 3 2002, 3:50 pm
Newsgroups: comp.lang.lisp
From: ilias <at_n...@pontos.net>
Date: Thu, 03 Oct 2002 22:59:39 +0300
Local: Thurs, Oct 3 2002 3:59 pm
Subject: Re: LISP - The Entry Point

deinstalled Borland C++ Builder.

retrieved new eval keys with my *old* account @ borland.

installed.

works.

seems finally that borland tolerates  it

-


 
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.
Messages 1 - 25 of 26   Newer >
« Back to Discussions « Newer topic     Older topic »