Re: [racket-users] Racket Discourse

2021-11-22 Thread Norman Gray
the current list is hosted at googlegroups, and since it's not obvious that Discourse Corp is more predatory than Google Corp (indeed, the former is dispensing freemium-ware rather than ad-ware, so are more attractive in terms of business model), it feels irrational for me to be too put off by

Re: [racket-users] Equivalent of exec

2021-08-05 Thread Norman Gray
e, because it was the first Scheme implementation I played with. Best wishes, Norman [1] https://github.com/scheme/scsh and https://scsh.net -- Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/ Research IT Coordinator : School of Physics and Astronomy -- You received this messa

Re: [racket-users] Equivalent of exec

2021-08-04 Thread Norman Gray
k on a new machine (and I need some urgent procrastination). It's slightly unfortunate that Racket's start-up time make it slightly suboptimal as a command-line tool, but raco make helps with that. Best wishes, Norman -- Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/

Re: [racket-users] Equivalent of exec

2021-08-04 Thread Norman Gray
I think I automatically skipped over it when looking here. Also, this illustrates the perennial mistake of focusing on one solution -- how do I exec? -- rather than stepping back and asking 'what am I actually trying to do?' Sorry for the noise Best wishes, Norman -- Nor

Re: [racket-users] Equivalent of exec

2021-08-03 Thread Norman Gray
27;s because of the usual problems about wiring up FDs and buffers and so on, which I was rather hoping to avoid. Best wishes, Norman -- Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/ Research IT Coordinator : School of Physics and Astronomy -- You received this message becau

[racket-users] Equivalent of exec

2021-08-03 Thread Norman Gray
ompletely failing to find anything on [1], searching for eg 'exec' or 'return' (as in 'does not return'); and 'exec' isn't a very handy search term on the web. Thanks for any pointers, Norman [1] https://docs.racket-lang.org/reference/subpr

Re: [racket-users] [racket users] list question

2021-02-25 Thread Norman Gray
that, with that name in hand, SRFI/1 does indeed have a zip procedure, which works with circular lists. [1] https://en.wikipedia.org/wiki/Convolution_(computer_science) Best wishes, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow,

Re: [racket-users] Exception throwing in web-server

2020-05-25 Thread Norman Gray
create the response object. But it looks as if I must _additionally_ create a handler inside the response-output procedure (on the occasions when I do that 'by hand'), to cope with any exceptions thrown in there. Of course, I should design that response-output procedure so that it

[racket-users] Re: Exception throwing in web-server

2020-05-25 Thread Norman Gray
Thank you, Brian and Jesse, for your thoughts on this. There may still be an exception problem here, though. (and sorry for being sluggish to respond) On 16 May 2020, at 20:16, Norman Gray wrote: Now, in tracking this down I can see that I have a wrong design here: the servlet has

[racket-users] Exception throwing in web-server

2020-05-16 Thread Norman Gray
rowing exceptions inside 'output', but given that that will sometimes happen, is the output-response-body/chunked procedure doing the right thing here? Am I missing something? Best wishes, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, Univer

Re: [racket-users] LaTeX

2019-08-27 Thread Norman Gray
spacing and layout rules apply, and these are managed/implemented/realised by the internals of TeX -- the primitives -- not by any macros. Best wishes, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK -- You received this message bec

Re: [racket-users] make extensions or replacements

2019-04-20 Thread Norman Gray
as discussed in the paper at the top) also care about dependencies on, eg, compiler versions. I haven't looked specifically at that above. -- Norman Gray : https://nxg.me.uk -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsub

Re: [racket-users] Licence guidance

2018-09-27 Thread Norman Gray
ther than a statement of an absence of a licence. Thus the BSD licence is probably the most permissive thing that's still unequivocally recognisable as a licence. Best wishes, Norman -- Norman Gray : https://nxg.me.uk -- You received this message because you are subscribed to the Google

Re: [racket-users] Legal/Business Case Management DSLs

2018-08-26 Thread Norman Gray
hat history, but it's something like that. Best wishes, Norman *now getting rather lost down memory lane* [1] I say 'exactly': I can't think of any differences, but I wouldn't want to insist there were none. -- Norman Gray : https://nxg.me.uk -- You received this me

