pl-web, almost a web development framework

2012-01-28 Thread Henrik Sarvell
OK so I've got a first draft of something simple. As opposed to what has been requested before this is NOT a web development framework in the sense of RoR or even Ring. Instead I've opted to create a simple environment from which frameworks utilizing conventions and such can be built, both a RoR

ersatz - can not access a member

2012-01-28 Thread Joe Bogner
I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler: (de handler (request response) (java response 'close)) (setq cont (interface org.simpleframework.http.core.Container 'handle handler)) (setq con (java

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
This is the java example I'm trying to duplicate: http://www.simpleframework.org/doc/tutorial/tutorial.php import org.simpleframework.http.core.Container; import org.simpleframework.transport.connect.Connection; import org.simpleframework.transport.connect.SocketConnection; import

Re: ersatz - can not access a member

2012-01-28 Thread Alexander Burger
Hello Joe, I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler: OK. I can't reproduce the problem, as I don't have access to that framework. But perhaps I can give some hints to help locate the problem. (de handler

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
Hi Alex, Thanks for the response! Here's the output from trace. It's neat to see, but I don't know enough to interpret it: java -DPID=42 -cp .;picolisp.jar;simple-4.1.21.jar PicoLisp lib.l go.l + interface : org.simpleframework.http.core.Container handle ((Request Response) (java Response

Re: ersatz - can not access a member

2012-01-28 Thread Alexander Burger
Hi Joe, Another question: I started down an alternate path to use java.net.ServerSocket but it doesn't seem to like threads/thread pool calls. Here's a really simple example: : (setq Thread (java java.lang.Thread T (interface java.lang.Runnable 'run '(() (prinl hi)) - $Thread

Re: ersatz - can not access a member

2012-01-28 Thread Alexander Burger
Hi Joe, Thanks for the response! Here's the output from trace. It's neat to see, but I don't know enough to interpret it: OK, this looks helpful (a little ;) If I intermix the previous code with the trace output in the editor (not just in mind as usual), I get: (de handler (Request

Re: ersatz web server example benchmarks

2012-01-28 Thread Alexander Burger
Hi Joe, I created a very simple proof of concept web server using ersatz and wrote up a bit of the experience and benchmarks here: http://picolisp.com/5000/!wiki?ExampleErsatzWebServer Cool! Perhaps you might also plant a link to it in the Examples page? Cheers, - Alex -- UNSUBSCRIBE:

Re: pl-web, almost a web development framework

2012-01-28 Thread Henrik Sarvell
Ops, the httpHead redifinition part in pl-web.l can be removed, I think I thought I would need to make changes there but I did not. On Sat, Jan 28, 2012 at 4:25 PM, Henrik Sarvell hsarv...@gmail.com wrote: OK so I've got a first draft of something simple. As opposed to what has been requested

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
Thanks! Regarding threading, I stepped away for a few and the thought crossed my mind as well. I came back tried the main thread do this: (loop (setq Method nope)) And I can see that Method gets overwritten in child threads. Neither bind nor job helps either. Is there any way around this? I

Re: ersatz - can not access a member

2012-01-28 Thread Jakob Eriksson
On January 28, 2012 at 1:18 PM Alexander Burger a...@software-lab.de wrote: Hello Joe, I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler:   And this excellent discussion is why we could say that we have

Re: pl-web, almost a web development framework

2012-01-28 Thread Jakob Eriksson
On January 28, 2012 at 10:25 AM Henrik Sarvell hsarv...@gmail.com wrote: OK so I've got a first draft of something simple. As opposed to what has been requested before this is NOT a web development framework in the sense of RoR or even Ring.     But a very nice start! :-D   //Jakob --