Re: [racket] Math library kudos

2013-02-20 Thread Luke Vilnis
1 AM, Neil Toronto wrote: > You're welcome! > > A user not finding a documented function is excellent feedback. It means > we need to communicate better. Do you remember how you searched for a > combinations function? > > Neil ⊥ > > > On 02/20/2013 08:45 AM, Luke Vi

Re: [racket] Math library kudos

2013-02-20 Thread Luke Vilnis
Ha! Sorry for not reading the documentation more thoroughly - I hope this was at least a bit educational to someone besides me :) Fantastic library and docs, by the way. On Wed, Feb 20, 2013 at 10:38 AM, Neil Toronto wrote: > On 02/20/2013 06:42 AM, Luke Vilnis wrote: > >> No p

Re: [racket] Math library kudos

2013-02-20 Thread Luke Vilnis
ave some code that I could try out. I > found gamma and bflog-gamma, but they work with floats and so I can't > imagine they are faster for exact answers... maybe for estimating nCr for > large numbers? > > -Joe > > > On Tue, Feb 19, 2013 at 8:26 PM, Luke Vilnis wrote:

Re: [racket] Math library kudos

2013-02-19 Thread Luke Vilnis
FYI, log gamma is another fast way to calculate the number of combinations if you want to deal with really big numbers. On Tue, Feb 19, 2013 at 7:28 PM, Joe Gilray wrote: > Racketeers, > > Thanks for putting together the fantastic math library. It will be a > wonderful resource. Here are some

Re: [racket] Racket Social/Support Groups in London

2012-06-13 Thread Luke Vilnis
Am I the only one who read "support group" and thought... "Hi... my name is and I'm a Rackaholic." "Sometimes when I'm supposed to program, I meta-program instead..." "After using TR's real union types and occurrence typing, I can't even look my data-constructors in the eye anymore!" "I add p

Re: [racket] Reading bibtex files

2012-05-21 Thread Luke Vilnis
If I delete all the newlines and spaces (aside from spaces around "=" signs) it works... Maybe there's some feature to ignore whitespace? On Mon, May 21, 2012 at 10:36 AM, Laurent wrote: > (replying to list) > > Thanks, that was a good idea, but conversion to unix format (I'm on linux) > did not

Re: [racket] RacketCon 2012?

2012-05-15 Thread Luke Vilnis
+1 It was really a wonderful opportunity last year. On Tue, May 15, 2012 at 2:12 PM, Scott Hickey wrote: > Are there any plans for a RacketCon 2012? > > Scott Hickey > > > Racket Users list: > http://lists.racket-lang.org/users > > Racket Users list:

Re: [racket] `def' ?

2012-05-11 Thread Luke Vilnis
Correction - should have been "...Clojure, Scala, Groovy, _Python_, Ruby..." On Fri, May 11, 2012 at 4:49 PM, Luke Vilnis wrote: > Asserting that the keyword "def" would confuse beginners is a red herring. > Scheme is AFAIK the only language whose variable binding fo

Re: [racket] `def' ?

2012-05-11 Thread Luke Vilnis
Asserting that the keyword "def" would confuse beginners is a red herring. Scheme is AFAIK the only language whose variable binding form is _not_ some kind of an abbreviation. C#/JavaScript use "var". Heck, D and C++11 use "auto", which is truly bizzare. "def" is a very common keyword to use for th

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Luke Vilnis
I assume Chaitin's constant is involved. On Fri, May 11, 2012 at 3:22 PM, Matthias Felleisen wrote: > > [How] does Xcode allow you to enter arbitrary computations in response to > key events? I don't understand how one can list "all possible actions" > since there are infinitely many? -- Matthias

Re: [racket] `def' ?

2012-05-10 Thread Luke Vilnis
at word frequency has more impact on reading time than word length. > > > On Thu, May 10, 2012 at 3:39 PM, Luke Vilnis wrote: > >> I can only speak for myself but I think it's a bit much to assert that >> word length has nothing to do with readability. Heck, maybe tha

Re: [racket] `def' ?

2012-05-10 Thread Luke Vilnis
I can only speak for myself but I think it's a bit much to assert that word length has nothing to do with readability. Heck, maybe that's even true for you, but not for everyone. I have certainly felt it to be an issue. If the "define" keyword was 50 letters long it would definitely have an impact

Re: [racket] `def' ?

2012-05-10 Thread Luke Vilnis
with > `let') do multiple defines in one shot: > > (let ([x 1] > [y 2]) > ...) > > could perhaps be: > > (def ([x 1] > [y 2]) > ...) > > or even just: > > (def x 1 > y 2) > > ? > > On Thu, May 10, 2012 at 12:58 PM, Luke Vilni

Re: [racket] `def' ?

2012-05-10 Thread Luke Vilnis
+1000 to "def" idea I think the super verbose keywords can be an impediment to code readability. The increase in signal-to-noise, along with (imo) sexier looking code samples to show to prospective Racketeers is worth it. As silly as it might sound, when I started out, Scheme's notoriously long ke

Re: [racket] [Typed Racket] mapping car

2012-04-04 Thread Luke Vilnis
I had to instantiate the "map" function explicitly, and couldn't use "cons?" because it returns whether something is a Pair, not a Listof - but the following works: (: cars : (All (A) (Listof (Listof A)) -> (Listof A))) (define (cars ls) ((inst map A (Listof A)) car (filter (λ (x) (not (empty? x)

Re: [racket] sad user face?

2012-02-18 Thread Luke Vilnis
To weigh in on this - when I was an undergrad, women routinely called themselves "freshmen." Best, Luke On Sat, Feb 18, 2012 at 8:13 PM, Matt Jadud wrote: > On Sat, Feb 18, 2012 at 19:59, Joe Gilray wrote: > > No doubt about it! And the little icon-guy in the upper right hand > corner > > wil

Re: [racket] Disable/Enable Tests

2011-11-27 Thread Luke Vilnis
I've also been wondering about this. It doesn't seem to do anything if I use the standard (check-expect) and (run-tests) forms. On Sun, Nov 27, 2011 at 8:17 PM, Mark Engelberg wrote: > In the latest version of Racket, I see a menu item to disable and > enable tests. What testing library does thi

[racket] Ceylon language borrows Typed Racket features?

2011-11-14 Thread Luke Vilnis
Has anyone taken a look at the upcoming language Ceylon? It feels to me like a pretty aggressively blub-y Java clone, but it has two features that seem like they're ripped straight out of Typed Racket. It looks like the language includes a basi

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Luke Vilnis
wrote: > > On Sep 18, 2011, at 9:22 PM, Luke Vilnis wrote: > > Thanks guys, that works! Still, it's pretty confusing that running (test)from > the repl does not work, only inserting it at the end of the file. It > would be nice to mention that in the docs, something like: &

Re: [racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Luke Vilnis
Tests option in the Racket menu do? It doesn't appear to affect the automatic test-running of "Beginning Student" either. It could be a bug, but I'd be willing to bet that I'm missing something else basic here as well. On Sun, Sep 18, 2011 at 8:30 PM, Stephen Bloch wrote:

[racket] Getting test-engine to work with #lang racket

2011-09-18 Thread Luke Vilnis
Hi everybody, I was wondering how to get test-engine working with #lang, or non-student languages in general. I tried something like this: #lang racket (require test-engine/racket-tests) (check-expect 12 (+ 6 7)) ;;sic But no luck. I also tried it with (require test-engine/racket-gui), but I'm gu