soegaard2
2021-10-20 08:47:50

general is fine. I don’t know much about Windows gui, but take a look at:

https://github.com/racket/gui/blob/master/gui-lib/mred/private/wx/win32/wndclass.rkt#L222\|https://github.com/racket/gui/blob/master/gui-lib/mred/private/wx/win32/wndclass.rkt#L222

Also see “window.rkt” next to it.

Having the main loop in a single(?) threaded C program is slightly different to having the main loop in a garbage collected language like Racket. Poke around in the Windows part of mred to see how racket/gui set up the event loop.


soegaard2
2021-10-20 08:48:12

Also: great project idea!


soegaard2
2021-10-20 08:56:12

Wrt missing errors - that’s sadly to be expected when writing C bindings. There is no error checking at the C side, so if there are any mistakes in the types you attach in your bindings, then crashes occur. Best advice is to test every little piece as you go. That makes it easier to find problems early.


sorawee
2021-10-20 11:43:43

Oh, just regular structs.


sorawee
2021-10-20 11:46:40

In particular, I’m working on the code formatter for Racket (https://github.com/sorawee/fmt). The algorithm uses memoization keyed by documents, which is really huge, making equal?-based hash table unviable. So I need to use hasheq instead.


dont.post.me
2021-10-20 12:10:18

Woa, thanks for the links; that example looks like it’ll be extremely helpful!


joel
2021-10-20 14:55:06

I’m working on a package for Atom/RSS/podcast feeds and having difficulty with the package/collection name. I don’t want to use “rss” in the name because that would seem to exclude Atom. I don’t want to use “feed” because it’s ambiguous when referring to the library itself in the documentation. I then changed everything to “syndicate” (which would have been perfect since it can also refer to a self-organized group of racketeers) but I found out today that that’s taken!


soegaard2
2021-10-20 14:57:19

atom-rss subscriber podcast-feed


joel
2021-10-20 15:00:13

Hmm thanks. 1 and 3 don’t seem to capture the full scope, and 2 isn’t right because the library is mainly for publishing feeds, not fetching and parsing. (Yet?)


greg
2021-10-20 15:03:21

Since the future scope isn’t clear, maybe some other “creative” and less-descriptive name, like what you tried to do with Syndicate?


soegaard2
2021-10-20 15:03:28

syndication feed-publisher publicist


greg
2021-10-20 15:03:42

You can always put “atom” “rss” “feed” as keywords in the pkg catalog for discovery.


joel
2021-10-20 15:04:33

True. Looking at options along the creative route now too


greg
2021-10-20 15:04:58

I mean in the Clojure community people pick very “weird” names and maybe they take it too far :smile: but there’s something to be said for leaving things open-ended.


joel
2021-10-20 15:06:32

Looks like ticker is available


greg
2021-10-20 15:06:34

I don’t know, something like “bento” because it’s a box of food?


greg
2021-10-20 15:06:58

Ah yeah the subscriber / ticker thing makes sense too!


greg
2021-10-20 15:07:56

I have a weakness for epic bike-shedding threads to pick names, so I’ll just shut up now and leave. :smile:


greg
2021-10-20 15:09:58

OK one more idea in deference to @soegaard2, “Smorgasbord” or “Smorrebrod” now I’m done really.


soegaard2
2021-10-20 15:10:24

Smørrebrød !


soegaard2
2021-10-20 15:11:01

You are thinking outside the bento box.


greg
2021-10-20 15:11:06

I hope the pkg server can handle you weird zero characters. :stuck_out_tongue:


joel
2021-10-20 15:13:19

grainbin auger iowa


massung
2021-10-20 15:20:24

Now I want sushi for lunch :slightly_smiling_face:


massung
2021-10-20 15:20:39

Bento box… yumm


capfredf
2021-10-21 02:04:18

do we have something like syntax-srcloc, i.e. extract a srcloc instance from a syntax object?


sorawee
2021-10-21 02:04:50

It’s recently added. Will be in 8.3


capfredf
2021-10-21 02:05:34

awesome!


sorawee
2021-10-21 02:07:26

Meanwhile, you can use build-source-location (which is actually more general)


capfredf
2021-10-21 02:14:42

Thank you!