On Tue, Oct 22, 2013 at 8:54 PM, Erik Pearson wrote:
> Thanks.
>
> raco link -d is working, that is, my collections are
> found, although I still have one little problem. The precedence of my linked
> collection directory seems to be lower than for the built-in collections.
> With the explicit co
Thanks.
raco link -d is working, that is, my collections are
found, although I still have one little problem. The precedence of my
linked collection directory seems to be lower than for the built-in
collections. With the explicit collections directory setting in drracket
I'm able to set the githu
On Tue, Oct 22, 2013 at 7:36 PM, Greg Hendershott
wrote:
> I think the equivalent to DrRacket's Collection Paths setting might be
> to use the PLTCOLLECTS environment variable? See:
>
> http://docs.racket-lang.org/reference/collects.html
>
> Also there are a number of command-line flags; I'm n
I think the equivalent to DrRacket's Collection Paths setting might be
to use the PLTCOLLECTS environment variable? See:
http://docs.racket-lang.org/reference/collects.html
Also there are a number of command-line flags; I'm not sure which
corresponds to exactly what you need:
$ racket -h
...
It's probably easiest to add a link (named "libcairo.2.so") to the
Racket-specific Cairo library in the directory reported by
#lang racket/base
(require setup/dirs)
(find-dll-dir)
Racket looks for dynamic libraries in that directory first, and other
programs won't look there.
At Tue, 22 Oct 2
Hi,
I've just switched over to the Racket github master from 5.3.6. It is set
up well enough that development proceeds normally. I have setup a
collection directory which contains libraries that I'm developing and upon
which my main projects depend. For DrRacket work I have used Language ->
Choose
Briefly: I'd like Racket + its packages to know where (e.g.) the latest
Cairo libraries are, but I also want most of my other software continue to
use an older version of Cairo.
If anyone can point me to the relevant section of documentation I'd be
awfully grateful.
And if what I'm trying to do i
On Oct 22, 2013, at 12:25 PM, Sam Tobin-Hochstadt wrote:
> I have a little button with a pencil next to the description (for my
> packages), and if I click on that the field becomes editable.
Not there for me.
Ah! The package owner is wrong.
I'd like to change the owner of that package to cle
I have a little button with a pencil next to the description (for my
packages), and if I click on that the field becomes editable.
Sam
On Tue, Oct 22, 2013 at 3:19 PM, John Clements
wrote:
> Is there a way to edit the "description" field associated with a package at
> pkg.racket-lang.org?
>
> O
Is there a way to edit the "description" field associated with a package at
pkg.racket-lang.org?
ObDueDiligence: I thought perhaps it might be a setup/infotab field, but I took
a look at a few of your info.rkt fields for a few of your github repos, and I
don't see any there.
John
__
Sure, it would be nice. FWIW, there is also the pict library.
Robby
On Tue, Oct 22, 2013 at 10:07 AM, Daniel Prager
wrote:
> Good to understand the trade-off. In a similar vein I see that in BSL (+
> ...), for example, requires at least two arguments vs zero or more in
> racket.
>
> I did fin
Good to understand the trade-off. In a similar vein I see that in BSL (+
...), for example, requires at least two arguments vs zero or more in
racket.
I did find it a little odd that I had recourse to use a "teachpack" to gain
access to this nice set of general-purpose drawing abstractions. Are
(=~ is interesting. Thanks.
On 22 October 2013 13:53, Matthias Felleisen wrote:
>
> ;; equation3 : number -> boolean
> ;; to determine whether n is a solution for 2n^2 = 102
> (define (equation3 n)
> (=~ (* 2 n n) 102 .001))
>
>
> -- Matthias
>
>
>
> On Oct 22, 2013, at 8:40 AM, Bo Gus
Frog mainly tries to be a blog generator, as opposed to a
general-purpose site generator. Otherwise I'd name it "Frite". ;)
Having said that, I think it should work fine for what you describe. A
few things to keep in mind:
1. There's a very-recently-added .frogrc option, `posts-index-uri`,
you sh
Matthias Felleisen writes:
> On Oct 22, 2013, at 6:46 AM, Konrad Hinsen
> wrote:
>
> > structs and vectors once I am in the Typed Racket universe, so I'll
> > stick to structs for now.
>
> Use vectors. At some point, you will want to iterate over these
> things or access fields via com
Hi BoGus,
fwiw, this exercise is NOT in HTDP 2nd edition but HTDP 1st edition, 1-4th
printing.
Just in case you really want to work through HtDP 2e.
-- Matthias
On Oct 22, 2013, at 8:53 AM, Matthias Felleisen wrote:
>
> ;; equation3 : number -> boolean
> ;; to determine whether n
Thanks for the fix!
I meant to say index.md in my earlier message, that was a thinko.
I'm building the static site for Pyret, which will have a blog down
the line, but I want to make a nice index page for it as well, and
it'd be cool to have it all in one place. The fact that Frog gives me
Racke
;; equation3 : number -> boolean
;; to determine whether n is a solution for 2n^2 = 102
(define (equation3 n)
(=~ (* 2 n n) 102 .001))
-- Matthias
On Oct 22, 2013, at 8:40 AM, Bo Gus wrote:
> equation 2 is 2n^2 = 102 so I implement like this:
>
> ;; equation3 : number -> boolean
>
On Oct 22, 2013, at 6:46 AM, Konrad Hinsen wrote:
> fter today's
> explorations, I conclude that there's probably no difference between
> structs and vectors once I am in the Typed Racket universe, so I'll
> stick to structs for now.
Use vectors. At some point, you will want to iterate over th
equation 2 is 2n^2 = 102 so I implement like this:
;; equation3 : number -> boolean
;; to determine whether n is a solution for 2n^2 = 102
(define (equation3 n)
(= (* 2 n n) 102))
And my answer is the same as per the online answer. so great.
But how can I check a valid answer.
Eg if I do
This is of course a symptom of the more general problem that we fail to have a
mechanism that specializes a module to a particular language context. In *SL,
the restriction is absolutely great; in Racket, the restriction is a pain. Note
that units wouldn't solve the problem cleanly either -- Ma
I did this explicitly because (I believe) it helps with parenthesis errors
when beginning students make simple mistakes using the library. For more
advanced programmers, it seems straightforward to define things like:
(define (above* . is) (cond [(null? is) (blank)][(null? (cdr is)) (car
is)][else
Matthias Felleisen writes:
> You can count on Racket to inline a bunch of such small functions.
> You can use Optimization Coach to check on your understanding of
> what the compiler actually does, and you may benefit from its advice.
Optimization Coach sounds interesting, I'll install it ne
On Mon, Oct 21, 2013 at 8:41 PM, Sam Tobin-Hochstadt
wrote:
> On Mon, Oct 21, 2013 at 3:36 PM, Neil Van Dyke
wrote:
>> Sam Tobin-Hochstadt wrote at 10/21/2013 02:35 PM:
>>>
>>> https://gist.github.com/samth/7088570
>>>
>>
>> [...]
>>
>>> Direct is always fastest, multiple values are very slow, an
You have an extra pair of parentheses around the "else" clause.
Bo Gus wrote at 10/22/2013 04:08 AM:
(define (tax pay)
(cond
((<= pay 240.0) 0)
((<= pay 480.0) (* (/ 15 100) pay))
((else ((+ (* (/ 15 100) 480) (* (/ 28 100) (- pay 480
Racket Users l
Using DrRacket v5.3.6, if I enter:
(define (tax pay)
(cond
((<= pay 240.0) 0)
((<= pay 480.0) (* (/ 15 100) pay))
((else ((+ (* (/ 15 100) 480) (* (/ 28 100) (- pay 480
I get error
else: not allowed as an expression in: (else ((+ (* (/ 15 100) 480) (* (/
28 100) (- pay 480)
26 matches
Mail list logo