Re: [racket] Numbers with dimensions

2013-10-28 Thread Hendrik Boom
On Mon, Oct 28, 2013 at 07:54:22AM +0100, Konrad Hinsen wrote: > Laurent writes: > > > Indeed, the notion of dimension is not really what I was after. My > intention was rather > > to provide a useful unit converter. > > Fair enough. > > > If my current units are in N, and I multiply by squa

Re: [racket] Numbers with dimensions

2013-10-28 Thread Laurent
Point taken. So I've redesigned it somewhat, and now there are 2 calculation "modes": - The normal mode is pretty much like Frink (probably the one you want), which converts everything to base SI units. Conversion back to non base units can be done afterwards. - The "quoted" mode prevents a unit fr

Re: [racket] Numbers with dimensions

2013-10-28 Thread Norman Gray
Greetings. On 2013 Oct 28, at 11:05, Laurent wrote: > So I've redesigned it somewhat, and now there are 2 calculation "modes": > - The normal mode is pretty much like Frink (probably the one you want), > which converts everything to base SI units. Conversion back to non base > units can be done

Re: [racket] Numerical Optimization in Racket (i.e. Finding Local Minima and Maxima)

2013-10-28 Thread Doug Williams
The science collection predates Typed Racket - among many other things. It is hand optimized using the fl- and fx- primitives, which were added before Typed Racked, but this misses some optimizations that Typed Racket is able to do. The biggest problem with the hand optimized code is that bugs tend

[racket] Data Exchange Format for Racket

2013-10-28 Thread Ben Duan
Dear All, I need a data exchange format to serve as a simple database. There are several choices out there. Do you have any suggestions on how to choose between them? Thanks, Ben Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Data Exchange Format for Racket

2013-10-28 Thread Jay McCarthy
If you want to commit to Racket, I think the most convenient choice will be read/write and then serialize/deserialize, which are all in the standard Racket distribution. On Mon, Oct 28, 2013 at 9:21 AM, Ben Duan wrote: > Dear All, > > I need a data exchange format to serve as a simple database. T

Re: [racket] Data Exchange Format for Racket

2013-10-28 Thread Ben Duan
Thanks Jay. But is it human readable and editable? On Mon, Oct 28, 2013 at 11:31 PM, Jay McCarthy wrote: > If you want to commit to Racket, I think the most convenient choice > will be read/write and then serialize/deserialize, which are all in > the standard Racket distribution. > > On Mon, Oct

Re: [racket] Numerical Optimization in Racket (i.e. Finding Local Minima and Maxima)

2013-10-28 Thread J. Ian Johnson
Doug, I believe Dan is looking for algorithms for finding minima and maxima in the sense of "Numerical Optimization" by Nocedal and Wright, and not compiler transforms to improve performance. There is a pdf on the first page of hits on google, so someone with time on their hands might want to go

Re: [racket] Data Exchange Format for Racket

2013-10-28 Thread Jay McCarthy
a) You didn't mention this as a constraint. b) read/write is a pure text format and is like Racket code. I consider this human readable/editable. c) serialize/deserialize is technically the same as read/write, but it has many more invariants that makes it effectively not human readable/editable.

[racket] Custodian behavior on normal exit

2013-10-28 Thread Jonathan Schuster
I think I have a misunderstanding on the behavior of custodians. I'm trying to write a Racket program that shuts down any subprocesses it may have created when the program exits, regardless of whether the exit was graceful. I would have thought that the root custodian would have taken care of this