[plt-scheme] Re: Android; compiling to Java byte code; Clojure (Henk Boom)

From: Jean-Paul.ROY at unice.fr (Jean-Paul.ROY at unice.fr)
Date: Mon Nov 26 02:44:11 EST 2007

Any work already trying to link DrScheme to "Processing", the MIT  
language (subset of Java) for designers, artists and graphic  
simulations ? As it produces Java apps or applets, that could be a  
good move ?
http://processing.org/

    -jpr

Le 25 nov. 07 à 18:00, plt-scheme-request at list.cs.brown.edu a écrit :

> Send plt-scheme mailing list submissions to
> 	plt-scheme at list.cs.brown.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> or, via email, send a message with subject or body 'help' to
> 	plt-scheme-request at list.cs.brown.edu
>
> You can reach the person managing the list at
> 	plt-scheme-owner at list.cs.brown.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of plt-scheme digest..."
> [Please handle PLT Scheme list administrative tasks through the Web:
>    http://list.cs.brown.edu/mailman/listinfo/plt-scheme]
> Today's Topics:
>
>    1. Re: Android; compiling to Java byte code; Clojure (Henk Boom)
>    2. Re: What to augment, how to highlight ? (Laurent)
>    3. Re: dissapearance of "dot-scheme" (pp)
>    4. Problem of type (Laurent)
>    5. Re: Problem of type (Gregory Cooper)
>    6. Fw: [plt-scheme] Problem of type (Jos Koot)
>
> De : "Henk Boom" <lunarc.lists at gmail.com>
> Date : 25 novembre 2007 03:09:43 HNEC
> À : "Shriram Krishnamurthi" <sk at cs.brown.edu>
> Cc : PLT Scheme Mailing List <plt-scheme at list.cs.brown.edu>,  
> "Geoffrey S. Knauth" <geoff at knauth.org>
> Objet : Rép : [plt-scheme] Android; compiling to Java byte code;  
> Clojure
>
>
> On 22/11/2007, Shriram Krishnamurthi <sk at cs.brown.edu> wrote:
>> But let me ask a question first.  Can you show us the central
>> definition from this paper in Clojure?
>
> I decided to give it a crack. I think the following should work,
> though it won't compile and the error messages are most unhelpful.
> (What is clojure.lang.Compiler$CompilerException: REPL:2: null
> supposed to mean =S)
>
> (def machine
>   (let [states {:init (fn [stream]
>                         (cond
>                           ((nil? stream)
>                            nil)
>                           ((eql? (first stream) \c)
>                            [:more (rest stream)])))
>                 :more (fn [stream]
>                         (cond
>                           ((nil? stream)
>                            nil)
>                           ((eql? (first stream) \a)
>                            [:more (rest stream)])
>                           ((eql? (first stream) \d)
>                            [:more (rest stream)])
>                           ((eql? (first stream) \r)
>                            [:end (rest stream)])))
>                 :end (fn [stream]
>                          (cond
>                           ((nil? stream)
>                            :t)))}]
>     (fn [stream]
>       (loop [state :init
>              stream stream]
>         (let [ret ((state states) stream)]
>           (and ret
>             (if (eql? ret :t)
>               :t
>               (recur (ret 0) (ret 1)))))))))
>
> Of course, at this point you're just emulating TCO.
>
>     Henk Boom
>
>
>
>
> De : Laurent <Ouaibou at gmail.com>
> Date : 25 novembre 2007 11:04:18 HNEC
> À : plt-scheme at list.cs.brown.edu
> Objet : [plt-scheme] Re: What to augment, how to highlight ?
>
>
> Okay, thanks ;)
>
> However, i always have a prob with string and comment :
>
> [str (concatenation "\"" (repetition 0 +inf.0 (union digit letter
> punctuation symbol whitespace)) "\"")]
> [comment (concatenation "#" (repetition 0 +inf.0 (union digit letter
> punctuation symbol whitespace "é" "è" "ù" "à" "#")) new-line)]
>
> (str
>    (values lexeme 'constant lexeme (position-offset start-pos)
> (position-offset end-pos)))
>
> (comment
>    (values lexeme 'comment lexeme (position-offset start-pos)
> (position-offset end-pos)))
>
> The expreg seem to be correct, but the colorer don't function all the
> time.
> I don't know why ?
>
> Thanks,
>
> Laurent
>
>
>
>
> De : pp <pedro.e.pinto at gmail.com>
> Date : 25 novembre 2007 08:15:05 HNEC
> À : plt-scheme at list.cs.brown.edu
> Objet : [plt-scheme] Re: dissapearance of "dot-scheme"
>
>
> Hi Corey,
>
> I stopped maintaining dot-scheme a while ago. The last version I
> worked on targeted v1.1 of the .NET CLR and PLT 3.0. I can try to dig
> out that version if it's useful. Let me know,
>
> -pp
>
>
> On Nov 20, 12:13 pm, "Corey Sweeney" <corey.swee... at gmail.com> wrote:
>> I may need to call a single hook in microsoft access in the  
>> future.  I
>> assume thats what the ".net" thing is about.  So I did a web  
>> search on
>> ".net" and scheme, and found references to "dot-scheme" being ".net"
>> for plt, however I could not find any download.  Does it still exist?
>>
>> Corey
>> --
>> ((lambda (y) (y y)) (lambda (y) (y y)))
>> _________________________________________________
>>   For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>
>
>
> De : Laurent <Ouaibou at gmail.com>
> Date : 25 novembre 2007 17:25:12 HNEC
> À : plt-scheme at list.cs.brown.edu
> Objet : [plt-scheme] Problem of type
>
>
> Hello,
>
> I have a list which contains scheme expressions :
>
> code : '((define (...)) (+ 3 4) ...)
>
> And i want to insert each elements from code in a text%
>
> Thus, i do a loop :
>
> (for-each (labmda (e)
>                   (send text insert e))
>           code)
>
> My problem is that e isn't a string. Not a symbol and not recognize
> like a list.
> I can't do a (symbol->string e) or a (list->string e).
>
> How insert each elements in my text% ?
>
> Thanks,
> Laurent
>
>
>
>
> De : "Gregory Cooper" <greg at cs.brown.edu>
> Date : 25 novembre 2007 17:36:36 HNEC
> À : Laurent <Ouaibou at gmail.com>
> Cc : plt-scheme at list.cs.brown.edu
> Objet : Rép : [plt-scheme] Problem of type
>
>
> It sounds like you're looking for expr->string.
>
> -Greg
>
> On Nov 25, 2007 11:25 AM, Laurent <Ouaibou at gmail.com> wrote:
>> Hello,
>>
>> I have a list which contains scheme expressions :
>>
>> code : '((define (...)) (+ 3 4) ...)
>>
>> And i want to insert each elements from code in a text%
>>
>> Thus, i do a loop :
>>
>> (for-each (labmda (e)
>>                   (send text insert e))
>>           code)
>>
>> My problem is that e isn't a string. Not a symbol and not recognize
>> like a list.
>> I can't do a (symbol->string e) or a (list->string e).
>>
>> How insert each elements in my text% ?
>>
>> Thanks,
>> Laurent
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>
>
>
>
> De : "Jos Koot" <jos.koot at telefonica.net>
> Date : 25 novembre 2007 17:43:52 HNEC
> À : "PLT-list" <plt-scheme at list.cs.brown.edu>
> Objet : Fw: [plt-scheme] Problem of type
> Répondre à : Jos Koot <jos.koot at telefonica.net>
>
>
>
>
>
> (define (convert x)
> (let ((op (open-output-string)))
>  (write x op)
>  (string->list (get-output-string op))))
> Jos
>
>> ----- Original Message ----- From: "Laurent" <Ouaibou at gmail.com>
>> To: <plt-scheme at list.cs.brown.edu>
>> Sent: Sunday, November 25, 2007 5:25 PM
>> Subject: [plt-scheme] Problem of type
>>> Hello,
>>> I have a list which contains scheme expressions :
>>> code : '((define (...)) (+ 3 4) ...)
>>> And i want to insert each elements from code in a text%
>>> Thus, i do a loop :
>>> (for-each (labmda (e)
>>>                  (send text insert e))
>>>          code)
>>> My problem is that e isn't a string. Not a symbol and not recognize
>>> like a list.
>>> I can't do a (symbol->string e) or a (list->string e).
>>> How insert each elements in my text% ?
>>> Thanks,
>>> Laurent
>>> _________________________________________________
>>>  For list-related administrative tasks:
>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>>
>
>
>


Posted on the users mailing list.