freenode/lisp - IRC Chatlog
Search
21:10:51
Josh_2
https://plaster.tymoon.eu/view/2390#2390 this is my PS code, PS keeps adding a number to var 'stib-container' making it something like stibContainer12
22:16:22
kagevf
Josh_2: I was able to get rid of the number if I removed the extra parentheses you had around the value being assigned to stibContainer .... like this:
22:16:29
kagevf
(stibs (ps:@ stib-container children)) (search-bar ((ps:@ document get-element-by-id) (ps:lisp "abc"))) (search-bar-val ((ps:@ search-bar-id value))))
22:18:17
kagevf
so where you had this: (let ((stib-container (@ document get-element-by-id) (ps:lisp "123")))
22:29:55
pp2
I got kicked earlier and i don't know why. I said scrotwm but i meant to ask about stumpwm. I am confused about what happened and sorry if i offended people
23:24:53
nij
Why instead of create-server on the fly, kitnil chose to embed that in a thread? Is there an obvious advantage? https://github.com/kitnil/dotfiles/blob/master/dot_stumpwm.d/swank.lisp
23:27:51
Bike
so you could avoid that with a thread, but you could also just change the communication style so that swank handles it for you
23:39:44
Bike
https://common-lisp.net/project/slime/doc/html/Communication-style.html#Communication-style
23:41:00
nij
I've been reading yeah. But the thread method is a work around. I wonder what that equates to.
23:48:10
nij
(sb-thread:make-thread (lambda () (swank:create-server :port (parse-integer port) :dont-close t))
0:47:24
nij
Hello! After I start a swank/slynk server, how do I check (in that repl) how many ports have been listening, and how many ports have been connected to how many instances?
4:00:00
pagnol
Anyone here who has done natural language generation? Maybe in languages other than English?
4:01:04
beach
pagnol: If you have a question, it is usually better just to ask it than to wait for someone to admit to working in that domain.
5:26:09
jackdaniel
I generate natural language every day with my vocal cords and fingers, does it qualify for a beer? :)
7:15:32
Shinmera
You can use cl-mixed for that. https://github.com/Shirakumo/cl-mixed/blob/master/examples/tone.lisp
7:20:14
Shinmera
There's also Harmony which presents a higher-level interface. Unfortunately I haven't gotten around to writing extensive docs for either :(
8:41:03
Shinmera
Uh, sure. All the transforms and inputs spiral works with are human made. There's a lot of engineering ingenuity behind it.
8:42:54
Shinmera
The theory behind Spiral that allows it to generate code this efficient is quite interesting, but also quite off-topic.
8:44:33
Nilby
Yes. I was just wondering if there would be any hope to write such things like ffts and dcts and such in lisp and have any understanding when looking at a #'disassemble output
8:48:23
scymtym
there is https://github.com/pkhuong/Napa-FFT3 which also makes heavy use of domain knowledge instead of relying on the compiler
8:51:02
Nilby
scymtym: Thanks. That actually makes me feel better, even if pkhuong is too smart for me to fully understand.
8:55:17
Nilby
Shinmera: One could just fairly mechanically translate it's C into Lisp, since it's incomprehensible anyway, but I'm not sure it would retain it's properties.
8:56:05
Shinmera
It would not. It would also be hard because at least te x86 generated code makes use of vector extensions
8:58:55
Shinmera
I've still put a bunch of stuff into Lisp land, mostly the I/O parts at the ends that are cl-mixed extensions.
8:59:24
Shinmera
and libmixed is written in such a way that you can still integrate with it from lisp if you want to prototype.
9:00:49
Nilby
I'm still trying to keep my code all Lisp above the kernel, so I a can someday port to a LispOS, but I'm sure you know the difficulties.
9:02:18
Shinmera
I'm now in the business of having to sell stuff to people, and the sales numbers for people on a lispos would be way too low to bother supporting :)