pocmatos
2020-8-4 08:44:29

@samth What’s the story of generics in typed racket? I really would like to use more typed-racket but it feels generics for the way I generally write code and really important. Are there any issues that make it hard implementing types in the presence of generics or is just not enough hands on deck?


notjack
2020-8-4 08:48:59

I’ve also wondered that


notjack
2020-8-4 08:49:57

unrelated, I implemented traversals (a kind of optic similar to lenses which can functionally update a sequence) and they can be composed:


samth
2020-8-4 15:36:40

@pocmatos there’s currently no story in TR


sjaniska
2020-8-4 15:37:01

anyone familiar with Racket & Julia can shed some light on pros/cons between the two in regard to writing desktop gui app?


samth
2020-8-4 15:37:23

@capfredf has done a lot of work to make struct type properties work, that will all be there in 7.9


samth
2020-8-4 15:37:44

That’s an important foundation for generics


pocmatos
2020-8-4 15:52:10

@samth thanks - so is it something in the roadmap at some point?


samth
2020-8-4 16:06:49

It’s something I’d like to have, but I think it’s probably a lot of work, so I wouldn’t describe it as on the roadmap until I know more


pocmatos
2020-8-4 16:09:31

Fair enough - that’s understandable. Thanks. :slightly_smiling_face: If it’s worth anything there’s at least one person interested in that.


sorawee
2020-8-4 16:27:11

sorawee
2020-8-4 16:27:25

Do you know what’s going on?


laurent.orseau
2020-8-4 16:29:14

It says forbidden access to me


mflatt
2020-8-4 16:29:36

There seems to have been network instability last night that caused all sorts of trouble, and the snapshot site was only partially updated. I’ve reset the link to yesterday’s snapshot.


laurent.orseau
2020-8-4 16:29:39

Someone messing up with the .htaccess?


spdegabrielle
2020-8-4 16:52:22

Seems ok now


spdegabrielle
2020-8-4 18:17:37

@sjaniska I was going to suggest the 7gui benchmark but there doesn’t appear to be a Julia Benchmark



spdegabrielle
2020-8-4 18:18:39

spdegabrielle
2020-8-4 18:18:50

But it hasn’t been submitted



spdegabrielle
2020-8-4 18:28:39

Racket gui works cross platform and is part of the distribution


spdegabrielle
2020-8-4 18:29:29

Why is Julia attractive?


sjaniska
2020-8-4 18:58:46

Why Julia? It is more performant than Python which has nice PyQt GUI and one can use PyQt via PyCall in Julia. Language looks attractive and, maybe, more approachable than Racket for someone like myself not accustomed to Scheme, but if Racket can fill the needs - e.g. I do not see tree widget, I’m ready to take a challenge since having GUI as part of distribution is great ‘pro’ :wink:


samth
2020-8-4 19:00:26

Yes, it’s one of the biggest missing pieces right now.


yilin.wei10
2020-8-4 19:03:28

Hello; how does the search in the racket docs work? Is there a CLI I can hook into to do it within an IDE?


yilin.wei10
2020-8-4 19:03:54

Specifically talking about the search manuals


soegaard2
2020-8-4 19:04:22

raco docs foo will search for foo


soegaard2
2020-8-4 19:04:47

In DrRacket you can simply put the cursor on an interesting keyword and press F1.


soegaard2
2020-8-4 19:05:03

I have forgotten how in racket-mode (Emacs).



yilin.wei10
2020-8-4 19:06:46

Yes, but that opens in a browser; I was wondering whether there was an output which didn’t rely on the browser at all.


soegaard2
2020-8-4 19:07:50

I think raco docs opens the default browser. So it must be possible to set it to a “cli browser” (like lynx in the good old days).


spdegabrielle
2020-8-4 19:07:54

https://github.com/Metaxal/MrEd-Designer\|https://github.com/Metaxal/MrEd-Designer also has a nice tree widget - more like Windows explorer


sjaniska
2020-8-4 19:11:02

hmm, just wonder why is that MrEd-Designer’s widget not included in ‘default’ GUI…


sjaniska
2020-8-4 19:11:17

but, yes, it looks nice :smile:


sjaniska
2020-8-4 19:12:37

what is recommended way to write Racket using Emacs, racket-mode or lsp-mode?


soegaard2
2020-8-4 19:12:47

racket-mode


soegaard2
2020-8-4 19:13:01

skyler.griffith
2020-8-4 20:25:50

@skyler.griffith has joined the channel


spdegabrielle
2020-8-4 20:30:23

Maybe check the licence


notjack
2020-8-4 21:06:04

there’s a way to do it in racket-mode for emacs I think


notjack
2020-8-4 21:07:12

and it can be done programmatically using the setup/xref module


yilin.wei10
2020-8-4 21:20:00

Hmm - I’ll take a look around thanks.


yilin.wei10
2020-8-4 21:25:14

Oh, I mean search not doc-at-point


notjack
2020-8-5 00:21:08

hmm, I’m not sure then. I’ve never tried that programmatically


yilin.wei10
2020-8-5 00:54:13

I have a question in general about symbols in custom languages. Say I have a reader-syntax lang such as defined <https://github.com/racket/parser-tools/blob/master/parser-tools-lib/parser-tools/examples/calc.rkt|here. > The parser does the function application on +, which is already bound. What should you do for user defined symbols? Would you maintain a context as you were going through the file and have a stateful lexer which looks up the symbol and returns the bound value? I’m imagining that something like ($1 $2) won’t work if $1 is a symbol.


yilin.wei10
2020-8-5 01:12:17

Ah - I think I’ve found the relevant section.



sorawee
2020-8-5 01:26:21

TIL if you hover over an identifier link in Scribble documentation, it will show what collection to require to get the identifier. I have always… scrolled up to see it.


yilin.wei10
2020-8-5 02:11:41

Oops, sorry. Just noticed there was a beginners channel. I’ll move over to there.



greg
2020-8-5 03:50:49

Oh just saw you meant search not thing-at-point. I suppose you could use emacs’ browser, eww with that Racket search page? Otherwise idk.


laurent.orseau
2020-8-5 06:19:39

There’s also a “Provided by” quickscript (in quickscript-extra) which avoids switching to the browser