mtsd has joined #picolisp
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #picolisp
lodsw has quit [Read error: Connection reset by peer]
lodsw has joined #picolisp
<
Regenaxer>
tankf33der around today?
<
Regenaxer>
I wanted to ask whether you used 'enum' already
<
Regenaxer>
Because I will change the semantics a little
<
Regenaxer>
(returning the cell (like 'idx') instead of the value, this is more useful)
* beneroth
agrees with that change
<
beneroth>
allows destructive use :)
<
beneroth>
if anyone already uses it, then it is surely tankf33der :)
orivej has quit [Ping timeout: 265 seconds]
<
Regenaxer>
Exactly :)
<
Regenaxer>
I changed now here locally. 'enum' itself is simpler, and it is more general
<
Regenaxer>
For example, the returned cell can be directly used in another 'enum' call, allowing e.g. multi-dimensional arrays
<
Regenaxer>
I play around more, release later :)
<
beneroth>
yeah. you should also update the FAQ. add a (setq array 'enum) and a few examples and that crowd can be happy :P
<
Regenaxer>
Good idea!
<
beneroth>
yes it's not real arrays...but the one who care about that can also easily understand why Lisp has no arrays :P
<
beneroth>
or so I hope/believe
<
Regenaxer>
I think so too
orivej has joined #picolisp
<
Regenaxer>
Released!
<
tankf33der>
hi all
<
tankf33der>
i failed to use enum for turing machine, becuase it moves in both directions
<
Regenaxer>
Hi tankf33der!
<
Regenaxer>
I see, so you need negative indexes?
<
Regenaxer>
But no problem
<
Regenaxer>
use even and odd numbers, i.e. use the lowest bit for negative
<
tankf33der>
But i need start somewhere and already must have infinitum space in both directions.
<
Regenaxer>
yes, that's what I mean
<
tankf33der>
I will think
<
Regenaxer>
Problem is perhaps how to represent zero
<
Regenaxer>
1=0 2=1 3=-1 4=2 5=-2 6=3 7=-3
<
Regenaxer>
So signen numbers must be mapped to odd/even numbers
<
Regenaxer>
Number times 2 plus sign
<
Regenaxer>
(something like that)
<
beneroth>
(enum) is not infinitum space, no?
<
beneroth>
limited to small numbers
<
Regenaxer>
yes, 60 bits
<
Regenaxer>
More than fits as a tree into memory anyway
<
Regenaxer>
hmm, nonsense
<
Regenaxer>
the bits are used only for the depth
<
Regenaxer>
2**60-1 entries
<
Regenaxer>
more than memory
<
Regenaxer>
as each entry takes 1.5 cells
<
Regenaxer>
and each cell 16 bytes
<
beneroth>
point taken :
csrabak has joined #picolisp
<
Regenaxer>
Hi csrabak!
<
Regenaxer>
Thanks for your mail!
<
beneroth>
Ahoy csrabak
<
Regenaxer>
cu beneroth!
<
beneroth>
schönen Abend Regenaxer :)
<
Regenaxer>
Relaxing now, listening podcast :)
<
Regenaxer>
Eric Normand
mtsd has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 240 seconds]
lodsw has quit [Read error: Connection reset by peer]
lodsw has joined #picolisp