theruran has quit [Quit: Connection closed for inactivity]
<razzy>
how do i send REPL log into linux command line?
<Regenaxer>
You can do that if you copy the window contents in tmux
<Regenaxer>
Perhaps also with 'tee'? Never tried
<razzy>
thx
<Regenaxer>
Yes, works!! :)
<Regenaxer>
~/pil21 ./pil + |tee log
<Regenaxer>
: (* 3 4)
<Regenaxer>
-> 12
<Regenaxer>
: (bye)
<Regenaxer>
~/pil21 cat log
<Regenaxer>
: (* 3 4)
<Regenaxer>
-> 12
<Regenaxer>
: (bye)
<razzy>
omg, wonderfull
<Regenaxer>
:)
<razzy>
Regenaxer: if you want to webpaste it. this ussually works -> cat log |nc termbin.com 9999
<Regenaxer>
Cool, I see
<razzy>
Regenaxer: somehow, it is messed up now. https://termbin.com/5c2o . I have nested list Pop and i can list (caar Pop). I want to change (caar Pop). I am thinking magic with reading (adr) asigning adr to temporary symbol and changing content of symbol.
<Regenaxer>
No, 'adr' is never used in normal programming
<Regenaxer>
Use 'set'
<Regenaxer>
(set (car Pop) ...)
<Regenaxer>
(car Pop) is ((1 3) "b" "a" "c"), right?
<Regenaxer>
So (set (car Pop) (7 8)) should give ((7 8) "b" "a" "c")
<razzy>
so car and cdr gives usefull adresses uh? :]
<Regenaxer>
Sure
<Regenaxer>
every Lisp data item is a pointer
<Regenaxer>
(doc 'set)
<Regenaxer>
it takes a 'var'. See doc/ref.html for 'var'
<razzy>
Regenaxer: how do i adress (cdar Pop)
<Regenaxer>
Same
<razzy>
Regenaxer: i remember that it was not the case in normal pil :]
<Regenaxer>
No, it always was. It is the most central part of pil
<Regenaxer>
(cdar Pop) is the list ("b" "a" "c"), right?
<razzy>
hmm, maybe I remember just my confusion.
<razzy>
yes
<Regenaxer>
So (set (cdar Pop) ..) replaces the "b"
<Regenaxer>
See 'var' in "Other (derived) data types" below "Function Reference"
<razzy>
I still not get it :D ,... somehow i manage to kill pil :D
<Regenaxer>
Hmm, think of the diagram of a cell, CAR and CDR