[racket-users] Re: Scribble-string->xexpr ?

2015-11-03 Thread Matthew Butterick
I found this task challenging too, so I made a Scribble-derived DSL that's natively oriented toward making X-expressions, for instance: #lang pollen/markup ◊title{Bottles --- ◊italic{Abridged}} ◊(apply itemlist (for/list ([n (in-range 100 0 -1)]) ◊item{◊(format "~a" n) bottles.})) O

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
On Tue, Nov 3, 2015 at 8:07 PM, Jon Zeppieri wrote: > Ok, I just pushed an update to the tzinfo package. It make take a > little while for the package catalog to notice the change. > Actually, the package catalog already noticed it, so you should be able to update that package now. Thanks for th

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
Ok, I just pushed an update to the tzinfo package. It make take a little while for the package catalog to notice the change. -Jon On Tue, Nov 3, 2015 at 6:59 PM, Jon Zeppieri wrote: > On Tue, Nov 3, 2015 at 6:44 PM, William J. Bowman > wrote: >> On Tue, Nov 03, 2015 at 06:37:59PM -0500, Jon Ze

[racket-users] Scribble-string->xexpr ?

2015-11-03 Thread spdegabrielle
Hi, is there a way to to generate xexprs for consumption of the web server I thought making a simple wiki with scribble as the syntax might be fun, but I'm tripping at this first hurdle i.e. (scribblestring->xexpr a-string) ->xexpr Any suggestions appreciated Stephen #lang racket (require

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
On Tue, Nov 3, 2015 at 6:44 PM, William J. Bowman wrote: > On Tue, Nov 03, 2015 at 06:37:59PM -0500, Jon Zeppieri wrote: >> Okay, that is odd. I'll try reinstalling from scratch on my own machine to >> make sure I didn't introduce a bug at some point. That's also where my >> zoneinfo DB is too,

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread 'William J. Bowman' via users-redirect
On Tue, Nov 03, 2015 at 06:37:59PM -0500, Jon Zeppieri wrote: > Okay, that is odd. I'll try reinstalling from scratch on my own machine to > make sure I didn't introduce a bug at some point. That's also where my > zoneinfo DB is too, so I'd expect it to behave the same way. I am running > macos,

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
Okay, that is odd. I'll try reinstalling from scratch on my own machine to make sure I didn't introduce a bug at some point. That's also where my zoneinfo DB is too, so I'd expect it to behave the same way. I am running macos, but I don't see why that should make any difference. By the way, do

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread 'William J. Bowman' via users-redirect
I'm running Arch Linux, and the zoneinfo database is in /usr/share/zoneinfo. -- William J. Bowman On Tue, Nov 03, 2015 at 06:20:54PM -0500, Jon Zeppieri wrote: > > What OS are you using, and to you happen to know if/where the zoneinfo > database is on your system? If the problem is that your d

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
Though, looking at the stack trace, it seems like something in my path manipulation code is probably at fault. For some reason, it appears to be using a path that's prefixed with ../ when it shouldn't, but I'll need to know where your zoneinfo is to be sure. It's *probably* in /usr/share/zoneinf

Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
What OS are you using, and to you happen to know if/where the zoneinfo database is on your system? If the problem is that your database is in a location that Gregor doesn't expect, I'll be happy to fix that. If you don't have the database, at all (which would be odd for a modern UNIX), you can

[racket-users] Re: Revert to defaults - is *global* !

2015-11-03 Thread Brian Adkins
On Tuesday, November 3, 2015 at 5:55:58 PM UTC-5, Brian Adkins wrote: > On Tuesday, November 3, 2015 at 5:46:23 PM UTC-5, Brian Adkins wrote: > > This is my own fault, but maybe Dr Racket could be made a little clearer. I > > had hit -+ a few times to increase the font size, and I wanted to go >

[racket-users] Re: Revert to defaults - is *global* !

2015-11-03 Thread Brian Adkins
On Tuesday, November 3, 2015 at 5:46:23 PM UTC-5, Brian Adkins wrote: > This is my own fault, but maybe Dr Racket could be made a little clearer. I > had hit -+ a few times to increase the font size, and I wanted to go > back to the default. -0 did not work as expected, then I checked the > menu

[racket-users] Contract error when installing Gregor

2015-11-03 Thread 'William J. Bowman' via Racket Users
I get the following contract error when installed Gregor (the excellent date and time library) on my machine. Any one know if this is a problem with my setup and if so how to resolve? ; find-relative-path: contract violation ; expected: (and/c path-for-some-system? simple-form?) ; given: # ;

[racket-users] Revert to defaults - is *global* !

