unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: No Itisnt <theseaisinhere@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Lua
Date: Mon, 14 Jun 2010 21:51:17 -0500	[thread overview]
Message-ID: <AANLkTilJuGLfqWMnMlQZv44hPpaJ99Tl2ErAnvcAAUxp@mail.gmail.com> (raw)
In-Reply-To: <m3ljahl4oi.fsf@pobox.com>

>> Hey, now would be a great time for a critique of my Lua project if you
>> are willing, so I can incorporate any criticisms or ideas you may have
>> before the GSOC midterm date. I'm closing in on finishing the base
>> language and I hope to complete it this week if time permits.
>
> Great news. I haven't had time to really dive in, but hope to do so
> towards the end of the week.

Great! Please excuse the mess. The parser is awful, awful, awful and
will probably be the first thing to go. Maybe it will get replaced
with a PEG later on :) But it works for now.

>> - I am using #nil for Lua's nil right now. Lua considers nil false for
>> the purpose of conditionals and it's also the value of unset variables
>> or table slots. Maybe it should be replaced with a gensym? I didn't
>> follow the Emacs nil thing very closely so I'm not sure whether that
>> approach might be problematic.
>
> It could be OK. #f would also be fine. Does this value have any other
> kinds of semantics? You will want to use an immediate like #f or nil or
> something, going through a symbol will be too slow.

It has to be distinct from false. I'll just stick with #nil and
hopefully nothing will go wrong

>> - Lua represents numbers as the C 'double' type by default -- what's
>> the best way to approximate that in Guile?
>
> Hmm. Here I think we should use Guile's numbers by default. That way you
> get the speed of inums in most normal cases. You should probably coerce
> division into inexact numbers (i.e. 3 / 4 translating to the equivalent
> of (exact->inexact (/ 3 4))).

Sounds good

Thanks



      reply	other threads:[~2010-06-15  2:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22 18:00 Lua No Itisnt
2010-05-22 21:04 ` Lua Ludovic Courtès
2010-06-03  8:32 ` Lua No Itisnt
2010-06-03 19:29   ` Lua Andy Wingo
2010-06-03 20:36     ` Lua No Itisnt
2010-06-03 22:04       ` Lua Andy Wingo
2010-06-03 22:07       ` Lua Andy Wingo
2010-06-13 21:03 ` Lua No Itisnt
2010-06-14 20:50   ` Lua Andy Wingo
2010-06-15  2:51     ` No Itisnt [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=AANLkTilJuGLfqWMnMlQZv44hPpaJ99Tl2ErAnvcAAUxp@mail.gmail.com \
    --to=theseaisinhere@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.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).