Re: [racket] Manipulation in World teachpack

2014-04-17 Thread Zee Ken
Where do I use the place-image option to place the myself, shark, food1, food2 images at required positions? Do I give that in the initial-world? The define-struct has to be exactly as you showed right? Or do I have to give the positions by using the make-posn there? I am a total amateur to Racke

Re: [racket] Manipulation in World teachpack

2014-04-17 Thread Alexander D. Knauth
When he said world, he meant a piece of data that describes the state of the program, for example a data structure that stores the positions of “myself” and “shark1”, etc in a structure: (define-struct world (myself-posn food1-posn food2-posn shark1-posn)) And when you use big-bang and on-tick-e

[racket] constructive stuff.

2014-04-17 Thread Hendrik Boom
On Thu, Apr 17, 2014 at 05:06:42PM -0400, Hendrik Boom wrote: > > I've placed a rudimentary explanation of this on my web page; see > http://topoi.pooq.com/hendrik/howconstr.html and > http://topoi.pooq.com/hendrik/constructivism.html. And I'd be happy to revise them if they're not clear, or com

Re: [racket] Lambda, object identity & streams

2014-04-17 Thread Hendrik Boom
On Thu, Apr 17, 2014 at 12:46:08PM -0400, Bradley Lucier wrote: > > In the process of toying with streams & memoization (more below), I've > > tripped over the question: when does Racket consider two lambdas to be > > identical? > > I came across the same question when working with my constructi

Re: [racket] Manipulation in World teachpack

2014-04-17 Thread Danny Yoo
On Thu, Apr 17, 2014 at 1:39 PM, Zee Ken wrote: > Hi, > > I am a beginner in racket and I am just getting a hang of playing with > "WORLD". So, I am attaching my file in this mail. > > Sorry for this but, I am not sure how to answer your question. You do not > need to reply immediately. Take your

[racket] Introducing Blight - A Tox Client in Racket

2014-04-17 Thread Lehi Toskin
I've recently started programming a GUI client for Tox (http://tox.im), a GPLv3+ licensed, totally distributed, P2P secure instant messenger that aims to supplant Skype in all areas: text, voice, and video. Blight is in early development, so it doesn't do too much except display a few GUI frame

Re: [racket] Manipulation in World teachpack

2014-04-17 Thread Danny Yoo
On Thu, Apr 17, 2014 at 1:15 PM, Zee Ken wrote: > Its a 600x600 square. The images are 100x100. The pinhole is default = > 50x50. > > So, I placed myself at 550x550 that will make it appear at the right bottom. > I am not sure if this answered your question. Hi Zee, Oh, by the way, please use Re

Re: [racket] Manipulation in World teachpack

2014-04-17 Thread Danny Yoo
Hi Zee, What's the shape of the world? Racket Users list: http://lists.racket-lang.org/users

[racket] Manipulation in World teachpack

2014-04-17 Thread Zee Ken
How can I make 2 different images move in different ways inside only 1 world. I placed "myself" at (posn 550 550) = right end of the screen Placed "food" at respective fixed position. I want "shark1" to move only in x-direction automatically on clock-tick. I want to control "myself" via key-pre

Re: [racket] Blog post on learning Racket

2014-04-17 Thread Lehi Toskin
On Sun, 13 Apr 2014 16:23:16 -0400, Asumu Takikawa wrote: > Hi all, > > I found this blog post by Artyom. The author, a Haskell programmer, has > documented their process of learning Racket (seemingly step-by-step > through the Guide). > > http://artyom.me/learning-racket-1 > > It might have

Re: [racket] untrusted

2014-04-17 Thread Neil Van Dyke
Asumu Takikawa wrote at 04/17/2014 01:16 PM: It would be great if someone does a Racket port. Could make the graphics rogue-like by using Neil's charterm library: http://planet.racket-lang.org/display.ss?package=charterm.plt&owner=neil I'm always happy for people to use CharTerm, but for thi

Re: [racket] untrusted

2014-04-17 Thread Asumu Takikawa
On 2014-04-15 15:27:22 -0400, Faré wrote: > This is the perfect game to learn a language (in this case, javascript): > http://alexnisnevich.github.io/untrusted/ > > Has anyone written a racket version, already? Thanks for sharing, that's really fun. Though yesterday I accidentally wrote some JS th

Re: [racket] Lambda, object identity & streams

2014-04-17 Thread Bradley Lucier
> In the process of toying with streams & memoization (more below), I've > tripped over the question: when does Racket consider two lambdas to be > identical? I came across the same question when working with my constructive reals package. (A constructive real number is basically a function th

Re: [racket] matrix-solve and approximation errors

2014-04-17 Thread Matthias Felleisen
Neil, a two-layer design, using option contracts, could be a solution here. On Apr 16, 2014, at 3:18 PM, Konrad Hinsen wrote: > Any linear-algebra library meant for "serious" work does not do any > non-essential work

Re: [racket] Lambda, object identity & streams

2014-04-17 Thread Philipp Dikmann
Thanks for the insights! I'm glad that Racket users can afford the luxury of understanding these things /in principle/ while using included batteries in the real world. :) On 15.04.14 20:46, Matthias Felleisen wrote: On Apr 14, 2014, at 4:20 PM, Philipp Dikmann wrote: For the general questi

Re: [racket] Sometimes (syntax-e #) produces a non-list pair

2014-04-17 Thread Alexander D. Knauth
Thanks, using syntax->list solved the problem. On Apr 17, 2014, at 12:22 AM, Carl Eastlund wrote: > Syntax objects are a rather complex data type, especially where pairs and > lists are involved. Essentially, a syntax object containing a list can be > broken up with extra syntax nodes at al

Re: [racket] matrix-solve and approximation errors

2014-04-17 Thread Konrad Hinsen
Laurent writes: > Sounds like a good idea, but possibly cumbersome to program. > Or maybe just define a error-checking-level parameter that can be adjusted > from > `unsafe` to `noob`? I'd expect this more difficult to design than to program. My first idea would be to base everything on sin

[racket] 2nd CFP: FARM 2014: Functional Art, Music, Modelling and Design

2014-04-17 Thread Michael Sperber
If you are using Racket or any mostly functional language in any kind of musical, artistic, or design endeavour, please consider contributing to FARM 2014, the 2nd ACM SIGPLAN International Workshop of Functional Art, Music, Modelling and Design, co-located with ICFP 2014. Find attached the Call