freenode/lisp - IRC Chatlog
Search
14:58:19
green__
I'm trying to get ironclad's sha256 hash to give them same output as sha256sum. Something is way off. When I ask ironclad to sha256 sum a file, I get the same output as sha256sum. But if I feed it a byte array that's the same as the file I get a different output. Google-searches suggest others have had this problem, but there's no pointer to resolution... Anybody else struggle with this?
15:00:35
green__
Example is here: https://titanwolf.org/Network/Articles/Article?AID=dd489e0b-0965-4cf2-a8ec-1c2f653f6a89#gsc.tab=0 . But if I sha256sum a file with "Rosetta code" I get something different..
15:01:08
phoe
the only possible problem I see is the implicit newline that unix text files have at the end
15:01:40
phoe
I account for that in my Lisp string, whereas a file on a unix filesystem created e.g. with nano or vim will usually have a newline at its very end
15:09:15
phoe
I used to do that some time ago, but I don't remember anymore; #emacs might know better
19:38:56
dieggsy
hmm. I'm defining a generic in one package (with a default :method) and a couple methods in a different package that uses that one, but from the second package doesn't seem to know about the original's method
19:40:43
nij
Did you remember to refer the CLASS in the package FIRST in the package SECOND by FIRST:CLASS?
19:44:39
nij
So.. in general I think you should do, for instance, (make-instance 'first:class) while living in other packages.
19:47:00
dieggsy
i don't think the class name is the bottleneck, I'm not mentioning the CLASS in FIRST in SECOND at all
19:47:31
nij
How did you get access to an object defined in class that's defined in the first package then?
19:47:34
dieggsy
I'm dealing with classes that inherit from that one, but all these classes are themselves defines in a third package
19:48:33
phoe
I personally use https://plaster.tymoon.eu/ due to dogfooding and nice CL highlighting
19:49:08
dieggsy
phoe: it's gross and massive and probably not allowed. I'll keep poking at it though, i appreciate the suggestions
19:50:09
phoe
go into the package where the class is defined and (describe 'foo) where FOO is the name of the class
19:55:08
nij
Say PERSON is the main class defined in the package THIRD, and CHILD is the subclass you want to define. Did you do (defclass child (THIRD:person) ()) instead of (defclass child (person) ())?
19:57:10
dieggsy
.....I'm thinking maybe if i didn't take care to export the generic definition properly this might happen?
19:57:56
nij
I think you have to import 'PERSON from the third package to the others then.. phoe help
19:58:10
dieggsy
nij: i mean, it could be, no? if the package CHILD is in uses or imports from THIRD
20:01:01
dieggsy
nij: i know, my wording wasn't the greatest but i meant "if the package that CHILD is in uses or imports from THIRD"
20:08:43
dieggsy
possibly i hadn't recompiled everything i needed to or wasn't exporting or something....
20:25:19
Bike
this channel is an anarcho syndicalist commune that does not make official announcements, but there is #commonlisp on irc.libera.chat