jerome.martin.dev
2018-3-30 10:05:06

@samth @robby @lexi.lambda I think there’s an issue with the srfi/19 implementation. The locale bundles are only loaded once when the module is required. Therefore if one changes the locale during run, the dates keep being translated in the locale that was set on load.



konanki.sivaram
2018-3-30 10:32:30

@konanki.sivaram has joined the channel


robby
2018-3-30 10:51:09

@ben redex-match leaves the duplicates in so you can debug to find the exponential slowdowns that they cause


robby
2018-3-30 10:51:36

Other tools remove the duplicates (like meta functions)


githree
2018-3-30 10:51:57

How often are snapshots being built?


githree
2018-3-30 10:52:09

is it nightly or more often?


samth
2018-3-30 12:26:39

@githree nightly


samth
2018-3-30 12:27:07

@jerome.martin.dev is that part of the srfi 19 specification?


githree
2018-3-30 13:22:36

thanks @samth, do you think there is a chance this commit (from 11h ago) was included in the last snapshot build: https://github.com/racket/racket/commit/d3aa7e90e7c27cfbf6adad8db2e2c3ba6abac6a7


samth
2018-3-30 15:07:59

Hard to be sure


jerome.martin.dev
2018-3-30 15:27:20

@samth Well SRFI/29 describes how locales are handled, while SRFI/19 describes how to handle dates. But in SRFI/19 it is specified in every date formatting procedure that the appropriate format should be selected from the current locale


jerome.martin.dev
2018-3-30 15:27:56

They don’t specify how to handle locales, but they specify that locales should be used when printing dates.


jerome.martin.dev
2018-3-30 15:29:40

Which is buggy in our racket implementation right now, because it only uses the first locale at load time, then never bother to check again if the locale changes.


jerome.martin.dev
2018-3-30 15:33:03

which gives strange results like that: (require srfi/19 srfi/29) (parameterize ([current-language 'es]) (date->string (make-date 0 0 0 0 30 3 2018 0) "~A, ~B ~e, ~Y")) "Friday, March 30, 2018"


jerome.martin.dev
2018-3-30 15:34:19

while at the same time: (current-locale "es") (require srfi/19 srfi/29) (date->string (make-date 0 0 0 0 30 3 2018 0) "~A, ~B ~e, ~Y") "viernes, Marzo 30, 2018"


jerome.martin.dev
2018-3-30 15:35:07

I can do a pull request if you want. I justed wanted to make sure it was a bug.


shu--hung
2018-3-30 15:40:24

I just did a git pull and rebuild, but encountered an error: make[11]: *** No rule to make target `.../racket7/racket/collects/syntax/parse/experimental/dset.rkt', needed by `../GRacket3m.app/Contents/Info.plist'. Stop.


shu--hung
2018-3-30 15:40:39

do I need to update anything?


shu--hung
2018-3-30 15:51:23

update: I used a clean checkout and it worked


jerome.martin.dev
2018-3-30 16:56:24

@samth @robby @lexi.lambda I wrote an issue to discuss the implementation of SRFI/19 before I start working on a fix. Can you tell me what you think? https://github.com/racket/srfi/issues/6


robby
2018-3-30 16:58:20

I don’t have any strong opinions here (or expertise).


robby
2018-3-30 16:58:34

What you wrote in the PR makes sense to me tho


lexi.lambda
2018-3-30 17:04:59

I know nothing about srfi/19, really… I’ve used gregor instead ever since it was released.


leif
2018-3-30 18:35:01

Has anyone else using codeblock-pict noticed that the lines can have varying heights when using unicode characters?


leif
2018-3-30 18:35:12

(Including lambda. I’m also using the acmart monospace font.)


leif
2018-3-30 22:16:24

Okay, I have an idea. Does anyone know if its possible to merge two fonts together in Racket?


leif
2018-3-30 22:16:42

Like, have it use font A, but for any missing glyphs in font A use font B.


jerome.martin.dev
2018-3-30 22:22:33

Ok thanks, I’ll do that change then :slightly_smiling_face:


jerome.martin.dev
2018-3-30 22:34:50

Yeah sorry. I contacted the three of you ’cause you were on the contributer list on github but I guess there’s better to do than remember every srfi by heart x)