
I must be doing something wrong - but what? I am making an “info.rkt” for my matrix collection (now named flomat
) and would like to get a list of dependcies. However --check-pkg-deps
does not produce any?


Got it. One needs to do a raco pkg install
in the collection directory first (in order to make it a package).

The build server attempted to build the new package sci
with floating point matrices using CBLAS and LAPACK. It failed since libcblas
and liblapack
is missing on the server. What is the best way to get these installed?

I think the usual answer is to either bundle them or handle them being missing

as described in “Working with Native Libraries” here: https://pkg-build.racket-lang.org/about.html

The documentation won’t build without, so I’ll look into distributing CBLAS and LAPACK.

@samth Is “x86_64-linux” all that is needed to know? Can I just get a random version of Ubuntu, use npm
to install CBLAS and LAPACK and then grab the binaries?

For Ubuntu 16.04, it looks like libblas.so would work easily that way. The liblapack.so library links to libgfortran.so and libquadmath.so, so you’d need those (and need to load them with ffi-lib
before liblapacks.so).

Using a relatively old Ubuntu like 16.04 will make sure that you don’t depend on a newer C library than the pkg-build machine’s installation.

Thanks. I’ll get an Ubuntu 16.04.

I have now added https://github.com/soegaard/linux-shared-libraries Now all I needed to do - is to wait for the build server.

What is the preferred license to distribute racket packages?

I don’t think there’s necessarily a preferred license, but Racket itself is dual-licensed under the Apache License and the MIT license

how can i make sure i am running the cs version of racket? racket --version
just prints v7.7.0.7.

if you start the repl it will say

Welcome to Racket v7.7 [cs].
(for example)

hm ok then i got the wrong racket.. thanks

The --version
string says the same. So cs reports itself as cs, but bc doesn’t include that info, apparently.

Yea the answer was too easy.. I just had the non-cs version :slightly_smiling_face:

Oh, @dbriemann, I know you already have your answer, but you can also use (system-type 'vm)
to get that info.

always good to know. thanks

Thank you. Out of curiosity, what license will you use for your flmatrix package and why?

The flmatrix package is by @soegaard2 I think

I’ll do the same (dual-license Apache + MIT).

@mflatt: it looks like https://www.cs.utah.edu/plt/installers/7.7/racket-7.7-x86_64-linux-cs.sh is not working as expected in a sense that there’s a SSL error that curl <https://www.cs.utah.edu/plt/installers/7.7/racket-7.7-x86_64-linux-cs.sh>
doesn’t like

A workaround from the client side is to add -k
(unsafe flag) to bypass the error

In our case, this is not feasible, because the curl
command is a part of travis-racket
by @greg

It’s working ok for me. Does just https://www.cs.utah.edu/ also error for you?

curl <https://www.cs.utah.edu/>
doesn’t work, too

fwiw, seems to work fine for me (connecting from an ISP in Florida)

Ah, here’s some additional information: https://github.com/emina/rosette/pull/162#issuecomment-637805918

> That site is serving a certificate chain that includes the recently expired Sectigo AddTrust External CA Root, so the download fails.

Is there a way to see what the build server is working on?

I’ll forward this to my department’s support.

@soegaard2 which build server?

The package one. I am constantly in doubt whether my package has been processed or not. https://pkgs.racket-lang.org/package/linux-shared-libraries

Seeing the actual queue would remove the doubt.

@code Btw - I decided to rename the package to flomat
for “FLOating point MATrices”. In the style of flonum
.

Ah. There’s not any visibility into the queue at the moment (although adding something to https://github.com/racket/pkg-build would be nice). It takes a couple hours, and runs continuously.

HTDP question: how would you solve <https://htdp.org/2018–01–06/Book/part_five.html#%28counter._%28exercise._ex~3aworm5-explained%29%29|ex. 432>, which asks for a justification of a food-create
function (define MAX 9999)
; Posn -> Posn
; ???
(check-satisfied (food-create (make-posn 1 1)) not=-1-1?)
(define (food-create p)
(food-check-create
p (make-posn (random MAX) (random MAX))))
; Posn Posn -> Posn
; generative recursion
; ???
(define (food-check-create p candidate)
(if (equal? p candidate) (food-create p) candidate))
; Posn -> Boolean
; use for testing only
(define (not=-1-1? p)
(not (and (= (posn-x p) 1) (= (posn-y p) 1))))
This exercise comes right below a design recipe for general recursion, which asks: > How does the algorithm generate new problems that are more easily solvable than the original one? and I don’t see how to answer that question without talking about state between calls to random
— which seems like a lot to ask of a student.

@ben I wouldn’t think that deeply about random state? Can’t say I’m familiar with this part of HtDP, but I will attempt a student answer. (a) The problem is trivially solvable (vocab from text, not condescension) if the p and candidate are different. (b) How does the algorithm generate new problems that are more easily solvable? If they are not different, the algorithm (recursively) tries another random state. This is easier than the original problem because we do not have to avoid a particular state, just keep trying until we miss it.

@mflatt Is there any way to get slideshow to render to a PDF without showing the GUI window that shows the rendering progress? I would like to automatically render the PDF in the background each time I change my source code, but I am stymied by the rendering dialog popping up every time.

Not currently, but I think that would be a fine option to add.

Can you point me to the module that I’d need to change? I went looking myself, but I got confused by the indirection.

Yes, it’s not obvious. Let me look…

“viewer.rkt” at the end for the progress window

Aha, I missed that! Thanks!

Maybe obvious, but: “cmdline.rkt” and “sig.rkt” for command-line parsing and the cmdline signature

I think “slides-to-pict.rkt” may have a local implementation of the signature

Support reports that the certificate problem has been fixed.

Thanks!

Yep, I confirmed that curl
now works

Is there a way to test that an expression raises a syntax error using rackunit
? I’m trying to write some tests for macros.

New here, by the way. First time posting. Hello all.


is there a short command to install every package in a package catalog?