Re: [racket] Help with sockets.

2014-04-30 Thread Alejandro Zamora Fonseca
Well I want to write a game for programmers that listen input for programs written in any language, I'm still in the "general" modeling phase, but I think the I/O would be based in XML and/or JSON. So, thanks for the advices. Best regards Alejandro Good, glad to hear it works. If you can av

Re: [racket] Help with sockets.

2014-04-30 Thread Alejandro Zamora Fonseca
Thanks a lot! Finally it works for my purposes. greetings Alejandro > Thanks, with sendall it works nicely. > But when I try the reverse flow(that is, Racket to Python) making: > ;... > (display "Hello" s-out) > ;or with 'print > Python doesn't read with > > > > > > > > recv(500) > > it locks th

Re: [racket] Help with sockets.

2014-04-24 Thread Alejandro Zamora Fonseca
tonio Menezes Leitao escribió: Hi, On Wed, Apr 23, 2014 at 9:00 PM, Alejandro Zamora Fonseca wrote: When I do: 1)Write this code: in Dr. Racket: #lang racket (define server (tcp-listen 12345)) (define-values (s-in s-out) (tcp-accept server)) 2)Ctrl+R - DrRacket waits(lock the REPL) for connections

Re: [racket] Help with sockets.

2014-04-23 Thread Alejandro Zamora Fonseca
When I do: 1)Write this code: in Dr. Racket: #lang racket (define server (tcp-listen 12345)) (define-values (s-in s-out) (tcp-accept server)) 2)Ctrl+R - DrRacket waits(lock the REPL) for connections 3)Write this code in python: import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM

[racket] Help with sockets.

2014-04-22 Thread Alejandro Zamora Fonseca
Hi Racketeers, I have some trouble with sockets, it works for me when my apps are Racket - Racket, but when I tried to communicate e.g Racket server - Python client, don´t work well. Would you send me some snippet to achieves this? best regards Alejandro -- Este mensaje le ha llegado media

Re: [racket] About genericity...

2014-04-07 Thread Alejandro Zamora Fonseca
Yes, it's the second guess, it is my only knowlege about genericity in Lisp. I wanted to know how to do in Racket ... :) thanks for all answers, Alejandro 2014-04-06 00:21, Daniel Prager escribió: Hi Roman I think, Alejandro wanted to add clauses in different places (generic in one module, ad

[racket] About genericity...

2014-04-02 Thread Alejandro Zamora Fonseca
Hello everybody! I have a newbie question. ¿How can I create generic-functions in Racket? Something like this samples in CL: (defmethod dup ((a string)) (concatenate 'string a a)) (defmethod dup ((a integer)) (list a a)) Cheers, Alejandro -- Este mensaje le ha llegado media

[racket] Formal Presentation and initial doubts.

2014-03-21 Thread Alejandro Zamora Fonseca
Hi!! My name is Alejandro, i'm a Cuban Computer Scientist, new to Lisp(having 1 year using CL), and wishing change to Racket. I see the list and I hope make me a better Lisp programmer with your kindly help. I have Racket installed in my PC, I like the language and tools, but yet I don't unde