Re: [racket-users] [ANN] MrEd Designer update

2017-09-30 Thread Deren Dohoda
Thanks, Laurent. MrEd is extremely handy.

Deren

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] [ANN] MrEd Designer update

2017-09-30 Thread Laurent
A new version of MrEd Designer (package 'mred-designer') is available:
https://pkgd.racket-lang.org/pkgn/package/mred-designer

MrEd Designer is WYSIWYG program to create GUI applications for Racket.

The changes are relatively minor in quantity, but I've made a number of
small improvements to the ease of use, as it seems that was lacking and
could have put off those who wanted to try it casually.

In particular the installation and quick start should be more helpful now:
https://github.com/Metaxal/MrEd-Designer/blob/v3.16/README.md

The loading times (both of MrEd Designer and of the generated Racket files)
have been substantially improved too, thanks to tab-panel% 'now' being part
of racket/gui rather than framework.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Safely allocating memory in places enabled world

2017-09-30 Thread Eric Dobson
I'm trying to write some racket code which interfaces with a foreign
library and provides a safe interface. Some of the functions I'm calling
allocate memory and need to have this explicitly freed by the caller. The
'allocator' binding from ffi/unsafe/alloc seems to solve this problem, but
I'm running into issues using it from places other than the main one. The
issue is that if a place gets shut down then the finalizer that was
registered don't seem to run, and I can observe the leaked memory at the
process level.

I took a look at ffi/unsafe/custodian and it seems that
register-custodian-shutdown would allow this to be implemented. Is there a
reason that such allocator doesn't do this by default?

Code:
https://gist.github.com/endobson/6efdca16885162b51b76ab385e9afa5b

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.