Re: package-inferred-system noob-user confusion

2025-01-09 Thread Robert Goldman
Thank you! A patch will be very welcome. On 9 Jan 2025, at 16:01, Russell L. Carter wrote: I will do this tomorrow. Russell On 1/9/25 4:56 PM, Faré wrote: On Thu, Jan 9, 2025, 10:16 Russell L. Carter > wrote: Finally I'll note that the only examples I've se

Re: package-inferred-system noob-user confusion

2025-01-09 Thread Russell L. Carter
I will do this tomorrow. Russell On 1/9/25 4:56 PM, Faré wrote: On Thu, Jan 9, 2025, 10:16 Russell L. Carter > wrote: Finally I'll note that the only examples I've seen, and I actually did suck down the repo for lisp-interface-library, *do not show

Re: package-inferred-system noob-user confusion

2025-01-09 Thread Faré
On Thu, Jan 9, 2025, 10:16 Russell L. Carter wrote: > Finally I'll note that the only examples I've seen, and I actually > did suck down the repo for lisp-interface-library, *do not show > :use :cl*. For instance have a look at the code snippets from the > ASDF.pdf manual on page 26. There are

Re: package-inferred-system noob-user confusion

2025-01-09 Thread Russell L. Carter
Thanks for the kind words, Robert. I completely agree! I was a heavy C++ *template* programmer back in the '90s, you want a hostile developer environment haha I think that takes the cake. But we were chasing performance. I learned c++ at NASA Ames NAS in the early '90s using g++. Rough. NAS

Re: package-inferred-system noob-user confusion

2025-01-09 Thread Robert Dodier
Russell, I share your frustration; Common Lisp has a lot of idiosyncrasies and also a lot of really interesting, useful ideas, so it's both a wonderful and terrible environment for writing code, and, given its history, that will continue to be the case indefinitely. My advice is just take the idio

Re: package-inferred-system noob-user confusion

2025-01-09 Thread Russell L. Carter
Thanks everyone for the help, but as the noob here perhaps it is of interest to the experts to see how I saw the situation, and what might help. When I write a form like: (defun main () (write-line "urg")) and the loader error diagnostic is "The variable MAIN is unbound" without any evidence in

Re: package-inferred-system noob-user confusion

2025-01-09 Thread Faré
My memories are dim, but I believe it's a case of absence of :use argument being the same as (:use :common-lisp) but if you have an explicit :use argument, you need to explicitly include :common-lisp in the list for it to be included. —♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http:/

Re: package-inferred-system noob-user confusion

2025-01-08 Thread Robert Dodier
For the record, I can reproduce the behavior noted in the comments -- (asdf:load-system "hello") succeeds if (:use :alexandria) is omitted, and fails with "Variable MAIN is unbound" otherwise. I am working with SBCL. It appears that the .lisp was successfully compiled, and the error occurs when tr

Re: package-inferred-system noob-user confusion

2025-01-08 Thread Russell L. Carter
I apologize. Here is the backtrace, and the repl interaction that triggered it, after: The variable MAIN is unbound. [Condition of type COMMON-LISP:UNBOUND-VARIABLE] Restarts: 0: [CONTINUE] Retry using MAIN. 1: [USE-VALUE] Use specified value. 2: [STORE-VALUE] Set specified value and use

Re: package-inferred-system noob-user confusion

2025-01-08 Thread Russell L. Carter
Bingo! Thank you very much. I regret that I hadn't thought to try that, it's obvious in hindsight. I was led astray I think by fare's very concise wording in the UIOP manual 2 UIOP/Package uiop.pdf page2: [...] cl:defpackage. use -- as per cl:defpackage, but if neither use, use-reexport, mix,

Re: package-inferred-system noob-user confusion

2025-01-08 Thread Alexander Fedorov
Hello! IIUC, the problem here is not with ASDF but with the package definition (I could be wrong about the reason because I can't really test it in the exact same setup at the moment). Specifically, when defining a package, if there is no :use clause, an implementation-dependent default is used, w

Re: package-inferred-system noob-user confusion

2025-01-08 Thread Robert Goldman
Will you please post a backtrace from SBCL for this. I'm not at all sure I understand what you mean by "this line fails." What did you do to trigger the error? `(asdf:load-system "hello")` ? On 8 Jan 2025, at 17:37, Russell L. Carter wrote: Greetings, I am a common-lisp noob. I am not a