samth changed the topic of #racket to: Racket v7.6 has been released: https://blog.racket-lang.org/2020/02/racket-v7-6.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
YuGiOhJCJ has joined #racket
libertyprime has joined #racket
iyzsong has joined #racket
sword865 has joined #racket
dddddd has quit [Ping timeout: 240 seconds]
miskatonic has joined #racket
miskatonic has quit [Remote host closed the connection]
efm has joined #racket
rmnull has quit [Quit: WeeChat 2.8]
pilne has quit [Quit: Make it idiot proof and someone will make a better idiot.]
orivej has joined #racket
endformationage has quit [Quit: WeeChat 2.6]
olavx200 has quit [*.net *.split]
BitPuffin has quit [*.net *.split]
bremner has quit [*.net *.split]
olavx200 has joined #racket
bremner has joined #racket
BitPuffin has joined #racket
sauvin has joined #racket
narimiran has joined #racket
SGASAU has joined #racket
ermo has quit [Ping timeout: 256 seconds]
dddddd has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
haakonhr has joined #racket
<haakonhr> Good morning! I'm trying to learn Racket by doing some image processing, but I'm struggling a bit with figuring out how to access single pixels and also which image library is recommended for these kinds of things. For example, if I want to compute the distance between two images according to some metric, for example just the squared difference of the mean pixel or mirror an image by reversing every "row" of pixels,
<haakonhr> which module and #lang is suitable to access this?
<haakonhr> I also haven't been able to read in an image from file as monochrome using (make-monochrome-bitmap "path/to/file") and variations on this. Any clue what I am missing? I am using 2htdp/image and #lang racket/base currently.
srandon111 has joined #racket
libertyprime has quit [Read error: Connection reset by peer]
haakonhr has quit [Ping timeout: 265 seconds]
narimiran has quit [Ping timeout: 264 seconds]
srandon111 has quit [Quit: leaving]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
theruran has quit [Quit: Connection closed for inactivity]
nullcone has quit [Quit: Connection closed for inactivity]
FreeFull has quit [Read error: Connection reset by peer]
FreeFull has joined #racket
vraid has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
narimiran has joined #racket
catonano has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
samlamamma has joined #racket
keep_learning has quit [Quit: This computer has gone to sleep]
<samlamamma> What exactly determines if an identifier which is define:d is mutable or constant?
pilne has joined #racket
<bremner> in the simple case whether it's in the same module? there are probably syntax/macro tricks as well that makes const identifiers
<samlamamma> Right, so to give some context: In DrRacket I can have a file consisting of only (define foo 1). If I then run that file and try to run (set! foo 2) then Racket will signal an error, saying that it's constant. If I however put the set! line in the code then it runs with no error being signalled. What's up with that?
catonano has quit [Quit: catonano]
catonano has joined #racket
<bremner> I _guess_ that counts as a different module
<bremner> (i.e repl is not in-module, definitions is)
<bremner> but I suspect others can state this more precisely
<samth> bremner: samlamamma: yes, any uses of `set!` on a module-defined variable must be syntactically within that module
haakonhr has joined #racket
haakonhr has left #racket ["Killed buffer"]
<samlamamma> Ahaa, okay. But if I `set!` in the file and run it, then I can `set!` it in the REPL. What happens there?
acarrico has joined #racket
ermo has joined #racket
sword865 has quit [Quit: Connection closed for inactivity]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
ermo_ has joined #racket
ermo has quit [Ping timeout: 256 seconds]
ermo_ is now known as ermo
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
acarrico has quit [Quit: Leaving.]
efm has quit [Ping timeout: 256 seconds]
efm has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
vraid has quit [Quit: Leaving]
libertyprime has joined #racket
narimiran has quit [Ping timeout: 265 seconds]
catonano has quit [Read error: Connection reset by peer]
catonano has joined #racket
catonano has quit [Quit: catonano]
catonano has joined #racket
narimiran has joined #racket
MustardCheese has joined #racket
emacsomancer has quit [Read error: Connection reset by peer]
narimiran has quit [Ping timeout: 260 seconds]
emacsomancer has joined #racket
libertyprime has quit [Read error: Connection reset by peer]
narimiran has joined #racket
catonano has quit [Quit: catonano]
catonano has joined #racket
srandon111 has joined #racket
narimiran has quit [Remote host closed the connection]
evdubs_ has joined #racket
evdubs has quit [Remote host closed the connection]
narimiran has joined #racket
narimiran has quit [Ping timeout: 264 seconds]
Lowl3v3l has quit [Read error: No route to host]
Lowl3v3l has joined #racket
dddddd has quit [Ping timeout: 250 seconds]
<MustardCheese> I have a function wrapper that accepts a procedure, some other arguments and then varargs. The varargs are used to take any arguments that are to to be applied to the wrapped function. When I put a keyword in the varargs, the keyword is interpreted by the wrapper function before it can be passed to the wrapped function. It seems as though keywords are not first class. What alternatives do I have?
narimiran has joined #racket
<samth> MustardCheese: you probably need to use keyword-procedure and keyword-apply.
narimiran has quit [Quit: leaving]
<MustardCheese> Aha so these automatically convert the keywords into datums to be fed into the child procedure? This would seem to be what I'm looking for, yes. I'll experiment with them for a while and get back to you, thank you!
sauvin has quit [Ping timeout: 256 seconds]
<MustardCheese> It's pretty mind bending stuff this, though I've managed to knock together some implementations that work. Thank you again!
true-grue has joined #racket
orivej has quit [Ping timeout: 265 seconds]
MustardCheese has quit [Ping timeout: 258 seconds]
catonano has quit [Quit: catonano]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Codaraxis has joined #racket
nullcone has joined #racket
MustardCheese has joined #racket
ArthurStrong has joined #racket
vraid has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
evdubs_ is now known as evdubs
\dev\ice has quit [Remote host closed the connection]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
efm has quit [Ping timeout: 265 seconds]
dddddd has joined #racket
SGASAU has quit [Ping timeout: 256 seconds]
vraid has quit [Ping timeout: 250 seconds]
true-grue has quit [Read error: Connection reset by peer]
pilne has quit [Quit: Friends help you move. Real friends help you move bodies.]
keep_learning has joined #racket
pilne has joined #racket
MustardCheese has quit [Quit: Quit]