Re: [racket-users] macros in Racket repository

2021-05-09 Thread Tim Meehan
choose "Open Defining File" (which changes to >>> "Jump to Definition (in Other File)" once DrRacket opens the file. >>> >>> If you use Emacs with racket-mode, go to an occurrence of `and` and hit >>> "M-." (that is, hold down Met

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

[racket-users] executables

2020-11-24 Thread Tim Meehan
Some Schemes allow you to compile to a (self-hosting?) executable (Chicken {via C}, Chez, Racket, others?). Some do not (Guile, others?), but compile to bytecode. Why would a group of developers choose one over the other? Or is the end result not that different in either case? Is there a book/pape

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

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