2015-11-03 Thread Brian Adkins
This is my own fault, but maybe Dr Racket could be made a little clearer. I had hit -+ a few times to increase the font size, and I wanted to go back to the default. -0 did not work as expected, then I checked the menus and didn't find anything. Then I pulled up preferences which opens to the Fo

Re: [racket-users] Evaluating whatever expression halfway a debugging session

2015-11-03 Thread 'John Clements' via Racket Users
> On Nov 3, 2015, at 12:32 PM, Alex Knauth wrote: > > >> On Nov 3, 2015, at 3:01 PM, 'John Clements' via Racket Users >> wrote: >> >>> On Oct 29, 2015, at 10:01 AM, Marco Faustinelli >>> wrote: > >>> I see that during a debugging session I can hover above an expression and >>> rightclick

Re: [racket-users] Evaluating whatever expression halfway a debugging session

2015-11-03 Thread Alex Knauth
> On Nov 3, 2015, at 3:01 PM, 'John Clements' via Racket Users > wrote: > >> On Oct 29, 2015, at 10:01 AM, Marco Faustinelli >> wrote: >> I see that during a debugging session I can hover above an expression and >> rightclick to send its value to the console or so set! it something else. >>

Re: [racket-users] Evaluating whatever expression halfway a debugging session

2015-11-03 Thread 'John Clements' via Racket Users
> On Oct 29, 2015, at 10:01 AM, Marco Faustinelli > wrote: > > This question has been asked in 2012 and the fact that no reply has been > posted makes me think this is a dead track. But nevertheless... > > I see that during a debugging session I can hover above an expression and > rightclick

Re: [racket-users] let/define

2015-11-03 Thread Neil Van Dyke
Holdouts who never adopted the new-fangled internal `define` still find `begin`'s semantics to be quite simple and intuitive. :) I suspect that people like internal `define` because it looks simpler than `let`. However, if simplicity is one's motivation for teaching internal `define` rather

Re: [racket-users] let/define

2015-11-03 Thread Éric Tanter
The naive model for begin is to think of it as a function that returns its last argument (assuming left-to-right evaluation). So that doesn’t scale. The example without begin you mention indeed behaves the same, and that follows from the model of “let has an implicit begin” that I tell them abo

Re: [racket-users] let/define

2015-11-03 Thread Scott Moore
I think its more a complexity of “define” than of “begin” (though begin is certainly tricky be because it can introduce and internal definition context). Your student’s program has the same behavior as this program without the begin, since the let also introduces a definition context: (let ([y

Re: [racket-users] What has happened to extflonum support in 32-bit nightly builds?

2015-11-03 Thread Matthew Flatt
At Tue, 03 Nov 2015 17:30:38 +0300, Dmitry Pavlov wrote: > Actually, extflonums in my 32-bit Windows installation > are supported on the first sight. But as soon as I run an actual > program, I get the following error message: > > unsafe-extfllong_double_mult: unsupported on this platform > > FWI

Re: [racket-users] What has happened to extflonum support in 32-bit nightly builds?

2015-11-03 Thread Dmitry Pavlov
Matthew, But current 32-bit Windows nightly builds do not provide it either. I did not notice when they stopped to provide it. When I try the 32-bit Windows builds, they seem to have extflonums enabled. Oh, sorry. It has turned out that I was jumping to conclusion on this one. Actually, ex

Re: [racket-users] let/define

2015-11-03 Thread Éric Tanter
Thanks all! This is helpful — the mental model of begin that I presented to my students was too simple to account for defines. -- Éric > On Nov 2, 2015, at 10:00 PM, Scott Moore wrote: > > The relevant part of the reference for these “internal definition contexts” > is here: > http://docs.r

Re: [racket-users] Feasibility of Racket for scientific and engineering calculations

2015-11-03 Thread John Kitchin
Thanks, your blog post very succinctly summarizes what I have been looking for as a feasibility analysis. We are in quite similar places of thinking about the scientific computing present and looking to the scientific computing future. It doesn't look like Racket (or anything) will be an easy repl

[racket-users] Feasibility of Racket for scientific and engineering calculations

2015-11-03 Thread Konrad Hinsen
John, > I am exploring whether Racket could be a Lisp replacement for > Python in scientific and engineering calculations. I currently use > Python extensively in teaching chemical engineering courses > (http://kitchingroup.cheme.cmu.edu/pycse/) and in running molecular > simulations (http://

[racket-users] Re: Feasibility of Racket for scientific and engineering calculations

2015-11-03 Thread Alexey Cherkaev
Hi John, I am a PhD student doing a degree in chemical engineering. I am doing some process modelling work using MIT-Scheme (scmutils to be precise) at the moment but I would like to port it to Racket, which is feasible, but does require some extra work: - Racket already has great plotting lib