<green_>
Yes, that's what I'm doing now. What I don't like about this approach is that (and I could be wrong) it will stop working when sbcl is updated. You need to force a rebuild of the core file.
<green_>
I'd rather just bind the core to the sbcl executable, and not worry about sbcl updating. Or, maybe try building with ecl. I actually have an ecl build of ocicl working, but ctrl-c doesn't appear to work. And it's slower.
holycow has quit [Quit: Lost terminal]
<gilberth>
Huh?
<jfloren_>
Anyone here have experience with caveman2 and mito? I'm playing around with a simple thing where hitting index.html should pull a list of radio stations from the database and display them. Thus I have (defroute "/" () (render #P"index.html" (list :stations (radio.model:list-stations)))), where list-stations is a function that returns a list of objects from the db, as defined with mito:deftable
<gilberth>
When I got this right you tried to ship a very specific binary of SBCL with a core file attached but that doesn't work because it's a kludge anyway and gets stripped. What stops you from shipping that very specific binary and the core file?
<jfloren_>
if I go into my radio.web package at the slime repl and do that render call, all is well
<jfloren_>
if I try to hit / from my browser, I get dumped into the debugger with "DB Error: no such table: station"
<jfloren_>
(must step away for a second but will check back to see if anyone has any ideas)
<yitzi>
green_: Yes that can happen. Maybe homebrew has an option to rebuild your formula on a new version?
<yitzi>
green_: Maxima's formula doesn't appear to do anything special
<yitzi>
They are using the revision field, which would be a way manually enforcing rebuilds
<green_>
I think this is a homebrew-for-linux-specific problem. Maybe Maxima predates this.
<green_>
Yes, the revision field is how you manually trigger rebuilds.
<yitzi>
Who is actually using homebrew-for-linux?
<green_>
I don't know, but it has to work in order for anything to get into homebrew, as far as I know
<green_>
the CI system enforces it
<yitzi>
Meh. The homebrew people are very odd, in my experience. Homebrew for Linux rather silly.
yitzi has quit [Remote host closed the connection]
lucasta has quit [Quit: Leaving]
bilegeek has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
<green_>
One thing I just learned is that you can make fully static binaries with sbcl and your application today. I thought that required out-of-tree patches.
v88m has quit [Read error: Connection reset by peer]
josrr has quit [Remote host closed the connection]
Catie has joined #commonlisp
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
ski has joined #commonlisp
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
Catie has quit [Ping timeout: 264 seconds]
Catie has joined #commonlisp
Catie` has joined #commonlisp
Catie has quit [Ping timeout: 268 seconds]
PuercoPop has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
PuercoPop has left #commonlisp [Killed buffer]
v88m has quit [Read error: Connection reset by peer]
PuercoPop has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
eddof13 has joined #commonlisp
ronald has quit [Ping timeout: 260 seconds]
eddof13 has quit [Ping timeout: 240 seconds]
contrapunctus has left #commonlisp [#commonlisp]
wacki has joined #commonlisp
deadmarshal_ has quit [Remote host closed the connection]
PuercoPop has quit [Ping timeout: 260 seconds]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
istewart has quit [Quit: Konversation terminated!]
Catie` has quit [Ping timeout: 255 seconds]
deadmarshal_ has joined #commonlisp
Catie has joined #commonlisp
ronald has joined #commonlisp
amb007 has joined #commonlisp
contrapunctus has joined #commonlisp
amb007 has quit [Ping timeout: 255 seconds]
King_julian has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
chomwitt has joined #commonlisp
bilegeek has quit [Quit: Leaving]
pve has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
shka has joined #commonlisp
amb007 has joined #commonlisp
<jackdaniel>
Condition of type: SIMPLE-ERROR
<jackdaniel>
Congratulations for trying ASDF on an operating system
<jackdaniel>
that is neither Unix, nor Windows, nor Genera, nor even old MacOS.
<jackdaniel>
Now you port it.
v88m has joined #commonlisp
holycow has joined #commonlisp
_cymew_ has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
johnjaye has quit [Ping timeout: 256 seconds]
johnjaye has joined #commonlisp
chomwitt has quit [Ping timeout: 260 seconds]
dom2 has quit [Ping timeout: 272 seconds]
dom2 has joined #commonlisp
Pixel_Outlaw has quit [Remote host closed the connection]
amb007 has quit [Ping timeout: 240 seconds]
bitspook has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
puchacz has quit [Quit: Client closed]
bitspook has quit [Remote host closed the connection]
bitspook has joined #commonlisp
bitspook has quit [Remote host closed the connection]
bitspook has joined #commonlisp
bitspook has quit [Remote host closed the connection]
bitspook has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
chomwitt has joined #commonlisp
zetef has joined #commonlisp
nybble has quit [Quit: WeeChat 4.2.2]
puchacz has joined #commonlisp
msavoritias has joined #commonlisp
King_julian has quit [Ping timeout: 260 seconds]
mivanchev has joined #commonlisp
<mivanchev>
Hey, I need some support from a CL guru. I run StumpWM compiled with sb-ext:save-image-and-die. I runs normally however when I try to load a library from a known ASDF location it says "system not found" until I recompile StumpWM and which point ASDF doesn't complain
<mivanchev>
So I reckon ASDF is caching whatever it was seeing before the image is saved and then refuses to check directories again when the image is loaded. Is there a way to correct this behavior?
<mivanchev>
or at least, what is it due to?
varjag has joined #commonlisp
pfdietz has quit [Quit: Client closed]
v88m has joined #commonlisp
bitspook has quit [Ping timeout: 250 seconds]
jamesmartinez has quit [Quit: Connection closed for inactivity]
mivanchev has quit [Remote host closed the connection]
mivanchev has joined #commonlisp
mivanchev has quit [Remote host closed the connection]
bitspook has joined #commonlisp
triffid has quit [Read error: Connection reset by peer]
chiselfuse has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
zetef has joined #commonlisp
v88m has joined #commonlisp
zetef has quit [Ping timeout: 264 seconds]
attila_lendvai has quit [Ping timeout: 255 seconds]
tok has joined #commonlisp
X-Scale has quit [Quit: Client closed]
zetef has joined #commonlisp
<green_>
fitzsim: there's no documentation, but this is how I did it. (1) build sbcl from source, (2) ./run-sbcl --no-userinit, load your code, and (sb-ext:save-lisp-and-die "mycore.core"). (3) cd src/runtime && ../../run-sbcl.sh --script ../../tools-for-build/elftool.lisp split ../../mycore.core shrinkwrap-sbcl.s (4) CC="gcc -static" make shrinkwrap-sbcl (5) shrinkwrap-sbcl is a fully static sbcl with your code.
<green_>
$ ldd ./shrinkwrap-sbcl || ./shrinkwrap-sbcl --eval "(ocicl:main)" version
deadmarshal_ has quit [Remote host closed the connection]
v88m has quit [Ping timeout: 264 seconds]
tok has quit [Remote host closed the connection]
green_ has quit [Ping timeout: 268 seconds]
aciep has joined #commonlisp
zetef has quit [Ping timeout: 268 seconds]
waleee has joined #commonlisp
dino_tutter has joined #commonlisp
pfdietz has joined #commonlisp
green_ has joined #commonlisp
dnhester26 has joined #commonlisp
aciep has quit [Remote host closed the connection]
ocra8 has quit [Ping timeout: 260 seconds]
<green_>
fitzsim: seems like it should be easy to have the sbcl srpm produce tooling to build static binaries. Just dump the .o files somewhere under /var/lib64, and package up elftool.lisp and whatever else is needed to front-end the build process.
<Josh_2>
dbotton: is it possible to redirect a user to a new page with clog?
<dbotton>
of course
<dbotton>
look at clog-location.lisp
<dbotton>
there are options to redirect, change your own URLs etc
<Josh_2>
Thanks
<dbotton>
url-replace and url-assing
<dbotton>
in particular depending on how you want to affect browser history
yitzi has quit [Ping timeout: 268 seconds]
yitzi has joined #commonlisp
<Josh_2>
I do want the history
<Josh_2>
#'url-assign I assume then
<dbotton>
will work but if just a redirect with no purpose a backbone "fiasco" happens
<dbotton>
so I assume you want equiv of a link and they yes url-assign
<dbotton>
or use the function url
<dbotton>
ie just setf the url
lucasta has joined #commonlisp
<dbotton>
there are two ways to skin the cat in JS so also in clog not sure why but they are there
icebarf has quit [Ping timeout: 255 seconds]
Inline has joined #commonlisp
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
wacki has joined #commonlisp
zetef has joined #commonlisp
yitzi has quit [Read error: Connection reset by peer]
yitzi_ has joined #commonlisp
yitzi_ has quit [Remote host closed the connection]
yitzi has joined #commonlisp
alcor has quit [Remote host closed the connection]
alcor has joined #commonlisp
<skin>
jackdaniel: challenge accepted
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 264 seconds]
jjnkn has joined #commonlisp
deadmarshal_ has joined #commonlisp
char has joined #commonlisp
<alcor>
I'm trying to apply some of https://www.norvig.com/design-patterns/ for extracting cross-cutting concerns in CL. Let's say you want to instrument a function FUNC with some logging logic. How would a CL programmer go about that?
<ixelp>
Design Patterns in Dynamic Languages
<alcor>
In Java you'd something like AspectJ for that, to add an advice to the function/method.