sschwarzer
2021-10-2 17:05:07

Is there an API in the standard library (or in a package) to create a temporary directory and remove it after a code block is executed?


sorawee
2021-10-2 17:06:31

sorawee
2021-10-2 17:06:52

There’s a pending PR that makes the interface a bit nicer



sschwarzer
2021-10-2 17:07:55

What you pointed to is make-temporary-file, but I want to create a directory to create several files in it and want the directory to be removed automatically after the code block. :slightly_smiling_face:


sorawee
2021-10-2 17:08:09

Well, it can also create a directory!


sorawee
2021-10-2 17:08:12

The name is misleading


sorawee
2021-10-2 17:08:42

Hence the above PR which tries to make things less misleading


sschwarzer
2021-10-2 17:13:01

Ah, I see. Thanks! :slightly_smiling_face:


sorawee
2021-10-2 17:18:03

Thanks @ryanc and @djholtby! Turns out all three methods (vector of hashes, hash of hashes, hash keyed by keys->nat) perform similarly well. Vector of hashes is possible because I know one key is going to be a natural number. I thought of doing hash of hashes, but I had an unfounded fear of an extra hash-ref.


sschwarzer
2021-10-2 17:33:24

Yes, having make-temporary-file create a directory when copy-from-file is 'directory is quite unexpected. I didn’t even see or remember that from when I read the documentation of make-temporary-file a week or two ago.


samdphillips
2021-10-2 18:16:23

:warning: :warning: :warning: Racket Meetup on Gather this afternoon/evening :telephone: :tv: 1 PM PDT 4 PM EDT 8 PM UTC 10 PM CEST

https://gather.town/app/wH1EDG3McffLjrs0/racket-users :warning: :warning: :warning:


spdegabrielle
2021-10-2 18:30:24

90 minutes from now!


spdegabrielle
2021-10-2 18:57:23

60 minutes to go ( it happens at 8pm UTC)


spdegabrielle
2021-10-2 21:26:44

Thank you to everyone who joined us today

I’m looking forward to seeing more of you at the next meet-up: When: First Saturday EVERY Month UTC: 20:00 (30 minutes but can overrun) Calendar: Google , iCal

Where: https://gather.town/app/wH1EDG3McffLjrs0/racket-users\|https://gather.town/app/wH1EDG3McffLjrs0/racket-users

The link is free for all - so if you want to organise a meet-up at a time that is better for your time zone please feel free!

stephen


wjb
2021-10-3 02:12:42

My Racket is suddenly connecting to Neil’s website, although my system OpenSSL still can’t; only recent versions can. I can’t get any version of OpenSSL to connect to <https://expired-r3-test.scotthelme.co.uk/> without error.

Is the package server still having problems connecting?


sorawee
2021-10-3 02:50:32

Judging from https://pkgs.racket-lang.org/package/csv-reading, I think it’s OK now.


sorawee
2021-10-3 02:51:57

But also, the package website is behaving weird lately. My package is built at pkg-build, but the doc is weirdly not shown in the package website. So I don’t know if there are any staling issues


wjb
2021-10-3 04:37:35

Hm. Well how mysterious. I give up. OpenSSL is beyond me.