[racket-users] [racket][typed] static-contracts/instantiate.rkt:64:2. car: contract violation.

2016-04-08 Thread WarGrey Gyoudmon Ju
This bug happened to appear two days ago and never disappear (both in version 6.4.0.13 and 6.5.0.1) in my codebase, however if I copy the minimal relative code into a fresh file, it disappears. In the original one's REPL, it disappears too. (define-type Card% (Class #:implements Darc-Card%

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-08 Thread Jay McCarthy
On Thu, Apr 7, 2016 at 10:58 AM, Jay McCarthy wrote: > I also just recently discovered an optimization I can make in mode-lambda > but haven't had time to implement it. If it's not adequate, I can make > sometime to do it. > BTW, I just implemented this optimization. mode-lambda now uses 6 times

Re: [racket-users] mouse selection on a text-field%

2016-04-08 Thread Matthew Flatt
At Fri, 8 Apr 2016 18:50:09 +0200, mazert wrote: > I try to find an easy way to add the general mouse selection system > (double click on a word will select it for example) on a text-field gui > component. In the case of double-click to select a word, you could implement it via the keymap in a t

[racket-users] mouse selection on a text-field%

2016-04-08 Thread mazert
Hello, I try to find an easy way to add the general mouse selection system (double click on a word will select it for example) on a text-field gui component. In the multi file search tool of Drracket, text-fields have this feature, but by looking the source code : https://github.com/racket/

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-08 Thread 'John Clements' via Racket Users
> On Apr 8, 2016, at 3:20 AM, Jay McCarthy wrote: > > On Fri, Apr 8, 2016 at 1:30 AM, John Clements > wrote: > Down side: the documentation for ‘lux’ is giving me fits. The names all seem > chosen as an elaborate pun on those used by 2htdp/uniiverse, and there are no > examples. > > There i

[racket-users] Re: What do you use macros for?

2016-04-08 Thread George Neuner
On Fri, 8 Apr 2016 15:49:32 +0200, Jerzy Karczmarczuk wrote: >Le 08/04/2016 15:40, George Neuner a écrit : > >> Macros (at least Lisp and Scheme style macros) can change the nature >> of the eventual runtime evaluation. > >What do you mean by the 'nature' of the evaluation? Do you thnk that >mac

Re: [racket-users] What do you use macros for?

2016-04-08 Thread Robby Findler
I think this is not quite Matthias's point about laziness. The point is that Haskell programmers generally (are supposed to) program as if they don't care what order things are evaluated in, so the ability of macros to change that order isn't relevant to them. (Of course, this is foolish for a numb

Re: [racket-users] Re: What do you use macros for?

2016-04-08 Thread Jerzy Karczmarczuk
Hi. Le 08/04/2016 15:40, George Neuner a écrit : Macros (at least Lisp and Scheme style macros) can change the nature of the eventual runtime evaluation. What do you mean by the 'nature' of the evaluation? Do you thnk that macro change the operational semantics of the language, or what?... Tha

[racket-users] Re: What do you use macros for?

2016-04-08 Thread George Neuner
On Fri, 08 Apr 2016 12:10:39 +0100, "Norman Gray" wrote: >Quoting Asumu quoting Matthias: > >>> I'd like to propose that there are three disciplined uses of macros: >>> >>> 1. data sublanguages: I can write simple looking expressions and >>> [...] >>> >>> 2. binding constructs: I can introduce

Re: [racket-users] What do you use macros for?

2016-04-08 Thread Alex Knauth
> On Apr 8, 2016, at 7:10 AM, Norman Gray wrote: >>> I'd like to propose that there are three disciplined uses of macros: >>> >>> 1. data sublanguages: I can write simple looking expressions and >>> [...] >>> >>> 2. binding constructs: I can introduce new binding constructs with >>> [...] >>>

Re: [racket-users] What do you use macros for?

2016-04-08 Thread Sam Caldwell
I don't see how a lazy language would let me implement my own version of `let`. Care to enlighten me? - Sam Caldwell On Fri, Apr 8, 2016 at 7:10 AM, Norman Gray wrote: > > Greetings. > > Quoting Asumu quoting Matthias: > > I'd like to propose that there are three disciplined uses of macros: >>

Re: [racket-users] What do you use macros for?

2016-04-08 Thread Norman Gray
Greetings. Quoting Asumu quoting Matthias: I'd like to propose that there are three disciplined uses of macros: 1. data sublanguages: I can write simple looking expressions and [...] 2. binding constructs: I can introduce new binding constructs with [...] 3. evaluation reordering: I can

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-08 Thread Jay McCarthy
On Fri, Apr 8, 2016 at 1:30 AM, John Clements wrote: > Down side: the documentation for ‘lux’ is giving me fits. The names all > seem chosen as an elaborate pun on those used by 2htdp/uniiverse, and there > are no examples. > There is an entire directory called `examples` and the aforementioned