ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
mikeyhc_ has quit [Ping timeout: 255 seconds]
mikeyhc has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
orivej has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
aw- has joined #picolisp
aw- has quit [Ping timeout: 265 seconds]
aw- has joined #picolisp
rob_w has joined #picolisp
<cess11_> Good morning.
<Regenaxer> Hi cess11_!
orivej has joined #picolisp
aw- has quit [Quit: Leaving.]
lman has joined #picolisp
mtsd has joined #picolisp
aw- has joined #picolisp
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 264 seconds]
alexshendi has joined #picolisp
orivej has quit [Ping timeout: 260 seconds]
alexshendi has quit [Ping timeout: 260 seconds]
libertas has quit [Remote host closed the connection]
<tankf33der> started signify-pil repo
<tankf33der> Regenaxer: is it ok to store private and public key inside ~/.pil/signify-pil ?
<Regenaxer> Yes, a good place for such things
<tankf33der> ok
<tankf33der> strange
<tankf33der> around false
<Regenaxer> 256 is hex 100
<Regenaxer> so the lowest byte is zero
<Regenaxer> ok, no4
<Regenaxer> no?
<Regenaxer> I forgot the structure of Unix return value
<Regenaxer> often not what one expects :)
<Regenaxer> and what bash does with it
mtsd has quit [Quit: Leaving]
aw- has quit [Quit: Leaving.]
<tankf33der> i've port all thre functions already.
grp has joined #picolisp
<tankf33der> how to read file in binary mode to list
<tankf33der> for example /bin/date
<tankf33der> ?
<grp> use rd
<grp> something along (in File (make (until (eof) (rd -1))))
<grp> any higher level read function will try to interpret utf8
<grp> err, forgot the link
<tankf33der> it hangs.
<grp> (in File (make (while (rd -1) (link @))))
<grp> there
<tankf33der> yeap, much better
<tankf33der> thanks.
<grp> it hangs because eof doesn't work with rd
<grp> (been some time since I last did any binary processing with picolisp)
<tankf33der> 16M file for 15secs
<tankf33der> ok
<grp> memory usage will be roughly 2 times that
<grp> you may be better off using a buffer
<grp> (doc 'byte)
<tankf33der> thanks
<grp> wrong, way more than 2 times... using lists you use 16 times more, since you are storing a single byte per cell.
<grp> (what I said before does apply to strings though...)
<grp> so yes, use a buffer instead
<grp> tankf33der: ^
<grp> (assuming you are using picolisp 64)
alexshendi has joined #picolisp
<tankf33der> ok
<tankf33der> i will try
<grp> depending on what you are trying to do, you could read more than 1 byte per cell, with (rd N)
<grp> with (rd ±8) you get 2x ram usage
<tankf33der> i need a list if bytes pass to native function
<tankf33der> if -> of
<grp> make buffer; fill it with data; call native function with buffer and data length; free buffer
<grp> you can pretty much reuse the example in (doc 'byte)
<tankf33der> grp: how whould you fill the buffer with data? which functions?
<grp> byte
<grp> all you need is native and byte
<tankf33der> hm
<tankf33der> but native and byte doesnt know where file begins
<tankf33der> and what size
<grp> tankf33der: what are you trying to do?
<tankf33der> pass file to function crypto_sign
<tankf33der> native bindings created
lman has quit [Disconnected by services]
<grp> let me grab a pastebin
<tankf33der> cool
<grp> tankf33der: http://pastebin.ca/4012001
<grp> hope it serves
<grp> replace line 11 with whatever you need
<tankf33der> aaaa
<tankf33der> i see now
<tankf33der> repo is here
<beneroth> :)
<beneroth> hi tankf33der, grp
<tankf33der> o/
<tankf33der> im on squash already :)
<beneroth> wohoo, not bad :)
<beneroth> I didn't do squash for years. it is fun :)
C-Keen has quit [Remote host closed the connection]
C-Keen has joined #picolisp
reich has joined #picolisp
orivej has joined #picolisp
grp has quit [Ping timeout: 260 seconds]
C-Keen has quit [Remote host closed the connection]
jibanes has quit [Ping timeout: 264 seconds]
jibanes has joined #picolisp
rob_w has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 264 seconds]