[racket-users] Vectors, boxes and places

2022-02-03 Thread Tim Jervis
Dear Racketeers, Is there something I have misunderstood about vectors, boxes and places which might explain why immutable boxes are not place-message-allowed, but immutable vectors are? > (place-message-allowed? (box-immutable #f)) #f > (place-message-allowed? (vector-immutable #f)) #t > c.f

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

2022-02-03 Thread Tim Jervis
you don’t > feel like it. > > https://racket.discourse.group/ > > John > >> On Feb 3, 2022, at 5:58 AM, Tim Jervis wrote: >> >> Dear Racketeers, >> >> Is there something I have misunderstood about vectors, boxes and places >> which mig

Re: [racket-users] in-source documentation, single-file packages, and scribble/srcdoc

2018-01-27 Thread Tim Jervis
ed explosion issue.}]} > > @Release["1.0" "2025-12-24"]{ > This was a good initial release. We got out there, > and gave 110%.}]} > > END > > -- > You received this message because you are subscribed to the Google Groups > &

[racket-users] not a number is a number

2018-03-21 Thread Tim Jervis
I was amused to see (number? +nan.0) returns #t. Is it worth noting this in the documentation? https://docs.racket-lang.org/reference/number-types.html?q=number%3F#%28def._%28%28quote._~23~25kernel%29._number~3f%29%29

Re: [racket-users] not a number is a number

2018-03-22 Thread Tim Jervis
do appreciate the irony of the names. Perhaps `(number? +nan.0)` could be > added as another example of `number?` in the documentation, if this is > surprising or unclear. > > -Philip > >> On Thu, Mar 22, 2018 at 1:51 AM, Tim Jervis wrote: >> I was amused to see

Re: [racket-users] London Racket Meet-up ?

2019-03-06 Thread Tim Jervis
Dear Stephen, I would be very interested to join you, later this month or next. Kind regards, Tim > On 6 Mar 2019, at 13:54, Stephen De Gabrielle wrote: > > Hi, > Would anyone be interested in an informal Racket meetup in London? > > Any preference for date/time? > > For a location I’m

Re: [racket-users] using a different "scribble.tex"

2016-03-31 Thread Tim Jervis
gt; > -- > 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 ht

Re: [racket-users] using a different "scribble.tex"

2016-04-01 Thread Tim Jervis
he latex > includes. > > --spf > > > On Thu, Mar 31, 2016 at 2:45 AM Tim Jervis <mailto:t...@timjervis.com>> wrote: > Commenting out scribble.tex with an open comment in prefix.tex and closing > comment in scribble.tex works, to a point. It hides scribble.tex,

Re: [racket-users] racket-mode: OK to require Racket 6.0+?

2016-10-10 Thread Tim Jervis
Here here! Tim Jervis +44 7801 337 078 > On 10 Oct 2016, at 19:56, Dmitry Igrishin wrote: > > Hi Greg, > > Yes, please! Racket mode for Emacs is great. Thank you for you work! > > -- > You received this message because you are subscribed to the Google Groups >

Re: [racket-users] Of editors and mere mortals

2016-11-06 Thread Tim Jervis
Emacs (Aquamacs) (with racket-mode and Paredit) for me, with occasional DrRacket use for rare debugging, especially Macros. Tim > On 5 Nov 2016, at 13:14, Ken MacKenzie wrote: > > So as much as I know there is much love for Dr Racket, I am not the biggest > fan. Yes I must admit some of its

[racket-users] range with small or zero step doesn't return

2017-04-17 Thread Tim Jervis
racket distribution could trap the condition of an actually or effectively zero step. for.rkt already traps the condition where step is not real. If this makes sense, could one of the authors consider adding the tweak? Or is there a reason for leaving it alone? Kind regards, Tim Tim Jervis http

Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Tim Jervis
]) i)) >> cpu time: 22100 real time: 22210 gc time: 0 >> > (time (for ([i (in-range 100)]) i)) >> cpu time: 7 real time: 22265 gc time: 0 >> > (time (for ([i (in-range 100)]) i)) >> cpu time: 21934 real time: 22016 gc time: 0 >> >> T

Re: [racket-users] European Racketeers and conferences

2017-08-22 Thread Tim Jervis
ymposium) >> >> Best, >> >> > > -- > 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+un

Re: [racket-users] European Racketeers and conferences

2017-08-24 Thread Tim Jervis
iate venues for that that I'm unaware of (I am already >>> >>>>>> familiar with the European lisp symposium) >>> >>>>>> >>> >>>>>> Best, >>> >>>>>> >>> >>>>>

Re: [racket-users] European Racketeers and conferences

