Re: [racket] Survey for DrRacket users related to automatic parentheses behavior

2012-11-23 Thread Eli Barzilay
8 hours ago, Nadeem Abdul Hamid wrote: > The idea is to have DrRacket automatically skip over > automatically-inserted closing parens if the user types one while > the cursor is right in front of one. (The Eclipse Java IDE does this > with various types of braces and parens, and in the past I've fo

Re: [racket] bracket conversion?

2012-11-23 Thread Eli Barzilay
Yesterday, Eric Tanter wrote: > That sounds like a great option "from the quick hacks dept" as you > say ;) > > Anyway, I was wondering whether that wouldn't be something that > makes sense for DrRacket to have at some point. Just like you can > configure default spacing for specific keywords. So

Re: [racket] [racket-dev] Survey for DrRacket users related to automatic parentheses behavior

2012-11-23 Thread Pierpaolo Bernardi
On Fri, Nov 23, 2012 at 1:20 AM, Nadeem Abdul Hamid wrote: > 1. Do you use the automatic parentheses feature of DrRacket? No. > 3. If your answer to #1 is "No", why not? (Is it because you find its > current behavior awkward in some way?) Yes. Typing close parentheses is much less hassle than

Re: [racket] typing a function

2012-11-23 Thread Pierpaolo Bernardi
Hi, On Thu, Nov 22, 2012 at 4:41 PM, Neil Toronto wrote: > On 11/22/2012 07:41 AM, Pierpaolo Bernardi wrote: > With a few tweaks, it works in 5.3.1. It *will not work* in 5.3, because we > hadn't fixed `for/vector:' yet. > #lang typed/racket > > (define-type Array2 (Vectorof (Vectorof Number)))

Re: [racket] bracket conversion?

2012-11-23 Thread Eric Tanter
I like the idea of a "style coach" very much! That'll be very handy also for students/beginners, actually. -- Éric On Nov 23, 2012, at 5:52 AM, Eli Barzilay wrote: > Yesterday, Eric Tanter wrote: >> That sounds like a great option "from the quick hacks dept" as you >> say ;) >> >> Anyway, I w

Re: [racket] Survey for DrRacket users related to automatic parentheses behavior

2012-11-23 Thread Norman Gray
Nadeem, hello. On 2012 Nov 23, at 00:20, Nadeem Abdul Hamid wrote: > 1. Do you use the automatic parentheses feature of DrRacket? No, because this feature wasn't present. (I didn't realise until this thread that there was supposed to be a M-( and M-) function, though I can't seem to enable t

Re: [racket] Survey for DrRacket users related to automatic parentheses behavior

2012-11-23 Thread Norman Gray
On 2012 Nov 23, at 08:43, Eli Barzilay wrote: > IMO, inserting a closing paren (of any shape, including quotes) must > come with such a feature, but what you describe is only to let you get > used to the idea. I'd prefer that in the auto-insert-closing-paren- > mode, typing a closing paren jump

Re: [racket] How to disable a couple of things in drracket

