Skip to content

Instantly share code, notes, and snippets.

@Xliff
Last active October 19, 2018 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xliff/03d67a02ca2079cba77e734471c2c4ee to your computer and use it in GitHub Desktop.
Save Xliff/03d67a02ca2079cba77e734471c2c4ee to your computer and use it in GitHub Desktop.

For those who are interested, my latest obsession has been working on GTK::Plus for Perl6. It is designed not as a replacement, but an alternative to jnthn's awesome GTK::Simple module.

Why replace something that works? Well, that's the thing. It does work, and it works well, but the point of this work is in GTK::Simple's name. It's a simple set of GTK bindings for Perl6. If you want to do advanced signal handling, use CSS or use GTK's Buildable support, GTK::Simple does not offer that functionality.

Enter GTK::Plus, which attempts to bring as much of GTK's power Perl6 as possible. Much of this is not simple, but can be made easier,thanks to the advantages of Perl6.

So I am now through writing much of the base, widget and signaling code, so I thought I'd share some stats:

Total lines of code: 62421
Number of files: 336
Total compile time reported by Perl6 --stagestats: 604.1490000000001
Maximum compuint compile time: 13.915
Minimum compuint compile time: 0.594
Average compuint compile time: 1.7980625000000003 
Total user time reported by "time ./build.sh": 13m 54.172s
Total real time reported by "time ./build.sh": 10m 39.292s

So there are a few more things to be done, especially testing (!), but I thought it would be nice to share. If you are interested in feature requests, have issues, or (even better) push requests, please visit the project page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment