
@notjack If you need help moving your work to racket
github org, please let me know. I have been using your docker images and have a good understanding of what they do. Perhaps I can help.

@spdegabrielle I have edited the github page you have set up. Thanks.

Thank you @kyp0717

When inheriting from string-snip%, the following only ever prints mouse motion events. Is this expected? (define/override (on-event dc x y editorx editory event)
(eprintf "mouse event ~a~n" (send event get-event-type)))
I expected to see ’enter and ’leave events as well as button presses, but I don’t. For now I’ve worked around it but I was curious why this is the case.

Check the flags with get-flags
.

I’m doing the following: (set-flags (cons 'handles-all-mouse-events (get-flags)))
(set-flags (cons 'handles-between-events (get-flags)))

Doing this gets me the motion events, but none of the others.

Next step is to check the container. Is the container handing the event instead of sending them down the line?

I was thinking that I might be inheriting some behavior from string-snip%. I just checked and those are the only two flags set.

Is the snip inside an editor?

Yes, it is inside a custom subclass of text%, which doesn’t override on-event.

Which in turn is inside a subclass of editor-canvas%.

Checker whether the text% instance receives the event as expected.

Ok, thanks! This gives me something to work with.

Also, what’s the default thing to do for a text% when the keymap% has no binding for a key?

I haven’t touched keymap%’s before, so I’m using the default for text%. That gives me something else to look into.

I’m writing a redex library and I’m wondering: it’s clear how to do zip/map using ...
form, but is there a “fancy way” to do filtering? I want to do something like (ty ... where (meets-some-predicate ty)))
?

Here is an example of code I would like to express without having to resort to ,(filter...)
: https://github.com/dada-lang/dada-model/blob/0179785c1597e249fc383d9aa26324072f755695/racket/type-system.rkt#L276-L284

I think I just need to sit down and click a button and maybe update a sentence or two of documentation, so it’s less about needing help and more about needing reminders :sweat_smile:

A langjam just showed up on hn
https://github.com/langjam/langjam\|https://github.com/langjam/langjam

FYI > Languages you can use > > You can code in any programming language you’d like to create your project, so long as the language is part of the Debian/Ubuntu or Arch package repo (or one of the language-specific repos, like Rust’s cargo). Please limit build steps of the project to three or less steps.

I don’t think there is a fancy way to do this. If you don’t want to unquote you can use a recursive metafunction to implement filter. But really the only advantage I know of doing that is if you want random generation.