soegaard2
2020-6-2 10:37:42

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?


soegaard2
2020-6-2 10:38:07

soegaard2
2020-6-2 10:51:44

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


soegaard2
2020-6-2 13:58:35

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?


samth
2020-6-2 14:01:57

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


samth
2020-6-2 14:02:23

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


soegaard2
2020-6-2 14:08:26

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


soegaard2
2020-6-2 14:25:57

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


mflatt
2020-6-2 14:45:53

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


mflatt
2020-6-2 14:46:24

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.


soegaard2
2020-6-2 14:47:03

Thanks. I’ll get an Ubuntu 16.04.


soegaard2
2020-6-2 16:17:39

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


code
2020-6-2 17:23:54

What is the preferred license to distribute racket packages?


samth
2020-6-2 17:33:03

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


dbriemann
2020-6-2 18:01:53

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


jaz
2020-6-2 18:02:51

if you start the repl it will say


jaz
2020-6-2 18:03:15

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


dbriemann
2020-6-2 18:03:38

hm ok then i got the wrong racket.. thanks


jaz
2020-6-2 18:04:48

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


dbriemann
2020-6-2 18:05:05

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


jaz
2020-6-2 18:56:49

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


dbriemann
2020-6-2 19:41:29

always good to know. thanks


code
2020-6-2 19:45:50

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


samth
2020-6-2 20:43:29

The flmatrix package is by @soegaard2 I think


soegaard2
2020-6-2 20:45:26

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


sorawee
2020-6-2 21:13:14

@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


sorawee
2020-6-2 21:14:04

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


sorawee
2020-6-2 21:14:38

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


mflatt
2020-6-2 21:14:50

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


sorawee
2020-6-2 21:15:24

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


george.privon
2020-6-2 21:16:48

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


sorawee
2020-6-2 21:17:00

sorawee
2020-6-2 21:17:08

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


soegaard2
2020-6-2 21:18:46

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


mflatt
2020-6-2 21:19:01

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


samth
2020-6-2 21:22:15

@soegaard2 which build server?


soegaard2
2020-6-2 21:23:36

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


soegaard2
2020-6-2 21:24:19

Seeing the actual queue would remove the doubt.


soegaard2
2020-6-2 21:26:19

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


samth
2020-6-2 21:30:42

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.


ben
2020-6-2 22:24:47

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 -&gt; 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 -&gt; Posn ; generative recursion ; ??? (define (food-check-create p candidate) (if (equal? p candidate) (food-create p) candidate)) ; Posn -&gt; 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.


maueroats
2020-6-2 22:38:10

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


lexi.lambda
2020-6-2 23:09:24

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


mflatt
2020-6-2 23:10:08

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


lexi.lambda
2020-6-2 23:11:49

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


mflatt
2020-6-2 23:14:10

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


mflatt
2020-6-2 23:14:50

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


lexi.lambda
2020-6-2 23:15:29

Aha, I missed that! Thanks!


mflatt
2020-6-2 23:16:06

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


mflatt
2020-6-2 23:16:48

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


mflatt
2020-6-3 01:21:32

Support reports that the certificate problem has been fixed.


sorawee
2020-6-3 01:22:52

Thanks!


sorawee
2020-6-3 01:23:20

Yep, I confirmed that curl now works


ibrahimadam193
2020-6-3 05:14:26

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


ibrahimadam193
2020-6-3 05:14:51

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


sorawee
2020-6-3 06:29:25

notjack
2020-6-3 06:57:31

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