Re: [racket-users] DrRacket has become unusable: freezes almost immediately

2017-05-23 Thread Alasdair McAndrew
On Tuesday, 23 May 2017 21:06:17 UTC+10, Robby Findler wrote: > If you start DrRacket from the shell, trigger the bad behavior and then type > control-c in the shell, do you get any output? > > > Robby > Thanks for the suggestion - which I had in fact tried, to no avail. DrRacket froze, and

[racket-users] Can't get Dr Racket Documentation

2017-05-23 Thread j . dabel
I get an error when trying to get Help Desk or Dr Racket Documentation from the menu. I get following error: Thank you Juergen Dabel Schrobenhausen Germany -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

[racket-users] Racket Documentation

2017-05-23 Thread j . dabel
When trying to get the docs from the Dr Racket menu I get>: Juergen Dabel Schrobenhausen Germany -- 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

Re: [racket-users] DrRacket has become unusable: freezes almost immediately

2017-05-23 Thread Robby Findler
If you start DrRacket from the shell, trigger the bad behavior and then type control-c in the shell, do you get any output? Robby On Tue, May 23, 2017 at 5:11 AM Alasdair McAndrew wrote: > I have had no problem running DrRacket on linux, under KDE Plasma, until > now. But

[racket-users] Convert mouse coordinates in mouse-event% to window coordinates? And also for snip%...

2017-05-23 Thread Erich Rast
Hi, For me personally, coordinates are probably the most unintuitive aspect of Racket's GUI management. The problem comes up again and again, and I never get it right, so maybe someone can clarify this once and for all. I have a mouse-event% in on-event of a snip% and would like to display a

Re: [racket-users] Can't get Dr Racket Documentation

2017-05-23 Thread Robby Findler
What happens if you open up a terminal window and paste this command in? /usr/bin/osascript -e 'open location "file:///Applications/Racket%20v6.9/doc/index.html"' Robby On Sun, May 21, 2017 at 4:34 AM, wrote: > I get an error when trying to get Help Desk or Dr Racket

Re: [racket-users] Contracts for generic interfaces (or struct type properties?)

2017-05-23 Thread Vincent St-Amour
Hi Philip, I don't think you can express the contract boundary you have in mind using the generics library as it is. The blame you see for both contracts makes sense. In the first case, `string-server` is not protecting itself from bad inputs (uses `any/c`) yet promises to return a string. It

Re: [racket-users] DrRacket has become unusable: freezes almost immediately

2017-05-23 Thread Vincent St-Amour
On Tue, 23 May 2017 06:35:58 -0500, Alasdair McAndrew wrote: > > On Tuesday, 23 May 2017 21:06:17 UTC+10, Robby Findler wrote: > > If you start DrRacket from the shell, trigger the bad behavior and then > > type control-c in the shell, do you get any output? > > > > > > Robby > > > Thanks

Re: [racket-users] Dr Racket crash 2-finger-scroll

2017-05-23 Thread Matthew Flatt
You're running Windows 10 Creators Update? Unfortunately, we do not have a workaround. Microsoft has accepted my bug report, but that's all the feedback we have so far. You can find more information here: https://github.com/racket/racket/issues/1671 At Tue, 23 May 2017 07:36:54 -0700 (PDT),

[racket-users] Dr Racket crash 2-finger-scroll

2017-05-23 Thread Edgar Maldonado
Dr Racket seems to crash on my windows laptop every-time I use the two-finger-scroll. Not only does it crash the app, but also my entire laptop. It then deletes everything I'm working on. I get the blue screen with the stop code UNEXPECTED_KERNEL_MODE_TRAP. Wondering what I can do to fix this

[racket-users] making a language that can return the body of a function

2017-05-23 Thread Vityou
In lambda calculus, the function is the only datatype, so it would be useful to see the body of a function when it is returned in some expression in the repl (so you can see what number was returned or some other encoding). I have got this working by making a language where the reader turns

Re: [racket-users] Convert mouse coordinates in mouse-event% to window coordinates? And also for snip%...

2017-05-23 Thread WarGrey Gyoudmon Ju
Hi Rast the mouse event object of editor% and snip% is always the one passed to the on-event method of editor-canvas% (that's why event handlers of snip% have lots of extra arguments to provide you the location information, racket/snip do the computing for you). When it is used with a snip%

Re: [racket-users] Can't get Dr Racket Documentation

2017-05-23 Thread Robby Findler
Ah -- my apologies: the command was supposed to be only on a single line with only a single space after the word "location" and the open quote character. Can you try that again? Robby On Tue, May 23, 2017 at 10:01 AM j.da...@t-online.de wrote: > Hello, > > thank you! > >

Re: [racket-users] making a language that can return the body of a function

2017-05-23 Thread Philip McGrath
I think you will probably want to define an applicable struct type with custom printing behavior and then replace Racket's lambda with your own macro to create instances of that struct type. I think what you want may be more complex than this, but here's an example that simply carries along its

Re: [racket-users] making a language that can return the body of a function

2017-05-23 Thread Vityou
On Tuesday, May 23, 2017 at 7:17:18 PM UTC-6, Matthias Felleisen wrote: > Why do you interpret S-expressions instead of re-mapping lambda and #%app? > > > > > > > On May 23, 2017, at 9:14 PM, Vityou wrote: > > > > I might be able to do something like this, but what I'm

Re: [racket-users] making a language that can return the body of a function

2017-05-23 Thread Vityou
I might be able to do something like this, but what I'm looking for is something that will be able to show the variables available to it in adition to its source. I'll probable have to do something like what you did with the struct accept add a field with its available variables and modify

Re: [racket-users] DrRacket has become unusable: freezes almost immediately

2017-05-23 Thread Alasdair McAndrew
> After the `killall` from tty2, did the shell you started DrRacket from have > any output? > > Thanks for helping us investigate! > > Vincent Unfortunately not. After going to tty2, entering "killall drracket" and back to tty1, the terminal was as I left it, with just the command "drracket"

Re: [racket-users] making a language that can return the body of a function

2017-05-23 Thread Matthias Felleisen
Try to start with this: #lang racket ;; new-lang.rkt (provide #%app #%datum #%top-interaction (rename-out (new-lambda lambda) (new-mb #%module-begin))) (define-syntax (new-lambda stx) (syntax-case stx () [(_ (x ...) e ...) #'(lam '(x ...) '(e ...) (lambda (x ...) e

[racket-users] DrRacket has become unusable: freezes almost immediately

2017-05-23 Thread Alasdair McAndrew
I have had no problem running DrRacket on linux, under KDE Plasma, until now. But now it seems to crash constantly. All I need to do is: 1. Open it up from the KDE menu 2. Open up the File menu and then it freezes, and also causes a system freeze, as it appears to be using 100% of CPU