Re: [racket] errortrace breaks local-require on submodules

2015-01-11 Thread Alexis King
Okay, new information. I’ve looked into this more, and I’m pretty sure it has nothing at all to do with errortrace. I don’t know why running it from the command line without errortrace works, but as far as I can tell it shouldn’t. The real problem is that require-local uses syntax-local-lift-req

Re: [racket] representing delta blue's relations in typed racket

2015-01-11 Thread Anthony Carrico
On 01/11/2015 03:52 PM, Anthony Carrico wrote: > On possibility is to avoid putting values into Variables at all, and to > just keep blue delta bookkeeping and thunks in the structures. I think > this would avoid the trouble, but I still wonder if the original version > is somehow possible. That t

[racket] errortrace breaks local-require on submodules

2015-01-11 Thread Alexis King
I wrote a typed racket macro that creates an untyped submodule, then uses require/typed to add type annotations to the bindings. This would work great, except that it just errors out and dies. I submitted a bug report before realizing that a bug report already existed

Re: [racket] representing delta blue's relations in typed racket

2015-01-11 Thread Anthony Carrico
On 01/11/2015 02:19 PM, Anthony Carrico wrote: > Is it possible to capture this kind of polymorphism in TR? Do I have to > give up on typing the Variables? Could I do it with macros? On possibility is to avoid putting values into Variables at all, and to just keep blue delta bookkeeping and thunks

Re: [racket] representing delta blue's relations in typed racket

2015-01-11 Thread Anthony Carrico
On 01/11/2015 02:19 PM, Anthony Carrico wrote: > Here is some fake code that shows (partially) the data structures in > delta blue's pseudo code: Actually, I in my pseudo code, this definition for Variable is wrong, because it implies that every constraint on this variable has the same type. In fa

[racket] representing delta blue's relations in typed racket

2015-01-11 Thread Anthony Carrico
I'm implementing the delta blue algorithm in TR. Delta blue creates a graph of variables connected by (a hierarchy of) constraints (relations among variables). The algorithm adjusts the variables' values as you add and remove the constraints. Here is some fake code that shows (partially) the data

Re: [racket] Focus

2015-01-11 Thread Jens Axel Søgaard
2015-01-11 18:47 GMT+01:00 Matthew Flatt : > The `focus` method is supposed to work, but it looks like there's a > problem with the Cocoa-backed implementation, which confuses "should > the Tab key advance the focus to this window?" with "can this window > have the focus?". Ok. > If it happens th

Re: [racket] Focus

2015-01-11 Thread Matthew Flatt
The `focus` method is supposed to work, but it looks like there's a problem with the Cocoa-backed implementation, which confuses "should the Tab key advance the focus to this window?" with "can this window have the focus?". If it happens that you want Tab to move the keyboard focus among the canva

[racket] Focus

2015-01-11 Thread Jens Axel Søgaard
How does one move the keyboard focus from one canvas to another? My attempts with (send a-canvas focus) were not successful. Below is a program with two canvases c1 and c2. For each key press they respectively print A and B followed by the key pressed. Initially c1 has focus. A (send c2 focus) d

Re: [racket] Performance help

2015-01-11 Thread Jyotirmoy Bhattacharya
I have now tested using v 6.1.1 and the time does drop to 17s from the earlier 24s though this still remains higher than Python's 13s. I have updated the GitHub README with the new numbers. Jyotirmoy On Mon, Jan 5, 2015 at 6:59 AM, Jyotirmoy Bhattacharya < jyotir...@jyotirmoy.net> wrote: > > On

[racket] docs on use of MS SQL Server without ODBC?

2015-01-11 Thread Hanson, Timothy
hi, I'm a Racket hobbyist and have yet to use DB access in any form (under racket). I'd be very curious to try accessing MS SQL without using ODBC. Searching for "native SQL driver" got me here: http://docs.racket-lang.org/db/notes.html ... 6.9.3 SQL Server ODBC