Search
Monday, 11th of February 2019, 23:03:41 UTC
23:25:23
no-defun-allowed
run-length <- 1, item <- i
23:30:57
Nilby
tempate: I like loop too: https://bpaste.net/show/88d8707aed12
23:56:43
Lord_of_Life_
** NICK Lord_of_Life
0:19:05
Xach
dxtr: hey i have a question!
0:21:55
Xach
dxtr: what will you do when you have that kind of info handy?
0:25:47
dxtr
I'm making lists with that info?
1:07:00
Xach
dxtr: what does the input and output look like in an ideal world?
1:11:05
Xach
dxtr: i have a trick i use but i don't know if it fits your situation, just curious about it.
1:18:14
Xach
dxtr: what do you do at the start of the list?
4:46:25
beach
Good morning everyone!
5:58:25
fiddlerwoaroof
dxtr: one trick I've thought of is to use a cons cell where the car is a stack of previous items and the cdr is the remaining list
5:59:19
fiddlerwoaroof
Then you have FORWARD that is essentially (push (cadr cursor) (car cursor))
5:59:47
fiddlerwoaroof
... (push (pop (cdr cursor)) (car cursor)
6:03:19
fiddlerwoaroof
and BACKWARD that is (push (pop (car cursor)) (cdr cursor))
6:03:34
fiddlerwoaroof
(possibly with copying logic, if you don't want to mutate your inputs)
6:09:40
fiddlerwoaroof
here's a non-mutating version: https://fwoar.co/pastebin/676375393d12b9ba8ad525c85363b732e5c9604c.lisp.html
7:04:15
asarch
Just in the case if you are wondering if PortableAllegroServe can do REST API, the answer is yes:
7:04:18
asarch
http://paste.scsys.co.uk/583079
7:05:56
asarch
BTW, the port 5477 is 'LISP' in the telephone keypad
7:07:12
asarch
Perl people used to use the port 7375
7:07:53
asarch
Excellent, isn't it?!
7:08:45
asarch
A 40 years old programming language can use a 20 years old program to develop nowadays web applications!
9:02:31
splittist
Once again I am amazed by how a short period of concentrated thought is a substitute for hours of key bashing. And how hard it is to carve out time for concentrated thought.
10:27:39
beach
splittist: Is this from personal experience, or something you observed?
10:39:22
splittist
beach: personal experience
Tuesday, 12th of February 2019, 11:03:41 UTC