lexi-lambda changed the topic of #racket to: Racket v7.2 has been released: https://blog.racket-lang.org/2019/01/racket-v7-2.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
pera has quit [Ping timeout: 250 seconds]
iyzsong has joined #racket
orivej has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 255 seconds]
pera has joined #racket
Fare has joined #racket
Fare has quit [Ping timeout: 246 seconds]
ym555 has quit [Ping timeout: 245 seconds]
libertyprime has quit [Ping timeout: 255 seconds]
Fare has joined #racket
Welkin has joined #racket
<Welkin> how can I print a custom formatted datetime?
<Welkin> date->string seems to use the globally defined date-display-format, which only has a few preset options
<casaca> Welkin: you could use `seconds->date`, then use `format` with `date-{day-month-year-hour,minute,second}`
<Welkin> thanks, I could try that
Welkin has quit [Quit: leaving]
pera has quit [Ping timeout: 245 seconds]
<greghendershott> Welkin: that doc page https://docs.racket-lang.org/reference/time.html#(mod-path._racket%2Fdate) has a note to look also at Gregor, which seems to have these: https://docs.racket-lang.org/gregor/time-format.html
<greghendershott> rudybot: later tell Welkin maybe see https://docs.racket-lang.org/gregor/time-format.html
<rudybot> greghendershott: I asked `MemoServ' to forward the message to Welkin.
endformationage has joined #racket
pera has joined #racket
sauvin has quit [Ping timeout: 255 seconds]
sauvin has joined #racket
ubLIX has quit [Quit: ubLIX]
pera has quit [Quit: leaving]
dddddd has quit [Remote host closed the connection]
sauvin has quit [Quit: Leaving]
jao has quit [Ping timeout: 246 seconds]
sauvin has joined #racket
sauvin has quit [Max SendQ exceeded]
sauvin has joined #racket
sauvin has quit [Client Quit]
sauvin has joined #racket
sauvin has quit [Remote host closed the connection]
rudybot has quit [Remote host closed the connection]
rudybot has joined #racket
sauvin has joined #racket
endformationage has quit [Quit: WeeChat 2.4]
FreeFull has quit []
_whitelogger has joined #racket
Fare has quit [Ping timeout: 246 seconds]
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
sauvin has quit [Quit: Leaving]
_whitelogger has joined #racket
YuGiOhJCJ has joined #racket
<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?
sauvin has joined #racket
orivej has joined #racket
mSSM has quit [Ping timeout: 246 seconds]
lavaflow has quit [Read error: Connection reset by peer]
lavaflow has joined #racket
_whitelogger has joined #racket
dddddd has joined #racket
fmu has joined #racket
fmu_ has quit [Ping timeout: 268 seconds]
_whitelogger has joined #racket
buyfn has joined #racket
buyfn_ has joined #racket
buyfn has quit [Ping timeout: 255 seconds]
selimcan has joined #racket
selimcan has quit [Remote host closed the connection]
buyfn has joined #racket
buyfn_ has quit [Ping timeout: 245 seconds]
fmu_ has joined #racket
fmu has quit [Ping timeout: 268 seconds]
ym555 has joined #racket
Fernando-Basso has joined #racket
widp_ has quit [Ping timeout: 245 seconds]
widp_ has joined #racket
ubLIX has joined #racket
buyfn has quit [Quit: buyfn]
q9929t has joined #racket
ym555 has quit [Ping timeout: 250 seconds]
q9929t has quit [Quit: q9929t]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
widp_ has quit [Ping timeout: 245 seconds]
Fare has joined #racket
ng0 has joined #racket
orivej has quit [Ping timeout: 245 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #racket
buyfn has joined #racket
FreeFull has joined #racket
buyfn has quit [Ping timeout: 250 seconds]
jao has joined #racket
mSSM has joined #racket
davidl has quit [Quit: WeeChat 2.1]
YuGiOhJCJ has joined #racket
endformationage has joined #racket
ubLIX has quit [Quit: ubLIX]
caltelt_ has quit [Ping timeout: 246 seconds]
orivej has joined #racket
Fare has quit [Ping timeout: 250 seconds]
iyzsong has quit [Ping timeout: 258 seconds]
efm has quit [Ping timeout: 255 seconds]
_whitelogger has joined #racket
efm has joined #racket
jao has quit [Ping timeout: 246 seconds]
<rjungemann> Stuck on a super-dumb question. Why would `(eq? (first (string-split "quit" " ")) "quit")` return `#f`?
<rjungemann> `(first (string-split "quit" " "))` returns `"quit"`
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<rjungemann> Urgh I'm dumb. `eq?` is reference equality. I need `equal?`
<amz3> or string=?
<rjungemann> Oh, even better. Thanks!
efm has quit [Remote host closed the connection]
mSSM has quit [Ping timeout: 246 seconds]
efm has joined #racket
<greghendershott> For day-to-day things, `equal?` will almost always give the answer you want/expect.
<greghendershott> Things like `eq?` `eqv?` `string=?` &c might be slightly faster.
<greghendershott> But until/unless you need/want to care about that, I think it's good advice always to start with `equal?`
<rjungemann> Yeah you're totally right. I knew about the difference but got them mixed up
<bremner> I guess there's an argument for the specialized versions like string=? and symbol=? that you might catch some bugs
<greghendershott> bremner: That's a good point, especially in a context where a contract wouldn't first catch the problem.
<greghendershott> I just feel like using anything but `equal?` in first-draft code is a kind of premature optimization. Just my personal guideline.
<bremner> agreed. and that's what I do when teaching too
Fernando-Basso has quit [Remote host closed the connection]
Arcaelyx has joined #racket
<jcowan> In particular, eq? is a performance optimization: never use it unless you can prove you need it, as it violates object identity.
fmu has joined #racket
fmu_ has quit [Ping timeout: 245 seconds]
Fare has joined #racket
<bremner> I wonder if racket has some guarantees for eq? beyond the scheme standard. It seems to be fairly popular with expert racket programmers.
<technomancy> in elisp I use it for symbol equality only
vraid has joined #racket
fmu_ has joined #racket
<bremner> jcowan: the racket docs say "Return #t if v1 and v2 refer to the same object, #f otherwise."
<bremner> do you mean something else by "object identity"?
fmu has quit [Ping timeout: 246 seconds]
<jcowan> I mean Leibnizian identity, the identity of indiscernibles. Thus 3 and 3 are object-identical and eqv? but not necessarily eq?.
<jcowan> (Technically you can say that 3_1 and 3_2 *are* discernible because eq? can discern them, I suppose.)
<jcowan> (But this is completely unpredictable: you don't know for two eqv? numbers whether they will be eq? or not.)
<bremner> huh. I never considered that two = numbers might not be eq?
<bremner> but I see your point
fmu has joined #racket
fmu_ has quit [Ping timeout: 246 seconds]
fmu has quit [Ping timeout: 245 seconds]
<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
fmu has joined #racket
fmu has quit [Ping timeout: 245 seconds]
fmu has joined #racket
selimcan has joined #racket
fmu_ has joined #racket
<technomancy> "identity of discernables" is `egal?'
<technomancy> the canonical URL is 404ing =(
fmu has quit [Ping timeout: 255 seconds]
<technomancy> it's what clojure defines `=' as, with a couple caveats
<rain1> is egal? reflexcive?
<technomancy> yeah
<technomancy> it's also how Lua's equality works, tho I'm not 100% sure that was the intent
<technomancy> (mutable things can never be egal? to each other)
fmu has joined #racket
<technomancy> man it bums me out that the baker paper got taken down =(
fmu_ has quit [Ping timeout: 246 seconds]
fmu_ has joined #racket
fmu has quit [Ping timeout: 250 seconds]
<rain1> you got a copy?
jao has joined #racket
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
efm has quit [Remote host closed the connection]
efm has joined #racket
mSSM has joined #racket
<jcowan> fortunately none of them have changed in years
<jcowan> bremner: Historically the difference arose because on MacLisp two numbers were *never* eq?.
<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).
efm has quit [Quit: Konversation terminated!]
ubLIX has joined #racket
Fare has quit [Ping timeout: 255 seconds]
Fare has joined #racket
mSSM has quit [Ping timeout: 246 seconds]
Fare has quit [Ping timeout: 255 seconds]
Fare has joined #racket
YuGiOhJCJ has joined #racket
davidl has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<greghendershott> technomancy: Do you remember contributing this? :) https://github.com/greghendershott/rackjure/blob/master/rackjure/egal.rkt
ZombieChicken has quit [Remote host closed the connection]
ZombieChicken has joined #racket
<technomancy> greghendershott: yep! I'm nothing if not consistent.
<greghendershott> I bet you contribute egal to all the langs.
<technomancy> greghendershott: hah; it has a link to the page which is now a 404
<technomancy> s/page/paper/
orivej has quit [Ping timeout: 245 seconds]
<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
BSLANG` has joined #racket
<greghendershott> Disappearing pages are sad.
<greghendershott> s/url/ETag
<greghendershott> egality is simple with content-addressable storage
BSLANG has quit [Ping timeout: 244 seconds]
<greghendershott> the only hard part is remembering the name :)
<selimcan> This most likely has been mentioned here, but still: https://thelocalyarn.com/excursus/secretary/posts/web-books.html
ng0 has quit [Quit: Alexa, when is the end of world?]
_whitelogger has joined #racket
selimcan has quit [Remote host closed the connection]
ZombieChicken has quit [Quit: Have a nice day]
ZombieChicken has joined #racket
vraid has quit [Ping timeout: 252 seconds]
vraid has joined #racket
wingsorc_ has joined #racket
Lowl3v3l has quit [Ping timeout: 255 seconds]
efm has joined #racket
<bremner> lisp NIH is best NIH ;)
Lowl3v3l has joined #racket
badkins has quit []
wingsorc_ has quit [Quit: Leaving]
vraid has quit [Ping timeout: 258 seconds]