Re: [racket] [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Thomas Chust
2010/9/30 Martin DeMello : > On Thu, Sep 30, 2010 at 3:02 AM, Thomas Chust wrote: >> in case anybody else finds this useful: I have created fairly full-featured >> bindings for the IUP graphical user interface library [1] that work >> identically >> (to the maximum possible extent) under the Rack

[racket] Scribbling Docs

2010-09-30 Thread Richard Cleis
Scribbling Documentation 4.1.4, Defining Racket Bindings, shows how to access a module function and 4.1.5 documents evaluating examples. I cannot get a function to be recognized. It 'turns' bright blue, but has a red underline. What do I misunderstand? RAC ___

Re: [racket] Destroy object ?

2010-09-30 Thread Neil Van Dyke
I don't immediately find an *introduction* to Racket's automatic memory management, in the Guide, Reference, or Quick manual. Perhaps the Guide could say something briefly about this early on, for the benefit of people coming directly from C or C++? As soon as they start seeing values being a

Re: [racket] Destroy object ?

2010-09-30 Thread Raoul Duke
On Thu, Sep 30, 2010 at 3:44 AM, Jay McCarthy wrote: > So, you don't have to send things there and you can't get the deleted data > back. hello Ted, note that in most gc systems, you can't say "clean up X right now!" which can be unfortunate when you are talking about trying to clean up some X

Re: [racket] [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Martin DeMello
On Thu, Sep 30, 2010 at 3:02 AM, Thomas Chust wrote: > in case anybody else finds this useful: I have created fairly full-featured > bindings for the IUP graphical user interface library [1] that work > identically > (to the maximum possible extent) under the Racket [2] and CHICKEN [3] > Scheme s

Re: [racket] Calling eval from the web server

2010-09-30 Thread Steve Knight
Yes, that definitely does help. I was figuring this out and trying to grok the docs and I also hit upon define-namespace-anchor which seemed like it would do the job and does in fact look like it works like I want it to. Good to hear I'm on the right track. My eval definitely does contain at le

Re: [racket] Destroy object ?

2010-09-30 Thread Jay McCarthy
The GC finds objects that you cannot refer to and deletes them. All other objects have some way of getting to them (chains of field references), so they are not deleted. If you want to delete something, you can't do it. You can, however, destroy references to it (set them to #f, for example), so th

Re: [racket] Destroy object ?

2010-09-30 Thread Ted Vj Bros
Thanks for this fast answer. Unfortunatly, I'm familiar with this concept of garbage collector. have I to send my instances to there or is it a way to get deleted data back? Thanks. > It seems like your question is whether there is a garbage collector. There is. > > Jay > >> Hi the list, >> I'm a

Re: [racket] Destroy object ?

2010-09-30 Thread Jay McCarthy
It seems like your question is whether there is a garbage collector. There is. Jay On Thu, Sep 30, 2010 at 4:24 AM, Ted Vj Bros wrote: > Hi the list, > I'm a user of Fluxus http://www.pawfal.org/fluxus/ > which is a scheme environnement for 3D, audio and games. > > I'm trying to learn the racket

[racket] Destroy object ?

2010-09-30 Thread Ted Vj Bros
Hi the list, I'm a user of Fluxus http://www.pawfal.org/fluxus/ which is a scheme environnement for 3D, audio and games. I'm trying to learn the racket Oriented Object style and asking myself a thing? How the objects can be deleted after their work? And are they overwrited if an another come to re

Re: [racket] Calling eval from the web server

2010-09-30 Thread Jay McCarthy
This error probably has nothing to do with the Web server. If you run #lang racket (eval '(#%top-interaction . (last (1 2 3 Then you get the error: . compile: unbound identifier (and no #%app syntax transformer is bound) in: #%top-interaction If you run the same expression from the REPL you

Re: [racket] Calling eval from the web server

2010-09-30 Thread YC
Steve - Others will correct me if I have this wrong, but IIRC #:servlet-namespace is for sharing the namespace with other servlet modules, not for defining the namespace for eval. It looks like by default the current-namespace is empty (maybe web-server set it to racket/base but in repl it's empt

[racket] Calling eval from the web server

2010-09-30 Thread Steve Knight
Hello, I'm using Racket 5.0.1 (from emacs) and I'm having trouble understanding some behaviour I'm seeing in the web server. If I start a servlet and dispatch some URL to this function: (define (ev request) `(div (h1 "Last = " ,(format "~A" (last '(1 2 3 (h1 "Last = " ,(forma