ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
freemint has quit [Quit: Leaving]
f8l has quit [Remote host closed the connection]
brandelune has quit [Quit: This computer has gone to sleep]
f8l has joined #picolisp
patrixl has quit [Quit: Leaving.]
patrixl has joined #picolisp
orivej has joined #picolisp
brandelune has joined #picolisp
brandelune has quit [Client Quit]
brandelune has joined #picolisp
brandelune has quit [Ping timeout: 265 seconds]
brandelune has joined #picolisp
_whitelogger has joined #picolisp
brandelune has quit [Quit: This computer has gone to sleep]
rob_w has joined #picolisp
mtsd has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #picolisp
v88m has quit [Read error: Connection reset by peer]
beneroth has joined #picolisp
v88m has joined #picolisp
brandelune has joined #picolisp
mtsd has quit [Ping timeout: 272 seconds]
<tankf33der> hi all
<tankf33der> Regenaxer: here ?
<Regenaxer> Hi tankf33der!
<tankf33der> question:
<tankf33der> this is code of VM:
<tankf33der> 109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99
<tankf33der> 1001,100,1,100
<tankf33der> is
<tankf33der> take value in [100] + 1, put result to [100]
<tankf33der> so i need address space beyond code
<Regenaxer> aka Turing machine?
<tankf33der> all initialized by 0.
<tankf33der> i dont think so.
<tankf33der> is it will be idx ?
<Regenaxer> How long or big is the code?
<tankf33der> unknown now.
<tankf33der> this is adventofcode tasks.
<tankf33der> 100 items,
<tankf33der> not millions.
<tankf33der> 100-2k items,
<Regenaxer> if big, idx is better, but for 100 a list is ok
<Regenaxer> for fastest, native is best
<Regenaxer> malloc
<Regenaxer> but not necessary I think
<Regenaxer> You can also make an multi-dim grid
<tankf33der> if list you menat assoc ?
<Regenaxer> I thought 'get' and 'put'
<tankf33der> i think get-put is not ok.
<tankf33der> gap will be huge.
<tankf33der> gaps will be huge.
<tankf33der> idz then.
<tankf33der> idx then.
<Regenaxer> Empty space?
<tankf33der> ya
<tankf33der> yea
<Regenaxer> ax
<Regenaxer> ah
<Regenaxer> then idx is best, yes
<Regenaxer> plus 'hash' if creation is not random
<tankf33der> but in this example if [100]
<tankf33der> should i take hash of 100 ?
<tankf33der> or "100" ?
<Regenaxer> yes
<Regenaxer> Like in 'cache' or 'uniq'
<tankf33der> i but i thought 100 is index itself.
<Regenaxer> yes
<Regenaxer> but if you *insert* linearly, the tree degenearates to a linear list
<tankf33der> known.
<tankf33der> so hash("100")
<tankf33der> ok
<tankf33der> http://ix.io/2aKH
<tankf33der> this is real code of task.
<Regenaxer> So best is to index with (char (hash 100))
<tankf33der> oh
<Regenaxer> and put payload into the value of the char
<Regenaxer> like 'cache' does
<tankf33der> i will check again, i remember something.
<Regenaxer> The numbers in http://ix.io/2aKH are the array?
<Regenaxer> so quite random
<beneroth> hi Regenaxer, hi tankf33der :)
<tankf33der> i dont know yet what is code, what is data
<Regenaxer> Moin beneroth!
<tankf33der> so i need idx only if access beyond this list
mtsd has joined #picolisp
orivej has joined #picolisp
geo80 has joined #picolisp
<geo80> Hi Regenaxer! and everyone! just a quick question before leaving. Why does the car for a symbol returns the value but on the structures document its shows the VAL is on the cdr side. thanks in advance!
<Regenaxer> correct, but you must look at the pointer
<Regenaxer> 'car' is just a pointer dereference
<Regenaxer> Like *p in C
<Regenaxer> so it is the
<Regenaxer> CAR of a list cell, or the VAL of a symbol cell
<geo80> oh! ok let me absorb that once at home, thank you as always!
<geo80> gtg
<Regenaxer> Welcome! :)
<Regenaxer> see you
geo80 has left #picolisp [#picolisp]
viaken has quit [Ping timeout: 246 seconds]
<tankf33der> testing picolisp on freebsd 12.1 x64
brandelune has quit [*.net *.split]
theruran has quit [*.net *.split]
inara has quit [*.net *.split]
tankf33der has quit [*.net *.split]
CORDIC has quit [*.net *.split]
pointfree has quit [*.net *.split]
v88m has quit [Write error: Connection reset by peer]
f8l has quit [Remote host closed the connection]
v88m has joined #picolisp
f8l has joined #picolisp
v88m has quit [Read error: Connection reset by peer]
Regenaxer has quit [Ping timeout: 240 seconds]
emacsomancer has quit [*.net *.split]
aw- has quit [*.net *.split]
jibanes has quit [*.net *.split]
yunfan has quit [*.net *.split]
joebo has quit [*.net *.split]
yunfan has joined #picolisp
yunfan has joined #picolisp
yunfan has quit [Changing host]
brandelune has joined #picolisp
inara has joined #picolisp
theruran has joined #picolisp
joebo has joined #picolisp
tankf33der has joined #picolisp
pointfree has joined #picolisp
CORDIC has joined #picolisp
emacsomancer has joined #picolisp
theruran has quit [Ping timeout: 257 seconds]
aw- has joined #picolisp
jibanes has joined #picolisp
theruran has joined #picolisp
v88m has joined #picolisp
Regenaxer has joined #picolisp
<tankf33der> works.
<beneroth> good!
<beneroth> thanks tankf33der
rob_w has quit [Quit: Leaving]
brandelune has quit [Quit: This computer has gone to sleep]
mtsd has quit [Quit: Leaving]
beneroth has quit [Quit: Leaving]
v88m has quit [Ping timeout: 268 seconds]
beneroth has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
v88m has joined #picolisp
emacsomancer has quit [*.net *.split]
emacsomancer has joined #picolisp
emacsomancer has quit [Max SendQ exceeded]
v88m has quit [Ping timeout: 268 seconds]
emacsomancer has joined #picolisp
v88m has joined #picolisp
orivej has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
f8l has quit [Remote host closed the connection]
f8l has joined #picolisp
brandelune has joined #picolisp
brandelune has quit [Quit: This computer has gone to sleep]
brandelune has joined #picolisp
libertas_ has joined #picolisp
libertas_ is now known as libertas
brandelune has quit [Quit: This computer has gone to sleep]