00:59
ziyourenxiang has joined #racket
01:11
vraid has quit [Quit: Leaving]
01:46
nikoala has quit [Ping timeout: 265 seconds]
01:47
zenspider has quit [Ping timeout: 258 seconds]
01:49
zenspider has joined #racket
01:56
zenspider has quit [Ping timeout: 255 seconds]
02:00
DGASAU has quit [Ping timeout: 240 seconds]
02:11
DGASAU has joined #racket
02:15
zenspider has joined #racket
03:06
caltelt has joined #racket
03:31
efm has quit [Ping timeout: 256 seconds]
03:33
efm has joined #racket
04:22
orivej has joined #racket
04:24
caltelt has quit [Ping timeout: 258 seconds]
04:33
endformationage has quit [Quit: WeeChat 2.6]
04:37
orivej has quit [Ping timeout: 265 seconds]
04:46
pilne has quit [Quit: Call me a relic, call me what you will. Say I'm old fashioned, say I'm over the hill.]
04:49
dddddd has quit [Remote host closed the connection]
04:58
FreeFull has quit []
05:30
aidalgol has joined #racket
06:05
ephemera_ has quit [Ping timeout: 258 seconds]
06:09
ephemera_ has joined #racket
06:10
narimiran has joined #racket
06:29
sauvin has joined #racket
06:35
theruran has joined #racket
07:12
DGASAU has quit [Remote host closed the connection]
07:14
DGASAU has joined #racket
08:44
lockywolf__ has joined #racket
08:45
lockywolf__ has quit [Max SendQ exceeded]
08:46
lockywolf__ has joined #racket
08:47
lockywolf__ has quit [Remote host closed the connection]
08:48
lockywolf__ has joined #racket
08:50
lockywolf__ has quit [Remote host closed the connection]
08:52
lockywolf__ has joined #racket
08:53
lockywolf__ has quit [Max SendQ exceeded]
08:53
Arcsech has quit [Ping timeout: 258 seconds]
08:53
lockywolf__ has joined #racket
08:53
lockywolf__ has quit [Max SendQ exceeded]
08:54
lockywolf__ has joined #racket
08:55
lockywolf__ has quit [Remote host closed the connection]
09:05
ChanServ has quit [*.net *.split]
09:05
`micro has quit [*.net *.split]
09:05
lexi-lambda has quit [*.net *.split]
09:05
jcowan has quit [*.net *.split]
09:05
eMBee has quit [*.net *.split]
09:05
friscosam has quit [*.net *.split]
09:05
ephemera_ has quit [*.net *.split]
09:05
ziyourenxiang has quit [*.net *.split]
09:05
notnotdan has quit [*.net *.split]
09:05
Sgeo_ has quit [*.net *.split]
09:05
manualcrank has quit [*.net *.split]
09:05
bartbes has quit [*.net *.split]
09:05
fiddlerwoaroof has quit [*.net *.split]
09:05
idxu has quit [*.net *.split]
09:05
dzoe has quit [*.net *.split]
09:05
scolobb has quit [*.net *.split]
09:05
danderson has quit [*.net *.split]
09:05
pounce has quit [*.net *.split]
09:05
juanfra_ has quit [*.net *.split]
09:05
kawzeg has quit [*.net *.split]
09:05
bremner has quit [*.net *.split]
09:05
englishm has quit [*.net *.split]
09:05
Zandose has quit [*.net *.split]
09:05
rodlogic has quit [*.net *.split]
09:05
edmoore has quit [*.net *.split]
09:05
dumptruckman has quit [*.net *.split]
09:05
ohama has quit [*.net *.split]
09:05
Cheery has quit [*.net *.split]
09:05
narimiran has quit [*.net *.split]
09:11
_whitelogger has joined #racket
09:12
Arcsech has joined #racket
09:12
lockywolf__ has quit [Ping timeout: 256 seconds]
09:12
lockywolf__ has joined #racket
09:14
lockywolf__ has quit [Max SendQ exceeded]
09:14
lockywolf__ has joined #racket
09:16
lockywolf_ has quit [Ping timeout: 256 seconds]
09:31
lockywolf__ has quit [Ping timeout: 256 seconds]
09:43
^[ has joined #racket
09:43
Irenes[m] has joined #racket
09:43
dustyweb has joined #racket
09:43
theruran has joined #racket
09:43
Oxyd has joined #racket
09:43
jmiven has joined #racket
09:43
zmt01 has joined #racket
09:43
erkin has joined #racket
09:43
mario-goulart has joined #racket
11:00
aidalgol has quit [Remote host closed the connection]
11:03
iyzsong has joined #racket
11:26
lockywolf has joined #racket
11:29
lockywolf_ has joined #racket
11:32
lockywolf has quit [Ping timeout: 258 seconds]
12:08
nullcone has quit [Quit: Connection closed for inactivity]
12:11
lockywolf_ has quit [Read error: Connection reset by peer]
12:11
lockywolf__ has joined #racket
12:11
lockywolf__ has quit [Max SendQ exceeded]
12:44
narimiran has quit [Ping timeout: 268 seconds]
12:51
chambln has quit [Remote host closed the connection]
13:20
tilpner_ has joined #racket
13:22
tilpner has quit [Ping timeout: 258 seconds]
13:37
johncob has joined #racket
13:43
phwalkr has joined #racket
13:47
phwalkr has left #racket [#racket]
13:47
phwalkr has joined #racket
14:13
<
dustyweb >
racket packages update their documentation on docks.r-l.org about 1x/day right?
14:13
<
dustyweb >
not docks
14:32
dddddd has joined #racket
14:37
vraid has joined #racket
14:41
ccamel has joined #racket
14:42
camelCaser has quit [Ping timeout: 256 seconds]
14:43
KDr21 has joined #racket
14:44
KDr2 has quit [Ping timeout: 258 seconds]
15:19
efm has quit [Read error: Connection reset by peer]
15:37
Jmabsd has joined #racket
15:38
<
Jmabsd >
guys, how do you implement the following in syntax-case:
15:38
<
Jmabsd >
(define-macro (hello-world) '(print "Hello, World!\n"))
15:39
<
Jmabsd >
(define-macro (begin0 arg1 . rest) (define g (gensym)) `(let ((,g ,arg1)) ,@rest ,g)))
15:39
<
Jmabsd >
syntax-case is not trivial to learn, your pointer here would be much appreciated
15:39
<
Jmabsd >
also there are no syntax-case learning resources for people who don't know syntax-case already
15:39
Naptra has joined #racket
16:03
<
Jmabsd >
|begin0| anyone? :)
16:29
Jmabsd has quit [Quit: Leaving]
16:29
Jmabsd has joined #racket
16:38
<
greghendershott >
Jmabsd: For that type of simple macro, I'd use `define-syntax-rule` (classic Scheme) or `define-simple-macro` (more "Rackety")
16:39
<
greghendershott >
Either way, you don't need to mess around with `gensym`. Hygiene is handled for you.
16:39
vraid has quit [Quit: Leaving]
16:40
<
Jmabsd >
greghendershott: i am learning syntax-case, like to use it for this one
16:47
<
greghendershott >
I feel like there's some other intro/guide I'm forgetting right now...
16:47
<
greghendershott >
Jmabsd: ^
16:48
<
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`.
16:49
<
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
16:50
<
greghendershott >
Jmabsd: ^
16:52
<
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.
16:53
<
Jmabsd >
greghendershott: wow awesome, thank you
16:54
<
greghendershott >
Jmabsd: You're welcome! I have to AFK for awhile but I hope that helps, and good luck!
16:55
<
Jmabsd >
thx again! yeah syntax-case is a beast
17:04
narimiran has joined #racket
17:08
vraid has joined #racket
17:13
chambln has joined #racket
17:34
srji has joined #racket
17:34
phwalkr_ has joined #racket
17:38
phwalkr has quit [Ping timeout: 256 seconds]
17:49
FreeFull has joined #racket
18:02
ziyourenxiang has quit [Ping timeout: 240 seconds]
18:45
phwalkr has joined #racket
18:48
phwalkr_ has quit [Ping timeout: 240 seconds]
19:19
jshap has quit [Quit: bye]
19:26
sauvin has quit [Read error: Connection reset by peer]
19:38
Jmabsd has quit [Quit: Leaving]
20:04
sz0 has quit [Quit: Connection closed for inactivity]
20:05
ArthurStrong has joined #racket
20:18
Naptra has quit [Remote host closed the connection]
20:23
orivej has joined #racket
20:32
phwalkr has quit []
20:34
teardown has joined #racket
20:48
travv0 has left #racket [#racket]
21:15
jshap has joined #racket
21:15
<
jshap >
is there a way to read in a string like "0.1" and parse it as the number 1/10 exactly?
21:16
<
jshap >
currently if I do `(* 10 (inexact->exact .1))` -> `18014398509481985/18014398509481984`
21:16
<
jshap >
so just sliiiiiiiightly not right lol
21:16
<
jshap >
but enough to cause errors for me down the line on a `(floor`
21:30
<
jshap >
like, why does `(inexact->exact 0.1)` produce garbage but `#e0.1` gives `1/10`
21:34
narimiran has quit [Ping timeout: 256 seconds]
21:37
<
jshap >
ah, looks like `(read-decimal-as-inexact #f)` is what I wanted
21:38
efm has joined #racket
21:43
efm has quit [Ping timeout: 260 seconds]
21:45
orivej has quit [Ping timeout: 265 seconds]
21:57
sagax has quit [Read error: Connection reset by peer]
22:01
orivej has joined #racket
22:20
orivej has quit [Ping timeout: 260 seconds]
22:21
nullcone has joined #racket
22:42
efm has joined #racket
22:47
efm has quit [Quit: Konversation terminated!]
22:48
efm has joined #racket
23:48
vraid has quit [Read error: Connection reset by peer]