beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
peterhil has quit [Ping timeout: 272 seconds]
aw- has quit [*.net *.split]
aw- has joined #picolisp
beneroth has quit [*.net *.split]
beneroth has joined #picolisp
anddam has quit [*.net *.split]
anddam has joined #picolisp
Regenaxer has quit [*.net *.split]
Regenaxer has joined #picolisp
casaca has quit [*.net *.split]
inara has quit [*.net *.split]
casaca has joined #picolisp
inara has joined #picolisp
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
rob_w has joined #picolisp
razzy has joined #picolisp
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
stultulo has joined #picolisp
f8l has quit [Ping timeout: 258 seconds]
razzy has quit [Ping timeout: 248 seconds]
razzy has joined #picolisp
peterhil has joined #picolisp
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 248 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
rob_w has quit [Quit: Leaving]
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
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
<Regenaxer> The CAR is a 'var'
<razzy> https://termbin.com/6b65 why is (set (cdar Pop) ("d") ) forbidden?
<Regenaxer> as well as the CDR of a symbol
<Regenaxer> cell (i.e. the value)
<Regenaxer> ("d") is a function call
<Regenaxer> you need to define "d" :)
<Regenaxer> or quote '("d")
<razzy> urgh, function call?
<Regenaxer> yes, Evaluation
<Regenaxer> num gives itself, sym gives the value, and list is called as a function
<razzy> functions need to have nested list right? '((In) something)
<Regenaxer> Function *definitions* yes
<beneroth> functions body have first element being the parameter list, and the rest the body
<Regenaxer> Function *call* is ("d")
<beneroth> but it doesn't need to be a list, can also be '(@ something) or '(X something)
<Regenaxer> exactly
<razzy> now i have cleared my huge blind spot
<razzy> many more to go
<Regenaxer> Great! :)
<Regenaxer> No worries
<razzy> (1 2 3) evaluates ok just because it is numbers yes?
<beneroth> yes, special rule
<beneroth> wlel
<beneroth> its same as '(1 2 3)
<beneroth> so does not evaluate, because its quoted
<beneroth> which means its factually (quote 1 2 3)
<beneroth> '(a b c) is the same as (quote a b c)
<beneroth> (1 2 3) is the same as '(1 2 3) is the same as (quote 1 2 3)
<razzy> Regenaxer: what if I want to replace all (cdar Pop) all "b" "c" "d" till eng of list
<Regenaxer> Then you can use 'con'
razzy has quit [Ping timeout: 245 seconds]
razzy has joined #picolisp
theruran has joined #picolisp