00:28
pera has quit [Ping timeout: 250 seconds]
00:32
iyzsong has joined #racket
00:35
orivej has quit [Ping timeout: 245 seconds]
00:45
Fare has quit [Ping timeout: 255 seconds]
00:56
pera has joined #racket
01:08
Fare has joined #racket
01:23
Fare has quit [Ping timeout: 246 seconds]
01:25
ym555 has quit [Ping timeout: 245 seconds]
01:25
libertyprime has quit [Ping timeout: 255 seconds]
01:37
Fare has joined #racket
01:43
Welkin has joined #racket
01:44
<
Welkin >
how can I print a custom formatted datetime?
01:44
<
Welkin >
date->string seems to use the globally defined date-display-format, which only has a few preset options
02:05
<
casaca >
Welkin: you could use `seconds->date`, then use `format` with `date-{day-month-year-hour,minute,second}`
02:26
<
Welkin >
thanks, I could try that
02:27
Welkin has quit [Quit: leaving]
02:30
pera has quit [Ping timeout: 245 seconds]
02:31
<
rudybot >
greghendershott: I asked `MemoServ' to forward the message to Welkin.
02:31
endformationage has joined #racket
02:43
pera has joined #racket
02:48
sauvin has quit [Ping timeout: 255 seconds]
02:54
sauvin has joined #racket
03:20
ubLIX has quit [Quit: ubLIX]
03:20
pera has quit [Quit: leaving]
04:12
dddddd has quit [Remote host closed the connection]
04:26
sauvin has quit [Quit: Leaving]
04:29
jao has quit [Ping timeout: 246 seconds]
04:31
sauvin has joined #racket
04:31
sauvin has quit [Max SendQ exceeded]
04:31
sauvin has joined #racket
04:32
sauvin has quit [Client Quit]
04:41
sauvin has joined #racket
05:31
sauvin has quit [Remote host closed the connection]
05:35
rudybot has quit [Remote host closed the connection]
05:36
rudybot has joined #racket
05:36
sauvin has joined #racket
05:50
endformationage has quit [Quit: WeeChat 2.4]
05:52
FreeFull has quit []
05:59
_whitelogger has joined #racket
06:07
Fare has quit [Ping timeout: 246 seconds]
07:02
sauvin has quit [Quit: Leaving]
07:23
_whitelogger has joined #racket
07:26
YuGiOhJCJ has joined #racket
07:37
<
rlp10 >
I want a language like scribble/text, but that has a different main submodule so it can accept command line arguments. Where should I start?
07:51
sauvin has joined #racket
08:05
orivej has joined #racket
08:08
mSSM has quit [Ping timeout: 246 seconds]
08:10
lavaflow has quit [Read error: Connection reset by peer]
08:26
lavaflow has joined #racket
08:41
_whitelogger has joined #racket
09:00
dddddd has joined #racket
09:02
fmu has joined #racket
09:05
fmu_ has quit [Ping timeout: 268 seconds]
09:14
_whitelogger has joined #racket
09:20
buyfn has joined #racket
09:36
buyfn_ has joined #racket
09:39
buyfn has quit [Ping timeout: 255 seconds]
09:46
selimcan has joined #racket
09:47
selimcan has quit [Remote host closed the connection]
09:49
buyfn has joined #racket
09:50
buyfn_ has quit [Ping timeout: 245 seconds]
09:59
fmu_ has joined #racket
10:03
fmu has quit [Ping timeout: 268 seconds]
10:09
ym555 has joined #racket
10:13
Fernando-Basso has joined #racket
10:47
widp_ has quit [Ping timeout: 245 seconds]
11:09
widp_ has joined #racket
11:11
ubLIX has joined #racket
11:35
buyfn has quit [Quit: buyfn]
11:53
q9929t has joined #racket
12:01
ym555 has quit [Ping timeout: 250 seconds]
12:06
q9929t has quit [Quit: q9929t]
12:10
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
12:12
widp_ has quit [Ping timeout: 245 seconds]
12:13
Fare has joined #racket
12:19
ng0 has joined #racket
12:40
orivej has quit [Ping timeout: 245 seconds]
12:49
ng0 has quit [Quit: Alexa, when is the end of world?]
12:50
ng0 has joined #racket
12:59
buyfn has joined #racket
13:13
FreeFull has joined #racket
13:14
buyfn has quit [Ping timeout: 250 seconds]
13:18
jao has joined #racket
13:21
mSSM has joined #racket
13:21
davidl has quit [Quit: WeeChat 2.1]
13:37
YuGiOhJCJ has joined #racket
13:48
endformationage has joined #racket
13:51
ubLIX has quit [Quit: ubLIX]
13:57
caltelt_ has quit [Ping timeout: 246 seconds]
13:59
orivej has joined #racket
14:21
Fare has quit [Ping timeout: 250 seconds]
14:29
iyzsong has quit [Ping timeout: 258 seconds]
15:18
efm has quit [Ping timeout: 255 seconds]
15:23
_whitelogger has joined #racket
15:27
efm has joined #racket
15:50
jao has quit [Ping timeout: 246 seconds]
16:14
<
rjungemann >
Stuck on a super-dumb question. Why would `(eq? (first (string-split "quit" " ")) "quit")` return `#f`?
16:15
<
rjungemann >
`(first (string-split "quit" " "))` returns `"quit"`
16:15
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
16:16
<
rjungemann >
Urgh I'm dumb. `eq?` is reference equality. I need `equal?`
16:26
<
rjungemann >
Oh, even better. Thanks!
16:26
efm has quit [Remote host closed the connection]
16:29
mSSM has quit [Ping timeout: 246 seconds]
16:30
efm has joined #racket
16:34
<
greghendershott >
For day-to-day things, `equal?` will almost always give the answer you want/expect.
16:35
<
greghendershott >
Things like `eq?` `eqv?` `string=?` &c might be slightly faster.
16:36
<
greghendershott >
But until/unless you need/want to care about that, I think it's good advice always to start with `equal?`
16:37
<
rjungemann >
Yeah you're totally right. I knew about the difference but got them mixed up
16:37
<
bremner >
I guess there's an argument for the specialized versions like string=? and symbol=? that you might catch some bugs
16:38
<
greghendershott >
bremner: That's a good point, especially in a context where a contract wouldn't first catch the problem.
16:39
<
greghendershott >
I just feel like using anything but `equal?` in first-draft code is a kind of premature optimization. Just my personal guideline.
16:40
<
bremner >
agreed. and that's what I do when teaching too
16:42
Fernando-Basso has quit [Remote host closed the connection]
16:47
Arcaelyx has joined #racket
17:27
<
jcowan >
In particular, eq? is a performance optimization: never use it unless you can prove you need it, as it violates object identity.
17:49
fmu has joined #racket
17:52
fmu_ has quit [Ping timeout: 245 seconds]
17:53
Fare has joined #racket
17:55
<
bremner >
I wonder if racket has some guarantees for eq? beyond the scheme standard. It seems to be fairly popular with expert racket programmers.
17:56
<
technomancy >
in elisp I use it for symbol equality only
17:56
vraid has joined #racket
17:57
fmu_ has joined #racket
17:58
<
bremner >
jcowan: the racket docs say "Return #t if v1 and v2 refer to the same object, #f otherwise."
17:59
<
bremner >
do you mean something else by "object identity"?
18:00
fmu has quit [Ping timeout: 246 seconds]
18:00
<
jcowan >
I mean Leibnizian identity, the identity of indiscernibles. Thus 3 and 3 are object-identical and eqv? but not necessarily eq?.
18:01
<
jcowan >
(Technically you can say that 3_1 and 3_2
*are* discernible because eq? can discern them, I suppose.)
18:01
<
jcowan >
(But this is completely unpredictable: you don't know for two eqv? numbers whether they will be eq? or not.)
18:02
<
bremner >
huh. I never considered that two = numbers might not be eq?
18:02
<
bremner >
but I see your point
18:04
fmu has joined #racket
18:07
fmu_ has quit [Ping timeout: 246 seconds]
18:09
fmu has quit [Ping timeout: 245 seconds]
18:09
<
bremner >
"In particular, two applications of + to the same two exact integers may or may not produce results that are eq?" Racket reference 1.1.6
18:14
fmu has joined #racket
18:19
fmu has quit [Ping timeout: 245 seconds]
18:19
fmu has joined #racket
18:19
selimcan has joined #racket
18:29
fmu_ has joined #racket
18:30
<
technomancy >
"identity of discernables" is `egal?'
18:32
<
technomancy >
the canonical URL is 404ing =(
18:32
fmu has quit [Ping timeout: 255 seconds]
18:33
<
technomancy >
it's what clojure defines `=' as, with a couple caveats
18:33
<
rain1 >
is egal? reflexcive?
18:34
<
technomancy >
it's also how Lua's equality works, tho I'm not 100% sure that was the intent
18:34
<
technomancy >
(mutable things can never be egal? to each other)
18:34
fmu has joined #racket
18:34
<
technomancy >
man it bums me out that the baker paper got taken down =(
18:37
fmu_ has quit [Ping timeout: 246 seconds]
18:39
fmu_ has joined #racket
18:42
fmu has quit [Ping timeout: 250 seconds]
18:49
<
rain1 >
you got a copy?
18:57
jao has joined #racket
19:06
efm has quit [Read error: Connection reset by peer]
19:10
efm has joined #racket
19:27
efm has quit [Remote host closed the connection]
19:28
efm has joined #racket
19:30
mSSM has joined #racket
19:41
<
jcowan >
fortunately none of them have changed in years
19:42
<
jcowan >
bremner: Historically the difference arose because on MacLisp two numbers were
*never* eq?.
19:43
<
jcowan >
i.e. they were boxed. The advantage of eq? is that its performance is fixed, whereas eql? applied to exact non-fixnums runs in O(d) time where d is the number of digits (both numerator and denominator).
19:45
efm has quit [Quit: Konversation terminated!]
19:52
ubLIX has joined #racket
20:19
Fare has quit [Ping timeout: 255 seconds]
20:27
Fare has joined #racket
20:33
mSSM has quit [Ping timeout: 246 seconds]
20:35
Fare has quit [Ping timeout: 255 seconds]
20:39
Fare has joined #racket
20:45
YuGiOhJCJ has joined #racket
20:58
davidl has joined #racket
20:59
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
21:00
ZombieChicken has quit [Remote host closed the connection]
21:00
ZombieChicken has joined #racket
21:01
<
technomancy >
greghendershott: yep! I'm nothing if not consistent.
21:01
<
greghendershott >
I bet you contribute egal to all the langs.
21:01
<
technomancy >
greghendershott: hah; it has a link to the page which is now a 404
21:01
<
technomancy >
s/page/paper/
21:01
orivej has quit [Ping timeout: 245 seconds]
21:02
<
technomancy >
I was doing some racket last week and just thinking "this would be much nicer with pervasive destructuring" and was about to switch it over to rackjure
21:03
BSLANG` has joined #racket
21:03
<
greghendershott >
Disappearing pages are sad.
21:03
<
greghendershott >
s/url/ETag
21:04
<
greghendershott >
egality is simple with content-addressable storage
21:04
BSLANG has quit [Ping timeout: 244 seconds]
21:04
<
greghendershott >
the only hard part is remembering the name :)
21:18
ng0 has quit [Quit: Alexa, when is the end of world?]
21:29
_whitelogger has joined #racket
21:42
selimcan has quit [Remote host closed the connection]
22:00
ZombieChicken has quit [Quit: Have a nice day]
22:01
ZombieChicken has joined #racket
22:07
vraid has quit [Ping timeout: 252 seconds]
22:10
vraid has joined #racket
22:40
wingsorc_ has joined #racket
23:10
Lowl3v3l has quit [Ping timeout: 255 seconds]
23:14
efm has joined #racket
23:16
<
bremner >
lisp NIH is best NIH ;)
23:26
Lowl3v3l has joined #racket
23:29
badkins has quit []
23:42
wingsorc_ has quit [Quit: Leaving]
23:49
vraid has quit [Ping timeout: 258 seconds]