jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
rgherdt has quit [Remote host closed the connection]
xlarsx has quit [Ping timeout: 268 seconds]
lisp123 has quit [Read error: Connection reset by peer]
lisp123 has joined #commonlisp
xlarsx has joined #commonlisp
Ox151 has quit [Remote host closed the connection]
Ox151 has joined #commonlisp
xlarsx has quit [Ping timeout: 252 seconds]
thawes has quit [Quit: Konversation terminated!]
Lord_of_Life has quit [Ping timeout: 264 seconds]
Lord_of_Life has joined #commonlisp
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 260 seconds]
random-nick has quit [Ping timeout: 264 seconds]
lisp123 has quit [*.net *.split]
akoana has quit [*.net *.split]
causal has quit [*.net *.split]
knusbaum has quit [*.net *.split]
Lord_of_Life has quit [*.net *.split]
Sauvin has quit [*.net *.split]
genpaku has quit [*.net *.split]
phantomics has quit [*.net *.split]
resttime has quit [*.net *.split]
Spawns_Carpeting has quit [*.net *.split]
dtman34 has quit [*.net *.split]
srji has quit [*.net *.split]
theBlackDragon has quit [*.net *.split]
migap has quit [*.net *.split]
pranavats has quit [*.net *.split]
ahlk has quit [*.net *.split]
fiddlerwoaroof has quit [*.net *.split]
tyson2 has quit [*.net *.split]
viaken has quit [*.net *.split]
xantoz has quit [*.net *.split]
jfb4 has quit [*.net *.split]
xantoz has joined #commonlisp
viaken has joined #commonlisp
genpaku has joined #commonlisp
ahlk has joined #commonlisp
causal has joined #commonlisp
Colere has joined #commonlisp
dtman34 has joined #commonlisp
theBlackDragon has joined #commonlisp
Colere is now known as Sauvin
knusbaum has joined #commonlisp
akoana has joined #commonlisp
resttime has joined #commonlisp
fiddlerwoaroof has joined #commonlisp
Spawns_Carpeting has joined #commonlisp
Lord_of_Life has joined #commonlisp
jfb4 has joined #commonlisp
srji has joined #commonlisp
migap has joined #commonlisp
motherhucker has joined #commonlisp
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #commonlisp
phantomics has joined #commonlisp
tyson2 has joined #commonlisp
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 260 seconds]
drainpipe has joined #commonlisp
xlarsx has joined #commonlisp
drainpipe has quit [Ping timeout: 248 seconds]
Ox151 has quit [Remote host closed the connection]
xlarsx has quit [Ping timeout: 250 seconds]
drainpipe has joined #commonlisp
waleee has quit [Ping timeout: 246 seconds]
tyson2 has quit [Remote host closed the connection]
VincentVega has joined #commonlisp
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 264 seconds]
motherhucker has quit [Quit: leaving]
xlarsx has joined #commonlisp
selfish has joined #commonlisp
tevo has quit [Ping timeout: 264 seconds]
drainpipe has quit [Ping timeout: 268 seconds]
causal has quit [Quit: WeeChat 3.6]
jeosol has joined #commonlisp
Sauvin has quit [Quit: Leaving]
grymzu has joined #commonlisp
xlarsx has quit [Ping timeout: 260 seconds]
xlarsx has joined #commonlisp
azimut has joined #commonlisp
Oddity has quit [Ping timeout: 246 seconds]
akoana has quit [Quit: leaving]
xlarsx has quit [Remote host closed the connection]
xlarsx has joined #commonlisp
aartaka has joined #commonlisp
xlarsx has quit [Ping timeout: 264 seconds]
igemnace has quit [Remote host closed the connection]
aartaka has quit [Ping timeout: 264 seconds]
aartaka has joined #commonlisp
pve has joined #commonlisp
chip_x has joined #commonlisp
chipxxx has quit [Ping timeout: 264 seconds]
aartaka has quit [Ping timeout: 248 seconds]
shka has joined #commonlisp
igemnace has joined #commonlisp
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 250 seconds]
drainpipe has joined #commonlisp
aartaka has joined #commonlisp
xlarsx has joined #commonlisp
drainpipe has quit [Ping timeout: 264 seconds]
aartaka has quit [Ping timeout: 250 seconds]
xlarsx has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
pranavats has joined #commonlisp
aartaka has quit [Ping timeout: 264 seconds]
karlosz has quit [Remote host closed the connection]
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 264 seconds]
_cymew_ has joined #commonlisp
d4ryus has quit [Quit: WeeChat 3.6]
d4ryus has joined #commonlisp
ttree has quit [Ping timeout: 252 seconds]
rgherdt has joined #commonlisp
semz has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
semz has joined #commonlisp
aartaka has joined #commonlisp
Dynom_ has joined #commonlisp
Dynom_ is now known as Guest4005
utis has joined #commonlisp
<utis> is there a way to suppress messages to stderr for a certain library? portaudio is producing a lot of clutter.
<phoe> utis: sounds like a portaudio question rather than a CL one
<utis> not if there's a general way to suppress messages from a library
<phoe> there is none that I'm aware of, especially if you are not in the CL land anymore and it's foreign code that prints to stderr
puchacz has joined #commonlisp
<beach> Also Common Lisp does not have a "stderr".
<phoe> yeah, but portaudio is a foreign library
<beach> Then all bets are probably off.
<utis> surely it has something that corresponds to stderr when one compiles a unix program
<utis> ?
<phoe> it does, cl:*error-output*
<beach> utis: But if a foreign library does not go through the corresponding Common Lisp stream, then there is probably not much the implementation can do.
<phoe> but I'm pretty sure cl-portaudio does not wrap portaudio's errors written to stderr only to redirect them to *error-output*
<_death> utis: on unix-like systems, stderr has file descriptor number of 2.. you can close it and open, say, /dev/null to "redirect" any bytes written to it
<phoe> it's a per-process global resource too, so this way you'll redirect messages from all libraries which is likely not what is wanted
<phoe> but yeah, short of recompiling portaudio to do something more meaningful I can't see any other option - its code is littered with fprintf(stderr, ...); and all such invocations would need to be replaced at least with a different file descriptor
Brucio-61 has quit [Ping timeout: 252 seconds]
<phoe> sounds like a possible PR to portaudio itself, and once it's there, you should be able to configure it from cl-portaudio
scymtym has quit [Ping timeout: 246 seconds]
<phoe> but yeah, nothing else that can be done on the lisp side to solve this problem, especially from the CL side.
cosimone has joined #commonlisp
<utis> for now i'll wrap a calls to portaudio in (handler-bind ((warning #'muffle-warning)) ...)
<utis> s/a/all
cage has joined #commonlisp
<beach> If the library writes directly to stderr, I don't see how that will fix your problem.
<utis> i don't know, it does seem to work
<utis> or maybe not, sorry
xlarsx has joined #commonlisp
<utis> so to be clear, there's no way to get the effect of 2>/dev/null /inside/ the program?
<beach> You would have to use the Unix interface provided by the implementation.
<beach> But, as phoe pointed out, that is probably way overkill and not recommended. Error messages indicate problems, and the problems should be fixed instead.
<_death> I too close my eyes when the road shows me warning signs ;)
<beach> Yes, exactly that.
<phoe> utis: weird, I cannot see any calls to WARN inside cl-portaudio - I don't think HANDLER:BIND will prevent it from writing to stderr
<phoe> but to get unix fd redirection like that I guess you could manually call unix close on fd 2, then open /dev/null under the same fd
<phoe> but that's already dirty unix stuff that I don't feel knowledgeable enough in
scymtym has joined #commonlisp
Brucio-61 has joined #commonlisp
<utis> yes, sorry, i forgot i already had 2>/dev/null in my command, so the handler-bind didn't do anything
chip_x has quit [Quit: Leaving]
<utis> seems that people have been complaining to portaudio about these warnings for more than 10 years
xlarsx has quit [Remote host closed the connection]
xlarsx has joined #commonlisp
szkl has joined #commonlisp
<phoe> probably the best thing to do would be to grep all of portaudio's code for `fprintf(stderr` and replace these with a call to a logging function that can be configured to print somewhere else, but this is already #portaudio content
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
random-nick has joined #commonlisp
xlarsx has quit [Ping timeout: 250 seconds]
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 268 seconds]
jmdaemon has quit [Ping timeout: 248 seconds]
attila_lendvai has joined #commonlisp
xlarsx has joined #commonlisp
tyson2 has joined #commonlisp
xlarsx has quit [Ping timeout: 248 seconds]
lisp123 has joined #commonlisp
<lisp123> What is CLX used for?
<jackdaniel> to interface with X11 server
<lisp123> Can it be used to create GUIs?
<lisp123> I'm not sure where the boundaries between X11/Wayland and GTK lie
<jackdaniel> it may be used to create GUI's, sure
<jackdaniel> X11/Wayland are both so-called display servers - they provide an abstraction over actual hardware with a common API
<jackdaniel> s/common/specified/
<jackdaniel> GTK is a client that talks with said display server
<jackdaniel> a display server will typically manage windows, so there may be numerous clients
<jackdaniel> when you use clx, then you may create a window, receive events from this window and request drawing on it
<jackdaniel> toolkits like gtk give you more high level tools - like abstract away certain requests and event handling into particular gadgets/widgets - i.e a push button
<lisp123> I see
<lisp123> Does McClim use CLX?
<jackdaniel> in principle it would be possible to write GTK backend that directly talks with (i.e) a framebuffer and processes events by reading /dev/whatever
<jackdaniel> it does (in its default backend)
<lisp123> Good stuff
<lisp123> I have a linux machine now, I'm might do more mcclim hacking in the future
<beach> Well, sort of (good stuff). CLX is old. It predates many X11 additions, and it doesn't use generic functions and standard classes. I would very much like to see a more modern version of CLX that prioritizes modern use of X11.
<lisp123> beach, Although X11 seems to be on a slow way out (Wayland). A bit no man's land given Wayland doesn't cover everything in Xorg, but that's a separate discussion
Mandus has quit [Read error: Connection reset by peer]
<lisp123> I'm perfectly happy with X11 though
<jackdaniel> soon™ we'll release an SDL2 backend (FFI based whew), that works on all major platforms
<beach> I have heard that X11 is on its way out for years, perhaps more than a decade.
<jackdaniel> it is indeed mor ethan a decade
<lisp123> If I create a McClim app, can it be made into a 'executable'?
<jackdaniel> 12 years iirc
<jackdaniel> yes it can
Mandus has joined #commonlisp
<lisp123> On linux, what's the ideal way to package lisp apps?
<lisp123> For now I just would run sbcl and run the app
pranavats has left #commonlisp [Error from remote client]
<jackdaniel> that depends on your package manager
<lisp123> No one size fits all?
<lisp123> i guess .deb and .rpm might cover a lot (or flatpak?)
<jackdaniel> if you distribute things as rpm, then you build the binary, add dependant files and finally archie it as rpm ready to extract
<lisp123> I see
<jackdaniel> or if you create a source code distribution, then you create a bundle with all dependencies and that's all, the user will use asdf to load it
<lisp123> Yeah that seems like the better way to begin with, unless it was a really commercial app that needed one-click install
<jackdaniel> another thing is that sometimes you may want to daemonize your software, then you also package unit file or other init script
<lisp123> For now I might just end up doing that to-do list app that was always on my list
<jackdaniel> well, that's a dev ops job fwiw
attila_lendvai has quit [Ping timeout: 260 seconds]
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
Mandus has quit [Ping timeout: 260 seconds]
Mandus has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
lisp123 has quit [Quit: Leaving]
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 268 seconds]
cage has quit [Quit: rcirc on GNU Emacs 27.1]
Everything has joined #commonlisp
karlosz has joined #commonlisp
<judabuda> could it be a problem
<judabuda> Could it be a problem/big difference if running CL on linux or on windows?
<phoe> no
xlarsx has joined #commonlisp
<judabuda> I'm having trouble starting hunchentoot
<judabuda> Throws "usocket" error
drainpipe has joined #commonlisp
<phoe> does (ql:quickload :hunchentoot) succeed?
<phoe> can you paste at https://plaster.tymoon.eu/edit# what exactly you're doing and what exactly is the error?
<judabuda> Yes
<judabuda> phoe: im running this exact code https://edicl.github.io/hunchentoot/#teen-age
<phoe> works on my machine
drainpipe has quit [Ping timeout: 248 seconds]
<phoe> is the error something like "address already in use"? because if something else already uses port 4242 then no other process can use that part
<phoe> and it's possible that e.g. another hunchentoot acceptor is bound to that port
<judabuda> Oh wait
<judabuda> It gave me error, but the instance has started on *:4242
<judabuda> phoe: here's the error https://paste.debian.net/hidden/d3b90286/
<phoe> stackoverflow suggests that this port is already used by something else
<judabuda> Well it seems to work
<phoe> if it's a problem, then try restarting your lisp for good measure
<judabuda> phoe: Yeah, thanks. Are packages supposed to be loaded once? like (ql:quickload :package-name)
<phoe> these are systems rather than packages, but yes, once after you start a fresh lisp image
<phoe> and then maybe reload them if you have changed them during development
<judabuda> Okay
VincentV` has joined #commonlisp
VincentVega has quit [Ping timeout: 260 seconds]
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
vn36_ has joined #commonlisp
<pjb> Mind using unwind-protect to close your sockets or servers when an error occurs.
notzmv has joined #commonlisp
<phoe> note that this example from hunchentoot has no way of using unwind-protect since the created acceptor has indefinite extent
cdegroot has quit [Quit: No Ping reply in 180 seconds.]
cdegroot has joined #commonlisp
pranavats has joined #commonlisp
srji has quit [Ping timeout: 268 seconds]
srji has joined #commonlisp
Mandus has quit [Ping timeout: 248 seconds]
Mandus has joined #commonlisp
selfish has quit [Ping timeout: 260 seconds]
_cymew_ has quit [Ping timeout: 264 seconds]
samebchase- has quit [Remote host closed the connection]
cage has joined #commonlisp
tevo has joined #commonlisp
vn36_ has quit [Ping timeout: 250 seconds]
seok has quit [Read error: Connection reset by peer]
pjb has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
orestarod has joined #commonlisp
attila_lendvai has quit [Ping timeout: 268 seconds]
tyson2 has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
aartaka has quit [Ping timeout: 250 seconds]
IPmonger has joined #commonlisp
aartaka has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
vn36 has joined #commonlisp
_cymew_ has joined #commonlisp
cosimone` has joined #commonlisp
cosimone has quit [Ping timeout: 260 seconds]
Catie has quit [Remote host closed the connection]
Everything has quit [Quit: leaving]
McParen has joined #commonlisp
tyson2 has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.7]
akoana has joined #commonlisp
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
motherhucker has joined #commonlisp
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
motherhucker has quit [Read error: Connection reset by peer]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
motherhucker has joined #commonlisp
VincentV` has quit [Ping timeout: 250 seconds]
waleee has joined #commonlisp
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
motherhucker has quit [Ping timeout: 248 seconds]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #commonlisp
_cymew_ has quit [Ping timeout: 252 seconds]
cosimone` has quit [Ping timeout: 252 seconds]
Brucio-61 has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 250 seconds]
xlarsx has quit [Remote host closed the connection]
xlarsx has joined #commonlisp
vn36 has quit [Ping timeout: 246 seconds]
vn36 has joined #commonlisp
causal has joined #commonlisp
xlarsx has quit [Ping timeout: 260 seconds]
motherhucker has joined #commonlisp
_cymew_ has joined #commonlisp
cosimone` has joined #commonlisp
ttree has joined #commonlisp
Brucio-61 has joined #commonlisp
pjb has joined #commonlisp
cosimone` has quit [Remote host closed the connection]
igemnace has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
motherhucker has quit [Ping timeout: 250 seconds]
thuna` has joined #commonlisp
Oladon has joined #commonlisp
causal has quit [Quit: WeeChat 3.6]
McParen has left #commonlisp [#commonlisp]
xlarsx has joined #commonlisp
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
attila_lendvai has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
vn36 has quit [Ping timeout: 250 seconds]
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
perrierjouet has joined #commonlisp
_cymew_ has quit [Ping timeout: 252 seconds]
HiPhish has joined #commonlisp
<HiPhish> Hi there, a couple of months back I posted here an announcement for cl-cmark
<HiPhish> It's a wrapper library around the official C library for CommonMark (a well-defined Markdown dialect)
<HiPhish> I want to announce that the library is now close to a stable release and I would appreciate if as many people as possible could at least give it a try.
<HiPhish> This is my first time writing a real thing in Common Lisp and I hope it can be useful to other people.
<HiPhish> Thanks for letting me shill my stuff, have a good day. Goodbye :)
cage has quit [Quit: rcirc on GNU Emacs 27.1]
<lagash> HiPhish: ah! I had that in my bookmarks! I can't remember what CL project I was possibly going to use that for...
xlarsx has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
<phoe> HiPhish: might want to use #: in your DEFPACKAGE form to avoid interning stuff into other people's packages
<phoe> but that's a nitpick, looks like a pretty damn nice library, congrats!
<kakuhen> ^
<HiPhish> phoe: Which DEFPACKAGE forms are using interned keywork symbols? I just ran `ack defpackage` over the project and they all seem to use `#:...`
Guest4005 has quit [Quit: WeeChat 3.6]
<phoe> also wrt https://github.com/HiPhish/cl-cmark/commit/8c9a3e16b2c98be15822414b1890e0522e79dbf3 it seems that you are passing :FORMAT-CONTROL to a condition of type ERROR - standard ERRORs do not accept format controls, you probably want to inherit from SIMPLE-ERROR instead
<HiPhish> phoe: You mean I can use keyword symbols inside the (:export ...) form as well?
<phoe> HiPhish: not just you can, you should!
<phoe> (especially uninterned symbols like #:foo so that you don't pollute the keyword package either)
motherhucker has joined #commonlisp
<phoe> DEFPACKAGE accepts string designators, which means that symbols are fine to use
<HiPhish> phoe: OK, noted. I will take care of it some other day, it's getting late where I live.
<phoe> same here, truth be told :D Poland says hello
causal has joined #commonlisp
<HiPhish> Thanks for the comments, I have written them down for now. Goodbye.
HiPhish has left #commonlisp [WeeChat 3.7]
<phoe> see you
tyson2 has quit [Remote host closed the connection]
motherhucker has quit [Quit: leaving]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
jolby has joined #commonlisp
srji has quit [Ping timeout: 264 seconds]
srji has joined #commonlisp
IPmonger has joined #commonlisp
chipxxx has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
random-nick has quit [Ping timeout: 248 seconds]
jmdaemon has joined #commonlisp
puchacz has quit [Quit: Client closed]
pve has quit [Quit: leaving]
grawlinson has quit [Quit: SIGTERM]
scymtym has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
grawlinson has joined #commonlisp
aartaka has joined #commonlisp
pillton has joined #commonlisp
SAL9000 has quit [Ping timeout: 260 seconds]
aartaka has quit [Ping timeout: 248 seconds]
attila_lendvai has quit [Ping timeout: 248 seconds]
shka has quit [Ping timeout: 248 seconds]
cdegroot has quit [Quit: No Ping reply in 180 seconds.]
cdegroot has joined #commonlisp
SAL9000 has joined #commonlisp
orestarod has quit [Ping timeout: 248 seconds]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
fourier has quit [Read error: Connection reset by peer]
IPmonger has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
ilmu[m] has joined #commonlisp
IPmonger has joined #commonlisp
thuna` has quit [Read error: Connection reset by peer]
fourier has joined #commonlisp
IPmonger has quit [Remote host closed the connection]
Oladon has quit [Quit: Leaving.]
flip214 has quit [Read error: Connection reset by peer]
flip214 has joined #commonlisp
azimut has quit [Ping timeout: 258 seconds]
causal has quit [Quit: WeeChat 3.6]