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-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] 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] 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

[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] 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

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] 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] 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] 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

[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] simple question about call/cc

2020-12-07 Thread Tim Meehan
I've read a lot about call/cc, and each time wind up just moving on. So this is an early New Year's resolution: getting a better understanding of it. According to Wikipedia's page on continuations, the continuation of the statement: ((call/cc f) e2) is: (lambda (c) (c e2)) #lang racket (define

Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Tim Meehan
I'm not sure how to disable cursor blink in DrRacket, but your installation comes with a few other executables that are text only - such as "gracket-text" the cursor does not blink on my installation (MacOS, Racket 7.9 (bc)) On Sat, Nov 28, 2020 at 4:54 AM 'Mark' via Racket Users < racket-users@go

Re: [racket-users] compiler books

2020-11-27 Thread Tim Meehan
Hendrik - sorry for misspelling your name 😱. On Fri, Nov 27, 2020 at 5:41 PM Tim Meehan wrote: > Thanks for the links, Hendrick and Matt! > The holidays gave me some time to learn about things that I had put on the > back burner all year, so this is great timing. > > > >

Re: [racket-users] compiler books

2020-11-27 Thread Tim Meehan
>> On Wed, Nov 25, 2020 at 09:46:21AM -0600, Tim Meehan wrote: >> I found a book by Dick Grune et al to be somewhat lighter than the dragon >> book. Looking online, I discoered I was thinking of the first edition. >> I >> haven't seen the second edition, but I

Re: [racket-users] named let ...

2020-11-27 Thread Tim Meehan
nding. Thanks for finding that! On Fri, Nov 27, 2020 at 12:01 AM George Neuner wrote: > > On 11/26/2020 11:22 PM, Tim Meehan wrote: > > I was trying to turn one of Knuth's random number sampling without > replacement algorithms. It seems to be working, but when it comes time t

Re: [racket-users] executables

