jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <http://cliki.net/> <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.5.4, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
akoana has left #lisp ["Leaving"]
<mrcode_> does ironclad support loading rsa keys from pem/der files ? if not, what's the preferred way to do it ?
tko has quit [Ping timeout: 248 seconds]
<housel> I believe ironclad is just the algorithms, and doesn't have any ASN.1 parsing support (as would be required to read DER or PEM)
<mrcode_> housel: do you know of any cl asn1 parsers that work ? :)
<housel> I'm not aware of any
<saturn2> cl+ssl?
<jasom> I don't know for a fact that this ancient system doesn't work: https://www.cliki.net/ASN.1
alexanderbarbosa has quit [Remote host closed the connection]
<housel> https://github.com/shrdlu68/cl-tls/ looks like it has something
alexanderbarbosa has joined #lisp
<jasom> hmm looks like the asn.1 parsing has been merged into cl-net-snmp, which is quickloadable
<mrcode_> hmm
<mrcode_> worth trying
<mrcode_> seems to work just fine
<mrcode_> thx jasom housel
amerlyq has joined #lisp
shrdlu68 has quit [Ping timeout: 244 seconds]
amerlyq has quit [Client Quit]
amerlyq has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
shrdlu68 has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
anewuser has quit [Ping timeout: 245 seconds]
makomo_ has quit [Ping timeout: 245 seconds]
edgar-xxx has joined #lisp
edgar-rft has quit [Ping timeout: 248 seconds]
gioyik has quit [Quit: WeeChat 2.5]
wigust has joined #lisp
edgar-xxx has quit [Ping timeout: 246 seconds]
wigust- has quit [Ping timeout: 268 seconds]
amerlyq has quit [Quit: amerlyq]
amerlyq has joined #lisp
Insanity_ has quit [Quit: Connection closed for inactivity]
amerlyq has quit [Quit: amerlyq]
edgar-rft has joined #lisp
amerlyq has joined #lisp
<remexre> is there a type specifier I'm missing for lists of a type? e.g. (list fixnum) ?
techquila has quit [Remote host closed the connection]
<Bike> no. that type is not expressible in the lisp type system, other than using satisfies.
amerlyq has quit [Quit: amerlyq]
amerlyq has joined #lisp
tko has joined #lisp
techquila has joined #lisp
<remexre> is there a reason why? I guess I can just do do-list + check-type instead of a single check-type, but /shrug
techquila has quit [Remote host closed the connection]
<LdBeth> Because list is indistinguishable from cons
amerlyq has quit [Quit: amerlyq]
<Bike> recursive types get kind of weird with subtyping.
EvW1 has quit [Ping timeout: 250 seconds]
Jeanne-Kamikaze has joined #lisp
pjb` has joined #lisp
pjb` has quit [Remote host closed the connection]
pjb` has joined #lisp
libertyprime has joined #lisp
pjb` has quit [Remote host closed the connection]
pjb has quit [Ping timeout: 252 seconds]
pjb has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
karlosz has quit [Quit: karlosz]
parab has quit [Quit: parab]
<aeth> LdBeth: not quite true. nil is a list but not a cons.
<aeth> so a list holding only fixnums would be (or nil a-cons-holding-only-fixnums) and the latter would be complicated because if it's a list, then the cdr would be the cons itself recursively and if it's a tree you'd want both the car and the cdr to be either nil or the item (or perhaps not including nil)
<LdBeth> aeth: clhs says the type of nil is cons :)
<aeth> (typep nil 'cons) => NIL
<aeth> nil is a boolean, a list (the empty list (not "the empty cons")), null (not nil, nothing is the type nil), and a symbol. Maybe a few other things.
<aeth> Interestingly, I don't think that's completely specified in one place in the spec. e.g. http://www.lispworks.com/documentation/HyperSpec/Body/26_glo_n.htm#nil leaves out that it's of type null and http://www.lispworks.com/documentation/HyperSpec/Body/v_nil.htm leaves out that as well as that it's a symbol
<aeth> http://www.lispworks.com/documentation/HyperSpec/Body/t_nil.htm for the type nil does mention that nil isn't type nil but is type null
<aeth> And that's all you can get directly from http://www.lispworks.com/documentation/HyperSpec/Body/a_nil.htm
Petit_Dejeuner has joined #lisp
karswell has quit [Read error: Connection reset by peer]
Bike has quit [Quit: Lost terminal]
karswell has joined #lisp
yoeljacobsen has joined #lisp
nullniverse has joined #lisp
nullniverse has joined #lisp
nullniverse has quit [Changing host]
chzyhndx has joined #lisp
yoeljacobsen has quit [Ping timeout: 245 seconds]
chzyhndx has quit [Quit: chzyhndx]
yoeljacobsen has joined #lisp
yoeljacobsen has quit [Ping timeout: 245 seconds]
lavaflow has quit [Ping timeout: 272 seconds]
tko has quit [Ping timeout: 276 seconds]
<beach> Good morning everyone!
twnchks has joined #lisp
twnchks has left #lisp [#lisp]
gravicappa has joined #lisp
karlosz has joined #lisp
lalitmee has joined #lisp
flak has joined #lisp
rippa has quit [Ping timeout: 245 seconds]
yoeljacobsen has joined #lisp
karlosz has quit [Quit: karlosz]
Jeanne-Kamikaze has quit [Ping timeout: 246 seconds]
techquila has joined #lisp
thonkpod has quit [Ping timeout: 268 seconds]
thonkpod has joined #lisp
Inline has quit [Quit: Leaving]
torbo has quit [Remote host closed the connection]
yoeljacobsen has quit [Ping timeout: 245 seconds]
shrdlu68 has quit [Ping timeout: 248 seconds]
dddddd has quit [Remote host closed the connection]
scymtym has quit [Ping timeout: 245 seconds]
esrse has joined #lisp
manualcrank has quit [Quit: WeeChat 1.9.1]
<stylewarning> Good evening
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<stylewarning> It doesn’t appear SBCL is keeping my let-bound (UNSIGNED-BYTE 64) unboxed
sauvin has joined #lisp
<stylewarning> v curious
vlatkoB has joined #lisp
permagreen has joined #lisp
orivej has joined #lisp
Krystof has quit [Ping timeout: 268 seconds]
shrdlu68 has joined #lisp
gioyik has joined #lisp
kajo has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
orivej has quit [Ping timeout: 272 seconds]
lavaflow has joined #lisp
Adamclisi has joined #lisp
hasebastian has joined #lisp
JohnMS_WORK has joined #lisp
<flip214> stylewarning: paste?
<stylewarning> I don't have a minimal example yet, it's in the middle of a bunch of numerical code, but it looks something like (let ((x 1)) ... (setf x (* x n))); with everything appropriately declared
cods has quit [Ping timeout: 245 seconds]
flamebeard has joined #lisp
seok has joined #lisp
<seok> I have function to run node.js programs
<seok> (defun node (cmd &key (args '()))
<seok> When I run a puppeteer node application, then want to terminate it with uiop:terminate-process
<seok> the process is terminated but the chromium session is not
<seok> How can I fix this?
Adamclisi has quit [Quit: Leaving]
Volt_ has quit [Quit: exit();]
jello_pudding has joined #lisp
cods has joined #lisp
<flip214> Can I tell YASON to expect ALISTs recursively? ie. (YASON:ENCODE-ALIST `(("a" . (("b" . (("c" . "d"))))))? I get the error «"d" is not of type list»
<flip214> I guess because the inner ALISTs are being encoded a lists (to json vectors)
ebzzry_ has quit [Quit: WeeChat 2.3]
<flip214> perhaps I need to write my own streaming encoder...
ltriant has quit [Quit: leaving]
varjag has joined #lisp
makomo_ has joined #lisp
Adamclisi has joined #lisp
makomo_ is now known as makomo
ggole has joined #lisp
scymtym has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 272 seconds]
nanoz has joined #lisp
__jrjsmrtn__ has joined #lisp
xantoz has quit [Ping timeout: 248 seconds]
xantoz has joined #lisp
<shrdlu68> seok: What do you mean by session? Session as in a collection of process groups?
makomo_ has joined #lisp
makomo has quit [Ping timeout: 246 seconds]
techquila has quit [Ping timeout: 276 seconds]
makomo_ is now known as makomo
techquila has joined #lisp
gioyik has quit [Quit: WeeChat 2.5]
milanj has joined #lisp
ebzzry has joined #lisp
<flip214> YASON:ENCODE-ARRAY-ELEMENT works by using YASON:ENCODE. But that means that I can't control further recursion -- I can't encode the array elements myself!
<flip214> The only idea I have is to use the unexported NEXT-AGGREGATE-ELEMENT -- is there a cleaner way?
jello_pudding has quit [Remote host closed the connection]
edgar-rft has quit [Quit: Leaving]
<jdz> flip214: isn't there a special variable to bind?
Necktwi has quit [Ping timeout: 246 seconds]
<seok> shrdlu68: the chromium application is not terminated
<seok> puppeteer is a node library which uses chromium
nowhere_man has quit [Ping timeout: 252 seconds]
<shrdlu68> seok: Does it fork new processes?
<seok> probably
edgar-rft has joined #lisp
<shrdlu68> In that case, the children would probably still remain alive when you kill the parent.
<seok> yes, I am trying to figure out how to kill the children also
<flip214> jdz: none that I can see.
<seok> if I run node through cmd, I can kill chromium by ctrl+c, will sending character input stream on uiop:process-info-stream have the same effect?
<no-defun-allowed> No, C-c is handled in a way by something in the terminal emulator or shell I don't know the specifics of that tells it to send a signal to the child process.
SaganMan has joined #lisp
<flip214> seok: UIOP:TERMINATE-PROCESS
<flip214> but that has the bad effect of killing all other open tabs as well
ljavorsk_ has joined #lisp
lalitmee has quit [Ping timeout: 258 seconds]
<seok> flip214: as stated in my initial question, uiop:terminate-process is not killing chromium
<seok> which is called through puppeteer on a node program
gravicappa has quit [Ping timeout: 268 seconds]
gravicappa has joined #lisp
<seok> I have a crawler, trying to implement a timeout, but since terminate-process is not closing chromium session when it is timedout, I am getting arbitrary number of chromium sessions open
<seok> Haha
CrazyEddy has joined #lisp
<shrdlu68> You probably want to get the process group ID and sent a SIGTERM to that.
kajo has quit [Ping timeout: 276 seconds]
ljavorsk__ has joined #lisp
hasebastian has quit [Quit: Konversation terminated!]
ljavorsk_ has quit [Ping timeout: 258 seconds]
jprajzne has joined #lisp
kajo has joined #lisp
maxxcan has joined #lisp
cosimone has joined #lisp
<shrdlu68> seok: If you use SBCL, you could just use sb-ext:run-program. sb-ext:process-kill has a :process-group argument.
frgo has quit [Ping timeout: 245 seconds]
Insanity_ has joined #lisp
Krystof has joined #lisp
libertyprime has quit [Quit: leaving]
Lord_of_Life has quit [Ping timeout: 248 seconds]
nanoz has quit [Ping timeout: 258 seconds]
Lord_of_Life has joined #lisp
random-nick has joined #lisp
lalitmee has joined #lisp
frgo has joined #lisp
mingus has joined #lisp
LdBeth has quit [Changing host]
LdBeth has joined #lisp
LdBeth has joined #lisp
m00natic has joined #lisp
heisig has joined #lisp
myrkraverk has quit [Ping timeout: 245 seconds]
ljavorsk_ has joined #lisp
myrkraverk has joined #lisp
ljavorsk__ has quit [Ping timeout: 244 seconds]
aautcsh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kajo2 has joined #lisp
kajo has quit [Ping timeout: 276 seconds]
orivej has joined #lisp
sthalik has joined #lisp
<sthalik> hey
<pjb> yeh
<sthalik> is there a C++ preprocessor mangling hyphens to something else?
<sthalik> pjb, nice to see you still around
<pjb> sthalik: not AFAIK. You could write one.
<pjb> But there would be a problem: you could not write: int a=1,b=2,a-b=a-b;
<pjb> You'd have to write int a=1,b=2,a-b=(a)-b; or some variant.
<sthalik> that's acceptable
<no-defun-allowed> a - b
<pjb> That would break all existing code. And -(x) instead of -x :-)
<sthalik> leading hyphen can be special-cased
<no-defun-allowed> ~x (* well, I guess no one really uses -FOO as a name in Lisp *)
<pjb> On the other hand, if you don't stay at the level of the preprocessor, since we have to declare things, we could parse a-b only if there's a variable, type, or function, etc declared with the a-b name.
<sthalik> modern C++ grammar is even more context-sensitive than before. see: foo<bar<>>
<ck_> "missing operand to right-shift >>"
<sthalik> ck_, modern c++
hjudt has quit [Quit: leaving]
<no-defun-allowed> `return *p/*q;` is my favourite
zaquest has quit [Ping timeout: 258 seconds]
zaquest has joined #lisp
ykm has joined #lisp
kajo2 has quit [Ping timeout: 276 seconds]
lalitmee has quit [Remote host closed the connection]
lalitmee has joined #lisp
quazimodo has quit [Ping timeout: 245 seconds]
quazimodo has joined #lisp
hjudt has joined #lisp
lalitmee has quit [Remote host closed the connection]
ljavorsk_ has quit [Ping timeout: 272 seconds]
ykm has quit [Remote host closed the connection]
cosimone has quit [Quit: Leaving]
lalitmee has joined #lisp
tdleffler has quit []
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #lisp
DataLinkDroid_ has joined #lisp
DataLinkDroid_ has quit [Client Quit]
ebzzry has quit [Read error: Connection reset by peer]
<hjudt> is there a library that returns a list of subdirectories recursively? something like the linux command 'find -type d'?
amerlyq has joined #lisp
kajo2 has joined #lisp
<sthalik> CL-FAD
ykm has joined #lisp
ebzzry has joined #lisp
seok has quit [Remote host closed the connection]
EvW has joined #lisp
<alexanderbarbosa> oh the horror, all those silly braces...
vyorkin has joined #lisp
<jdz> hjudt: (directory #p"path/to/root/**/")
tko has joined #lisp
esrse has quit [Ping timeout: 268 seconds]
ykm has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
ykm has joined #lisp
<flip214> jdz: that will also return directories that are reached by _symlink_ in that tree, IIRC ... which might not be what is wanted if the next function is "rmdir"
<hjudt> thanks, i've used uiop:directory with jdz's pathname specification. that works great, and i can then filter with regexps what i need.
<hjudt> uiop:directory* exactly
<flip214> hjudt: take care about symlinks!
<jdz> flip214: at least on SBCL DIRECTORY has a :resolve-symlinks parameter.
<jdz> CCL has :follow-links)
xkapastel has joined #lisp
<flip214> jdz: yes, I know. I don't know offhand for UIOP, and either way the call needs to specify something!
ykm has quit [Remote host closed the connection]
<jdz> I agree, one must be careful.
tko has quit [Ping timeout: 276 seconds]
<hjudt> is there also a function to convert a pathname to a string?
<jdz> hjudt: NAMESTRING
<hjudt> thnx
<no-defun-allowed> ywlcm
<no-defun-allowed> uh, wrong channel, but sentiment stands: macroexpand pls
<jdz> your welcome (sic)
<jdz> That's just my guess.
asdf_asdf_asdf has joined #lisp
* no-defun-allowed points to arbitrary person
<no-defun-allowed> their welcome
tko has joined #lisp
Ricchi has joined #lisp
aautcsh has joined #lisp
myrkraverk has quit [Ping timeout: 272 seconds]
<flip214> ouch. "you are"|"you're" => "your" I can understand (from a typo perspective!), but "they are" => "their" is new to me.
<no-defun-allowed> In primary school (at about 9 years old) we had to practise they're/their/there.
<edgar-rft> flip214: you see, on #lisp one can learn something new every day
<no-defun-allowed> Basically the mnemonic was "This is jdz, they're a jolly good lisper, their welcome is over there"
myrkraverk has joined #lisp
tko has quit [Ping timeout: 276 seconds]
<flip214> no-defun-allowed: if your welcome has a physical location I don't think I want it.
<flip214> edgar-rft: yeah, reminds me of my proofreader days
<pjb> flip214: it's not typoes, it's phonemoes! :-)
aautcsh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<flip214> is there a speech-to-irc engine in operation?
<pjb> Yes, most often in the brains of the irc users.
<_death> hjudt: it is unlikely that you want NAMESTRING. it's not a very useful function, as its output is implementation-defined. it's more likely that you want NATIVE-NAMESTRIGN, a nonstandard function that is supposed to return a platform-defined output. of course, if you want platform independence, you need to do more work.
hvxgr has quit [Quit: leaving]
thawesWork has joined #lisp
hvxgr has joined #lisp
Insanity_ has quit [Quit: Connection closed for inactivity]
aautcsh has joined #lisp
wilfredh has joined #lisp
beach` has joined #lisp
beach has quit [Disconnected by services]
beach` is now known as beach
Bike has joined #lisp
lalitmee has quit [Read error: Connection reset by peer]
thawesWork has quit [Quit: Konversation terminated!]
<hjudt> _death: thanks. i suppose since this will only run in linux/sbcl that it doesn't really matter then.
mingus has quit [Remote host closed the connection]
lucasb has joined #lisp
aautcsh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sthalik has quit [Quit: leaving]
LiamH has joined #lisp
semz has joined #lisp
shifty has quit [Ping timeout: 244 seconds]
liberiga has joined #lisp
aautcsh has joined #lisp
Necktwi has joined #lisp
aautcsh has quit [Client Quit]
sjl_ has joined #lisp
asdf_asdf_asdf has quit [Remote host closed the connection]
kajo2 has quit [Ping timeout: 252 seconds]
SaganMan has quit [Ping timeout: 272 seconds]
tko has joined #lisp
kajo2 has joined #lisp
<_death> but it does.. sbcl's output is not the same as the what linux expects
dddddd has joined #lisp
alexanderbarbosa has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
jonatack has quit [Quit: jonatack]
Insanity_ has joined #lisp
mindCrime_ has joined #lisp
EvW has quit [Ping timeout: 250 seconds]
yoeljacobsen has joined #lisp
maxxcan has quit [Quit: maxxcan]
shrdlu68 has quit [Ping timeout: 246 seconds]
JohnMS_WORK has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
EvW has joined #lisp
jonatack has joined #lisp
orivej has quit [Ping timeout: 244 seconds]
quazimodo has quit [Ping timeout: 272 seconds]
quazimodo has joined #lisp
orivej has joined #lisp
<hjudt> ok so i'll just use uiop:native-namestring
Lydia_K has left #lisp [#lisp]
nanoz has joined #lisp
Inline has joined #lisp
clothespin has joined #lisp
<clothespin> are there any libraries which have presentation types and context sensitive input besides McCLIM?
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Client Quit]
<beach> Why would you not want McCLIM?
<clothespin> it's a non trivial task to create a backend
heisig has quit [Quit: Leaving]
manualcrank has joined #lisp
cosimone has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
karlosz has joined #lisp
smazga has joined #lisp
yoeljacobsen has quit [Remote host closed the connection]
<clothespin> beach, did you not once tell me that you had an editor running in a clim like ui?
Oladon_work has joined #lisp
<beach> A CLIM-like which is not CLIM? No, I don't have such a thing.
yoeljacobsen has joined #lisp
yoeljacobsen has quit [Remote host closed the connection]
karlosz has quit [Quit: karlosz]
<clothespin> well did you at least tell me you had an editor?
Nomenclatura has quit [Quit: q]
ravenous_ has quit [Read error: Connection reset by peer]
stux|RC-- has quit [Quit: Aloha!]
<beach> Yes, (first) Climacs is a CLIM application. I think it is still operational.
<beach> But I am working on Second Climacs, which will be much more competent, in particular for editing Common Lisp code.
rippa has joined #lisp
aautcsh has joined #lisp
<clothespin> what ui substrate does the second climacs use?
<Oladon_work> Hehe, that's a clever name, beach
ravenous_ has joined #lisp
yoeljacobsen has joined #lisp
stux|RC-only has joined #lisp
<beach> clothespin: I attempted to make it as independent as possible of the GUI, and I think I managed, but it made the code hard to understand. And the only existing GUI uses McCLIM.
yoeljacobsen has quit [Remote host closed the connection]
yoeljacobsen has joined #lisp
v0|d has quit [Read error: Connection reset by peer]
v0|d has joined #lisp
<clothespin> beach, do you distribute your editor and your debugger?
<beach> Everything I do is on GitHub, but I haven't made any releases. Second Climacs is not ready for consumption, and the debugger (Clordane)I am thinking will not work in the foreseeable future. The reason for that is that it requires support from the implementation, and it is likely that the only implementation that will support it will be SICL.
v0|d has quit [Read error: Connection reset by peer]
sjl_ has quit [Ping timeout: 246 seconds]
dale_ has joined #lisp
dale_ is now known as dale
<clothespin> i look forward to when you post 2nd climacs
mindCrime has joined #lisp
<beach> I'll keep you posted.
mindCrime__ has joined #lisp
mindCrime_ has quit [Ping timeout: 272 seconds]
<clothespin> has no one successfully finished an interactive backend to McCLIM as clx?
<clothespin> i think i saw an SDL backend but it seems to give the whole framebuffer to McCLIM
mindCrime has quit [Ping timeout: 245 seconds]
ravndal has quit [Quit: WeeChat 2.5]
<beach> You mean a backend "other than" CLX?
<clothespin> I mean "as complete as clx"
<beach> Ah.
<beach> There have been attempts, and I think they all bitrotted.
<beach> But the problem is being worked on.
<beach> If you are interested, you can ask in #clim.
<beach> As I understand it, |3b| is working on Windows, and needs a backend for it, so he is working on something.
<clothespin> does anybody answer there?
<beach> Oh, yes.
<beach> jackdaniel is the McCLIM maintainer and he is very active.
<beach> Several others are often present.
<beach> Check the log at https://irclog.tymoon.eu/freenode/clim and you will see.
<aeth> iirc there was an OpenGL 1.x backend (which was a dated API 15 years ago) that got removed at some point
<jackdaniel> the reason was (surprise surprise) it didn't work ,)
<aeth> running on something like OpenGL+SDL2 gets you on (practically) every platform, without a native look+feel, but with some cool visual effects available.
<aeth> jackdaniel: It might have worked on the original graphics drivers it were tested on, if anyone has 90s hardware laying around :-p
<aeth> s/it were/it was/
makomo has quit [Quit: WeeChat 2.4]
vyorkin has quit [Ping timeout: 248 seconds]
EvW has quit [Ping timeout: 264 seconds]
FreeBirdLjj has joined #lisp
ggole has quit [Quit: Leaving]
dale has quit [Quit: My computer has gone to sleep]
Franklin has joined #lisp
Franklin has quit [Remote host closed the connection]
dale has joined #lisp
Necktwi has quit [Ping timeout: 248 seconds]
Necktwi has joined #lisp
ravndal has joined #lisp
ljavorsk_ has joined #lisp
equwalp has joined #lisp
ljavorsk_ has quit [Ping timeout: 245 seconds]
shrdlu68 has joined #lisp
jprajzne has quit [Quit: jprajzne]
angavrilov has joined #lisp
sjl_ has joined #lisp
yoeljacobsen has quit [Remote host closed the connection]
yoeljacobsen has joined #lisp
ljavorsk_ has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
hasebastian has joined #lisp
yoeljacobsen has quit [Ping timeout: 245 seconds]
vaporatorius has joined #lisp
vaporatorius has quit [Changing host]
vaporatorius has joined #lisp
makomo has joined #lisp
gioyik has joined #lisp
khisanth_ has quit [Ping timeout: 246 seconds]
ljavorsk_ has quit [Ping timeout: 244 seconds]
tko has quit [Ping timeout: 276 seconds]
q9929t has joined #lisp
khisanth_ has joined #lisp
scymtym has quit [Ping timeout: 264 seconds]
Lord_of_Life_ has joined #lisp
m00natic has quit [Remote host closed the connection]
Lord_of_Life has quit [Ping timeout: 258 seconds]
Lord_of_Life_ is now known as Lord_of_Life
whartung has quit [Ping timeout: 245 seconds]
sjl_ has quit [Ping timeout: 258 seconds]
shrdlu68 has quit [Ping timeout: 245 seconds]
clothespin has quit [Ping timeout: 245 seconds]
nullman has quit [Ping timeout: 248 seconds]
nullman has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
mindCrime has joined #lisp
mindCrime__ has quit [Ping timeout: 268 seconds]
mindCrime_ has joined #lisp
Ricchi has quit [Remote host closed the connection]
frgo_ has joined #lisp
mindCrime has quit [Ping timeout: 248 seconds]
shrdlu68 has joined #lisp
clothespin has joined #lisp
frgo has quit [Ping timeout: 246 seconds]
frgo_ has quit [Ping timeout: 248 seconds]
shrdlu68 has quit [Ping timeout: 272 seconds]
flamebeard has quit []
liberiga has quit [Ping timeout: 260 seconds]
yoeljacobsen has joined #lisp
hasebastian has quit [Quit: Konversation terminated!]
yoeljacobsen has quit [Remote host closed the connection]
yoeljacobsen has joined #lisp
yoeljacobsen has quit [Ping timeout: 268 seconds]
frgo has joined #lisp
pest-ctrl has joined #lisp
orivej has quit [Ping timeout: 248 seconds]
namosca has joined #lisp
<namosca> borodust: hi
cosimone has quit [Quit: Leaving]
pest-ctrl has quit [Ping timeout: 245 seconds]
caoliver has quit [Ping timeout: 272 seconds]
whartung has joined #lisp
sjl_ has joined #lisp
pest-ctrl has joined #lisp
aautcsh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cosimone has joined #lisp
cosimone has quit [Remote host closed the connection]
aautcsh has joined #lisp
orivej has joined #lisp
EvW1 has joined #lisp
yoeljacobsen has joined #lisp
cosimone has joined #lisp
zotan has joined #lisp
k-stz has joined #lisp
cosimone has quit [Quit: Leaving]
amerlyq has quit [Quit: amerlyq]
Adamclisi has quit [Quit: Leaving]
zotan has quit [Ping timeout: 258 seconds]
yoeljacobsen has quit [Ping timeout: 268 seconds]
tko has joined #lisp
zotan has joined #lisp
yoeljacobsen has joined #lisp
scymtym has joined #lisp
yoeljacobsen has quit [Ping timeout: 245 seconds]
varjag has joined #lisp
xuxuru has joined #lisp
pest-ctrl has quit [Ping timeout: 248 seconds]
yoeljacobsen has joined #lisp
mulk has quit [Quit: ZNC - http://znc.in]
<Oladon_work> Trying to find a link that I think was posted in here recently about XML vs Lisp for config files — that ring any bells for anyone?
knicklux has joined #lisp
Ven`` has joined #lisp
<borodust> hi namosca, long time no see :)
makomo has quit [Quit: WeeChat 2.4]
permagreen has quit [Remote host closed the connection]
knicklux has quit [Ping timeout: 252 seconds]
q9929t has quit [Quit: q9929t]
hiroaki has joined #lisp
yoeljacobsen has quit [Ping timeout: 245 seconds]
shifty has joined #lisp
<namosca> yes hehe
<namosca> how are you?
<Inline> oO
EvW1 has quit [Ping timeout: 250 seconds]
<Inline> within a simple loop i need a :timeout 1, but for an extended loop i don't heh
xkapastel has quit [Quit: Connection closed for inactivity]
<Inline> oh nope, forget it
xuxuru has quit [Quit: xuxuru]
<Oladon_work> sjl_: Thanks, that was it
<Inline> i need a timeout because none of my clauses returns t......
<Inline> oh man, damn clx and xlib:event-case
<Oladon_work> Was a good article, and I wanted to share it with a few of my less-experienced devs :)
<Inline> and i can
knicklux has joined #lisp
<Inline> can't explicitly return t at the end of it
gravicappa has quit [Ping timeout: 272 seconds]
Aruseus has joined #lisp
akoana has joined #lisp
<Inline> why does koch.lisp work then, it doesn't use any returning clauses too, they are all format clauses (which returns nil)
<Inline> anyone ?
<Bike> you haven't meaningfully explained what you're talking about or even asked a question
cosimone has joined #lisp
scymtym has quit [Ping timeout: 272 seconds]
<Inline> i'm trying to get my head around the xlib demo programs in clx, and i also found some similar stuff on the net out of which koch.lisp ( https://fossies.org/linux/clisp/modules/clx/new-clx/demos/koch.lisp ) seems to be pretty similar to the loop constructs i saw in clclock.lisp
<Bike> so you're asking about that loop on line 101?
<Inline> but clclock.lisp does not use an event-loop ala xlib, and once you start it you have to kill it via mouse click and i get thrown into the debugger, because it couldn't terminate the loop faithfully
<jasom> Inline: loop-finish exits th eloop
<Inline> jasom: yes and it goes afterwards right into the event loop of clx
xuxuru has joined #lisp
<Inline> jasom: i tried a similar construct here with a few things changed in clclock.lisp and i couldn't get it to work either
<jasom> right, and that event loop is exited by this line: (#o161 #|q|# (return-from koch-events t))
<jasom> Inline: where is clclock.lisp?
<Inline> erm
<Inline> it's in clx/demo
<Inline> whatever your clx version.....
<jasom> and that doesn't parse any events at all
<Inline> right
<Inline> i tried to wrap an event-case there
<Inline> right in the loop itself
alexanderbarbosa has joined #lisp
<Inline> anyway, i have 3 version of clclock.lisp now with events working properly and display too
vlatkoB has quit [Remote host closed the connection]
gioyik has quit [Quit: WeeChat 2.5]
<jasom> Inline: so is there still a question?
<pjb> Inline: would a counter be enough? (loop :repeat 1000 :for x := (next-item) :until (poopoop x) :finally (return 'done))
<pjb> Inline: Otherwise, you can do a timeout with (get-universal-time).
<Inline> http://dpaste.com/1DTJD80 second version
namosca has quit [Quit: Konversation terminated!]
<pjb> (loop :with timeout = (+ max-delay (get-universal-time)) :for … :while (< (get-universal-time) timeout) :do …)
<Inline> finally third version, pretty similar to the second tho
<Inline> jasom: now i can quit it without getting me thrown into the debugger.....
scymtym has joined #lisp
<jasom> FWIW the original koch demo isn't part of the non-clisp clx demos, *and* it's a terrible demo; run it, then cover up part of the window and reveal again; the snowflake isn't redrawn. Also you can't quit until it finishes drawing the snowflake.
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Inline> jasom: without the :timeout in even-case it doesn't work (clockface does not get updated), and returning t from anywhere from the event-case is no option, as far as i see, have to recheck it soon
<jasom> Inline: do you understand why?
<Inline> jasom: welp, mine gets drawn, as for the quit you might be right, i only quitted it at the end
<Inline> jasom: understand what exactly ?
<jasom> Inline: why the timeout is needed?
<Inline> yes
<jasom> okay. Any remaining questions?
<Inline> because my even-case clauses don't return t nowhere
<jasom> Inline: even if they did, you wouldn't have a working clock
<Inline> jasom: right, and i was going nuts over it here
<Inline> lol
<jasom> if nobody moves your window or presses a key, no event will happen
<Inline> welp, even if it happens i don't return anything all my clauses return nil
<jasom> You probably want a shorter timeout, and then redraw by comparing the current time to the last time you drew.
<jasom> or perhaps keep the long timeout, but check the time in each event
<Inline> and that was the clue, i read event-case carefully, until it said in the document that even-case does not return when :timeout is nil and all the clauses return nil
<jasom> whether or not event-case returns is somewhat orthogonal to whether or not you redraw, particularly since you call draw-stuff inside event-case.
<Inline> that was another hint of getting rid of the explicit (sleep 1) in clclock
seok has joined #lisp
<seok> shrdlu68: I've been having problems using sb-ext:run-program on windows portacle, hence I've been using uiop:launch-program. Is there no way with uiop version?
mulk has joined #lisp
<Inline> jasom: without draw-stuff in event-case the initial window is only blue
<jasom> e.g. if you cover and reveal the clock, it will update without the timeout.
<Inline> ah
<Inline> nope
<Inline> it didn't cause anything here, cause i return nil for expose events
<Inline> jasom: check my examples, and try it without the timeout, you'll see
<jasom> Inline: it updates for me
<jasom> literally just your 3rd paste with :timeout nil
<Inline> jasom: wait
<jasom> if you cover up the clock with another window, then when you uncover it, it will have updated once.
<jasom> because it gets an exposure event
<Inline> jasom: no jasom
<Inline> jasom: here i can cover and reveal it without the clock face getting updated
<Inline> jasom: it's like frozen
<jasom> Inline: which window manager?
<jasom> it's possible some compositors won't generate new expose events, I guess...
<jasom> But with kwin on plasma it gets updated once every time it is revealed
<Inline> jasom: mate on cinnamon i think
<jasom> so marco?
knicklux has quit [Remote host closed the connection]
<Inline> jasom: i'm on ubuntu, cinnamon, DE is mate
* jasom is surprised that it doesn't generate expose events.
<jasom> https://github.com/mate-desktop/marco <-- default WM for mate
<jasom> I'm on kubuntu
<Inline> jasom: ah ok
<Inline> jasom: did you try it there ?
<Inline> jasom: does it work for marco there ?
<jasom> I don't have mate installed.
<Inline> jasom: oh ok
<jasom> but with KDE, it definitely changes time (though you can't ever see it change).
<jasom> Each time it's uncovered, the time displayed is different
<Inline> jasom: i think that's why i was going nuts, if it doesn't work in marco and i need an explicit :timeout value......
<Inline> jasom: i can bring another window on front and then switch back, nothing happens here really without that timeout value
<Inline> jasom: thought i'm not understanding loops anymore..... i really was desperate
<jasom> If I had to guess, it's because of compositing; back in the day, each window did not have its own buffer. The xlib commands drew directly to the screen. So, if you cover up your window and then reveal it, the window needs to be redrawn. Modern window managers will have each application draw to an off-screen buffer and then copy that buffer to the screen. This is the first I've heard of no expose events
<jasom> being generated though.
<Inline> jasom: felt more and more dumb with each try failing....
<Inline> lol
<jasom> Inline: what happens if you put a print statement inside your exposure handler? I assume it only prints out once, even if you cover up the window?
<Inline> jasom: wait lemme check that
<jasom> !! do you have transparency effects enabled? Those would mean that the window isn't ever truly covered up, so no expose would probably be unsurprising.
<Inline> i think i have compositing enabled, tho no idea of transparency
<jasom> so to see what I'm talking about, put a (draw-stuff) call inside the key-press handler. You will see it update every time you press a key.
<jasom> even without a timeout.
<Inline> jah done it
<Inline> it updates, when i press a key ofc
<Inline> (otherwise (draw-stuff) in key-press case
Lord_of_Life_ has joined #lisp
<Inline> jasom: it updates even without a timeout in that case, but only if you press a key ofc, the auto-looping and redrawing is gone
<Inline> jasom: so i need the :timeout for some reason, no idea why stuff here does not work like over there, or in any other windowmanager
<jasom> you do need the timeout, of course, my point was that the update is not directly related to the timeout. Without the timeout you just process events forever, which may, or may not, include updating the display.
<Inline> jasom: ok then
tko has quit [Quit: Konversation terminated!]
tko has joined #lisp
cl-arthur has joined #lisp
<Inline> jasom: in my case it does not somehow include updating the display, and it bothers me somewhat
Lord_of_Life has quit [Ping timeout: 272 seconds]
<Inline> jasom: not sure if there's any bug around or if these effects are just a feature of some windowmanagers
<jasom> unlike e.g. the gtk event loop, there is no provision for timer events in xlib. The unixy way is to set a signal on a timer to get timeouts
<jasom> this is behaving exactly as expected.
xuxuru has quit [Quit: xuxuru]
<jasom> The koch snowflake will not update its display either once it enters the event loop; it's a very poorly written demo.
<Inline> jasom: ok thank you, i'm new to clx and gui, i'm still trying to get my head around it
Lord_of_Life_ is now known as Lord_of_Life
<Inline> jasom: signal handling, multi-threading, coroutines, parallelism etc are all stuff i haven't peeked into yet
<Inline> jasom: i think i'm on a pretty basic level yet... :(
<jasom> X11 isn't a particularly pleasant way to do gui programming; even back in the day motif was used rather than bare x11; nowadays you see qt or gtk.
<davr0s_> how far did people get with LISP / GOFAI ,
xkapastel has joined #lisp
<davr0s_> was the idea that lisp's homoiconicity would be good for computers to rewrite their own programs
<jasom> davr0s_: that's a bit off topic here; maybe ##lisp? or #lispcafe?
<White_Flame> davr0s_: the labels "applied logic programming" for GOFAI, and "applied statistics" for modern machine learning IMO are apt
tko has quit [Ping timeout: 245 seconds]
<White_Flame> but yeah, I agree with jasom
tko has joined #lisp
mulk has quit [Quit: ZNC - http://znc.in]
tko has quit [Ping timeout: 245 seconds]
mulk has joined #lisp
<Inline> jasom: i tried Motif too, i have a book in my shelf about Motif, and i tried some stuff, but it's written for C, so no idea with Motif stuff on lisp apart from a little bit of mcclim
<Inline> jasom: and i'm bad with OOP too :(
<Inline> still! or yet!
<Inline> jasom: hope that will change some time
ebrasca has quit [Remote host closed the connection]
<pjb> Inline: you can easily master it, you just have to watch for the class hierarchy (or DAG in the case of CL since we allow multiple inheritance). So when a generic function is called, you should mind methods on the superclasses too.
<Inline> pjb: i have the basics, but i can't wrap my head around design....
<Inline> pjb: it's like putting my fingers in a running motor.... hahahaha
nanoz has quit [Ping timeout: 248 seconds]
aautcsh has quit [Ping timeout: 252 seconds]
slyrus has quit [Ping timeout: 245 seconds]
spm_ has joined #lisp
spm_ has quit [Remote host closed the connection]
<Inline> jasom: i think transparency is on as default here over, tho i turned them off in my console by choosing solid colors etc...
shifty has quit [Ping timeout: 272 seconds]
<Inline> allright, good night all
akoana has left #lisp ["Leaving"]
cl-arthur has quit [Quit: Lost terminal]
dxtr has quit [Ping timeout: 258 seconds]
seok has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 252 seconds]
milanj_ has joined #lisp
milanj has quit [Read error: Connection reset by peer]
karlosz has joined #lisp
sonologico has joined #lisp
k-stz has left #lisp ["ERC (IRC client for Emacs 26.2)"]
aautcsh has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
stepnem has quit [Ping timeout: 245 seconds]
random-nick has quit [Ping timeout: 272 seconds]
mindCrime_ has quit [Ping timeout: 248 seconds]
stepnem has joined #lisp
LiamH has quit [Quit: Leaving.]
bexx has joined #lisp
<bexx> how can I skip a test in fiveam?
stepnem has quit [Ping timeout: 248 seconds]
stepnem has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
Bike has quit [Quit: Bike]
DGASAU has quit [Ping timeout: 268 seconds]
shka_ has quit [Ping timeout: 246 seconds]
sjl_ has quit [Quit: WeeChat 2.3-dev]
varjag has quit [Ping timeout: 246 seconds]
Aruseus has quit [Remote host closed the connection]
Oladon_work has quit [Ping timeout: 260 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karlosz has quit [Quit: karlosz]
cosimone has quit [Quit: Leaving]
Kundry_Wag has joined #lisp
anewuser has joined #lisp
srji has quit [Ping timeout: 268 seconds]
Bike has joined #lisp
kajo2 has quit [Ping timeout: 276 seconds]
saravia has joined #lisp
gioyik has joined #lisp
tko has joined #lisp
liberiga has joined #lisp
anewuser has quit [Ping timeout: 245 seconds]
smazga has quit [Quit: leaving]
igemnace has quit [Quit: WeeChat 2.5]
akoana has joined #lisp
milanj_ has quit [Quit: Leaving]
orivej has quit [Ping timeout: 245 seconds]
akoana has left #lisp ["Leaving"]
Insanity_ has quit [Quit: Connection closed for inactivity]