Jeanne-Kamikaze has quit [Ping timeout: 245 seconds]
analogue has quit [Quit: Leaving]
<emacsomancer>
is there an example somewhere of how to download a file via Racket and store it in a system-appropriate cache (i.e. in a cache location appropriate to whatever OS it's running in)?
aeth has quit [Ping timeout: 244 seconds]
aeth has joined #racket
lockywolf_ has quit [Read error: Connection reset by peer]
lockywolf_ has joined #racket
aeth has quit [Ping timeout: 245 seconds]
aeth has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 244 seconds]
lockywolf_ has joined #racket
lockywolf__ has quit [Ping timeout: 245 seconds]
Nomenclatura has joined #racket
libertyprime has quit [Ping timeout: 268 seconds]
aeth has quit [Ping timeout: 258 seconds]
aeth has joined #racket
lockywolf_ has quit [Ping timeout: 258 seconds]
lockywolf has joined #racket
libertyprime has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
evdubs_ has joined #racket
lockywolf_ has joined #racket
evdubs has quit [Ping timeout: 276 seconds]
lockywolf has quit [Ping timeout: 245 seconds]
ephemera_ has joined #racket
zenspider has quit [Ping timeout: 245 seconds]
<lavaflow>
good question, I'd also like to know tbh
<lavaflow>
I assume on mac and linux you could reasonably just follow XDG, but I have no clue on windows
<emacsomancer>
I was hoping maybe Racket internally would take care of finding an appropriate cache directory without requiring me to include OS-specific code
<lavaflow>
$XDG_CACHE_HOME = $HOME/.cache (on Windows: %TEMP%)
<lavaflow>
I don't really know how common following th XDG stuff is on windows, but I think it's reasonable on macos and standard practice on gnu/linux
<emacsomancer>
lavaflow: ah, yes, that looks promising!
<emacsomancer>
it seems to suggest it will default to the right thing on Windows: $XDG_CACHE_HOME = $HOME/.cache (on Windows: %TEMP%)
<emacsomancer>
likewise for config
<lavaflow>
I've seen the %whatever% stuff mentioned for windows before, but I never looked into it
<lavaflow>
last windows installation I've owned was win98 >_>
zenspider has joined #racket
<erkin>
There's a Racket preferences dir independent of XDG standard.
<erkin>
`(find-system-path 'pref-dir)
<lavaflow>
yeah, but find-system-path doesn't have a 'cache-dir
<erkin>
Yeah, maybe there should be.
<erkin>
What does DrRacket do?
<lavaflow>
it's probably fine to put some caches in the pref directory, but certainly for some use-cases you'd want the user to have the option of putting that on another mount
<lavaflow>
not sure, I try to avoid looking at DrRacket code because each time I do I lose hours in it
<erkin>
Haha
<emacsomancer>
I'm also thinking of distributing as a binary (I don't know if that makes a difference since (find-system-path 'pref-dir) seems to return ~/.racket )
<erkin>
If the cache doesn't need to be persistent, you can use 'temp-dir
<erkin>
emacsomancer: Yeah, no difference.
<emacsomancer>
I'd like a persistent cache
endformationage has quit [Ping timeout: 258 seconds]
<lavaflow>
if it's data, not a cache per-se, then XDG_DATA_HOME might be a better option
<erkin>
Sounds like it can be added to find-system-path.
sagax has quit [Read error: Connection reset by peer]
zenspider has quit [Ping timeout: 268 seconds]
<emacsomancer>
how would it be added to find-system-path (in a cross-platform compatible fashion) ?
<lavaflow>
is there some way to change the program name being used by find-system-path so that it's not using 'racket' for everything? the basedir package has the (current-basedir-program-name) parameter
mzan has joined #racket
<erkin>
emacsomancer: I meant by patching racket/base. :-P