[racket-users] Output out of order when using system procedure

2020-05-19 Thread Rock Nie
I am running the system procedure in drracket's interactive window (system "test.py") where test.py is #!/home/utils/Python-3.8.0/bin/python3 import os print("Running cmd: date1") print("Running cmd: date2") os.system("date") print("Running cmd: date3") os.system("date") and the output is Tue Ma

Re: [racket-users] Re: Is there an easy way to daemonize a thread?

2020-05-19 Thread David Storrs
Perfect, thank you. On Tue, May 19, 2020 at 5:28 PM George Neuner wrote: > On Tue, 19 May 2020 12:01:54 -0400, David Storrs > wrote: > > >I'm using the file-watchers module to keep an eye on a directory tree and > >trigger various actions whenever something changes. I had an issue where > >an

[racket-users] Re: Is there an easy way to daemonize a thread?

2020-05-19 Thread George Neuner
On Tue, 19 May 2020 12:01:54 -0400, David Storrs wrote: >I'm using the file-watchers module to keep an eye on a directory tree and >trigger various actions whenever something changes. I had an issue where >an exception was thrown, the thread died, and file watching therefore >stopped. The immed

Re: [racket-users] How do I properly set current-module-name-resolver for a process?

2020-05-19 Thread Matthew Flatt
At Tue, 19 May 2020 20:10:01 +, Sage Gerard wrote: > I'm trying to figure out how to set current-module-name-resolver in > advance of all other code for a process. I'm guessing this would > require a custom launcher that does (for example) `racket -l > foo/replace-resolver bar.rkt`. That can w

[racket-users] How do I properly set current-module-name-resolver for a process?

2020-05-19 Thread Sage Gerard
I'm trying to figure out how to set current-module-name-resolver in advance of all other code for a process. I'm guessing this would require a custom launcher that does (for example) `racket -l foo/replace-resolver bar.rkt`. In that sense, I expect that a `replace-resolver` of the form below wou

Re: [racket-users] running Racket inside gradescope

2020-05-19 Thread 'John Clements' via Racket Users
100% yes but no. I am a long-time gradescope user, and I’ve been very happy with it. However, my usage has been entirely with scanned paper exams. I like the work that Gradescope has been doing, but I haven’t engaged with any of their tools beyond the paper-scanning ones, so I definitely don’t h

[racket-users] Re: What does PLT stand for?

2020-05-19 Thread Shriram Krishnamurthi
Originally it was the Programming Languages Theory group at Rice University. Then, around the time of creation of Racket, the team branched out beyond Theory, so we decided the T might stand also for Technology, Tools, etc. Eventually we decided it just stood for Programming Languages Team. The

[racket-users] running Racket inside gradescope

2020-05-19 Thread Shriram Krishnamurthi
We expect to use Racket with Gradescope [https://www.gradescope.com/] in the fall. Gradescope will run an autograder for programming assignments, using this specification: https://gradescope-autograders.readthedocs.io/en/latest/ (It's manifest as a Docker container.) Has anyone already set up

[racket-users] Circuits

2020-05-19 Thread Jos Koot
Hi Just for a hobby I made a syntax producing procedures that emulate simple electronic circuits. But certainly there already are many more sophisticated systems that perform this task. I did not find them with google. I would appreciate very much some pointers to such procedures (preferably in R

[racket-users] Is there an easy way to daemonize a thread?

2020-05-19 Thread David Storrs
I'm using the file-watchers module to keep an eye on a directory tree and trigger various actions whenever something changes. I had an issue where an exception was thrown, the thread died, and file watching therefore stopped. The immediate solution is to wrap a with-handlers around it so it doesn

Re: [racket-users] What does PLT stand for?

2020-05-19 Thread Gary Schiltz
Thanks, that makes sense. Google search turned up "Persistent Lookup Table" (Erlang) and "Pretty Little Thing, and my quazi-dislexic brain at first turned it into PTL with even more stranger connotations :-) I seem to have read somewhere that it might even have some sort of permutation of the

Re: [racket-users] Inference for polymorphic functions not supported?

2020-05-19 Thread Hendrik Boom
On Mon, May 18, 2020 at 04:51:26PM -0400, Sam Tobin-Hochstadt wrote: > The systematic way to do it is to use `inst`. > > Here's the first example: > > (define hash-list : (Listof (Pair Symbol Natural)) (list)) > ((inst sort (Pair Symbol Natural) String) hash-list string ((p : (Pair Symbol Natural