Ignore the above post , I figured this out after reading little bit more ,
just need to properly structure the code , sorry for the noise :)
Thanks.
On Wed, Jan 18, 2012 at 1:20 PM, Veer Singh wrote:
> Hello ,
>
> How do I during compilation stop propagation of shared state in a some
> module
On 1/18/12 9:05 PM, Robby Findler wrote:
On Wed, Jan 18, 2012 at 5:22 PM, David Van Horn wrote:
By the way, I think you can see this phenomenon in the rendering of the
2htdp/image docs. So for example, the section you referred me to has this
example:
(let* ([s (rectangle 20 20 "outline" "b
In the docs from the last release (here:
http://docs.racket-lang.org/teachpack/2htdpimage.html#%28part._nitty-gritty%29)
the grid is missing the right edge and the bottom edge. So perhaps this
issue was recently fixed?
Ryan
On 01/18/2012 07:05 PM, Robby Findler wrote:
On Wed, Jan 18, 2012 a
On Wed, Jan 18, 2012 at 5:22 PM, David Van Horn wrote:
> On 1/18/12 6:04 PM, Robby Findler wrote:
>>
>> Yes, that's the right behavior. See the end of the 2htdp/image docs
>> about pixels and whatnot.
>
>
> OK, it seems at odds with the note that freeze can "improve performance
> without changing
On Jan 18, 2012, at 6:22 PM, David Van Horn wrote:
> On 1/18/12 6:04 PM, Robby Findler wrote:
>> Yes, that's the right behavior. See the end of the 2htdp/image docs
>> about pixels and whatnot.
>
> OK, it seems at odds with the note that freeze can "improve performance
> without changing how th
On 1/18/12 6:04 PM, Robby Findler wrote:
Yes, that's the right behavior. See the end of the 2htdp/image docs
about pixels and whatnot.
OK, it seems at odds with the note that freeze can "improve performance
without changing how the image draws," but I get that a square draws
larger than its b
Yes, that's the right behavior. See the end of the 2htdp/image docs
about pixels and whatnot.
Robby
On Wed, Jan 18, 2012 at 3:12 PM, David Van Horn wrote:
> Is this intended for freeze? (BTW: freeze just saved an otherwise
> unplayable game for me, so thank you!)
>
>> (square 20 "outline" "soli
On Wed, Jan 18, 2012 at 1:14 PM, Neil Van Dyke wrote:
> IMHO, a good perspective on OO is to think first that behavior emerges from
> the *interactions* of objects.
sure, but where did you get the objects that are doing the interacting?
do you get them from nouns in the real world? or do you sta
IMHO, a good perspective on OO is to think first that behavior emerges
from the *interactions* of objects. (Which perspective also has
implications for OOPLs, IMHO.)
Very-very-very simple embedded systems, like their model of a
coffeemaker (which doesn't even need to be an embedded system) ma
Is this intended for freeze? (BTW: freeze just saved an otherwise
unplayable game for me, so thank you!)
> (square 20 "outline" "solid")
... 20x20 outline of a square
> (freeze (rectangle 20 20 "outline" "solid"))
... 20x20 outline minus bottom and right edges of a square...
> (freeze 21
For objects Craig Larman's "Sailboat Book" is awesome because it
covers OOAD in addition to objects. Without that minor detail it would
just have been another data structures book.
On Wed, Jan 18, 2012 at 2:32 PM, Raoul Duke wrote:
> On Tue, Jan 17, 2012 at 7:43 AM, Matthias Felleisen
> wrote:
>
On Tue, Jan 17, 2012 at 7:43 AM, Matthias Felleisen
wrote:
> On Jan 17, 2012, at 10:40 AM, Jordan Schatz wrote:
>> But as someone who employees developers I place very little
>> value on knowledge of Java and wish students would learn more functional
>> programming, and more then OOP design patter
My apologies! My hosting provider is doing something very strange at
the moment, and all the content on hashcollision.org is currently
offline. I'm not doing some kind of SOPA protest! I'm trying to
figure out what's going on now.
Racket Users list:
http://lists.racket-l
> Whalesong appears to be tickling a bug in Typed Racket under Racket
> 5.2. I apologize for this; I should have caught this when Racket 5.2
> came out. I'll try to be better at tracking with Racket's subsequent
> releases and make sure this doesn't happen again.
>
> I just released Whalesong 1.1
> I am thinking, write the code in rkt enjoying its syntax check, unit
> testing, etc. Use whalesong to provide runtime.js+lib.js for various
> clients that can use js. If not, serve it over HTTPS via PLT
> WebServer. (I am thinking I don't have to do another re-write like
> this for sometime.)
>
>
At Wed, 18 Jan 2012 16:53:14 +0100, Marijn wrote:
> So after rewriting for syntax-case, this becomes the below, where I
> have also inserted a call to internal-definition-context-seal which
> was mentioned by the documentation as being required, but causes no
> obvious problems when absent. Should
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 18-01-12 13:30, Marijn wrote:
> On 18-01-12 13:05, Veer Singh wrote:
>> Add
>
>> (require (for-syntax syntax/parse))
>
> Right, so after adding (require (for-syntax syntax/parse
> syntax/free-vars)) it works,
>
> Marijn
So after rewriting for s
Well, idiot me. First question and I already goofed up - didn't take
tail recursion optimization into consideration. this here does the
trick. sorry for the noise.
(letrec
[
(emulated-times (lambda (accumulated-result rest multiplicator)
(if (eq? rest 0)
Hello, I'm trying to brush up on my scheme/racket, and here's
something I came across when trying to rework the issue of
continuations - I'm sure this qualifies as a beginner's question, so
sorry for probably asking a stupid question - I promise to ask better
ones in the future:
Consider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 18-01-12 13:05, Veer Singh wrote:
> Add
>
> (require (for-syntax syntax/parse))
Right, so after adding (require (for-syntax syntax/parse
syntax/free-vars)) it works,
Marijn
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)
Comment:
Add
(require (for-syntax syntax/parse))
or
use syntax-case and wrap it in begin i.e (begin define id-lst .)
On Wed, Jan 18, 2012 at 5:36 PM, Marijn wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 18-01-12 11:36, Veer Singh wrote:
> > This seems to work (blind hack),
>
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 18-01-12 11:36, Veer Singh wrote:
> This seems to work (blind hack),
Unfortunately it doesn't work:
_: wildcard not allowed as an expression in: (_ ((id:id expr:expr ...)
...))
in line 3 of the following:
> (define-syntax (depgraph stx) (syntax-p
This seems to work (blind hack), I really don't know
what syntax-local-make-definition-context and syntax-local-bind-syntaxes
does
I can only assume that they introduce some kind of bindings in particular
context.
(define-syntax (depgraph stx)
(syntax-parse stx
[(_ ((id:id expr:expr ...) ..
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 17-01-12 16:14, Sam Tobin-Hochstadt wrote:
> On Tue, Jan 17, 2012 at 4:06 AM, Marijn wrote:
>> On 16-01-12 15:28, Sam Tobin-Hochstadt wrote:
>>> On Mon, Jan 16, 2012 at 7:57 AM, Marijn
>>> wrote:
((_ ((id rule) ...)) (with-syntax (((dep
24 matches
Mail list logo