soegaard2
2018-10-13 18:44:10

A cross product?


soegaard2
2018-10-13 18:54:52

That’s what I meant.


soegaard2
2018-10-13 18:57:31

I find one. A reasonable easy way to make one, is to modify one of (say Chris’s) solution from StackOverflow to use sequences rather than lists. https://stackoverflow.com/questions/27770566/racket-map-cartesian-product-thing


soegaard2
2018-10-13 18:57:50

“I find one” -> “I can’t find one”


soegaard2
2018-10-13 19:17:48

Nice, compact solution.


lexi.lambda
2018-10-13 19:19:32

Racket has a cartesian-product function, but maybe there should be a streaming variant, too. http://docs.racket-lang.org/reference/pairs.html#%28def._%28%28lib._racket%2Flist..rkt%29._cartesian-product%29%29


soegaard2
2018-10-13 19:25:12

same name?


lexi.lambda
2018-10-13 19:50:01

Oh, I forgot about that. I don’t know that I actually recommend that library…


blerner
2018-10-13 22:11:51

Ok, related question: suppose I have a file provider.rkt that provides foo and bar, and a file requirer.rkt that requires it. How could I implement “Jump to definition (in other file)”? Assuming that I could read both files, how can I convince Racket to give me the transitive binding site, rather than just the location of the require?


blerner
2018-10-13 22:14:27

I’m guessing it’s syncheck:add-jump-to-definition, or syncheck:add-definition-target, but I don’t quite understand those yet


wonxx023
2018-10-14 02:42:29

@wonxx023 has joined the channel


blerner
2018-10-14 02:54:09

…I might’ve gotten it working, or at least plausibly so.


leif
2018-10-14 03:53:38

@mflatt Do you think it might be reasonable to use (pango_cairo_font_map_new_for_font_type CAIRO_FONT_TYPE_FT) in the dcs get-fontmap function, rather than (pango_cairo_font_map_new), which is what we currently use?


leif
2018-10-14 03:54:30

Because if we use the pangoft bindings, it looks like we can use fontconfig to allow pango to draw custom fonts.


leif
2018-10-14 03:54:43

(Instead of requiring them to be install system wide like we do now.)