Sanjeev Sharma | 1 Aug 22:40 2015
Picon

keep everything in each in-place install

I am getting conflicts between the global install and in-place installs, especially in document searches
not working.

I'm guessing the issue is with user preferences. 

Is there a way to do the in-place install such that everything gets put in the in-place install's tree?

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
Matthew Butterick | 1 Aug 17:54 2015

http connection errors on pkg-build

For the last couple of days my pollen builds have failed with this "connection failed" error. I don't see any other packages failing to download from GitHub, suggesting it's my fault. OTOH the supposedly defective URL works fine, so I'm not sure how to make the build server happier.

Downloading https://github.com/mbutterick/pollen/tarball/c62bdbbe7233c5190628731725ba9169bc2cb067 tcp-connect: connection failed detail: host not found address: github.com port number: 443 step: 1 system error: Name or service not known; errno=-2

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Deren Dohoda | 31 Jul 17:49 2015
Picon

Some help with syntax-parse: macro in macro

Suppose I have a macro (experiment ...) which is intended, among other things, to be composed of uses of a
macro (collect ...). 

For instance:
(experiment
  (collect ...)
  (collect ...) ...)

To my understanding, "collect" is not a literal. Can I turn the collect macro itself into a syntax class
somehow? Should I instead create a dummy literal "collect" for this purpose, and then create a (collect*
...) macro?

Thanks for any advice.

Deren

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
Laurent | 31 Jul 15:05 2015
Picon

Optimizing closures

Hi,

A little stress test seems to suggest that the JIT is currently not able to optimize closures with static arguments:

That's a simplified version of some cases of mine where several complex procedures that look very much alike, so I'd really like to avoid copy/paste/maintain, but these procedures are also inside intensive loops, so I'd really like to not sacrifice speed.

Is there a better way to write this code with copy/paste to allow for optimizations?

Thanks,
Laurent

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Konrad Hinsen | 30 Jul 16:46 2015
Picon

Literate programming and submodules

Hi everyone,

I have been testing literate programming in Racket recently (#lang 
scribble/lp2), and found it overall quite nice - until I wanted to 
include tests in the usual way, by creating a submodule "test":

==================================================
#lang scribble/lp2

 <at> chunk[<drop>
        (define (drop t)
          (* 1/2 9.8 t t))]

 <at> chunk[<test-drop>
        (check-= (drop 0) 0 ε)
        (check-= (drop 10) 490 ε)]

 <at> chunk[<to-energy>
        (define (to-energy m)
          (* m (expt 299792458.0 2)))]

 <at> chunk[<test-to-energy>
        (check-= (to-energy 0) 0 ε)
        (check-= (to-energy 1) 9e+16 1e+15)]

 <at> chunk[<*>
        (provide drop to-energy)
        <drop>
        <to-energy>
        (module* test #f
          (require rackunit)
          (define ε 1e-10)
          <test-drop>
          <test-to-energy>)]
==================================================

This is a straightforward conversion of a submodule example from the 
Racket guide to #lang scribble/lp2. But it doesn't work, because the 
bindings drop and to-energy are not visible inside the test submodule.

Given that scribble uses submodules itself, I am not sure if this is 
supposed to work. What I am more interested in is finding a workaround. 
Is there some way to combine literate programming and testing using 
"raco test"?

Konrad.

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Vincent St-Amour | 29 Jul 18:46 2015

Full (fifth RacketCon) Program is up!


The full program of (fifth RacketCon) is now available! [1] Don't forget
to register! [2]

RacketCon is a yearly event where members of the Racket community get
together, featuring talks and demos about the things you do with Racket.

On the menu is "The Racket Manifesto" by Matthias Felleisen, plus topics
ranging of topics from music and poetry to JIT compilation and dependent
types.

(fifth RacketCon) will be held on September 27th in St. Louis.
Like last year, we are pleased to be co-located with Strange Loop [3].

We're also planning a social gathering the evening before RacketCon
(September 26th). Details are forthcoming, but it's not too early to
mark it on your calendar!

See you in St. Louis!

Vincent

[1] http://con.racket-lang.org/
[2] https://www.eventbrite.com/e/racketcon-2015-tickets-16825218682
[3] https://thestrangeloop.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 to racket-users+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Matthew Flatt | 29 Jul 17:16 2015
Picon

upcoming v6.2.1

We're preparing a v6.2.1 release, which will go out before August 10.
The v6.2.1 build will be a small set of patches to v6.2, i.e., not
derived from the current development branch. 

The patches are for the HtDP teaching languages. The main patch for
v6.2.1 is to add an option to restore the old output format for
booleans and the empty list in *SL --- to print as true, false, and
empty, instead of the new style of #true, #false, and '() that was
enabled in v6.2.

Classes using DrRacket will not necessarily need v6.2.1. In particular,
the latest version of HtDP2e uses the new v6.2 output format, while the
names true, false, and empty can still be used in programs. The output
change can be a problem, however, for teachers who have other material
that depends on the old output format (and that is not easily updated).
So, if your class does not need the old printing style, feel free to
use the current v6.2 release.

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Klaus Ostermann | 29 Jul 16:00 2015
Picon

Units and macros

Units are not allowed to export macros, presumably because the unit wiring takes place after the macro expansion.

I have a unit and would like to define a few macros based on the interface of that unit.

Right now I copy&paste my macros into every file where I wire the unit, such as in

...
(define-values/invoke-unit/infer some-unit <at> )

(define-syntax-rule (foo t) (...something-from-the-unit-interface))

Surely there is a better way to do this.

But 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 to racket-users+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
sagyo12341234 | 29 Jul 15:45 2015
Picon

is this a bug?

Dear racket maintainers,

Maybe, I found a bug.

> (foldr (lambda (x y) (list x y)) '() '(a1 a2 a3 a4 a5))
'(a1 (a2 (a3 (a4 (a5 ())))))
> (foldl (lambda (x y) (list x y)) '() '(a1 a2 a3 a4 a5))
'(a5 (a4 (a3 (a2 (a1 ())))))

Thanks, I hope racket language is more popular.

Taro

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
Klaus Ostermann | 29 Jul 15:28 2015
Picon

Macro that does substitution

I'd like to have a macro "let-cbn" which does this:

(let-cbn ((x1 e1) ...) body)

is transformed to

(let ((x1 (thunk e1)) ...) newbody)

where newbody is the result of replacing every occurence of x1... by (x1)... .

What is the best way to do that in Racket?

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.
Yanpeng Li | 29 Jul 12:51 2015

Feel confused with some concepts

I don't know if a new Racket user can ask some `fool questions' here. I am learning sicp using Dr. Racket, it is
interesting(the book and the Racket language). I encounter some concepts, such as module, library,
collection, package which I don't understand.

As far as I know, a Racket module is only a .rkt file with #lang xxx declared in front of that file, but what is a
collection, library and package? Can you show me the difference in plain words?

--

-- 
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+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

Gmane