From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: The progress of hacking guile and prolog
Date: Thu, 04 Nov 2010 00:43:54 +0100 [thread overview]
Message-ID: <87bp66q8g5.fsf@gnu.org> (raw)
In-Reply-To: 201010212223.23822.stefan.itampe@gmail.com
Hi Stefan,
Lots of stuff here, which is why I took the time to read it. :-)
Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:
> 1. The theorem prover (leanCop) is a nice exercise
[...]
> 2. Kanren is a nice way to program like with prolog,
Great that you’re mentioning them. It looks like there’s a lot of
interesting work that’s been done around Kanren, such as the “toy” type
inference engine and, better, αleanTAP. I don’t grok it all I’m glad
you’re looking at it from a Guile perspective. :-)
> 4. The umatch hackity hack was turned into a much more hygienic creature.
Funny sentence. :-)
> 5) Typechecking is for safty and optimisation, in the end it can be cool to
> have and I'm working to understand all sides of this and have a pretty good
> idea what is needed. It will be a goos testcase for the code.
Yes, if the type inference engine that comes with Kanren could somehow
be hooked into Guile’s compiler, so that it can emit type-mismatch
warnings or determine whether type-checks can be optimized away (which
would require changes in the VM), that’d be great.
What’s amazing is that Kanren + type-inference.scm weigh in at “only”
~3,500 SLOC.
> 6) I copied the glil->assembly compiler and modded the code to spit out
> c-code in stead of assembly. For functions which does not call other scheme
> functions except in tail call manner this should be quite fast to adapt. And
> of cause loops becomes wickedly fast when compiling this way. Wingo:s example
> without consing tok 7ns for each loop on my machine.
Interesting. Is it a sufficiently isolated change that you could point
us to?
Thanks,
Ludo’.
next prev parent reply other threads:[~2010-11-03 23:43 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-21 20:23 The progress of hacking guile and prolog Stefan Israelsson Tampe
2010-11-03 23:43 ` Ludovic Courtès [this message]
2010-11-04 2:40 ` Noah Lavine
2010-11-10 17:55 ` Stefan Israelsson Tampe
2010-11-11 19:10 ` Noah Lavine
2010-11-11 16:26 ` Ludovic Courtès
2010-11-11 19:13 ` Noah Lavine
2010-11-11 19:15 ` Noah Lavine
2010-11-15 23:10 ` Typechecking I Stefan Israelsson Tampe
2010-11-20 11:46 ` Andy Wingo
2010-11-20 11:25 ` The progress of hacking guile and prolog Andy Wingo
2010-11-24 1:54 ` Noah Lavine
2010-11-24 16:45 ` Stefan Israelsson Tampe
2010-11-24 18:00 ` piper schemigan Stefan Israelsson Tampe
2010-11-24 20:18 ` Andreas Rottmann
2010-11-25 21:17 ` Ludovic Courtès
2010-11-26 22:18 ` Stefan Israelsson Tampe
2010-11-28 22:30 ` Guile-SCSH Ludovic Courtès
2010-11-28 23:02 ` Guile-SCSH Stefan Israelsson Tampe
2010-11-28 23:24 ` Guile-SCSH Jose A. Ortega Ruiz
2010-11-29 18:56 ` Guile-SCSH Stefan Israelsson Tampe
2010-11-29 21:26 ` http://gitorious.org/guile-scsh/guile-scsh Stefan Israelsson Tampe
2010-11-30 23:21 ` Guile-Facade Ludovic Courtès
2010-11-25 21:26 ` The progress of hacking guile and prolog Ludovic Courtès
2010-11-26 16:41 ` Noah Lavine
2010-11-26 10:45 ` Andy Wingo
2010-11-20 11:26 ` Andy Wingo
2010-11-04 17:57 ` Stefan Israelsson Tampe
2010-11-05 21:19 ` Stefan Israelsson Tampe
2010-11-19 23:11 ` GLIL->C compilation Ludovic Courtès
2010-11-19 23:20 ` Stefan Israelsson Tampe
2010-11-19 23:56 ` Ludovic Courtès
2010-11-20 12:18 ` Andy Wingo
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=87bp66q8g5.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@gnu.org \
/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).