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
Common Lisp: *require-hooks*
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
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
avodono...@gmail.com  
View profile  
 More options Aug 8 2012, 6:01 pm
Newsgroups: comp.lang.lisp
From: avodono...@gmail.com
Date: Wed, 8 Aug 2012 15:01:29 -0700 (PDT)
Local: Wed, Aug 8 2012 6:01 pm
Subject: Common Lisp: *require-hooks*
Why CL:REQUIRE is deprecated?

Would it be a good if Common Lisp provided some *REQUIRE-HOOKS*
variable - a list of functions. Every function in this list
is given a chance to load the module when user invokes (REQUIRE "module").

So if I want to integrate require with ASDF I say:
  (push (lambda (module)
          (asdf:operate 'asdf:load-op module)
          (provide module))
        cl:*require-hooks*)

If I want to integration REQUIRE with quicklisp:
  (push (lambda (module)
          (ql:quickload module)
          (provide module))
        cl:*require-hooks*)


 
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.
Jean-Claude Beaudoin  
View profile  
 More options Aug 8 2012, 6:31 pm
Newsgroups: comp.lang.lisp
From: Jean-Claude Beaudoin <jean.claude.beaud...@gmail.com>
Date: Wed, 08 Aug 2012 18:31:16 -0400
Local: Wed, Aug 8 2012 6:31 pm
Subject: Re: Common Lisp: *require-hooks*

Why don't you have a look at asdf.lisp in the ASDF git repository
around line 4460 and tell us what you think! :-)

 
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.
avodono...@gmail.com  
View profile  
 More options Aug 8 2012, 6:48 pm
Newsgroups: comp.lang.lisp
From: avodono...@gmail.com
Date: Wed, 8 Aug 2012 15:48:16 -0700 (PDT)
Local: Wed, Aug 8 2012 6:48 pm
Subject: Re: Common Lisp: *require-hooks*

> Why don't you have a look at asdf.lisp in the ASDF git repository
> around line 4460 and tell us what you think! :-)

Ah, most of Lisp have *module-provider-functions* for that purpose.
Good.

Could anyone explain why require is deprecated? What's wrong with 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.
avodono...@gmail.com  
View profile  
 More options Aug 8 2012, 6:53 pm
Newsgroups: comp.lang.lisp
From: avodono...@gmail.com
Date: Wed, 8 Aug 2012 15:53:26 -0700 (PDT)
Local: Wed, Aug 8 2012 6:53 pm
Subject: Re: Common Lisp: *require-hooks*
I also think that maybe *module-provider-functions* deserves a CDR..

 
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.
Pascal J. Bourguignon  
View profile  
 More options Aug 8 2012, 7:37 pm
Newsgroups: comp.lang.lisp
From: "Pascal J. Bourguignon" <p...@informatimago.com>
Date: Thu, 09 Aug 2012 01:37:22 +0200
Local: Wed, Aug 8 2012 7:37 pm
Subject: Re: Common Lisp: *require-hooks*

avodono...@gmail.com writes:
>> Why don't you have a look at asdf.lisp in the ASDF git repository
>> around line 4460 and tell us what you think! :-)

> Ah, most of Lisp have *module-provider-functions* for that purpose.
> Good.

> Could anyone explain why require is deprecated? What's wrong with it?

What's wrong is that when used with a single argument, it's behavior is
implementation dependant.

When you use (LOAD path), you know exactly what happens.  When you use
(REQUIRE string), anything can happen.

That's why more sophisticated facilities like ASDF or QUICKLISP are
built upon LOAD, not upon REQUIRE.

Implementation dependent features are the scourge of the CL programmer!
;-)

--
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


 
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.
Ugih Li  
View profile  
 More options Aug 8 2012, 9:17 pm
Newsgroups: comp.lang.lisp
From: Ugih Li <free...@gmail.com>
Date: Wed, 8 Aug 2012 18:17:34 -0700 (PDT)
Local: Wed, Aug 8 2012 9:17 pm
Subject: Re: Common Lisp: *require-hooks*

In ASDF if I have to specify :depends-on xxxx, I'd better use load 1.lisp load 2.lisp ...in right order in a single file instead of using asdf.

 
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.
Zach Beane  
View profile  
 More options Aug 8 2012, 9:46 pm
Newsgroups: comp.lang.lisp
From: Zach Beane <x...@xach.com>
Date: Wed, 08 Aug 2012 21:46:11 -0400
Local: Wed, Aug 8 2012 9:46 pm
Subject: Re: Common Lisp: *require-hooks*

Ugih Li <free...@gmail.com> writes:
> In ASDF if I have to specify :depends-on xxxx, I'd better use load
> 1.lisp load 2.lisp ...in right order in a single file instead of using
> asdf.

You can get a similar effect by using the ":serial t" option in the
system definition.

Zach


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »