unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Nala Ginrut <nalaginrut@gmail.com>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Common Lisp ontop of guile
Date: Tue, 20 May 2014 10:06:53 +0800	[thread overview]
Message-ID: <CAPjoZoduPdu=NDnGapMA930yx1AwWwg4cbZri1gYO7YhYCV5iw@mail.gmail.com> (raw)
In-Reply-To: <CAGua6m2YJ7K_jBokXbcEXehA-+rUp7RD3+so35oON1fFY22YEw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]

hi Stefan! Thanks for the reply!
Please let me share some ideas:

2014年5月20日 上午4:36于 "Stefan Israelsson Tampe" <stefan.itampe@gmail.com>写道:

>
> Hi, I saw on irc that nalginrut was dreaming of implementing common lisp
ontop of guile
> I have spent some time thinking on that and came to the following
conclusions.
>
> 1. Common lisp symbolic treatment and guile's syntax system does not mix
well.

I see, but if someone want to do a serious hack for CL compiler on Guile, a
simple(maybe naive) mind to translate AST of CL to tree-il and pray for the
heaven is obvious insufficient. :–)
So one has to customize the backend for CL properly.

> 2. If we want to reuse CL code we will find out that the it produces tons
of tagbodies.
> This can't be directly implemented by letrecs but delimeted continuations
is needed. And with those it is somemwhat fuzzy how well optimized the code
will become e.g. there is a risk of slow tagbodies. On the other hand doing
an implementation of CL might challange the guile hackers to produce an
even better optimizer. So tagbodies is doabale and I have code that does
them.

Yes I agreed. I have to point out that we can hardly expect Guile core
provides generic solution for various languages, which means the frontend
hacker has to consider to produce better optimizer with the tools Guile
provided (CPS,DCE,CSE...). Maybe the original tools is not suit(?), and one
has to write new one.

...

> I'm sure I've mised many points but at least these thoughts might
initiate a discussion.
>

I'm hacking on guile-lua these days, when it's done, I may have some
experiences on frontend. Lua seems relatively easier than CL situation. But
it's hard when you want it to be full compatible with the original one.

Any comments? :)

> Cheers!
>

[-- Attachment #2: Type: text/html, Size: 2168 bytes --]

      reply	other threads:[~2014-05-20  2:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 20:36 Common Lisp ontop of guile Stefan Israelsson Tampe
2014-05-20  2:06 ` Nala Ginrut [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPjoZoduPdu=NDnGapMA930yx1AwWwg4cbZri1gYO7YhYCV5iw@mail.gmail.com' \
    --to=nalaginrut@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=stefan.itampe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).