samth changed the topic of #racket to: Racket v7.7 has been released: https://blog.racket-lang.org/2020/05/racket-v7-7.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #racket
catonano_ has joined #racket
catonano_ is now known as catonano
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
nan` has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 265 seconds]
orivej_ has quit [Ping timeout: 272 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #racket
orivej has quit [Read error: Connection reset by peer]
orivej has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 265 seconds]
libertyprime has joined #racket
YuGiOhJCJ has joined #racket
dmiles has quit [Read error: Connection reset by peer]
dmiles has joined #racket
<lavaflow> I'm working with racket/gui and I'm wondering what the proper way to create a menu% with dynamic content is
<lavaflow> I can use the demand-callback to clear the menu then add items to it, to refresh the menu's content whenever the user invokes it, however this seems error prone
<lavaflow> on macos at least, when I click on a menu the demand callback seems to get called twice in rapid succession. this doesn't cause problems if the demand-callback completes quickly, but if it's a bit slow it will get invoked a second time before the first is finished
<lavaflow> if the demand callback is just naively looping on delete to clear the menu, then adding menu-items back in... well this isn't reentrant
<lavaflow> the end result is more often than not an empty menu
<samth> can you use `delete` to drop items from the menu, and then create new ones with the appropriate parent when you add items?
<lavaflow> I'll pastebin the code I have right now (about 20-some lines):
<lavaflow> basically in my demand callback I first do (for ([mi (send m get-items)]) (send mi delete))
<lavaflow> oh, that code contains my (currently working but kinda hacky) workaround of not invoking (on-server '(list-history)) from the demand callback. that's the call that's 'slow'
<samth> lavaflow: my suggestion is just to call delete for individual ones that need to be deleted
<samth> but I don't know enough about the GUI to say much more
<lavaflow> I don't see any way to prepend menu items to the top of a menu. when I create menu-items% with the parent set to the menu, they get added to the end.
<lavaflow> so I don't see any choice but to clear the menu each time if I want the most recent history items at the top of the history menu :/
pagnol has joined #racket
<pagnol> According to the docs (https://docs.racket-lang.org/reference/subprocess.html) the subprocess procedure works asynchronously but when I try it, it seems to be blocking?
<pagnol> What am I missing?
narimiran has joined #racket
epony has joined #racket
<pagnol> Ah got it...
lbeckman314 has quit [Ping timeout: 260 seconds]
sauvin has joined #racket
sauvin is now known as Sauvin
catonano has quit [Quit: catonano]
catonano has joined #racket
nan` has joined #racket
epony has quit [Quit: reconfig]
cheers has joined #racket
epony has joined #racket
epony has quit [Remote host closed the connection]
epony has joined #racket
nisstyre has joined #racket
libertyprime has quit [Ping timeout: 265 seconds]
nan` has quit [Ping timeout: 246 seconds]
libertyprime has joined #racket
libertyprime has quit [Remote host closed the connection]
tlcu has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
nan` has joined #racket
nan` has quit [Ping timeout: 260 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #racket
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #racket
tlcu has joined #racket
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #racket
pagnol has quit [Read error: No route to host]
jellie has joined #racket
jellie has quit [Quit: WeeChat 2.8]
tlcu has joined #racket
orivej has joined #racket
orivej_ has quit [Ping timeout: 256 seconds]
iyzsong has joined #racket
true-grue has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
dddddd has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
dmiles has quit [Ping timeout: 246 seconds]
TCZ has joined #racket
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Leaving]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
SGASAU has joined #racket
orivej_ has quit [Read error: Connection reset by peer]
orivej has joined #racket
SGASAU has quit [Ping timeout: 240 seconds]
phwalkr has joined #racket
SGASAU has joined #racket
TCZ has joined #racket
dmiles has joined #racket
TCZ has quit [Quit: Leaving]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
ermo has joined #racket
aeth has joined #racket
TCZ has joined #racket
narimiran has quit [Ping timeout: 256 seconds]
SGASAU has quit [Read error: Connection reset by peer]
SGASAU has joined #racket
TCZ has quit [Quit: Leaving]
efm has joined #racket
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 264 seconds]
orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
cantstanya has joined #racket
efm has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #racket
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #racket
cantstanya is now known as frank
frank is now known as cantstanya
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
narimiran has joined #racket
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #racket
nebunez has joined #racket
zmt00 has joined #racket
efm has joined #racket
<dzoe> samth: Just to be sure, I need to fork racket/gui and add the scribblings to gui-doc/scribblings/gui/dynamic.scrbl, right?
<samth> yes
<dzoe> I've just spent some time trying to figure out how the racket/share/pkgs part works and where it gets pulled from :)
<dzoe> Ok, will do
<samth> dzoe: you want to do the following steps:
<samth> $ cd .../racket/extra-pkgs
<samth> $ raco pkg update --clone gui
<samth> (answer yes to everything)
Sauvin has quit [Read error: Connection reset by peer]
<samth> $ cd gui/gui-doc/scribblings/gui/
<samth> and then do whatever git command you want to create a PR
<dzoe> What can I say ...
<dzoe> I want my rcs back again!
<dzoe> There is a git command that creates PR directly against upstream repo?
lbeckman314 has joined #racket
<dzoe> I thought I need to fork that on github ...
<samth> dzoe: no, you'd need to fork and add the appropriate remote, etc
<samth> dzoe: however, I highly recomend the `hub` tool
<samth> in which case it would be:
<samth> $ cd gui
<samth> $ edit stuff ...
<samth> $ git commit -a -m "some changes"
<samth> $ hub fork
<samth> $ git push dzoe master
<samth> $ hub pull-request
jellie has joined #racket
<dzoe> hub/focal 2.7.0~ds1-1 amd64
<dzoe> That should do the trick
<dzoe> Ok, I would be more than happy if I don't need to maintain forked repositories of everything.
<dzoe> samth: thanks!
<samth> dzoe: that creates a fork on your github account
<samth> just for `racket/gui` of course
<dzoe> Yup, but basically it gets started as the racket/racket git submodule, right?
<dzoe> And here is your reward: http://joe.cz/tmp/tut24-screenshot.png
<samth> dzoe: you start by cloning/building github.com/racket/racket, indeed (that was the ".../racket/" directory I assumed at the top)
<dzoe> Perspective correct texture mapping with goraud shading rendered real-time in pure Racket :)
<dzoe> Yep, racket/racket is my daily load of bread ...
<dzoe> *loaf
KindTwo has joined #racket
KindTwo is now known as KindOne
KindTwo has joined #racket
KindOne has quit [Ping timeout: 272 seconds]
KindTwo is now known as KindOne
KindTwo has joined #racket
KindOne has quit [Ping timeout: 264 seconds]
tlcu has joined #racket
KindTwo is now known as KindOne
phwalkr has quit []
orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #racket
SGASAU has quit [Ping timeout: 256 seconds]
SGASAU has joined #racket
jellie has quit [Quit: WeeChat 2.8]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tlcu has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
narimiran has quit [Ping timeout: 265 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
selimcan has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #racket
notzmv has joined #racket
nan` has joined #racket
nan` has quit [Ping timeout: 260 seconds]
TCZ has joined #racket
selimcan has quit [Ping timeout: 264 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sgeo has joined #racket
TCZ has quit [Quit: Leaving]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Ping timeout: 240 seconds]
SGASAU has joined #racket
true-grue has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
sagax has joined #racket
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #racket