jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | offtopic --> #lispcafe
carkh has quit [Remote host closed the connection]
Nilby has joined #lisp
pve has quit [Quit: leaving]
attila_lendvai has quit [Ping timeout: 265 seconds]
galex-713 has quit [Ping timeout: 265 seconds]
galex-713 has joined #lisp
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
euandreh has quit [Ping timeout: 264 seconds]
akovalenko has quit [Remote host closed the connection]
xlarsx has joined #lisp
xlarsx has quit [Ping timeout: 256 seconds]
dhil has quit [Ping timeout: 240 seconds]
greaser|q has quit [Changing host]
greaser|q has joined #lisp
greaser|q is now known as GreaseMonkey
xlarsx has joined #lisp
<hendursaga> Alfr: Yes but in say French?
xlarsx has quit [Ping timeout: 240 seconds]
random-nick has quit [Ping timeout: 265 seconds]
<Alfr> There's ~A with an appropriate string or ~/func-name/, but I think you'll have to write that translation yourself.
ikrabbe has joined #lisp
ikrabbe|2 has quit [Ping timeout: 264 seconds]
rogersm has joined #lisp
rogersm has quit [Ping timeout: 256 seconds]
Codaraxis has joined #lisp
euandreh has joined #lisp
Codaraxis_ has quit [Ping timeout: 264 seconds]
matthewcroughan has joined #lisp
<matthewcroughan> Hey! I'm very new to lisp, I'm trying to demonstrate something to a friend using MQTT. There is a library for it here, but I just can't find any examples that lead me to success in loading it. https://github.com/ivan4th/cl-mqtt
<matthewcroughan> (ql:quickload 'cl-async-repl) (ql:quickload 'swank) (as-repl:start-async-repl) leads to the following error
<matthewcroughan> `Cannot initialize *SLIME-REPL-EVAL-HOOKS*, use (eval-in-gui-thread ...) form.`
cross has quit [Ping timeout: 260 seconds]
ex_nihilo has joined #lisp
* Xach has never tried those libraries
cross has joined #lisp
<matthewcroughan> Xach: well, I basically just wanna send some mqtt packets over the network :p
<matthewcroughan> I've got the repos cloned, just wondering how I would load them and "run" the lisp files.
<Xach> matthewcroughan: if i were just starting, i think i would avoid something that uses event loops, threads, and foreign libraries.
<Xach> (i am not just starting and i still avoid those things, when i can help it, but if you have to use them, you have to use them)
<matthewcroughan> Xach: I just want to submit some MQTT packets, using avail libraries, just because I want to prove to my friend it's possible.
<matthewcroughan> Everything here is pure lisp, if we can't load that we're screwed ;P
<Xach> oh, that's cool. i had the wrong impression about FFI, then.
frgo has quit [Ping timeout: 272 seconds]
<Josh_2> Well cl-async-repl isn't pure list
<Josh_2> lisp*
terpri has quit [Read error: Connection reset by peer]
terpri has joined #lisp
<Josh_2> I don't know if the library still works It's 6 years old and has dependencies that don't exist in QL
<Josh_2> matthewcroughan: http://finisterra.motd.org/?p=237
frgo has joined #lisp
<matthewcroughan> Josh_2: that doesn't tell me anything about using sbcl/clisp on the command line to actually run that code, that's just code.
<matthewcroughan> How can I use it?
frgo has quit [Ping timeout: 240 seconds]
<matthewcroughan> Josh_2: If I put that example into a file called example.lisp and then `sbcl --load example.lisp` it fails at many points
<matthewcroughan> Don't know how to REQUIRE ABCL-CONTRIB.
<matthewcroughan> Josh_2: why is this library not reproducible? Is there no build system to produce it?
<matthewcroughan> you seen nix, on that topic?
<Josh_2> For that one you need to be using ABCL, not SBCL
<Josh_2> ABCL is built on JVM so it can call java libraries, so you can use the Java version of MQTT
<matthewcroughan> Interesting
rogersm has joined #lisp
<Josh_2> also you don't want to be just running code on the command line
<Josh_2> you should be using a repl
arpunk has joined #lisp
arpunk has quit [Remote host closed the connection]
<matthewcroughan> Josh_2: Error loading /home/matthew/git/clisp/abcl-mqtt.lisp at line 114 (offset 4978)
<matthewcroughan> #<THREAD "interpreter" {6618EE9C}>: Debugger invoked on condition of type JAVA-EXCEPTION
<matthewcroughan> Java exception 'java.lang.ClassNotFoundException: MQTTCONNECTOPTIONS'.
long4mud has joined #lisp
<Josh_2> well yeh
<matthewcroughan> so how would I run that? :p
arpunk has joined #lisp
<Josh_2> you are trying to do something you can only do with ABCL in Clisp
<matthewcroughan> no, I am not, I don't believe.
<matthewcroughan> `abcl --load abcl-mqtt.lisp `
<Josh_2> oh right
<Josh_2> sorry
<Josh_2> well unfortunately for you I don't know anything about how Java works, maybe you have to go find that library from some place?
frgo has joined #lisp
rogersm has quit [Ping timeout: 256 seconds]
arpunk has quit [Remote host closed the connection]
arpunk has joined #lisp
arpunk has quit [Read error: Connection reset by peer]
<matthewcroughan> Josh_2: what is the "classpath"?
<Josh_2> Idk
<matthewcroughan> the comments state there's a JAR file that needs to be in the classpath.
frgo has quit [Ping timeout: 260 seconds]
<matthewcroughan> is the guy who wrote this here? :D
arpunk has joined #lisp
arpunk has quit [Remote host closed the connection]
semz has quit [Ping timeout: 260 seconds]
Lord_of_Life has quit [Ping timeout: 240 seconds]
arpunk has joined #lisp
euandreh has quit [Ping timeout: 264 seconds]
Lord_of_Life has joined #lisp
toorevitimirp has joined #lisp
bilegeek has joined #lisp
<matthewcroughan> can anybody save me?
<matthewcroughan> alandipert: You look knowledgable, I just went searching for answers and found this post. https://www.reddit.com/r/lisp/comments/676cse/watson_iot_with_common_lisp/
<matthewcroughan> I ended up seeing your face on a 6 day old video "Common Lisp for the Curious Clojurian"
ikrabbe|2 has joined #lisp
ikrabbe has quit [Ping timeout: 272 seconds]
akoana has left #lisp ["Leaving"]
semz has joined #lisp
semz has quit [Changing host]
semz has joined #lisp
xlarsx has joined #lisp
<matthewcroughan> can anyone tell me how to load libraries on the filesystem? lol
<Josh_2> load?
<matthewcroughan> Josh_2: load and then what?
<matthewcroughan> how do I give it a path, what's the syntax?
<matthewcroughan> alandipert: I really want to use cl-mqtt, since cl-async loads perfectly fine
<matthewcroughan> I just can't figure out how to actually load that library from my disk, such that I can start utilising it.
<alandipert> oh, then i'm of no help, sorry
frgo has joined #lisp
<matthewcroughan> alandipert: If you can help with ABCL, I'm all ears ;P
<Josh_2> You put it in you quicklisp/local-projects folder and then do (ql:quickload :<library>)
<Josh_2> thats how you load lisp libraries anyway
<Josh_2> or you can use asdf
<matthewcroughan> But no readme on earth will suggest this to you
<matthewcroughan> even that abcl-asdf assumes you have knowledge, it doesn't even tell you to clone the project
orivej has joined #lisp
<matthewcroughan> Right, so I have cloned the project to my CD
<matthewcroughan> `git clone https://github.com/armedbear/abcl.git`
<Josh_2> wat
<matthewcroughan> I am now in that repo's root, and I have ran `abcl`
<Josh_2> you are cloning all of abcl?
<matthewcroughan> yes
<matthewcroughan> my pwd is `/home/matthew/git/clisp/abcl/contrib/abcl-asdf`
<matthewcroughan> I've ran `abcl` in that directory, my prompt is now `CL-USER(1):`
<Josh_2> thats a good prompt
frgo has quit [Ping timeout: 264 seconds]
<matthewcroughan> running the `(require :abcl-asdf)` and other require cmds worked fine
<Josh_2> did you ever lookup how to get construct a proper Lisp environment?
<matthewcroughan> Josh_2: I do not know what that means. I'm just using the nix package for it which constructs a stdenv.
<Josh_2> yikes
<matthewcroughan> Please, do not make assumptions. Just try to help me <3
<matthewcroughan> I just want to load some code ;D
<Josh_2> Do you use vim/emacs?
<matthewcroughan> yes
<Josh_2> which one?
<matthewcroughan> vim
<matthewcroughan> I would really like to learn to load some code in the repl before grabbing that.
<waleee-cl> go to the directory, start your repl, (load "___.lisp")?
<Josh_2> Well thats a development environment that allows you do interact with a lisp image in a nice way
<waleee-cl> recommend to use rlwrap
<matthewcroughan> I just want to load cl-mqtt, I have cloned it.
<matthewcroughan> This is a collection of *.lisp files, how do I utilise them at all?
<Josh_2> cl-mqtt doesn't work
<Josh_2> It's bitrotted
<matthewcroughan> That is not substantiated, you have not tried it.
<Josh_2> Yes I have
<matthewcroughan> Why is it not reproducible?
<Josh_2> I cloned it into quicklisp/local-projects ran (ql:quickload :cl-mqtt) and it didn't work
<matthewcroughan> Josh_2: There is a comment from the author here. https://www.reddit.com/r/lisp/comments/676cse/watson_iot_with_common_lisp/
<matthewcroughan> >If anyone's interested I've wrote an MQTT client implementation in CL some time ago that doesn't need Java. It uses cl-async. Well, it probably has some bugs, and I didn't update it in a while, but it works most of the time from my experience
<Josh_2> Do you have quicklisp installed?
<matthewcroughan> yes, and in there I have:
<matthewcroughan> client-info.sexp local-projects setup.lisp
<matthewcroughan> asdf.lisp dists quicklisp tmp
<Josh_2> right well clone cl-mqtt into local-projects, open your lisp image and run (ql:quickload :cl-mqtt)
<matthewcroughan> ((LABELS QUICKLISP-CLIENT::RECURSE :IN QUICKLISP-CLIENT::COMPUTE-LOAD-STRATEGY) "i4-diet-utils")
<matthewcroughan> so I wonder what i4-diet-utils is
<matthewcroughan> it comes from his repos
<Josh_2> clone that into local-projects as well
<matthewcroughan> cl-mqtt/package.lisp: (:use :cl :alexandria :iterate :i4-diet-utils)
<matthewcroughan> seems to work, hah
prxq_ has joined #lisp
<matthewcroughan> so much for bitrot mr assumption ;)
bilegeek has quit [Quit: Leaving]
<matthewcroughan> spectacular
<Josh_2> well It's good it works
<matthewcroughan> now to try some code
<Josh_2> Now would be the time to install a good development environment
<matthewcroughan> It's a one-off.
<Josh_2> Shame
<matthewcroughan> besides, nix gave me one
frgo has joined #lisp
<matthewcroughan> look into nix and what it does, put biases to one side and try nix-shell for something.
<Josh_2> why are you making such an effort for a one off?
<matthewcroughan> Josh_2: fun.
<Josh_2> what is there to showoff in just running some random library?
<matthewcroughan> turning a light on and off with lisp
<Josh_2> okay fair enough
<matthewcroughan> there's a guy here learning lisp and saying it's superior for everything, so I'm challenging my self to do what I did with bash in 1 minute ;D
<matthewcroughan> In lisp*
prxq has quit [Ping timeout: 256 seconds]
<Josh_2> surely you would achieve that faster in bash because you understand bash better?
<Josh_2> Also your mate is correct
<Josh_2> ʕ·͡ᴥ·ʔ
<matthewcroughan> Josh_2: I already achieved it in bash, now I've just spent 2-3 hrs trying to do it in Lisp for fun
<Josh_2> lul
<Josh_2> Does your friend come to this IRC channel?
mrcom has quit [Ping timeout: 265 seconds]
<matthewcroughan> Josh_2: nope, he's just a streamer
<matthewcroughan> he just plays chess lol
rogersm has joined #lisp
<matthewcroughan> this is his very first exposure to programming, we just gave him a book about lisp called "Common Lisp; A gentle introduction to symbolic computation"
<Josh_2> Yes thats a good book
<Josh_2> that was my first programming book
<matthewcroughan> Josh_2: he's asking for further recommendations after this book, got any?
<Josh_2> Practical Common Lisp
Sheilong has quit []
mrcom has joined #lisp
<matthewcroughan> Josh_2: Weird, so I can define the first func from that guy's readme on cl-mqtt
rogersm has quit [Ping timeout: 240 seconds]
<matthewcroughan> You can watch my terminal here and see more context
<matthewcroughan> ssh ro-pEHBuqtMKQYsugVjnNb4yHqXN@lon1.tmate.io
<matthewcroughan> or a web session if you prefer https://tmate.io/t/ro-pEHBuqtMKQYsugVjnNb4yHqXN
<matthewcroughan> It returns TEST-IT as you can hopefully see
<Josh_2> Ye
<matthewcroughan> I now expect to be able to use it
<Josh_2> Now you just run (test-it <host> <port>)
<matthewcroughan> what does it mean to have no output?
<Josh_2> well it might be a thread in the background'
<Josh_2> oh right It's not
<matthewcroughan> but there is no `(as-repl:start-async-repl)`
<matthewcroughan> we haven't started anthing
<matthewcroughan> I am running a broker on the network that I can do `mosquitto_pub -h <ip> -t <topic> -m 'message'
<matthewcroughan> I expect `(test-it "localhost" 1883)` to submit messages, wondering if this is not the case, and if this is in fact a broker :D
<Josh_2> well It's subscribing and the publishing
<Josh_2> if you subscribe with another client do you see anything sent on those topics?
<matthewcroughan> yup
<matthewcroughan> I'll show you
<Josh_2> so It's working?
frgo has quit [Ping timeout: 272 seconds]
<matthewcroughan> you're still in the ssh session right?
<Josh_2> yes
<matthewcroughan> no message, as can be seen :D
<Josh_2> but the lisp code is only publishing
<Josh_2> to topics like /a/b
<matthewcroughan> yes, and my command is listening to *everything*
<matthewcroughan> -t '#'
<Josh_2> oh right
<matthewcroughan> wled/2199a4, if I sent a message like `-m "OFF"` it would turn the light here off.
<Josh_2> well I don't know then
<matthewcroughan> maybe it needs a message argument, but that was defined in the function `test-it`
<matthewcroughan> (mqtt:publish conn "/a/b" "whatever1")
<matthewcroughan> ah yes, this message again
<matthewcroughan> says it can't work because of some gui library LOL
<matthewcroughan> source: (ERROR "Cannot initialize *SLIME-REPL-EVAL-HOOKS*, ~
<Josh_2> slime is the primary means of interacting with a lisp image
<Josh_2> It's not a gui library
<matthewcroughan> `use (eval-in-gui-thread ...) form.")`
<matthewcroughan> what does this mean then?
<Josh_2> if you install vlime and run your lisp image from that you won't have that problem
<Josh_2> because vlime will use slime to communicate with the lisp image
<Josh_2> Just typing instructions directly into the SBCL image at terminal is a dreadful way to interact with a lisp image
<matthewcroughan> what is the "image"?
<Josh_2> Common Lisp is an image based programming language, like smalltalk
<matthewcroughan> so is the "image" the .lisp file?
jonatack_ has quit [Ping timeout: 246 seconds]
<matthewcroughan> right..
<matthewcroughan> let's try vlime
<Josh_2> I hope your friend has been learning CL using either Emacs or Vim
<matthewcroughan> emacs
<Josh_2> and hes been using slime with emacs?
<matthewcroughan> nope, unsure what his setup is
<matthewcroughan> I gave him the jupyter clisp kernel actually
<matthewcroughan> v
<waleee-cl> out of curiosity why did you start with clisp?
<matthewcroughan> that's just what happens when you google lisp.
<matthewcroughan> I had no idea about these sbcl/abcl/everythings
<waleee-cl> for you possibly
<matthewcroughan> reminds me of Forth, how there are many variations upon forth, there are many forhts.
<Josh_2> they are different distributions of Common Lisp
<matthewcroughan> forths*
<Josh_2> like Gentoo/Fedora/Ubuntu are different distributions of Linux etc
<matthewcroughan> I don't want a development environment. I want to submit some bytes via UDP to an ip address.
<matthewcroughan> If I can't do that in a lisp repl, what is it good for? :D
<matthewcroughan> I will use vlime and perhaps even package it if I take a liking to lisp, but this can't be the way.
<waleee-cl> matthewcroughan: you do realize that it's some work in most full featured programming languages?
<matthewcroughan> No, it's not. You can just bang it out from memory. The MQTT protocol isn't complex, sure you won't implement the WHOLE thing.
<waleee-cl> (eg python)
<matthewcroughan> you could craft the packet necessary to submit to an ip address to contain bytes that resolve to the string "NO" in MQTT, then send it over UDP, in no time.
carkh has joined #lisp
<Josh_2> yes you could do that in no time in CL
<matthewcroughan> well how can we ping?
<matthewcroughan> I can't really get any of the basic examples working.
<Josh_2> Make sure to tell your buddy to check out portacle
imode has joined #lisp
<matthewcroughan> I can't believe we were defeated.
<Josh_2> if you know how MQTT is implemented you could just craft the packets manually
<matthewcroughan> I sorta do, I may take some time in future.
<matthewcroughan> I really just wanted to demonstrate that he indeed can't do certain things in LISP, because libraries don't necessarily exist for everything, because it's not "that kind" of language.
<matthewcroughan> Because he talks as if everything is possible with LISP.
<Josh_2> well everything is possible
<Josh_2> It's turing complete
<matthewcroughan> Sure, I just mean within my lifespan.
<matthewcroughan> Microsoft Powerpoint is turing complete.
<Josh_2> the library might not work properly but I saw someone had implemented a functioning MQTT client in Racket in 200 lines, converted that to CL wouldn't be hard
<Josh_2> Sending data over a network isn't very hard
<matthewcroughan> well, can you give me an example that does *anything* over the network from the sbcl repl?
<Josh_2> well if you were using Vlime ie Vim with Slime then that communication is done over a local socket
<Bike> sbcl comes with a bsd sockets system.
<Josh_2> you could just (ql:quickload :dexador) (dex:get "https://google.co.uk")
<Bike> i've never used it myself, but my understanding is it's a pretty thin wrapper over the berkeley API.
<Bike> probably you could push bytes or whatever with that.
<Josh_2> or just use usocket
<contrapunctus> What's the Lispy way of determining if an optional system is available, i.e. installed?
<Josh_2> put it in your :depends-on in your asd that way it'll be loaded when you load your library with quicklisp :P
<contrapunctus> Josh_2: lol, _optional system_ - both systems work with as well as without each other.
<Bike> contrapunctus: you could do (asdf:component-loaded-p (asdf:find-system whatever))
<matthewcroughan> (CFFI::FL-ERROR "Unable to load any of the alternatives:~% ~S" ("libssl.so.1.1" "libssl.so.1.0.2m" "libssl.so.1.0.2k" "libssl.so.1.0.2" "libssl.so.1.0.1l" "libssl.so.1.0.1j" "libssl.so.1.0.1f" "libssl.so.1.0.1e" "libssl.so.1.0.1" "libssl.so.1.0.0q" "libssl.so.1.0.0" "libssl.so.0.9.8ze" ...))
<Bike> oh, like that. i don't think sbcl wants to do those.
<Bike> er, asdf.
<contrapunctus> 🤔
<Bike> matthewcroughan: so you don't have libssl installed?
<Bike> seriously though, if you want to do some low level udp whatever you should probably use usocket or sb-bsd-sockets or something. you don't need SSL for that.
<Josh_2> Usocket is reasonable, but you aren't going to get anywhere just copying and pasting commands into the sbcl terminal repl
<Josh_2> and I really hope that isn't how your mate is interacting with his lisp image, he needs to install slime and use that
frgo has joined #lisp
<beach> Good morning everyone!
<Josh_2> Hey beach
Alfr_ has joined #lisp
<matthewcroughan> beach: Hi, I'm a skeleton. I've been blasted by the light of Lisp, nothing left but a stump here.
frgo has quit [Ping timeout: 260 seconds]
<matthewcroughan> Bike: how does sbcl try to find libssl?
<matthewcroughan> it just isn't finding it on my system.
<matthewcroughan> do I really have to strace sbcl? ;D
Alfr has quit [Ping timeout: 260 seconds]
cchristiansen has quit [Read error: No route to host]
<matthewcroughan> no answers! aaaaa
<Josh_2> No answers because you are still just copying and pasting into the SBCL repl
<Josh_2> and I have to go to sleep because It's 4am
<matthewcroughan> Josh_2: Well yeah, because I can't figure out how to load things into the repl, I just copy and paste the deffun, what's wrong with that?
<matthewcroughan> I want to load code that other people have written so that I can execute their functions. What exactly is wrong with that?
<Josh_2> *sigh*
<matthewcroughan> Are you telling me this is not exactly a repl? But something strange that you're trying to get me not to use because it's a bit of a lie?
<Josh_2> yes what you are interacting with is a repl but It's got no arms, no legs and no eyes
<matthewcroughan> I really wish `sbcl` would find libssl..
<matthewcroughan> and that vlime was packaged for any distribution, at all
<Josh_2> well emacs is the "goto" for writing Lisp, you can just install slime with elpa
<Josh_2> But some folks use vlime
frgo has joined #lisp
<matthewcroughan> do I really have to worry about what text editor I'm using just for this language?
<matthewcroughan> that is really especially screwed up
<matthewcroughan> is it a language, or is it an operating system?
<Josh_2> uh
<Josh_2> uuuuh
<matthewcroughan> No really. I'm very alienated. Why can't I just write and run lisp?
<matthewcroughan> It's such a strange world.
<matthewcroughan> There's so much context necessary to even "run" lisp code.
<Josh_2> normie programming is write, execute, debug repeat
<Josh_2> It's perfectly possible to write CL like that but you are wasting your time and missing the point
<matthewcroughan> If you bothered to look into Nix, it's a functional language and I love it.
<matthewcroughan> But this is something else.
<matthewcroughan> Josh_2: okay, mirror the statement.
<matthewcroughan> "normie programming is write, execute, debug repeat"
<matthewcroughan> "lisp programming is ... ... ... "
<Josh_2> you are using CL like that and wondering why It's all screwy
<matthewcroughan> sure, so what *is* the right way to use it?
<matthewcroughan> please don't suggest a text editor change ;D
<Josh_2> Interactively
<matthewcroughan> please mirror the statement, "lisp programming is write ... ... "
<matthewcroughan> if normie programming is "write, execute, debug, repeat", what is lisp?
rogersm has joined #lisp
<Josh_2> It's incremental design where you interact with the program and modify it while it runs
<Josh_2> you write your little algorithms, check they work, change them while the execute etc
<Josh_2> put your pieces together, change parts in and out, inspect things in the debugger while they are being used, interact with the stack trace etc
<matthewcroughan> yeah I did understand some of that, as the program was running if I put something on the stack it would be as if it had hit a breakpoint and I could either continue or exit
<Josh_2> yes
<matthewcroughan> much like forth, honestly, in some ways
<matthewcroughan> but forth is far more intuitive than this
<Josh_2> if you use Vlime you will be able to properly interact with it, you will be able to inspect the frames on the stack, copy the objects that were arguments to functions to your repl etc
<Josh_2> I've never used forth so I don't have an opinion
rogersm has quit [Ping timeout: 240 seconds]
<matthewcroughan> Fair enough. I will experiment with it at some stage, tomorrow maybe. With a friend to hold my hand and squeeze it when I get stressed.
frgo has quit [Ping timeout: 264 seconds]
<Bike> "how does sbcl try to find libssl" dlopen, same as anything else
<matthewcroughan> Bike: not quite, I'm using nix so it's probably trying something weird. Nix usually finds these oddities.
<matthewcroughan> So for example, Firefox/Chromium will work fine and they'll find libssl in a nix-shell, but sbcl doesn't, because some programs just work differently in a so-called "impure" way that resolve these paths strangely.
<Josh_2> well that library is looking for certain versions
<matthewcroughan> I'll explain it when I'm less tired :D
fubbiquantz has joined #lisp
<Bike> sbcl definitely uses dlopen. whether dlopen is doing something weird on nix i can't tell you.
<Bike> firefox and chromium and stuff might be linked less dynamically
ikrabbe has joined #lisp
<Bike> dynamic dependencies might not work so well with nix's whole model
ikrabbe|2 has quit [Ping timeout: 264 seconds]
frgo has joined #lisp
xlarsx_ has joined #lisp
xlarsx has quit [Ping timeout: 264 seconds]
frgo has quit [Ping timeout: 260 seconds]
aartaka has joined #lisp
gioyik_ has joined #lisp
gioyik has quit [Ping timeout: 268 seconds]
xlarsx_ has quit [Remote host closed the connection]
xlarsx has joined #lisp
frgo has joined #lisp
xlarsx has quit [Ping timeout: 240 seconds]
scymtym__ has joined #lisp
scymtym_ has quit [Ping timeout: 264 seconds]
frgo has quit [Ping timeout: 264 seconds]
fubbiquantz has quit [Ping timeout: 240 seconds]
frgo has joined #lisp
xlarsx has joined #lisp
frgo has quit [Ping timeout: 260 seconds]
xlarsx has quit [Ping timeout: 272 seconds]
Nilby has quit [Ping timeout: 264 seconds]
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
rumbler31 has quit [Remote host closed the connection]
Bike has quit [Quit: leaving]
rumbler31 has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
frgo has joined #lisp
sauvin has joined #lisp
xlarsx has joined #lisp
rogersm has joined #lisp
xlarsx has quit [Ping timeout: 256 seconds]
<contrapunctus> Weird, I was able to load my system "foo" just fine until yesterday, and today ASDF says "package FOO-TESTS does not exist" 🤔
rogersm has quit [Ping timeout: 256 seconds]
PuercoPop has quit [Quit: WeeChat 2.8]
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
frgo has quit [Ping timeout: 264 seconds]
andreyorst[m] has joined #lisp
<contrapunctus> Can anyone say if there's something wrong with these system definitions? https://ix.io/2Pfb
frgo has joined #lisp
<beach> I get an error for that link.
<beach> SSL received a record that exceeded the maximum permissible length.
frgo has quit [Ping timeout: 240 seconds]
frgo has joined #lisp
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
<contrapunctus> beach: thanks for looking. Here's another - https//:paste.debian.net/1185306
<contrapunctus> Oh wow. https://paste.debian.net/1185306 -_-
<beach> I see no system "foo".
<contrapunctus> beach: "skylab" in this case
<contrapunctus> ASDF says "package SKYLAB-TESTS does not exist"
<beach> Well, in order to load this file, that package must exist.
<beach> Because you have a symbol SKYLAB-TESTS:SETUP-TEST-GIT-REPO in it.
<beach> I am betting that package is created as part of the SKYLAB/TESTS system, maybe?
<contrapunctus> It is
<beach> So it must exist before it can be created.
jedii has joined #lisp
<jedii> is there a lisp operaing system with a working web browser?
<jedii> runs on amd64?
<beach> contrapunctus: Do you see the problem?
jprajzne has quit [Quit: Leaving.]
<beach> jedii: I think Mezzano would be the only candidate, but I don't know about web browsers.
cchristiansen has joined #lisp
lowryder_ has quit [Ping timeout: 256 seconds]
lowryder_ has joined #lisp
* beach feels ignored.
cchristiansen has quit [Remote host closed the connection]
Bourne has joined #lisp
<jedii> heh
<jedii> I'm back
<jedii> how about a lisp web browser
<jedii> honeslt I think people need about 3% ofHTML
<jedii> not sure about HTML5
<jedii> mayben that is a new model
<beach> There is the Closure web browser that is pure Lisp, and there is Nyxt that uses foreign-code libraries.
<beach> But Closure has not been maintained for some time, so I don't know the state of it.
awb999 has quit [Ping timeout: 246 seconds]
<beach> Both operating systems and web browsers are non-trivial things.
pve has joined #lisp
<beach> Instead of a web browser, I would like to see collaborating modules for various rendering tasks.
<beach> But that's not what you are asking, so never mind.
<beach> contrapunctus: Did you faint?
<beach> jedii: What is the reason for your questions?
andreyorst[m] has quit [Remote host closed the connection]
caef^ has joined #lisp
<jedii> I want to replace linux and firefox if possible
<beach> We are working on it, but it will take some time.
<beach> You can help out if you like.
<jedii> ok
<jedii> ive never done a browser b4
<beach> I would do one rendering module at a time.
orivej has quit [Ping timeout: 256 seconds]
<contrapunctus> beach: sort of, thanks for the pointer; I went looking at the system definitions of some libraries, and for the moment I'm thinking of putting the test-running form at the end of skylab-test.lisp itself
<contrapunctus> ..."sort of" for "do you see the problem", not "did you faint" lol
<beach> OK. The problem is that when the reader reads the ASDF file, it sees that symbol and tries to intern it into the package of the prefix, but the package does not exist. It's that simple.
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
<beach> You can't submit a symbol with a package prefix to the reader unless the package exists.
Guest57554 has joined #lisp
<Guest57554> hi guys.
<Guest57554> i am trying to get quicklisp to install clog and then just run the first demo.
<Guest57554> i tried it on 3 different debian instances, clean sbcl / ql installs and i keep on getting feedback from the debugger that something is wrong. too noob to understand what the compiler wants, mostly i think this is an issue with quicklisp and not clog because everyone else can get clog installed just fine and then loaded just fine
<Guest57554> i have my issue and debugger data in the following ticket: https://github.com/rabbibotton/clog/issues/25
<Guest57554> if anyone has a moment to take a peek at the debugger messages and give me a hint on what to google, i would appreciate it.
<beach> Are you sure you are supposed to do RUN-TUTORIAL?
<Guest57554> according to the instructions on this page, apparently yes: https://github.com/rabbibotton/clog
<Guest57554> its in the first bit of that wiki page
<pranavats> I think Quicklisp has an older version of clog.
<beach> My guess would be that the version of Clog in Quicklisp is too old.
<beach> Heh.
<Guest57554> ohhhhhhhhhh ... oh!
<Guest57554> damnit i shoudl have guessed. my thanks!
<pranavats> In the newest version from the repo there's start-tutorial
<beach> Sure.
<beach> pranavats: "start" or "run"?
<Guest57554> he even says to download via git. i'm an idiot
surabax has joined #lisp
<beach> Don't beat yourself up.
<beach> It happens.
<pranavats> beach: ^^ The tutorial file exports start-tutorial, I used that.
<beach> OK.
<beach> Just checking against the README.
<pranavats> Here's the tutorial readme file: https://github.com/rabbibotton/clog/blob/main/tutorial/README.md
<Guest57554> aha!
hendursa1 has joined #lisp
<Guest57554> that was it. i really appreciate the heads up on that.
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
hendursaga has quit [Ping timeout: 268 seconds]
lottaquestions_ has joined #lisp
rogersm has joined #lisp
<Guest57554> CL-USER> (ql:quickload :clog)
totoro2023 has quit [Read error: Connection reset by peer]
lottaquestions has quit [Ping timeout: 260 seconds]
<Guest57554> my apologies about that, getting used to apple magicpad + new driver for it.
xlarsx has joined #lisp
totoro2023 has joined #lisp
rogersm has quit [Ping timeout: 246 seconds]
fouric has quit [Ping timeout: 240 seconds]
fouric has joined #lisp
xlarsx has quit [Ping timeout: 246 seconds]
anticrisis has quit [Quit: Leaving]
shka_ has joined #lisp
rgherdt has joined #lisp
skapate has quit [Remote host closed the connection]
rogersm has joined #lisp
rogersm has quit [Remote host closed the connection]
grobe0ba_ has joined #lisp
toorevitimirp has quit [Ping timeout: 246 seconds]
gioyik_ has quit [Quit: WeeChat 3.0]
penguwin4 has joined #lisp
Bourne has quit [Ping timeout: 272 seconds]
loke[m] has quit [*.net *.split]
kaisyu[m] has quit [*.net *.split]
infra_red[m] has quit [*.net *.split]
alanz_ has quit [*.net *.split]
larme has quit [*.net *.split]
grobe0ba has quit [*.net *.split]
midre has quit [*.net *.split]
specbot has quit [*.net *.split]
penguwin has quit [*.net *.split]
fiddlerwoaroof has quit [*.net *.split]
flip214 has quit [*.net *.split]
penguwin4 is now known as penguwin
grobe0ba_ is now known as grobe0ba
lowryder_ has quit [Ping timeout: 256 seconds]
lowryder_ has joined #lisp
nckx has quit [*.net *.split]
tomaw has quit [*.net *.split]
jeosol has quit [*.net *.split]
fouric has quit [*.net *.split]
jedii has quit [*.net *.split]
APic has quit [*.net *.split]
caef^ has quit [*.net *.split]
scymtym__ has quit [*.net *.split]
Codaraxis has quit [*.net *.split]
mathrick has quit [*.net *.split]
Jesin has quit [*.net *.split]
wooden has quit [*.net *.split]
aindilis has quit [*.net *.split]
albusp has quit [*.net *.split]
vaporatorius has quit [*.net *.split]
devon has quit [*.net *.split]
sbryant has quit [*.net *.split]
andreyorst has quit [*.net *.split]
IPmonger has quit [*.net *.split]
lavaflow has quit [*.net *.split]
Cthulhux has quit [*.net *.split]
nthian has quit [*.net *.split]
t3hyoshi has quit [*.net *.split]
hdasch has quit [*.net *.split]
acolarh has quit [*.net *.split]
elflng has quit [*.net *.split]
CrazyEddy has quit [*.net *.split]
joast has quit [*.net *.split]
seeg12344 has quit [*.net *.split]
alfred188 has quit [*.net *.split]
Oladon has quit [*.net *.split]
norserob has quit [*.net *.split]
xlei has quit [*.net *.split]
herlocksholmes has quit [*.net *.split]
justinmcp has quit [*.net *.split]
guaqua has quit [*.net *.split]
hiredman has quit [*.net *.split]
sukaeto has quit [*.net *.split]
creat has quit [*.net *.split]
ms[m] has quit [*.net *.split]
ecm has quit [*.net *.split]
dmiles[m] has quit [*.net *.split]
anotherone9999[m has quit [*.net *.split]
quanta[m] has quit [*.net *.split]
simplegauss has quit [*.net *.split]
sveit has quit [*.net *.split]
mseddon8 has quit [*.net *.split]
stux|RC-only has quit [*.net *.split]
shenghi has quit [*.net *.split]
mgr_ has quit [*.net *.split]
surabax has quit [*.net *.split]
mrcom has quit [*.net *.split]
karlosz has quit [*.net *.split]
sauvin has quit [*.net *.split]
rumbler31 has quit [*.net *.split]
texno has quit [*.net *.split]
matijja has quit [*.net *.split]
hineios has quit [*.net *.split]
luis has quit [*.net *.split]
engblom has quit [*.net *.split]
troydm has quit [*.net *.split]
akkad has quit [*.net *.split]
ravndal has quit [*.net *.split]
nmg has quit [*.net *.split]
nullman has quit [*.net *.split]
ineiros has quit [*.net *.split]
Ziemas_ has quit [*.net *.split]
_oldtopman has quit [*.net *.split]
markasoftware has quit [*.net *.split]
Xach has quit [*.net *.split]
Ekho has quit [*.net *.split]
rvirding has quit [*.net *.split]
dwts has quit [*.net *.split]
jealousmonk has quit [*.net *.split]
thijso has quit [*.net *.split]
SlashLife has quit [*.net *.split]
joga has quit [*.net *.split]
vsync has quit [*.net *.split]
mr_yogurt has quit [*.net *.split]
v3ga has quit [*.net *.split]
bitmapper has quit [*.net *.split]
ark has quit [*.net *.split]
saturn2 has quit [*.net *.split]
ane has quit [*.net *.split]
jackhill has quit [*.net *.split]
samebchase has quit [*.net *.split]
routeveg has quit [*.net *.split]
jasom has quit [*.net *.split]
specbot has joined #lisp
kaisyu[m] has joined #lisp
loke[m] has joined #lisp
alanz_ has joined #lisp
infra_red[m] has joined #lisp
fiddlerwoaroof has joined #lisp
midre has joined #lisp
larme has joined #lisp
flip214 has joined #lisp
caef^ has joined #lisp
clone_of_saturn has joined #lisp
clone_of_saturn is now known as saturn2
alfred188 has joined #lisp
sauvin has joined #lisp
Ekho has joined #lisp
mrcom has joined #lisp
rumbler31 has joined #lisp
matijja has joined #lisp
engblom has joined #lisp
luis has joined #lisp
akkad has joined #lisp
troydm has joined #lisp
nmg has joined #lisp
ravndal has joined #lisp
ineiros has joined #lisp
nullman has joined #lisp
_oldtopman has joined #lisp
markasoftware has joined #lisp
Ziemas_ has joined #lisp
Xach has joined #lisp
texno has joined #lisp
karlosz has joined #lisp
hineios has joined #lisp
surabax has joined #lisp
dwts has joined #lisp
rvirding has joined #lisp
thijso has joined #lisp
joga has joined #lisp
jealousmonk has joined #lisp
SlashLife has joined #lisp
vsync has joined #lisp
mr_yogurt has joined #lisp
arichiardi[m] has quit [Ping timeout: 240 seconds]
sbryant has joined #lisp
andreyorst has joined #lisp
mathrick has joined #lisp
devon has joined #lisp
jedii has joined #lisp
albusp has joined #lisp
wooden has joined #lisp
IPmonger has joined #lisp
t3hyoshi has joined #lisp
Jesin has joined #lisp
fouric has joined #lisp
scymtym__ has joined #lisp
aindilis has joined #lisp
vaporatorius has joined #lisp
nthian has joined #lisp
hdasch has joined #lisp
elflng has joined #lisp
acolarh has joined #lisp
CrazyEddy has joined #lisp
joast has joined #lisp
seeg12344 has joined #lisp
guaqua has joined #lisp
justinmcp has joined #lisp
Cthulhux has joined #lisp
xlei has joined #lisp
Oladon has joined #lisp
sukaeto has joined #lisp
hiredman has joined #lisp
herlocksholmes has joined #lisp
norserob has joined #lisp
lavaflow has joined #lisp
MrtnDk[m] has quit [Ping timeout: 244 seconds]
long4mud has quit [Max SendQ exceeded]
parisienne_ has joined #lisp
stux|RC-only has joined #lisp
kaisyu[m] has quit [Ping timeout: 258 seconds]
loke[m] has quit [Ping timeout: 258 seconds]
infra_red[m] has quit [Ping timeout: 258 seconds]
Gnuxie[m] has quit [Ping timeout: 265 seconds]
Ekho has quit [Max SendQ exceeded]
parisienne has quit [Ping timeout: 264 seconds]
stargazesparkle has quit [Ping timeout: 240 seconds]
dieggsy has quit [Ping timeout: 268 seconds]
parisienne_ is now known as parisienne
susam has quit [Ping timeout: 268 seconds]
lavaflow has quit [Max SendQ exceeded]
aeth has quit [Ping timeout: 250 seconds]
aeth_ has joined #lisp
lavaflow has joined #lisp
jeosol has joined #lisp
M18WABNFN4 has quit [Ping timeout: 240 seconds]
etimmons has quit [Ping timeout: 240 seconds]
christopheroei[m has quit [Ping timeout: 265 seconds]
katco has quit [Ping timeout: 265 seconds]
jdormit has quit [Ping timeout: 265 seconds]
posthuman_egrego has quit [Ping timeout: 265 seconds]
theothornhill[m] has quit [Ping timeout: 265 seconds]
deselby has quit [Ping timeout: 240 seconds]
ThaEwat has quit [Ping timeout: 244 seconds]
jasom has joined #lisp
routeveg has joined #lisp
v3ga has joined #lisp
bitmapper has joined #lisp
ane has joined #lisp
samebchase has joined #lisp
ark has joined #lisp
jackhill has joined #lisp
tomaw has joined #lisp
APic has joined #lisp
nckx has joined #lisp
nckx has quit [Max SendQ exceeded]
parisienne has joined #lisp
parisienne has quit [Changing host]
nckx has joined #lisp
even4void[m] has quit [Ping timeout: 265 seconds]
jedii has quit [Quit: Lost terminal]
Ekho has joined #lisp
rumbler31 has quit [Ping timeout: 265 seconds]
mseddon8 has joined #lisp
mgr_ has joined #lisp
sveit has joined #lisp
creat has joined #lisp
simplegauss has joined #lisp
shenghi has joined #lisp
creat has quit [Max SendQ exceeded]
creat has joined #lisp
aeth_ has quit [Ping timeout: 264 seconds]
aartaka has quit [Ping timeout: 256 seconds]
DGASAU has quit [Ping timeout: 240 seconds]
aeth has joined #lisp
hendursaga has joined #lisp
hendursa1 has quit [Ping timeout: 268 seconds]
phantomics has quit [Quit: Ex-Chat]
<contrapunctus> Hm, so given a pathname or namestring, I want to get components like basename, extension, containing directory etc. Is there an established library for this? I'm looking at the UIOP reference, but it's not clear if it does this.
<pve> contrapunctus: you might start with the cl:pathname-* and the *-namestring functions
<pve> those should give you extension and directory at least
<pve> basename too, actually
iamFIREcracker has quit [Ping timeout: 264 seconds]
iamFIREcracker has joined #lisp
Posterdati has joined #lisp
<contrapunctus> pve: oh thanks, that's nice. I'll add that to the cookbook, I guess.
anotherone9999[m has joined #lisp
arichiardi[m] has joined #lisp
<pve> your personal cookbook?
<contrapunctus> The cl-cookbook lol
<contrapunctus> Oh, I missed that it mentions acquiring the file extension, at least.
long4mud has joined #lisp
<pve> oh ok
stargazesparkle has joined #lisp
Gnuxie[m] has joined #lisp
susam has joined #lisp
rogersm has joined #lisp
theothornhill[m] has joined #lisp
M18WABNFN4 has joined #lisp
quanta[m] has joined #lisp
ecm has joined #lisp
MrtnDk[m] has joined #lisp
ms[m] has joined #lisp
dmiles[m] has joined #lisp
stargazesparkle has quit [Ping timeout: 240 seconds]
ms[m] has quit [Ping timeout: 246 seconds]
rogersm has quit [Remote host closed the connection]
quanta[m] has quit [Ping timeout: 265 seconds]
ecm has quit [Ping timeout: 244 seconds]
MrtnDk[m] has quit [Ping timeout: 258 seconds]
Gnuxie[m] has quit [Ping timeout: 244 seconds]
dmiles[m] has quit [Ping timeout: 240 seconds]
rogersm has joined #lisp
anotherone9999[m has quit [Ping timeout: 240 seconds]
rogersm has quit [Remote host closed the connection]
M18WABNFN4 has quit [Ping timeout: 246 seconds]
susam has quit [Ping timeout: 244 seconds]
arichiardi[m] has quit [Ping timeout: 268 seconds]
theothornhill[m] has quit [Ping timeout: 265 seconds]
frgo has quit [Remote host closed the connection]
louis771 has joined #lisp
attila_lendvai has quit [Ping timeout: 246 seconds]
frgo has joined #lisp
orivej has joined #lisp
albusp has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
fubbiquantz has joined #lisp
karlosz has quit [Ping timeout: 265 seconds]
loke[m] has joined #lisp
infra_red[m] has joined #lisp
kaisyu[m] has joined #lisp
christopheroei[m has joined #lisp
katco has joined #lisp
deselby has joined #lisp
ljavorsk has joined #lisp
edgar-rft has joined #lisp
ThaEwat has joined #lisp
adlai has joined #lisp
<adlai> was it really that painful to include an implicit progn inside time !?
etimmons has joined #lisp
posthuman_egrego has joined #lisp
jdormit has joined #lisp
* adlai imagines some old wise fellow cautioning against ever attempting to time more than one thing at once, lest you run foul of sequentialism versus simultaneity
even4void[m] has joined #lisp
dhil has joined #lisp
dieggsy has joined #lisp
msk has quit [Quit: Leaving]
Bourne has joined #lisp
dmiles[m] has joined #lisp
ecm has joined #lisp
susam has joined #lisp
arichiardi[m] has joined #lisp
Gnuxie[m] has joined #lisp
MrtnDk[m] has joined #lisp
ms[m] has joined #lisp
stargazesparkle has joined #lisp
varjag has joined #lisp
quanta[m] has joined #lisp
rogersm has joined #lisp
dddddd has quit [Ping timeout: 256 seconds]
dddddd has joined #lisp
rogersm has quit [Ping timeout: 240 seconds]
scymtym__ has quit [Remote host closed the connection]
scymtym has joined #lisp
anotherone9999[m has joined #lisp
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
dddddd has quit [Ping timeout: 256 seconds]
M18WABNFN4 has joined #lisp
aeth has quit [Ping timeout: 268 seconds]
rumbler31 has joined #lisp
theothornhill[m] has joined #lisp
frgo has quit [Ping timeout: 240 seconds]
aeth has joined #lisp
frgo has joined #lisp
vegansbane6963 has quit [Quit: The Lounge - https://thelounge.chat]
aindilis has quit [Ping timeout: 240 seconds]
frgo_ has joined #lisp
frgo_ has quit [Remote host closed the connection]
frgo_ has joined #lisp
adlai has left #lisp ["neither a lurker nor a follower be"]
frgo has quit [Ping timeout: 260 seconds]
dddddd has joined #lisp
random-nick has joined #lisp
dddddd has quit [Excess Flood]
dddddd has joined #lisp
frgo has joined #lisp
<alanz_> I am working through the sly manual example for snippets, and get this exception https://www.irccloud.com/pastebin/SFS27lgT/
<alanz_> I am probably doing something simple wrong. Any hints?
<beach> It looks like you are attempting an arithmetic operation on a list or a struct.
<beach> alanz_: Oh, and Common Lisp does not have "exceptions". It has "conditions". The difference is very important, as phoe would tell you.
<alanz_> sorry, I struggled with the word choice, now I know
frgo_ has quit [Ping timeout: 260 seconds]
dddddd has quit [Ping timeout: 256 seconds]
<alanz_> beach, the section in the manual is where you highlight parts of the code with "Stickers", which I presume do some sort of tracing.So it is a wrapper around the original argument. I suspect some sort of hook is not being called
dddddd has joined #lisp
<beach> alanz_: You could look at the backtrace to get a better idea of what's going on.
<alanz_> beach, thanks, this is an opportunity for me to learn, I will see what I can find
vegansbane6963 has joined #lisp
dddddd has quit [Ping timeout: 256 seconds]
fubbiquantz has quit [Ping timeout: 246 seconds]
dddddd has joined #lisp
<alanz_> beach, FYI, I tried to apply a sticker to a variable substition in a macro, When I removed that, it works. I wondered about it at the time.
<beach> OK. I am not familiar with SLY, so I don't know what that means. Sorry.
cage_ has joined #lisp
<alanz_> no problem. I think it is wrapping selected code with a statistics-gathering function. And that process is not able to be expanded in a macro. But I am in a happy place again, continuing the tutorial
heisig has joined #lisp
iamFIREc1 has joined #lisp
iamFIREcracker has quit [Ping timeout: 268 seconds]
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
attila_lendvai has joined #lisp
andreyorst[m] has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
imode has quit [Ping timeout: 272 seconds]
attila_lendvai has quit [Ping timeout: 272 seconds]
euandreh has joined #lisp
xlarsx has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
fubbiquantz has joined #lisp
xlarsx has quit [Ping timeout: 240 seconds]
Bourne has quit [Ping timeout: 240 seconds]
dddddd has quit [Ping timeout: 256 seconds]
galex-713 has joined #lisp
JeromeLon has joined #lisp
<JeromeLon> Is there a way to know on which line a form was read after a load? I wrote a DSL, and I want to surface errors (and their line number) at a later analysis stage
<edgar-rft> JeromeLon: built-in no, because Lisp reads code as "forms", meaning opening and closing parens like (...code...), it doesn't count line breaks internally
<phoe> JeromeLon: one second
<phoe> I think you can save this information by macroexpanding into something that contains this data and memorizing it in your objects
louis771 has quit [Quit: Textual IRC Client: www.textualapp.com]
<JeromeLon> phoe: interesting, thanks. It doesn't seem to know about line numbers, but it detects the original form indeed.
Bourne has joined #lisp
rogersm has joined #lisp
<JeromeLon> surely the reader knows about the current line number, as the compiler does use line numbers in error messages, so if I could access it at macro expansion time, I could indeed store it somewhere
nij has joined #lisp
<nij> Hello! If the function in a thread returns 1, how can I ask the thread to kill itself? Or should I make another thread that monitors and does the kill?
rogersm has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
<phoe> what do you mean, kill?
<phoe> just structure the thread function in a way that if 1 is returned, then the function returns
<phoe> or if you can't do that in an easy way, use a non-local return - either GO/RETURN-FROM if you can do that lexically, or CATCH/THROW if you really really need it
dhil has quit [Ping timeout: 240 seconds]
<nij> By kill I mean destroy.. hmm.. you mean if the thread function returns correctly, then the thread terminates automatically? That make sense.. but why didn't my threads terminate themselves at midnight?
adlai has joined #lisp
* adlai looks, for a few deep breaths, and the "| offtopic --> #lispcafe" suffix; and then asks,
<adlai> are toplevel macrolets containing only a single defmethod one of the roots of evil?
villanella has joined #lisp
<adlai> the only reason to kill&yank this macrolet to toplevel is to reduce column width of its body
<nij> Ah I see.. my thread function did encounter an error, but it raises a condition. Usually, if I'm in front of my machine, I can choose manually for it to abort. But while I'm not there, it keeps staying there.
<adlai> don't worry, eventually the power company handles those
<nij> What should I do? Is #'ignore-errors safe to use?
<nij> adlai: I run that every ten minutes, and they clutter my machine. Every morning it's freakin' hot.
<nij> It will kill my machine soon if no action is taken :-(
<carkh> easy, handle the error
<carkh> even if it's to ignore it =)
<adlai> in the scenario you described, ignore-errors will prevent that thread from lurking in the debugger
<nij> lemme try it :D
<carkh> leave a nice comment for future you
<nij> carkh: Oh! There's #'handler-case
<carkh> ;; i'm evil, but not quite top-level macrolet evil
<adlai> however, you must take care that whatever form is wrapped can return NIL without the caller entering the debugger with a similar error, because then you've accomplished nothing
<adlai> e.g., one of my favorite macros is `(or (ignore-errors ,@body) 0), it brings CL one step closer to the bastard child of Haskell and PHP
<carkh> when i started programming i had many of those (back then) try catch (nothing) and continue, they somehow completelly disapeared fromthe code i write today
<carkh> i think there should never be a reason to do that
<carkh> if you can't handle the error, just let it go up the stack
<adlai> maybe monads will help?
<carkh> or at least log the error or something
<adlai> oh look, I found a use for modern mode: distinguishing between "maybe monads [will help?]" and "Maybe monads [won't help!]"
<carkh> yes well mondads can be used for that, but we don't neeed those here in CL i think ?
dddddd has joined #lisp
<adlai> the Maybe monad is just (deftype maybe (type) `(or null ,type))
<adlai> and honestly, I consider it one of the worst code smells in existence
<carkh> monads are cool for pure functional stuff
<carkh> then again i wouldn't go purely functional with CLL
<carkh> CL
Guest57554 has quit [Quit: Lost terminal]
<adlai> it is a much worse root, of a much greater evil, than top-level single-form macrolets; i'd toss it somewhere around screensavers that surreptitiously test whether the user is colorblind
<nij> i see, that's nice suggestion (the error handling part)
<nij> (but why isn't maybe monad good @@?)
<carkh> there was a talk from Rich Hickey about that i think
<adlai> it's a root of evil because its use reduces the expressiveness of the type system in particular, and the code in general
<nij> Anyway.. threads are mysterious for me. I have another mysterious thread, which doesn't come up while sbcl runs.. but it afterward shows up.. sometimes even in multiple instance. It has been eating my machine's resource secretly.
<nij> Here is an inspection did by sly: https://bpa.st/DWGQ , and here is a report after interrupting it by #'break : https://bpa.st/2DRQ
<adlai> consider the much better, although more complex: (defmacro define-maybe-extension (type &optional name) #|have fun!|#)
<nij> Question is.. how do I go on and see what it really is? I asked in #clschool yesterday, and it seems that there's no way to see what the thread function is, and even the start time and end-time.
<carkh> nij: mhh what project are working on with sound ?
<nij> No it's just a mysterious thread.
<nij> I don't know what it is. Now I want to know what it is..
<carkh> well ti's obviously sound related =)
<nij> Can't we see more? Why by default we cannot get our hands on the thread function?
<nij> I mean.. why isn't there #'thread-function so that (thread-function (make-thread #'func)) => #'func
<adlai> your lisp compiler doesn't show this in the inspector?
<nij> Show.. what ?
awb999 has joined #lisp
<adlai> try (mapc 'describe (bt:all-threads))
<adlai> it might print the fully qualified slot name of the initial function
<adlai> along with the name of various specific ones of those functions, if they weren't anonymous
<nij> Nope, it's given here: https://bpa.st/DWGQ
<carkh> it has a name, maybe grep the source code ?
<nij> Isn't that weird? I consider "initial-function", "start-time", "end-time" the basic components of a thread that should be inspectable.
<nij> carkh: what do you mean :O ?
<carkh> your thread is named "Mixer thread 44,100 Hz"
Nilby has joined #lisp
<carkh> search yoru source code for "Mixer Thread"
<carkh> probably in some sound related library you loaded directly or inderctly
<carkh> indirectly
<nij> hmm lemme see
h4ck3r9696 has joined #lisp
Bourne has quit [Ping timeout: 240 seconds]
<contrapunctus> Any library for CL which makes paths behave like they do in the UNIX shell and in other Lisps? 🤔 The behavior has been very unpleasantly surprisingly so far.
<nij> OH It's from a package called MIXALOT :(
<Xach> contrapunctus: what do you mean?
<nij> I don't even recall having it.
<Xach> contrapunctus: what's an example of differing behavior that has unpleasantly surprised you?
<Xach> contrapunctus: *default-pathname-defaults* is the key there.
<adlai> nij: CL threads usually have some dynamic context, too; and "time can be a disaster", so careful with that expectation
<Xach> contrapunctus: it is much more useful than the notion of a process cwd, but it *is* different. so when i care about them staying in sync, i use something like (with-working-directory path <body>), which sets both the cwd and *default-pathname-defaults*
<adlai> nij: in some implementations, you can change the binding of a special variable that another thread sees, without needing to interrupt.
<adlai> it is arguably safer, or at least more polite, to use e.g. #'bordeaux-threads:interrupt-thread for that, so the bindings are modified by the referencing thread
nij has quit [Remote host closed the connection]
nij has joined #lisp
<nij> hmm sounds like it relates to that "functions are hard to serialize"
<yottabyte> equwal: if memory serves, drakma doesn't work if you're using query parameters and a request body simultaneously
<yottabyte> which is actually a problem in puri I think
<Xach> contrapunctus: it's fair to say you don't like it, but it need not be surprising, and it isn't without its advantages.
nij has quit [Remote host closed the connection]
dilated_dinosaur has joined #lisp
villanella has quit [Remote host closed the connection]
villanella has joined #lisp
phantomics has joined #lisp
<contrapunctus> Xach: thanks for your response, I guess I'll explore it in greater depth instead of impetuously writing a new path API as I was thinking 😄 I suppose it can be advantageous, but it was definitely "wtf" for me - completely contrary to the behavior I've come to expect in Guile, CHICKEN, or Elisp.
Lycurgus has joined #lisp
* adlai wonders whether the (list* "public" "domain" paths) horseshoe increases the effectiveness of unlicensing
* adlai also curses himself for being slightly too amnesiac with his repl history, and losing the throwaway code that was the beginnings of a "licensing paralegal" addon
<adlai> despite being almost entirely built on top of asdf, it was aimed to exist at the level of a quicklisp addon, since asdf itself is probably too low-level to ask much beyond whether source code is loadable.
* adlai does not, currently, recall using any symbols from outside CL and ASDF other than ql:system-apropos
<Lycurgus> unlicensing? sounds like removing license files
hiroaki has joined #lisp
<Lycurgus> bold soldiering if so
<adlai> it could be parsed thus, although there's also a license that is named "Unlicense", for cases where an author wants to explicitly designate that something is public domain
<adlai> merely unlinking license files and deleting copyright lines can result in people wasting lots of time trying to figure out who wrote something, even when they don't intend to comply with clauses in the license
<Lycurgus> ah
nij has joined #lisp
<nij> Oh no.. I just upgraded sbcl system-wise, and now my wm breaks :-(
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
<adlai> so don't recompile stumpwm every ten minutes!
<nij> "#<SB-SYS:FD-STREAM for "file "/usr/lib/sbcl/contrib/sb-bsd-sockets.fsl" {1002ACC963}> is a fasl file compiled with SBCL 2.1.1, and can't be loaded into SBCL 2.0.11..
* Lycurgus upgraded to 2.1.1 and thought it broke ql but it didn
<adlai> it's arguably even a good idea to have separate versions of the CL implementation for something as fundamental as the window manager. I could probably brick my stumpwm install with certain updates, although it does not default to using the latest compilers unless I manually recompile.
<adlai> nij: you're using a system-supplied stumpwm package?
<nij> It's weird.. now I have sbcl 2.1.1.. but seems that stumpwm is trying to use 2.0.11?
<nij> adlai: I will heavily consider keeping my own implementation after solving this disaster.
<nij> xD
ukari has quit [Remote host closed the connection]
<adlai> your stumpwm executable is still whichever compiler was used to produce that executable; if it loads libraries from /usr/lib/ ,then it should be the same version as the compiler that places those.
<nij> I think I compiled stumpwm manually, but forgot if that's the case. At least the system-package manager doesn't register having stumpwm.
* adlai does not recall encountering a situation where stumpwm loads ~any~ fasls
<nij> So.. I should recompile my stumpwm?
<nij> adlai: yeah if I keep my config empty, then nothing bad happened.
<adlai> right now you can't use it without aligning those versions - either downgrading SBCL, or recompiling stumpwm with the newly installed compiler
<nij> Currently I have most of them commented, except (ql:quickload '(:pac1 :pac2 ..))
* adlai is puzzled as to why this is necessary; the stumpwm compilation process should produce a self-contained executable
<adlai> I recommend that you confirm that is what your build script will produce, before setting yourself up for a situation where you need to recompile the already-working program every time you update the compiler
<adlai> e.g., SBCL has new releases each month, yet that shouldn't force you to recompile stumpwm each time
jonatack has joined #lisp
Sheilong has joined #lisp
<mfiano> Welp, optimzed CL (SBCL), is significantly faster than _heavily_ optimized C# (for this particular set of algorithms on this particular hardware).
v3ga has quit [Ping timeout: 246 seconds]
v3ga has joined #lisp
ljavorsk has quit [Ping timeout: 240 seconds]
tomaw has quit [Quit: Quitting]
tomaw has joined #lisp
stargazesparkle has quit [Quit: Idle for 30+ days]
dddddd has quit [Ping timeout: 256 seconds]
xlarsx has joined #lisp
dddddd has joined #lisp
<nij> Even sly doesn't open itself correctly, it has been initiating itself for almost half an hour.
rogersm has joined #lisp
<Josh_2> mfiano: doesn't sound like a welp to me
rogersm has quit [Ping timeout: 264 seconds]
long4mud has quit [Quit: WeeChat 3.0.1]
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #lisp
fubbiquantz has quit [Ping timeout: 265 seconds]
amb007 has quit [Ping timeout: 240 seconds]
amb007 has joined #lisp
aeth has quit [Ping timeout: 268 seconds]
aeth has joined #lisp
villanella has quit [Ping timeout: 260 seconds]
theothornhill has joined #lisp
xlarsx has quit []
Bike has joined #lisp
<flip214> mfiano: please write that down somewhere and provide a link, I'd like to show people such results
<mfiano> flip214: pent the last week implementing OpenSimplex2 noise algorithms (6 in total), here are my results: https://gist.github.com/mfiano/cf3f8fa4793a2815d3cec32b78d6fb55
<mfiano> Spent*
<Josh_2> Thats significant
caef^ has quit [Ping timeout: 256 seconds]
<mfiano> Yeah and it could likely be a lot faster, since there are a couple that do not use simple-arrays, but simple-vectors
<Lycurgus> C# hardly surprising;c++ woulda been
<Lycurgus> *c/c++
<Lycurgus> unless 'heavily optimized' meant rewritting it for somethihng other than the .net vm
<mfiano> Heavily optimized means constructing the algorithm, data structures, and types to satisfy the compiler.
<Lycurgus> k
<mfiano> I did the same for CL, so it is not a direct comparison, although it is bit-perfect with the reference implementation
<Lycurgus> is there a CL generally held to be the best performing?
<Lycurgus> (other than ones that compile to C)
<mfiano> SBCL
<Bike> among the free implementations, sbcl has the best optimizing compiler
<Bike> does better than ecl which compiles to C
<Lycurgus> great!
<Bike> optimizing lisp involves different things than optimizing C
<Lycurgus> yes that's what I made the proviso
<edgar-rft> C is worsified Lisp :)
nij has left #lisp ["ERC (IRC client for Emacs 27.1)"]
<mfiano> Some things are faster in CL than C
<mfiano> Look at cl-ppcre for example, that builds regexps at compile time that outperforms Perl's C implementation of a virtual machine. Also Julia is a dynamic language and holds the current record for terraflops per second on a super computing cluster.
theothornhill has quit [Ping timeout: 256 seconds]
<Lycurgus> perl
<mfiano> The engine is C
<Lycurgus> how about vs the boost lib?
<mfiano> It depends on your problem domain
<mfiano> There is no faster language
<Josh_2> unless you take an average speed between a variety of problem domains
<Josh_2> then you will most likely find that python is slow
<mfiano> and the metrics, and the hardware, and the scheduler, and the...
<Bike> if you have an average over domains you don't have something that's as useful for evaluating how to solve a particular problem
<Lycurgus> s/what/why/
<Bike> not everything needs to be put on a linear scale, you know?
rogersm has joined #lisp
<Lycurgus> 'member function points? that used to be a thing. In practice, the labor required to get a thing done generally trumps other considerations
<Lycurgus> with exceptions
rogersm has quit [Ping timeout: 265 seconds]
ebrasca has joined #lisp
rogersm has joined #lisp
orivej has joined #lisp
rogersm has quit [Remote host closed the connection]
ex_nihilo has quit [Quit: Leaving]
Lycurgus has quit [Quit: Exeunt]
rogersm has joined #lisp
thmprover has joined #lisp
<thmprover> Good morning, friends
<Josh_2> Hi
<thmprover> Out of curiosity, has anyone written Lisp code which will emit, say, Fortran code, compile it, execute it, then use the results? That is to say, has anyone used such a strategy?
<beach> What would the use case be?
<heisig> thmprover: I did something like that, but with C code instead of Fortran code. I wouldn't recommend it though.
attila_lendvai has joined #lisp
rogersm has quit [Remote host closed the connection]
<heisig> Foreign function calls and such kind of code loading are quite the pain. I'd recommend generating Lisp code and using CL:COMPILE instead.
shka_ has quit [Quit: Konversation terminated!]
<beach> heisig: I didn't get the impression that FFI was involved in the suggestion.
amb007 has quit [Read error: Connection reset by peer]
<Nilby> beach: I imagine the use case is being be physicist and it's not accepted "proof" for publication if it doesn't use the old fortan math code that nobody understands.
amb007 has joined #lisp
<beach> Hmm.
jonatack has quit [Ping timeout: 256 seconds]
<thmprover> beach: I'm working on some climate modeling, and there are a number of variations of a model (a family of families of models) I'd like to investigate, and I may delegate a lot of the work to pre-existing Fortran libraries.
<beach> thmprover: So why is Common Lisp involved?
shka_ has joined #lisp
<thmprover> heisig: interesting to know FFI is tedious, but I was thinking of stand-alone programs.
rogersm has joined #lisp
<thmprover> beach: Oh, I've written a lot of CL code already for related computations, and I'm using the results later on in my CL code (or, I would like to)
<Nilby> Unfortunately Lisp math gets more accurate results, with rationals, contaigin, bignums, etc., so it's wrong.
rogersm_ has joined #lisp
rogersm has quit [Read error: Connection reset by peer]
jonatack has joined #lisp
<Nilby> And unlike CS, other sciences doesn't ususally give you much credit for the cool new program that did the maths.
<thmprover> Nilby: my background is actually in numerical analysis, so you are preaching to the choir :)
<Nilby> Ahh. :)
<thmprover> And, unfortunately, I am not smart enough to solve the Navier-Stokes-Fourier equations by hand :(
<Nilby> Hench perhaps your interest in Lisp.
<thmprover> Scheme was the first "real" language I learned, CL has better performance without sacrificing, uh, "high-level-ness"
<adlai> thmprover: it's not a matter of smartness, those are either an open problem, or the kind of tedium that you can attack using any reasonable symbolic algebra system; and CL does have one of those.
<Nilby> Unfortunately, I did math homework in the computer since the beginning, so I that's all I know.
<adlai> even the open problem is imprecisely specified; e.g., existence is not an open problem in the context where you are using those equations, only in pathological "let's pretend that #lispcafe is a boundary that is both open and closed" cases
dhil has joined #lisp
<thmprover> adlai: as of present, no CAS is capable enough to solve the equations, it can only be done by numerical methods, specifically via numerical linear algebra. And sadly, CL lacks good numerical linear algebra libraries. (I say this with love.)
jonatack has quit [Ping timeout: 272 seconds]
<adlai> my guess is that if you are going to the trouble of implementing the FORTRAN grammar, you might as well do so using automated tools and the formal specification, rather than writing your writer by hand; and then you might as well leave the parsed algorithms in your IR, rather than keeping yet another compiler in your OODA loop...
<adlai> I was not suggesting using a CAS for numerical solutions, only for investigating the questions that you don't want to derive manually
akoana has joined #lisp
<adlai> maybe after a few Fields medals that nobody understands, Perelman will get another call after making another impressive step for humanity
<adlai> maybe not.
jonatack has joined #lisp
<Nilby> I used to have a hobby of re-implementing some fortan physics code in Lisp, but I didn't understand what I was doing until a plotted a graph.
attila_lendvai has quit [Ping timeout: 272 seconds]
<thmprover> adlai: ah, I see, in that case I agree with your train of thought about using a CAS for guiding symbolic reasoning. I'd have to take another look at automated tools. I'm still investigating what other routes are available here, so I'm just "thinking out loud" here.
jonatack has quit [Ping timeout: 256 seconds]
jonatack has joined #lisp
aeth has quit [Ping timeout: 264 seconds]
villanella has joined #lisp
aeth has joined #lisp
* adlai has never heard a positive testimonial from people who actually went ahead with such a strategy, instead of direct FFI
<thmprover> Yeah, there may be good reason for that! ;)
prxq_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
prxq has joined #lisp
villanella has quit [Quit: villanella]
cmsimon has joined #lisp
rogersm_ has quit [Remote host closed the connection]
rogersm has joined #lisp
rogersm has quit [Remote host closed the connection]
<prxq> adlai: what strategy? I used a lot of f2cl-ed code once uppon a time. Was fine. But I think I might have misunderstood something :-)
JeromeLon has quit [Quit: Connection closed]
<prxq> thmprover: I don't know anyone who has used a Fortran compiler as an assembler backend for some other compiler. People have used C a lot for that.
<prxq> With SBCL it usually isn't worth the hassle. It's pretty fast as it is.
cmsimon has left #lisp [#lisp]
<prxq> the main problem with climate models is sensitivity to uncertainty. If you want to end your career quickly check that out and tell your supervisor the results ;)
h4ck3r9696 has quit [Ping timeout: 265 seconds]
<thmprover> prxq: Regarding Fortran-vs-C, a lot of the numerical linear algebra libraries are written in Fortran (which is what guided my judgement), and a small-but-growing number of C++ libraries which seem competitive.
<thmprover> Regarding model sensitivity, yeah, it seems like that's a huge part of the field, which is interesting. As a mathematician, I'm more inclined to be skeptical of my own results, and couch any findings in swaths of disclaimers and caveats. (It's also why I'm a terrible salesman.)
aeth has quit [Ping timeout: 240 seconds]
skapata has joined #lisp
aeth has joined #lisp
h4ck3r9696 has joined #lisp
<fitzsim> is it possible on Debian to install quicklisp system-wide, such that no ~/.sbclrc is needed for a given user, yet still anything installed by the system-wide quicklisp is accessible via asdf:load-system?
<fitzsim> apt install cl-quicklisp seems to just install /usr/share/common-lisp/source/quicklisp/quicklisp.lisp, but each user still has to set it up, from what I can tell
<fitzsim> ideally I'd like to do all quicklisp operations system-wide, and have the results available to users via asdf, without per-user configuration
<fitzsim> just joined #quicklisp in case replies make more sense there
<Bike> you define an /etc/sbclrc file i think it's loaded by sbcl before the user sbclrc
<Bike> so you can put the quicklisp load there
heisig has quit [Quit: Leaving]
long4mud has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
<etimmons> fitzsim: what do you mean by "do all quicklisp operations system-wide"? It sounds like you want an administrator to ql:quickload things and have the users only use asdf:load-system, but want to make sure
<prxq> fitzism: if you want to generate code, you can choose your backend. C simply makes more sense, normally, because people know it better.
<etimmons> There's nothing stopping you from installing quicklisp to a shared folder and loading it in a system wide init file like Bike suggested. But you'll have to get file permissions right if multiple users can quickload and potentially install new systems to the shared folder
<etimmons> But if you want the more restricted case of a single user installing systems via Quicklisp and making them available, you can probably just configure ASDF system wide to look for systems inside the central quicklisp folder (there are a multitude of ways to do that)
h4ck3r9696 has left #lisp [#lisp]
imode has joined #lisp
surabax_ has joined #lisp
Nilby` has joined #lisp
surabax has quit [Ping timeout: 265 seconds]
waleee-cl has joined #lisp
Nilby has quit [Ping timeout: 264 seconds]
slyrus has quit [Quit: Leaving]
surabax_ has quit [Quit: Leaving]
marusich has joined #lisp
Duuqnd has joined #lisp
gareppa has joined #lisp
<adlai> prxq: once upon a time, for whatever odd reason, I had no carrion luggage on a long flight across the pond and actually read a duty-free catalog, back in the years when those things advertised a turntable that burns CD-ROMs; my guess is that f2cl doesn't get driven in reverse much after it's had its run.
gareppa has quit [Remote host closed the connection]
SpaceIgor2075 has joined #lisp
SpaceIgor2075 has quit [Remote host closed the connection]
Ziemas_ is now known as Ziemas
aeth has quit [Quit: ...]
aeth has joined #lisp
mason has joined #lisp
aindilis has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
hiroaki has quit [Ping timeout: 240 seconds]
hiroaki has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
gioyik has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
pankajsg has quit [Ping timeout: 264 seconds]
amb007 has joined #lisp
Kilomomo has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
shka_ has quit [Remote host closed the connection]
shka_ has joined #lisp
hiroaki has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
awb999 has quit [Quit: Leaving]
hiroaki has joined #lisp
recalloc has quit [Ping timeout: 264 seconds]
Nilby` has quit [Ping timeout: 264 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
Kilomomo has quit [Quit: Leaving.]
Kilomomo has joined #lisp
hiroaki has quit [Ping timeout: 264 seconds]
X-Scale` has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
X-Scale has quit [Ping timeout: 256 seconds]
X-Scale` is now known as X-Scale
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
<fitzsim> etimmons: re: "... but want to make sure"; that's correct
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
<fitzsim> I guess I thought this would be set up automatically by Debian
hiroaki has joined #lisp
kam1 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
<fitzsim> unless I reconfigure quicklisp too, I think this'll mean pointing asdf configuration to somewhere under /root/quicklisp/dists/quicklisp
amb007 has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
amb007 has quit [Read error: Connection reset by peer]
nij has joined #lisp
amb007 has joined #lisp
<nij> Help.. I upgraded my sbcl this morning and every thing get messed up. I'm unable to return to that state.. so would just fix any error that pops out anyway.
<nij> Currently, I have trouble connecting to slynk server from emacs.
<nij> In emacs, running sly and turn on a slynk server port, then `M-x sly-connect` does connect to that server successfully.
<nij> However, if I run sbcl from terminal, quickload slynk, and open a slynk server with a port, then `M-x sly-connect` doesn't connect to that server correctly.
<nij> The error from the emacs debugger, while connecting, is given here https://bpa.st/AAUA ..
recalloc has joined #lisp
cage_ has quit [Quit: Leaving]
euandreh has quit [Ping timeout: 260 seconds]
<Bike> nij: the error says (i think) that sly-mrepl--insert-prompt is being called with three arguments when it expects four to five
nij has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
gioyik has quit [Ping timeout: 268 seconds]
<Bike> nij: https://github.com/joaotavora/sly/commit/a0cb30051434be91f8c1889643a77bf218f8b0f5 this fairly recent commit changed what arguments that function takes oh god damn it
amb007 has joined #lisp
kam1 has joined #lisp
euandreh has joined #lisp
anticrisis has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
nij has joined #lisp
<nij> OH lemme see!
<Bike> uh, hopefully you saw my messages i guess
<Bike> long story short my guess is there's a cache out of wack
<nij> cache out of wack?
<Bike> like sbcl from terminal and sbcl from emacs are loading different versions of slynk for whatever reason, i mean
<Bike> your emacs is using the new one but your terminal sbcl isn't sending it what it expects
<Bike> maybe it's as simple as ql:update-all-dists, i don't know
amb007 has quit [Read error: Connection reset by peer]
<nij> lemme try
<nij> im desperate enough to try anything
amb007 has joined #lisp
<Bike> if that doesn't work you'd probably have to finagle sbcl to load the new slynk manually
kam1 has joined #lisp
<Bike> which is doable but sort of annoying
kam1 has quit [Read error: Connection reset by peer]
amb007 has quit [Read error: Connection reset by peer]
<nij> It doesn't work.
<nij> How to check which slynk sbcl runs?
amb007 has joined #lisp
aeth_ has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
<Bike> hm, dunno how to get it problematically. you can use (ql:where-is-system :slynk) and then look at the asd file
<Bike> s/problematically/programatically/
aeth has quit [Disconnected by services]
aeth_ is now known as aeth
<nij> ! ~/.quicklisp/dists/quicklisp/software/sly-20210124-git/slynk/" VS ~/.emacs.d/.local/straight/repos/sly/slynk/"
amb007 has joined #lisp
<Bike> oh. well, that's probably it then
<nij> I see. I'm using doom, which grabs another piece of slynk to emacs dir.
* nij almost burst to tears
<Bike> there's some clever way to configure asdf to find certain systems, but I don't understand it well enough to help you there
<Bike> i only know the ancient dumbass way, which is (push "/path/to/system" asdf:*central-registry*)
<Bike> or, if sbcl from emacs works fine, you could figure out what it's doing and copy that
<fitzsim> Bike: thanks for the suggestion; it looks like Debian's cl-quicklisp package doesn't really support what I want to do without a bunch of extra configuration
<Bike> no prob
<fitzsim> so I'll just stick to using quicklisp in per-user home directories
<nij> lemme try. Sincere thanks from me, Bike.
<fitzsim> FWIW, Debian's cl-asdf package works the way I was expecting cl-quicklisp to work
<fitzsim> # apt install cl-<whatever>; $ sbcl ... (require "asdf") (asdf:load-system "whatever")
<Bike> again, no prob
<fitzsim> without any ~/.sbcrc or /etc/sbclrc munging
<Bike> that's good
<Bike> debian's common lisp packages used to be really annoying so i'm glad they've fixed them up apparently
<fitzsim> it's just too bad that Debian doesn't have "cl-mcclim" yet
<fitzsim> (and it's many dependencies)
<fitzsim> *its
ralt has joined #lisp
euandreh has quit [Ping timeout: 264 seconds]
<nij> Bike...
<nij> It werked.
<nij> Tears out
<Bike> oh, good.
amb007 has quit [Read error: Connection reset by peer]
euandreh has joined #lisp
recalloc has quit [Remote host closed the connection]
amb007 has joined #lisp
<Bike> it's unfortunate that sly didn't report a version mismatch itself
<Bike> that might be an interesting feature to add. i think slime/swank has it
<nij> You mean on quicklisp?
theothornhill has joined #lisp
<nij> I think doomemacs just pull the latest version by default. It's my fault.. I should have pinned down the version.
<nij> Now I'm restarting stumpwm and see if I can connect to it from mrepl. Thanks again, very much.
nij has quit [Quit: ERC (IRC client for Emacs 27.1)]
<Bike> it's nothing to do with quicklisp. I mean, the emacs sly and the lisp slynk are two different systems that have to communicate, right? so there's a protocol between them. At the start of communication they could compare and make sure they're using the same version of the protocol, and so give you a more comprehensible error like "version mismatch:
<Bike> sly 3.2 slynk 3.0"
<Bike> you'd still have to update stuff, but you wouldn't have to dig through emacs's stupid backtraces to understand the problem
kam1 has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
Bourne has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
theothornhill has quit [Remote host closed the connection]
gioyik has joined #lisp
equwal has quit [Ping timeout: 246 seconds]
karlosz has joined #lisp
andreyorst[m] has quit [Remote host closed the connection]
kenran has joined #lisp
kenran has quit [Client Quit]
kenran has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
imode has quit [Ping timeout: 272 seconds]
Nilby` has joined #lisp
Nilby` has quit [Ping timeout: 240 seconds]
imode has joined #lisp
sm2n has quit [Quit: Leaving]
Josh_2 has quit [Ping timeout: 264 seconds]
Bike has quit [Quit: Connection closed]
hvxgr has joined #lisp
jonatack_ has joined #lisp
Nilby` has joined #lisp
<adlai> what's the meaning of the symbol names that have more than one consecutive hyphen?
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
jonatack has quit [Ping timeout: 256 seconds]
<phoe> haven't seen them around CL
<adlai> I guess it was a typo
<Nilby`> I think most of the time it means a "minus" that happens to be next to a "hyphen", e.g. SB-KERNEL:TWO-ARG-- SB-VM::FAST---MOD64/FIXNUM=>FIXNUM
karlosz has quit [Ping timeout: 264 seconds]
gaqwas has quit [Ping timeout: 256 seconds]
kam1 has joined #lisp
<mfiano> In elisp, that means it's private, because they lack package qualifiers.
kam1 has quit [Read error: Connection reset by peer]
* adlai frequently sees such names in emacs tab completion; and has also encountered them occasionally in URLs generated by Coleslaw, so did not assume it was a typo
<adlai> there is probably no reason to ever use consecutive spacing hyphens in a CL name, given the variety of punctuation that is allowed
devon has quit [Read error: Connection reset by peer]
devon has joined #lisp
kam1 has joined #lisp
kam1 has quit [Read error: Connection reset by peer]
warweasle has joined #lisp
<warweasle> Hello. Has anyone gotten the e-trade api to work with lisp?
Bike has joined #lisp
aeth has quit [Ping timeout: 240 seconds]
* warweasle is having trouble getting cl-oauth to work without knowing anything about oauth.
aeth has joined #lisp
Duuqnd_ has joined #lisp
SoTypicalNoob has joined #lisp
Duuqnd has quit [Ping timeout: 240 seconds]
Bourne has quit [Ping timeout: 240 seconds]
aeth has quit [Ping timeout: 246 seconds]
<ralt> Bike: sly/slynk does warn you on version mismatch
<ralt> At least I've seen it do so for me
aeth has joined #lisp
gaqwas has joined #lisp
Duuqnd_ has quit [Quit: Leaving]
adlai has left #lisp ["occluded by generality"]
shka_ has quit [Ping timeout: 240 seconds]
aeth has quit [Ping timeout: 240 seconds]
aeth has joined #lisp
seabass[m]2 has joined #lisp
SoTypicalNoob has quit [Remote host closed the connection]
Jesin has quit [Quit: Leaving]
Jesin has joined #lisp
Josh_2 has joined #lisp
<Josh_2> When using cl-autowrap how do I get c-include to prefix all function names with <package>?
devon has quit [Read error: Connection reset by peer]
<ralt> (BOUNDP 'symbol) returns NIL for symbols declared with (DEFINE-SYMBOL-MACRO). It feels like a bug, doesn't it?
<ralt> I guess in theory it's not but... it feels like it should be, when define-symbol-macro is used in practice :/
jonatack_ has quit [Quit: jonatack_]
jonatack has joined #lisp
pve has quit [Quit: leaving]
<Bike> the symbol isn't actually bound if it's a macro
<Bike> even if it is a macro, you can still do (setf (symbol-value 'symbol) whatever) to make it bound, I think
gaqwas has quit [Ping timeout: 240 seconds]
<Josh_2> This library I'm trying to wrap with cl-autowrap has 24 header files, do I need a c-include for each one?
jonatack has quit [Read error: Connection reset by peer]
jonatack_ has joined #lisp
<Josh_2> seems I can use :include-sources
<ralt> Bike: thanks for the symbol-value accessor suggestion
nij has joined #lisp
<Bike> keep in mind that having something as both a symbol macro and a bound variable is really confusing
nij has left #lisp [#lisp]
jonatack_ has quit [Read error: Connection reset by peer]
<ralt> Bike: this is in the context of https://gitlab.com/ralt/pvars , where I'm trying to hide away the fact that those are not bound symbols
jonatack__ has joined #lisp
lowryder_ is now known as lowryder
<Bike> i see
jonatack__ has quit [Quit: jonatack__]
jonatack has joined #lisp
kenran has quit [Remote host closed the connection]
<Josh_2> Do I have to write like 6 different system definitions to use cffi/c2ffi with 6 different header files?
<Josh_2> 5 actually
<Josh_2> this is my first time doing this
<Josh_2> one of the examples is the sdl bindings and they have a new defsystem for each different .h
<Josh_2> maybe I can just have 5 components
jonatack has quit [Read error: Connection reset by peer]
fubbiquantz has joined #lisp
jonatack has joined #lisp
jonatack has quit [Read error: Connection reset by peer]
jonatack_ has joined #lisp
aeth has quit [Ping timeout: 256 seconds]
aeth has joined #lisp
<jasom> Does fare-quasiquote-optima not work anymore? With the fare-quasiquote readtable, this fails: (optima:match '(1 (2 3) 4 5) (`(a (b ,c) ,@d) (list a b c d)))
<jasom> with undefined function LIST*P
jonatack_ has quit [Read error: Connection reset by peer]
jonatack_ has joined #lisp
frgo has quit [Remote host closed the connection]
kam1 has joined #lisp
frgo has joined #lisp
<jasom> switching to trivia works fine, but it would be suboptimal if optima stopped working
rgherdt has quit [Ping timeout: 272 seconds]
Josh_2 has quit [Ping timeout: 272 seconds]