jemoka has left #commonlisp [ERC (IRC client for Emacs 28.0.50)]
cuz has quit [Ping timeout: 268 seconds]
<raeda>
cuz: on SBCL you can sb-ext:save-lisp-and-die to save an image. You would have to configure Slime to use that image on the next startup though
brettgilio has quit [Client Quit]
brettgilio has joined #commonlisp
brettgilio has quit [Client Quit]
<rotateq>
raeda: but iirc it's not doable from inside of slime in emacs, cause of threading issues
brettgilio has joined #commonlisp
brettgilio has quit [Client Quit]
brettgilio has joined #commonlisp
brettgilio has quit [Remote host closed the connection]
brettgilio has joined #commonlisp
brettgilio has quit [Remote host closed the connection]
brettgilio has joined #commonlisp
cuz has joined #commonlisp
Spawns_Carpeting has quit [Ping timeout: 268 seconds]
Spawns_Carpeting has joined #commonlisp
lisp123 has joined #commonlisp
rotateq has quit [Ping timeout: 260 seconds]
lisp123 has quit [Ping timeout: 268 seconds]
recordgroovy has joined #commonlisp
taiju has quit [Ping timeout: 260 seconds]
random-nick has quit [Ping timeout: 265 seconds]
Qwnavery has joined #commonlisp
rgherdt has quit [Ping timeout: 240 seconds]
cuz has quit [Ping timeout: 268 seconds]
tyson2 has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 268 seconds]
brettgilio has quit [Quit: Leaving...]
brettgilio has joined #commonlisp
cuz has joined #commonlisp
cuz has quit [Ping timeout: 260 seconds]
taiju has joined #commonlisp
kakuhen has quit [Remote host closed the connection]
kakuhen has joined #commonlisp
taiju has quit [Ping timeout: 265 seconds]
kakuhen has quit [Remote host closed the connection]
kakuhen has joined #commonlisp
taiju has joined #commonlisp
taiju has quit [Ping timeout: 268 seconds]
Oladon has quit [Quit: Leaving.]
<beach>
Good morning everyone!
nature has quit [Ping timeout: 268 seconds]
taiju has joined #commonlisp
nature has joined #commonlisp
kakuhen_ has joined #commonlisp
kakuhen has quit [Ping timeout: 260 seconds]
lisp123 has joined #commonlisp
FubbiQuantz has joined #commonlisp
elderK has joined #commonlisp
<FubbiQuantz>
Hi, I'm trying to run a script from the command line using sbcl. When I run the script, it says that sbcl cannot find the package quicklisp. Quicklisp works fine when I'm in the repl. I've tried loading quicklisp directly in my script, but that hasn't worked. How can I modify my program or my shell command to get around this problem?
<beach>
I think we had a long discussion about that only a few days ago.
<beach>
Maybe check the logs.
edgar-rft has joined #commonlisp
<FubbiQuantz>
I'm not finding anything when I use search through the logs. Can you suggest some useful search terms?
<beach>
Let me see...
<FubbiQuantz>
I'm trying to set up a swank server that will keep running even after I log out.
<beach>
I looked for -script and found some results. But this is not my domain of expertise, so I may be wrong.
semz has quit [Ping timeout: 268 seconds]
<saturn2>
FubbiQuantz: you probably need --load ~/.sbclrc
<saturn2>
or some other file that will load quicklisp
nature has quit [Ping timeout: 268 seconds]
semz has joined #commonlisp
<FubbiQuantz>
Hello saturn2, that solved the problem. Thank you.
<FubbiQuantz>
The program runs successfully but I can't connect to the swank server.
lottaquestions has joined #commonlisp
FubbiQuantz has quit [Ping timeout: 265 seconds]
Lycurgus has joined #commonlisp
ad-absurdum has joined #commonlisp
Oladon has joined #commonlisp
ggoes has quit [Ping timeout: 268 seconds]
ggoes has joined #commonlisp
lad has quit [Read error: Connection reset by peer]
lad has joined #commonlisp
azimut_ has joined #commonlisp
azimut has quit [Ping timeout: 276 seconds]
Qwnavery has quit [Quit: WeeChat 3.2.1]
jeosol has quit [Quit: Connection closed]
elderK has quit [Quit: Connection closed for inactivity]
Oladon has quit [Read error: Connection reset by peer]
Oladon has joined #commonlisp
trevlif has left #commonlisp [ERC (IRC client for Emacs 26.3)]
asarch has joined #commonlisp
Oladon has quit [Quit: Leaving.]
Lycurgus has quit [Quit: Exeunt]
asarch has quit [Quit: Leaving]
selwyn has joined #commonlisp
user51 has joined #commonlisp
pve has joined #commonlisp
rgherdt has joined #commonlisp
Nilby has joined #commonlisp
gaqwas has joined #commonlisp
selwyn has quit [Read error: Connection reset by peer]
akoana has left #commonlisp [#commonlisp]
hendursa1 has joined #commonlisp
hendursaga has quit [Ping timeout: 276 seconds]
rain3 has joined #commonlisp
cosimone has joined #commonlisp
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
frgo has quit [Quit: Leaving...]
FubbiQuantz has joined #commonlisp
srhm has quit [Read error: Connection reset by peer]
srhm has joined #commonlisp
srhm has quit [Read error: Connection reset by peer]
srhm has joined #commonlisp
amb007 has quit [Ping timeout: 245 seconds]
<lukego>
Hey I find myself wanting versions of the standard math functions (+, -, exp, sqrt, etc) that are specialized for all values being double-floats. So that I could depend on getting machine code doing efficient non-complex double float without worrying about type declarations on variables. did someone already make a wrapper arithmetic library like that?
amb007 has joined #commonlisp
<pjb>
lukego: a VOP library?
molson_ has quit [Ping timeout: 260 seconds]
cage has joined #commonlisp
rain3 has quit [Ping timeout: 260 seconds]
<lukego>
pjb: I'm imagining something simpler e.g. just wrapper functions that wrap everything in COERCE or something.
<lukego>
(and that get inlined to propagate that type information in SBCL)
waleee has joined #commonlisp
user51 has left #commonlisp [#commonlisp]
kakuhen_ has quit [Quit: Leaving...]
<Nilby>
lukego: I'm fond of mass function generating macros for that. I've done something like it for standard string and sequence functions. I guess the hard part is making sure they get the fast path in disassemble.
<White_Flame>
not sure if it's easier to just macro up your local variable declarations, instead of the functions themselves
<Nilby>
If I recall there are a bunch of 3d graphics-math-ish packages that do that.
<_death>
edgar-rft: this was written while the standard was written.. there is a follow-up by Moon explaining what is meant to happen
<Nilby>
_death: 1987. always impressed with your deep research
<beach>
edgar-rft: I see what you mean. That information is presumably taken for granted, but it would be good to include it in WSCL.
<Nilby>
Moon's answer makes sense, but it seems like noone every really "deep-six"ed it.
<_death>
Nilby: it's easy to just search cl-su-ai ;)
<beach>
edgar-rft: It is not possible to have unbound lexical variables in Common Lisp.
rain3 has joined #commonlisp
<_death>
Nilby: well, there is also a follow-up to Moon, where an attempt at disambiguation is mention in the context of Scheme
<_death>
*mentioned
<beach>
Also, it should not say "value cell".
* edgar-rft
also says thanks to _death for his archaelogical skills :-)
<Nilby>
still my biggest gripe with makunbound is the missing ‘e’
<tfb>
I assume it was abvious that MAKUNBOUND could not work on a lexical variable (it's a function for one thing!)
attila_lendvai has joined #commonlisp
fitzsim has joined #commonlisp
<Nilby>
I'm pretty sure makunbound is from before lexical scoping. "We just can't win."
Lycurgus has joined #commonlisp
lotuseater has joined #commonlisp
<lukego>
Coded up that idea of generating typed math wrappers: https://gist.github.com/lukego/726f23d20119c37d1bbd705a29f50f76. So e.g. defining |.| prefixed double-float ops and writing (.exp (.* -0.5d0 (.expt (./ (.- x μ) σ) 2))) knowing everything will be coerced safely to double and compiled to floating point machine code.
srhm has quit [Read error: Connection reset by peer]
srhm has joined #commonlisp
<hayley>
In OCaml they write *. (from memory).
<lukego>
Maybe it should take a format string instead of a prefix
<hayley>
You might also want to consider inlining, in order to avoid boxing double-floats with current compilers.
<lukego>
hayley: current version is defining all the operators as macros so that should take care of the inlining angle, right?
<hayley>
Yes, I misread. My bad.
<lukego>
I'd started off with functions but yeah decided to make it dumber
<lukego>
(the whole idea here is to be a bit dumb i.e. for times when you want to be sure of how the compiled code will be but don't want to think too hard about your type declarations)
<lukego>
and maybe declarations are putting you on the path of getting runtime errors - or invalid results if safety is low - when type conversions might be more appropriate, especially on these fancy-pants wide-backended branch-predicting types of computers we're using these days
keir has left #commonlisp [#guile #lisp]
Inline has quit [Remote host closed the connection]
Inline has joined #commonlisp
Inline has quit [Client Quit]
X-Scale` has joined #commonlisp
<lukego>
_death: interesting!
X-Scale has quit [Ping timeout: 265 seconds]
X-Scale` is now known as X-Scale
shka has joined #commonlisp
Inline has joined #commonlisp
amb007 has joined #commonlisp
X-Scale` has joined #commonlisp
X-Scale has quit [Ping timeout: 252 seconds]
X-Scale` is now known as X-Scale
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #commonlisp
tyson2 has quit [Quit: ERC (IRC client for Emacs 27.2)]
char has quit [Ping timeout: 265 seconds]
nature has joined #commonlisp
cosimone has quit [Remote host closed the connection]
cosimone has joined #commonlisp
<pjb>
lukego: note that using SHADOW to shadow should work better.
tyson2 has joined #commonlisp
tyson2 has quit [Quit: ERC (IRC client for Emacs 27.2)]
taiju has quit [Ping timeout: 260 seconds]
tyson2 has joined #commonlisp
taiju has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
tyson2 has quit [Quit: ERC (IRC client for Emacs 27.2)]
luna-is-here has quit [Quit: luna-is-here]
lottaquestions has quit [Quit: Konversation terminated!]
lottaquestions has joined #commonlisp
luna-is-here has joined #commonlisp
selwyn has joined #commonlisp
tfb has quit [Quit: died]
amb007 has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
Izem has joined #commonlisp
Nilby has quit [Ping timeout: 260 seconds]
lisp123 has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
amb007 has joined #commonlisp
ad-absurdum has quit [Quit: Leaving]
lisp123 has quit [Ping timeout: 252 seconds]
Izem has quit [Quit: Going offline, see ya! (www.adiirc.com)]
recordgroovy has quit [Quit: leaving]
Oladon has joined #commonlisp
lottaquestions has quit [Ping timeout: 260 seconds]
attila_lendvai has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
attila_lendvai has quit [Client Quit]
attila_lendvai has joined #commonlisp
CptKirk has quit [Ping timeout: 256 seconds]
luna-is-here has quit [Quit: luna-is-here]
lisp123 has joined #commonlisp
luna-is-here has joined #commonlisp
luna-is-here has quit [Client Quit]
lisp123 has quit [Ping timeout: 240 seconds]
CptKirk has joined #commonlisp
cosimone has quit [Ping timeout: 268 seconds]
frgo has joined #commonlisp
FubbiQuantz has quit [Remote host closed the connection]
CptKirk has quit [Ping timeout: 256 seconds]
borodust has quit [Remote host closed the connection]
Everything has joined #commonlisp
borodust has joined #commonlisp
<pve>
Is one supposed to use (the double-float ...) or (coerce ... 'double-float) to tell the compiler what to expect?
<pve>
or will both work?
<mfiano>
The former is a promise to the compiler, which is allowed to do nothing or anything.
<mfiano>
The latter will allocate a new object
<lotuseater>
hm i thought with THE it's more like a promise "this shall be that type" and with coerce an instruction "transforms this to the new type"
<lotuseater>
thx mfiano :)
<pve>
Yep, that's been my impression as well, just checking. Thank you.
<aeth>
(the double-float x) is very, very, very close to (prog1 x (check-type x double-float))
<aeth>
Some compilers might implement it that way.
<lotuseater>
interesting
<aeth>
SBCL doesn't. For DECLARE, DECLAIM, THE, etc., SBCL will use a faster CHECK-TYPE that is not recoverable.
<aeth>
And that doesn't run when (safety 0)
<lotuseater>
haha yes i had this experience at some point ^^
<aeth>
What I mean is, (prog1 x (check-type x double-float)) in SBCL will let you supply a new x that satisfies double-float, while (the double-float x) will fail the program if it's not a double-float
<aeth>
Marginally faster, I guess
<aeth>
However, other implementations might just have no distinction.
<aeth>
The lack of STORE-VALUE, at least in SBCL.
lisp123 has joined #commonlisp
srhm has quit [Read error: Connection reset by peer]
srhm has joined #commonlisp
rain3 has quit [Ping timeout: 268 seconds]
tfeb has joined #commonlisp
Lycurgus has quit [Quit: Exeunt]
cosimone has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 27.1]
tfeb has quit [Remote host closed the connection]
srhm has quit [Read error: Connection reset by peer]
srhm has joined #commonlisp
Everything has quit [Quit: leaving]
gioyik has joined #commonlisp
CptKirk has joined #commonlisp
lisp123 has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 265 seconds]
cosimone has quit [Ping timeout: 252 seconds]
<pjb>
pve: (the double-float x) (or (declare (type double-float x))) is actually more like: { int x; *(double*)&x=3.14d0; }
<pjb>
pve: I would definitely not do that!
<pjb>
pve: (coerce x 'double-float) is more like {int x=314; (double)x; } this can be acceptable.
<pjb>
aeth: (the double-float x) has nothing in common with (check-type x double-float).
<lotuseater>
pjb: one of those dirty c tricks :)
tyson2 has joined #commonlisp
lisp123 has joined #commonlisp
recordgroovy has joined #commonlisp
lisp123 has quit [Ping timeout: 260 seconds]
kevingal has joined #commonlisp
Oladon has quit [Quit: Leaving.]
Lord_of_Life has quit [Ping timeout: 265 seconds]
Lord_of_Life has joined #commonlisp
akoana has joined #commonlisp
luna-is-here has joined #commonlisp
shka has quit [Ping timeout: 252 seconds]
luna-is-here has quit [Quit: luna-is-here]
luna-is-here has joined #commonlisp
luna-is-here has quit [Client Quit]
anddam has quit [Quit: WeeChat 3.2]
cjb has joined #commonlisp
selwyn has quit [Read error: Connection reset by peer]
anddam has joined #commonlisp
kakuhen has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
selwyn has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
srhm has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
srhm has joined #commonlisp
selwyn has quit [Remote host closed the connection]
selwyn has joined #commonlisp
kevingal has quit [Remote host closed the connection]
selwyn has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
frgo has quit [Remote host closed the connection]
frgo has joined #commonlisp
Jach has quit [Remote host closed the connection]
gioyik has quit [Ping timeout: 276 seconds]
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
pve has quit [Ping timeout: 240 seconds]
rgherdt has quit [Remote host closed the connection]