laurent.orseau
2020-9-4 07:17:10

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.


jcoo092
2020-9-4 07:19:30

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


laurent.orseau
2020-9-4 07:52:24

Yeah, i want to use racket indeed :)


plragde
2020-9-4 15:29:43

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


laurent.orseau
2020-9-4 15:30:41

Use DrRacket :stuck_out_tongue:


laurent.orseau
2020-9-4 15:31:14

@greg :point_up:


soegaard2
2020-9-4 15:31:26

Won’t M-x racket-mode work?


plragde
2020-9-4 15:34:39

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


soegaard2
2020-9-4 15:36:03

sorawee
2020-9-4 15:38:17

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


sorawee
2020-9-4 15:39:09

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:


soegaard2
2020-9-4 15:46:50

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
2020-9-4 15:49:47

@wcbrown has joined the channel


cris2000.espinoza677
2020-9-4 15:57:36

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


sorawee
2020-9-4 15:58:36


cris2000.espinoza677
2020-9-4 15:59:35

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


sorawee
2020-9-4 15:59:49

np!


maxim_jaffe
2020-9-4 16:32:55

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


spdegabrielle
2020-9-4 16:33:15

Yes!


spdegabrielle
2020-9-4 16:33:42

Let me look up how!


maxim_jaffe
2020-9-4 16:33:54

thanks :slightly_smiling_face:


maxim_jaffe
2020-9-4 16:34:25


maxim_jaffe
2020-9-4 16:35:22

cool


maxim_jaffe
2020-9-4 16:35:24

thanks


soegaard2
2020-9-4 16:35:51

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.



maxim_jaffe
2020-9-4 16:36:57

ah that’s great thanks :slightly_smiling_face:


maxim_jaffe
2020-9-4 16:37:37

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



philip.mcgrath
2020-9-4 19:40:28

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



cris2000.espinoza677
2020-9-4 23:52:13

is hacker-news still ran on racket?


hazel
2020-9-5 00:34:34

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


plragde
2020-9-5 01:10:41

Lord I hope not


samth
2020-9-5 01:41:02

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


cris2000.espinoza677
2020-9-5 01:47:02

lol


cris2000.espinoza677
2020-9-5 01:47:17

any reason why? dont want bad publicity?


plragde
2020-9-5 02:08:46

I view HN as a blight on society


plragde
2020-9-5 02:09:41

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


samth
2020-9-5 02:11:37

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:


wanpeebaw
2020-9-5 03:30:39

Continuation-passing style?


jcoo092
2020-9-5 03:48:07

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