Also found this old comp in the Ng thread https://quirkylanguages.com/\|https://quirkylanguages.com/
Declarative GUI in Racket https://youtu.be/AXJ9tTVGDwU\|https://youtu.be/AXJ9tTVGDwU
That’s really awesome. The state management really reminds me of reagent
and re-frame
from the ClojureScript world. It makes for the easiest UI interactions I have ever used.
Thanks to @popa.bogdanp :grinning:
Is there a variant of filter that returns (matched, did-not-match) lists?
Yes, partition
thanks!
Ok, is there a way to get the “multiple return values” into a form that can be matched with redex? e.g., a list? :slightly_smiling_face:
The primitive is call-with-values
which can be used to convert values to a list. Some libraries also have a dedicated values->list, but nothing builtin as far as I know.
wrote a helper fn, thanks
Oh I just noticed we don’t have official arm64 images.
If I get time tomorrow I’ll see about what it would take to also build arm
Oh damn that would be great
Is there a way to add fixnums that wraps around? I need it for computing hash codes so it doesn’t really matter what the precise behavior is, but I do need it to be deterministic and cheap to compute
(and I need to guarantee that the result of adding the two fixnums is another fixnum)
@massung yes! that’s perfect
fixed link for the future
now for my question… setting up this new macbook pro (m1) from work and haven’t used a mac for quite a while. I got racket installed quickly (obviously, right!?), but wondering the following:
• I assume I just need to edit .bashrc or something similar to add racket & raco to my PATH? Or is there another way for me to use these that’s a bit less “hacky”? • Where is it that raco will install stuff to?
For the first problem, DrRacket can do that automatically for you
It’s under the Help > Configure Command Line for Racket… menu item
(why that’s in the Help menu I’ll never understand)
nice. ty
last time i used os x, iterm2 was “the” alternative terminal to use. is there a new, preferred one now-a-days? (maybe this is better suited for #random tho)
I still use iterm2
I just use the regular terminal it comes with by default
I occasionally use http://Terminal.app\|Terminal.app still, but I like Alacritty personally. I’m a heavy tmux user so I don’t need some of the iterm stuff
Well I got to the part where I have docker set up and I’ve worked out some of what the magic incantations are. But now I realize there isn’t an official ARM build of Racket so I’m slightly stuck.
I’ve been using kitty. The downside is that it doesn’t use a “standard” xterm type TERM so you have to install it’s termcap on any remote host you ssh to. Before that I used iterm2 and Alacritty. Both are good.
I might go back to Alacritty because iirc it runs on Mac/Windows/Linux
@aroot222 has joined the channel
http://Terminal.app\|Terminal.app received some major improvements a couple OS versions ago, making it as good as iTerm for me so I’ve been using it exclusively since.
Interesting
I mostly use iterm for window splitting
Yup, command+d creates a new split
Though I haven’t used that functionality much because I use tmux and create my splits in there