
What i would like for my non-interactive programs is being able to adjust the check level per run. I want to run them without any check most of the time because I need speed. Whether the program crashes or raises an exception doesn’t make much of a difference for this run—the run has failed. But after a crash i want to be able to follow the same execution trace but with increasing levels of debugging (often full debugging would just take too long to get to the crash point) so as to fix the bug. For the interactive and input parts of the program, I’m usually fine with extensive checks to make sure what comes in is trustable—it’s usually not the point where i need speed.

Is there any chance that rr could help you? https://rr-project.org/ I strongly suspect not, because I don’t think it was made with Racket in mind, but it sounds like it would present quite a lot of what you want (I think).

Yeah, i want to use racket indeed :)

How do people work with code that starts:
#! /bin/sh
#\|
exec racket -u "$0" ${1+"$@"}
\|#
#lang racket
Emacs thinks it is a .sh file because of that first line, and cannot even count parentheses correctly (when single quote is involved).

Use DrRacket :stuck_out_tongue:

@greg :point_up:

Won’t M-x racket-mode work?

I have never installed racket-mode! Time to do so.


Well, even with Racket Mode, if the file extension is not rkt
, it will still recognize the file as shell script.

It’s possible to force a mode by adding Local Variables
at the end of the file.
#!/bin/sh
#\|
exec racket -u $0 ${1+"$@
\|#
#lang racket
(1 2 3)
;; Local Variables:
;; mode: racket
;; End:

If the file is open (in any mode) I’d expect M-x racket-mode to switch to racket mode. But I like your local variables, since it will switch automatically the time the file is opened.

@wcbrown has joined the channel

parse-keyword-options/eol: broke its own contract
supplied: 3 arguments
promised: 4 non-keyword arguments
i cry… to what repository do i report this? it’s part of syntax/keyword


FWIW, the file is here: https://github.com/racket/racket/blob/master/racket/collects/syntax/keyword.rkt

oh thank you! once again sorawee, you are very helpful

np!

Hello, was trying out DrRacket with the Portuguese interface, noticed a lot of options are not translated, where could I in the future contribute to this? Trying to find the repo for DrRacket

Yes!

Let me look up how!

thanks :slightly_smiling_face:


@maxim_jaffe The translations are here: https://github.com/racket/string-constants/tree/master/string-constants-lib/string-constants/private

cool

thanks

I can’t remember the details, but there is a way to make DrRacket print the list of strings that haven’t got a translation yet.


ah that’s great thanks :slightly_smiling_face:

was exactly what I was looking for, will bookmark and make a note so I can contribute in a near future


I would usually start this sort of file: #!/usr/bin/env racket
#lang racket
and not go through sh
at all.

Or even
#lang racket/base
"Hello, world!"

is hacker-news still ran on racket?

I’d avoid using /usr/local/bin/racket
and use /usr/bin/env racket
— doing the former means that it has to be installed in a specific location

Lord I hope not

I believe so; at least, they haven’t said anything about changing it, but they don’t publicize the site infrastructure much

lol

any reason why? dont want bad publicity?

I view HN as a blight on society

The RacketCon site says that Matthias is “Racket’s CPS”. What is a CPS?

I believe it stands for “Chief Philosopher and Shepherd” but we all know which came first between the acronym and that phrase. :slightly_smiling_face:

Continuation-passing style?

How about ‘Champion PLT Schemer’? (to go back to the past)