[racket-users] google groups transition pretty much done

2015-04-29 Thread 'John Clements' via Racket Users
TL;DR. All OK. Only if you’re interested, a brief status report on the transition to Google Groups: - all old users invited. - google groups still quarantines some things I wish it wouldn’t (just approved 2 posts from sketchy-sounding “McCarthy” person) - we now have 911 users, which may be as

Re: [racket-users] receiving a copy of my own mails to racket-users@googlegroups.com

2015-04-16 Thread 'John Clements' via Racket Users
On Apr 16, 2015, at 7:39 AM, Jos Koot jos.k...@gmail.com wrote: Hi I receive e-mails from racket-users@googlegroups.com. However, when I send an e-mail to racket-users@googlegroups.com I don't receive my own e-mail. Not a big problem. For the moment I include myself as CC. Any idea how

[racket-users] mailing list move status

2015-04-14 Thread 'John Clements' via Racket Users
This is a quick update on the move of the racket-users mailing list from mailman to google groups. It’s now been about 3 1/2 weeks since the move, and there are mercifully no major problems to report. The move has definitely cost us some members; we started with something like 2K users

Re: [racket-users] undefined identifier error

2015-04-10 Thread 'John Clements' via Racket Users
On Apr 7, 2015, at 3:24 PM, sam mos6...@gmail.com wrote: language used is R5RS You’re absolutely right; the R5RS language does not include the read-line function. You can read more about the R5RS language in this part of the racket documentation:

Re: [racket-users] Sending RESTful Commands using Racket

2015-06-17 Thread 'John Clements' via Racket Users
On Jun 17, 2015, at 11:38 AM, bruc...@gmail.com wrote: Thanks so much; however, I'm still having trouble getting the lights to respond. I had to alter your example somewhat, because Racket was complaining about an in-string: contract violation. The following seems to work: Oops forgot to

Re: [racket-users] Sending RESTful Commands using Racket

2015-06-17 Thread 'John Clements' via Racket Users
On Jun 17, 2015, at 8:35 AM, Alexis King lexi.lam...@gmail.com wrote: You probably want to use the net/http-client library, specifically the http-sendrecv function. I’m not 100% sure, but I’d guess that the equivalent Racket code for your curl command would look something like this.

[racket-users] http-sendrecv puts ##f in post-bytes if unspecified?

2015-06-17 Thread 'John Clements' via Racket Users
It appears to me that if you call http-sendrecv with a method of ‘POST, but fail to specify body bytes, that the request goes out with the two-byte string “#f” as the body. I can’t imagine that this would often be the right thing. Wouldn’t it make more sense just to signal an error if the

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-29 Thread 'John Clements' via Racket Users
On May 28, 2015, at 1:53 PM, George Neuner gneun...@comcast.net wrote: On Wed, 27 May 2015 08:34:11 -0700 (PDT), N N nawar.noo...@gmail.com wrote: I've been trying to set up Racket for evaluation purposes and due to being on CentOS with no root privileges, I've chosen the Racket minimal

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread 'John Clements' via Racket Users
On May 27, 2015, at 10:14 AM, N N nawar.noo...@gmail.com wrote: On Wednesday, May 27, 2015 at 5:39:05 PM UTC+1, johnbclements wrote: What version of Racket is this? John Clements 6.1.1 Minimal I did ten minutes of code spelunking, and here’s what I found: It appears that

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread 'John Clements' via Racket Users
On May 27, 2015, at 8:34 AM, N N nawar.noo...@gmail.com wrote: I've been trying to set up Racket for evaluation purposes and due to being on CentOS with no root privileges, I've chosen the Racket minimal distribution. I was able to compile it from source and run it and wanted to manually

Re: [racket-users] generalised set! in Racket

