libera/#commonlisp - IRC Chatlog
Search
5:41:16
kakuhen
for instance, you will see a lot of calls like (ensure-directory-pathname "ccl:foo;")
5:41:33
kakuhen
is this some relic from the classic mac os days or is there something meaningful with this convention?
5:44:23
specbot
Syntax of Logical Pathname Namestrings: http://www.lispworks.com/reference/HyperSpec/Body/19_ca.htm
5:48:35
kakuhen
That seems correct, but I'm not entirely sure. In the function CREATE-IDE-BUNDLE, for instance, you have a string SOURCE defined as "ccl:cocoa-ide;ide-contents;". This corresponds to .../ccl/cocoa-ide/ide-contents on my actual drive.
5:50:55
conjunctive
Hello, has anyone worked with lisp-binary? Trying to understand how I should represent padding in this DSL.
6:55:05
kakuhen
Doesn't this break the standards? The hyperspec states the function "determines the pathname that corresponds to the user's home directory on host," but CCL always ignores the host.
7:43:30
pjb
kakuhen: note that this is not pathname hosts, but network hosts. Since there is absolutely nothing specified making the link between pathnames and network, it really lies entirely into implementation specific domain.
7:46:00
pjb
kakuhen: but even assuming an implementation that would deal with some kind of network file system. With most network file system in use nowadays (say, NFS and Samba, possibly various cloud FS, such as DropBox, iCloud, etc), you don't get to choose on what host your user-homedir-pathname is on. This is the local system that decides, and your home path is always relative to the local file system, even if it's remotely mounted.
11:59:25
pve
Hi, can someone speak about how systems were loaded in CL back in the day? I know there was MK:DEFSYSTEM, but was it used right from the start, or did people just have ad-hoc solutions before it emerged? Did lisps before CL have their own defsystems?
12:00:41
xach
pve: i've seen a number of old projects with a file named something like load.lisp that has a script that loads the software.
12:01:21
Duuqnd
I know Symbolics had their own DEFSYSTEM thing so I'm guessing before ASDF there were lots of DEFSYSTEM implementations.
12:03:49
jackdaniel
the standard mentions (as deprecated) interfaces require and provide that are meant to load "modules" (whatever that means :)
12:04:40
mfiano
I remember using something like clbuild (?) or something or another before QL existed/was popular
12:05:02
xach
clbuild was a way to get things - it didn't introduce a new way to things, it used asdf
12:05:07
jackdaniel
so this is deprected in its inception mechanism for loading programs composed of multiple (or one) files
12:05:55
jackdaniel
there was also sbt that was part of ecl at some point of time (years before I've used it)
15:25:14
lisp123
For example, consider I have a loop that keeps running until a condition is met - at that point I want to run another test with the value of the condition, if that test fails, I want to return to the original loop and keep running
15:30:25
lisp123
For example, say I have a calling function that calls the loop you just mentioned, I want to return control to it (with a certain value) to continue on its way (and if it fails, then come back to the loop)
15:30:59
Bike
don't think of it as "come back". you can just not leave the loop in the first place. that's how jackdaniel's code works.
15:32:09
lisp123
Bike: ah okay, I understand a bit better. But still, all the information in the calling function would need to be passed down into the loop so that it can 'funcall' the calling function again with this information
15:33:03
lisp123
Wanted to check if there was a particularly canonical way before I went down both routes
15:33:06
Bike
for what you described at first i think that would be overcomplicated but i don't know the shape of your code
15:35:00
lisp123
I have a list of conditions that I need to check / calculate, with some conditions being 'dependent' on the values of earlier conditions in the list - hence once I get a value for a particular condition, I want to test the remaining conditions to see if they work, if not, continue the search for the correct value
15:35:36
lisp123
So basically a list of search processes, where I want to store the search paths as well, not just the values found by the searches
15:51:26
lisp123
I will have a think. jackdaniel's solution is the cleanest / easiest to follow, perhaps I should start with that for now and worry about optimisation later
15:52:11
lisp123
shka: yes it seems very straightforward (as in the lines of code are not many - not the concepts - that's very magical :-))
15:54:17
mfiano
I think maybe you are using the wrong terminology when you speak of projects, systems, or packages.
15:55:34
lisp123
mfiano: i found the source material here also https://common-lisp.net/project/clazy/
15:58:39
mfiano
You might be confusing a lot of people around here when you speak of a "package" but mean a "system"
16:06:49
mfiano
lisp123: A package is a collection of symbol objects. There are N packages in a system. A system is a collection of ASDF manifests. There are M systems per project. A project is a collection of code, usually in the form of a Git repository, and is what Quicklisp tracks.
16:13:43
lisp123
mfiano: Thanks, I was aware of the terms, but I don't use ASDF much at all, so I have been using package more generally. Anyways I'll be careful in the future