
i want to do some sanity checks on a csp solver (using the csp module) to make sure that calling (solve …)
isnt going to end up taking significant human time for varying search spaces would profile https://docs.racket-lang.org/profile/index.html?q=profile#%28def._%28%28lib._profile%2Fmain..rkt%29._profile-thunk%29%29 be the correct tool for that ?

i feel like profile might be over doing it? (at this point im not worried about memory usage etc only real world time)

Profile is good, but just the time
form might be enough

Reddit mentioned this Racket adventures blog recently. Very well done: http://defn.io\|defn.io

I use DrRacket when I want the power of its ability to show me exactly where I screwed up. I use Emacs, especially in large files or large numbers of filse, when I’m making major changes but I’m confident my changes are not adventurous syntactically. I’m really an Emacs power user, I navigate many buffers sometimes and have my own Emacs functions and macros to make my life easier. I switch to DrRacket when my changes are minor or when I need DrRacket’s blessing that the things I just did are actually OK.

@robby I had to deal with some other issues — and issue 430 turned out to be about running the main
submodule. Now I want to loop back and confirm whether I need to change anything about how Racket Mode handles images.
To clarify: Status quo, it changes current-print
. That’s documented as
> A parameter that determines the print handler that is called by read-eval-print-loop
to print the result of an evaluation (and the result is ignored). I do want to customize the output for a read-eval-print-loop
. My current-print
handler supports (a) a user option to pretty-print REPL values and (b) this feature of detecting convertible images.
I am not using a “port handler”.
Now that I’ve explained this probably more accurately than I did before: Do you still think it’s wrong? If so: Why? What instead ought I do, exactly? Why?

I’m getting a 503 error from the package server while trying to create a new package.

It’s working now—I think the problem may have been that GitHub seems to be having some issues, and the package server may have errored when it couldn’t connect.

I couldn’t get to one of my own repos earlier, so yeah, GH is having some issues


I like DrRacket very much. One of the things I prefer in emacs/racket-mode is the syntax-color handling of #;
comments, which DrRacket doesn’t deal with at all.

In Racket, what’s the equiv (using format
if possible) of C’s printf("%0.2f", x)
?

(~r #:precision '(= 2) x)

At least that is what I use

thanks :wink:

You can use 2
instead of '(= 2)
as a shorthand here I think

> (~r #:precision 2 1)
"1"
> (~r #:precision '(= 2) 1)
"1.00"

Reposted from #beginners: Is there an obvious way in Scribble to make counters that know about section numbering? For example, in section 1.3, a counter for theorems that runs 1.3.1, 1.3.2, and so on. If it’s not obvious, any pointers as to how to go about it? I’m using scribble/manual and rendering to HTML. Thanks.

I forget the details, but you’ll probably want to create a part-relative-element
.

@carlosrogue has joined the channel

Question: is anyone else getting a weird 404 error on the catalogs? https://download.racket-lang.org/releases/7.6/catalog/

((uncaught-exception-handler)
(*(+(*)(*(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*)(*))(+(*)(*)(*)(*))))(+(*)(*)(*)(*))))
uncaught exception: 404

I do get 404 on that page


hrm, who is the right person to @?

dropped it on racket users list

Is there something in the code for HtDP that might be relevant?

Answered on the list. There’s just nothing for directory-like paths such as https://download.racket-lang.org/releases/7.6/catalog/, but a file-like path such as https://download.racket-lang.org/releases/7.6/catalog/pkg/racket-lib does work.

I don’t think so. HtDP exercises are just consecutively numbered, for example.