freenode/#lisp - IRC Chatlog
Search
19:09:37
Bike
Maybe I wasn't clear. The updater can look at the instance pre-update. You could for example assign A to have the old X value and B to have the old Y value.
19:09:52
Bike
But you were phrasing things in terms of an (init) call so I thought that was what you wanted.
19:13:20
Alfr
amerlyq, you could make your init-a return a corresponding deinit-a which the user of init-a shall call later.
19:13:34
amerlyq
Slightly convoluted example (I know): changing Pt(x,y) -> Pt(a,b) may signify you worked with geometric plane and wish to try working with phase plane (s,v) now (and still keep all previous program state). In this case there is no direct conversion (x,y) -> (a,b) and you must get new (a,b) values somewhere. Still let's stop, I know I must simply create PPt class instead :)
19:15:41
Bike
i kind of want to know how this is supposed to work. i mean if there's no correspondence between the old and new points, what does "updating" even mean?
19:16:51
Bike
I guess you could do something like call a function that returns both an initializer and deinitializer, then calls the initializer, then does whatever work, then calls the deinitializer. and then wrap it in a macro so you just write (with-a ... do work ...)
19:28:44
amerlyq
Bike: I had a mess of example, sorry. Emphasis was, that when you -add- new field -- it's often dependent on smth outside instance, so you can't lazy-init to generate proper value for that field
19:29:21
Bike
sure. in that case you'd probably have to do something more global, yeah. which i guess would involve pausing.
20:38:00
phoe
What sorts of fixes, corrections, revisions, additions, tricks, recipes, informations, would you like to see in the second edition of Common Lisp Recipes?
20:39:33
Xach
i preordered Common Lisp Recipes in 2015. between my preorder and the actual release, i moved to a new place. the book was delivered to my old house. the new owners kept it! i have never read it!
20:41:52
mfiano
A recipe for getting set up with a proper environment so we can direct people insisting on MS Notepad without SLIME/Sly over to it.
20:42:37
phoe
I will certainly want to have a whole initial section dedicated to emacs, vim, sublime, atom, and vscode along with their respective Lisp environments
20:44:10
_death
I couldn't bear to finish CLR.. every page had footnotes, which are not useful when reading front to back, and my compulsion forces me to read them.. too painful
1:09:02
Gnuxie[m]
Rust cannot be made lispy, mostly its investors are not interested in interactivity, but this isn't what you want to hear
1:10:56
Gnuxie[m]
That's Ignoring everything that makes rust rust stands against what makes lisp lisp
1:20:22
theemacsshibe
So, what kind of "built-in variable" would make Rust any more like Lisp exactly?
4:50:02
fiddlerwoaroof
(asdf:initialize-configuration (:source-registry :inherit-configuration (:tree "/path/to/directory/"))) works too
5:06:05
no-defun-allowed
One solution is to do (funcall (find-symbol "NAME" "PACKAGE") ...) but I'd rather ask why you need to do that.
5:06:41
no-defun-allowed
Can you load the other files required beforehand, or at least the file defining the package?
5:07:11
dbotton
So I want to give a way for someone to load and run a tutorial file in my quicklisp project without needed to known where it is installed
5:08:33
no-defun-allowed
One approach is to define another ASDF system for the tutorial, which depends-on your actual system, and have the user load that.
5:08:56
no-defun-allowed
So, (asdf:defsystem #:clog-user :depends-on (#:clog) ...) then the user types (ql:quickload :clog-user)