2017-09-04 Thread Tim Jervis
>>>> Matthew F, Robby, and I will be in Oxford for ICFP starting late next >>>> week. None of us thought of this before but I am sure we could at least >>>> arrange for some dinner or afternoon get-together. — Matthias >>>> >>>> >>>&g

Re: [racket] Scribble secref unlinked in PDF output

2013-12-04 Thread Tim Jervis
e document). > > At Wed, 23 Oct 2013 23:02:27 +0100, Tim Jervis wrote: >> Dear Racket Users, >> >> I have been writing a document in Scribble, without output to PDF. The table >> of contents of the PDF nicely links the entries in the table to the sections >>

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Tim Jervis
ew Flatt wrote: > Yes, it's about the same, where it's just a matter of adjusting the > \FigureRef Latex macro. > > I've pushed the change. > > At Thu, 5 Dec 2013 01:50:53 +, Tim Jervis wrote: >> Dear Matthew, >> >> Is there a similarly ea

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Tim Jervis
te: > I wonder whether it's a limitation of \hyperref and figures. When the > link goes to the wrong place, does it go to the place where the figure > would be in the source of the document, as opposed to where it's moved > to in the output? > > At Thu, 5 Dec 2013 09:24:53

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Tim Jervis
TeX >> only once. >> >> Sam >> >> On Thu, Dec 5, 2013 at 8:45 AM, Tim Jervis wrote: >>> Hi Matthew, >>> >>> Perhaps it is related to how figures are moved about during rendering. >>> >>> I'm attaching an example so

[racket] Macro and define question

2013-09-02 Thread Tim Jervis
Hello, I have been trying to create a macro to make some arbitrary definitions, with success. The following defines a structure (posn) and a value (val): (define-syntax (long syntax-object) (syntax-case syntax-object () [(_ argument) (let ([make-id (lambda (x) (datum->syntax syntax-ob

Re: [racket] Macro and define question

2013-09-03 Thread Tim Jervis
eated by datum->syntax to be > visible to the user, you need to supply a piece of syntax that you got > from the user. That's why calling "long" directly works but not if > it's called via "short". > > > > On Mon, Sep 2, 2013 at 8:08 PM, Tim Je

[racket] Scribble secref unlinked in PDF output

2013-10-23 Thread Tim Jervis
been neglected. In any event, is there a way to render a PDF with "live" secref links, to give similar functionality to the table of contents? Kind regards, Tim Tim Jervis http://timjervis.com/ Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Scribble secref unlinked in PDF output

2013-11-04 Thread Tim Jervis
LaTeX-level label to macros that render section links (when > the referenced section is within the same document). > > At Wed, 23 Oct 2013 23:02:27 +0100, Tim Jervis wrote: >> Dear Racket Users, >> >> I have been writing a document in Scribble, without output to PDF. The ta

Re: [racket-users] Re: Impromptu racket meetup in London Friday, 19 July at 12pm-3pm

2019-07-12 Thread Tim Jervis
roups.com > <mailto:racket-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/D18ED02F-10C8-4381-9D99-D2068BB38847%40gmail.com > > <https://groups.google.com/d/msgid/racket-users/D18ED02F-10C8-43

[racket-users] Pict and pict types

2020-11-24 Thread Tim Jervis
Hi everyone, In typed racket, vc-append expects arguments of type pict, while plot-pict produces results of type Pict. Therefore, to have vc-append accept a plot-pict argument, I’m currently casting the result of plot-pict to be of type pict. >From my understanding of the underlying racket code

Re: [racket-users] hash-ref in typed Racket

2020-11-24 Thread Tim Jervis
For the type of the third argument, rather than "any non-function", could Typed Racket use the type of the values in the hash? On Tuesday, 21 April 2020 at 15:51:00 UTC+1 Sam Tobin-Hochstadt wrote: > The problem here is with the optional third argument to `hash-ref`. > Typed Racket only allows `

Re: [racket-users] hash-ref in typed Racket

2020-11-24 Thread Tim Jervis
is String, the same as the third argument of hash-ref. > On 24 Nov 2020, at 14:44, Sam Tobin-Hochstadt wrote: > > Unfortunately, that doesn't work -- the values in the hash could > include functions. > > Sam > > On Tue, Nov 24, 2020 at 7:25 AM Tim Jervis wrote: >>

Re: [racket-users] hash-ref in typed Racket

2020-11-25 Thread Tim Jervis
t;Thunk on error:\n") (for ([key (in-list '(function string missing))]) (printf "key: ~a\tvalue: ~a\n" key (hash-ref h key (thunk "Missed!") > ; hash/c: contract violation ; expected: chaperone-cont