<beneroth>
Regenaxer, how to do (peek) with binary input ?
<tankf33der>
there is only one peek function
<tankf33der>
afaik
<tankf33der>
what is the task?
rob_w has joined #picolisp
rob_w has quit [Client Quit]
<beneroth>
I wanted to use (peek) in a binary context. to use a delimiter character to mark the end of a block of (plio-formated) binary data.
<beneroth>
solved it now by using (pr) (so writting a NIL) as separation marker
rob_w has joined #picolisp
rob_w has quit [Changing host]
rob_w has joined #picolisp
rob_w has quit [Quit: WeeChat 1.9.1]
rob_w has joined #picolisp
rob_w has quit [Client Quit]
<tankf33der>
but pr cant do readahead
<tankf33der>
it reads and move cursor
rob_w has joined #picolisp
<rob_w>
wsl doesnt seem a bad idea
<beneroth>
tankf33der, exactly.
<tankf33der>
how pr helped you if it read move cursor forward?
<tankf33der>
how you handle this then?
<beneroth>
rob_w, that's microsoft attempt to make windows attractive for developers again. a majority of developers work with linux servers these days, so they use a Mac to have some compatibility without having to use linux.
<rob_w>
yeah , ms finally admits something back to the people
<beneroth>
tankf33der, instead of doing a look-ahead for the end-marker, I just do (rd) and assume to having reached the end-marker if (rd) returns NIL (what it does when there is NIL in the input, or when EOF is reached)
<rob_w>
a nice effect of wsl is , that one is forced back on good old console-powers ..
<rob_w>
.. and if you already have those, it sure feels helpfull
<beneroth>
rob_w, well, they're forced to it kinda. currently Google is the big EEE guy while Microsoft tries to play a bit fairer so people continue to play with it
<beneroth>
I would like to see some performance benchmarks about wsl :)
<rob_w>
well it does see my 4 cores , at leat htop shows em .. /proc is pretty ripped out
<rob_w>
and ps -axm is nicely short ;-)
<rob_w>
a init() and a bash() :)
alexshendi has joined #picolisp
orivej has joined #picolisp
<Regenaxer>
beneroth, binary input with 'rd' does not use the normal input stream with character look-ahead, so (peek) cannot work
<Regenaxer>
all other input functions do, but not (rd
<Regenaxer>
ie load, line, read, char, skip, from, till etc.
orivej has quit [Ping timeout: 260 seconds]
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
_whitelogger has joined #picolisp
m_mans has joined #picolisp
rick42 has quit [Ping timeout: 240 seconds]
rick42 has joined #picolisp
<beneroth>
Regenaxer, aye. I wondered if there might be an equivalent for binary 1 byte look-head
<beneroth>
no problem
inara has quit [*.net *.split]
Regenaxer has quit [*.net *.split]
tankf33der has quit [*.net *.split]
himmAllRight has quit [*.net *.split]
tankf33der has joined #picolisp
himmAllRight has joined #picolisp
inara has joined #picolisp
Regenaxer has joined #picolisp
<Regenaxer>
oops
<beneroth>
freenode net-split
<Regenaxer>
ax
<Regenaxer>
ah
<beneroth>
did you receive my two messages?
<Regenaxer>
yes
<Regenaxer>
I'm looking only sparsingly, sitting here with guests ;)
<Regenaxer>
"I wondered if there might be an equivalent for binary 1 byte look-head"
<Regenaxer>
I saw
<Regenaxer>
and, no, there is not
<Regenaxer>
the binary read does not keep a look ahead buffer
<beneroth>
grokked
<beneroth>
alright
<beneroth>
away for dinner :)
<Regenaxer>
:)
freemint has joined #picolisp
orivej has joined #picolisp
squid has joined #picolisp
squid has quit [Ping timeout: 260 seconds]
rob_w has quit [Quit: WeeChat 1.9.1]
<beneroth>
brb
beneroth has quit [Quit: Verlassend]
kuarg has joined #picolisp
<kuarg>
Hello picolisp people. ,what is the rolling release?