samth changed the topic of #racket to: Racket v7.8 has been released: https://blog.racket-lang.org/2020/08/racket-v7-8.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
mirrorbird has quit [Quit: Leaving]
bitmapper has joined #racket
acarrico has joined #racket
Fare has quit [Ping timeout: 258 seconds]
todun has joined #racket
todun has quit [Quit: todun]
_whitelogger has joined #racket
jimt has quit [Quit: WeeChat 2.8]
acarrico has quit [Ping timeout: 260 seconds]
Fare has joined #racket
mceier has quit [Ping timeout: 265 seconds]
mceier has joined #racket
nperez has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
nperez has joined #racket
aeth has quit [Ping timeout: 265 seconds]
aeth has joined #racket
<nisstyre> BitPuffin: there's pattern matching but that's not quite as powerful
<nisstyre> oh you already used that, then idk, but that would be nice to have
<nisstyre> maybe someone wrote a list query language
<BitPuffin> yeah
<BitPuffin> If it doesn't exist maybe I can write it
<BitPuffin> at least start a project and the community can build it up or something
<BitPuffin> but yeah it's been frustrating to not have it lol. I wasn't exactly sure what it would look like but there were a lot of cases I found myself wanting it. And then when I used CSS selectors I was like oh, yeah I guess something along these lines. But there is probably a better way too
falsifian has joined #racket
evdubs_ has joined #racket
evdubs has quit [Ping timeout: 260 seconds]
<Vaelatern> clojure has (get-in) which allows nesting indexes, but that doesn't exactly sound like a query language
<Vaelatern> (get-in [[1 2 [3 4]] 5 6] [0 2 0])
<BitPuffin> ah yeah indexes doesn't quite hit the spot does it
<samth> Vaelatern: 'a matches the symbol 'a
<Vaelatern> 'a is (quote a) though
<samth> right
<Vaelatern> BitPuffin: I mean, what else do lists have? They really are index based
<samth> it matches values equal to 'a
<Vaelatern> search for (quote datum) here https://docs.racket-lang.org/reference/match.html?q=do#%28form._%28%28lib._racket%2Fmatch..rkt%29._match%2A%29%29
aeth has quit [Ping timeout: 256 seconds]
<BitPuffin> Vaelatern: but they can form nested hierarchies. We even have aref etc for getting those sublists
<samth> Vaelatern: I wrote that documentation; what it says is that it matches a value `equal?` to `datum`
<Vaelatern> So there is no way to match the contents of a variable, then?
<samth> Vaelatern: I think what you want is the pattern `(== a)`
<Vaelatern> ah, that makes a degree of sense
<Vaelatern> thanks
<samth> but in general 'a is a symbol and is not ever going to be connected to the binding named a
aeth has joined #racket
<Vaelatern> unless unqoted, but then it becomes a binding of its own when used raw
<Vaelatern> How can I write a function that returns multiple values for let-values to digest? I've tried creating a pair with (cons) but it has not been successful.
<Vaelatern> ah, (values)
<BitPuffin> will Racket CS improve support for parallelism?
nullcone has joined #racket
greghendershott has quit [Quit: Connection closed for inactivity]
catonano has joined #racket
narimiran has joined #racket
endformationage has quit [Quit: WeeChat 2.9]
aaaaaa has joined #racket
dmiles has joined #racket
terrorjack has quit [Remote host closed the connection]
orivej has joined #racket
notzmv has quit [Remote host closed the connection]
dmiles has quit [Remote host closed the connection]
dmiles has joined #racket
tohoyn has joined #racket
<tohoyn> I'm profiling a program and the Racket profiler fails to give any output
<tohoyn> I use procedure profile-thunk
<tohoyn> The program is very large, about 68MB racket source code
<tohoyn> The following works: (profile-thunk (lambda () (display "hello\n")))
tohoyn has quit [Quit: Leaving]
tohoyn has joined #racket
caente has quit [Ping timeout: 246 seconds]
YuGiOhJCJ has joined #racket
dan_f has joined #racket
YuGiOhJCJ has quit [Ping timeout: 240 seconds]
YuGiOhJCJ has joined #racket
catonano has quit [Quit: catonano]
catonano has joined #racket
orivej has quit [Ping timeout: 256 seconds]
dan_f has quit [Quit: dan_f]
catonano has quit [Quit: catonano]
catonano has joined #racket
dmiles has quit [Ping timeout: 240 seconds]
dmiles has joined #racket
narimiran has quit [Ping timeout: 264 seconds]
evdubs_ is now known as evdubs
catonano has quit [Quit: catonano]
nullcone has quit []
Sgeo has quit [Read error: Connection reset by peer]
<yurb> Is it possible to define a procedure that takes arbitrary keyword arguments?
<yurb> Ah, found it file:///nix/store/cbawvp78y7zrp35dlji0gj9kbx68cc0s-racket-7.8/share/doc/racket/reference/procedures.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._make-keyword-procedure%29%29
<yurb> Oops, just leaked my nix store path :)
<yurb> https://docs.racket-lang.org/reference/procedures.html?q=make-keyword-procedure#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._make-keyword-procedure%29%29
andreyorst has joined #racket
davidl has quit [Quit: WeeChat 2.9]
rgherdt has joined #racket
<yurb> Um, another question. Is using `(value-contract some-other-function)` the appropriate way to provide a function whose contract is the same as that of some other function?
davidl has joined #racket
davidl has quit [Quit: WeeChat 2.9]
orivej has joined #racket
nebunez has joined #racket
BitPuffin has quit [Ping timeout: 260 seconds]
BitPuffin has joined #racket
caente has joined #racket
Fare has quit [Ping timeout: 264 seconds]
Fare has joined #racket
acarrico has joined #racket
narimiran has joined #racket
Fare has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 246 seconds]
erhandsome has quit [Ping timeout: 256 seconds]
erhandsome has joined #racket
andreyorst has quit [Ping timeout: 260 seconds]
orivej has joined #racket
dataangel has quit [Ping timeout: 272 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Fare has joined #racket
srandon111 has joined #racket
endformationage has joined #racket
dustyweb has quit [Read error: Connection reset by peer]
dustyweb has joined #racket
dustyweb has quit [Remote host closed the connection]
aaaaaa has quit [Quit: leaving]
dustyweb has joined #racket
tohoyn has quit [Quit: Leaving]
endformationage has quit [Ping timeout: 246 seconds]
andreyorst has joined #racket
ArneBab has joined #racket
endformationage has joined #racket
dmiles has quit [Ping timeout: 260 seconds]
dmiles has joined #racket
andreyorst has quit [Ping timeout: 240 seconds]
omr has joined #racket
true-grue has joined #racket
Fare has quit [Ping timeout: 260 seconds]
narimiran has quit [Ping timeout: 256 seconds]
gpanders has joined #racket
aeth has quit [Ping timeout: 240 seconds]
aeth has joined #racket
Sgeo has joined #racket
wreed has joined #racket
omr has quit [Quit: leaving]
rekahsoft has joined #racket
nullcone has joined #racket
true-grue has quit [Read error: Connection reset by peer]
ohama has quit [Ping timeout: 264 seconds]
ohama has joined #racket
<samth> tohoyn: you might be doing all the work in another thread
<samth> yurb: do you want it to change if the other function's contract changes?
<samth> BitPuffin: Racket CS has roughly the same strategy for parallelism as Racket BC, but more functions are future-safe in Racket CS.
<BitPuffin> Hmm, well that's nice progress :)