
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

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


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?

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.

ty

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

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

@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.

Thanks, that helps!

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.

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.)

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

Doesn’t work :disappointed:

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

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 has joined the channel