spdegabrielle
2020-7-1 10:39:35

Quickscript Competition:

https://www.cs.utah.edu/plt/snapshots/current/doc/quickscript/index.html\|Quickscript is the scripting functionality behind the DrRacket Scripts menu.

For the month of July we will be running a Quickscript competition: Write your own script and win prizes! There will be weekly winners in categories to be determined by the judges and overall awards at the end of the month.  We follow Racket’s and the ACM’s <https://racket-lang.org/friendly.html|Code of Conduct>.

There will be amazing prizes! • An exclusive badge for your GitHub profile recognising your efforts and contribution to the community. • Socks/Mugs/Hats/Stickers with the Racket logo - to be announced on Racket Users mailing list/google group. Scripts licensed appropriately will be included in a package for installation and universal fame.

End date: 31-July

Getting started: <https://www.cs.utah.edu/plt/snapshots/current/doc/quickscript/index.html#%28part..Make_your_own_script_.First_simple_example%29|Getting started for the impatient>  See quickscript-extra [https://github.com/Metaxal/quickscript-extra/blob/master/README.md\|readme] [https://github.com/Metaxal/quickscript-extra/tree/master/scripts\|scripts] for a bunch of useful and example scripts. Help and discussion will be available through the #quickscript-competition slack channel.

Once your script is ready, <https://github.com/Quickscript-Competiton/July2020entries/issues/new/choose|submit your entry>!

Need some *<https://github.com/Quickscript-Competiton/July2020entries/blob/master/IDEAS.md|ideas to get started>*?

Ann: https://groups.google.com/g/racket-users/c/FLy7hoLO-Bg/m/-CftPSg9AAAJ


plragde
2020-7-1 13:11:25

Yes, Proust is what I call the Racket program (actually a series of programs as more features get built in).


badkins
2020-7-1 17:54:41

Wow, I wasn’t familiar with DrRacket scripts - this looks really cool! Thanks for brining it to my/our attention @spdegabrielle


badkins
2020-7-1 17:55:21

I wonder how close I can make DrRacket to my Emacs setup :slightly_smiling_face:


spdegabrielle
2020-7-1 17:56:52

All thanks should go to @laurent.orseau for making the coolest and certainly most versatile plugin for DrRacket


badkins
2020-7-1 17:58:51

Is there a place where useful scripts are shared? Or do/will people just publish them via a package?



laurent.orseau
2020-7-1 18:06:56

They can be published as packages. For a script directory to be recognized by Quickscript, it must be ‘registered.’ This can be done manually by the user through the Script Library (menu Scripts > Manage Scripts > Library, then Add directory), or automatically by the package if it includes a file like this one: https://github.com/Metaxal/quickscript-extra/blob/master/register.rkt (then registration is done automatically on setup)


laurent.orseau
2020-7-1 18:08:14

But otherwise copy/paste into a new script (Scripts > Manage scripts > New script…) also works :wink:


badkins
2020-7-1 18:14:11

I wonder what the most frictionless way to share scripts would be - maybe a gist that is a collection of links to github repos w/ scripts? Of course, I’ve been writing elisp functions for Emacs for years, and I’ve never looked for such a registry, so maybe it’s enough for us all to write our own :slightly_smiling_face:


laurent.orseau
2020-7-1 18:22:08

Sounds like you could write a script to automate this! :smile: Ask for a gist link and automatically create a new script from the contents?


laurent.orseau
2020-7-1 18:28:37

Note that even if you install a collection of scripts from a package you can easily deactivate those you don’t want, from the Library.



badkins
2020-7-1 18:39:35

Got an error with the <https://docs.racket-lang.org/quickscript/index.html|reverse example> - looks like selection is a list already?


badkins
2020-7-1 18:41:01

Hmm… that doesn’t seem to be it, and now my DrRacket is hung :disappointed: Had to force quit


popa.bogdanp
2020-7-1 18:49:32

What’s the right way to get changes to rktio/Makefile.in to propagate if I have built Racket with make cs-in-place? If I do a subsequent cs-in-place or cs-as-is after an edit the rktio makefiles in the build directory remain unchanged. Am I doing it wrong?


samth
2020-7-1 18:50:38

There’s some discussion of that here: https://github.com/racket/racket/pull/3268


popa.bogdanp
2020-7-1 18:52:03

Ah, thanks, I saw that but hadn’t realized it was the same issue


badkins
2020-7-1 19:01:42

Oh well, can’t get the script to load anymore - closed/opened DrRacket, recompiled scripts, reloaded menu, etc., but it’s no longer in the menu. I’m running 7.5. I’ll try again after I upgrade to a more recent version.


laurent.orseau
2020-7-1 19:01:56

Oh, you probably named your script reverse which shadows Racket’s reverse


laurent.orseau
2020-7-1 19:02:44

No longer in the menu? That’s weird :thinking_face:


laurent.orseau
2020-7-1 19:03:14

It is indeed the docs fault! Apologies…


badkins
2020-7-1 19:04:05

Yes, I did name it reverse :slightly_smiling_face:


laurent.orseau
2020-7-1 19:04:27

name it reverse-selection for example


badkins
2020-7-1 19:04:28

I opened the library and it was disabled, so I enabled it and it reappeared in the menu.


laurent.orseau
2020-7-1 19:04:58

Thanks for pointing this out!


laurent.orseau
2020-7-1 19:05:02

Will fix asap


laurent.orseau
2020-7-1 19:46:20

All fixed (the docs will be built tomorrow I suppose). Thanks for the help!


mflatt
2020-7-1 21:07:43

I don’t know that it’ s the same thing. There’s a dependency on rktio/Makefile.in to e-run configure in the reconfigure target of racket/src/cs/c/Makefile.in. But the top-level Makefile doesn’t appear to use that reconfigure target in the same way that it does for racket/src/Makefile.in (on line 208 of the toplevel Makefile, for example). Possibly, the cs-after-racket-with-abs-paths should make the reconfigure target after it makes racket/src/build/cs/c/Makefile.


mflatt
2020-7-1 21:09:16

(One of my dreams is to create a simple Racket that builds easily and that can then drive the build for all other variants, so then we could replace the current ridiculous pile of makefiles with Racket code.)


ellesailenesullivan
2020-7-1 23:10:03

@ellesailenesullivan has joined the channel


cris2000.espinoza677
2020-7-1 23:44:19

hello, i tried to use delete-child in #lang racket/gui on a vertical-pane and got this delete-child in area-container&lt;%&gt;: contract violation expected: (is-a?/c subwindow&lt;%&gt;) given: (object:vertical-pane% ...) I am sure that vertical-pane% implements the interface as its super is pane% and that implements an interface that derives from area-container<%>


cris2000.espinoza677
2020-7-2 00:26:07

~i’ve found out that you can delete buttons using this method but not vertical-panes not even the ones whose parent is the main frame~ it seems that it’s just the vertical-pane that fails


alexharsanyi
2020-7-2 00:40:53

you cannot delete children from pane objects, you need to use panel objects (e.g. vertical-panel%) if you want to modify the content


cris2000.espinoza677
2020-7-2 00:43:20

ooooh thank you


cris2000.espinoza677
2020-7-2 00:45:34

i was distracted and i really didn’t notice the difference in the names, i should’ve suspected when i was testing tab-pane*L*s and it was working fine