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
ziyourenxiang has joined #racket
vraid has quit [Quit: Leaving]
nikoala has quit [Ping timeout: 265 seconds]
zenspider has quit [Ping timeout: 258 seconds]
zenspider has joined #racket
zenspider has quit [Ping timeout: 255 seconds]
DGASAU has quit [Ping timeout: 240 seconds]
DGASAU has joined #racket
zenspider has joined #racket
caltelt has joined #racket
efm has quit [Ping timeout: 256 seconds]
efm has joined #racket
orivej has joined #racket
caltelt has quit [Ping timeout: 258 seconds]
endformationage has quit [Quit: WeeChat 2.6]
orivej has quit [Ping timeout: 265 seconds]
pilne has quit [Quit: Call me a relic, call me what you will. Say I'm old fashioned, say I'm over the hill.]
dddddd has quit [Remote host closed the connection]
FreeFull has quit []
aidalgol has joined #racket
ephemera_ has quit [Ping timeout: 258 seconds]
ephemera_ has joined #racket
narimiran has joined #racket
sauvin has joined #racket
theruran has joined #racket
DGASAU has quit [Remote host closed the connection]
DGASAU has joined #racket
lockywolf__ has joined #racket
lockywolf__ has quit [Max SendQ exceeded]
lockywolf__ has joined #racket
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
lockywolf__ has quit [Max SendQ exceeded]
Arcsech has quit [Ping timeout: 258 seconds]
lockywolf__ has joined #racket
lockywolf__ has quit [Max SendQ exceeded]
lockywolf__ has joined #racket
lockywolf__ has quit [Remote host closed the connection]
ChanServ has quit [*.net *.split]
`micro has quit [*.net *.split]
lexi-lambda has quit [*.net *.split]
jcowan has quit [*.net *.split]
eMBee has quit [*.net *.split]
friscosam has quit [*.net *.split]
ephemera_ has quit [*.net *.split]
ziyourenxiang has quit [*.net *.split]
notnotdan has quit [*.net *.split]
Sgeo_ has quit [*.net *.split]
manualcrank has quit [*.net *.split]
bartbes has quit [*.net *.split]
fiddlerwoaroof has quit [*.net *.split]
idxu has quit [*.net *.split]
dzoe has quit [*.net *.split]
scolobb has quit [*.net *.split]
danderson has quit [*.net *.split]
pounce has quit [*.net *.split]
juanfra_ has quit [*.net *.split]
kawzeg has quit [*.net *.split]
bremner has quit [*.net *.split]
englishm has quit [*.net *.split]
Zandose has quit [*.net *.split]
rodlogic has quit [*.net *.split]
edmoore has quit [*.net *.split]
dumptruckman has quit [*.net *.split]
ohama has quit [*.net *.split]
Cheery has quit [*.net *.split]
narimiran has quit [*.net *.split]
_whitelogger has joined #racket
Arcsech has joined #racket
lockywolf__ has quit [Ping timeout: 256 seconds]
lockywolf__ has joined #racket
lockywolf__ has quit [Max SendQ exceeded]
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 256 seconds]
lockywolf__ has quit [Ping timeout: 256 seconds]
^[ has joined #racket
Irenes[m] has joined #racket
dustyweb has joined #racket
theruran has joined #racket
Oxyd has joined #racket
jmiven has joined #racket
zmt01 has joined #racket
erkin has joined #racket
mario-goulart has joined #racket
aidalgol has quit [Remote host closed the connection]
iyzsong has joined #racket
lockywolf has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 258 seconds]
nullcone has quit [Quit: Connection closed for inactivity]
lockywolf_ has quit [Read error: Connection reset by peer]
lockywolf__ has joined #racket
lockywolf__ has quit [Max SendQ exceeded]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
narimiran has quit [Ping timeout: 268 seconds]
chambln has quit [Remote host closed the connection]
tilpner_ has joined #racket
tilpner has quit [Ping timeout: 258 seconds]
johncob has joined #racket
phwalkr has joined #racket
phwalkr has left #racket [#racket]
phwalkr has joined #racket
<dustyweb> racket packages update their documentation on docks.r-l.org about 1x/day right?
<dustyweb> er
<dustyweb> docs
<dustyweb> not docks
* dustyweb is excited to see https://docs.racket-lang.org/goblins/index.html update with the massive number of new changes from yesterday's release
dddddd has joined #racket
vraid has joined #racket
ccamel has joined #racket
camelCaser has quit [Ping timeout: 256 seconds]
KDr21 has joined #racket
KDr2 has quit [Ping timeout: 258 seconds]
efm has quit [Read error: Connection reset by peer]
Jmabsd has joined #racket
<Jmabsd> guys, how do you implement the following in syntax-case:
<Jmabsd> (define-macro (hello-world) '(print "Hello, World!\n"))
<Jmabsd> (define-macro (begin0 arg1 . rest) (define g (gensym)) `(let ((,g ,arg1)) ,@rest ,g)))
<Jmabsd> syntax-case is not trivial to learn, your pointer here would be much appreciated
<Jmabsd> also there are no syntax-case learning resources for people who don't know syntax-case already
Naptra has joined #racket
<Jmabsd> |begin0| anyone? :)
Jmabsd has quit [Quit: Leaving]
Jmabsd has joined #racket
<greghendershott> Jmabsd: For that type of simple macro, I'd use `define-syntax-rule` (classic Scheme) or `define-simple-macro` (more "Rackety")
<greghendershott> Either way, you don't need to mess around with `gensym`. Hygiene is handled for you.
vraid has quit [Quit: Leaving]
<Jmabsd> greghendershott: i am learning syntax-case, like to use it for this one
<greghendershott> Well there's this very brief thing https://docs.racket-lang.org/guide/syntax-case.html
<greghendershott> I feel like there's some other intro/guide I'm forgetting right now...
<greghendershott> Jmabsd: ^
<greghendershott> Also, not to overwhelm you with choices, but `syntax-case` is the classic Scheme thing, and the more "Rackety" thing these days is `syntax-parse`.
<greghendershott> They're similar, but the latter has a lot of nice features, especially being able to tag input elements with classes (~= "types") for automatic checking and better error messages
<greghendershott> `syntax-parse` has a good intro/guide: https://docs.racket-lang.org/syntax/stxparse-intro.html
<greghendershott> Jmabsd: ^
<greghendershott> I'd recommend using either `define-simple-macro` or `syntax-parse`, in general, unless you're trying to learn/use Scheme as opposed to Racket.
<Jmabsd> greghendershott: wow awesome, thank you
<greghendershott> Jmabsd: You're welcome! I have to AFK for awhile but I hope that helps, and good luck!
<Jmabsd> thx again! yeah syntax-case is a beast
narimiran has joined #racket
vraid has joined #racket
chambln has joined #racket
srji has joined #racket
phwalkr_ has joined #racket
phwalkr has quit [Ping timeout: 256 seconds]
FreeFull has joined #racket
ziyourenxiang has quit [Ping timeout: 240 seconds]
phwalkr has joined #racket
phwalkr_ has quit [Ping timeout: 240 seconds]
<greghendershott> Jmabsd: Also: https://docs.racket-lang.org/syntax-parse-example/index.html#%28part._.A_syntax-parse_.Crash_.Course%29
jshap has quit [Quit: bye]
sauvin has quit [Read error: Connection reset by peer]
<Jmabsd> thx
Jmabsd has quit [Quit: Leaving]
sz0 has quit [Quit: Connection closed for inactivity]
ArthurStrong has joined #racket
Naptra has quit [Remote host closed the connection]
orivej has joined #racket
phwalkr has quit []
teardown has joined #racket
travv0 has left #racket [#racket]
jshap has joined #racket
<jshap> is there a way to read in a string like "0.1" and parse it as the number 1/10 exactly?
<jshap> currently if I do `(* 10 (inexact->exact .1))` -> `18014398509481985/18014398509481984`
<jshap> so just sliiiiiiiightly not right lol
<jshap> but enough to cause errors for me down the line on a `(floor`
<jshap> like, why does `(inexact->exact 0.1)` produce garbage but `#e0.1` gives `1/10`
narimiran has quit [Ping timeout: 256 seconds]
<jshap> ah, looks like `(read-decimal-as-inexact #f)` is what I wanted
efm has joined #racket
efm has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 265 seconds]
sagax has quit [Read error: Connection reset by peer]
orivej has joined #racket
orivej has quit [Ping timeout: 260 seconds]
nullcone has joined #racket
efm has joined #racket
efm has quit [Quit: Konversation terminated!]
efm has joined #racket
vraid has quit [Read error: Connection reset by peer]