Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-04-29 Thread Jens Axel Søgaard
Great news!

Worth a blog post to follow up on:

http://blog.racket-lang.org/2013/03/200_25.html
http://blog.racket-lang.org/2014/11/800.html

/Jens Axel



2015-04-29 1:38 GMT+02:00 Tim Brown t...@cityc.co.uk:

 Folks,

 I've just done a quick burst of cherry picking tasks on Rosetta
 Code (www.rosettacode.org). I took a quick look at:
 * http://rosettacode.org/wiki/Category:Tcl
 and
 *  http://rosettacode.org/wiki/Category:Racket

 And they both have the line:
 The following 845 pages are in this category, out of 845 total. 

 I *think* that means that both Tcl and Racket have 845 tasks impemented,
 but short of walking down a printout with a pen (and it's far to late to
 be doing that) -- I do believe that Tcl and Racket are now jointly the
 most popular programming languages on Rosetta Code.

 WELL DONE AND THANKS TO EVERYONE WHO HAS CONTRIBUTED (especially Racket)
 CODE ONTO ROSETTA CODE!

 And many, many thanks to the Racket team for producing a language which
 is now demonstrably as competent as any. (Although we all knew that before
 anyway, didn't we?)

 Tim

 --
 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 racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
-- 
Jens Axel Søgaard

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-04-29 Thread Jens Axel Søgaard
Perhaps one (you) could make a task demonstrating how to make new binding
constructs?

/Jens Axel


2015-04-29 12:44 GMT+02:00 Stephen De Gabrielle spdegabrie...@gmail.com:

 Are there any tasks suitable for Rosetta Code that are difficult or
 impossible in other languages like Python or TCL?
 (or Lisp, JavaScript, Self/Smalltalk, Forth ...)

 Kind regards,

 Stephen
 On Wed, 29 Apr 2015 at 07:57, Jens Axel Søgaard jensa...@soegaard.net
 wrote:

 Great news!

 Worth a blog post to follow up on:

 http://blog.racket-lang.org/2013/03/200_25.html
 http://blog.racket-lang.org/2014/11/800.html

 /Jens Axel



 2015-04-29 1:38 GMT+02:00 Tim Brown t...@cityc.co.uk:

 Folks,

 I've just done a quick burst of cherry picking tasks on Rosetta
 Code (www.rosettacode.org). I took a quick look at:
 * http://rosettacode.org/wiki/Category:Tcl
 and
 *  http://rosettacode.org/wiki/Category:Racket

 And they both have the line:
 The following 845 pages are in this category, out of 845 total. 

 I *think* that means that both Tcl and Racket have 845 tasks impemented,
 but short of walking down a printout with a pen (and it's far to late to
 be doing that) -- I do believe that Tcl and Racket are now jointly the
 most popular programming languages on Rosetta Code.

 WELL DONE AND THANKS TO EVERYONE WHO HAS CONTRIBUTED (especially Racket)
 CODE ONTO ROSETTA CODE!

 And many, many thanks to the Racket team for producing a language which
 is now demonstrably as competent as any. (Although we all knew that
 before
 anyway, didn't we?)

 Tim

 --
 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 racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




 --
 --
 Jens Axel Søgaard

  --
 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 racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

  --
 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 racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
-- 
Jens Axel Søgaard

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] google groups transition pretty much done

2015-04-29 Thread Neil Toronto

On 04/29/2015 12:06 PM, 'John Clements' via Racket Users wrote:

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 much as 9/13 of our old total but is 
more likely 9/17 of our old total—denominator is difficult to compute because 
of email overlap
- both mirrors are now working correctly.
- a few people pleased about things possible in the new interface, no lost 
features that I’m aware of.

In principle, the ‘announce’ list would be next, though I’m a bit leery of 
making extra work (‘please sign up here’) for people who may not really want to 
get a lot of e-mail.

(Suggestions appreciated.)


I suggest we thank John for carrying out this annoying drudgery whose 
results are good but unobservable to most of us.


Thanks, John. :)

Neil ⊥

--
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Handling concurrent requests in the web server

2015-04-29 Thread Jay McCarthy
Hi Tim,

I ran an experiment to test your servlet. The results are at this gist:

https://gist.github.com/jeapostrophe/f7fd1e48be19300b7b15

You'll see that I ran it with serve/servlet, benchmarked with

% ab -n 50 -c 5 http://localhost:9000/test 21 | tee ab.log

and that I got the expected number of 5 concurrent requests serviced at a time.

There is a bare possibility that it is working on OS X/my machine and
not on yours, but I am more suspect of how you tested concurrency.

Jay