Re: [racket-users] Legal/Business Case Management DSLs

2018-08-26 Thread Norman Gray
s even further back down the line! Do not go to Xanadu; noone comes back from Xanadu. Best wishes, Norman -- Norman Gray : https://nxg.me.uk -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

Re: [racket-users] Legal/Business Case Management DSLs

2018-08-26 Thread Norman Gray
ssing SGML documents using a language called DSSSL, and decided to explore this language 'scheme' that it was reportedly an implementation of, and I printed out R5RS. So DSSSL Good. Best wishes, Norman -- Norman Gray : https://nxg.me.uk -- You received this message because you are

Re: [racket-users] Please HELP ME! Programmers at scheme, i am calling you ! :D

2018-05-11 Thread Norman Gray
themselves teachers) will be better able to help. Best wishes, Norman -- Norman Gray : https://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 unsubs

Re: [racket-users] Why is there a space in the path to the Racket application on MacOSX?

2018-03-30 Thread Norman Gray
ily' which might not survive close examination -- Norman Gray : https://nxg.me.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+unsu

Re: [racket-users] (number->string -nan.0) == "+nan.0" ?

2018-02-06 Thread Norman Gray
s a rather hand-waving explanation, and I'll defer to those with more detailed knowledge of the relevant numerical analysis. Norman -- Norman Gray : https://nxg.me.uk -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubs

Re: [racket-users] What is the right way to generate HTML from the web server?

2018-01-04 Thread Norman Gray
; but I have since become convinced that x-expressions are really a better > notation for XML than XML syntax is. Lots of ditto! Tangential for this list, but <https://nxg.me.uk/dist/lx/>. Best wishes, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy,

Re: [racket-users] Error when codesigning Racket created executable - codesign_allocate: file not in an order that can be processed

2017-07-04 Thread Norman Gray
local GateKeeper checks :) Great stuff. Great stuff indeed. All the best, Norman -- Norman Gray : https://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 unsubs

Re: [racket-users] Error when codesigning Racket created executable - codesign_allocate: file not in an order that can be processed

2017-07-03 Thread Norman Gray
an-i-add-sections-to-an-existing-os-x-executable -- Norman Gray : https://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

Re: [racket-users] RacketCon Code of Conduct

2017-06-26 Thread Norman Gray
eleted a phrase too much and inadvertently garbled the sense. If the intention was to avoid 'ad hominem' as well, then perhaps simply '...unwelcome or hostile behavior that focuses on people instead of ideas'. 3. Layout: wow -- the 70s are back (in a good way). All the

Re: [racket-users] RacketCon Code of Conduct

2017-06-19 Thread Norman Gray
need to be said, but since you ask...' Best wishes, Norman [1] https://www.thestrangeloop.com/policies.html [2] https://www.freebsd.org/internal/code-of-conduct.html -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK -- You received thi

Re: [racket-users] Proper non-tail recursion?

2017-04-26 Thread Norman Gray
gging the question), and close enough to the more widespread TCO to be intelligible. All the best, Norman -- Norman Gray : https://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 "R

Re: [racket-users] What is the Racket equivalent to 'return' for early exit?

2016-11-21 Thread Norman Gray
do-something) will only return the type of thing it's supposed to return, and not anything that needs checked. That would be still more important if you were using Typed Racket. All the best, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, University o

Re: [racket-users] What is the Racket equivalent to 'return' for early exit?

2016-11-21 Thread Norman Gray
(or (ok?) (*bail-out 'early-return-value))) (syntax-parameterize ((check (make-rename-transformer #'check*))) form . forms (define (necessary-condition-met) #f) (do-something-while-checking (check necessary-condition-met) (printf &q

Re: [racket-users] fivethirtyeight indexes reddit

2016-08-26 Thread Norman Gray
these graphs suggests a very substantial increase in its significance. Comparing 'scheme' with, eg, 'haskell' and 'python' suggests that's declined relatively modestly. Perhaps the world is finally catching on. All the best, Norman -- Norman Gray : https://nx

Re: [racket-users] fivethirtyeight indexes reddit

2016-08-25 Thread Norman Gray
, that means that the growth in 'racket', and more so with the more predictable growth in 'swift', is all the more impressive. All the best, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK -- You received this messag

Re: [racket-users] Racket Shell

2016-08-21 Thread Norman Gray
pes wistful tear*). Best wishes, Norman -- Norman Gray : https://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 rec

