lexi-lambda changed the topic of #racket to: Racket v7.5 has been released: https://blog.racket-lang.org/2019/11/racket-v7-5.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
aeth has quit [Read error: Connection reset by peer]
aeth has joined #racket
badkins has joined #racket
libertyprime has quit [Ping timeout: 268 seconds]
libertyprime has joined #racket
ZombieChicken has joined #racket
ArthurStrong has quit [Quit: leaving]
FreeFull has quit []
endobson has joined #racket
sword865 has joined #racket
johnjay has quit [Ping timeout: 258 seconds]
johnjay has joined #racket
lavaflow has quit [Quit: WeeChat 2.6]
badkins has quit [Remote host closed the connection]
lavaflow has joined #racket
libertyprime has quit [Remote host closed the connection]
dddddd has quit [Ping timeout: 260 seconds]
johnjay has quit [Ping timeout: 265 seconds]
efm has joined #racket
efm has quit [Ping timeout: 258 seconds]
wingsorc has quit [Ping timeout: 248 seconds]
johnjay has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
libertyprime has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 258 seconds]
libertyprime has quit [Quit: leaving]
libertyprime has joined #racket
libertyprime has quit [Client Quit]
orivej has joined #racket
libertyprime has joined #racket
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #racket
narimiran has joined #racket
_whitelogger has joined #racket
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #racket
brettgilio has joined #racket
sauvin has joined #racket
acummings has joined #racket
orivej has quit [Ping timeout: 268 seconds]
YuGiOhJCJ has joined #racket
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]
true-grue has joined #racket
orivej has joined #racket
FernandoBasso has joined #racket
catonano has quit [Quit: catonano]
catonano has joined #racket
_whitelogger has joined #racket
abcd has joined #racket
orivej has quit [Ping timeout: 260 seconds]
mzan has quit [Ping timeout: 240 seconds]
mzan has joined #racket
brettgilio has quit [Quit: Quit]
brettgilio has joined #racket
brettgilio has quit [Client Quit]
notzmv has quit [Remote host closed the connection]
brettgilio has joined #racket
abcd has left #racket [#racket]
abcd has joined #racket
iyzsong has joined #racket
<abcd> Hello, I have a few questions about reading a binary file
Guest51983 has joined #racket
Guest51983 is now known as [ouo]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
FernandoBasso has quit [Remote host closed the connection]
iyzsong has quit [Ping timeout: 265 seconds]
iyzsong has joined #racket
iyzsong has quit [Remote host closed the connection]
dddddd has joined #racket
iyzsong has joined #racket
<notnotdan> abcd: you can just drop your question here
<notnotdan> erm by "drop them here" i mean "ask them here"
<abcd> Thank! But I think I just figured it out
<abcd> I am trying to read a binary file in chunks of 16 bytes, but I do not want to read the whole file to memory, as it can be very big
<abcd> I found the in-producer procedure
libertyprime has quit [Quit: leaving]
narimiran has quit [Ping timeout: 268 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
sword865 has quit [Quit: Connection closed for inactivity]
abcd has quit [Ping timeout: 265 seconds]
vraid has joined #racket
libertyprime has joined #racket
abcd has joined #racket
johnjay has quit [Ping timeout: 265 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 240 seconds]
_whitelogger has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
mzan has quit [Ping timeout: 260 seconds]
mzan has joined #racket
mzan has quit [Remote host closed the connection]
orivej has joined #racket
abcd has quit [Quit: Leaving]
orivej has quit [Ping timeout: 258 seconds]
badkins has joined #racket
dmiles has joined #racket
badkins has quit [Ping timeout: 260 seconds]
narimiran has joined #racket
mzan has joined #racket
dmiles has quit []
mzan has quit [Quit: Leaving]
brettgilio has quit [Ping timeout: 260 seconds]
badkins has joined #racket
orivej has joined #racket
endobson has joined #racket
wingsorc has joined #racket
orivej has quit [Ping timeout: 260 seconds]
<bremner> what's a good convention for wrapper functions that mutate? foo! -> foo'! looks a bit weird
<bremner> I'd like something relatively concise, maybe that's my problem.
<bremner> hrm. whoever was asking about /, apparently it means "with"
FreeFull has joined #racket
chambln has left #racket ["ERC (IRC client for Emacs 26.3)"]
dmiles has joined #racket
wingsorc has quit [Ping timeout: 248 seconds]
badkins has quit [Remote host closed the connection]
endformationage has joined #racket
ziyourenxiang has quit [Ping timeout: 258 seconds]
<endobson> If I have a macro m, that is called like (m foo-id) where foo-id is bound at phase 1 to an sexpression. m is meant to take that sexpression, and use it to generate its output syntax
<endobson> What is the easiest way of doing this?
<endobson> I currently have m generating code that looks like (begin (define-syntax (go stx) ...) (go))
<endobson> and having the body of go uses the foo-id
<endobson> but it feels that is very convoluted
<endobson> I feel like eval with the right namespace or something like syntax-local-value would make this a lot simpler
Trieste has quit [Ping timeout: 258 seconds]
Trieste has joined #racket
<lexi-lambda> endobson: Yeah, normally you do something like that by binding foo-id as a transformer binding at phase 0 and using syntax-local-value. But depending on what you’re doing there might be a better way. Maybe consider looking at syntax-local-eval.
<endobson> lexi-lambda: Yes that is exactly the function I was looking for
<lexi-lambda> syntax-local-eval is significantly safer than true unrestricted eval. It uses internal definition contexts under the hood.
<endobson> lexi-lambda: eval is totally safe, just don't look at it funny
<endobson> my most recent annoyance with it is that (begin (module ...)) is different than (module ...)
<lexi-lambda> Well, I suppose it is safe if you set the context up properly. :) But that’s hard to get right, and syntax-local-eval essentially takes a code path that ensures it’s set up properly!
<endobson> oh yes for this case
ArthurStrong has joined #racket
<lexi-lambda> endobson: What’s different about (begin (module ...))?
<endobson> rudybot: doc eval
<rudybot> endobson: your sandbox is ready
<rudybot> endobson: http://docs.racket-lang.org/reference/eval.html#(def._((quote._~23~25kernel)._eval))
<endobson> If top-level-form is a pair whose car is a symbol or identifier, and if applying namespace-syntax-introduce to the (datum->syntax-converted) identifier produces an identifier bound to module in a phase level that corresponds to namespace’s base phase, then only that identifier is enriched.
pticochon has quit [Ping timeout: 265 seconds]
<endobson> So just a very weird edge case
badkins has joined #racket
brettgilio has joined #racket
badkins has quit [Ping timeout: 258 seconds]
<lexi-lambda> endobson: Ah, that is inconvenient, isn’t it? I guess it makes some sense, though.
ArthurStrong has left #racket [#racket]
<lexi-lambda> I guess you could add another special case for begin that does the same thing while recursively flattening begins.
<endobson> Really it is that the top level is hopeless
<lexi-lambda> Indeed.
cantstanya has quit [Ping timeout: 240 seconds]
cantstanya has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
lorikeet has quit [Quit: Connection closed for inactivity]
badkins has joined #racket
orivej has joined #racket
brettgilio has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 265 seconds]
[ouo] has quit [Read error: Connection reset by peer]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
orivej has joined #racket
ziyourenxiang has joined #racket
efm has joined #racket
badkins has joined #racket