Re: PicoLisp and SWIG

2013-05-16 Thread Tomas Hlavaty
Hi Thorsten, Maybe you should do a bit more publicity and marketing for your libraries? You have some quite interesting stuff in your 'backcatalog' that is not at all linked to or documented in the PicoLisp Wiki. yeah, but it is much more interesting to write code;-) indeed, this would be

Re: PicoLisp and SWIG

2013-05-16 Thread Thorsten Jolitz
Tomas Hlavaty t...@logand.com writes: Hi Tomas, So as I see it, I still have to use SWIG to turn these class hierarchies in plain functions calls, and then I can use PicoLisp 'native' calls as wrappers. Would be great though to have a ffi.l that knows how to deal with C++. Yes, that seems

Re: Bouncing on trampolines (so cool...)

2013-05-16 Thread Alexander Burger
Hi all, I didn't bother with trampolines so far, but add some comments to On Thu, May 16, 2013 at 12:00:20AM +0800, Samuel Dennis Borlongan wrote: ... http://stackoverflow.com/questions/12186672/how-can-i-prevent-my-ackerman-function-from-overflowing-the-stack ... The bad thing with

Re: How to set IP address for socket?

2013-05-16 Thread Rowan Thorpe
Thanks! The 'make' went fine now. However, when I try to run my web app now, I get IP bind error: Address already in use. ;-) I think I may have to bother C9 Support again. Ah, but perhaps this is (partially) good news, because it seems to have taken the address! :) Just throwing in an

Re: How to set IP address for socket?

2013-05-16 Thread Alexander Burger
Hi Rowan, Just throwing in an observation in case it hasn't already occurred to you - the Address already in use error might well not be a picolisp or C9 problem at all, but that you are reconnecting to the socket without having set the SO_REUSEADDR option (or equivalent). Without it you

Re: How to set IP address for socket?

2013-05-16 Thread Jon Kleiser
Hi Alex Rowan, As far as I can see, there is no other process listening on 8080 at the moment when I get this Address already in use. However, I've just managed to put together a tiny Ruby server (found something on stackoverflow) that works. It uses server = TCPServer.open(host, port)

Re: Bouncing on trampolines (so cool...)

2013-05-16 Thread Alexander Burger
On Thu, May 16, 2013 at 01:33:54PM +0200, Alexander Burger wrote: : (bench (ack 4 1)) 249.465 sec - 65533 : (bench (ack2 4 1)) 252.487 sec - 65533 though the less-recursive function is slightly slower (as expected). Oops, forget that! Not as expected ... the opposite

Re: How to set IP address for socket?

2013-05-16 Thread Alexander Burger
Hi Jon, stackoverflow) that works. It uses server = TCPServer.open(host, port) where 'host' is 127.6.26.129 and 'port' is 8080. Right now I see. So my proposal of calling inet_pton() was not correct :( I have no idea at the moment. Somebody (me?) must dig into TCP networking (again). Haven't

Re: Bouncing on trampolines (so cool...)

2013-05-16 Thread Samuel Dennis Borlongan
Re: side-note (bench (length (ack4 3 8000))) (32-bit Cygwin) 0.070 sec (bench (length (trampoline ack/t 3 8000))) (32-bit Cygwin) 2.010 sec (bench (length (trampoline ack/t 3 8000))) (64-bit Ersatz on Java 8, before =0 and length invocation removal) 9.625 sec (bench (length (trampoline ack/t 3

Re: How to set IP address for socket?

2013-05-16 Thread Jon Kleiser
Hi Alex, I'll be off-line for a couple of days. Have a nice weekend! /Jon On 16-05-13 16:38 , Alexander Burger wrote: Hi Jon, stackoverflow) that works. It uses server = TCPServer.open(host, port) where 'host' is 127.6.26.129 and 'port' is 8080. Right now I see. So my proposal of calling

Re: Bouncing on trampolines (so cool...)

2013-05-16 Thread Alexander Burger
Hi Samuel, (bench (length (trampoline ack/t 3 8000))) (64-bit Ersatz on Java 8, before =0 and length invocation removal) 9.625 sec (bench (length (trampoline ack/t 3 8000))) (64-bit Ersatz on Java 8, after =0 invocation removal) 4.981 sec (bench (length (trampoline ack/t 3 8000)))

Re: Bouncing on trampolines (so cool...)

2013-05-16 Thread Alexander Burger
On Thu, May 16, 2013 at 04:33:49PM +0200, Alexander Burger wrote: though the less-recursive function is slightly slower (as expected). Oops, forget that! Not as expected ... the opposite would be expected. But the values are very close anyway. One more oops!! Though it doesn't matter much

Subscribe

2013-05-16 Thread Martin Curran
Hello Martin Curran martin.tho...@gmail.com :-) You are now subscribed -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PicoLisp and SWIG

2013-05-16 Thread Tomas Hlavaty
Hi Thorsten, use this SWIG command line, which produces, besides the probably bloated C code, a kind of 'Lisp pseudo code' too, that should be easily transformed into 'native calls: ,-- | swig -cffi -c++ example.i That is CFFI, portability layer for Common Lisp:

Re: How to set IP address for socket?

2013-05-16 Thread Rowan Thorpe
Alexander Burger wrote: I see. So my proposal of calling inet_pton() was not correct :( I have no idea at the moment. Somebody (me?) must dig into TCP networking (again). Haven't touched that for a while. Jon, I think I might have found an explanation for the already bound error, and if it

Subscribe

2013-05-16 Thread Oskar Wieland
Hello Oskar Wieland oskar.wiel...@gmx.de :-) You are now subscribed Hi, bitte melde mich fuer die email liste an. ein kleiner unwichtiger fehler: : (version) 3.1.2.0 C - (3 1 2 0) : (setq foo 1) - 1 : (foo) Segmentation fault (core dumped) lg oskar -- UNSUBSCRIBE:

Re: How to set IP address for socket?

2013-05-16 Thread Alexander Burger
On Fri, May 17, 2013 at 02:05:10AM +0300, Rowan Thorpe wrote: you to do, but instead of: : MyIpAddr asciz 127.6.26.129 you put the ipv6-mapped address for it: : MyIpAddr asciz :::127.6.26.129 Thanks Rowan! This sounds like a very reasonable hint! ♪♫ Alex -- UNSUBSCRIBE:

Re: Segmentation fault (Was: Subscribe)

2013-05-16 Thread Alexander Burger
Hi Oskar, bitte melde mich fuer die email liste an. Sure! It happened automatically already :) : (setq foo 1) - 1 : (foo) Segmentation fault (core dumped) I understand your worries, but this is actually a feature. In general, PicoLisp doesn't catch such errors, as this would induce