orivej has quit [Ping timeout: 264 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #picolisp
aw- has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
aw- has quit [Quit: Leaving.]
<
tankf33der>
i've added all left comparisons of pil21 to bigtest. passed.
<
Regenaxer>
Thanks!
<
tankf33der>
buf function in pil21 is something new ?
<
Regenaxer>
Local buffer on the stack
<
Regenaxer>
More efficient than malloc()
orivej has joined #picolisp
<
tankf33der>
omg, i want it
<
Regenaxer>
ok, released intermediate 'port' in net.l, using 'buf' (experimental)
<
Regenaxer>
Must stop now, perhaps continue later or during the next days
<
tankf33der>
but how to buf? any initial doc?
<
Regenaxer>
No doc yet (for all pil21), but you can see the usage in the example in 'port'
<
Regenaxer>
Signature is (buf sym 'cnt . prg)
<
Regenaxer>
(buf P 1000 (foo P)) is equivalent to (let P (native "@" "malloc" 'P 1000) (foo P) (native "@" "free" P))
<
Regenaxer>
equivalent, and faster
<
Regenaxer>
To be exact, the above should be ... (prog1 (foo P) (native "@" "free" P)))
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
<
tankf33der>
Regenaxer: what if i need two bufs?
<
tankf33der>
buf nested in buf, right?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
<
Regenaxer>
if they are both needed at the same time
<
Regenaxer>
I don't like the 'const' solution
<
Regenaxer>
extremely inefficient
<
Regenaxer>
as it opens and scans the file each time
<
Regenaxer>
Must find something better
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej_ has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #picolisp
<
tankf33der>
maybe the same as sysdefs? i.e. manually
<
Regenaxer>
No, this is a different situation
<
Regenaxer>
sysdefs is read at compile time
<
Regenaxer>
and the constants are read at runtime
<
Regenaxer>
I need as it is now, but read them
*all* at ince
orivej_ has quit [Ping timeout: 240 seconds]
<
Regenaxer>
for a given context, in this case "Networking"
<
Regenaxer>
So I make something with a tag
<
Regenaxer>
and scan the file from that tag till an end-tag
orivej has joined #picolisp
<
Regenaxer>
But we can re-use the name "sysdefs" perhaps?
<
Regenaxer>
'const' makes sense for a single constant
<
Regenaxer>
But as I said I want to read them all
<
Regenaxer>
ok, let me try
orivej has quit [Ping timeout: 240 seconds]
<
Regenaxer>
testing
<
Regenaxer>
looks good
<
Regenaxer>
@lib/const is now @lib/sysdefs
<
Regenaxer>
it has sections inside [ and ]
<
Regenaxer>
a sections is terminated by [] (which is NIL, also EOF)
<
Regenaxer>
The 'sysdefs' function reads
*all* symbols in a section in a single pass
<
Regenaxer>
'const' was bad, it openend the file, searched for the symbol, then closed the file
<
Regenaxer>
Imagine we have hundreds of definitions! 'load'ing the file takes forever
xkapastel has joined #picolisp
_whitelogger has joined #picolisp
orivej has joined #picolisp
_whitelogger has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #picolisp
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #picolisp
Blukunfando has quit [Read error: Connection reset by peer]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #picolisp