On Mon, Apr 27, 2015 at 12:50 PM, Tim Brown tim.br...@cityc.co.uk wrote:
 Folks, I'm stuck!

 I have a servlet that wants to do the following:

 ;;---
 (define (start req)
   (define request-start/s (current-seconds))
   (printf REQUEST @ ~a~% request-start/s)
   ;; long I/O, fetch from a web service or some such
   (thread-wait (thread (λ () (sleep 10
   (define request-end/s (current-seconds))
   (begin0
 (response/full
  200
  #Okay
  request-end/s
  #text/plain
  null
  (list (string-bytes/utf-8
 (format request/response interval ~a - ~a
  request-start/s request-end/s
 (printf RESPONSE @ ~a :: ~a~% request-end/s #f)))
 ;;---

 No matter what I do my clients are serviced sequentially. I have tried:
  - using the plt-web-server
  - #lang web-server and racket command line
  - #lang web-server and drracket.

 REQUEST @ 1430151106
 RESPONSE @ 1430151116 :: #f
 REQUEST @ 1430151116
 RESPONSE @ 1430151126 :: #f

 So, a pair of requests which could be serviced in 10s + a tiny bit are
 taking 20s.

 How do I serve this servlet so that it handles requests in parallel.

 Thanks in advance,

 Tim

 --
 Tim Brown CEng MBCS tim.br...@cityc.co.uk
 
 City Computing Limited · www.cityc.co.uk
   City House · Sutton Park Rd · Sutton · Surrey · SM1 2AE · GB
 T:+44 20 8770 2110 · F:+44 20 8770 2130
 
 City Computing Limited registered in London No:1767817.
 Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
 VAT No: GB 918 4680 96

 --
 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 racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



-- 
Jay McCarthy
http://jeapostrophe.github.io

   Wherefore, be not weary in well-doing,
  for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great.
  - DC 64:33

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 much as 9/13 of our old total but is 
more likely 9/17 of our old total—denominator is difficult to compute because 
of email overlap
- both mirrors are now working correctly.
- a few people pleased about things possible in the new interface, no lost 
features that I’m aware of.

In principle, the ‘announce’ list would be next, though I’m a bit leery of 
making extra work (‘please sign up here’) for people who may not really want to 
get a lot of e-mail.

(Suggestions appreciated.)

John Clements


-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] google groups transition pretty much done

2015-04-29 Thread Norman Gray

 On 2015 Apr 29, at 18:06, Neil Toronto neil.toro...@gmail.com wrote:
 
 I suggest we thank John for carrying out this annoying drudgery whose results 
 are good but unobservable to most of us.

Hear hear!

Norman
(also doing some 'annoying drudgery' this week)


-- 
Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] google groups transition pretty much done

2015-04-29 Thread Vincent St-Amour
add1

Thanks John!

Vincent


At Wed, 29 Apr 2015 13:06:57 -0400,
Neil Toronto wrote:
 
 On 04/29/2015 12:06 PM, 'John Clements' via Racket Users wrote:
  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 much as 9/13 of our old total but 
  is more likely 9/17 of our old total―denominator is difficult to compute 
  because of email overlap
  - both mirrors are now working correctly.
  - a few people pleased about things possible in the new interface, no lost 
  features that I’m aware of.
 
  In principle, the ‘announce’ list would be next, though I’m a bit leery of 
  making extra work (‘please sign up here’) for people who may not really 
  want to get a lot of e-mail.
 
  (Suggestions appreciated.)
 
 I suggest we thank John for carrying out this annoying drudgery whose
 results are good but unobservable to most of us.
 
 Thanks, John. :)
 
 Neil ⊥
 
 -- 
 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 racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-04-29 Thread Alexander D. Knauth
Would it make sense to implement solutions for #lang sweet-exp racket ?

Alex Knauth

On Apr 28, 2015, at 7:38 PM, Tim Brown t...@cityc.co.uk wrote:

 Folks,
 
 I've just done a quick burst of cherry picking tasks on Rosetta
 Code (www.rosettacode.org). I took a quick look at:
 * http://rosettacode.org/wiki/Category:Tcl
 and
 *  http://rosettacode.org/wiki/Category:Racket
 
 And they both have the line:
 The following 845 pages are in this category, out of 845 total. 
 
 I *think* that means that both Tcl and Racket have 845 tasks impemented,
 but short of walking down a printout with a pen (and it's far to late to
 be doing that) -- I do believe that Tcl and Racket are now jointly the
 most popular programming languages on Rosetta Code.
 
 WELL DONE AND THANKS TO EVERYONE WHO HAS CONTRIBUTED (especially Racket)
 CODE ONTO ROSETTA CODE!
 
 And many, many thanks to the Racket team for producing a language which 
 is now demonstrably as competent as any. (Although we all knew that before
 anyway, didn't we?)
 
 Tim

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.