2020-11-27 Thread Tim Meehan
f.stanford.edu/dragonbook/>, or perhaps a lighter introduction if anyone has one they like. On Tue, Nov 24, 2020 at 11:26 PM George Neuner wrote: > > On 11/24/2020 7:34 PM, Tim Meehan wrote: > > Some Schemes allow you to compile to a (self-hosting?) executable (Chicken > {via C},

[racket-users] named let ...

2020-11-26 Thread Tim Meehan
I was trying to turn one of Knuth's random number sampling without replacement algorithms. It seems to be working, but when it comes time to return my prize ... nothing :( I thought that since I was returning from inside of the named let, that I'd get back my collection of numbers sampled without

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

[racket-users] executables

2020-11-24 Thread Tim Meehan
/paper that I might read on this? Cheers, 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. To view this dis

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-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 `

[racket-users] Pict and pict types

2020-11-24 Thread Tim Jervis
racket/typed-racket.rkt:23:4 I get the same results whether I require pict or typed/pict. I hope this question is of general interest. I have some familiarity with regular racket, but I’m only just starting out on typed racket. Best, Tim -- You received this message because you are subscribed t

Re: [racket-users] calculations with arrays

2020-11-18 Thread Tim Meehan
 >> Den ons. 18. nov. 2020 kl. 14.15 skrev Tim Meehan : > >> Is there a way to use Racket vectors similarly to how one might use NumPy? >> (Or are vectors even the right thing to use?) > > If you are after numerical calculations for mxn matrices, then look at > `flo

[racket-users] calculations with arrays

2020-11-18 Thread Tim Meehan
Is there a way to use Racket vectors similarly to how one might use NumPy? (Or are vectors even the right thing to use?) -- 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 em

[racket-users] publication hyperlinks in Racket reference?

2020-11-16 Thread Tim Meehan
There are a lot of really good publications out there by the Racket crowd. I find a lot of them in the usual ways; following this group, Racket News, internet searching, but has anyone considered linking to them from the guide or the reference? Perhaps the body of information is too large and chang

[racket-users] garbage collection

2020-10-25 Thread Tim Meehan
I'm in a very small programming operation, and I am trying to get my co-workers to try out Racket, or at least tolerate some of the tools being written in Racket. One of them has a very simple decision tree that he uses to evaluate programming languages: "does it have a garbage collector?", if yes,

Re: saneboxes: welcome remedies for a world in turmoil [racket-users]

2020-08-17 Thread Tim Meehan
Perhaps you meant 1600 Pennsylvania ave.? > On Aug 16, 2020, at 13:46, Etan Wexler wrote: > > Matthew Flatt recommended “wrapping the sanebox creation”. Matthew, these > saneboxes that you’ve invented seem to be just the devices that we’ve needed. > We’d like an initial batch of 5000 saneboxe

Re: [racket-users] a minor regexp question (and a how-could-I-answer-it-myself? question)

2020-05-01 Thread Tim Hanson
Thanks, Jens, much appreciated. I suspect I even knew this once and had since forgotten it. (I even glanced at the docs, saw the two kinds, but didn’t pause long enough to wonder if it mattered to me.) -- You received this message because you are subscribed to the Google Groups "Racket Users"

[racket-users] a minor regexp question (and a how-could-I-answer-it-myself? question)

2020-05-01 Thread Tim Hanson
hi, just now I'm debugging a regular expression and trying to understand why this: > (regexp-match-positions #rx"[-+][0-9]+" "-0500") '((0 . 5)) works as I expect, whereas this: > (regexp-match-positions #rx"[-+][0-9]{4}" "-0500") #f doesn't. (My naive opinion is the second expression

Re: [racket-users] a question or two regarding Gregor

2020-04-30 Thread Tim Hanson
very helpful that you linked to the issue, thank you. I now understand there are non-trivial problem domain issues (for example, “CDT” is ambiguous, probably even with locale specified.) I will think about how to tackle my specific problem and whether I can help with issues like these. -- You

Re: [racket-users] a question or two regarding Gregor

2020-04-30 Thread Tim Hanson
Thanks for the quick reply, Jon! OK, good to know. Maybe I can add the ones I need (if I can figure out how...). :) -- 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

Re: [racket-users] a question or two regarding Gregor

2020-04-30 Thread Tim Hanson
p.s. I'm stuck on parsing one pattern that comes up in my data. Here's a corresponding test: (parameterize ([current-locale "en"]) (check-equal? (parse-datetime "Sun, 21 Jun 2015 17:50:44 -0500 (CDT)" "EEE, dd MMM HH:mm:ss ()") (datetime 2015 6 21 17 50 44)))

Re: [racket-users] a question or two regarding Gregor

2020-04-27 Thread Tim Hanson
Thanks, Jon! I agree with your analysis and thoughts about which cases should always raise exceptions. (I can't recall whether you scan patterns that include semi-redundant information such as day-of-week; wondered just now whether a contradictory day of week would be another category of except

Re: [racket-users] a question or two regarding Gregor

2020-04-27 Thread Tim Hanson
Thanks. Something like that will let me proceed for now. I'd still be curious what folks think about an approach avoiding exceptions. -- 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

[racket-users] a question or two regarding Gregor

2020-04-26 Thread Tim Hanson
me longer than I have at the moment. (Maybe using an err lambda that doesn't throw an exception?) I thought I'd check here: - does this seem like a reasonable idea? - is mine an unusual use case and most folks know what format to expect and the exception approach is fine? - is there

Re: [racket-users] question re downloading a PDF file

2019-11-24 Thread Tim Hanson
Thanks, Dominik, that appears to do the trick! (pdfgrep is immediately happy...). Much appreciated, 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

[racket-users] question re downloading a PDF file

2019-11-24 Thread Tim Hanson
hi, I need to fetch a number of PDF documents and wrote a bit of racket to make it easier. The part that "downloads" is this: (let ([content ((compose port->string get-pure-port string->url) (url-for-doc year doc-name))]) (let ([out (open-output-file full-path-of-file-to-w

[racket-users] macOSX trick linking drracket in dock to current version via /etc/paths.d/racket ?

2019-11-17 Thread Tim Hanson
hi, I just upgraded to 7.4 and rediscovered (here, thanks for helpful posts!) the best practice for the bash $PATH using /etc/paths.d/racket. Is there an analogous trick to "update" which version I get when I click on the drracket icon in the macOSX dock? (OK, it's only a few clicks to remove

[racket-users] providing classes from a module

2019-10-02 Thread Tim Meehan
Say for instance, I have a class in "tastyfish.rkt" #lang racket (require racket/class) ; What `provide` statement would I put here so that another module ; (like "market.rkt" for instance) can require fish%? (define fish% (class object% (super-new) (init size) (define current-size

Re: [racket-users] [racket ursers] Keyword question

2019-08-22 Thread Tim Meehan
If it was just passing keyword arguments to your function, you might be able to do it like this: ; https://docs.racket-lang.org/guide/lambda.html ; https://docs.racket-lang.org/reference/procedures.html (define greet (lambda (given #:last surname) (string-append "Hello, " given " " surname)

Re: [racket-users] Here are many examples for learning Racket for new folks

2019-08-05 Thread Tim Meehan
SchemeWiki has SICP solutions as well , and so do many others (Eli Bendersky was another guy I had in my collection of links). I'll also give another thumbs up for Exercism.io (especially "timotheosh," a mentor there who really pushed me to write be

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

2019-07-12 Thread Tim Jervis
I am planning to be there from 12 to 1. I also have a Racket sticker on my laptop. In fact, absent the glasses, we basically look the same. Looking forward to meeting you! Tim > On 12 Jul 2019, at 16:32, Stephen De Gabrielle > wrote: > > > > > On 12 Jul 2019,

Re: [racket-users] finding the package that a function is defined in

2019-04-26 Thread Tim Meehan
Right under my nose, thank you. On Fri, Apr 26, 2019 at 4:25 PM Ben Greenman wrote: > I normally: > - search the docs, > - find the identifier in the left column, > - and read the libraries from the right column > > https://docs.racket-lang.org/search/index.html?q=contract-out > -- You receive

[racket-users] finding the package that a function is defined in

2019-04-26 Thread Tim Meehan
I'm certain that this was recently answered on this group, but I can't seem to find it. For instance, if I am using #lang racket/base, how would I figure out that I need "racket/contract"? (my current solution is "grep" or Google ... but I was hoping for a more elegant solution). #lang racket/base

[racket-users] question about matching with "(? ...)"

2019-04-21 Thread Tim Meehan
Forgive this naive question, I am having some trouble understanding some matching forms. If I wanted to filter out odd numbers like this: (filter odd? '(1 2 3 4 5)) => '(1 3 5) but I wanted to do this with a match: (define (filter-odds v) (match v [empty empty] [(cons (? odd? first) res

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? >

Re: [racket-users] go cheney yourself

2019-01-08 Thread Tim Hanson
Sorry! Yes, wrong list; noticed immediately; deleted immediately, butI guess that doesn’t stop the mails. Mea maxima culpa. I’ll try to be more careful in the future. Tim > On Jan 8, 2019, at 10:37 PM, Matthias Felleisen > wrote: > > > This is totally inappropriate. &g

[racket-users] go cheney yourself

2019-01-08 Thread Tim Hanson
great piece by Michelle Goldberg, imho: https://www.nytimes.com/2019/01/07/opinion/rashida-tlaib-profanity.html -- 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] Programatically highlighting portions of DrRacket definitions window

2019-01-01 Thread Tim Nelson
I'm working on a #lang with unusual syntax that's meant to be run only in DrRacket. Users will have a "program" in the definitions window and enter commands in the REPL. I'd like to be able to make certain commands temporarily highlight syntax in the definitions window, somewhat like raise-synt

Re: [racket-users] a matrix question

2018-03-26 Thread Tim Hanson
Many thanks, Jens Axel! That looks very good and includes several techniques that will help and inspire me, in particular for*/matrix, which I hadn't used yet. I'll try it out the next chance I get. -- You received this message because you are subscribed to the Google Groups "Racket Users" gr

[racket-users] a matrix question

2018-03-25 Thread Tim Hanson
wise? (my first draft solution is to read one col-matrix and write cell by cell into a destination (mutable) matrix); my preference would be to use immutable items, but that's secondary to elegance at this point. cheers, Tim -- You received this message because you are subscribed to the Go

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

2018-03-22 Thread Tim Jervis
I was amused but not surprised, if that makes sense, and I agree that it is clear elsewhere. I was thinking a few extra bytes for another example in the documentation for number? might be worthwhile, and in the same tutorial spirit of the comment in the following entry for complex? Tim >

[racket-users] not a number is a number

2018-03-21 Thread Tim Jervis
def._((quote._~23~25kernel)._number~3f))> 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 opti

Re: [racket-users] "Site not secure"

2018-03-10 Thread Tim Hanson
Thanks for fixing it! -- 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.co

[racket-users] "Site not secure"

2018-03-09 Thread Tim Hanson
renew the certificate. Cheers, tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https:/

[racket-users] [CFP] ICOOOLPS 2018

2018-02-05 Thread Tim Felgentreff
ing's College London Tobias Pape, Hasso Plattner Institute Jennifer Sartor, Vrije Universiteit Brussel + University Ghent ### Workshop Organizers Tim Felgentreff, Oracle Labs Potsdam Olivier Zendra, INRIA / LORIA -- You received this message because you are subscribed to the Google Group

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

2018-01-27 Thread Tim Jervis
Dear Neil, I can’t respond to point 1; I don’t have sufficient knowledge of the options. However, I would very much like to endorse the idea behind point 2. Kind regards, Tim > On 27 Jan 2018, at 12:26, Neil Van Dyke wrote: > > 1. Do we foresee using srcdoc for new work in the fu

Re: [racket-users] catching a contract violation in a unit test with check-exn

2017-11-25 Thread Tim Hanson
Thanks again. I've tweaked and commented the end of Mathias's example: (module+ test (check-exn exn:fail:contract? (lambda () (f 1))) ; violates contract by returning non-integer (check-exn exn:fail:contract? (lambda () (f 'a ; violates contract by being called with a non-integer and

Re: [racket-users] catching a contract violation in a unit test with check-exn

2017-11-18 Thread Tim Hanson
Beautiful! Thanks to both of you. Can't wait to try it out. Cheers, 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

[racket-users] catching a contract violation in a unit test with check-exn

2017-11-18 Thread Tim Hanson
Hi, I guess this didn't find the right subject matter expert yet. Would it be better to ask a specific person or use a different channel? Cheers, tbh -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiv

[racket-users] catching a contract violation in a unit test with check-exn

2017-11-12 Thread Tim Hanson
(pairwise-stream (stream-cons 1 empty-stream (check-equal? (stream->list (pairwise-stream (stream-cons 1 (stream-cons 2 empty-stream (stream->list (stream-cons (cons 1 2) empty-stream))) I'd be grateful for advice. Cheers, Tim -- You received this message because you ar

Re: [racket-users] European Racketeers and conferences

2017-09-04 Thread Tim Jervis
Looking forward to meeting you. Tim > On 3 Sep 2017, at 11:04, Matthew Flatt wrote: > > For anyone who can make the trip to Oxford, we'll be at the Swan & Castle at > 6:30pm on Monday. We hope to see you there! > > Matthew > >> On Aug 27, 2017, a

Re: [racket-users] European Racketeers and conferences

2017-08-24 Thread Tim Jervis
event in the future. Tim > On 24 Aug 2017, at 09:31, James Geddes wrote: > > I'm in London - not active on this list, but trying to work out how to > promote Racket in my industry. (I'm building a data science team and I just > struggle to like Python.) > > I

Re: [racket-users] European Racketeers and conferences

2017-08-22 Thread Tim Jervis
Hi Matthew, I’m based in London and would be interested in a get-together. Kind regards, Tim > On 22 Aug 2017, at 15:20, Daniel Brunner wrote: > > Hey Matthew, > > I live in Germany and use Racket for teaching students, teaching our > apprentices (dual education system i

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-29 Thread Tim Hanson
Heh, cool, Laurent! This dabbler had missed this until now -- I will read and probably use. Cheers, 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

Re: [racket-users] Best way to write run-once-and-cache functions?

2017-04-26 Thread Tim Brown
force'ing them. Does anyone else hold to a convention for naming promises? 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+uns

Re: [racket-users] Any work on demo.racket-lang.org?

2017-04-25 Thread Tim Brown
gather together a canonical list of sorts; and illustrate them in Racket. Has anyone any ideas of how to navigate this minefield? Tim † Am I missing a resource here? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] Any work on demo.racket-lang.org?

2017-04-25 Thread Tim Brown
e. But 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

[racket-users] Re: Any work on demo.racket-lang.org?

2017-04-25 Thread Tim Brown
mecookbook.org/ I was introduced to that on the IRC channel. If it's on the Internet, it can be scraped! 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

[racket-users] Any work on demo.racket-lang.org?

2017-04-24 Thread Tim Brown
ut and 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 -- T

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

[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] [Racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
p.s. I just found this: https://planet.racket-lang.org/package-source/gh/gapi.plt/1/3/planet-docs/manual/Examples.html which leads here: https://github.com/greghendershott/gapi/blob/master/examples/macro/gplus-oauth.rkt and looks promising. (I didn't find any signs of oauth use in sirmail (

Re: [racket-users] [Racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
Bravo! This parallels my motivation. I'm kind of a beginner in Racket, but it is powerful, portable, elegant, well-documented, and well-supported, so I keep dabbling ... -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

Re: [racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
Thanks, all, this rings a bell and I note that: https://docs.racket-lang.org/webapi/oauth2.html says use with caution. I will look around and see if I can figure out how to do imap in conjunction with oauth2. Cheers, Tim -- You received this message because you are subscribed to the

Re: [racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
Thanks again for several helpful pointers. I've recorded humble beginnings here: https://github.com/tbhanson/imap-with-racket Comments and suggestions very welcome. (I know in particular I'd like to have a handy way to store my credentials somewhere, am using ~/.myImapCreds for now, but am un

Re: [racket-users] IMAP with racket

2017-02-10 Thread Tim Hanson
Hi, Huang, Thanks for sharing. Cheers, Tim Hanson -- 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 mo

Re: [racket-users] IMAP with racket

2017-02-10 Thread Tim Hanson
I should have dug around in sirmail sooner. Armed with the hint about parametrize I've now found this: (if (get-pref 'sirmail:use-ssl?) (let-values ([(in out) (ssl-connect server port-no)]) (imap-connect* in out (USERNAME) passwd mailbox-name))

Re: [racket-users] IMAP with racket

2017-02-08 Thread Tim Hanson
Cool, thank you! I had no idea about parameterize. I will try that and continue my investigations. -- 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+

Re: [racket-users] IMAP with racket

2017-02-08 Thread Tim Hanson
P.s. For that matter couldn't folder also be optional, defaulting to "INBOX"? -- 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...@googlegrou

Re: [racket-users] IMAP with racket

2017-02-07 Thread Tim Hanson
d two imap-connections going at once? I will experiment and maybe learn more, but thought I'd ask about this in the meantime. Cheers, Tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and s

[racket-users] Best practice for using .../private files from packages (pict3d)

2017-01-26 Thread Tim Brown
? 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 City

Re: [racket-users] Mann-Whitney test?

2017-01-24 Thread Tim Chase
Here is an interesting alternative: https://www.opencpu.org. You communicate with R processes via JSON. So, you wouldn't want a lot of back-and-forth, but I can see doing some setup logic and data prep in Racket, then sending off the JSON request, then interpreting the results. OpenCPU happens

Re: [racket-users] IMAP with racket

2016-12-27 Thread Tim Hanson
Thanks for both answers! I'll report back when I've made some progress! Cheers, 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 r

[racket-users] IMAP with racket

2016-12-26 Thread Tim Hanson
Hi, I think I'd like to try using racket as a way to explore relatively simple ways of getting a grip on some mail accounts that have gotten out of hand. Specifically I'd like to be able to - compute some statistics, such as number of mails from various addresses - reorganize / clean-up, say by m

Re: [racket-users] Racket backwards compatible to schemer books?

2016-11-25 Thread Tim Johnson
* Tim Johnson [161122 03:41]: > Hello racketeers : > > I retired as a coder. Now I can write in whatever programming > language I wish to. > > I'd like to learn racket. I intend to start by working off of the > Schemer books. I have the first three. > > Is rac

Re: [racket-users] Testing - mails sent from desktop mail client not received

2016-11-22 Thread Tim Johnson
* Tim Johnson [161118 13:02]: > I am sending this from my browser, pointed at > https://groups.google.com/forum/#!newtopic/racket-users as a test. > > Although I have been receiving emails sent to the Racket Users email list > (racket-users@googlegroups.com) as a subscriber, em

[racket-users] Racket backwards compatible to schemer books?

2016-11-22 Thread Tim Johnson
site that would detail any incompatibilities? Thanks -- Tim http://www.akwebsoft.com, http://www.tj49.com -- 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

[racket-users] Re: Testing - mails sent from desktop mail client not received

2016-11-19 Thread Tim Johnson
rge. I will stick with the google mailer for now. And I will wait a couple of days to see if my original posting (regarding racket compatibility to older little schemer books) shows up. cheers tim -- You received this message because you are subscribed to the Google Groups "Racket U

[racket-users] Re: Testing - mails sent from desktop mail client not received

2016-11-18 Thread Tim Johnson
On Friday, November 18, 2016 at 1:02:20 PM UTC-9, Tim Johnson wrote: > I am sending this from my browser, pointed at > https://groups.google.com/forum/#!newtopic/racket-users as a test. > > Although I have been receiving emails sent to the Racket Users email list >

[racket-users] Testing - mails sent from desktop mail client not received

2016-11-18 Thread Tim Johnson
I am sending this from my browser, pointed at https://groups.google.com/forum/#!newtopic/racket-users as a test. Although I have been receiving emails sent to the Racket Users email list (racket-users@googlegroups.com) as a subscriber, emails sent by me to the same list via my desktop email cli

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

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] TR issue with the type of expt

2016-09-27 Thread Tim Brown
/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 wrote: > >> I b

[racket-users] TR issue with the type of expt

2016-09-27 Thread Tim Brown
n’t think of a counterexample) that (expt Real Real) is never Complex; and therefore expt can be of type (Real Real -> Real). First off, is the statement above true? Is there a technical reason why my example HAS TO fall back to (Number Number -> Number)? Or is this simply an oversight? Rega

Re: [racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-08 Thread Tim Brown
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 nightl

Re: [racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-07 Thread Tim Brown
:-( 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

[racket-users] TR warning with pict3d-canvas% (in pict3d)

2016-09-07 Thread Tim Brown
cpointers 20 [#:opaque CType ctype?] 21 ) .. which seems perfectly innocuous to me :-/ Tim -- Tim Brown CEng MBCS City Computing Limited · www.cityc.co.uk City House · Sutton Park Rd · Sutton · Sur

[racket-users] typed/racket/gui : possible bug in slider%.get-value

2016-09-07 Thread Tim Brown
The following code produces a contract error; I think TR is making assumptions that it probably shouldn’t be. Please could someone investigate. Thanks, Tim ;;; #lang typed/racket/gui (define f (new frame% [label "Frame"]

  1   2   3   4   >