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
<White_Flame> also, I notice you're not in #lispgames, where certainly there's a lot of game engine goings on
<White_Flame> saturn2: yes, one allocation region per frame would make much sense
<White_Flame> sweep away everything at once
<lotuseater> oh thx for that tip!
<saturn2> right
<White_Flame> I believe javascript does a shallow GC pass after leaving every "frame" as well
<White_Flame> but that does still build up into some fuller GC stutters
<White_Flame> obviously a per-frame region would be faster, but then you're dealing with taking greater care with references
jibanes has quit [Ping timeout: 265 seconds]
jibanes has joined #lisp
defunkydrummer has quit [Quit: Leaving]
jibanes has quit [Ping timeout: 260 seconds]
zcheng3 has joined #lisp
jibanes has joined #lisp
dilated_dinosaur has quit [Ping timeout: 240 seconds]
matryoshka has joined #lisp
eta has quit [Ping timeout: 240 seconds]
jeosol has quit [Ping timeout: 245 seconds]
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #lisp
eta has joined #lisp
mange has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
rumbler31_ has quit [Ping timeout: 240 seconds]
zcheng3 has quit [Ping timeout: 240 seconds]
dilated_dinosaur has joined #lisp
kaftejiman has joined #lisp
kaftejiman_ has quit [Read error: Connection reset by peer]
rumbler31_ has joined #lisp
GZJ0X_ has joined #lisp
shifty has joined #lisp
banjomet has quit [Quit: Leaving]
gzj has quit [Ping timeout: 260 seconds]
jibanes has quit [Ping timeout: 258 seconds]
jibanes has joined #lisp
herlocksholmes has quit [Quit: Hasta la victoria, siempre!]
jealousmonk has quit [Quit: Long live IRC! <https://brettgilio.com/irc.html>]
jealousmonk has joined #lisp
herlocksholmes has joined #lisp
<mfiano> no-defun-allowed: They can, but not typically. Good game development is about balancing the work between the CPU and the GPU. Usually you start with pre-allocating large buffers up front and sending them to the gpu, then referencing them with handles on both ends. It can be beneficial to do this at runtime though for some things (called batching).
<mfiano> I can assure you, the GC, at least on SBCL, is not the issue you need to worry about with gamedev in Lisp
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #lisp
<no-defun-allowed> mfiano: Okay. I know that for audio processing, you can usually preallocate, but I've had mixed signals with video games.
<mfiano> The issue is throwing away a lot of the niceties of the language (read: CLOS), as it's more than an order of magnitude slower.
<mfiano> (among other dynamic language problems)
random-nick has quit [Ping timeout: 256 seconds]
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #lisp
herlocksholmes has quit [Quit: Hasta la victoria, siempre!]
jealousmonk has quit [Quit: Long live IRC! <https://brettgilio.com/irc.html>]
bjorkintosh has joined #lisp
<mfiano> To give you an idea of what's possible, I can render tens of thousands of game objects per frame, where a frame is 1/60 seconds, on a single thread, which includes a ton of math and thousands of hash table lookups, and the only significant thing slowing that down is CLOS. Structs help a lot though :)
herlocksholmes has joined #lisp
herlocksholmes has quit [Client Quit]
skapata has quit [Remote host closed the connection]
jibanes has quit [Ping timeout: 265 seconds]
jibanes has joined #lisp
herlocksholmes has joined #lisp
jibanes has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #lisp
jibanes has joined #lisp
jealousmonk has joined #lisp
Oladon has joined #lisp
jibanes has quit [Ping timeout: 265 seconds]
jibanes has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 246 seconds]
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
Jeanne-Kamikaze has joined #lisp
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
matryoshka has joined #lisp
matryoshka has quit [Client Quit]
matryoshka has joined #lisp
Fare has joined #lisp
kaftejiman has quit [Remote host closed the connection]
shifty has quit [Ping timeout: 256 seconds]
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
housel has joined #lisp
jeosol has joined #lisp
semz has quit [Ping timeout: 260 seconds]
jibanes has quit [Ping timeout: 264 seconds]
jibanes has joined #lisp
matryoshka has joined #lisp
<ebrasca> Can you have distributed lisp image?
<Xach> wohnmhmm
aaaaaa has joined #lisp
semz has joined #lisp
<Xach> ( (yoinks)yoinks.
<ebrasca> I have see this video https://www.youtube.com/watch?v=gnd9LPWv1U8 and I am thinking how it aplies to cl. ( Video about Barrelfish OS )
mbomba has quit [Quit: WeeChat 3.0]
<Xach> sorry for the line noise. network problems.
<Xach> I just had a function that does something like (list (ldb (byte 1 index) i) (ldb (byte 1 index) j) (ldb (byte 1 index) k)) so I thought, "i am a clever fellow, i hate typing (byte 1 index) so much, i will use LET and bind it once, then reuse it."
<Xach> (let ((spec (byte 1 index))) (list (ldb spec i) (ldb spec j) (ldb spec k))) or so
<Xach> the latter is way way slower on sbcl!
<Xach> i am not *too* surprised, but i am a little surprised.
jpli has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<lotuseater> oh I'll try that now.
FreeBirdLjj has joined #lisp
ape666` has joined #lisp
<lotuseater> but why is it slower that way?
EvW has quit [Ping timeout: 258 seconds]
<Xach> lotuseater: i believe it inhibits compiler recognition/inlining of the BYTE call somehow.
GZJ0X_ has quit [Remote host closed the connection]
<lotuseater> hmmm
GZJ0X_ has joined #lisp
<Xach> guessing: the pattern (ldb (byte ...) ...) is recognized and transformed in a nice way, (ldb var ...) not. same with dpb.
<Xach> does anything other than ldb and dpb use byte?
<lotuseater> i don't know, not used them much yet. i even think i don't understand fully what is happening :)
rumbler31_ has quit [Ping timeout: 246 seconds]
<lotuseater> but clhs says LDB is also historically (like CAR and CDR)
dmiles has quit [Ping timeout: 260 seconds]
<Bike> sbcl recognizes (ldb (byte ...) ...) pretty literally i believe
<Bike> rather than through inference stuff
<Bike> (if (and (consp spec) (eq (car spec) 'byte)) ...) yeah i see
GZJ0X_ has quit [Remote host closed the connection]
dmiles has joined #lisp
GZJ0X_ has joined #lisp
Oladon has quit [Quit: Leaving.]
dmiles has quit [Ping timeout: 240 seconds]
ape666` has quit [Remote host closed the connection]
<Xach> not too fancy
dmiles has joined #lisp
PuercoPop has quit [Quit: WeeChat 2.8]
eta has quit [Ping timeout: 240 seconds]
<ebrasca> Xach: Can't replicate in my sbcl.
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
matryoshka has joined #lisp
dmiles has quit [Ping timeout: 246 seconds]
<ebrasca> Here how I tested http://ix.io/2HDJ
eta has joined #lisp
<Bike> you're doing few enough ldb operations that time may instead be dominated by consing
ape666 has quit [Remote host closed the connection]
<Bike> if you look the list calls a few thousand times you can see a difference
<Bike> for me the ones with literal byte take ~27k cycles, whereas the ones with the let binding take ~100k
<Bike> that's with 1000 iterations per
<Bike> like, (loop repeat 1000 do (let ((spec
ape666 has joined #lisp
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
matryoshka has joined #lisp
<ebrasca> I see now.
<ebrasca> Maybe it creates some subroutine?
<Bike> basically on sbcl you have (defun ldb (bytespec integer) (%ldb (byte-size byte) (byte-position byte) integer))
<Bike> and there's something that rewrites (ldb (byte ...) integer) calls directly into %ldb calls
GZJ0X_ has quit [Remote host closed the connection]
nowhere_man has joined #lisp
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
matryoshka has joined #lisp
<ebrasca> Is it inline vs not inlined code?
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
fiddlerwoaroof has quit [Quit: Gone.]
nitrix has quit [Quit: Genius is one percent inspiration and ninety-nine percent perspiration]
fiddlerwoaroof has joined #lisp
ape666 has quit [Remote host closed the connection]
FreeBird_ has joined #lisp
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
matryoshka has joined #lisp
FreeBirdLjj has quit [Ping timeout: 260 seconds]
fiddlerwoaroof has quit [Quit: Gone.]
nitrix has joined #lisp
fiddlerwoaroof has joined #lisp
matryoshka has quit [Client Quit]
matryoshka has joined #lisp
fiddlerwoaroof has quit [Client Quit]
FreeBirdLjj has joined #lisp
fiddlerwoaroof has joined #lisp
FreeBird_ has quit [Ping timeout: 246 seconds]
Alfr has joined #lisp
Alfr_ has quit [Ping timeout: 258 seconds]
Jeanne-Kamikaze has quit [Quit: Leaving]
Oladon has joined #lisp
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 240 seconds]
__jrjsmrtn__ has joined #lisp
<beach> Good morning everyone!
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
<aaaaaa> beach: good
matryoshka has joined #lisp
akrl has quit [Ping timeout: 260 seconds]
akrl has joined #lisp
narimiran has joined #lisp
ldbeth has joined #lisp
<ebrasca> Morning beach!
<ebrasca> beach: How are you doing today?
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
<beach> ebrasca: I am doing quite well thank you very much. The past few days, I have made great progress with the SICL bootstrapping procedure, so I am very pleased with that.
<beach> What about yourself?
<ebrasca> beach: I am fine , just somewhat lost wichout an concrete goal or how to make Mezzano better.
<beach> Hmm. I see.
aeth has quit [Ping timeout: 256 seconds]
sgibber2018 has joined #lisp
aeth has joined #lisp
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
sgibber2018 has quit [Quit: WeeChat 2.9]
skapata has joined #lisp
shifty has joined #lisp
mange has quit [Ping timeout: 256 seconds]
jibanes has quit [Ping timeout: 272 seconds]
jibanes has joined #lisp
<lotuseater> beach: so I now wrote a little test dispatch readmacro #? with the numarg summing to first n numbers e.g. #100? => 5050 :)
<beach> I see. So you are fine with the signature of the dispatch function now?
<lotuseater> yes I think so
<beach> Excellent!
<ldbeth> good afternnon
<beach> Hello ldbeth.
jibanes has quit [Ping timeout: 246 seconds]
<lotuseater> step by step climbing the mountain ^^
<fiddlerwoaroof> ebrasca: any chance Mezzano works on arm64?
jibanes has joined #lisp
<lotuseater> from what i saw about Mezzano it's great. but something went wrong multiple times starting in qemu after successfully compiled
<ebrasca> fiddlerwoaroof: Last think I read about arm64 is someone is working on making it work againg. I think it have bitroted.
<fiddlerwoaroof> lotuseater: yeah, I've had an issue where the official boot images just don't work
<fiddlerwoaroof> I haven't tried it recently, but I filed this issue: https://github.com/froggey/Mezzano/issues/99
<lotuseater> and if I click in the window my window manager (xmonad) freezes :D
<fiddlerwoaroof> if i remember correctly, there's a similar issue in the bootloader project
fiddlerwoaroof has quit [Quit: Gone.]
fiddlerwoaroof has joined #lisp
<lotuseater> fiddlerwoaroof: nice fractal picture on your github
<fiddlerwoaroof> Thanks
jibanes has quit [Ping timeout: 272 seconds]
<lotuseater> ah now I see your recently mentioned project cl-git. and you have lenses? :o they are a powerful tool in Haskell, but not easy in category theory
jibanes has joined #lisp
Oladon has quit [Quit: Leaving.]
zaquest has joined #lisp
FreeBird_ has joined #lisp
<fiddlerwoaroof> lotuseater: the nice thing about lenses is that you don't have to think too hard about the theory to use them effectively
zaquest has quit [Remote host closed the connection]
<fiddlerwoaroof> that data-lens project is sort of badly named, though
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<fiddlerwoaroof> It does have an implementation of lenses (Van Laarhoven encoding, if that means anything)
<lotuseater> ah okay. I'm stuck between those :D
<fiddlerwoaroof> However, it's mostly about a style of programming I've found convenient: higher-order functions that produce functions that can be composed together to build up operations piecemeal
<fiddlerwoaroof> So, instead of some complicated loop construct, I do: (alexandria:compose (data-lens:over '1+) (data-lens:over 'parse-integer))
<fiddlerwoaroof> (this one isn't so bad in loop, I guess)
<lotuseater> yes i miss that opportunity sometimes
<fiddlerwoaroof> If you have experience with Clojure, I plan to "eventually" rebuild it around transducers (maintaining backwards compatibility, because I'm opposed to the idea of breaking changes)
FreeBirdLjj has joined #lisp
FreeBird_ has quit [Ping timeout: 258 seconds]
<lotuseater> hm not much, more with Haskell, my 2nd programming religion :)
<fiddlerwoaroof> lotuseater: my path is sort of unusual. I got really into Haskell around '08, but learning CL cured me of most of my desires for statically checked types
<lotuseater> I'll look it up
<lotuseater> oh yes, mine sort of same ^^
<fiddlerwoaroof> Transducers are basically a cool trick with continuations to enable explicit stream fusion
jibanes has quit [Ping timeout: 258 seconds]
<lotuseater> ah continuations :) the "Mother of all Monads" ^^
<lotuseater> okay stream fusion I never did yet
<fiddlerwoaroof> The basic problem is that MAPCAR and REMOVE-IF-NOT and friends all cons up intermediate collections. You can replace the CONS call with a callback that every intermediate operation calls with the next element to be produced.
<lotuseater> I wrote some query
<fiddlerwoaroof> Then, you pass in a base operation that actually builds up a collection to the composed stack of operations
<lotuseater> phew sounds nontrivial
<lotuseater> so they mess up the heap very quickly with non needed constructs?
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
jibanes has joined #lisp
ecraven has quit [Quit: bye]
ecraven has joined #lisp
<ldbeth> that's the whole point of beening lazy
<ldbeth> and why iterators get handy
<lotuseater> yees
<lotuseater> combined with memoization it's powerful
<ldbeth> i don't know why but I trend to get over think a lot about efficiency when write ML/Haskell
<lotuseater> some people say liking this and lisp is kind of paradox
zcheng3 has joined #lisp
igemnace has joined #lisp
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #lisp
Bike has quit [Quit: Lost terminal]
<fiddlerwoaroof> lotuseater: transducers are eager and also more efficient memory-wise
<lotuseater> ah okay
<fiddlerwoaroof> Laziness is great, until you try to profile your code
<lotuseater> uff yeah, very nondeterministic
<fiddlerwoaroof> This isn't the greatest explanatory sample, but here's my lisp implementation: https://github.com/fiddlerwoaroof/lisp-sandbox/blob/master/transduce.lisp
<fiddlerwoaroof> The basic idea is that (reduce 'cons list) will build up a list
<fiddlerwoaroof> (assuming reduce puts the accumulator into the second argument)
<lotuseater> nice
<fiddlerwoaroof> So, you can imagine mapping '1+ like this: (reduce (lambda (a acc) (cons (1+ a) acc)) list)
jibanes has quit [Ping timeout: 246 seconds]
<fiddlerwoaroof> And, adding parse-integer in: (reduce (lambda (a acc) [21:58]
aartaka has joined #lisp
<fiddlerwoaroof> 194 (cons (1+ (parse-integer a)) acc)) list)
<fiddlerwoaroof> So, you can see the mapped functions keep getting built up: (1+ (parse-integer a))
<lotuseater> i try to get this into my head
shifty has quit [Ping timeout: 260 seconds]
aartaka_d has quit [Ping timeout: 272 seconds]
oxum has joined #lisp
<fiddlerwoaroof> I always think it'll be simple to explain, and it never is :)
<fiddlerwoaroof> Probably means I don't understand it well enough :)
sgibber2018 has joined #lisp
hugh_marera has quit [Ping timeout: 256 seconds]
<lotuseater> yes I like this principle , it's said coming from Feynman
jibanes has joined #lisp
hugh_marera has joined #lisp
<lotuseater> don't worry I'm not so smart so that is the reason
zcheng3 has quit [Ping timeout: 265 seconds]
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #lisp
nowhere_man has quit [Remote host closed the connection]
GZJ0X_ has joined #lisp
GZJ0X_ has quit [Ping timeout: 256 seconds]
abhixec has joined #lisp
ldbeth has quit [Quit: ERC (IRC client for Emacs 27.1)]
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
abhixec has quit [Ping timeout: 256 seconds]
gaqwas has joined #lisp
gaqwas has joined #lisp
dmiles has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
<fiddlerwoaroof> lotuseater: if you're interested in a bit more of a step-by-step derivation of the concept, maybe this will help: https://fwoar.co/pastebin/f95e2ee5afe5b44aa7047a9c12cc3e4a07025aaa.lisp.html
gaqwas has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 272 seconds]
aartaka_d has joined #lisp
jw4 has quit [Quit: tot siens]
aartaka has quit [Ping timeout: 256 seconds]
jw4 has joined #lisp
hiroaki has joined #lisp
karayan has joined #lisp
<ck_> nice work. I always try not to snoc so much as well
karayan has quit [Client Quit]
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
<fiddlerwoaroof> Here's an example using data-lens funcitonality to build up a hash-table from the input numbers to the results of a transformtion: https://fwoar.co/pastebin/6441f6ddec9ca1d7b1d5d4c5ab86dce59c78926d.lisp.html
Fare has quit [Ping timeout: 264 seconds]
<fiddlerwoaroof> I think one of the most interesting things here is that the data transformation (the composed calls to MAPPING) are completely decoupled from the code that's responsible for iterating down the input sequence and from the code that's responsible for building up the result value
momozor has joined #lisp
g0d_shatter has joined #lisp
<momozor> Hi. I'm trying to remove an element from a specific index of an adjustable array, but I'm not really sure how I could do this without removing the array fill pointer (using setf)
<beach> momozor: What do you want to happen with the elements that follow the one you remove?
<beach> And why do you think you need to "remove the fill pointer" whatever that may mean?
g0d_shatter has quit [Read error: Connection reset by peer]
<beach> momozor: Hello?
<phoe> morniiiing
<beach> Hey phoe.
<phoe> momozor: let's assume your array looks like #(1 2 3 4 5 6 7) and you want to remove 4 from it. do you want #(1 2 3 5 6 7) afterwards?
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
<phoe> because this requires you to copy all elements followins 4 onto their new positions and is therefore O(n) in time
<phoe> or can it look like #(1 2 3 7 5 6)? because that is O(1) so much cheaper, but does not maintain order
<phoe> you can see a variant of that last technique in https://github.com/phoe/phoe-toolbox/blob/master/bag.lisp where I remove elements from an adjustable array at random so I don't care about order.
<phoe> otherwise, you'll need to loop and copy. vectors are painful to remove non-last elements from.
<fiddlerwoaroof> I guess you could maintain a list of the indices to remove, and then remove them all in one pass?
<phoe> fiddlerwoaroof: oh, right - if you want to remove multiple elements
<fiddlerwoaroof> Getting the code right might be a bit tricky
<beach> Or, you can use a Flexichain.
<fiddlerwoaroof> beach: basically a sequence of vectors? that was my other idea
<beach> No, a Flexichain is a circular gap-buffer implemented as a vector.
<momozor> beach: I was trying to do this to be exact - https://pastebin.com/wvYDYU2L
<momozor> phoe: yes
<momozor> sorry for the delayed replies, was crafting the paste
<beach> momozor: Your problem is that you are using REMOVE-IF.
<phoe> you likely don't want a vector as your data structure then.
<beach> momozor: It creates a new vector and very likely copies all the elements from the old one to the new one.
<momozor> ouh
<beach> momozor: So then, you might as well copy the elements following the one you want to remove, if order matters to you.
<beach> momozor: If order doesn't matter to you, just move the last element to the place of the element you want to remove, and decrement the fill pointer.
<no-defun-allowed> Perhaps a hash table keyed by ID would be more appropriate?
<beach> That works provided the order doesn't matter.
<phoe> what no-defun-allowed said
<beach> momozor: Is the order between the elements important?
<beach> momozor: If not, you have a "dictionary" data type, and implementing a dictionary using a sequence is usually a bad idea.
<beach> momozor: Another thing is that you seem to be using lists to define each entry. It would probably be more appropriate to use a standard class with slots for ID, TITLE, etc.
<beach> s/define/represent/
<momozor> ah thanks..I'll try you guys suggestions. I thought vector for my purpose is quite suitable.
shifty has joined #lisp
momozor has quit [Remote host closed the connection]
<no-defun-allowed> The time complexity of the operations for a dictionary type are probably not very good when using a vector--oh never mind.
momozor has joined #lisp
toorevitimirp has joined #lisp
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
ex_nihilo has joined #lisp
momozor has quit [Quit: leaving]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
shifty has quit [Ping timeout: 264 seconds]
andreyorst has joined #lisp
FreeBirdLjj has quit [Ping timeout: 265 seconds]
akrl has quit [Read error: Connection reset by peer]
akoana has quit [Quit: leaving]
akrl has joined #lisp
hendursa1 has joined #lisp
hendursaga has quit [Ping timeout: 240 seconds]
Aurora_v_kosmose has quit [Remote host closed the connection]
Aurora_v_kosmose has joined #lisp
frgo has joined #lisp
pve has joined #lisp
Nilby has joined #lisp
surabax has joined #lisp
ogamita has joined #lisp
shka_ has joined #lisp
hugh_marera has quit [Quit: Ping timeout (120 seconds)]
oxum_ has joined #lisp
rogersm has joined #lisp
oxum has quit [Ping timeout: 256 seconds]
vaporatorius has joined #lisp
vaporatorius has quit [Changing host]
vaporatorius has joined #lisp
vaporatorius__ has quit [Ping timeout: 264 seconds]
ogamita has quit [Ping timeout: 272 seconds]
kaftejiman has joined #lisp
luckless has joined #lisp
luckless has quit [Remote host closed the connection]
rogersm has quit [Quit: Leaving...]
luckless has joined #lisp
Codaraxis_ has joined #lisp
Codaraxis__ has quit [Ping timeout: 258 seconds]
dilated_dinosaur has quit [Ping timeout: 260 seconds]
aindilis` has joined #lisp
aindilis has quit [Ping timeout: 260 seconds]
dilated_dinosaur has joined #lisp
random-nick has joined #lisp
aartaka_d has quit [Read error: Connection reset by peer]
hugh_marera has joined #lisp
aartaka has joined #lisp
hugh_marera has quit [Client Quit]
harlchen has joined #lisp
aartaka_d has joined #lisp
vegansbane6 has quit [Quit: The Lounge - https://thelounge.chat]
aartaka has quit [Ping timeout: 260 seconds]
hugh_marera has joined #lisp
jonatack has quit [Ping timeout: 256 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
iskander- has joined #lisp
iskander has quit [Ping timeout: 246 seconds]
EvW has joined #lisp
jonatack has joined #lisp
ralt has joined #lisp
ogamita has joined #lisp
jonatack has quit [Ping timeout: 264 seconds]
jonatack has joined #lisp
vegansbane6 has joined #lisp
dmiles has quit [Read error: Connection reset by peer]
EvW has quit [Ping timeout: 260 seconds]
dmiles has joined #lisp
ogamita has quit [Remote host closed the connection]
ogamita has joined #lisp
dmiles has quit [Ping timeout: 246 seconds]
GZJ0X_ has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
galex-713 has joined #lisp
dmiles has joined #lisp
PatchyBeardDwarf has joined #lisp
<PatchyBeardDwarf> Can elisp questions asked here?
<PatchyBeardDwarf> Hello!
aindilis` has quit [Remote host closed the connection]
<beach> PatchyBeardDwarf: Nja,...
<beach> this channel is dedicated to Common Lisp.
<beach> Try #emacs.
<Krystof> phoe: we dialed back minion's sarcasm from its original version
<beach> That's too bad. :)
<phoe> Krystof: there's still some significant traces of it left in all the proper places
<phoe> I still love SBCL's "An attempt to access an array of element-type NIL was made. Congratulations!"
skangas has quit [Quit: Leaving]
<phoe> maybe related, maybe unrelated; I suspect some personal ties between those messages
PatchyBeardDwarf has quit [Ping timeout: 258 seconds]
andreyorst has quit [Ping timeout: 240 seconds]
imode has quit [Ping timeout: 256 seconds]
hugh_marera has quit [Quit: Connection closed]
EvW has joined #lisp
hugh_marera has joined #lisp
gaqwas has joined #lisp
gaqwas has joined #lisp
<easye> Recommendations for AWS SDK scripting with our favorite CONS? <https://github.com/pokepay/aws-sdk-lisp> seems the best I can find.
lotuseater has quit [Remote host closed the connection]
Bike has joined #lisp
lotuseater has joined #lisp
eden has joined #lisp
cosimone has joined #lisp
the-smug-one has joined #lisp
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #lisp
GZJ0X_ has quit [Read error: Connection reset by peer]
GZJ0X_ has joined #lisp
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
andreyorst has joined #lisp
GZJ0X_ has quit [Remote host closed the connection]
<Xach> easye: i have used https://github.com/xach/zaws in the past but it may be out of date with respect to auth these days
GZJ0X_ has joined #lisp
<Xach> It's also more of a building block for a tool than a tool
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #lisp
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #lisp
ogamita has quit [Remote host closed the connection]
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #lisp
GZJ0X_ has quit [Remote host closed the connection]
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
EvW has quit [Ping timeout: 258 seconds]
mrios222 has joined #lisp
<mrios222> hi, I have a question about hunchentoot. I set the content-type* variable to application/json, but the file that hunchentoot serves up is a html file -- an empty html file.
<mrios222> should I try to restart the server to see if it gets it right the second time? How would I do that?
jibanes has quit [Ping timeout: 256 seconds]
<Xach> mrios222: it is hard to say for sure without seeing the code
<the-smug-one> mrios222: It sounds like you (setf *content-type*) at the top-level
<mrios222> It's the code that is on pages 638 and 639 of Common Lisp Recipess
<Xach> mrios222: i don't have that book :(
jibanes has joined #lisp
<Xach> the-smug-one: normally that would error due to unbound reply
<mrios222> (progn (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :document-root "~/Documents/programming/common-lisp/ajax/" :port 4242)) (hunchentoot:define-easy-handler (get-symbols :uri "/get-symbols") (term) (setf (hunchentoot:content-type*) "application/json")
<mrios222> (with-output-to-string (*standard-output*) (yason:encode (sort (mapcar #'string-downcase (apropos-list term :cl)) 'string<))))))
<the-smug-one> Xach: Snap, you're right
iskander- has quit [Quit: bye]
<mrios222> Sorry, I'm not sure if there is a better way to share code
<the-smug-one> Ouch, please use a pastebin next time mrios222 mr
<mrios222> Sorry, didn't know about pastebin.
<the-smug-one> https://pastebin.ubuntu.com/ <- this one for example (don't use pastebin.com)
<mrios222> Thank you
sgibber2018 has quit [Quit: WeeChat 2.9]
<mrios222> when I tried to run the yason command in isolation, I got an error. It said that *json-output* was unbound.
<Xach> mrios222: i cannot reproduce
iskander has joined #lisp
<mrios222> Initially this set of commands led to an internal server error at localhost:4242/get-symbols
<Xach> mrios222: when i evaluate that code, and use curl localhost:4242/get-symbols?term=bool, i get a proper response
<Xach> mrios222: how did you get hunchentoot and yason?
<mrios222> quicklisp
<Xach> Same here. Hmm.
<Xach> https://pastebin.ubuntu.com/p/nmp7FN5QV6/ is what i get from curl
<mrios222> I just tried command line curl. The debug messages in my repl say that the server received the request.
<mrios222> However, the curl didn't give me any output.
<Xach> mrios222: can you show the output of curl -v?
eden has quit [Ping timeout: 240 seconds]
<lottaquestions> phoe: In yoour book on page 141, in the macroexpansion of the def-condition, you return the name of the defclass'ed foo-condition. Why is this?
ldbeth has joined #lisp
<lottaquestions> phoe: The only explanation you give for this on the same page is "In addition, we return the name of the condition from the final form, as dictated by the Common Lisp standard."
<Xach> mrios222: so it does set the content-type properly
<lottaquestions> phoe: Where can I find this in the standard?
<Xach> mrios222: what do you get from (ql:where-is-system "yason")?
<lottaquestions> minion: When phoe comes online, please ask him to look at my questions.
<minion> yesterday
<ldbeth> unfortunately the naive implementation of finite state automata does not work at 500,000 words scale
<Xach> lottaquestions: I have not read the book, but if the intent is to mimic define-condition, the spec dictates that the return value of that macro is the name.
<lottaquestions> minion: Ask phoe to checkout my questions when he next comes online
<minion> does torturing a poor bot with things beyond its comprehension please you?
<mrios222> xach ultralisp
<Xach> mrios222: normally it would give a pathname
aindilis has joined #lisp
<mrios222> #P"~/quicklisp/dists/ultralisp/software/hanshuebner-yason-20201112190411/"
<Xach> mrios222: i think it is possible that you have an incompatible version of yason
<mrios222> I edited out my home path and replaced it with ~
<Xach> sure
<Xach> mrios222: what happens if you use the quicklisp-dist yason, version 0.7.8?
waleee-cl has joined #lisp
<mrios222> xach how can I make sure that I use that version instead of the one I have right now?
<mrios222> xach sorry, I am still figuring out many basic things
<Xach> mrios222: one way is to do ql-dist::(disable (dist "ultralisp")) and restart
<lottaquestions> Xach: Gotta head out for some hiking. But will revisit this later. I have seen similar code not targetting conditions by stylewarning in his cl-algebraic-data-type project
<Xach> lottaquestions: DEFUN, DEFCLASS, and many other DEF-things return the name of the thing that was defined.
hendursa1 has quit [Quit: hendursa1]
<Xach> mrios222: sure, no problem, i like to help out if i can.
hendursaga has joined #lisp
<mrios222> xach ql-dist::(disable (dist "ultralisp") gives me the error that there are too many :s
<Xach> mrios222: oh, sorry, that is an sbcl feature. you can also do (ql-dist:disable (ql-dist:dist "ultralisp"))
<Xach> what lisp are you using?
<mrios222> xach sbcl
<ldbeth> :D
<Xach> i think then you may have typed something diferent than i did
<mrios222> xach I just tried the most recent command you suggested and that one went through.
<Xach> mrios222: ok, when you restart lisp, re-try your hunchentoot code, and see what happens.
<Xach> jackdaniel: who broke clim??
<mrios222> xach If I'm using the repl in SLIME, how do I restart?
<mrios222> xach slime-quit-lisp
<Xach> mrios222: i use ,restart
<mrios222> xach wow, it works! Thanks! You just saved me from a lot of frustration and confusion! I really appreciate it.
<mrios222> xach It's great to see the example working :)
<Xach> mrios222: no problem, glad to help. sorry to see that ultralisp has some kind of incompatible library.
matryoshka has joined #lisp
<mrios222> xach Well, I've definitely learned something important about libraries and debugging potential issues with them. From now on I'll stick with the vanilla quicklisp just to be safe ;)
<Xach> mrios222: and remember... https://xach.com/tmp/slad.gif
<phoe> Xach: is that one of your new GIFs?
<mrios222> xach Amen! Thank you for all of your work.
<Xach> it is
jibanes has quit [Ping timeout: 240 seconds]
<phoe> nice
mrios222 has quit [Ping timeout: 245 seconds]
jibanes has joined #lisp
<lottaquestions> Xach: I got slightly delayed. So still around. Here is an excerpt of the macroexpansion I am asking about: https://pastebin.com/qNfB3QYK
<lottaquestions> phoe: phoe! Check out my question
<lottaquestions> From Chapter 3 of your book
<lottaquestions> which I am loving by the way
iskander has quit [Ping timeout: 246 seconds]
iskander- has joined #lisp
Codaraxis_ has quit [Read error: Connection reset by peer]
liberliver has joined #lisp
<phoe> lottaquestions: !
<phoe> which question?
liberliver has quit [Client Quit]
<phoe> oooh, yes.
<phoe> ;; => name
<phoe> on the very top.
<phoe> we need to return the name. so we do.
FreeBirdLjj has joined #lisp
dmiles has quit [Read error: Connection reset by peer]
dmiles has joined #lisp
jibanes has quit [Ping timeout: 246 seconds]
FreeBirdLjj has quit [Ping timeout: 246 seconds]
jibanes has joined #lisp
ogamita has joined #lisp
dmiles has quit []
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #lisp
ex_nihilo has quit [Quit: Leaving]
ogamita has quit [Ping timeout: 272 seconds]
jibanes has quit [Ping timeout: 256 seconds]
jibanes has joined #lisp
eden has joined #lisp
jibanes has quit [Ping timeout: 258 seconds]
lotuseater has quit [Ping timeout: 240 seconds]
Blukunfando has quit [Read error: Connection reset by peer]
jibanes has joined #lisp
semz has quit [Ping timeout: 260 seconds]
<easye> Xach: I suppose <https://github.com/xach/zaws> was in your anti-ASDF phase...
ldbeth has quit [Remote host closed the connection]
aindilis has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 240 seconds]
<phoe> easye: why?
jibanes has quit [Ping timeout: 256 seconds]
<phoe> nothing out of the ordinary there...
jonatack has joined #lisp
jibanes has joined #lisp
zcheng3 has joined #lisp
<easye> phoe: Xach: my apologies. For some reason I missed that.
* easye should have done a (directory (asdf:system-relative-pathname :zaws "**/*.asd"))
marcoxa has joined #lisp
the-smug-one has quit [Ping timeout: 246 seconds]
<marcoxa> Hi guys... I just posted a new thing on my blog.
<beach> What are those things about?
Oladon has joined #lisp
semz has joined #lisp
semz has quit [Changing host]
semz has joined #lisp
<phoe> marcoxa: I've seen it! I really enjoy that
<Oladon> phoe: So I asked a friend the other day, "happen to have any _good_ examples of the condition system in use?" He said "Yes" and a few days later I got your book in the mail :D
<phoe> Oladon: :D
<phoe> there are even more examples in the online appendix, please remember to check it out
<Oladon> Sweet, will do. I'm enjoying it so far!
<phoe> marcoxa: I've allowed to crosspost it to /r/Common_Lisp
<easye> _CLCS_ is the stocking stuffer for the CONS fans in the 2020 holidays...
<Oladon> Hehe
astronavt has quit [Quit: ...]
astronavt has joined #lisp
astronavt has quit [Remote host closed the connection]
astronavt has joined #lisp
<phoe> oh no, a typo in the title
* phoe fixes
EvW has joined #lisp
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #lisp
<easye> Hmm. What's the difference between CHAR and SCHAR? CLHS just sez CHAR ignores the fill-pointer <http://www.lispworks.com/documentation/HyperSpec/Body/f_char_.htm>
<easye> Ah SCHAR only works on SIMPLE-CHAR. Duh.
<easye> err SIMPLE-STRINGs
gutter has joined #lisp
kenran has joined #lisp
patrickp has joined #lisp
<kenran> I recently found the lispPackages attribute in nixpkgs, now I'm wondering whether there are working setups for CL (using SBCL) that leverage nix integration for packages yet. I wasn't able to find one googling around, but since I'm new to common lisp I might not have looked in the right places. Do you have any hints for me?
thmprover has joined #lisp
jonatack has quit [Quit: jonatack]
aindilis has joined #lisp
akrl has quit [Read error: Connection reset by peer]
akrl has joined #lisp
<fiddlerwoaroof> easye: I have a fork of that https://github.com/fiddlerwoaroof/aws-sdk-lisp that has some patches
<fiddlerwoaroof> I used it extensively at my last job and fixed a couple bugs I found
<fiddlerwoaroof> One issue with AWS APIs is that even official clients like boto don't always work as the documentation specifies
jonatack has joined #lisp
jonatack has quit [Ping timeout: 240 seconds]
jonatack has joined #lisp
eta has quit [Ping timeout: 256 seconds]
Fare has joined #lisp
amerigo has joined #lisp
eta has joined #lisp
matryoshka has quit [Read error: Connection reset by peer]
matryoshka` has joined #lisp
Jeanne-Kamikaze has joined #lisp
zulu-inuoe has joined #lisp
zcheng3 has quit [Ping timeout: 256 seconds]
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #lisp
matryoshka` has quit [Read error: Connection reset by peer]
matryoshka has joined #lisp
ralt has quit [Quit: Connection closed for inactivity]
<thmprover> For Emacs, is sly really that much better than slime?
<loke[m]> thmprover: no. It's worse.
jpli has joined #lisp
<loke[m]> Sly intentionally removed support for presentations, mainly because the author never used them. It makes it much less powerful.
<thmprover> Ah, I see.
<thmprover> It looks like, if I were completely new to programming and Lisp, I may want to use sly instead of slime...but that's the only case that came to mind. I wasn't sure if there was any "extra batteries" not mentioned or discussed.
hnOsmium0001 has joined #lisp
<fiddlerwoaroof> Slime has output streams that let you stream text to an emacs buffer
<fiddlerwoaroof> To my knowledge, this hasn't been ported to Sly
<loke[m]> I don't see the point of sly. It's a version of slime where half the useful features are removed.
<fiddlerwoaroof> Also, swank supports graphics in the repl
<loke[m]> fiddlerwoaroof: yeah, that's pretty cool, although I've never used it in practice.
<loke[m]> But you can build your own presentations to display Lisp objects.
jpli has quit [Client Quit]
<loke[m]> No just images.
<fiddlerwoaroof> I've used the image stuff a bit
<fiddlerwoaroof> but mostly toys
<fiddlerwoaroof> loke[m]: I'm curious about this presentation stuff, though: I've used the basic stuff in the repl
jpli has joined #lisp
ogamita has joined #lisp
ogamita is now known as Guest41741
Guest41741 has quit [Remote host closed the connection]
matryoshka` has joined #lisp
matryoshka has quit [Read error: Connection reset by peer]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
<loke[m]> fiddlerwoaroof: I mainly use it to copy/paste the output as an argument to another call.
<loke[m]> A few commands above the output of some function may have returned some class instance, and it's useful to be able paste it into the arguments to a later call)
<fiddlerwoaroof> Ah, yeah, I use that alot
<fiddlerwoaroof> I was thinking there was some way to define custom displays, besides PRINT-OBJECT and friends
<loke[m]> There is.
matryoshka` has quit [Quit: ZNC 1.8.2 - https://znc.in]
matryoshka has joined #lisp
matryoshka has quit [Read error: Connection reset by peer]
matryoshka has joined #lisp
jibanes has quit [Ping timeout: 260 seconds]
jibanes has joined #lisp
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
<fiddlerwoaroof> j
rogersm has joined #lisp
amk has quit [Read error: Connection reset by peer]
amk has joined #lisp
ralt has joined #lisp
rogersm has quit [Quit: Leaving...]
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #lisp
matryoshka has joined #lisp
hiroaki has quit [Ping timeout: 272 seconds]
jibanes has quit [Ping timeout: 264 seconds]
jibanes has joined #lisp
<Xach> loke[m]: sly's trace dialog has been a real helper to me. i'm working on a threaded applicaton and the separate tracing with object persistence is very handy.
<phoe> we need to merge them back someday
<phoe> into something called... slyme
hiroaki has joined #lisp
catern has quit [Ping timeout: 240 seconds]
jibanes has quit [Ping timeout: 265 seconds]
jibanes has joined #lisp
catern has joined #lisp
X-Scale` has joined #lisp
eden has quit [Killed (Sigyn (Spam is off topic on freenode.))]
aartaka has joined #lisp
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
gproto23 has joined #lisp
aaaaaa has quit [Quit: leaving]
aartaka_d has quit [Ping timeout: 240 seconds]
gproto23 has quit [Client Quit]
eden has joined #lisp
a0 has joined #lisp
a0 has quit [Remote host closed the connection]
phantomics has quit [Read error: Connection reset by peer]
imode has joined #lisp
jibanes has quit [Ping timeout: 264 seconds]
mokulus has joined #lisp
jibanes has joined #lisp
<easye> phoe: +1 for slyme: time to end another schism!
<ck_> will it work on lucid emacs?
<easye> ck_: OFC.
<easye> slyme will work everywhere. Eventually it will replace cider for Clojure while working in VSCode, Atom, and whatever else the flavor of the month becomes.
<ck_> I'm convinced
<_death> ynferior modes everywhere
eta has quit [Ping timeout: 260 seconds]
lilgopher has joined #lisp
narimiran has quit [Ping timeout: 272 seconds]
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
jibanes has quit [Ping timeout: 260 seconds]
eden has quit [Quit: Leaving]
jibanes has joined #lisp
eden has joined #lisp
eta has joined #lisp
varjag has joined #lisp
phantomics has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
EvW has quit [Ping timeout: 260 seconds]
igemnace has quit [Remote host closed the connection]
lilgopher has quit [Quit: Computer went to sleep.]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
andreyorst has quit [Ping timeout: 265 seconds]
skapata has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
marcoxa has quit [Ping timeout: 256 seconds]
amb007 has joined #lisp
lilgopher has joined #lisp
akoana has joined #lisp
EvW has joined #lisp
thmprover has quit [Ping timeout: 272 seconds]
Codaraxis has joined #lisp
zabow has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
jibanes has quit [Ping timeout: 256 seconds]
eden has quit [Ping timeout: 240 seconds]
eden has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
amb007 has joined #lisp
<fiddlerwoaroof> One thing I find is that slime-scratch is often better than the slie-repl
<fiddlerwoaroof> I personally like the ability to just tweak the code and get the output inline in the bufer
jibanes has joined #lisp
asarch has joined #lisp
eden has quit [Ping timeout: 240 seconds]
<asarch> One very very stupid question: roughly, how many lines was the Lisp written in Lisp from back old days?
<phoe> I don't fully understand it
<asarch> And, does that Lisp written in Lisp still exist?
<phoe> which Lisp do you mean? LISP 1.5?
<asarch> As far I know, there was the first Lisp. Then, there was a Lisp written in Lisp itself
<asarch> I guess that was long before Common Lisp
<easye> fiddlerwoaroof: next level after slime-scratch is using org-mode to evaluate code.
jeosol has quit [Remote host closed the connection]
karlosz has quit [Quit: karlosz]
<easye> for org-mode to use lisp eval (org-babel-do-load-languages 'org-babel-load-languages '((dot . t) (lisp . t)))
thmprover has joined #lisp
asarch has quit [Remote host closed the connection]
asarch has joined #lisp
<easye> Then in any babel source block marked as lisp via `#+begin_src lisp` you can simply C-c C-c to run in the active SLIME repl.
zabow has quit [Ping timeout: 256 seconds]
sugarwren has joined #lisp
asarch has quit [Remote host closed the connection]
asarch has joined #lisp
<easye> Errat: the `(dot . t)` form isn't necessary, but it is nice to bring graphviz along for the ride...
<Alfr> asarch, you mean those twenty odd lines for an (not CL) evaluator form the LISP 1.5 Programmer's Manual?
ralt has quit [Quit: Connection closed for inactivity]
jw4 has quit [Read error: Connection reset by peer]
jw4 has joined #lisp
<Nilby> asarch: The first Lisp was written on paper by McCarthy, only a couple of pages. The second Lisp was written in machine code by Russell, translated from the paper. From then on Lisps were written in Lisp, as you can see the core of the Lisp 1.5 code is very small.
toorevitimirp has quit [Remote host closed the connection]
<Nilby> But some people say the first lisp was actually written by Gödel in his most famous paper.
<thmprover> Who says this?
matryoshka has quit [Quit: ZNC 1.8.2 - https://znc.in]
<thmprover> (I heard "Godel" and knew it was my time to shine)
<easye> Which machine did Betrand Russell write the code for?
<thmprover> Godel's paper arguably was the first instance of a compiler, since he used Godel numbers to encode logic.
<easye> Naw, Ada had the basics of compilers a good half-century before.
<easye> Ada Lovelace
<thmprover> True, I forgot about that.
<thmprover> Er, well, Russell didn't write code. Arguably the Principia should be read as source code, the reader was the "machine".
luckless has quit [Quit: luckless]
<easye> Goedel essentially proved theoretically that the _Principia_ was an impossible project. Practically it had been abandoned a decade before.
<thmprover> That was his first incompleteness theorem, but he used Godel numbering to prove it.
choegusung has joined #lisp
<thmprover> It would be exciting if he used Lisp, but no :(
<easye> The Primes are perhaps marginally more foundational than the CONS.
<thmprover> He fruitlessly spent the remaining 18 years of his life trying to build a time machine to reach a period when Lisp could be enjoyed as freely as today.
<easye> hah
sugarwren has quit [Quit: Leaving]
<Nilby> Steve Russell, also write the first video game Spacewar
<thmprover> Wouldn't multiplication be the cons?
karlosz has joined #lisp
<easye> Once you know the CONS, you see it everywhere.
<easye> Until you start dealing with RDF triples, and then you ain't so sure.
<easye> Steve Russel wrote Spacewars? Wow. I remember somehow seeing it in an arcade in a pizza parlor in the DC beltway in 1978.
<easye> By random chance. I was entranced. Vector graphics rule!
<easye> Asteroids appeared shortly afterwards, which was definitely more ubiquitous.
<easye> As far as I know, Spacewars was never released as in an arcade machine from what I could determine.
<easye> So, I have no idea how I saw it in a pizza parlor. But it was definitely 1978, as I had just seen _Star Wars_.
<Nilby> Weirdly, Steve Russell also taught a little Billy Gates how to program.
<easye> Gee, was Steve Russell at Harvard?
<Nilby> MIT
matryoshka has joined #lisp
<easye> So Gates went to MIT to code? He was a Seattle new-money scion who was in Boston for Harvard where he met Ballmer. Gates never officially attended MIT from what I know.
<Nilby> No, Russell was in Seattle after MIT.
<easye> Was Spacewars in Lisp?
Jesin has quit [Quit: Leaving]
<easye> Ah. So after Billy flunked out, and slunked back to the Left Coast.
<Nilby> Spacewars was in PDP-1,8,10 assembly I think.
jonatack has quit [Ping timeout: 256 seconds]
<easye> Yeah, that's what I remember.
entre-parenteses has joined #lisp
<deltab> easye: I'm reading that Spacewar! (1962) inspired Space Wars, the 1977 arcade game
<Nilby> Right.
<easye> Ah, I didn't know Spacewar! was 1962. That makes sense.
<easye> That arcade cabinet couldn't even hold a Soviet PDP-8 clone...
Jesin has joined #lisp
<Nilby> I played it on a PDP-10 filling 2 rooms with a raised floor.
scymtym_ has joined #lisp
scymtym_ has quit [Remote host closed the connection]
<easye> Although the Soviet clones of the PDP-8 and PDP-11 where definitely *different* than DEC's
<easye> Er, wait, DEC didn't do PDPs.
matryoshka` has joined #lisp
<easye> Oh, yes they did.
matryoshka has quit [Read error: Connection reset by peer]
scymtym has quit [Ping timeout: 256 seconds]
scymtym has joined #lisp
<Nilby> PDP-10s ran a lot of cool stuff like the original Spacewar, Lisp, and Emacs.
izh_ has joined #lisp
<varjag> i have two soviet sbc pdp-11 clones here
<easye> varjag: wow. Can I come see them after the pandemic is over?
<varjag> still haven't got around to building the psu and current loop terminal adapter
<Nilby> I love all those switches.
<varjag> easye: it's not much to see, they are just PCBs
<varjag> were commonly used as controllers in CNC and industrial systems
<easye> varjag: Alright. But someday I'd like to.
<Nilby> Of course you emulate, but it's not the same without the noise, smell, and glowy phosphor monitors.
ebrasca has quit [Remote host closed the connection]
<easye> I once spoke to an engineer who served on Soviet Boomers (ballistic missile subs). He described the "computers" that were just mechanical pieces of wire that rotated that provided all the nuke targeting they needed. The good thing was they were resistant to EMP.
aeth has quit [Ping timeout: 265 seconds]
<easye> That and the description of being able to throw a tarp over a Flunker interceptor in a field, come back in six-months, and it would fly just made my jaw drop.
izh_ has quit [Quit: Leaving]
aeth has joined #lisp
<easye> For say, an F-15 it was common to have to have the entire ground crew line up to sweep the 100m around the plane for stray bolts that would otherwise get sucked into the engines and destroy it.
<varjag> easye: this was on the very early missiles only
<varjag> the guidance design itself copied from v-2
<Nilby> Last time I saw people standing on the plane, sweeping with brooms, I got a little worried.
<easye> I didn't realize that the Soviets also used V-2 stuff. Makes sense, as the Americans didn't get everyone with Operation Paperclip <https://en.wikipedia.org/wiki/Operation_Paperclip>. Without that, the US wouldn't have had any chance to match Sputnik. The Redstone was essentially a V-2.
zabow has joined #lisp
<varjag> the first two soviet ballistic missiles, r-1 and r-2, were complete faithful copies of v-2
<easye> But there was a lot more native talent rocket enthusiasts in Russia. It was really Sputnik that kick-started the whole "build a solid state missile in your garage" movement in the 1950-60s
<varjag> up to r-5 they remained v-2 for the most part
bitmapper has quit [Quit: Connection closed for inactivity]
<varjag> r-5 introduced warhead separation and was bigger
<easye> Yeah, I think the Soviets actually overran Pennemuende, right?
<varjag> r-7 (the predecessor of soyuz) still had some of design elements from v-2
<varjag> i think so yes, but it was abandoned relatively early in the war
srandon111 has joined #lisp
<srandon111> guys does clojure have cons ?
<srandon111> i mean i didn't know
<srandon111> why there is people saying that clojure does not have cons ?
<thmprover> People are *wrong* on the internet?!
<ane> srandon111: maybe they mean clojure lists aren't based on cons cells?
<thmprover> Clojure is a weird lisp/haskell/java hybrid.
<Nilby> Clojure has a cons function but it returns a seq not a cons.
<varjag> it appears to take sequence as its 2nd arg too
gaqwas has quit [Ping timeout: 265 seconds]
<varjag> can you (cons 1 2) in clojure?
<travv0> nope
<travv0> also a seq and sequence are two different concepts in clojure
<travv0> but this is pretty off-topic
<easye> So was rockets, for which I apologize.
<thmprover> Well, `cons` creates a new Cons object
<thmprover> OR a new PersistentList object.
<thmprover> But the second-argument to Clojure's "cons" must be a seq of some kind.
EvW has quit [Ping timeout: 258 seconds]
<Nilby> Clojure conses up seqs with cons. CONS conses up conses that can be sequences.
<thmprover> Now that's reasonable, I can get behind a proposal like that.
<Nilby> :D
zcheng3 has joined #lisp
* Nilby : striving towards reasonable confusion since 2024.
jibanes has quit [Ping timeout: 260 seconds]
matryoshka` has quit [Read error: Connection reset by peer]
matryoshka has joined #lisp
jibanes has joined #lisp
* deltab watches a game of Spacewar! and more: https://www.youtube.com/watch?v=1EWQYAfuMYw
shka_ has quit [Ping timeout: 240 seconds]
entre-parenteses has quit [Quit: ERC (IRC client for Emacs 27.1)]
<thmprover> Lisp in small pieces is on sale for...$547.77...
entre-parenteses has joined #lisp
choegusung has quit [Quit: leaving]
<curiouscain> Bargain!
jibanes has quit [Ping timeout: 256 seconds]
jibanes has joined #lisp
<travv0> i'd be willing to part with my copy for $400
<easye> _LiSP_ is a very cool text. I didn't make it through the last few chapters.
<thmprover> Eh, looking through the preview, it's the same dialog style as "The little prover", which...well, it didn't work for me.
jibanes has quit [Ping timeout: 256 seconds]
<no-defun-allowed> I don't remember that, but I read LiSP approximately too long ago.
jibanes has joined #lisp
<travv0> lisp in small pieces isn't dialogue-style like the little prover/schemer
<thmprover> Oh wait, I'm mixing up LiSP with the Little Lisper, gah
EvW has joined #lisp
<thmprover> (Amazon recommended the Little Lisper as a consolation prize)
<easye> _LiSP_ starts out easy, but really ramps up in difficulty towards the end.
<hendursaga> thmprover: That's just the hard-cover though?
<easye> But _LiSP_ definitely is one of my "Desert Island Lisp Books". No other book that I know of actually goes into such detail about implementation.
<thmprover> henursaga: yeah, though I prefer hard-cover when possible (since paperbacks tend to get badly mangled by the ravages of time...at least, in my care)
<Nilby> I'm offically voiding copyright on long out of print books. Cheers.
<thmprover> easye: yeah, that's what piqued my interest.
<thmprover> I'm trying to write a "case study" of a literate program which is a verified implementation of a Lisp interpreter...which is how LiSP came across my radar.
<srandon111> ane, thmprover do you think common lisp has advantages over clojure these days ?
<no-defun-allowed> What verification would you do?
<thmprover> srandon111: Common Lisp's performance is much better than Clojure (I work with Clojure and Clojurescript for a living)
<no-defun-allowed> The CL condition and object systems are unparalleled, and Clojure doesn't even try.
* easye is an old dog at this point, who doesn't want to learn new Clojure tricks.
<thmprover> no-defun-allowed: I would need to write a spec for the small Lisp fragment, then use a theorem prover to demonstrate the interpreter faithfully implements the spec. Or do it by hand.
<no-defun-allowed> I see. What could you specify?
<thmprover> This is just a writing experiment to see if I could write a literate program, combined with some form of "literate formal proof".
<Nilby> srandon111: A programming language is for you to express programs, so why should it matter what other people think? If you like a language, then it's good for you.
pve has quit [Quit: leaving]
<thmprover> no-defun-allowed: I would probably have several coupled together. A spec for an SECD machine, then a spec for compiling Lisp to the SECD machine instructions, and a third spec for the syntax & semantics of my Lisp fragment.
<thmprover> I would then need to prove formally that "the diagram commutes" (i.e., if I had a Lisp tree-walking interpreter which faithfully adhered to the semantics of the spec, it would produce the same behavior as the SECD interpreted bytecode).
<no-defun-allowed> Righteo.
<no-defun-allowed> I recall that from an ACL2 tutorial. They wrote a stack machine, an interpreter for a language, and a compiler, and proved that the interpreter and stack machine did the same thing.
<thmprover> srandon111: also the STM for Clojure, while really sophisticated, leads to bloated memory usage UNLESS you are very careful about managing memory with various coding conventions.
<thmprover> no-defun-allowed: Fascinating! My own experiment stems from a larger project I'm working on, namely, writing a book on theorem provers for mathematicians "from scratch". I'll have to look at that ACL2 tutorial, but I'm basically working with a Blub language + Hoare triples.
<thmprover> srandon111: in short, unless you are very diligent with your programming, CL is a friendlier language (in my mind)
<ane> srandon111: yes, the condition system and CLOS make it easier to build large scale programs
jibanes has quit [Ping timeout: 256 seconds]
jibanes has joined #lisp
zcheng3 has quit [Ping timeout: 240 seconds]
srandon111 has quit [Quit: leaving]
* entre-parenteses
<phoe> entre-parenteses: yes
kenran has quit [Quit: leaving]
<entre-parenteses> Sorry, new to IRC and testing stuff out...
<phoe> welcome to IRC then! to the channel #lisp on IRC network Freenode, to be exact
jibanes has quit [Ping timeout: 260 seconds]
<entre-parenteses> Many thanks! Hopefully I'm not being too disruptive with my fiddling.
jibanes has joined #lisp
amerigo has quit [Quit: Connection closed for inactivity]
<thmprover> entre-parenteses: I fear you are too polite for the internet.
lisperature has joined #lisp
<Nilby> We do have fiddlers here.
* easye watches Rome burn.
<entre-parenteses> thmprover: Haha, maybe. Just don't want to break too many rules from the get-go. I'm relatively new to CL and hoping to not burn bridges (or Rome) with the community.
<entre-parenteses> There's a lot to learn.
<phoe> well then, welcome
<phoe> #lisp is for general CL discussion, ##lisp is for discussion of all Lisp dialects
gaqwas has joined #lisp
gaqwas has joined #lisp
<phoe> #lispcafe is for off-topic chat and #clschool is a place where beginners can ask questions
<phoe> if #clschool is silent, then go to #lisp; if #lisp is occupied with elsething, go to #clschool
<phoe> that's the summary of everything.
<Nilby> The more Lisp you learn, the less Lisp you know.
* easye watches phoe drop the mic,
<ane> the more lisp, the more lisp
<phoe> easye: wait, where do I drop the mic and how
<Nilby> e.g. #<pathname>s
<phoe> wait, this implies that pathnames are unreadable'
<phoe> ...oh, I see
<phoe> touche, I enjoyed that one
<easye> kick it on over here baby-pops, and let the old-school rule.
<phoe> :(
* phoe mic drops, goes to sleep
aartaka has quit [Ping timeout: 260 seconds]
Lord_Nightmare has quit [Remote host closed the connection]
Lord_Nightmare has joined #lisp
jibanes has quit [Ping timeout: 258 seconds]
jibanes has joined #lisp
lotuseater has joined #lisp
zabow has quit [Ping timeout: 265 seconds]
<lotuseater> good evening. hope all your parentheses are balanced :)
<phoe> (
<no-defun-allowed> )
<phoe> sike, I caught your nickname between the parens
* phoe goes to sleep, it's about time.
<thmprover> I guess that means you'll be executed :o
<no-defun-allowed> The function COMMON-LISP:*NO-DEFUN-ALLOWED* is undefined.
jibanes has quit [Ping timeout: 256 seconds]
lisperature has quit [Remote host closed the connection]
jibanes has joined #lisp
gaqwas has quit [Ping timeout: 240 seconds]
<phoe> (defun no-defun-allowed () (setf (macro-function 'cl:defun) nil) (unintern 'cl:defun :cl) nil)
<Nilby> (save-lisp-and-sleep)
Nilby has left #lisp ["👽愛🆑"]
jcguu95 has joined #lisp
surabax has quit [Quit: Leaving]
cosimone has quit [Quit: cosimone]
<asarch> "Abstract
<asarch> In 1935/1936 Kurt Gödel wrote three notebooks on the foundations of quantum mechanics, which have now been entirely transcribed for the first time. Whereas a lot of the material is rather technical in character, many of Gödel's remarks have a philosophical background and concentrate on Leibnizian monadology as well as on vitalism. Obviously influenced by the vitalistic writings of Hans Driesch and his ‘proofs’ for the exis
<asarch> tence of an entelechy in every living organism, Gödel briefly develops the idea of a computing machine which closely resembles Turing's groundbreaking conception. After introducing the notebooks on quantum mechanics, this article describes Gödel's vitalistic Weltbild and the ideas leading to the development of his computing machine. It investigates a notion of lawlike sequence which closely resembles Turing's concept of a computabl
<asarch> e number and which Gödel himself calls ‘problematic’, and compares it to the opposed concept of randomness, drawing upon the notion of program-size complexity. Finally, Gödel's machine is implemented in a dialect of the Lisp programing language."
<asarch> Oh, sorry
lilgopher has quit [Ping timeout: 264 seconds]
<asarch> This Gödel?
<lotuseater> asarch: his notebooks on QM are more on the logic, aren't they?
ralt has joined #lisp
<Bike> sounds like a neat paper though.
EvW has quit [Ping timeout: 260 seconds]
<lotuseater> oh funny: Penrose–Lucas argument "Claim that human mathematicians are not describable as formal proof systems"
<lotuseater>
<lotuseater> the more beginning mathematical foundations for how to calculate in QM were given mostly by John von Neumann or let's say condensed
EvW has joined #lisp
jibanes has quit [Ping timeout: 246 seconds]
jibanes has joined #lisp
asarch_ has joined #lisp
asarch has quit [Ping timeout: 272 seconds]
asarch_ is now known as asarch
<asarch> XBox + Fornite = a nightmare for your Internet connection here in México
guanohhh has joined #lisp
<lotuseater> so how's the situation with lisp in México? :)
moon-child is now known as heats-flamesman
heats-flamesman is now known as moon-chilled
<asarch> Well, a friends of mine were discussing about Hamilton code for landing on the moon: https://upload.wikimedia.org/wikipedia/commons/d/db/Margaret_Hamilton_-_restoration.jpg
<asarch> And I just was wondered about the programming language she used for that
<lotuseater> oh I like that picture :3
defunkydrummer has joined #lisp
jibanes has quit [Ping timeout: 240 seconds]
<asarch> Because it seem to much for me because, well, the processors that were available back old days, you know
<asarch> I mean, that was the reason of the size of Lisp written in Lisp
jibanes has joined #lisp
<lotuseater> yes or when you look on Stuart Russell handcompiling the stuff on IBM704 for writing EVAL
<asarch> Is it still available the Lisp on Lisp code?
<asarch> Or even Russell's code?