shu--hung
2017-1-9 13:28:21

@shu—hung has joined the channel


bill_temps
2017-1-9 14:30:42

@bill_temps has joined the channel


fahree
2017-1-9 15:18:13

Stupid question: (1) how do I get all the bytes from a port, so I can sha it? (2) why can’t I sha the port directly, so I don’t have to GC lots of data?


fahree
2017-1-9 15:19:01

finds port->bytes for the first part


fahree
2017-1-9 15:19:49

(3) how do racketeers maintain quality standards in common libraries?


fahree
2017-1-9 15:24:16

(4) how do I go from hex to byte string? I see various hex-string->bytes in various lilbraries — shouldn’t there be a more common version?


samth
2017-1-9 15:55:28

@fahree for 4, that sounds like a good idea


samth
2017-1-9 15:56:20

@fahree for 2, sha1 from openssl/sha1 does exactly that


notjack
2017-1-9 17:35:47

@fahree Previously quality standards were maintained by just including a vast number of common libraries in the main distribution, so you didn’t often need user-provided libraries for simple tasks


notjack
2017-1-9 17:36:28

Now with the growing package system, the package build server and documentation hosting goes a long way to encouraging tests and docs


tov
2017-1-9 18:50:19

@tov has joined the channel


fahree
2017-1-9 23:14:36

@samth thanks. However, SHA1 is widely considered as deprecated and “not for use for new applications”. Can the openssl module be updated to support algorithms currently considered “good”?


fahree
2017-1-9 23:15:12

(I understand that this is a volunteer effort; I’m just trying to understand how the community is organized)


samth
2017-1-9 23:15:25

Is that supported by widely-distributed versions of openssl?


fahree
2017-1-9 23:15:50

I’m pretty sure sha256 is widely supported


fahree
2017-1-9 23:15:59

and has been for years


samth
2017-1-9 23:16:05

also, the code there falls back to an in-racket version if openssl isn’t there, I think


fahree
2017-1-9 23:17:13

(I’m also taking this as an exercise for how much “ready for production” racket is or isn’t.)


samth
2017-1-9 23:17:29

also, a pull request for adding sha256 to that library would be useful if you were building that anyway


fahree
2017-1-9 23:17:54

(racket keeps impressing me in many ways, and not at all in others — same thing with Haskell and Scala, that I’m evaluating also)


lexi.lambda
2017-1-9 23:18:12

I think I wrote sha256 bindings not too long ago, against the racket-provided openssl lib, I think


fahree
2017-1-9 23:19:03

(the problem is not just what kind of poison and dogfood I can tolerate, but also, what I can reasonably convince $coworkers of adopting)


samth
2017-1-9 23:19:23

ah, the sha pkg already provides what you want


fahree
2017-1-9 23:19:30

yes, kind of, and I’m using it


fahree
2017-1-9 23:19:58

except not with autobuffering, so I have to slurp the entire file in a byte vector.


fahree
2017-1-9 23:20:34

which is acceptable for my current application, though maybe not for others.


samth
2017-1-9 23:21:09

I’m extra-sure that greg would accept pull requests adding that functionality, which seems pretty easy to add


fahree
2017-1-9 23:22:32

Yup. One thing at a time.


fahree
2017-1-9 23:23:18

My current project is writing an acmart package, for which I’m cargo-culting @stamourv ’s acmsmall class package.


fahree
2017-1-9 23:24:05

I finished debugging the download-and-make script.


fahree
2017-1-9 23:32:01

OK, where is the doc for capturing options from the #lang line, so I may pass them to the \documentclass ?


fahree
2017-1-9 23:33:33

and/or what is the proper idiom for that?


fahree
2017-1-9 23:34:18

(I never liked having to put @nocopyright etc. right next to the #lang, and I remember having issues with some scribble styles regarding that.)


samth
2017-1-9 23:35:09

fahree
2017-1-9 23:37:30

Yes, that’s the code I’m starting from. By acmart has some differences with acmsmall. Actually, acmsmall is an option of the new acmart.