Re: [racket-users] What do you use macros for?

2016-04-08 Thread Norman Gray
pander, perhaps all the post-compilation stages are 'lazy'), but I'm having a hard time seeing why it's obvious they're not isomorphic. I imagine there may be both pragmatic and fundamental semantic reasons why the two are different. All the best, Norman -- Norma

Re: [racket-users] quoting in posts to this email list

2016-04-07 Thread Norman Gray
: (add1 (add1 (add1 (what-neil-said All the best, Norman -- Norman Gray : https://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

Re: [racket-users] Detect version of OS X

2016-02-24 Thread Norman Gray
tex"))]) (printf "binaries in ~a~%" base That encodes some platform-specific knowledge in the list of possible binary locations, but it can be extended to 'everywhere I've ever heard of a LaTeX binary ending up, on any platform, plus some extra heuristics'

Re: [racket-users] Detect version of OS X

2016-02-24 Thread Norman Gray
s, and there might be a path-searching equivalent on Windows, too. All the best, Norman -- Norman Gray : https://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"

Re: [racket-users] Slack IRC bridge malfunctioning

2016-02-09 Thread Norman Gray
ty, and means that I do now share at least some of Neil's distaste for the situation. The internet's become a very different place from what it was going to be 20 or 25 years ago. *sigh* All the best, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy,

Re: [racket-users] Slack IRC bridge malfunctioning

2016-02-08 Thread Norman Gray
h the tradeoffs of a cloud solution. Have I deceived myself with respect to Slack (as distinct from the model in general), or is this down to a matter of where you or I or others might locate those tradeoffs? All the best, Norman -- Norman Gray : https://nxg.me.uk SUPA School of P

[racket-users] typed/racket (or foo #f) doesn't work as expected

2016-01-09 Thread Norman Gray
rep /home/ryan ...I get _lots_ of matches. Is there a possible build glitch here? I'm on OS X, 10.10.5 The same thing happens as far back as Racket 5.3.6, which is the earliest I have to hand. Best wishes, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and A

Re: [racket-users] Scribble: Typeset equations using Latex packages amsmath and amssym

2015-09-24 Thread Norman Gray
letely avoids a whole class of escaping headaches. Thus: This is ^Aemph^Bemphasised^C text, and standard LaTeX. I can fill in further details if that would be useful. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glas

Re: [racket-users] Naming conventions

2015-06-29 Thread Norman Gray
schemewiki.org/?variable-naming-convention> (with 'plt-scheme' -> 'racket'). These are mostly echoed in the Racket style guide at <http://www.ccs.neu.edu/home/matthias/Style/style/Textual_Matters.html#%28part._names%29> (though I think that '#:' is a

Re: [racket-users] Storing functions in a hash

2015-05-20 Thread Norman Gray
need the indirection for the apply. Remember functions are first-class values -- they're as much 'a thing you can pass around' as a string is, or a number. Have fun, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK -- Y

Re: [racket-users] Another typed/racket puzzle: module+ and scope

2015-05-04 Thread Norman Gray
move most of the content of the main submodule into a top-level function, and call that with (current-command-line-arguments). Not as pretty, but it typechecks. Thanks for your help. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University

[racket-users] Another typed/racket puzzle: module+ and scope

2015-05-04 Thread Norman Gray
ta/LocalApplications/Racket/6.1.1/share/pkgs/typed-racket-lib/typed-racket/tc-setup.rkt:40:0: tc-setup /Data/LocalApplications/Racket/6.1.1/share/pkgs/typed-racket-lib/typed-racket/typed-racket.rkt:25:4 standard-module-name-resolver % Best wishes, Norman -- Norman Gray : http://nxg.me.

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

2015-04-29 Thread Norman Gray
> On 2015 Apr 29, at 18:06, Neil Toronto 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://nx

Re: [racket] Writing algebraic maths expressions

2015-03-07 Thread Norman Gray
gt; That was a bug with comments before closing parentheses. Ah, righto -- my mistake. I'll play with both the sweet expressions and Jens Axel's infix, and see which feels more natural in use. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astr

Re: [racket] Writing algebraic maths expressions

2015-03-07 Thread Norman Gray
thout either of those > first two characters. I can broadly understand why this is happening, but this again feels like the half-way problem mentioned above. The infix.plt solution, piggybacking as it does on the at-exp reader, seems to evade this problem. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

[racket] Writing algebraic maths expressions

2015-03-07 Thread Norman Gray
#x27;m sure I can work through the puzzles above, but at this point the path is feeling awfully untrodden, and since I can't believe I'm the first person with this goal, I feel sure I've taken a wrong turning someplace. Thanks for any pointers. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Current advice on making a 'script'

2015-01-15 Thread Norman Gray
27;s installed doesn't bloat it beyond convenience, so I think that's what I'll stick with. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Current advice on making a 'script'

2015-01-14 Thread Norman Gray
> On 2015 Jan 14, at 21:36, Norman Gray wrote: > > I suspect that what was in my head was something like Java's .jar file: a zip > file containing a bundle of compiled files in a single artefact, which needs > a separate executable to run, but which is boneheadedly easy

Re: [racket] Current advice on making a 'script'

2015-01-14 Thread Norman Gray
f compiled files in a single artefact, which needs a separate executable to run, but which is boneheadedly easy to manage. Thanks, all, for your various observations. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Current advice on making a 'script'

2015-01-14 Thread Norman Gray
that the 'stable' version in ~/local/bin/prog is still working. None of the above are grievous problems -- I could live with all of them -- but they're less neat than 'here is a script file; put it somewhere in your path'. Perhaps the concatenate-with-rewriting

[racket] Current advice on making a 'script'

2015-01-14 Thread Norman Gray
e the same name, and (c) I can't work out how to do that.Re (c), the documentation at <http://docs.racket-lang.org/pkg/getting-started.html?q=package#%28part._how-to-create%29> is somewhat elliptical. I saw an on-list mention of a forthcoming 'raco pkg new' command w

Re: [racket] Racketrivia: Using ' as an identifier suffix

2015-01-08 Thread Norman Gray
> On 2015 Jan 8, at 21:36, Greg Hendershott wrote: > > It's not as fun as the classic https://www.destroyallsoftware.com/talks/wat. ...or indeed as the perennial delight that is xii.tex <http://www.ctan.org/tex-archive/macros/plain/contrib/xii> Norman -- Norman Gray

Re: [racket] aws/glacier: credential scope

2014-09-29 Thread Norman Gray
Greg, hello. On 2014 Sep 29, at 14:13, Greg Hendershott wrote: > It looks like the package server did eventually refresh a few hours ago: Hero: I've updated, and it works perfectly! All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, Un

Re: [racket] aws/glacier: credential scope

2014-09-28 Thread Norman Gray
ot; via http://download.racket-lang.org/releases/6.1/catalog/ Resolving "aws" via http://pkgs.racket-lang.org No updates available % And Greg, your fix is close enough to what I guessed might be the problem that I'm now kicking myself for not just diving in and trying a fix myself

Re: [racket] aws/glacier: credential scope

2014-09-28 Thread Norman Gray
ns if you read-keys before setting the region? Thanks for this suggestion: I did try that just a little earlier, but it didn't make any difference. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK _

[racket] aws/glacier: credential scope

2014-09-27 Thread Norman Gray
en the (region) matches the region for the IAM service. I don't see any other (region) equivalents for the other services supported by the package. Is that because all of the other services supported by the package are supported by all the AWS regions, or am I missing a configuration? Thanks for any pointers. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Puzzled about type inference

2014-08-06 Thread Norman Gray
a type annotation and can see the effect ripple through the larger expression, that would surely very effectively build intuition about the behaviour of the type checker, and where it's best or necessary to help TC out. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School

Re: [racket] lists vs strings

2014-08-06 Thread Norman Gray
Robby, hello. On 2014 Aug 6, at 07:07, Robby Findler wrote: > On Tue, Aug 5, 2014 at 6:10 PM, Norman Gray wrote: >> (By the way, Racketeers, <http://docs.racket-lang.org/r5rs-std/index.html> >> currently returns a 404) > > How did you come across this url? I s

Re: [racket] lists vs strings

2014-08-05 Thread Norman Gray
numbers. But this is a case where getting the basics right at the beginning pays dividends later. Happy reading... Norman (By the way, Racketeers, <http://docs.racket-lang.org/r5rs-std/index.html> currently returns a 404) -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Puzzled about type inference

2014-08-05 Thread Norman Gray
ere parent0=$1 and idx > 0" parent0) (Listof VIL))) (define length : Positive-Integer (1+ (apply max (map (λ ([x : VIL]) (vector-ref x 0)) idx+level (define result : Backup-Log (make-vector length #f)) (for ((q : VIL (in-lis

Re: [racket] Puzzled about type inference

2014-08-05 Thread Norman Gray
-to-wall epiphanies today All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Puzzled about type inference

2014-08-05 Thread Norman Gray
t; 1. TR doesn't handle automatically inferring type arguments when > polymorphic functions (like `map`) are given polymorphic arguments > like `vector->list`. While fixing this would require work, it just > needs to be done -- there's no reason we shouldn't be able to mak

[racket] Puzzled about type inference

2014-08-03 Thread Norman Gray
rather more 'sort-of's in the above account than I'm comfortable with. So: (a) Am I doing something wrong, or writing unidiomatically?; and (b) is there a heuristic to guide me in what annotation I actually need to add and what can be inferred, so it's all a bit less trial-

Re: [racket] Parsing dates & times

2014-07-15 Thread Norman Gray
ncluding test cases and sample lispish implementation code. The Explanatory Supplement <http://aa.usno.navy.mil/publications/docs/exp_supp.php> is also damn good, but appeals to more... specialised tastes. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics a

Re: [racket] "and" in author names in scriblib

2014-07-11 Thread Norman Gray
7;ve missed the start of this thread), but if the issue here is parsing BibTeX, then I have a reasonably robust BibTeX parser at <https://bitbucket.org/nxg/bibulous> which might be useful here. It's not tidily wrapped up as a package, but potentially could be. All the best, Norman

Re: [racket] Blog post about Racket

2014-05-14 Thread Norman Gray
h determination, you can write Fortran in any language. Though it's really _hard_ to write Fortran in Racket, which is the disadvantage I mentioned above. And another '+1' from me, for Software Carpentry. All the best, Norman (with alternate signature, below) -- Norman G

Re: [racket] Blog post about Racket

2014-05-11 Thread Norman Gray
mix of university and commercial affiliations. It's interesting there are no Glasgow folk listed (and though I'm from Glasgow I don't have any inside information here). All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgo

Re: [racket] Callback on shutdown

2014-05-06 Thread Norman Gray
ermination? Homoousian class instantiation? (no! _homoiousian_, dammit!). Hmm: better stop now... All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Callback on shutdown

2014-05-05 Thread Norman Gray
cana? On this list, one can never be quite sure. I'm not sure what immanent termination would be: at a guess, perhaps involving 'all threads' or something to do with GC resurrections. All the best, Norman -- Norman Gray : http://nxg.me.uk Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Why did a LISP-like language never made it to THE language for Web2.0

2014-01-15 Thread Norman Gray
27;(doc () "over " (em () "9000") "!") using whatever means you like, and then use xexpr->string to serialise this to XML. That's how _I_ generate most of my XML/XHTML. XML is basically just sexps with weird brackets. All the best

Re: [racket] RDF in Racket

2014-01-03 Thread Norman Gray
, though. Doug Williams said: > I have an interface to Sesame, which is an RDF data store, that I use. I've > not released it on PLaneT, but do have it documented. I can send it to you > if you're interested. I also am interested in how you approached that. Is the code visible

Re: [racket] Calling Web Service APIs

2013-12-20 Thread Norman Gray
o that, and have a lot of stuff in separate modules, but clearly didn't try hard enough, and the result still includes a hard-to-refactor big blob of code. I hope it's interesting. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Phys

Re: [racket] Numbers with dimensions

2013-10-28 Thread Norman Gray
h note that it attempts only to parse unit strings and to support validation of them, and not to do anything higher-level such as converting them. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] running racket from the command line

2013-10-21 Thread Norman Gray
plicitly) added to your path. I don't know the layout of the various Linux distributions, but I imagine there's a broadly similar layout there. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK __

Re: [racket] [RacketCon / Hackathon] porting Olin Shivers's scsh

2013-09-24 Thread Norman Gray
ery much like to end 28 Sep with something runnable. Roderic Morris <https://github.com/roderyc> is working on getting scsh 0.7 up and running on github <https://github.com/scheme/scsh>, and he seems to be based in Boston. It'd probably be worth pinging him about this. All the

Re: [racket] [ANN] RacketCon 2013: 29 September

2013-09-22 Thread Norman Gray
y call out for rather detached and against-the-grain interrogation. But the Boston Freedom Trail is both successful in its own terms and (not, I think, accidentally) interesting as rhetoric. Enjoy RacketCon. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and As

Re: [racket] net/http-client

2013-09-17 Thread Norman Gray
have saved me. Or in other words, there's not necessarily a unique best way to parse the more intricate header values. (I'd be happy to share that Accept parse code if it was useful). I'm jumping in the the middle of this thread, so apologies if this has already been covered

Re: [racket] Worried about the new package manager not storing each version of a package

2013-08-30 Thread Norman Gray
welcome, or is there in fact a plan/expectation/resignation to couple Racket to github? All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Where to learn advanced programming skills?

2013-07-22 Thread Norman Gray
Haskell, Io, Prolog, Scala, Erlang, and Ruby). The chapters on Scala and Ruby left me cold, the minimal Haskell there I already knew, Prolog will probably remain a curiosity for me (though who knows), Erlang is now on my looking-for-a-problem list, Clojure I learned properly for a project last

Re: [racket] Use `set!' or not in this scenario?

2013-07-20 Thread Norman Gray
lip Wadler's http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.100.9674), I haven't managed to make the jump to seeing how that would be obviously useful in Racket. Can anyone illustrate how that solution would work in Ben's example here? Best wishes, Norman -- Norm

Re: [racket] Regexp question: Pattern that can match everything to left of first pattern?

2013-05-08 Thread Norman Gray
im to match the pattern you want to terminate the thing you want: Welcome to Racket v5.3.3. > (regexp-match #rx"(.*)x4x" "12x4x67") '("12x4x" "12") > (regexp-match #rx"(.*)x.x" "12x45x67x8x90") '("12x45x67x8x" "

Re: [racket] Is there a symbol in regexp-match syntax, similar to the period but...

2013-05-08 Thread Norman Gray
ion and another function that > runs that function. Does the '*' pattern help? Welcome to Racket v5.3.2. > (regexp-match #rx"x.*" "12x4x6") '("x4x6") All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] How to read procedure documentation?

2013-04-19 Thread Norman Gray
3F#%28def._%28%28lib._racket%2Fprivate%2Fmisc..rkt%29._path-string~3f%29%29 [2] http://docs.racket-lang.org/reference/data-structure-contracts.html?q=or/c&q=path-string%3F#%28def._%28%28lib._racket%2Fcontract%2Fprivate%2Fmisc..rkt%29._or%2Fc%29%29 -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] (no subject)

2013-04-09 Thread Norman Gray
On 2013 Apr 9, at 16:55, deepak verma wrote: > what does command line do? http://docs.racket-lang.org/reference/Command-Line_Parsing.html -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: h

Re: [racket] Typed racket and sync/timeout

2013-03-09 Thread Norman Gray
pr=13588> Thanks for looking at this and my other question. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

[racket] Typed racket: keywords and rest arguments

2013-03-09 Thread Norman Gray
ar l)) Similar functions work, with types (: appender (String String * -> String)) and (: appender (String String [#:k String] -> String)), so I don't think I'm messing up the syntax. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA Sc

[racket] Typed racket and sync/timeout

2013-03-09 Thread Norman Gray
line). I'm not sure what that error message is telling me, but that doesn't look like something I can fix. I can get round this by declaring sync/timeout to return async-channel (which it always will, in my case), but that's obviously not a general solution. Best wishes, Norman

Re: [racket] Typed racket and rack unit (Was: Type of curry)

2013-02-26 Thread Norman Gray
n running with typed Racket, reports generated names for mismatched values, rather than the actual variables used in the check-* tests. It makes locating the failed test a little more roundabout than it might be. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics

[racket] Typed racket and rack unit (Was: Type of curry)

2013-02-25 Thread Norman Gray
ertised as a little rough around the edges, but I appear to be running into quite a few head-scratchers, and I suspect I've misunderstood its current intended audience. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

[racket] Type of curry

2013-02-24 Thread Norman Gray
when currying a two-argument function. All the best, Norman (I'll resist any vindaloo jokes) -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Rosetta Code

2013-02-22 Thread Norman Gray
On 2013 Feb 22, at 21:20, Eli Barzilay wrote: > * Lisp was originally spelled "LISP", similarly to other languages. Six bits, like 640k, should be quite enough for anybody... All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy,

Re: [racket] Rosetta Code

2013-02-22 Thread Norman Gray
rious strands of its lineage. > • Home page > • Wikipedia (Just by the way (and whirling off at a tangent), is there a method/rhetoric/clannishness to your capitalisation of LISP? If one wanted to avoid 'Lisp', then I'd have guessed that 'LisP' would be t

Re: [racket] Rosetta Code

2013-02-22 Thread Norman Gray
e just changed the category page <http://rosettacode.org/wiki/Category:Racket> to say that "Racket (at one time called PLT Scheme) is a language in the Scheme family", so we'll see what sort of fight that starts. All the best, Norman -- Norman Gray : http://nxg.me.uk SUP

Re: [racket] Typed racket and keywords

2013-02-21 Thread Norman Gray
d trying to work out how to type a closure. I've gone round in so many circles today that I'm dizzy and that probably shows in the examples. Best wishes, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK __

Re: [racket] Typed racket and keywords

2013-02-21 Thread Norman Gray
Greetings, again. On 2013 Feb 21, at 19:34, Norman Gray wrote: > It might also be worth looking at the docs for 'lambda:', since I can't see > any way of adding keywords to an anonymous function. ...and following up with tangent to my own question, it appears that make-

Re: [racket] Typed racket and keywords

2013-02-21 Thread Norman Gray
multiple nesting of the current lambda: form. All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Typed racket and keywords

2013-02-21 Thread Norman Gray
Vincent, hello. On 2013 Feb 21, at 15:20, Vincent St-Amour wrote: > I agree, the docs could be a lot clearer. > > I'll add examples that use keyword arguments. Great -- thanks. Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University

Re: [racket] Typed racket and keywords

2013-02-21 Thread Norman Gray
als (new fridge, new phone: "Oh, look, what nice manual, I'll turn the gadget on later..."). All the best, Norman -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

[racket] Typed racket and keywords

2013-02-20 Thread Norman Gray
ation. All the best, Norman (having another go with Typed Racket) -- Norman Gray : http://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK Racket Users list: http://lists.racket-lang.org/users

Re: [racket] current-subprocess-custodian-mode

2013-02-15 Thread Norman Gray
Matthew, hello. On 2013 Feb 15, at 00:30, Matthew Flatt wrote: > At Thu, 14 Feb 2013 13:42:38 +0000, Norman Gray wrote: >> (parameterize ((current-subprocess-custodian-mode #f)) >> [...]) >> >> I get an error "current-subprocess-custodian-mode: expects argumen

  1   2   >