2012-11-23 Thread Tobias Hammer
I think, that could get annoying if you want to inspect a larger number if definitions. You would have to press the key for quite a long time. Another shortcut, that many IDEs offer is that you can jump to the place of definition of something via Ctrl+Left-Mouse. That would have a subset (t

Re: [racket] provide and require in submodules

2012-11-23 Thread Matthew Flatt
That's a bug. I've pushed a repair to the git repo. Thanks for the report! At Tue, 20 Nov 2012 23:19:30 -0500, Harry Spier wrote: > Dear list members, > > This works in DrRacket: > definitions window > - > #lang racket > (module+ server > (provide a-from-server) > (define

Re: [racket] What is a good way to learn about functions "like" in this case?

2012-11-23 Thread Grant Rettke
So the best thing to do is to read all of the docs. On Thu, Nov 22, 2012 at 2:07 PM, Jordan Johnson wrote: > Argmin is a standard math term, but if it's one you haven't encountered, I'm > not sure how easily you could turn it up in the Racket docs. This is a > problem I've thought it might be n

Re: [racket] What is a good way to learn about functions "like" in this case?

2012-11-23 Thread Jens Axel Søgaard
2012/11/21 Grant Rettke : > Hi, > > Today I saw someone use the 'argmin' function. > > I wondered how I might learn about it from search results. For example > you know you want the minimum, and you might broadly get back a result > for example if there was a page on "functions that give you minimu

[racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Grant Rettke
Hi, Racket 5.3.1 32 bit Ubuntu Karmic download for Lubuntu 12.04 32 bit. Blew away my config directory and started it up. Set lang line and opened a file. Was expecting a little colored LED to the right of the little man in the bottom right hand corner, but there is none. When I right click it t

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Robby Findler
Do you have more than 1 core? Robby On Fri, Nov 23, 2012 at 10:46 AM, Grant Rettke wrote: > Hi, > > Racket 5.3.1 32 bit Ubuntu Karmic download for Lubuntu 12.04 32 bit. > > Blew away my config directory and started it up. Set lang line and > opened a file. > > Was expecting a little colored LED

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Grant Rettke
On Fri, Nov 23, 2012 at 10:58 AM, Robby Findler wrote: > Do you have more than 1 core? No, single core. Enjoying using Racket and friends running very fast and pleasantly on an old but fast laptop. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Robby Findler
On Fri, Nov 23, 2012 at 11:03 AM, Grant Rettke wrote: > On Fri, Nov 23, 2012 at 10:58 AM, Robby Findler > wrote: >> Do you have more than 1 core? > > No, single core. Enjoying using Racket and friends running very fast > and pleasantly on an old but fast laptop. That explains it, then. It isn't

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Grant Rettke
Oh ok. I guess that feature is good for the economy, than :). Where is the check made in the code something simple that I can grep for and re-run raco setup to turn it on and to see how slow it is? On Fri, Nov 23, 2012 at 11:15 AM, Robby Findler wrote: > On Fri, Nov 23, 2012 at 11:03 AM, Grant

Re: [racket] What is a good way to learn about functions "like" in this case?

2012-11-23 Thread Stephan Houben
What about mentioning "related functions" in the docs, like linux manpages do? Stephan Houben Op 23 nov. 2012 17:27 schreef "Jens Axel Søgaard" het volgende: > 2012/11/21 Grant Rettke : > > Hi, > > > > Today I saw someone use the 'argmin' function. > > > > I wondered how I might learn about it f

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Robby Findler
This: (> (processor-count) 1) appears twice in collects/drracket/private/module-language.rkt. Remove it (or change the 1 to a 0 :). If it doesn't seem too painful, then maybe I can just make the preference default to disabled on single-core machines instead of completely disabling it. Robby

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Grant Rettke
Thanks! I will try it out. On Fri, Nov 23, 2012 at 11:27 AM, Robby Findler wrote: > This: > > (> (processor-count) 1) > > appears twice in collects/drracket/private/module-language.rkt. Remove > it (or change the 1 to a 0 :). > > If it doesn't seem too painful, then maybe I can just make the >

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Grant Rettke
It is plenty fast at least on a small file, and that is fine with me. On Fri, Nov 23, 2012 at 11:32 AM, Grant Rettke wrote: > Thanks! I will try it out. > > > On Fri, Nov 23, 2012 at 11:27 AM, Robby Findler < > ro...@eecs.northwestern.edu> wrote: > >> This: >> >> (> (processor-count) 1) >> >>

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Grant Rettke
Everybody should love how easy it is to do stuff like this with your help. Here is a blog: http://www.wisdomandwonder.com/article/6629/this-is-how-easy-it-is-to-make-changes-to-drracket On Fri, Nov 23, 2012 at 11:40 AM, Grant Rettke wrote: > It is plenty fast at least on a small file, and that

Re: [racket] What is a good way to learn about functions "like" in this case?

2012-11-23 Thread Laurent
> I tried 'min' and combinations with asterisks before and after and > never got argmin as a result. > On my (yesterday's) install, it is on the second page when searching for min. I believe the search matches on partial strings too. It's obviously not a perfect solution, e.g., there could be an

Re: [racket] Online compilation button missing on 5.3.1 and Lubuntu 12.04?

2012-11-23 Thread Robby Findler
Thanks for the kind words! Robby (I think you want "#;", not ";;" in the diff, tho.) On Fri, Nov 23, 2012 at 11:53 AM, Grant Rettke wrote: > Everybody should love how easy it is to do stuff like this with your help. > Here is a blog: > > http://www.wisdomandwonder.com/article/6629/this-is-how-e

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
Now I'm experiencing the same problem in Ubuntu 12.10. No symbol fonts render when using text/font; I only get the latin text equivalent. I tried this using the Dingbats font built into Ubuntu along with custom symbol fonts I had downloaded. Both Dingbats and the other symbol fonts I downloaded wor

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
Oops, replace FONT-SIZE with whatever size font you want... sorry, I pasted that from code in something I'm working on! On Fri, Nov 23, 2012 at 3:02 PM, Clement Erik Ferguson < clementraph...@gmail.com> wrote: > Now I'm experiencing the same problem in Ubuntu 12.10. No symbol fonts > render when

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Robby Findler
If you want to use, say, α, then you need an actual α in the string, not an "a". I don't know how the dingbats work, but certainly that's how it works for characters that are in the unicode character set. (You can type those characters by using their LaTeX equivalents and then hitting control-\ o

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
I'm sorry, I don't think I've explained the problem I'm having clearly. I have fonts that I'm using that map latin characters to neumes for byzantine chant music. So pressing "1" gives me a particular musical symbol, and "a" gives me another symbol. I am trying to use text/font to render those sym

Re: [racket] typing a function

2012-11-23 Thread Neil Toronto
On 11/23/2012 02:29 AM, Pierpaolo Bernardi wrote: Hi, On Thu, Nov 22, 2012 at 4:41 PM, Neil Toronto wrote: On 11/22/2012 07:41 AM, Pierpaolo Bernardi wrote: With a few tweaks, it works in 5.3.1. It *will not work* in 5.3, because we hadn't fixed `for/vector:' yet. #lang typed/racket (de

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Robby Findler
Oh, I see. I'm sorry I don't know what is going wrong. Different versions of cairo/pango could be relevant, possibly. I doubt it is going to matter, but if you change the expression on line 932 in collects/mrlib/image-core.rkt: (send dc draw-text (text-string np-atomic-shape)

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Clement Erik Ferguson
Thank you for the suggestion, but that didn't work on XP or Ubuntu. Should I submit the issue to Racket's github? I'm new to programming and don't know what the protocol is for things like this... On Fri, Nov 23, 2012 at 4:32 PM, Robby Findler wrote: > Oh, I see. I'm sorry I don't know what is g

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Robby Findler
You could submit a PR. I'm the maintainer of the image library and the maintainer of the lower-level libraries that it depends on (which seem to be the ones where there might be a hope of finding a fix) also reads these messages. Robby On Fri, Nov 23, 2012 at 6:37 PM, Clement Erik Ferguson wrote

Re: [racket] text/font not rendering symbol fonts on WinXP

2012-11-23 Thread Neil Toronto
To submit a PR, in DrRacket, click on the Help menu, choose "Submit Bug Report...", fill out the form, then click "Submit". It may help Robby and/or Matthew figure out what the problem is if you do this on one of the computers that doesn't render the chants properly. BTW, as a musician, I thin

Re: [racket] provide and require in submodules

2012-11-23 Thread Harry Spier
Thanks Matthew, Is this also the same/similar bug but with submodule path as filename? This works: - #lang racket ;; client.rkt (require (submod "things.rkt" extra-things)) (displayln thing-a) #lang racket ;; things.rkt (provide t