sorawee
2020-2-2 15:34:40

Is there a way to automatically generate FFI bindings from C/header files? There used to be https://github.com/samvv/racket-autoffi but it’s now dead


soegaard2
2020-2-2 15:45:31

@sorawee Haven’t tried it, but it looks promising. https://docs.racket-lang.org/dynamic-ffi/index.html .


soegaard2
2020-2-2 15:45:46

massung
2020-2-2 17:12:25

Is there a way in Scribble to force a @racketblock to not convert numbers to decimal, but rather leave them as hex or binary (and with all prefixed 0’s)? Basically, output it just as it’s typed?


mflatt
2020-2-2 17:40:32

Not currently. The problem is that racketblock is based on read, which doesn’t preserve that information. You could try codeblock, which works on text content, instead.


massung
2020-2-2 18:07:46

ty


sorawee
2020-2-2 20:26:44

How can I start a line in codeblock with #? It gives me “prog:2:0: read-syntax: bad syntax #


ben
2020-2-2 23:07:01

use @codeblock{ ... } or @codeblock\|{ .... }\| ?


philip.mcgrath
2020-2-2 23:23:36

@notjack That’s basically what I’m doing now, but some of my colleagues who use our tools do not have technical backgrounds, and even running the package-manager GUI via DrRacket (which I’ve illustrated with step-by-step screenshots) seems to be difficult for some of them, especially since the process needs to be repeated regularly when we move to the latest Racket version.


philip.mcgrath
2020-2-2 23:25:09

Thanks, that helps!


notjack
2020-2-2 23:25:31

There’s a raco pkg migrate command you can run after installing a newer Racket version. It searches for packages that were installed on older racket versions and reinstalls them in the new version.


philip.mcgrath
2020-2-2 23:32:07

I guess the question for me will come down to whether supporting my non-technical colleagues through running an unsigned distribution seems to be easier or harder than supporting them through using the GUI package manager via DrRacket. (Or I could figure out codesigning, but that seems to require spending money, at least for Mac OS.)


philip.mcgrath
2020-2-2 23:34:53

Yes, but then they’d need to learn 3 workflows (install, update, and migrate), rather than just 2.


sorawee
2020-2-2 23:45:21

Doesn’t work :disappointed:


sorawee
2020-2-2 23:45:27

#lang scribble/manual @codeblock\|{ brew cask install racket # yay }\|


ben
2020-2-3 03:21:45

oops. I think the problem is that codeblock uses Racket’s expander. Maybe its not to hard to write a no-op expander for the #:expand argument?

Otherwise: #lang scribble/manual @nested[#:style 'code-inset @verbatim\|{ brew cask install racket # yay }\|]


jestarray
2020-2-3 05:43:29

@jestarray has joined the channel