[racket-users] Re: 7 GUIs

2019-06-13 Thread Maciek Godek
And one more thing, someone provided a purely functional solution for the Draggable Rectangle Challenge in F# (I think it might be interesting to some). The links can be found here:

[racket-users] Re: 7 GUIs

2019-06-13 Thread Maciek Godek
W dniu niedziela, 2 czerwca 2019 01:47:20 UTC+2 użytkownik Matthias Felleisen napisał: > > > Someone recently mentioned the “7 GUIs” task. I spent a couple of days to > write up minimal solutions: > > https://github.com/mfelleisen/7GUI/blob/master/task-7.rkt > > In my spare time, I will

[racket-users] nj-symbols

2019-06-13 Thread Jos Koot
To whom may be interested, Repository https://github.com/joskoot/nj-symbols Provides procedures for the exact computation of the squares of 3j-, 6j- and 9j-symbols. For documentation a scribble module is included. Jos -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] exact rationals in interactions window

2019-06-13 Thread Robby Findler
Does this help? (let ([cp (current-print)]) (current-print (λ (x) (define sp (open-output-string)) (parameterize ([current-output-port sp]) (cp x)) (display (get-output-string sp) On Thu, Jun 13, 2019 at 12:20 PM Jos Koot wrote: > > > > Hi > > > > Is it possible

Re: [racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Sam Tobin-Hochstadt
What do you need the hash for? Could you get the hash from the package system, for example: > (require pkg/lib) > (pkg-info-checksum (hash-ref (installed-pkg-table) "z3")) "84059a4428454cc6edd57865befaedb1d29dedce" Sam On Thu, Jun 13, 2019 at 2:59 PM Eric Eide wrote: > > Matthew Flatt writes:

Re: [racket-users] managing competing access to filesystem within places

2019-06-13 Thread Matthew Flatt
I recommend a lock-serving place in Pollen to manage concurrency for parallel rendering. Don't let multiple places try to read and/or write to the same file, and don't try to use filesystem locks. You can use filesystem locks to manage concurrency, but it's not convenient. Part of the problem is

[racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Eric Eide
Argh, I screwed up the subject line of my question email :-/. I always have to remind myself that the command is `git archive`, not `git export`. Sorry for any confusion. -- --- Eric Eide . University of Utah

[racket-users] exact rationals in interactions window

2019-06-13 Thread Jos Koot
Hi Is it possible to instruct DrRacket to display non-integer exact rationals with a slash in stead of a horizontal line? If so, how? I tried current-print and the like, but without success. Jos -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Matthew Flatt
At Thu, 13 Jun 2019 11:24:03 -0600, Eric Eide wrote: > As described here , > > > When a Git repository is specified as a package source, then a copy of the > > repository content is installed as the package implementation. That > > installation

[racket-users] managing competing access to filesystem within places

2019-06-13 Thread Matthew Butterick
To Pollen, I've recently added a parallel-rendering facility with places, in emulation of how Racket docs are rendered in parallel. But it doesn't quite work — I get intermittent / inconsistent errors from the filesystem (for instance, certain files that should exist do not, or certain files

[racket-users] Git-Backed Racket Packages, git export

2019-06-13 Thread Eric Eide
As described here , > When a Git repository is specified as a package source, then a copy of the > repository content is installed as the package implementation. That > installation mode is designed for package consumers, who normally use a >

[racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Eric Eide
Matthew Flatt writes: > The simplistic answer is that `git-checkout` doesn't support a `git > archive`-like mode. And a practical answer is that no one is likely to > implement it in the near term. :) Thanks for the explanation! As you might have guessed, my goal is to figure out how to insert

[racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Eric Eide
Sam Tobin-Hochstadt writes: > What do you need the hash for? Could you get the hash from the package > system, for example: I want to know the ("a") hash so that I can reliably reproduce outputs, diagnose crashes, etc. The package hash might work; thank you for pointing it out! I'll have to

Re: [racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Philip McGrath
According to §2.2 Package Sources , for a Git package source in the syntax ‹scheme›://‹host›/.../‹repo›[.git][/][?path=‹path›][#‹rev›], "the package’s checksum is the hash identifying ‹rev› if ‹rev› is a branch or

Re: [racket-users] managing competing access to filesystem within places

2019-06-13 Thread George Neuner
On 6/13/2019 9:16 PM, Matthew Butterick wrote: On Jun 13, 2019, at 10:04 AM, Matthew Flatt > wrote: I recommend a lock-serving place in Pollen to manage concurrency for parallel rendering. Don't let multiple places try to read and/or write to the same file, and don't

[racket-users] Re: Git-Backed Racket Packages, git archive

2019-06-13 Thread Eric Eide
Philip McGrath writes: > According to §2.2 Package Sources, for a Git package source in the syntax > ‹scheme›://‹host›/.../‹repo› [.git][/][?path=‹path›][#‹rev›], "the package’s > checksum is the hash identifying ‹rev› if ‹rev› is a branch or tag, otherwise > ‹rev› itself serves as the

[racket-users] going to icfp?

2019-06-13 Thread Jesse Alama
Who's all going to this year's ICFP in Berlin? (https://icfp19.sigplan.org) -- Jesse Alama https://lisp.sh -- 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] Why struct type doesn't include field names?

2019-06-13 Thread Sorawee Porncharoenwase
Several struct extensions need to construct accessors unhygienically even though the accessors can be extracted from struct types. The reason is that there’s not enough information to establish connection between field names and accessors. For instance, consider struct* from racket/match. #lang

Re: [racket-users] managing competing access to filesystem within places

2019-06-13 Thread Matthew Butterick
> On Jun 13, 2019, at 10:04 AM, Matthew Flatt wrote: > > I recommend a lock-serving place in Pollen to manage concurrency for > parallel rendering. Don't let multiple places try to read and/or write > to the same file, and don't try to use filesystem locks. Thanks for the suggestion. I see

Re: [racket-users] managing competing access to filesystem within places

2019-06-13 Thread Matthew Flatt
At Thu, 13 Jun 2019 18:16:50 -0700, Matthew Butterick wrote: > > > On Jun 13, 2019, at 10:04 AM, Matthew Flatt wrote: > > > > I recommend a lock-serving place in Pollen to manage concurrency for > > parallel rendering. Don't let multiple places try to read and/or write > > to the same file, and