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
Oh dear!
That didn't last long. It seems, that Racket now has 846 tasks.
It is now no longer the /joint/ most popular programming language
on Rosetta Code.
Tim
On Wednesday, 29 April 2015 00:38:53 UTC+1, Tim Brown wrote:
I do believe that Tcl and Racket are now jointly the
most popular
David,
Jay proved to me that the web-server was working with an experiment
involving Apache Bench (ab); which is a nifty tool, I must say!
I'm still no wiser as to why the browser serialises GETs to a single
server. Hypothetically, if I wanted to AJAX the replies from my script
into two divs --
.
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
I wonder if base64-encode should rather be patched with a #:last-newline?
(Default #t) argument.
Tim
On 7 May 2015 17:37:18 BST, Tim Brown tim.br...@cityc.co.uk wrote:
Folks,
I've just tried to use web-server/http-digest-auth, and
it seems that make-digest-auth-header generates an invalid
often than keeping it.
On May 7, 2015 2:22 PM, Tim Brown t...@timb.net wrote:
I wonder if base64-encode should rather be patched with a #:last-newline?
(Default #t) argument.
Tim
On 7 May 2015 17:37:18 BST, Tim Brown tim.br...@cityc.co.uk wrote:
Folks,
I've just tried to use web-server/http
(temporarily) to my install?
Should I have used raco?
Some fancy gittery?
Regards,
Tim
-- Tim Brown CEng MBCS tim.br...@cityc.co.uk
City Computing Limited · www.cityc.co.uk
City House · Sutton Park Rd
://rosettacode.org/wiki/Category:Tcl#mw-pages
http://rosettacode.org/wiki/Category:Racket#mw-pages
This is what I based my announcement on.
Which give Tcl 851 and Racket 850.
So it looks like game on, people!
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
the header to be truncated (and
therefore invalidated) by my browser. I don't know if it's actually
upsetting my call to response; but in any case it's a problem.
I'm also not sure if there should also be a comma between the nonce and
opaque.
I've put together a patch for your perusal.
tim-brown-patch
Folks,
I'm trying to write a shuffle function in TR, composed of a
Cutter function and a Riffler function. I start with a
few types and implementations for a cutter and a riffler.
The shuffler is basically (riffle (cut deck)):
--
#lang
))
Sam
On Mon, May 18, 2015 at 4:15 AM Tim Brown t...@timb.net
mailto:t...@timb.net wrote:
I have tried everything (with the exception of the right thing) to mould
this function to my will:
- used longhand types rather than the define-types Riffler, Cutter and
Shuffler
- All'ed
libraries and all sorts; which make it even less economical to
include.
Regards,
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
City Computing Limited · www.cityc.co.uk
City House · Sutton Park Rd
?
Tim Brown
--
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.
. there is a `scribble/lp2' language
Is it now possible to write test cases in a `test' sub-module of a
literate program for testing with `raco test'?
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
City Computing Limited
Thank you Matt. I'm glad that, for once, it wasn't the result of my failure to
set something up!
Regards,
Tim
(Apologies for whatever format this message comes in... I'm using the google
mobile groups app)
--
You received this message because you are subscribed to the Google Groups
Racket
Thank you Matt. I'm glad that, for once, it wasn't the result of my failure to
set something up!
Regards,
Tim
(Apologies for whatever format this message comes in... I'm using the google
mobile groups app)
--
You received this message because you are subscribed to the Google Groups
Racket
Thank you Matt. I'm glad that, for once, it wasn't the result of my failure to
set something up!
Regards,
Tim
(Apologies for whatever format this message comes in... I'm using the google
mobile groups app)
--
You received this message because you are subscribed to the Google Groups
Racket
a conflict in my branch
changes)
· Do I reimplement the changes (not a problem except a new PR would lose
the old PR's comments which I'm not sure is a good thing)
· Can someone take it over? (That would be me inflicting work on others)
Any suggestions would be well received.
Tim
--
Tim
is the correct pattern for writing unit tests in scribble/lp
modules (basically so I can raco test all my .rkt files)?
· Am I just /missing something/ as per usual?
· Should I use the first style, and re-export m through a second file?
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
. Remember how no one likes a dirty
fork, so we’re diligently using git pull --ff-only upstream
master?
That's been well drilled into my (mostly by Greg's doc). Which is why
I'm asking before doing anything!
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
Is there something wrong with this question? This issue has been bugging
me for a while :-/
Tim
On Thursday, July 2, 2015 at 12:24:00 PM UTC+1, Tim Brown wrote:
I have the following scribble module (in /tmp/tim.rkt)
#lang scribble/lp
@(chunk
*
(module m racket
(provide x
Thank you Vincent.
Tim
On 12/08/15 15:19, Vincent St-Amour wrote:
Hi Tim,
It looks like your PR accidentally fell through the cracks. Sorry about
that.
I'll have a look at it today.
Thanks again for your contributions!
Vincent
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
/6.2.1-d --enable-backtrace
--disable-strip --enable-noopt
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
On 17/08/15 15:02, Tim Brown wrote:
I am observing a memory leak with place-channels. I have long-lived (or
very busy server “places” ) which I think are exhausting VM memory and
causing spectacular failures -- core dumps, spins and other fun I came
to Racket to avoid. Please could someone
On 17/08/15 15:15, Tim Brown wrote:
To explain my need of insane numbers of places, I [...]
I mean place-channels, the population of places is fixed.
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
City
17, 2015 at 10:03 AM Tim Brown tim.br...@cityc.co.uk
mailto:tim.br...@cityc.co.uk wrote:
Folks,
I am observing a memory leak with place-channels. I have long-lived (or
very busy server “places”) which I think are exhausting VM memory and
causing spectacular failures -- core
is just too
horrible to contemplate :-O . And send brave souls like you to face the
horrors. Thanks for volunteering.
I've pushed a repair as commit 641c56b6e9. I expect that patch would
apply cleanly to v6.2.1.
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
, Tim Brown wrote:
On 06/08/15 11:29, Tim Brown wrote:
(define node (create-place-node localhost #:listen-port 6344))
;; [!] this prints out (to stdout) (6344)
As a minor side issue, create-place-node prints what looks like a
list of the listen port number to standard out. (Or it prints
Thanks Eli.
On 13/08/15 18:30, Eli Barzilay wrote:
On Mon, Aug 10, 2015 at 5:35 AM, Tim Brown tim.br...@cityc.co.uk wrote:
Folks,
The “PLT Scheme” website, as was, had a set of preview pictures along
the left hand side which scrolled in a “fish-eyed” kind of way (you
either know what I’m
; but please could someone look at
this PR and let me know whether there is anything wrong with it,
anything I can do, or any other feedback.
Again apologies for the impatience; but, in my experience, occasionally
things need a nudge :-)
Tim
https://github.com/plt/racket/pull/948
--
Tim Brown
On 12/08/15 17:20, Vincent St-Amour wrote:
Pull request merged.
Super!
Thanks again for your contributions, and sorry again for the delay.
They're nothing compared to what you guys are doing all the time. :-)
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
--
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
://www.convextech.ca/~m4burns/pqnotify/
If nothing else works, this undocumented chunk of code with external
dependencies will let you do what you want.
Cheers,
Marc
On Jul 14, 2015, at 10:20 AM, Tim Brown tim.br...@cityc.co.uk
mailto:tim.br...@cityc.co.uk wrote:
Folks,
I have an application
be appreciated.
[1] Ironically: if this query is included, NH is called, because the
notifcation is posted before the query returns.
[2] http://www.postgresql.org/docs/9.4/static/sql-notify.html
Regards,
Tim
--
Tim Brown CEng MBCS tim.br...@cityc.co.uk
setting, putenv some environment variables then test again?
I can do this out of a sandbox, but would this be a usual approach?
Tim
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing Limited · www.ci
in the net library.
Regards,
Tim
On 19/10/15 12:56, Jay McCarthy wrote:
> On Mon, Oct 19, 2015 at 6:16 AM, Tim Brown <tim.br...@cityc.co.uk> wrote:
>> Folks,
>>
>> I’m coming close to writing unit tests for my “URL proxies from the
>> environment” code.
>
I’m having a truly difficult time documenting this.
I have cloned out my (not quite ready to release any more)
tim-brown/racket repo. Checked out the proxy-servers-from-env branch;
which has the changes in url.rkt:
https://github.com/tim-brown/racket/blob/proxy-servers-from-env/racket/collects
widespread enough.
> Changing a variable before starting specific command is not hard per se, and
> it's not hard to have some alias for it:
> `http_proxy=$PLT_HTTP_PROXY racket ...`
>
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
━
aren't.)
>
>The docs and tests look fine otherwise if the other crew like this
>design.
>
>Jay
>
>On Mon, Oct 19, 2015 at 10:16 AM, Tim Brown <tim.br...@cityc.co.uk>
>wrote:
>> Jay,
>>
>> PR#1089 has changes to allow current-proxy-servers and
>>
On Wed, Oct 14, 2015 at 4:32 AM, Tim Brown <tim.br...@cityc.co.uk> wrote:
>> I was (still am, in fact) in two minds about using a standard proxy or
>> using an “application-specific” prefix. I’ve got to document and test
>> the new code; while I’m doing that anyone who wants
documented in the PR at the moment.
Could someone form an opinion of this PR for me :-)
Thanks,
Tim
On Friday, October 9, 2015 at 2:39:26 PM UTC+1, Tim Brown wrote:
> Is there any merit in taking the current environment variable values
> (on UNIX at least) of “proxy”, “http_proxy” and “https
:
> If there are standard variables, I think it would be great to take them.
>
> On Fri, Oct 9, 2015 at 9:39 AM, Tim Brown <tim.br...@cityc.co.uk
> <mailto:tim.br...@cityc.co.uk>> wrote:
>
> Is there any merit in taking the current environment variable values
>
Is there any merit in taking the current environment variable values
(on UNIX at least) of “proxy”, “http_proxy” and “https_proxy” and
loading them by default into current-proxy-servers? (net/url.rkt l.26)
Are these even the right variables to go for?
What do we think?
Tim
--
Tim Brown CEng
ch-and-continue
.../minimal-racket/share/racket/collects/racket/contract/private/arrow-val-first.rkt:324:3
.../minimal-racket/share/racket/collects/pkg/private/download.rkt:93:0:
download-repo!24
.../minimal-racket/share/racket/colle
Matthew,
Thanks again. That wasn't the cleanest bug report, and I was really hoping
it wasn't attibutable to some flaky library software on my system (especially
since *I* needed PostgreSQL to trigger it).
Again, many thanks for working on and fixing the bug.
I'm away from work at the moment,
of the cost?
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 2
#:break (string=? p ""))
p)
3. Poking around url.rkt, I notice that `http-conn-impure-port' makes
a pipe with a limit of 4096 bytes. http-client.rkt, which is directly
required by url.rkt, defines (but does not provide) `PIPE-SIZE' --
also 4096. Is there any me
can grok directly. I
> believe that you problem does not have to with the web-language, but
> just with using serialize.
>
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing L
ing the sandbox boundary too often. But AFAICT
both implementations of external-my-deserialize cross the boundary
equally as often. Of course, only one of them works.
Thanks again for the assistance.
Tim
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
Folks,
This morning I wrote a function which seemed quite sharable. It took a pict,
converted it into a PNG bytes, base64-encode'd it and put it into an tag.
It was all of three lines long, was too short to (IMO) put into a library, but
I thought it was a valuable “snippet”.
Is there
I have installed the patch, and my installation is now passing its stress
test.
FYI, I put a quick printf() in to show when the bc->link is null (i.e. when
the bug would have manifested) -- it occurred 3 times in a run of 10M messages.
Rare, indeed.
Thanks for deaing with this so promptly.
Tim
Matthew,
I have built and installed:
Welcome to Racket v6.2.900.17.
on the same machine described in the original post.
The test script below has started failing again.
Has the code reverted back to its old behaviour?
Tim
On Monday, August 24, 2015 at 3:59:03 PM UTC+1, Tim Brown wrote
Matthew,
On Sunday, August 9, 2015 at 11:11:00 AM UTC+1, Tim Brown wrote:
> On 8 August 2015 15:13:01 BST, Matthew Flatt <mfl...@cs.utah.edu> wrote:
> >I fixed the minor issue, but I haven't been able to figure out how
> >`send-new-place-channel-to-named-dest` is meant t
can’t find_ the correct way to share the work out this way.
Does anyone have any ideas (better yet, experience) of doing this;
using place-socket-bridge% , or otherwise?
Regards,
Tim Brown
--
Tim Brown CEng MBCS <tim.br...@cityc.co
Some context:
I am actually using `prepare` to prepare some database queries. So I
have macros to define: find-a-thing-sql and find-a-thing-sql/prepared
For the most part I use find-a-thing-sql/prepared in my queries; so
*that* is what I want to jump back to the definition of using
"Jump to Binding Occ
ally needs to set up some
> properties on the identifier.
>
> If you (or anyone) wants to look into fixing this, these are the relevant
> docs:
>
> http://docs.racket-lang.org/tools/Check_Syntax.html
>
> Look for the description of "sub-range-binders&quo
These examples seem to work fine without syntax-local-introduce on the
identifiers. What is s-l-i’s role in this code?
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
ys folk have put up there.
Tim Brown
BTW: My “Popular Languages Report” (http://timb.net/popular-languages.html)
reported 900 a while back... but it is double-counting.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubsc
Matt,
(n.b. the message on GitHub is a bcc: of one I've sent to racket users)
Sorry, I got diverted to other more “urgent” things (he who pays the piper...).
That's why I took so long finishing the job; and rushing at the end, why I
left garbage like net/url-proxy in the commit.
So THANK
6.4.
> (version)
"6.4"
$ uname -a
Linux tim-8 4.4.0-1-amd64 #1 SMP Debian 4.4.6-1 (2016-03-17) x86_64
GNU/Linux
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing Limited ·
em-type 'machine) uses the output of `uname`.
>>
>> On Wed, Apr 6, 2016 at 5:47 PM, Tim Brown <tim.br...@cityc.co.uk
>> <mailto:tim.br...@cityc.co.uk>> wrote:
>>
>> Folks,
>>
>> I’m experimenting with creating functions from a PostgreSQL d
;
> On 04/06/2016 08:06 AM, WarGrey Gyoudmon Ju wrote:
>> I met this problem before.
>> (system-type 'machine) uses the output of `uname`.
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
C
>
> Sam
>
> On Wed, Apr 6, 2016 at 5:05 PM, Tim Brown <tim.br...@cityc.co.uk> wrote:
>> Not so quick! :-)
>>
>> I’m allowed to run /bin/uname (-rwxr-xr-x permissions)
>> So why do I get a permissions error from racke
mer be changing its behaviour to
satisfy racket/contract; or is this just some debug that has been left
at too high an importance level?
Tim
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computin
to put arrows between [P]->[Y] and
[Q]->[Z] ?
Thanks,
Tim
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing Limited · www.cityc.co.uk
City House · Sutton Park Rd · Sutton · S
I found this in the documentation for syntax-class (Link to this section with
@secref["stxparse-attrs" #:doc '(lib "syntax/scribblings/syntax.scrbl")]):
Consider the following code:
(define-syntax-class quark
(pattern (a b ...)))
(syntax-parse some-term
[(x
Thanks Jay,
Will check on it during work tomorrow.
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
works now with your workload?
>
> Jay
- D 64:33
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing Limited · www.cityc.co.uk
City House · Sutton Park Rd · Sut
pe for in the future?
Tim
[1]
http://stackoverflow.com/questions/4400678/http-header-should-use-what-character-encoding
[2] https://tools.ietf.org/html/rfc7230#section-3.2.4
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
he here string?
Thanks,
Tim
PS: Ow, I’ve just thought; I’ve got a similar problem with:
(parse "'Hello\", said John")
and its #\\ quoting. Does anyone have any ideas about this
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
━━━
than that, for all the cases of string escapes that you want
> to handle.
>
> Infix package docs:
> http://docs.racket-lang.org/infix-manual/index.html
> Infix package source:
> https://github.com/soegaard/infix/tree/master
>
>> On Apr 20, 2016, at 5:
ion currently. You could
> try using read tables to recover it or suggest a patch to read to not
> discard it, I suppose.
>
> Good luck and I hope life continues to surprise. ;P
>
> Robby
>
> On Wed, Apr 20, 2016 at 7:46 AM, Tim Brown <tim.br...@cityc.co.uk> wrot
Thanks, Jay, for highlighting the warning which pretty well says that if I do
what I did then I deserve what happened to me :-)
More generally, is there any means of "annotating" that a function/library is
deprecated (I assume you'd consider that library to be deprecated). So that I
would have
e top-level checkout dir", to quote stamourv.
A git clone later and I *still* don't have base in any makefile.
Folks... how do I either make base or get as minimal a racket
installation as I can with a capable raco?
Thanks in anticipation,
Tim
--
Tim Brown - t...@timb.net - +44(0)77717141
everything else via `raco pkg install`.
Binaries, including raco, end up in `racket/racket/bin`.
--
William J. Bowman
On Wed, Aug 03, 2016 at 06:02:53PM +0100, Tim Brown wrote:
Here's hoping someone can answer this without too much (any) difficulty:
I have the Unix source in racket-6.6-src.tgz from
a good
>> session (by dumping an interaction with a real server)
>>
>> 3) Require squid or something to be present when testing
>>
>> 4) Find a public proxy server that can be used to test
>>
>> --
>>
>> I recommend 2.
>>
>> Jay
>&g
is a straightforward enough exercise.
However, I’m a bit stuck with testing. I have a new clone of tim-brown/racket
and a `make` is building, DOWNLOADING and INSTALLING the packages. The capitals
are because I am so excited! So, as far as I can tell: it “works for me”.
I guess that isn’t what most engineers
? Or any other thoughts on the matter.
Tim
† It took something like 30 minutes to `raco pkg install pict3d` on this
thing, so `raco make _utility_` is probably a non-starter.
--
Tim Brown CEng MBCS <tim.br...@cityc.co
;;;
Runtime error is:
--
broke its own contract
promised: Index
produced: -1
in: Index
contract from: cast
blaming: cast
(assuming the contract is correct)
at: unsaved-editor:18.6
---------
Sam,
On the off-chance that the snapshot I used was somehow “stale”:
I have just done a fresh racket install from git;
I have 'raco pkg install -i pict3d'
And retried the test. I still get the type errors.
Tim
On 07/09/16 16:47, Tim Brown wrote:
> :-(
>
> Latest nightly "sn
cpointers
20 [#:opaque CType ctype?]
21 )
..
which seems perfectly innocuous to me :-/
Tim
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing Limited · www.cityc.co.uk
City House · Sutt
:-(
Latest nightly "snapshot 6.6.0.4--2016-09-07(42f4784/a)" still throws
the error.
Tim
On 07/09/16 15:37, Sam Tobin-Hochstadt wrote:
> I think this is fixed in the git repository. Can you try a snapshot build and
> see if that works?
>
> Sam
>
> On Wed, Sep 7
rds,
Tim
Version: 6.6.0.4--2016-09-08(-/f) [3m].
--
Tim Brown CEng MBCS <tim.br...@cityc.co.uk>
City Computing Limited · www.cityc.co.uk
City House · Sutton Park Rd · Sutton · Surrey
/i/ forgot about that.
And there you have it: (-> Nonnegative-Real Real Real)
Don’t laugh, but the irony (tragedy) is that I’m using it to implement
some quaternion stuff.
On 27/09/16 14:43, Pierpaolo Bernardi wrote:
> On Tue, Sep 27, 2016 at 3:23 PM, Tim Brown <tim.br...@cityc.co.
d am ready to go...)
But before I duplicate effort (or miss an opportunity to help out),
has anyone else started anything similar (specifically for Racket)?
I have already been pointed at "The Scheme Cookbook",
community.schemewiki.org and other things like pasterack.org
Tim
--
Tim
On Wednesday, April 26, 2017 at 5:21:41 AM UTC+1, Jon Zeppieri wrote:
> (define conf
> (delay
> (with-input-from-file ...)))
>
> Then just (force conf) whenever you want the value.
I tend to call promises xxx-promise (e.g. conf-promise),
to remind me not to use them without force'ing them.
Matthew,
I’m no lawyer, but...
On Tuesday, April 25, 2017 at 4:45:29 PM UTC+1, Matthew Butterick wrote:
> PS about Rosetta Code generally. As a user, its utility is hugely
> undermined by the fact that I can't take code from the site and easily
> adapt / reuse it (at least, if I want to comply
Greg,
On Monday, April 24, 2017 at 9:13:30 PM UTC+1, Greg Trzeciak wrote:
> Regarding the Rosetta Code scraper - I have 90% of the task completed - I
> will post my code on github sometime tomorrow. It still needs some work to
> have it published - the number of code samples is huge so is the
t LP is good.
There is another approach I have read of
“Code Guide” http://natpryce.com/articles/000798.html:
> Code Guide is a kind of opposite of Literate Programming.
Fascinating little experiment. But LP, being not-so-interactive can be
printed onto paper.
I’m kinda seeing why this in t
89 matches
Mail list logo