samth changed the topic of #racket to: Racket v7.3 has been released: https://blog.racket-lang.org/2019/05/racket-v7-3.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
FreeFull has quit []
notzmv has joined #racket
lavaflow has quit [Ping timeout: 245 seconds]
jao has quit [Ping timeout: 244 seconds]
lavaflow has joined #racket
libertyprime has joined #racket
lockywolf has joined #racket
dbmikus has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 246 seconds]
analogue has quit [Quit: Leaving]
dbmikus has quit [Quit: WeeChat 2.5]
analogue has joined #racket
pera has quit [Ping timeout: 245 seconds]
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
<lavaflow> then there is this doc: https://docs.racket-lang.org/reference/Filesystem.html#%28def._%28%28quote._~23~25kernel%29._find-system-path%29%29
<lavaflow> that doesn't list a config directory option though
<lavaflow> *cache directory
Nomenclatura has quit [Quit: q]
orivej has quit [Ping timeout: 246 seconds]
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 244 seconds]
endobson has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
lockywolf__ has quit [Read error: Connection reset by peer]
lockywolf__ has joined #racket
lockywolf_ has joined #racket
<emacsomancer> lavaflow: there's this: https://docs.racket-lang.org/file/cache.html - but it wants a cache-dir specified.
<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> yeah, that'd be nice
lockywolf__ has quit [Ping timeout: 246 seconds]
<lavaflow> emacsomancer: maybe this is the way to go: https://docs.racket-lang.org/basedir/index.html
<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
<emacsomancer> erkin - ah. good. it didn't sound like something I'd want to try to keep up with in my own code.
<lavaflow> you could shadow find-system-path with your own function wrapping it ;)
<emacsomancer> lavaflow: I don't think I really want to go down that path. I'll stick everything in 'pref-dir if that's the easiest path for now.
<lavaflow> yeah I don't actually recommend something like that
<lavaflow> (shadowing it that is)
lockywolf__ has joined #racket
<emacsomancer> I figured it wasn't really a recommendation
<lavaflow> personally I think I'm going to use the xdg stuff. I already have a bunch of other stuff using that scheme anyway
lockywolf_ has quit [Ping timeout: 245 seconds]
lockywolf_ has joined #racket
<emacsomancer> lavaflow: do you have a clear sense of how it works from within Racket? after requiring basedir, (list-cache-dirs) returns '()
lockywolf_ has quit [Read error: Connection reset by peer]
lockywolf__ has quit [Ping timeout: 245 seconds]
lockywolf_ has joined #racket
<lavaflow> I've not tried it yet. maybe you need to set (current-basedir-program-name) first?
<emacsomancer> lavaflow: doesn't seem to have any effect
<lavaflow> hmm yeah.
<lavaflow> if I do (writable-cache-dir ) it returns #<path:/tmp/xdg_cache/foobar>
<lavaflow> (my program-name is set to "foobar")
<emacsomancer> ah, yes, that works!
<lavaflow> ah okay, (writabel-cache-dir) doesn't actualyl create the directory itself. but if you do create it, then (list-cache-dirs) returns it.
<emacsomancer> so have racket create the appropriate directory based on (writable-cache-dir) - that makes sense
<lavaflow> yeah, (mkdir (writable-cache-dir)) or whatever
<lavaflow> (I know it's not actually mkdir)
<emacsomancer> make-directory* seems to work
<emacsomancer> well, this gets me a bit further. cheers!
<lavaflow> likewise!
ziyourenxiang_ has joined #racket
ziyourenxiang has quit [Ping timeout: 245 seconds]
ziyourenxiang_ has quit [Remote host closed the connection]
ziyourenxiang_ has joined #racket
pie_ has joined #racket
orivej has joined #racket
ng0 has joined #racket
bogdanp has joined #racket
orivej has quit [Ping timeout: 258 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
euhmeuh has joined #racket
Sgeo has joined #racket
lockywolf_ has quit [Ping timeout: 246 seconds]
Sgeo__ has quit [Ping timeout: 258 seconds]
sagax has joined #racket
lockywolf has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Read error: Connection reset by peer]
orivej has joined #racket
bogdanp has quit [Ping timeout: 258 seconds]
dTal has joined #racket
chiefgoat has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
chiefgoat has joined #racket
libertyprime has quit [Remote host closed the connection]
chiefgoat has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
chiefgoat has joined #racket
chiefgoat has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
chiefgoat has joined #racket
chiefgoat has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
chiefgoat has joined #racket
lockywolf_ has quit [Ping timeout: 245 seconds]
libertyprime has joined #racket
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #racket
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 268 seconds]
iyzsong has joined #racket
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 258 seconds]
ubLIX has joined #racket
vraid has joined #racket
dddddd has joined #racket
ziyourenxiang_ has quit [Ping timeout: 268 seconds]
ubLIX has quit [Ping timeout: 245 seconds]
ziyourenxiang has joined #racket
dddddd has quit [Ping timeout: 244 seconds]
dddddd has joined #racket
lockywolf has joined #racket
lockywolf_ has joined #racket
camelCaser has quit [Ping timeout: 244 seconds]
lockywolf__ has joined #racket
lockywolf has quit [Read error: Connection reset by peer]
lockywolf_ has quit [Ping timeout: 244 seconds]
lockywolf has joined #racket
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
endformationage has joined #racket
lockywolf__ has quit [Remote host closed the connection]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
ng0 has quit [Ping timeout: 260 seconds]
ubLIX has joined #racket
ng0 has joined #racket
jao has joined #racket
ubLIX has quit [Quit: ubLIX]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #racket
Sgeo__ has joined #racket
Sgeo_ has quit [Ping timeout: 245 seconds]
analogue has joined #racket
analogue has quit [Quit: Leaving]
efm has left #racket ["Konversation terminated!"]
zenspider has joined #racket
Sgeo_ has joined #racket
Sgeo has joined #racket
Sgeo__ has quit [Ping timeout: 245 seconds]
Sgeo_ has quit [Ping timeout: 268 seconds]
endobson has joined #racket
zipper has joined #racket
lockywolf_ has joined #racket
Sgeo_ has joined #racket
orivej has quit [Ping timeout: 268 seconds]
lockywolf has quit [Ping timeout: 244 seconds]
zipper has quit [Ping timeout: 258 seconds]
Sgeo has quit [Ping timeout: 244 seconds]
zipper has joined #racket
ziyourenxiang has quit [Remote host closed the connection]
ziyourenxiang has joined #racket
Sgeo__ has joined #racket
zipper has quit [Ping timeout: 268 seconds]
Sgeo_ has quit [Ping timeout: 245 seconds]
vraid has quit [Quit: Leaving]
ziyourenxiang has quit [Ping timeout: 246 seconds]
zipper has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 246 seconds]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
ubLIX has joined #racket
orivej has joined #racket
pera has joined #racket
FreeFull has joined #racket
zipper has quit [Ping timeout: 245 seconds]
manualcrank has joined #racket
zipper has joined #racket
fridim has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 244 seconds]
camelCaser has joined #racket
efm has joined #racket
orivej has joined #racket
camelCaser has quit [Ping timeout: 258 seconds]
camelCaser has joined #racket
lockywolf__ has quit [Ping timeout: 244 seconds]
lockywolf_ has joined #racket
dvdmuckle has quit [Quit: Bouncer Surgery]
dvdmuckle has joined #racket
zipper has quit [Ping timeout: 258 seconds]
mzan has quit [Ping timeout: 245 seconds]
zipper has joined #racket
sameerynho has joined #racket
mzan has joined #racket
sauvin has quit [Ping timeout: 268 seconds]
ubLIX has quit [Quit: ubLIX]
zipper has quit [Ping timeout: 245 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 244 seconds]
casaca has quit [Ping timeout: 258 seconds]
endformationage has quit [Ping timeout: 268 seconds]
soegaard has joined #racket
analogue has joined #racket
lockywolf_ has quit [Remote host closed the connection]
lockywolf_ has joined #racket
endformationage has joined #racket
orivej has joined #racket
ArthurStrong has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 264 seconds]
analogue has quit [Ping timeout: 246 seconds]
orivej has quit [Read error: Connection reset by peer]
orivej has joined #racket
soegaard has quit [Quit: soegaard]
vraid has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
Ven`` has joined #racket
ArthurStrong has quit [Quit: leaving]
casaca has joined #racket
ubLIX has joined #racket
Sgeo_ has joined #racket
Sgeo__ has quit [Ping timeout: 246 seconds]
keep_learning has quit [Remote host closed the connection]
ng0 has joined #racket
ZombieChicken has joined #racket
lockywolf__ has quit [Ping timeout: 245 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #racket
Ven`` has quit [Client Quit]
FreeFull has quit []
sameerynho has quit [Ping timeout: 246 seconds]
vraid has quit [Disconnected by services]
vraid has joined #racket
Fernando-Basso has joined #racket
ziyourenxiang has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
mzan has quit [Quit: Leaving]