orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #picolisp
JITn has quit [Ping timeout: 246 seconds]
patrixl has quit [Remote host closed the connection]
patrixl has joined #picolisp
patrixl has quit [Remote host closed the connection]
patrixl has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #picolisp
orivej has quit [Read error: Connection reset by peer]
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: 246 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 joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Read error: Connection reset by peer]
orivej has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #picolisp
orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 246 seconds]
rob_w has joined #picolisp
miskatonic has joined #picolisp
mtsd has joined #picolisp
<
mtsd>
Hello everyone
<
Regenaxer>
Hi mtsd
<
mtsd>
Hi Regenaxer! Great idea to have a regular jitsi meeting
<
mtsd>
Are we running the first one tomorrow?
<
Regenaxer>
Not so fast I think. We must ask beneroth if all is ready, and then announce it, no?
<
Regenaxer>
Or just try first just a few of us?
<
mtsd>
If beneroth is ok with that, why not?
<
mtsd>
Just say Hi in another forum :)
<
Regenaxer>
Just a small test first is better
<
mtsd>
It would be nice to make this a regular thing in the community, I think.
<
mtsd>
Sits nicely between IRC and meeting in-person
<
Regenaxer>
Would the time Fri 8:00 / 16:00 UTC be ok?
<
Regenaxer>
If everything works, I thought we could schedule for always the first and third friday each month
<
mtsd>
Sounds good to me. Sweden and Germany are UTC +1, right?
<
mtsd>
Then I have time to drop the kids off at school and the join the meeting. Perfect :)
<
Regenaxer>
yes, but now in summer +2
<
Regenaxer>
So it would be here 10 and 18
<
mtsd>
Yes, right.. sorry..
<
mtsd>
Works fine as well
razzy17 has joined #picolisp
<
Regenaxer>
I wonder what would be optimal or the average interesed people around the planet
<
Regenaxer>
s/or/for
<
Regenaxer>
So far nobody complained in the list ;)
<
mtsd>
Maybe try it out and adjust as we go along?
<
mtsd>
Away for a few minutes. Taking care of laundry :)
<
mtsd>
There, back again
<
Regenaxer>
So let's wait a little for beneroth?
<
mtsd>
Yes, he will probably arrive soon
<
Regenaxer>
Salami beneroth
<
beneroth>
sure let's try. the server is all updated.
<
Regenaxer>
So tomorrow at 8 UTC = 10 CEST?
<
beneroth>
will not be able to stay long I think, but let's see
<
beneroth>
let's see if Jitsi works out :-)
<
Regenaxer>
I'm sure :)
<
mtsd>
I will be able to join, if nothing unexpected pops up here
<
miskatonic>
Will transscripts be posted to the mailing list?
<
Regenaxer>
I don't think so
<
Regenaxer>
I have my setup ready, will use a combination of mobile and desktop
<
mtsd>
I tried the link earlier today, seemed to work fine
<
rob_w>
good morning all
<
Regenaxer>
Hi rob_w!
DerGuteMoritz has quit [Ping timeout: 265 seconds]
DerGuteMoritz has joined #picolisp
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<
rob_w>
Regenaxer, i am currently reading my self into the stuff i got .. i would love to summarize some questions and get back to you on those
<
Regenaxer>
OK, good
mtsd has quit [Remote host closed the connection]
<
aw->
Regenaxer: here?
<
aw->
i'm having an issue with (native), maybe you can provide some insight
<
tankf33der>
aw-: sure
<
tankf33der>
always learning something new every time with native.
<
tankf33der>
i am creating slides about cells.
<
tankf33der>
semi interactive in libreoffice with export to pdf.
<
aw->
link to my issue
<
aw->
HMAC with sha256
<
aw->
it works when i provide a proper ascii string as a "Key"
razzy17 has quit [Ping timeout: 260 seconds]
<
tankf33der>
ok, checking
<
Regenaxer>
Thanks tankf33de$
<
aw->
doesnt work with non-printable chars
<
tankf33der>
yes, its wrong. checking my hmac.
<
aw->
on cmdline you would do this:
<
aw->
echo -n "alex" | openssl dgst -sha256 -mac HMAC -macopt "hexkey:ef"
<
aw->
with openssl binary
<
Regenaxer>
hmm, strange, if Key is non-printable?
<
Regenaxer>
Can the C library handle UTF-8?
<
Regenaxer>
thats the problem then
<
Regenaxer>
(hex "ef") is a 2-byte utf8
<
tankf33der>
mine is working:
<
aw->
can't handle UTF8?
<
tankf33der>
aw-: no
<
tankf33der>
you cant pass (char (hex "ef")) to native.
<
Regenaxer>
It
*does* handle
<
Regenaxer>
but it gets 2 bytes
<
tankf33der>
thats why result is wrong.
<
Regenaxer>
not "EF" as a single byte
<
Regenaxer>
not wrong
<
Regenaxer>
different input gives different output :)
<
aw->
what's the solution
<
Regenaxer>
if you want to pass EF as a single byte, fill an allocater buffer with 'byte'
<
Regenaxer>
(for P ... (byte P (hex "ef")))
<
aw->
i dont have (byte)
<
Regenaxer>
really?
<
Regenaxer>
32 bit?
<
Regenaxer>
Why 'native' then?
<
aw->
wait i see.. i was testing on a really old version
<
Regenaxer>
'byte' since picoLisp-17.12
<
aw->
ok let me try with a newer one
<
Regenaxer>
yeah, better anyway
<
tankf33der>
i am not sure how aw- will handle key and message to hmac.
<
aw->
tankf33der: where is rosetta/sha256.l ?
<
tankf33der>
in my repo
<
aw->
Regenaxer: works!! with (byte)
<
aw->
(make-hash (make-hmac (native "@" "strdup" 'S P) "alex"))
<
aw->
-> "81ab251e5ab2d072693aa9860687ce4ad04672751e6fced4bbbebe803796eba6"
<
aw->
tankf33der: awesome, thanks!
<
aw->
tankf33der: nice that you implemented sha256 without external lib
<
tankf33der>
i've implement a lot of them.
<
aw->
would be nice if you wrote some comments ahaha, but I'm not complaining, this is great
<
tankf33der>
aw-: in general useless :(
<
tankf33der>
like sources of picolisp itself.
<
aw->
yeah it's fine, i don't really care about knowing
_how_ it's implemented
<
aw->
this is quite impressive actually
<
aw->
tankf33der: did you benchmark? is your pure picolisp impl faster than (native) ?
<
tankf33der>
very slower. cant be compared.
<
aw->
ok thanks for the help Regenaxer and tankf33der
<
tankf33der>
aw-: also take a look to monocypher library
<
tankf33der>
small and uniq.
patrixl has quit [Quit: Leaving.]
elioat1 has joined #picolisp
Nistur_ has joined #picolisp
root____ has joined #picolisp
Nistur has quit [Ping timeout: 246 seconds]
Guest35873 has quit [Ping timeout: 246 seconds]
anjaa has quit [Ping timeout: 246 seconds]
elioat has quit [Ping timeout: 264 seconds]
elioat1 is now known as elioat
anjaa has joined #picolisp
patrixl has joined #picolisp
<
tankf33der>
in progress.
<
Regenaxer>
Wow, writing up docs?
<
tankf33der>
slides
<
Regenaxer>
I see. Gradually growing explanations
<
Regenaxer>
beautiful
<
Regenaxer>
Will you do a presentation?
<
tankf33der>
no. i dont speak english. no experience.
<
Regenaxer>
Just the slides in English
<
tankf33der>
my goal is describe destructiveness.
<
Regenaxer>
good idea
<
beneroth>
nice slides tankf33der!
<
beneroth>
this might help many to gain a better understanding of the cell concept
<
beneroth>
I feel many have a hard time understanding it, especially without prior C experience
Nistur_ has left #picolisp [#picolisp]
Nistur has joined #picolisp
patrixl has quit [Remote host closed the connection]
<
aw->
Regenaxer: i'm getting very inconsistent results with my hashing
<
aw->
sometimes the result is accurate, sometimes it's not
<
aw->
with the
_same_ inputs
<
Regenaxer>
hmm, some uninitialized buffer memory?
<
Regenaxer>
Just interfacing to 'native', right?
<
Regenaxer>
I have not looked into these libs very well. Perhaps tankf33der has an idea?
<
aw->
can you try it?
<
aw->
sometimes i get the correct hash, sometimes i don't
<
Regenaxer>
Yes, the result changes
<
aw->
hmmm.. my "free" is returning 1 as well
<
Regenaxer>
It is neverr 8e4cb6f0f6...
<
aw->
do I need the null byte?
<
Regenaxer>
Why do you call 'seed'?
<
Regenaxer>
'rand' is not called, right?
<
aw->
sorry that's part of a bigger script
<
aw->
you can remove it
<
Regenaxer>
So you store two bytes
<
Regenaxer>
ah, yes, 'strdup'
<
Regenaxer>
it needs a null byte
<
Regenaxer>
Why is strdup needed?
salotz has joined #picolisp
<
Regenaxer>
If I add (byte (+ *P 2) 0)
<
aw->
so i can pass it to libcrypto
<
Regenaxer>
I always get result: 50605cb9a3522ffd81a38bc02cca2e25148b5f2c549cd55d5f674298b34a7752
<
Regenaxer>
but not 8e4cb6f0f66ba2de... :)
<
aw->
strange.. i always get 81ab251e5ab2d072693aa9860687ce4ad04672751e6fced4bbbebe803796eba6 ---- which is the HMAC with 'ef' hex value.. not 'efef'
<
Regenaxer>
What is expected for the Key argument?
<
Regenaxer>
Pointer to a byte buffer?
<
Regenaxer>
I don't know what "HMAC" actually needs
<
aw->
just a string
<
Regenaxer>
Null-terminated?
<
Regenaxer>
Why the length then?
<
aw->
i dont know.. it's libcrypto - which i've never looked at before yesterday
<
Regenaxer>
tankf33der here?
<
aw->
ok i will stop for today.. maybe some sleep will help me figure it out
<
aw->
good night & thanks
<
Regenaxer>
Oh, yes, very late!
<
aw->
no no, thank you!
orivej has joined #picolisp
orivej has quit [Read error: Connection reset by peer]
orivej has joined #picolisp
<
tankf33der>
why aw- wants work with transient strings ?
<
tankf33der>
secondlu
<
tankf33der>
secondly
<
tankf33der>
(setq *P (native "@" "malloc" 'N 8))
<
tankf33der>
he pass it to make-hmac as Key and do ... Key (length Key) ...
<
tankf33der>
nonsense.
<
Regenaxer>
yes, strdup needs null byte
<
Regenaxer>
and length Key is the size of the pointer (number)), ie decimal digits
<
tankf33der>
i dont think so :)
<
tankf33der>
(length Key) is how many bytes is Key
<
Regenaxer>
yes, but in the code
<
Regenaxer>
I tried 2 as length
<
Regenaxer>
for two bytes
<
Regenaxer>
but still got other results
<
Regenaxer>
Was on phone, so I did not further investigate
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
<
tankf33der>
hmac example on monocypher
<
Regenaxer>
Perfect!
<
tankf33der>
highlight: two implementations: accept lists vs. malloc areas.
<
tankf33der>
equal output.
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
<
tankf33der>
so i think wrong input, random output
<
tankf33der>
i will try libsodium. will be the same.
orivej_ has quit [Ping timeout: 260 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 [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 joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
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: 240 seconds]
orivej has joined #picolisp
<
tankf33der>
goal achieved. very satisfied.
<
Regenaxer>
Wow, 30 pages? And very beautiful!
<
tankf33der>
i will publish, review would be nice.
<
Regenaxer>
yes, sure!
<
Regenaxer>
I cannot view well on this phone, will look tomorrow on a large screen
<
Regenaxer>
Hehe, really nice pictures
<
Regenaxer>
As far as I can see by scrolling on this small screen,
*very* good step-by-step explanation
<
Regenaxer>
Why is the name e*.pdf ?
<
tankf33der>
its just pastebin for files.
<
Regenaxer>
Minor typo on page 26
<
Regenaxer>
dotter -> dotted
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: 265 seconds]
orivej has joined #picolisp
<
Nistur>
mornin' peeps
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
rob_w has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
f8l has quit [Remote host closed the connection]
f8l has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
michelp has quit [Ping timeout: 272 seconds]
tankf33der_ has joined #picolisp
pointfree has quit [Ping timeout: 260 seconds]
tankf33der has quit [Ping timeout: 272 seconds]
michelp has joined #picolisp
pointfree has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 265 seconds]
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 [Read error: Connection reset by peer]
orivej_ has joined #picolisp
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp