unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Questions about the compiler et al
@ 2012-01-05  6:03 Mark H Weaver
  2012-01-05 15:01 ` Andy Wingo
  0 siblings, 1 reply; 5+ messages in thread
From: Mark H Weaver @ 2012-01-05  6:03 UTC (permalink / raw)
  To: guile-devel

Hello all,

While writing the more complex variant of the compiler implementation of
`the-environment' and `local-eval', I learned a great deal about the
compiler, and accumulated the following list of questions along the way.

If someone with sufficient knowledge could answer at least some of these
questions, I would be grateful.

* Why do compilers return two copies of the same environment?
  What is the intended meaning of these two return values?

* What is the logic behind the handling of returned environments by
  compile-fold and read-and-compile?

* Should we move to support compiler environments that are not simply
  modules?

* Should we support distinct environment types for different languages,
  or use a simple uniform type for all, e.g. an alist?

* Why does code in analyze.scm check (module? env) in so many places?
  Is it expected that sometimes env will not actually be a module?
  Is it important to support this?

* Is there any way to embed references to non-serializable objects in
  compiled code?  I think this is important.  Not all code needs to be
  serialized, and we shouldn't limit ourselves to serializable code, for
  the same reasons that we shouldn't limit ourselves to serializable
  data.

* Do modules created by (make-fresh-user-module) get garbage collected?

* Why is `procedure-environment' still documented as "Very deprecated"?
  Is it still available at all?

    Thanks!
      Mark



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-10  0:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05  6:03 Questions about the compiler et al Mark H Weaver
2012-01-05 15:01 ` Andy Wingo
2012-01-05 17:20   ` Mark H Weaver
2012-01-08  0:03     ` Andy Wingo
2012-03-10  0:44     ` BT Templeton

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).