[racket] Starting a place with breaks disabled

2014-11-07 Thread Eric Dobson
I'm trying to figure out how to reliably kill a place silently. The current code I have starts up a place and nearly immediately sets a break handler that quietly exits, the issue is that there is a fairly long gap where the place is started and still doing import resolution. If the place revieves

Re: [racket] debugging memory allocation

2014-11-07 Thread Jay McCarthy
On Fri, Nov 7, 2014 at 11:43 PM, David Vanderson wrote: > On 11/07/2014 09:45 PM, Jay McCarthy wrote: >> >> Robby's advice of using backtrace can be useful. But it is pretty >> complicated to use, especially with an interactive application. If you >> go that route, you want to make an automated ve

Re: [racket] debugging memory allocation

2014-11-07 Thread David Vanderson
On 11/07/2014 09:45 PM, Jay McCarthy wrote: Robby's advice of using backtrace can be useful. But it is pretty complicated to use, especially with an interactive application. If you go that route, you want to make an automated version of your code. Another strategy is to put your model and your vi

Re: [racket] debugging memory allocation

2014-11-07 Thread Jay McCarthy
Robby's advice of using backtrace can be useful. But it is pretty complicated to use, especially with an interactive application. If you go that route, you want to make an automated version of your code. Another strategy is to put your model and your view in different threads, give them different c

Re: [racket] debugging memory allocation

2014-11-07 Thread Robby Findler
(Despite the fact that 'cool' appears in it twice Don't look at me for writing tips, apparently!) On Fri, Nov 7, 2014 at 7:45 PM, Matthias Felleisen wrote: > > On Nov 7, 2014, at 5:52 PM, Robby Findler wrote: > >> It would be really cool if someone were to build some cool memory >> performan

Re: [racket] debugging memory allocation

2014-11-07 Thread Matthias Felleisen
On Nov 7, 2014, at 5:52 PM, Robby Findler wrote: > It would be really cool if someone were to build some cool memory performance > debugging tools for Racket, tho. For people out there looking for a dissertation topic, this is a good line to start from. Racket Users li

Re: [racket] debugging memory allocation

2014-11-07 Thread Robby Findler
Unfortunately, it is hard to separate these things when you're running in DrRacket because DrRacket is doing lots of complicated things that foul your measurements. I think you can display interactive 3d snips outside of DrRacket. Just do this: #lang racket/gui (define f (new frame% [label ""]))

Re: [racket] debugging memory allocation

2014-11-07 Thread Neil Toronto
Please, someone answer this man! I need to do the same kind of debugging on Pict3D. One thing I've noticed from just dumping the result of (current-memory-use) to the terminal: sometimes memory use will repeatedly climb until there's a major GC, and sometimes minor GCs will be enough to keep

Re: [racket] Adding repl like in drracket to application

2014-11-07 Thread Asumu Takikawa
Hi Sturm, On 2014-11-05 00:01:14 -0500, Sturm Mabie wrote: > I was wondering if there was an easy way to add a full-featured repl > (like in DrRacket) to an application. Is there widget or something > that I can just use to get full functionality or do I have to > implement keybindings and such my

Re: [racket] question about implementation of hash-ref!

2014-11-07 Thread Jack Firth
Making it the default behavior would require it to be a macro instead of an ordinary function, so you’d lose the ability to pass it around as a function. Given that implementing a short circuit macro on top of hash-ref! is as simple as (define-syntax-rule (hash-ref!! table key expr) (hash-ref! tabl

Re: [racket] question about implementation of hash-ref!

2014-11-07 Thread Jay McCarthy
The simplest, boring, answer is that short-circuiting requires that hash-ref! be a macro, which makes it difficult to use in first-class ways, like storing it inside of a list. There are many other functions like this and the pattern of accepting a value OR a thunk is pretty common, for this reason

[racket] question about implementation of hash-ref!

2014-11-07 Thread Matthew Butterick
Since `hash-ref!` includes `or`-like functionality, is there a reason it's not implemented with short-circuit logic similar to `or`? In other words, the function `hash-ref!` is invoked thus: (hash-ref! hashtable key new-value-if-needed) What I notice is that if you put an expression in the new-

Re: [racket] didn't know HN used Racket

2014-11-07 Thread Patrick Useldinger
On 07/11/2014 19:51, Geoffrey S. Knauth wrote: I visited HackerNews [1]. Unfortunately it was down, but you can following @HNStatus on Twitter. In that feed, I saw: IIRC it's written in ARC, which is implemented in Racket. See http://en.wikipedia.org/wiki/Arc_(programming_language) _

Re: [racket] didn't know HN used Racket

2014-11-07 Thread Robby Findler
Nice to see the time deltas there. :) Robby On Fri, Nov 7, 2014 at 12:51 PM, Geoffrey S. Knauth wrote: > I visited HackerNews [1]. Unfortunately it was down, but you can following > @HNStatus on Twitter. In that feed, I saw: > > 12h ago: Quick system reboot to update kernel, HN code, and Rac

Re: [racket] didn't know HN used Racket

2014-11-07 Thread Geoffrey S. Knauth
BTW HN is up now. > On Nov 7, 2014, at 13:51 , Geoffrey S. Knauth wrote: > > I visited HackerNews [1]. Unfortunately it was down, but you can following > @HNStatus on Twitter. In that feed, I saw: > > 12h ago: Quick system reboot to update kernel, HN code, and Racket runtime. > Be back soo

[racket] didn't know HN used Racket

2014-11-07 Thread Geoffrey S. Knauth
I visited HackerNews [1]. Unfortunately it was down, but you can following @HNStatus on Twitter. In that feed, I saw: 12h ago: Quick system reboot to update kernel, HN code, and Racket runtime. Be back soon. 11h ago: Now for Racket update. 11h ago: All done. [1] https://news.ycombinator.co

Re: [racket] beep

2014-11-07 Thread Jon Zeppieri
(display #\u0007) I assume this won't make a sound in Dr. Racket, but I haven't tried. On Fri, Nov 7, 2014 at 12:41 PM, Christian Wagenknecht wrote: > How to get a beep from Racket? > (display ???) > DOS: ^G -- @echo BEL > > > > Racket Users list: > http://lists.racke

[racket] beep

2014-11-07 Thread Christian Wagenknecht
How to get a beep from Racket? (display ???) DOS: ^G -- @echo BEL smime.p7s Description: S/MIME Cryptographic Signature Racket Users list: http://lists.racket-lang.org/users

[racket] ICFP 2015: Call for Papers

2014-11-07 Thread David Van Horn
= 20th ACM SIGPLAN International Conference on Functional Programming ICFP 2015 Vancouver, Canada, August 31 - September 2, 2015 http://www.icfpconference.org/icfp2015 ==