2015-06-30 Thread 'John Clements' via Racket Users
On Jun 30, 2015, at 8:10 AM, Alexey Cherkaev alexey.cherk...@gmail.com wrote: Hi Alexander, Thanks for your reply: I had something similar in mind (maybe I should check out math/array). I was just wondering if there was something more Racket-like (it still feels that SRFI is somewhat

Re: [racket-users] generalised set! in Racket

2015-06-30 Thread 'John Clements' via Racket Users
On Jun 30, 2015, at 3:43 PM, George Neuner gneun...@comcast.net wrote: that's just semantics. XD -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] saving a BMP in racket

2015-07-26 Thread 'John Clements' via Racket Users
On Jul 23, 2015, at 2:47 AM, copycat kangren.c...@gmail.com wrote: Yes, i can and will try with the old imagemagick bindings. On Thursday, July 23, 2015 at 6:28:00 AM UTC+8, johnbclements wrote: On Jul 20, 2015, at 4:11 AM, copycat kangren.c...@gmail.com wrote: Hi, not sure if this is

Re: [racket-users] saving a BMP in racket

2015-07-22 Thread 'John Clements' via Racket Users
On Jul 20, 2015, at 4:11 AM, copycat kangren.c...@gmail.com wrote: Hi, not sure if this is considered a bug? (send model save-file model1.bmp 'bmp) save-file in bitmap%: kind saving not yet implemented: 'bmp I found this link, and it's been 2 years since. Is it an update that will

Re: [racket-users] My son's game in Racket

2015-08-24 Thread 'John Clements' via Racket Users
On Aug 24, 2015, at 11:32 AM, John Carmack jo...@oculus.com wrote: The idea that you functionally compose images like this: (place-image image-1 x y (place-image image-2 x y (place-image image-3 x y))) Which draws image1 on top of image2 on top of image 3, which

[racket-users] best practice for drdr + interactive tests

2015-10-28 Thread 'John Clements' via Racket Users
I have tests that are timing out in drdr (mred-extensions.rkt) because they’re graphical tests that open a window and expect the user to inspect and close it. I don’t expect these tests to be run by drdr, but I don’t want to delete them. I can see the following choices: - Use info.rkt to

Re: [racket-users] Anybody done some "Internet of Things" stuff with Racket?

2015-11-10 Thread 'John Clements' via Racket Users
> On Nov 10, 2015, at 3:13 AM, Daniel Brunner wrote: > > Hi, > > has anybody done some "Internet of Things" stuff with Racket? I am > looking for some applications which use e.g. MQTT[*] either as a broker > or client and I couldn't find anything on the internet or in the

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

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 <alexan...@knauth.org> wrote: > > >> On Nov 3, 2015, at 3:01 PM, 'John Clements' via Racket Users >> <racket-users@googlegroups.com> wrote: >> >>> On Oct 29, 2015, at 10:01 AM, Marco Faustinelli >&g

Re: [racket-users] built with racket web-badge?

2015-10-08 Thread 'John Clements' via Racket Users
On Oct 8, 2015, at 2:48 PM, Ian Barland wrote:My question is this: has anyone created a “built with Racket” badge that I could put at the bottom of this page? The closest things I have are the Racket badge at the top of racket-lang.org, and the ancient “powered by PLT” and

Re: [racket-users] built with racket web-badge?

2015-10-08 Thread 'John Clements' via Racket Users
> On Oct 8, 2015, at 11:12 AM, Robby Findler > wrote: > > Oh yeah? Well _I_ promote him to Grand Chief Design Office (GCDO) > though the powers bestowed on my by our CEO (little does he care). > I’m up for full at the end of this year, and I admit that I was

[racket-users] TR + Vector containing opaque struct

2015-09-01 Thread 'John Clements' via Racket Users
I’m trying to use the database library db with TR, and I’ve run into a problem whose only workaround seems really nasty. Specifically, it concerns vectors (or lists, presumably) that contain opaque values. So, for instance, here’s foo1.rkt: #lang racket (provide return-a-list) (struct

[racket-users] http response 204 (no content) with content-encoding "gzip"

2015-09-02 Thread 'John Clements' via Racket Users
I’m interacting with an HTTP server that recently responded with status #"HTTP/1.1 204 No Content” and headers '(#"Content-Encoding: gzip" #"Request-Id: ec2f6fe5-5191-11e5-8007-” #"X-Influxdb-Version: 0.9.3” #"Date: Wed, 02 Sep 2015 16:44:48 GMT” #"Connection: close”) using

[racket-users] JFYI semi-repeatable seg fault during setup

2015-09-05 Thread 'John Clements' via Racket Users
I have a curious pattern of seg faults occurring durring setup; this is the third time now that make (or, more specifically, `make CPUS=2` and `make CPUS=4`) has caused a seg fault. Each time, it seg faults during compilation of … er … one of my packages. Here’s the last five lines of the most

[racket-users] can # structures be made transparent?

2015-09-02 Thread 'John Clements' via Racket Users
It appears to me that the # structure (as e.g. from net/url) is opaque. Is there any good reason for this? It’s kind of a pain (the default printer doesn’t show me the fields), and I don’t see any good reason for it, especially given the existence of url->string. I’d be happy to formulate this

Re: [racket-users] can # structures be made transparent?

2015-09-02 Thread 'John Clements' via Racket Users
string, I’m back to square one. Does this make sense? John > > On Wednesday, September 2, 2015, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: > It appears to me that the # structure (as e.g. from net/url) is opaque. > Is there any good reaso

Re: [racket-users] can # structures be made transparent?

2015-09-02 Thread 'John Clements' via Racket Users
to check if it comes to that) seems okay. But it’s already exposed….(and documented). John > > Robby > > On Wednesday, September 2, 2015, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: > > > On Sep 2, 2015, at 3:59 PM, Rob

Re: [racket-users] http response 204 (no content) with content-encoding "gzip"

2015-09-02 Thread 'John Clements' via Racket Users
sec10.html > > > On Wed, Sep 2, 2015 at 1:15 PM, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: >> I’m interacting with an HTTP server that recently responded with status >> >> #"HTTP/1.1 204 No Content” >> and headers >

[racket-users] PR accepted but didn't wind up on master?

2015-09-06 Thread 'John Clements' via Racket Users
A few days ago, I made a pull request (#1030) against plt/racket. Jay McCarthy approved it… but now I don’t see it on master. I’m guessing… that these commits need to be made to git.racket-lang.org instead, and then they get force-pushed to the github account. Is this correct? If so, I’ll just

Re: [racket-users] JFYI semi-repeatable seg fault during setup

2015-09-08 Thread 'John Clements' via Racket Users
> On Sep 5, 2015, at 4:16 PM, Matthew Flatt wrote: > > Can you send me the crash report (which you should be able to find with > the Console application under "User Diagnostics Reports")? > > Also, in case it's relevant, what was the last printout from place 0? I’m

Re: [racket-users] Automatic dependency fixer

2015-09-10 Thread 'John Clements' via Racket Users
> On Sep 9, 2015, at 12:52 PM, Jack Firth wrote: > > I've written a web service that wraps a useful script Sam wrote for > automatically creating a Github pull request to fix a package's dependencies. > The web service is linked to a Github account named Racket Package

Re: [racket-users] GLIBC >= 2.14, racket extension

2015-09-17 Thread 'John Clements' via Racket Users
that ancient > Linux installation, and then you're probably in good shape for the > foreseeable future. Got it. Many thanks! John > > At Thu, 17 Sep 2015 19:25:27 -0400, "'John Clements' via Racket Users" wrote: >> Okay, really, this question as not that much to do w

[racket-users] GLIBC >= 2.14, racket extension

2015-09-17 Thread 'John Clements' via Racket Users
Okay, really, this question as not that much to do with Racket, but… As part of the ‘portaudio’ package, there are a number of shared libraries. It turns out that I’m going to be teaching in a room running an ancient Linux (CentOS 6?), and when I try to start portaudio, I get an error message

Re: [racket-users] FFI and Packages

2015-09-28 Thread 'John Clements' via Racket Users
> On Sep 28, 2015, at 5:56 AM, Philip Blair wrote: > > Hello everyone, > I am considering a little project which will involve calling some FFI > functions in some C++ code. Now, since the Racket FFI binds to C, I know that > I'll need to make a wrapper file, which is

Re: [racket-users] Evolving camouflage with Racket games

2015-09-30 Thread 'John Clements' via Racket Users
> On Sep 30, 2015, at 2:28 AM, Dave Griffiths wrote: > > Hi all, > > I've been using racket lately to make open source citizen science games for > ecology and evolution research - Dazzlebug is designed to find out if zebra > like stripes evolve to confuse movement: > >

[racket-users] fail on http server response not actually a failure?

2015-10-05 Thread 'John Clements' via Racket Users
I have a long-running http server process, and I get a lot of error output that looks like this: fprintf: output port is closed context...: /home/clements/racket/share/pkgs/web-server-lib/web-server/http/response.rkt:52:0: output-response-head33

Re: [racket-users] Racket for Smartphone Apps

2015-09-24 Thread 'John Clements' via Racket Users
> On Sep 24, 2015, at 4:40 AM, Marc Kaufmann wrote: > > Hi all, > > I am about to start writing an app. Really all it will have to do (for now) > is to give the user a bunch of survey questions at several times (per day or > week or whatever). It does matter quite

Re: [racket-users] Cover 3.0

2015-09-24 Thread 'John Clements' via Racket Users
> On Sep 22, 2015, at 1:03 PM, Spencer Florence wrote: > > Hi all, > > We're pleased to announce the release of Cover 3.0! > > Cover is an extensible multi-file code coverage tool for Racket. You can read > more about it in our > README at

[racket-users] 1-d Haar wavelet transform?

2015-11-29 Thread 'John Clements' via Racket Users
I’m a bit of the way down this rabbit hole—I’ve written code to generate Haar basis functions for the slow n^2 decomposition on 1-d arrays—so before I go any further, is there already a library that does this in Racket? Thanks! John -- You received this message because you are subscribed to

Re: [racket-users] Using DrRacket as s-expression editor

2015-12-03 Thread 'John Clements' via Racket Users
> On Dec 3, 2015, at 1:44 AM, Klaus Ostermann wrote: > > What would be the simplest way to use DrRacket as an editor for a file > containing an s-expression? > > Is there some pre-existing #lang that one could add to the file such that > DrRacket doesn't complain? > >

[racket-users] The case for TR, part 772

2015-12-03 Thread 'John Clements' via Racket Users
Trying to figure out why my code was working today when it shouldn’t have, I came across this predicate that I was using in various contracts: (define (note? n) (listof (list/c bytes? any/c))) … oops. Wouldn’t have happened in TR. Ah well. John -- You received this message because you are

Re: [racket-users] survey/quiz construction tool?

2015-12-14 Thread 'John Clements' via Racket Users
> On Dec 14, 2015, at 1:17 PM, Sam Tobin-Hochstadt wrote: > > I think you're looking for > http://people.cs.uchicago.edu/~jacobm/pubs/topsl.pdf for which an > extended version appears in the Redex book. Yep, that’s the one. Thanks! John -- You received this message

Re: [racket-users] Typed Racket: Is (- 1 1) equivalent to (- 2 2)?

2015-12-10 Thread 'John Clements' via Racket Users
> On Dec 10, 2015, at 9:26 AM, Klaus Ostermann wrote: > > This Typed Racket term is well-typed: > > (+ 1 (if (= 0 (- 1 1)) 1 "x")) > > This one isn't: > > (+ 1 (if (= 0 (- 2 2)) 1 "x")) > > This looks a bit strange to me, because usually one would expect >

Re: [racket-users] Crash when installing 'boris' package from GitHub URL on OSX 10.6.8

2015-12-10 Thread 'John Clements' via Racket Users
> On Dec 9, 2015, at 10:59 PM, David K. Storrs wrote: > > On Wednesday, December 9, 2015 at 6:33:02 PM UTC-8, Neil Van Dyke wrote: >> David K. Storrs wrote on 12/09/2015 08:50 PM: >>> 1) Is there a web-spidering package that people recommend? I could use >>> wget and

[racket-users] survey/quiz construction tool?

2015-12-14 Thread 'John Clements' via Racket Users
I have a pretty clear recollection that someone around here… Ryan? wrote a paper based on a tool that produced surveys/quizzes. Perhaps it involved a DSL? Actually, I’m not so interested in the DSL, but I’m hoping I can borrow some infrastructure—a survey/quiz contains a sequence of questions,

Re: [racket-users] warning on use trie functions in #lang racket?

2016-01-05 Thread 'John Clements' via Racket Users
na.edu> wrote: > > Yes, I think a warning at the top of the documentation for the `pfds` package > would make sense, and probably Asumu would accept such a pull request. You > might follow the phrasing in the math/array library. > > Sam > > On Tue, Jan 5, 2016 at 1

[racket-users] warning on use trie functions in #lang racket?

2016-01-05 Thread 'John Clements' via Racket Users
This program constructs a trie containing exactly two keys; each is a list of 256 integers. On my machine, it takes *twelve seconds*. The time taken appears to be n^2 in the length of the key, so doubling it to 256 means it’ll take about a minute to add a key. #lang racket (require pfds/trie)

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread 'John Clements' via Racket Users
> On Jan 7, 2016, at 2:57 PM, David Storrs wrote: > > So, I'm now doing this: > > (require (planet neil/html-parsing:3:0) (planet neil/xexp:2:0)) > > Those loaded just fine right off, although I needed to figure out raco pkg > install sxml was necessary, but I got

[racket-users] Problem with PLAI

2016-01-07 Thread 'John Clements' via Racket Users
> On Jan 7, 2016, at 2:08 AM, sagar tripathy wrote: > > During adding a tech-pack of type #lang plai , Error is showing what is the > right process to overcome it. > > prog is like : > > #lang plai > Can you provide a two-line program that illustrates the problem?

Re: [racket-users] Anyone attending RacketCon but *not* Strange Loop ?

2016-06-08 Thread 'John Clements' via Racket Users
> On Jun 7, 2016, at 1:07 PM, Brian Adkins wrote: > > Just out of curiosity, is anyone attending RacketCon, but not attending > Strange Loop? > > I'm probably in the minority, but there don't seem to be enough compelling > sessions this year for me (although I'd love

Re: [racket-users] Re: I can't open my previous file

2016-06-06 Thread 'John Clements' via Racket Users
> On Jun 6, 2016, at 8:45 AM, George Neuner wrote: > > On Mon, 6 Jun 2016 13:34:41 +0100, Laurent > wrote: > >> Ah, so you meant MrEd Designer (MED) then, I wasn't sure :) >> (mred was the previous GUI lib, part of DrScheme, whereas MED is an >>

[racket-users] Strange Loop registration

2016-06-06 Thread 'John Clements' via Racket Users
Strange Loop Registration is opening this Wednesday at Noon, and as I found out to my chagrin last year, those tickets do sell out *extremely* quickly. I see that the page for RacketCon is up, but I don’t think I’ve seen notice of it on the users mailing list, and it also looks to me like the

[racket-users] ultimate performance tuning

2016-06-06 Thread 'John Clements' via Racket Users
Having trouble making the most use of your machine during Racket setup tasks? Try specifying a non-integer number of CPUs! clements@desmond:~/git-clements/pkgs/jbc-utils$ raco setup -j 6.972 shelly

Re: [racket-users] I can't open my previous file

2016-06-05 Thread 'John Clements' via Racket Users
> On Jun 5, 2016, at 8:18 PM, 张可星 wrote: > > When I open my file ,Dr racket told me as below > > `在读取/home/richard/桌面/TheGame.rkt时出现错误. > insert-file in text%: error loading the file (read-from-file-failed)` > > all my code are lost ,what can I do now? > I use Drracket

[racket-users] bug in TR or just limitation?

2016-05-27 Thread 'John Clements' via Racket Users
I have a funny case in TR where occurrence typing loses information about the type of a term: #lang typed/racket (: expand (Sexp -> Sexp)) (define (expand s) (match s [(list (? symbol? id) a ...) s])) This fails to type check, because the occurrence of ’s’ in the rhs of the match

Re: [racket-users] bug in TR or just limitation?

2016-05-27 Thread 'John Clements' via Racket Users
> On May 27, 2016, at 1:50 PM, Alex Knauth <alexan...@knauth.org> wrote: > > >> On May 27, 2016, at 4:24 PM, 'John Clements' via Racket Users >> <racket-users@googlegroups.com> wrote: >> >> I have a funny case in TR where occurrence typing l

Re: [racket-users] putting stx in TR structs

2016-06-21 Thread 'John Clements' via Racket Users
> On Jun 21, 2016, at 5:19 AM, Sam Tobin-Hochstadt wrote: > > Yes, that's the problem. Also 3d syntax is a potential problem. Perhaps the > new macro expander that Matthew is working on will enable chaperones for > syntax. Okay, so I woke up this morning and tried a

[racket-users] WurstfagottCon

2016-06-22 Thread 'John Clements' via Racket Users
So… I name some of my machines after medieval instruments. Crumhorn, sackbut. Time for a new one. List of medieval instruments? Sure, here’s one. Oh, look! There’s one called the Rackett! Let’s see. Hmm… turns out the Rackett represents the pinnacle of medieval ingenuity, and sounds

[racket-users] putting stx in TR structs

2016-06-20 Thread 'John Clements' via Racket Users
Alas, ensnared again by TR the seductress. Why must you raise my hopes only to dash them again? To be more specific: I want to use TR to specify types for some of the stepper’s structures. However, structures containing syntax objects are giving me fits. Here’s a simple program: #lang racket

[racket-users] interested in TR internal error?

2016-06-24 Thread 'John Clements' via Racket Users
I was in the middle of editing a TR file, and I got this error: ../../racket/racket/share/pkgs/typed-racket-lib/typed-racket/utils/tc-utils.rkt:270:0: Internal Typechecker Error: contract-def-property: thunk called too early This should only be called after the type-checking pass has finished.

Re: [racket-users] warning on use trie functions in #lang racket?

2016-01-10 Thread 'John Clements' via Racket Users
> On Jan 9, 2016, at 7:00 PM, Sam Tobin-Hochstadt wrote: > > Here's an initial pull request: https://github.com/takikawa/tr-pfds/pull/6 > > It runs John's test case in about 2 ms, instead of multiple seconds. Many thanks! John -- You received this message because you

[racket-users] opinion on sxml test case?

2016-01-18 Thread 'John Clements' via Racket Users
I’m patching up old test cases for sxml that haven’t been run recently. Here’s one: (check-equal? (sxml->html '(p (@ (align "center") (atr "")) "bad chars:" (em "<>&\""))) "bad chars: ”) This test case suggests that attributes like “”

Re: [racket-users] interested in TR internal error?

2016-06-25 Thread 'John Clements' via Racket Users
> On Jun 24, 2016, at 1:15 PM, Alex Knauth <alexan...@knauth.org> wrote: > > >> On Jun 24, 2016, at 1:13 PM, 'John Clements' via Racket Users >> <racket-users@googlegroups.com> wrote: >> >> I was in the middle of editing a TR file, and I got this

Re: [racket-users] catalog of built packages

2016-02-10 Thread 'John Clements' via Racket Users
> On Feb 10, 2016, at 7:04 AM, Matthew Flatt wrote: > > In case it's useful to anyone, the package-build service now provides > built versions of packages though this catalog: > > https://pkg-build.racket-lang.org/server/built/catalog/ > > Built packages can install

Re: [racket-users] Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2016-02-04 Thread 'John Clements' via Racket Users
> On Feb 3, 2016, at 1:02 PM, Mark Lee wrote: > > To All, > > This message has been chronically sent to the mailing list. Can we classify > it as spam and unrelated to the Racket Language? It looks like this is the third time. I had already banned the first user posting

[racket-users] using TR in PL class?

2016-02-09 Thread 'John Clements' via Racket Users
I’m running a fairly vanilla pre-pyret PLAI class, using the plai-typed language. Has anyone looked into doing this using Typed Racket? I feel like my interactions with TR have gotten sufficiently smooth that I might try using it for my PL class. Potential problems: - mismatch with PLAI

Re: [racket-users] Playing sound

2016-01-28 Thread 'John Clements' via Racket Users
> On Jan 27, 2016, at 6:02 PM, Lehi Toskin wrote: > > On Wednesday, January 27, 2016 at 11:41:06 AM UTC-8, Jordan Johnson wrote: >> Hi all, >> >> >> I'm looking at audio again because I have a student doing a game project for >> which he wants background music to play

Re: [racket-users] [HtDP/2e & ISL+] Stepper and "seeming" accidental name capture

2016-01-28 Thread 'John Clements' via Racket Users
> On Jan 28, 2016, at 9:31 AM, Alex Knauth wrote: > > Would there be a way to support check-syntax arrows automatically in the > stepper, so that we could see that they are really two different y's, because > the arrows point to different places? Would that be possible?

[racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread 'John Clements' via Racket Users
I have several students who are observing truly impressive UI delays in using DrRacket. Specifically, it often happens when they type a double-quote (“) with “automatic parentheses” enabled, and after typing the key, it will take more than 16 seconds for the screen to update and for the quotes

Re: [racket-users] Top Level Variables or List of Shared Libraries

2016-01-19 Thread 'John Clements' via Racket Users
> On Jan 19, 2016, at 11:14 AM, Leif Andersen wrote: > > Is it possible to either create a variable that persists until the > Racket VM shuts down or get a list of all of the libraries that are > shared libraries that are currently being linked against the racket > vm? I

[racket-users] #"HTTP/1.1 500 Okay" ??

2016-01-23 Thread 'John Clements' via Racket Users
It looks to me like an exception occurring in serve/servlet is issuing a response that begins with #"HTTP/1.1 500 Okay” To the best of my knowledge, 500 represents an internal server error, and this header looks like a bug. Is this behavior correct or incorrect? (I should clarify that this

Re: [racket-users] DrRacket Coverage

2016-02-15 Thread 'John Clements' via Racket Users
> > I think that by the time they work hard to cover everything and the > coverage colors disappear they quickly jump to a conclusion that > something is wrong. -- I even have the server report to them about > uncovered code, but even that doesn't help. > > In case it wasn't clear -- this is

Re: [racket-users] DrRacket Coverage

2016-02-15 Thread 'John Clements' via Racket Users
n, Feb 15, 2016 at 3:06 PM, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: >>> >>> I think that by the time they work hard to cover everything and the >>> coverage colors disappear they quickly jump to a conclusion that >>> som

Re: [racket-users] DrRacket Coverage

2016-02-15 Thread 'John Clements' via Racket Users
change to both the HtDP languages and the “the racket language” language, though I think the case is stronger for the HtDP languages (in that they are used more often by students who have a harder time figuring things like this out). John > > Robby > > On Mon, Feb 15, 2016 at 3:50 P

Re: [racket-users] DrRacket Coverage

2016-02-15 Thread 'John Clements' via Racket Users
hat would be a good thing, and draw attention to the message. John > > Robby > > On Mon, Feb 15, 2016 at 4:05 PM, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: >> >>> On Feb 15, 2016, at 2:00 PM, Robby Findler <ro...@eecs.north

Re: [racket-users] DrRacket Coverage

2016-02-16 Thread 'John Clements' via Racket Users
> On Feb 16, 2016, at 6:48 AM, Robby Findler > wrote: > > Anyway, I pushed something that matches the predicate that's already > implemented, reflecting it into the GUI. It probably doesn't bounce as > much as Eli & John hope, but maybe it is okay for now. > >

Re: [racket-users] How to shut down racket webserver without sudo kill?

2016-03-10 Thread 'John Clements' via Racket Users
> On Mar 10, 2016, at 12:26 PM, Marc Kaufmann wrote: > > Hi, > > tl;dr : What is the 'best' way to start and stop a web server? Is there a > "racket-server die" or similar command which does not use 'kill’? The web server is a standard process, not daemonized or

Re: [racket-users] How to shut down racket webserver without sudo kill?

2016-03-10 Thread 'John Clements' via Racket Users
> On Mar 10, 2016, at 12:46 PM, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: > > >> On Mar 10, 2016, at 12:26 PM, Marc Kaufmann <marc.kaufman...@gmail.com> >> wrote: >> >> Hi, >> >> t

Re: [racket-users] Redirect port 80 to 443?

2016-03-10 Thread 'John Clements' via Racket Users
> On Mar 10, 2016, at 1:39 PM, Marc Kaufmann wrote: > > Hi all, > > I am trying to redirect HTTP requests to the web server (on port 80) to HTTPS > request on port 443. Is there an easy way to do this? I found the following > answer from 2012, but figured that

Re: [racket-users] Web server catch exceptions, print stack trace to error-logs, display simple page to user

2016-03-18 Thread 'John Clements' via Racket Users
> On Mar 17, 2016, at 4:48 PM, Marc Kaufmann wrote: > > Yep, printing that out is indeed all I want. I hadn't thought about the fact > that 'print and 'display will show up in standard output. > > John, how do you use drrackt's log handlers, are you running the

Re: [racket-users] Web server catch exceptions, print stack trace to error-logs, display simple page to user

2016-03-18 Thread 'John Clements' via Racket Users
> On Mar 17, 2016, at 11:50 AM, Marc Kaufmann wrote: > > Hi all, > > I do not want people to see "Contract violation: massive stack trace > documenting my brilliance as a programmer" every time they hit a bug on my > website. > > Currently I show them simply an

[racket-users] for/vector with accumulator?

2016-03-11 Thread 'John Clements' via Racket Users
Often, mutation provides “obvious” ways to do things that may be more difficult to do without it. Here’s one that I came across today: for/vector with an accumulator. In this case, I want to create an array of length ’n’ where each cell contains a list of n copies of the symbol ‘zzz. That is,

Re: [racket-users] 6.4 + universe has mouse-based hiccups

2016-04-07 Thread 'John Clements' via Racket Users
> On Apr 7, 2016, at 8:34 AM, Matthew Flatt wrote: > > It looks like it's not a question of running DrRacket for a while, but > of having multiple tabs in DrRacket. And, more specifically, it's not > about DrRacket, but about showing a window containing a `tab-panel%` >

Re: [racket-users] Playing sound

2016-04-06 Thread 'John Clements' via Racket Users
> On Apr 6, 2016, at 11:26 AM, Jordan Johnson wrote: > > Hey, so I’m now looking at how to set up background music in rsound with the > ability to switch tracks. Below is the suggestion from John Clements that > seems right: >>> I’m guessing you’re looking for an

Re: [racket-users] 6.4 + universe has mouse-based hiccups

2016-04-06 Thread 'John Clements' via Racket Users
> On Apr 6, 2016, at 9:02 AM, Matthew Flatt wrote: > > If the problem happens after DrRacket has been running for a while, > then that's good information and definitely a problem to investigate. I can confirm that (after 3-5 hours of development work) the problem is back.

[racket-users] "table" data structure in Racket

2016-04-05 Thread 'John Clements' via Racket Users
I’ve been dabbling in data analysis in Racket for the last few months, and one thing that’s become immediately obvious is that we don’t have a nice notion of a “table”. I believe that the natural notion of a “table” here is more or less the same in R and in databases: A table consists of a set

Re: [racket-users] Playing sound

2016-04-06 Thread 'John Clements' via Racket Users
> On Apr 6, 2016, at 4:31 PM, Jordan Johnson wrote: > > On Apr 6, 2016, at 15:18, John Clements wrote: >> 1) The “stop” procedure is a giant end-of-the-world hammer; I wouldn’t >> expect it to be useful while a program is running. > > OK. It

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

2016-04-06 Thread 'John Clements' via Racket Users
I’m trying to create a simple fixed animation with about 2k polygons moving on a simple background. Not surprisingly, things start to slow down pretty badly once I’m animating 2k polygons at a time, even when every one of these polygons is (freeze (rectangle 5 5 ‘solid ‘blue)). My question is

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

Re: [racket-users] Messing with 2htdp/image & universe, got a weird problem

2016-04-10 Thread 'John Clements' via Racket Users
> On Apr 10, 2016, at 8:19 AM, Wesley Bitomski > wrote: > > Attached is some source code I've been playing with. I'm trying to come up > with an approximate simulation of gravity between a very massive (but > inertia-less) mouse cursor and a handful of

Re: [racket-users] 6.4 + universe has mouse-based hiccups

2016-04-06 Thread 'John Clements' via Racket Users
to restart DrRacket earlier; I suppose this can be seen as a tribute to my belief in its stability? Thanks again for your time. John > > At Wed, 06 Apr 2016 00:17:51 -0400, "'John Clements' via Racket Users" wrote: >> I just wrote a simple 2htdp/universe program that an

[racket-users] 6.4 + universe has mouse-based hiccups

2016-04-05 Thread 'John Clements' via Racket Users
I just wrote a simple 2htdp/universe program that animates a moving green rectangle. I was expecting to scale up to larger #s of rectangles, but I discover that moving the mouse affects the animation quite seriously. Specifically, moving the mouse in a small smooth circle causes the green

Re: [racket-users] "table" data structure in Racket

2016-04-05 Thread 'John Clements' via Racket Users
> On Apr 5, 2016, at 12:19 PM, Jens Axel Søgaard wrote: > > Perhaps Ray Racine's library? > > https://github.com/RayRacine/munger/tree/master > > Look at the munger/frame/frame.rkt I took a look, but… no docs. Also, I like the idea of a fairly thin skin over an

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

2016-04-07 Thread 'John Clements' via Racket Users
> On Apr 7, 2016, at 7:58 AM, Jay McCarthy wrote: > > mode-lambda is intended for this kind of work load. Try taking the demo, > going to the "rand" workload (line 140) and change in the in-range for W to > something like (* 10 W) (which would be 2.5k) and evaluating

Re: [racket-users] Racket -> HTML+JavaScript using Urlang and Ractive

2016-03-19 Thread 'John Clements' via Racket Users
> On Mar 16, 2016, at 5:56 AM, Daniel Prager wrote: > > Awesomely, Jens has been working on Urlang: a Racket-ish syntax for > JavaScript, using the nanopass compiler infrastructure: > > https://github.com/soegaard/urlang Looks very cool. I’ll use this the next time

[racket-users] TR exhaustive match?

2016-03-23 Thread 'John Clements' via Racket Users
Is there a way in TR to ensure that a match is exhaustive at type-checking time? It seems to me like the right design would be a special TR form that goes in expression positions and always signals a type error. … Actually, I did a bit of exploring, and it looks like I can almost "roll my

Re: [racket-users] TR exhaustive match?

2016-03-23 Thread 'John Clements' via Racket Users
> On Mar 23, 2016, at 9:48 AM, Sam Tobin-Hochstadt <sa...@cs.indiana.edu> wrote: > > On Wed, Mar 23, 2016 at 12:47 PM, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: >> Is there a way in TR to ensure that a match is exhaustive at type-che

[racket-users] DrR: meta-q just worked!

2016-03-04 Thread 'John Clements' via Racket Users
I was editing scribble code, and by reflex, typed meta-q to reflow the text. I was somewhat astonished when it worked. Is this a recent change? I think I take DrRacket for granted way too often. Many, many thanks for an awesome IDE. John -- You received this message because you are

[racket-users] function minimization

2016-03-02 Thread 'John Clements' via Racket Users
I’m trying to minimize a function. It’s a continuous function made up of piecewise well-behaved functions of the form (k_0 / x) +( k_1 / x^2). It’s not hard to solve these analytically, but since they’re piecewise functions each with different coefficients, I figured I’d ask first: does the

Re: [racket-users] function minimization

2016-03-02 Thread 'John Clements' via Racket Users
y). > > Maybe you can combine the approach with golden section > search to hone in on a more precise value? > > /Jens Axel > > > > > > > 2016-03-02 18:36 GMT+01:00 'John Clements' via Racket Users > <racket-users@googlegroups.com>: > I’m trying to mini

  1   2   3   4   5   >