phoe changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <http://cliki.net/> <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.4.16, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
rumbler31 has quit [Remote host closed the connection]
themsay has quit [Remote host closed the connection]
themsay has joined #lisp
wxie has quit [Ping timeout: 250 seconds]
torbo has joined #lisp
longshi has quit [Ping timeout: 250 seconds]
tsandstr has joined #lisp
<tsandstr> Hey guys, anybody working with CL under Gentoo? I'm considering hopping over to Gentoo, and I'm kind of curious about the CL packages in the repos. Would it be best practice to use those official packages? Or use quicklisp? And how do they interact?
<Josh_2> yes
<tsandstr> Josh_2: yes what?
<Josh_2> I'm on sbcl 1.4.9 using Gentoo
<tsandstr> do you use lisp libraries installed through portage? Or through quicklisp?
<Josh_2> quicklisp
<Josh_2> Just like u would with any other distro :O
<Josh_2> There is an overlay that gives a later version of SBCL
<Josh_2> Or you can just use amd64~ and get 1.5.0
<phoe> quicklisp and only quicklisp
<phoe> I don't use anything system-supplied
<tsandstr> i'm a bit of a noob with lisp, but is there any particular reason why youy avoid the portage version?
<phoe> yes, quicklisp is the de-facto standard for distributing Lisp libraries
<tsandstr> okay
<Josh_2> Somethings like Stumpwm are in portage so you can emerge that and it will pull in libraries to compile it
<tsandstr> got it
<tsandstr> i'm planning on installing stumpwm too. So for stump, go ahead and use portage, but for libraries, use quicklisp?
<Josh_2> each to their own I suppose
<tsandstr> will it be an issue to have the same libraries installed through both portage and quicklisp?
<phoe> I actually don't know, they might conflict with each other
<Josh_2> They won't conflict
<tsandstr> how so?
<phoe> ASDF might get confused when trying to load them
Essadon has quit [Quit: Qutting]
<tsandstr> i guess quicklisp will pull deps from the quicklisp local repo
<Josh_2> Its all handled by Portage
<phoe> Josh_2: oooh
<phoe> well then, good
<tsandstr> oh cool
<tsandstr> okay
<nirved> in general portage is lagging
<Josh_2> wat
<phoe> the versions are lagging behind, yes
<Josh_2> I right
<Josh_2> yeh
<phoe> that is the issue with all unix package managers
<Josh_2> but there is Amd64~
<phoe> whereas quicklisp stays fresh
<phoe> and ultralisp stays bleeding-edge
<tsandstr> got it, cool
<pjb> tsandstr: I used to use gentoo, but I still compiled my own software, which I use everyday (lisp implementations, emacs, rm, etc).
<pjb> I don't trust some poor chap doing remote administration 9-5 at a distribution company.
<nirved> I tend to put specific versions in local overlay when needed
Lord_of_Life_ has joined #lisp
<tsandstr> hmmm
<pjb> nirved: and yes, there's also the auto-update problem.
<tsandstr> so, in general, do you think it would make sense to install Lisp applications (eg StumpWM) through portage, while installing libraries that I plan to use through quicklisp?
<tsandstr> Or is that a bad approach
<tsandstr> Is there a "canonical" approach?
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<phoe> a Canonical approach would be to use Ubuntu
* phoe mic drop, goes to sleep
<tsandstr> BOOOOOOOOO
<Josh_2> oof
<Josh_2> phoe: I think you should leave for that one xD
* gilberth picks up the mic
<grewal> How do you distribute scripts when you use quicklisp?
<gilberth> DEBIAN RULEZ
JetJej has quit [Quit: [Quit]]
<grewal> nvm, I think I just overcame my main problem
<rdap> debian used to rule
<rdap> ubuntu (minimal) rules harder these days, i'm afraid
notzmv has joined #lisp
<Josh_2> Gentoo rules
grewal has quit [Quit: leaving]
ltriant has quit [Ping timeout: 244 seconds]
<rdap> it really comes down to this: zfs rules
ym555 has quit [Quit: leaving...]
<rdap> therefore ubuntu rules harder than debian
ltriant has joined #lisp
<rdap> until the day comes that btrfs rules harder than zfs, if it comes
<Josh_2> Murderfs for life
<p_l> rdap: doubtful such time would ever come
<rdap> yeah, i don't have high hopes myself
ltriant has quit [Ping timeout: 255 seconds]
* rdap wonders if Murderfs is pronounced "murderface"
<ebrasca> I have find lisp-critic , Does it give good advises?
kini has quit [Quit: No Ping reply in 180 seconds.]
dale has quit [Quit: dale]
ltriant has joined #lisp
<Xach>
kini has joined #lisp
<ebrasca> Xach: I see empty line.
<rdap> i do too
kajo has quit [Remote host closed the connection]
ltriant has quit [Ping timeout: 246 seconds]
kajo has joined #lisp
<Xach> Yes. A mistake on my end. Sorry.
ltriant has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
karlosz has quit [Quit: karlosz]
dale has joined #lisp
esrse has joined #lisp
wigust- has joined #lisp
wigust has quit [Ping timeout: 246 seconds]
akoana has joined #lisp
akoana has quit [Quit: Leaving]
akoana has joined #lisp
akoana has left #lisp [#lisp]
Bike has quit [Quit: Lost terminal]
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
<rdap> a-ha...
<rdap> "The Sieve of Eratosthenes stops when the square of the number we are testing is greater than the last number on the grid."
<pjb> ebrasca: I don't like lisp-critic too much. I find some advises ill-advisen, some outdated, very few useful. Read it, and use your own ruleset!
Arcaelyx has joined #lisp
<rdap> So I only need to generate a list of primes up to the square root of the number that was input
<rdap> so, generate a list of integers up to the square root..
<rdap> then copy to a new list every 2nd from the 2nd, every third from the third, every 5th from the 5th, and so on
nanoz has joined #lisp
<rdap> then divide the input number by everythin in the list and eliminate everything that doesn't divide by x into an integer
aindilis has quit [Ping timeout: 272 seconds]
<rdap> then the list should contain nothing but prime factors
<pjb> rdap: yes. But you can avoid generating list of numbers. Using a bit-vector takes less space.
<pjb> And you can make a bit-vector of only the odd numbers, halving the needed bits.
<rdap> ah yes, because anything even is a composite of 2
<pjb> or you can just use com.informatimago.common-lisp.arithmetic.primes:compute-primes-to
<rdap> i'm not sure i have that, and i feel like that would be cheating
<pjb> then compare when you're done with yours.
sjl_ has quit [Ping timeout: 250 seconds]
vlatkoB has joined #lisp
<rdap> i will :)
rumbler31 has joined #lisp
Oladon has joined #lisp
dddddd has quit [Remote host closed the connection]
<aeth> You have to use a bit vector
<aeth> You quickly run out of memory with this stuff unless you do
<aeth> (I guess you could use a byte vector and manually work with bits yourself if you don't trust bit vectors.)
<aeth> I should clean up and publish my sieve at some point. It is probably the fastest in CL
caltelt_ has joined #lisp
<beach> Good morning everyone!
vibs29 has quit [Ping timeout: 250 seconds]
<gilberth> beach: I try to understand my old "regular" expression stuff.
<ebrasca> pjb: I have found it help changing let* to let and similars.
<beach> gilberth: Oh, real work! Great!
vibs29 has joined #lisp
<gilberth> beach: Though, I will call it a day^Wnight now.
aindilis has joined #lisp
<gilberth> beach: The thing is: The code base works. I have it in "production" use.
<gilberth> beach: It even is more correct than _any_ C library for POSIX regular expression that I could find.
<beach> That sounds like good news.
cjb has joined #lisp
<gilberth> And they don't even compile the regular expression. As in: compiling it to native code eventually. And flex^Wbison cannot do submatch addressing.
<beach> So what appears to be the problem?
* rdap ran out of memory :(
ebrasca has quit [Remote host closed the connection]
nullheroes has quit [Quit: WeeChat 2.3]
nullheroes has joined #lisp
libertyprime has quit [Ping timeout: 250 seconds]
Guest72158 has joined #lisp
<Guest72158> aye
Oladon has quit [Quit: Leaving.]
rumbler31 has quit [Remote host closed the connection]
nanoz has quit [Quit: Leaving]
vlatkoB has quit [Remote host closed the connection]
rozenglass has joined #lisp
torbo has quit [Remote host closed the connection]
dale has quit [Quit: dale]
Guest72158 has quit [Ping timeout: 245 seconds]
caltelt_ has quit [Ping timeout: 250 seconds]
nalkri has joined #lisp
dale has joined #lisp
elderK has joined #lisp
cjb has quit [Ping timeout: 264 seconds]
libertyprime has joined #lisp
Inline has quit [Quit: Leaving]
rozenglass has quit [Ping timeout: 250 seconds]
sauvin has joined #lisp
pankajgodbole has joined #lisp
ltriant has quit [Quit: leaving]
kdas_ has joined #lisp
kushal has quit [Ping timeout: 256 seconds]
nowhere_man has joined #lisp
iridioid has joined #lisp
smasta has quit [Ping timeout: 250 seconds]
zotan has quit [Ping timeout: 240 seconds]
jprajzne has joined #lisp
zotan has joined #lisp
pankajgodbole has quit [Remote host closed the connection]
libertyprime has quit [Ping timeout: 272 seconds]
iridioid has quit [Quit: WeeChat 2.4]
xantoz has joined #lisp
corvidzz_ has joined #lisp
varjag has joined #lisp
JohnMS_WORK has joined #lisp
nowhere_man has quit [Ping timeout: 258 seconds]
libertyprime has joined #lisp
gxt has quit [Ping timeout: 268 seconds]
corvidzz_ has quit [Quit: Lost terminal]
Younder has quit [Ping timeout: 245 seconds]
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
esrse has quit [Read error: Connection reset by peer]
<splittist> morning
esrse has joined #lisp
JohnMS_WORK has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<beach> Hello splittist.
igemnace has joined #lisp
scymtym has joined #lisp
kdas_ is now known as kushal
klltkr has quit [Remote host closed the connection]
klltkr has joined #lisp
<rdap> i'm too tired for any more lisping today, night o/
longshi has joined #lisp
schweers has joined #lisp
fortitude has quit [Ping timeout: 252 seconds]
moldybits has quit [Quit: WeeChat 2.4]
moldybits has joined #lisp
orivej has quit [Ping timeout: 250 seconds]
hhdave has joined #lisp
orivej has joined #lisp
varjag has joined #lisp
scymtym has quit [Remote host closed the connection]
scymtym has joined #lisp
<phoe> Morniiiing
<beach> Hello phoe.
<phoe> Morning beach
<beach> Were you able to get in touch with asdf_asdf_asdf or whatever the nick was?
<phoe> Yes
<phoe> He ended up on #lisp-pl
<beach> Excellent!
beach has quit [Disconnected by services]
beach has joined #lisp
angavrilov has joined #lisp
longshi has quit [Ping timeout: 250 seconds]
akssri has joined #lisp
nowhere_man has joined #lisp
nowhere_man has quit [Ping timeout: 250 seconds]
undiscovered has joined #lisp
themsay has quit [Ping timeout: 250 seconds]
heisig has joined #lisp
nalkri is now known as KoneJumala
RedNifre has joined #lisp
RedNifre has left #lisp [#lisp]
KoneJumala is now known as nalkri
themsay has joined #lisp
esrse has quit [Ping timeout: 250 seconds]
akssri has quit [Ping timeout: 268 seconds]
notzmv has quit [Ping timeout: 255 seconds]
m00natic has joined #lisp
paul0 has joined #lisp
flazh has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 272 seconds]
Arcaelyx has quit [Ping timeout: 250 seconds]
libertyprime has quit [Ping timeout: 244 seconds]
dddddd has joined #lisp
nalkri has quit [Ping timeout: 245 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 250 seconds]
Lord_of_Life_ is now known as Lord_of_Life
flazh has joined #lisp
vlatkoB has joined #lisp
themsay has quit [Read error: Connection reset by peer]
Bike has joined #lisp
themsay has joined #lisp
grewal has joined #lisp
amerlyq has joined #lisp
nalkri has joined #lisp
themsay has quit [Read error: Connection reset by peer]
themsay has joined #lisp
wxie has joined #lisp
CuriousCain has joined #lisp
warweasle has joined #lisp
nalkri has quit [Read error: Connection reset by peer]
nalkri has joined #lisp
longshi has joined #lisp
wxie has quit [Ping timeout: 250 seconds]
jmercouris has joined #lisp
<jmercouris> I'm having trouble with Envy on FreeBSD
<jmercouris> it works fine on macOS and Linux
<jmercouris> but it doesn't seem to pick up the environment variables on FreeBSD
<jmercouris> anyone else have this experience?
<jmercouris> however if I set the environment variable I want to read via osicat, it seems to work
<jmercouris> looking at the short source for envy.lisp
<jmercouris> it seems that asdf::getenv is at fault
<jmercouris> probably
<jmercouris> ok, I have confirmed that asdf::getenv is the problem, it returns nil
<jmercouris> even (uiop:getenv "PATH") returns nil
<jmercouris> actually wait, PATH works, but my variable set in my shell does not work
<shka__> asdf afaik redirects system queries to uiop
<jmercouris> so apparently something is going on with my login shell
nalkri has quit [Read error: Connection reset by peer]
<jmercouris> because it does pick up PATH, but not APP_ENV
<shka__> show the script perhaps?
<flip214> jmercouris: did you export the variable, so that child processes can see it?
<flip214> PATH is exported by default.
<flip214> # export APP_ENV=/dev/null # or whatever
<jmercouris> I did in my .cshrc set APP_ENV = "development"
<jmercouris> maybe if I also put it in my .profile? or do I have to export it as you say?
<lieven> try setenv instead of set
<jmercouris> ok, saving and resourcing
<jmercouris> re-sourcing
<jmercouris> ah setenv was key
<jmercouris> thank you
<jmercouris> how did you know setenv would do it instead of set?
<lieven> memories of csh on Sunos 4 from 25 years ago :)
lucasb has joined #lisp
<lieven> are the BSDs still using csh as default?
<jmercouris> yes
<jmercouris> though adduser prompts you to set whatever you want
<jmercouris> however, the default account/root account you start with is using csh
<jmercouris> I use fish on my main machine, and bash before that, so I didn't know much about csh
<jmercouris> I mean, I still don't know much about csh
jmercouris has quit [Remote host closed the connection]
pfdietz has quit [Ping timeout: 256 seconds]
sjl_ has joined #lisp
DrPete has quit [Ping timeout: 268 seconds]
DrPete has joined #lisp
sjl_ has quit [Client Quit]
sjl_ has joined #lisp
nowhere_man has joined #lisp
fortitude has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
aindilis has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
aindilis has joined #lisp
DrPete has quit [Ping timeout: 245 seconds]
DrPete has joined #lisp
Arcaelyx has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
aindilis has joined #lisp
nowhere_man has quit [Ping timeout: 250 seconds]
aindilis has quit [Ping timeout: 245 seconds]
Inline has joined #lisp
nowhere_man has joined #lisp
q9929t has joined #lisp
q9929t has quit [Client Quit]
gareppa has joined #lisp
gareppa has quit [Remote host closed the connection]
elderK has quit [Quit: Connection closed for inactivity]
rippa has joined #lisp
DrPete has quit [Ping timeout: 244 seconds]
angavrilov_ has joined #lisp
DrPete has joined #lisp
angavrilov has quit [Ping timeout: 246 seconds]
jprajzne has quit [Quit: Leaving.]
aindilis has joined #lisp
FreeBirdLjj has joined #lisp
heisig has quit [Quit: Leaving]
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
nirved is now known as Guest15092
Guest15092 has quit [Killed (leguin.freenode.net (Nickname regained by services))]
nirved has joined #lisp
themsay has quit [Ping timeout: 245 seconds]
themsay has joined #lisp
ggole has joined #lisp
verisimilitude has quit [Remote host closed the connection]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #lisp
Ukari has quit [Ping timeout: 250 seconds]
CuriousCain has quit [Ping timeout: 250 seconds]
verisimilitude has joined #lisp
edgar-rft has quit [Quit: Leaving]
Ukari has joined #lisp
Khisanth has quit [Ping timeout: 244 seconds]
shka_ has joined #lisp
Khisanth has joined #lisp
<pjb> jmercouris: don't use csh.
cage_ has joined #lisp
<jasom> minion: memo for jmercouris: don't use csh
<minion> Remembered. I'll tell jmercouris when he/she/it next speaks.
longshi has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Ping timeout: 255 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
DrPete has quit [Ping timeout: 255 seconds]
DrPete has joined #lisp
schweers has quit [Ping timeout: 250 seconds]
hhdave has quit [Ping timeout: 246 seconds]
Essadon has joined #lisp
<grewal> is there a recommended way to distribute lisp scripts?
<grewal> I know I can make an image, but I'd rather just share the source code. There seems to be no clean way to handle dependencies
lumm has joined #lisp
<_death> I guess you could use https://www.quicklisp.org/beta/bundles.html .. in some of my "scripts" I have a quickload form with :silent t , but I also use a custom image that has most of the dependencies already loaded
<dlowe> grewal: there's some projects that deal with this. cl-launch and roswell come to mind.
scymtym has quit [Ping timeout: 268 seconds]
terpri has quit [Remote host closed the connection]
m00natic has quit [Remote host closed the connection]
ggole has quit [Quit: Leaving]
__jrjsmrtn__ has joined #lisp
sauvin has quit [Remote host closed the connection]
<phoe> I have a list of triples in form (X Y Z). I am inside a loop that iterates over two variables. How can I find the value of Z if there is a triple with a matching X and Y in the list?
<Bike> (third (find-if (lambda (triple) (and (eql (first triple) x) (eql (second triple) y))) list-of-triples))?
<phoe> Bike: I kind of wondered if there would be a more elegant way for that
<phoe> but I suspect I'd end up with a pattern matching library that way
<phoe> well, shit
<phoe> I can't effectively FIND a NIL
<phoe> and some of my values there are NILs
<Bike> member?
<phoe> oh wait a second, FIND-IF will return the whole triple
<phoe> is that right?
<Bike> i don't understand, though, if there's triples
<Bike> yes, it returns the element that matched
<phoe> Oh - yes, I got confused for a moment
<phoe> in that case it'll work - thanks
<Bike> if by "list of triples" you meant "list of triples and also nils" it should be fine
<phoe> nope, it's a list of triples.
<phoe> It's Z that might be nil.
<Bike> oh. it's completely insensitive to that of course.
<Bike> just gets the third element of the triple without caring what it is
<_death> could also (find (list x y) list-of-triples :test #'starts-with-subseq)
<dlowe> note that if you need to FIND/FIND-IF a NIL in a list, you can use MEMBER/MEMBER-IF
<dlowe> (find (list x y) list-of-triples :test #'equal :key (lambda (x) (list (first x) (second x))))
<dlowe> if you want to blow memory like there's no limit
varjag has joined #lisp
cage_ has quit [Remote host closed the connection]
rozenglass has joined #lisp
lumm has quit [Remote host closed the connection]
lumm has joined #lisp
<verisimilitude> You could concatenate the files to be LOADed all at once, grewal.
libertyprime has joined #lisp
<pjb> grewal: IMO, if it has dependencies, it's not a script anymore.
<grewal> That's a similar idea to quicklisp bundles.
<pjb> grewal: imagine a shell script, but it uses non-standard applications and shell libraries!
<pjb> grewal: how would you distribute it?
<pjb> grewal: definitely. You make a single-file executable. Or you provide a tarball to install in /opt/apps/$yourscript/ with a script to install in /usr/local/bin/$yourscript
<pjb> or something like that.
<pjb> For CL, it's easier to save an executable lisp image.
<grewal> python solves this by having "batteries included".
<dtw> (ql:quickload "batteries") (sb-ext:save-lisp-and-die ...)
<pjb> grewal: there's cl-launch, but it doesn't work like I want, so in the end, now I build all my CL scripts (that used to hav #!/usr/local/bin/clisp …), in a single executable image called commands, and a bunch of symlinks into it.
sz0 has quit [Quit: Connection closed for inactivity]
<grewal> There's just something I like about distributing source code instead of binaries.
<pjb> grewal: oh yeah, the big problem with cl-launch, is that it compiles the lisp script. This means that you cannot write scripts that modify the environment for the rest of the script. This is something that is routinely done in scripts (bash, ruby, python, perl, lisp, whatever).
<pjb> Once cl-launch compiles, we're not in the script world anymore, so you can as well compile and save an executable image.
<grewal> Perhaps have the install script call (load file) (save-lisp-and-die)
<pjb> grewal: but if you use quicklisp, it's difficult to manage.
<grewal> I guess the biggest hangup is (potentially) having multiple copies of the same libraries
<pjb> your scripts can be used by any users on any system. You cannot override the user's ~/quicklisp, so you have to setup a quicklisp elsewhere. (/usr/local/share/myscript/quicklisp for example). This is not a script, when you have external file dependencies.
<pjb> grewal: not copies, versions!
<dtw> grewal: You can distribute code, of course. Write a Makefile that installs Quicklisp and eventually compiles executable. I do that: https://github.com/tlikonen/tagdb
<pjb> grewal: if the user can make a (quick-update) and break your script because it fetches a new version of a library, this is BAD!
<grewal> pjb: I meant copies. If two different lisp images have cl-ppcre baked in, then you have 2 copies of the same library on your system
<grewal> pjb: Instead of just 1 system-wide library
vlatkoB has quit [Remote host closed the connection]
<grewal> Obviously, if you need to pin to a particular version, then you have no choice. But most apis are stable
<jasom> grewal: I would suggest just using ASDF and the consumer can quickload things if needed
<pjb> grewal: again, it's not copies, it's two versions that happend to be the same version, but that at any time, can change in one, and not in the other.
gxt has joined #lisp
<pjb> grewal: or you must be prepared to recompile all your lisp software as soon as you do a (quick-update) (every month!)
libertyprime has quit [Ping timeout: 255 seconds]
<jasom> But I have also written build scripts as dtw suggests.
hiroaki has joined #lisp
<pjb> Oops. Thanks.
<pjb> Thanks to copy-and-paste, it's innoccuous. But thanks anyways.
nowhere_man has joined #lisp
shka_ has quit [Ping timeout: 246 seconds]
libertyprime has joined #lisp
paul0 has quit [Ping timeout: 250 seconds]
Arcaelyx has quit [Ping timeout: 250 seconds]
Arcaelyx has joined #lisp
scymtym has joined #lisp
Josh_2 has quit [Read error: Connection reset by peer]
Xizor has joined #lisp
rumbler31 has joined #lisp
angavrilov_ has quit [Remote host closed the connection]
Aruseus has joined #lisp
<dale> I'm trying to do something like (let ((n 42)) (loop for n = n then n+1 until (>= n 50))) but n is nil on the first trip through the loop. Is there a good (or "remotely sane, relative to loop") way to have loop initialize its n from the surrounding n binding?
<verisimilitude> Why don't you use LOOP FOR N FROM N TO 50 instead?
<makomo> dale: i've had the same issue many times but haven't found a satisfying solution
<verisimilitude> If you want an unchanged binding, use WITH instead, dale.
<verisimilitude> That's what it's for.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<dale> verisimilitude: Sorry, my simplified example was obviously oversimplified. The actual code is a bit more complicated: http://ix.io/1Ezd/lisp
<dale> verisimilitude: If I use WITH, how do I reassign n on each iteration after the first? Just slam in a DO (SETQ ...)?
<verisimilitude> Yes.
<makomo> dale: maybe just using another name for N would be the best, i don't know
<makomo> it's lame, but yeah
<dale> makomo: Yeah, I might do that.
<verisimilitude> So, N here is an outside variable?
<dale> verisimilitude: Yes.
<verisimilitude> I agree that a simple renaming is likely easiest, but I'm wondering why you need N = N to start with.
<verisimilitude> Well, just rename it then for the easiest way to do this, dale.
<makomo> N = N seems like a valid use-case to me
hiroaki has quit [Ping timeout: 255 seconds]
<dale> verisimilitude: I could rewrite it with a single FOR clause a la: for marker = (nav-stack-go-newer nav-stack-global-stack n) then (nav-stack-go-newer nav-stack-global-stack direction)
<dale> verisimilitude: That's just a bit more verbose.
<makomo> you'd like to start off with the outer value but then do something else on all the other iterations
<makomo> dale: i've had a construct like that as well in some code, but the duplication annoys me
<dale> I was surprised that "FOR n = n" seems to be like (let (n) (setq n n) ...) rather than (let ((n n)) ...).
<dale> Well, I'm mostly thankful not to have been missing something obvious about loop. Thanks folks.
<verisimilitude> This is odd, dale.
<verisimilitude> I checked to make certain and FOR N = N should work like a LET and so work.
<verisimilitude> Are you certain there's nothing odd about the outer expression?
orivej has joined #lisp
<verisimilitude> See this:
<verisimilitude> That's the wrong page; disregard that.
<dale> Let me put together a complete example that generates an error.
<verisimilitude> Well, nevermind.
<verisimilitude> The FOR = clause does set to NIL, yes. You should simply change the symbol you're using.
<dale> I just may. Thanks.
<verisimilitude> I swear this is one of those pitfalls of LOOP that I had in mind at one point and had simply forgotten by now.
<verisimilitude> So, what are you programming, dale?
<dale> verisimilitude: See, I was trying to very carefully avoid disclosing that I'm actually using cl-loop in Elisp.
<dale> verisimilitude: Writing a little code to help me navigating back and forth through source files in Emacs.
<verisimilitude> Alright.
ltriant has joined #lisp
<dale> But before I asked here I did test what I believed to be equivalent code in SBCL first. :)
kajo has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
comborico1611 has joined #lisp
kajo has joined #lisp
p9fn has joined #lisp
p9fn has quit [Quit: .]
amerlyq has quit [Quit: amerlyq]
sjl_ has quit [Ping timeout: 246 seconds]
<comborico1611> I am trying to STEP through a program. But the inner workings of the REPL continue to be included in STEP output. The last thing I've done is called STEP from within the compiled file. I've tried with both SBCL and Allegro. Any ideas?
voidlily_ has quit [Remote host closed the connection]
<moldybits> btw, maybe you could make a minimal testcase showing what you get vs what you'd like
undiscovered has quit [Quit: WeeChat 2.4]
voidlily has joined #lisp
<comborico1611> moldybits: Good idea.
edgar-rft has joined #lisp
<pjb> comborico1611: or you may try cl-stepper: https://groups.google.com/d/msg/comp.lang.lisp/nj3jFxcJYM0/QbzGkAbyAtMJ
nowhere_man has joined #lisp
Bike has quit []
<comborico1611> moldybits: https://pastebin.com/hVzUtJs5
<comborico1611> pjb: I'll check it out. Thanks
DrPete_ has joined #lisp
DrPete has quit [Ping timeout: 245 seconds]
<moldybits> pjb: i get: System "com.informatimago.common-lisp.lisp.stepper" not found
<pjb> moldybits: you'll have to git clone it yourself.
<pjb> Soon I'm put it in ultralisp.
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
comborico1611 has quit [Quit: Konnection terminated!]
ltriant has quit [Ping timeout: 250 seconds]
mindthelion has quit [Ping timeout: 246 seconds]
selwyn has joined #lisp
slyrus_ has joined #lisp
ltriant has joined #lisp
terpri has joined #lisp
slyrus__ has quit [Ping timeout: 258 seconds]
Bike has joined #lisp
q-u-a-n has quit [Remote host closed the connection]
paul0 has joined #lisp
rumbler31 has quit [Remote host closed the connection]
makomo has quit [Ping timeout: 268 seconds]
<phoe> dim: Are you aware of any Docker images with postgresql and sbcl preinstalled?
<phoe> I seem to need one to set up continuous integration for my project.
wxie has joined #lisp
lumm has quit [Quit: lumm]
wxie has quit [Ping timeout: 250 seconds]
<phoe> Oh wait - I can use postgresql in a separate image. That solves my problem.
Essadon has quit [Read error: No route to host]
tharugrim has joined #lisp
jack_rabbit_ has quit [Quit: Leaving]
torbo has joined #lisp
jack_rabbit_ has joined #lisp
karlosz has joined #lisp
jack_rabbit_ is now known as jack_rabbit
Oladon has joined #lisp