[racket] DrRacket 6.0.1 with R5RS user-initial-environment

2014-06-02 Thread Tim
Hi, I am using DrRacket 6.0.1 with language R5RS when I try to evaluate the statement: (eval '(+ 1 2) user-initial-environment) I get the error: "user-initial-environment: undefined;" Am I doing something wrong? Thank you. -Tim O. Racket Users list: http

Re: [racket] DrRacket 6.0.1 with R5RS user-initial-environment

2014-06-02 Thread Tim
I am using R5RS because I have to learn Scheme for a class. When I looked up some examples of using eval and all the ones that I saw for some reason had that user-initial-environment. So now it works thank you. On 06/02/2014 02:31 PM, Danny Yoo wrote: > On Mon, Jun 2, 2014 at 10:45 AM,

[racket] DrRacket 6.0.1 with R5RS user-initial-environment

2014-06-03 Thread Tim
I am using DrRacket 6.0.1 with language R5RS when I try to evaluate the statement: (eval '(+ 1 2) user-initial-environment) I get the error: "user-initial-environment: undefined;" Am I doing something wrong? Thank you. -Tim O. Racket Users list: http

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Tim Johnson
* Shriram Krishnamurthi [100609 10:27]: <...> Since Google has some investment in Kawa, I'm > sure it's in good shape. Very interesting! Could you elaborate on this Google investment in kawa? Or just post some links? thanks -- Tim tim at johnsons-web.com or

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Tim Johnson
* Karl Winterling [100611 11:21]: > On Fri, Jun 11, 2010 at 11:40 AM, Tim Johnson wrote: > > >  Very interesting! Could you elaborate on this Google > >  investment in kawa? Or just post some links? > >  thanks > > I think that Google uses Scheme as a configuratio

[racket] Bulding for Solaris 5.10 AMD64

2010-07-16 Thread Tim Brown
if I try to switch cgc off, with: ./configure --disable-cgc --disable-cgcdefault --srcdir=../ \ --prefix=/usr/local/plt-5.0/SunOS-5.10-amd64\ CC="gcc -m64" CXX="g++ -m64" LD="ld -m64" It still won't get past this error, it insists on using racketcgc. What c

Re: [racket] Bulding for Solaris 5.10 AMD64

2010-07-19 Thread Tim Brown
written, this behaviour seems to be what you would expect. Is there anything I can do to intercept `racketcgc' before it calls whatever it calls to throw this error? Regards, Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutt

Re: [racket] Bulding for Solaris 5.10 AMD64

2010-07-21 Thread Tim Brown
re? It *is* a bit niche! I've checked the FFI (which is the main reason I need the 64-bit build), and it works (for getenv(), anyway). I can now apply scheme, er, racket to our existent C applications. Truly, this is very exciting. Thanks again, Tim -- Tim Brown | City Computing Limit

Re: [racket] Bulding for Solaris 5.10 AMD64

2010-07-21 Thread Tim Brown
cket/mzdyn3m.o ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make: failed to make compiled/gl-info_rkt.zo; link-extension: command failed raco setup: --- compiling collections --- Regards, Tim -- Tim Brown | City Computing Limited

[racket] rendering lists of strings as at-expressions in scribbled documentation

2010-08-02 Thread Tim Brown
if the entire expression could be marked as "from-...@-form". Could someone with a better overview of what options are available for me to label my data in such a way point me in the right direction? Regards, Tim -- Tim Brown | City Computing Limited| T: +44 2

[racket] rendering lists of strings as at-expressions in scribbled documentation

2010-08-02 Thread Tim Brown
-form". Could someone with a better overview of what options are available for me to label my data in such a way point me in the right direction? Regards, Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F:

[racket-users] unicode (or just plain byte) regular expression positions?

2021-01-18 Thread Tim Meehan
Say that I have a strange character group that I want to find in a binary file. I wanted to use something like this: (define needle (list->string (map integer->char (list #xab #xcd #xef (define needle-offset (call-with-input-file "big_binary_blob.bin" #:mode 'binary (λ (p) (reg

[racket-users] Using GraphViz inside of Scribble?

2021-01-27 Thread Tim Meehan
IMHO, Racket's documentation is the gold standard. I tell everyone I work with that we should document things this well. Until now, I haven't seen any room for potential improvements. Now, I like ASCII art as much as the next person, but when I was reading the documentation for the GUI class hiera

Re: [racket-users] Using GraphViz inside of Scribble?

2021-01-28 Thread Tim Meehan
d want to use image > > < > https://docs.racket-lang.org/scribble/base.html?q=image#%28def._%28%28lib._scribble%2Fbase..rkt%29._image%29%29 > > > > as the tag function. You might also need to use define-runtime-path > > < > https://docs.racket-lang.org/reference/

[racket-users] Do I need to explicitly enable readline support for the REPL?

2021-03-07 Thread Tim Lee
When I was using Racket v6, I had to add (require readline/rep) to my ~/.racketrc to enable readline support in the REPL. I have recently upgraded to Racket v7.2 on Ubuntu 20.04. It seems that readline support is automatically enabled even if I remove (require readline/rep) from my ~/.racketrc. Ca

Re: [racket-users] fluent: unix style pipes and lambda shorthand to make your code more readable

2021-03-09 Thread Tim Lee
> Using *fluent*, the same racket code can be written according to the UNIX > philosophy: > > ("data.txt" > file->lines >> filter (line : line > string-contains? > "active") >> map (line : line > string-split > list-ref 4) > > remove-duplicates > sort) This reminds me of Clojure's threadin

[racket-users] SRFI 216 "SICP Prerequisites" vs #lang sicp

2021-03-09 Thread Tim Lee
I noticed that SRFI 216 "SICP Prerequisites" reached "final" status in January 2021. How will this affect #lang sicp? What are the differences between these two SICP aids? SRFI 216 link: https://srfi.schemers.org/srfi-216/srfi-216.html #lang sicp link: https://docs.racket-lang.org/sicp-manual/SICP

[racket-users] Re: Do I need to explicitly enable readline support for the REPL?

2021-03-12 Thread Tim Lee
Is it possible that the documentation is outdated? According to https://docs.racket-lang.org/readline/index.html#%28part._.Normal_.Use_of_.Readline%29: > You can also put (require readline) in your "~/.racketrc", so that Racket > automatically loads Readline support in interactive mode. Is this

[racket-users] macros in Racket repository

2021-05-09 Thread Tim Meehan
Where in the repository are macros like "and" and "or" defined? I tried searching for "and" and "or" ... but you probably know how that worked out. Thanks folks! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

Re: [racket-users] macros in Racket repository

2021-05-09 Thread Tim Meehan
ual? (my-and 1 #f 2) #f)) > > > >> On Sun, May 9, 2021 at 9:30 AM Jens Axel Søgaard >> wrote: >> Hi Tim, >> >> In this case Ryan's method leads to: >> >> https://github.com/racket/racket/blob/master/racket/collects/racket/private/qq-and-

[racket-users] Vectors, boxes and places

2022-02-03 Thread Tim Jervis
f)) #t > c.f. https://docs.racket-lang.org/reference/boxes.html <https://docs.racket-lang.org/reference/boxes.html> A <>box is like a single-element vector, normally used as minimal mutable storage. Best, Tim -- You received this message because you are subscribed to the Google

Re: [racket-users] Vectors, boxes and places

2022-02-03 Thread Tim Jervis
Many thanks John, I’ve just posted it there. Tim > On 3 Feb 2022, at 23:17, 'John Clements' via Racket Users > wrote: > > Sounds like a good question to me. Perhaps it would make sense to post it to > the discourse group, instead? I’m happy to ask on your behalf if

[racket] 'C' module extension, expected `xxx'

2012-01-11 Thread Tim Brown
dule `xxx' in: [...]/compiled/native/x86_64-linux/3m/xxx_rkt.so Everything is xxx! What have I missed? Help much appreciated. Racket 5.2 (downloaded from website today) 3m linux x86_64 Thanks, Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| Ci

Re: [racket] 'C' module extension, expected `xxx'

2012-01-12 Thread Tim Brown
Thanks Matt. My original problem was with SWIG (which, by default uses scheme_make_symbol()). Poking about (and reading documentation): swig -declaremodule -mzscheme ... does everything splendidly. Tim Matthew Flatt wrote: Use scheme_intern_symbol() instead of scheme_make_symbol

Re: [racket] 'C' module extension, expected `xxx'

2012-01-12 Thread Tim Brown
FFI module -- I'd hope the code to be far cleaner than these C middle-layer wrappers. Is there a CFFI -> racket FFI conversion floating about in the world of men? All the best, Norman To you too. Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110

[racket] Translation of

2012-01-31 Thread Tim McKeaveney
Hello, I've been trying to translate the prolog tutorial - http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_1.html - into racklog. I'm stumped at the conflict rule. My code attempts are at http://paste.lisp.org/display/127408 Any hi

[racket] Problem with places and sync/timeout

2012-03-13 Thread Tim Brown
g with my logic? (Happy to accept that as an option) Otherwise... what's up? Can I do owt to help? tim-brown on #racket, ping me if you need to know more Tim Brown (gdb) where #0 0x7f78f77a90e3 in select () from /lib/libc.so.6 #1 0x7f78f84d59dc in default_sleep (v=, fd

Re: [racket] Racket style question

2012-03-21 Thread Tim Brown
-number-youll-find-so-often-in-PE k) 100) [i (in-range 0 10)] [j (in-range 0 10)] ...))) You'll know when you'll need it! #:when (printf ...) will become your friend! Tim Eli Barzilay wrote: 20 minutes ago, Rodolfo Carvalho wrote: (define (pythagorean-t

Re: [racket] Racket style question

2012-03-22 Thread Tim Brown
therefore be the style I would prefer, if I had a mind about me! "when" might have been even more appropriate, since it takes a boolean condition and then arbitrary forms -- but I didn't really want to see: #:when (when (> ...) print flush) It's just odd. Hope that hasn&#x

[racket] Should Solaris use "poll()"?

2012-05-29 Thread Tim Brown
ince it is a system that supports poll(). (And I assume that even if there is a version that doesn't support poll(), configure would switch the facility off anyway). Or is this detected in another way during the build process? Regards, Tim -- Tim Brown | City Computing Limited

[racket] SunOS-5.10-amd64: Issue with lseek64 etc. functions in xform'ed source

2012-05-30 Thread Tim Brown
limit setrlimit64 #pragma redefine_extname getrlimit getrlimit64 which causes the not provided functions to be used. At a glance, can anyone either give me a solution, or a pointer to help me out here; otherwise, I'll be delving in

Re: [racket] SunOS-5.10-amd64: Issue with lseek64 etc. functions in xform'ed source

2012-05-31 Thread Tim Brown
rts of this being a problem on the mailing list. Should it be handled though? Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F: +44 20

Re: [racket] SunOS-5.10-amd64: Issue with lseek64 etc. functions in xform'ed source

2012-05-31 Thread Tim Brown
Matthew Flatt wrote: This sounds like an `--enable-shared' and libtool issue. Maybe we need to upgrade some libtool files? Do you import libtool into the racket source tree, thereby freezing the version and needing maunal update? -- Tim Brown | City Computing Limited| T: +

Re: [racket] SunOS-5.10-amd64: Issue with lseek64 etc. functions in xform'ed source

2012-05-31 Thread Tim Brown
ne of the CGC's isn't it)? -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F: +44 20 8770 2130| Sutton, Surrey, SM1 2AE, GB |

Re: [racket] SunOS-5.10-amd64: Issue with lseek64 etc. functions in xform'ed source

2012-05-31 Thread Tim Brown
Matthew Flatt wrote: No, I think we still rely on Racket-specific changes to the Boehm GC, but revisiting that is on my list of things to do one day. Do you have a published LOTTDOD? -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton

Re: [racket] SunOS-5.10-amd64: Issue with lseek64 etc. functions in xform'ed source

2012-05-31 Thread Tim Brown
Matt, Just saw you commit: "configure: use installed `libtool' by default" Did you look to see whether up-to-date libtool handles the LD_LIBRARY_PATH_nn variables? Tim Matthew Flatt wrote: Maybe the default these days should be to use an installed `libtool' if one is a

[racket] Racket Social/Support Groups in London

2012-06-11 Thread Tim Brown
Folks, Are there any racket (or scheme) social groups in London, Surrey or the South East of England? Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F: +44 20 8770 2130| Sutton, Surrey, SM1 2AE

Re: [racket] Racket Social/Support Groups in London

2012-06-13 Thread Tim Brown
Paulo J. Matos wrote: On 11/06/12 10:06, Tim Brown wrote: Folks, Are there any racket (or scheme) social groups in London, Surrey or the South East of England? Is Cambridge good enough? :) It's pushing it... but what have you to offer? Tim -- Tim Brown | City Computing Li

Re: [racket] Racket Social/Support Groups in London

2012-06-14 Thread Tim Brown
, and it seemed to me to be plenty appropriate for the situation! In other news, from what I see on Google, a "Rackaholic" seems to be some kind of 4x4 Driving, Deer Shooting, Barbecue addict. Living one interpretation of the American Dream, maybe, but probably not interested in the hygi

Re: [racket] Racket Social/Support Groups in London

2012-06-14 Thread Tim Brown
Neil Van Dyke wrote: Tim Brown wrote at 06/14/2012 04:22 AM: a "Rackaholic" seems to be some kind of 4x4 Driving, Deer Shooting, Barbecue addict. Racket is originally from Texas. Nuff said. -- Tim Brown | City Computing Limited| T: +44 20 8770 2110|

[racket] FFI/3m and Boehm GC compatibility

2012-07-16 Thread Tim Brown
to hint to the FFI that I want this reference kept visible? Regards, Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F: +44 20 8770 2130

Re: [racket] FFI/3m and Boehm GC compatibility

2012-07-16 Thread Tim Brown
table'd pointer to my GC_malloc'd pointer -- which keeps life simpler) In any case, I will need to invisibleise the pointer when it is no longer in use by racket (i.e. "legitimately" collectable). What would be the best way/hook to detect the pointers' end-of-life? Re

Re: [racket] FFI/3m and Boehm GC compatibility

2012-07-17 Thread Tim Brown
Matthew Flatt wrote: At Mon, 16 Jul 2012 17:33:23 +0100, Tim Brown wrote: In any case, I will need to invisibleise the pointer when it is no longer in use by racket (i.e. "legitimately" collectable). What would be the best way/hook to detect the pointers' end-of-life? Pro

[racket] interaction between in-cycle and in-value

2012-08-03 Thread Tim Brown
be "initiated afresh"? Why not? Is there a bug in the documentation of (in-cycle)? Or should (in-value) be documented as "cannot be initiated afresh"? Regards. Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House

[racket] Project Euler now has a "Racket" language

2012-08-17 Thread Tim Brown
ving problems with a pencil and paper than user racket. Let's change that. Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road | F: +44 20 8770 2130| Su

[racket] range of the guage% control

2012-09-26 Thread Tim Brown
of range: 1 to 1,000,000 cannot be reproduced with set-range, and cannot have a value set to it. Is this inconsistency a bug? Or is there some intention behind it? Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110| City House, Sutton Park Road |

Re: [racket] Find nth term of a List

2012-09-27 Thread Tim Brown
On 26/09/12 15:31, Marco Morazan wrote: 1. Is eq? the most natural way to test the equality of numbers? (minor quibble) I was wondering this, myself, earlier, but is zero? the fastest way to test for zero-ness? Tim -- Tim Brown | City Computing Limited| T: +44 20 8770 2110

Re: [racket] How fast is zero? was: Find nth term of a List

2012-09-27 Thread Tim Brown
perform 10^12 times? Maybe I'm thinking a bit too much like a C programmer -- (!x)... works for me as a test in so many ways; that I tend to want to use something like it when I'm writing in other languages. (Where I should be using zero? false? and/or null?). Tim On 27/09/12 16:50, Matthia

[racket] distributed place messages: "write" isn't atomic

2015-03-20 Thread Tim Brown
put-port)]) (flush-output) (write msg p) (flush-output p)) Should that first flush-output be on p? Thanks, in advance, for your help with this. Regards, Tim -- Tim Brown CEng MBCS City Computing

Re: [racket] distributed place messages: "write" isn't atomic

2015-03-20 Thread Tim Brown
Matthew, Thanks for the pointers. On 20/03/15 11:52, Matthew Flatt wrote: At Fri, 20 Mar 2015 10:14:12 +, Tim Brown wrote: I have written a remote-server (as in racket/place/define-remote-server), which I am then trying to use from a web-server. The remote-server is running on a remote

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

2015-04-27 Thread Tim Brown
#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 h

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

2015-04-28 Thread Tim Brown
to answer this or not, I'm about to JFGI] Thanks again. Tim -- Tim Brown CEng MBCS City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · Surrey · SM1 2AE · GB

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

2015-04-28 Thread Tim Brown
t performing (apparently), that I forgot to do good science to find out why. > Or even script the requests using a separate Racket instance! :-) Or even that! Tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

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

2015-04-28 Thread Tim Brown
tta 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 rece

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

2015-04-28 Thread Tim Brown
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 > m

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

2015-04-29 Thread Tim Brown
rite a program that can hand on heart say that it's not implemented in a language named after a reptile" would serve them right for breathing down Racket's neck for the last few months. They even drew *level* at one point (according to my now discredited popular languages report)

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

2015-04-29 Thread Tim Brown
I hope I'm not coming over too tribal here. On 29/04/15 13:07, Tim Brown wrote: That said, anything that slows Python down like "Write a program that can hand on heart say that it's not implemented in a language named after a reptile" would serve them right for breathing do

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

2015-04-29 Thread Tim Brown
I'm afraid that I have a lot on personally, so I'll put up something short and sweet, since “800” covered most of what I have to say on the subject. Won't be till tomorrow, though. Tim On 29/04/15 07:57, Jens Axel Søgaard wrote: Great news! Worth a blog post to foll

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

2015-05-05 Thread Tim Brown
pare: http://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

[racket-users] web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Tim Brown
be a comma between the nonce and opaque. I've put together a patch for your perusal. "tim-brown-patch-1" raised for racket/web-server. Regards, Tim (*) in pkgs/web-server-lib/web-server/http/digest-auth.rkt l.11 -- Tim Brown CEng MBCS City Computing Limited · www.

[racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Tim Brown
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 wrote: >Folks, > >I've just tried to use web-server/http-digest-auth, and >it seems that make-digest-auth-header generates an invalid hea

Re: [racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-08 Thread Tim Brown
Jay, I agree with Greg, too. For me, that involves abandoning my patch, and a whole load of git admin the sum of which effort is greater than you just doing it. So, please do and reject my pull request (if you can). Regards, Tim On 08/05/15 11:20, Jay McCarthy wrote: I agree with Greg, that

Re: [racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-08 Thread Tim Brown
ave applied those changes (temporarily) to my install? Should I have used raco? Some fancy gittery? Regards, Tim -- Tim Brown CEng MBCS City Computing Limited · www.cityc.co.uk City House · Sutton Park R

[racket-users] Typed Racket: "Shuffle" Polymorphic Function problem

2015-05-18 Thread Tim Brown
ept the annotation of the return from shuffler-composer. What am I missing? Do I not understand something? Am I not hinting TR quite well enough? Is there a bug in TR stopping me? Is this a fundamental limitation of TR's type system? Please could someone help. Thanks. Tim --- This email has

Re: [racket-users] Typed Racket: "Shuffle" Polymorphic Function problem

2015-05-18 Thread Tim Brown
Thanks Sam, I swear I came *so* close to that! I'll take a good hard look over the TR Guide; I'm sure it'll make sense. Tim On 18/05/15 17:16, Sam Tobin-Hochstadt wrote: Typed Racket doesn't bring the type variable `A` into scope on the right-hand side of the `define`

[racket-users] truncated text-outline rendering on dc-path%

2015-05-28 Thread Tim Brown
but the issue first caused me concern on Linux x86-64. Can anyone help? 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 ra

[racket-users] Pull requests for net/url

2015-05-29 Thread Tim Brown
;t the end of it... *it* requires parser tools, network libraries and all sorts; which make it even less economical to include. Regards, Tim -- Tim Brown CEng MBCS City Computing Limited · www.cityc.co.uk

Re: [racket-users] truncated text-outline rendering on dc-path%

2015-05-29 Thread Tim Brown
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

Re: [racket-users] truncated text-outline rendering on dc-path%

2015-05-29 Thread Tim Brown
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

Re: [racket-users] truncated text-outline rendering on dc-path%

2015-05-29 Thread Tim Brown
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

[racket-users] Does scribble/lp2 allow for test submodule

2015-06-02 Thread Tim Brown
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 City Computing

[racket-users] help please on git/github pull request

2015-07-02 Thread Tim Brown
rest of my plt/racket fork -- so I need to identify 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 o

[racket-users] scribble/lp and test modules (redux)

2015-07-02 Thread Tim Brown
t and test2 complain about: x: unbound identifier in module in: x What 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 st

Re: [racket-users] help please on git/github pull request

2015-07-03 Thread Tim Brown
member 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

[racket-users] Re: scribble/lp and test modules (redux)

2015-07-07 Thread Tim Brown
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 ><*>

[racket-users] postgresql-connect and #:notification-handler

2015-07-14 Thread Tim Brown
assume due to being inside a transaction or lock -- but I cannot find a handle to anything syncable. Any help would be appreciated. [1] Ironically: if this query is included, NH is called, because the notifcation is posted before the query returns.

Re: [racket-users] postgresql-connect and #:notification-handler

2015-07-14 Thread Tim Brown
Marc, Thanks. I’ll look at that. Tim On 14/07/15 15:46, Marc Burns wrote: Hi Tim, I wanted the same thing a few months ago. I couldn’t find a nice way to modify `db', so I wrote a small C library that links with libpq and some FFI bindings. This was probably not the right thing to do.

[racket-users] Re: postgresql-connect and #:notification-handler

2015-08-03 Thread Tim Brown
I've just noticed that Ryan Culpepper pushed: https://github.com/racket/db/commit/e6b28703c5f04084565deb2aee34691ccc9b35fa to the database library; titled: “add async-message-evt method to postgresql connections” Thanks Ryan. Tim On Tuesday, July 14, 2015 at 3:21:16 PM UTC+1, Tim Brown

[racket-users] send-new-place-channel-to-named-dest usage question

2015-08-06 Thread Tim Brown
ith my failed attempt at adding a side-channel. Eventually I’d like to broadcast to this place -- but that’s for a later day. Thanks, Tim ;; - #lang racket/base (require racket/place/distributed racket/place

[racket-users] Re: send-new-place-channel-to-named-dest usage question

2015-08-06 Thread Tim Brown
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

Re: [racket-users] Re: send-new-place-channel-to-named-dest usage question

2015-08-09 Thread Tim Brown
Thanks, Matthew. Tim On 8 August 2015 15:13:01 BST, Matthew Flatt 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 to work, either. (I'll >try again to contact Kevin.) > >At Thu, 6 Aug 2015

[racket-users] Website Eyecandy from days gone by

2015-08-10 Thread Tim Brown
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 talking about or not). Is the source of this (or anything similar) available anywhere for me to “learn” from? Regards, Tim

[racket-users] Regarding plt/racket PR#948 (net/url-string)

2015-08-12 Thread Tim Brown
; 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

Re: [racket-users] Regarding plt/racket PR#948 (net/url-string)

2015-08-12 Thread Tim Brown
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! > >

Re: [racket-users] Regarding plt/racket PR#948 (net/url-string)

2015-08-12 Thread 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 Brow

Re: [racket-users] Website Eyecandy from days gone by

2015-08-14 Thread Tim Brown
Thanks Eli. On 13/08/15 18:30, Eli Barzilay wrote: > On Mon, Aug 10, 2015 at 5:35 AM, Tim Brown 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 >

[racket-users] Garbage Collection of Places

2015-08-17 Thread Tim Brown
; are all considered reachable, instead of unreachable. And I don’t see how a call to (place-channel) can put it in a state as described above. Verision info: racket-6.2.1 (3m) $ uname -a Linux tim-8 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64 GNU/Linux (debug version built with) $ ../src

[racket-users] Re: Garbage Collection of Places

2015-08-17 Thread Tim Brown
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 c

[racket-users] Re: Garbage Collection of Places

2015-08-17 Thread Tim Brown
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 City Computing Limi

Re: [racket-users] Garbage Collection of Places

2015-08-17 Thread Tim Brown
falling off its radar. Could you see if your favourite system memory monitor shows any growth? Thanks, Tim On 17/08/15 15:45, Sam Tobin-Hochstadt wrote: > Hi Tim, > > I just tried this out on HEAD, and I don't see the leak you mention. > Here's some representative outpu

Re: [racket-users] Garbage Collection of Places

2015-08-17 Thread Tim Brown
That's why we all rely on the GC; because the alternative 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 tha

[racket-users] More Racket Place abuse^H^H^H^H^H issues

2015-08-24 Thread Tim Brown
racket/match racket/sandbox db) (provide server-place) (define (server-place pl) (define pgc (postgresql-connect #:database "my_db" #:user "tim" #:password "letmein")) (define bcast

[racket-users] More Racket Place abuse^H^H^H^H^H issues

2015-08-28 Thread Tim Brown
Has anyone had the chance to look at, or been able to reproduce this? 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-user

Re: [racket-users] More Racket Place abuse^H^H^H^H^H issues

2015-08-31 Thread Tim Brown
k at the moment, but I'll definitely check out the fix on my return. Tim On Saturday, August 29, 2015 at 12:06:31 AM UTC+1, Matthew Flatt wrote: > I don't think my guess was right. Happily, my accounting-related test > is like yours in that it passes place channels over place channe

Re: [racket-users] More Racket Place abuse^H^H^H^H^H issues

2015-09-03 Thread Tim Brown
I see that memory accounting in the GC has a > problem with places, and I can provoke a crash by targeting that > problem directly. Out of interest - is there much overhead in having memory accounting active in the GC? I can’t avoid it, since I’ll be using sandboxes... but is there any

[racket-users] Issues with `head-pure-port'

2015-09-04 Thread Tim Brown
ing->url "http://www.bbc.co.uk/"; #: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 (b

[racket-users] Somewhere to keep racket snippets

2015-09-09 Thread Tim Brown
third party with no back up in the racket community-space). If Racketbin exists, a. I would like to know about it, and b. It might be somewhere to start with the RC capture. If it doesn't exist, I'll consider more seruously plotting my own. Tim -- You received this message because you

Re: [racket-users] Somewhere to keep racket snippets

2015-09-10 Thread Tim Brown
fiably me that can do that. [Others might be more professional about life and want to properly version control their snippets]; I think this goes a against the spirit on anonymity of a “paste bin” Tim -- You received this message because you are subscribed to the Google Groups "Racket Users

[racket-users] Serializable Continuations in Sandboxes

2015-09-17 Thread Tim Brown
.rkt") . "lifted.3") ((quote program) . "lifted.376") ((quote program) . "lifted.367") ((quote program) . "lifted.33")) 2 ((0 (h - ())) (1 (? . 0) ())) () (1 (? . 0) (c (v! (2 (? . 1)) #f #f) c (v! (3 tim (? . 1)) #f #f) c (v! (4 (? . 1)) #f #f dynamic-req

[racket-users] web-server/lang/base pulls in too much

2015-09-17 Thread Tim Brown
please excuse the hyper precision). Thanks, Tim Brown -- (define (find-sandbox-min-memory lower upper rv iterations) (cond [(zero? iterations) rv] [else (define trial (* (+ lower upper) 0.5)) (printf "attem

  1   2   3   4   >