Re: server - IP socket error: Address family not supported by protocol

2012-02-23 Thread Joe Bogner
Doug - you need to install ipv6 support on linux. Look for an ipv6 package
for your distro
On Feb 23, 2012 1:28 AM, Doug Snead semaphore_2...@yahoo.com wrote:

 Might be even easier to reproduce ... just try the port function:

 # picoLisp-2.2.7.tgz ...
 ~/lisp/picoLisp
 $ ./p
 : (port 1234)
 - 3

 That's ok, but the most recent version,

 # picoLisp-3.0.9.tgz
 # ./pil
 : (port 1234)
 !? (port 1234)
 IP socket error: Address family not supported by protocol
 ?






 --- On Wed, 2/22/12, Doug Snead semaphore_2...@yahoo.com wrote:

  From: Doug Snead semaphore_2...@yahoo.com
  Subject: server - IP socket error: Address family not supported by
 protocol
  To: picolisp@software-lab.de
  Date: Wednesday, February 22, 2012, 10:07 PM
  Hi Alex,
 
  I'm tying to get the example in doc/app.html
  (picoLisp-3.0.9.tgz on a pretty standard linux box) to
  serve.  Here's my .l file:
 
  # cat test_html_app.l
  
  (html 0 Hello @lib.css NIL
 Hello World! )
  
 
  (renamed from project.l but otherwise identical)
 
  But when I try to start the server, like this:
 
  # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080
  test_html_app.l' +
 
  Picolisp tells me:
 
  !? (port *Port)
  IP socket error: Address family not supported by protocol
  ?
 
  Same for a different port number:
 
  # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321
  test_html_app.l' +
  !? (port *Port)
  IP socket error: Address family not supported by protocol
  ?
 
  This is the linux platform I am using (Linux 2.6.30.5 #1 SMP
  Tue Sep 1 15:48:26 GMT-8 2009 i686 GNU/Linux).
 
  I could easily be doing something wrong ... but I think the
  above should work.
 
  Cheers,
 
  Doug
 
 
 
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe



Re: server - IP socket error: Address family not supported by

2012-02-23 Thread Alexander Burger
Hi Doug,

 No IPv6 in my ifconfig on my linux box ... and no ipconfig on the android.  

:(


 When I drop back to picoLisp 2.3.7, I'm able to run the app example ok
 on my linux box, and connect to the pico server with a browser.

Version 3.0.8 was the last one with IPv4-only, IIRC.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: server - IP socket error: Address family not supported by protocol

2012-02-23 Thread Imran Rafique
Doug,

I ran into the same problem a while ago, and Alex told me (on IRC)
that 64bit picolisp's networking functions require ipv6 (as Joe said).

If you have the ipv6 kernel modulle already compiled (most distro's
kernel config's will at least compile it as a module, even if they
don't enable it), and if your /etc/hosts has the right ipv6 localhost
address (::1 localhost), then you should just be able to `modprobe`
the module, and be on your way :)

--
Regards,
       Imran Rafique

On 22 February 2012 22:07, Doug Snead semaphore_2...@yahoo.com wrote:
 Hi Alex,

 I'm tying to get the example in doc/app.html (picoLisp-3.0.9.tgz on a pretty 
 standard linux box) to serve.  Here's my .l file:

 # cat test_html_app.l
 
 (html 0 Hello @lib.css NIL
   Hello World! )
 

 (renamed from project.l but otherwise identical)

 But when I try to start the server, like this:

 # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080 test_html_appl' +

 Picolisp tells me:

 !? (port *Port)
 IP socket error: Address family not supported by protocol
 ?

 Same for a different port number:

 # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321 
 test_html_app.l' +
 !? (port *Port)
 IP socket error: Address family not supported by protocol
 ?

 This is the linux platform I am using (Linux 2.6.30.5 #1 SMP Tue Sep 1 
 15:48:26 GMT-8 2009 i686 GNU/Linux).

 I could easily be doing something wrong ... but I think the above should work.

 Cheers,

 Doug


 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: server - IP socket error: Address family not supported by protocol

2012-02-23 Thread Imran Rafique
Ignore my pointless mail - I just saw the other thread with Alex's reply :)

--
Regards,
       Imran Rafique



On 23 February 2012 12:19, Imran Rafique im...@rafique.org wrote:
 Doug,

 I ran into the same problem a while ago, and Alex told me (on IRC)
 that 64bit picolisp's networking functions require ipv6 (as Joe said).

 If you have the ipv6 kernel modulle already compiled (most distro's
 kernel config's will at least compile it as a module, even if they
 don't enable it), and if your /etc/hosts has the right ipv6 localhost
 address (::1 localhost), then you should just be able to `modprobe`
 the module, and be on your way :)

 --
 Regards,
        Imran Rafique

 On 22 February 2012 22:07, Doug Snead semaphore_2...@yahoo.com wrote:
 Hi Alex,

 I'm tying to get the example in doc/app.html (picoLisp-3.0.9.tgz on a pretty 
 standard linux box) to serve.  Here's my .l file:

 # cat test_html_app.l
 
 (html 0 Hello @lib.css NIL
   Hello World! )
 

 (renamed from project.l but otherwise identical)

 But when I try to start the server, like this:

 # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080 
 test_html_app.l' +

 Picolisp tells me:

 !? (port *Port)
 IP socket error: Address family not supported by protocol
 ?

 Same for a different port number:

 # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321 
 test_html_app.l' +
 !? (port *Port)
 IP socket error: Address family not supported by protocol
 ?

 This is the linux platform I am using (Linux 2.6.30.5 #1 SMP Tue Sep 1 
 15:48:26 GMT-8 2009 i686 GNU/Linux).

 I could easily be doing something wrong ... but I think the above should 
 work.

 Cheers,

 Doug


 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Android Web Server

2012-02-23 Thread Joe Bogner
Hi Imran - Thanks for the feedback. I put it under Examples. I'm interested
in other's opinions - would you have considered it an article?

I agree with your points on making it easier to see changes on the wiki

On Thu, Feb 23, 2012 at 3:27 PM, Imran Rafique im...@rafique.org wrote:

 Joe,

 More a comment on the wiki, rather than your Android article. I guess
 its a subjective choice as to where one files such things (articles vs
 examples vs ...). It would be great if the wiki had some kind of
 automatic changelog, where new additions  edits to existing pages are
 listed in LIFO order. Easier to find new stuff then :)

 --
 Regards,
Imran Rafique



 On 23 February 2012 07:42, Joe Bogner joebog...@gmail.com wrote:
  Doug Snead's recent posts have encouraged me to write up my progress
 along
  similar lines with getting PicoLisp to work on Android.
 
  http://picolisp.com/5000/!wiki?AndroidWebServer
 
  I have a functioning web server. My approach was to cross compile on unix
  and then copy the binary to the device.
 
  If anyone has any input on the issue at the end I would appreciate it.
 
  I also uploaded the code in case I decide to remove it off my public
  dropbox.
 
  Thanks and I look forward to any comments!
 
  Joe
 
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe



Re: Reference Example typo

2012-02-23 Thread José Romero
On Thu, 23 Feb 2012 16:16:01 -0500
Joe Bogner joebog...@gmail.com wrote:

 Sidenote: Can someone explain why the use of the parentheses around
 the class name? It seems confusing to be '+Item in some contexts and
 '(+Item) in others.
 
 
It's the way typing works in the PicoLisp object system, types are
lists of prototype objects (or mixin classes, whatever way you wanna
call them). When a message is sent to an object, be it with 'send 'try
or calling a method symbol (val=meth), the interpreter looks into the
val of the symbol for the method, if it's not there, it goes trough the
symbols at the tail of the list (the type), in order.

 Thanks!
 Joe
Cheers,
José
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Android Web Server

2012-02-23 Thread Imran Rafique
Hmm, not sure. Perhaps platforms, or something like that? There's
ersatz, mini, 32bit  64bit, a port to plan9 (was it finished?), a
port to openwrt, and now the various android porting efforts.

Its very subjective how you organise everything, but a Changelog
type page would simplify matters considerably.

--
Regards,
       Imran Rafique

(skype: imran_rafique)



On 23 February 2012 21:07, Joe Bogner joebog...@gmail.com wrote:
 Hi Imran - Thanks for the feedback. I put it under Examples. I'm interested
 in other's opinions - would you have considered it an article?

 I agree with your points on making it easier to see changes on the wiki

 On Thu, Feb 23, 2012 at 3:27 PM, Imran Rafique imran@rafiqueorg wrote:

 Joe,

 More a comment on the wiki, rather than your Android article. I guess
 its a subjective choice as to where one files such things (articles vs
 examples vs ...). It would be great if the wiki had some kind of
 automatic changelog, where new additions  edits to existing pages are
 listed in LIFO order. Easier to find new stuff then :)

 --
 Regards,
        Imran Rafique



 On 23 February 2012 07:42, Joe Bogner joebog...@gmail.com wrote:
  Doug Snead's recent posts have encouraged me to write up my progress
  along
  similar lines with getting PicoLisp to work on Android.
 
  http://picolisp.com/5000/!wiki?AndroidWebServer
 
  I have a functioning web server. My approach was to cross compile on
  unix
  and then copy the binary to the device.
 
  If anyone has any input on the issue at the end I would appreciate it.
 
  I also uploaded the code in case I decide to remove it off my public
  dropbox.
 
  Thanks and I look forward to any comments!
 
  Joe
 
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe


--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Unsubscribe

2012-02-23 Thread Anthony Sherbondy
Good bye Anthony Sherbondy a...@conjurellc.com :-(
You are now unsubscribed


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: (symbols) inside a function

2012-02-23 Thread Imran Rafique
Jose  Alex,

Please excuse my rudeness in not replying sooner (on business, then Yosemite
trip). Thanks for the pointers on idx trees.

--
Regards,
       Imran Rafique

2012/2/1 José Romero jose.cyb...@gmail.com:
 Why not use a 'idx tree then? http://software-lab.de/doc/refI.html#idx

 ##
 # I used 'name here to prevent accidental clobbering
 (de iset (Tree Key Value)
   (set
  (or
 (car (idx Tree Key))
 (prog1 (name Key) (idx Tree @ T)) )
  Value ) )

 (de iget (Tree Key)
   (val (car (idx Tree Key))) )

 ## Tests ##
 : (iset 'mydict Foo 42)
 - 42

 : (iset 'mydict Bar T)
 - T

 : (iset 'mydict Bam Baz)
 - Baz

 : (iget 'mydict Foo)
 - 42

 : (iget 'mydict Bam)
 - Baz

 : (iget 'mydict Bar)
 - T

 : (mapcar show (idx 'mydict))
 Bam Baz
 Bar T
 Foo 42
 - (Bam Bar Foo)
 ###

On 1 February 2012 19:59, Alexander Burger a...@software-lab.de wrote:
 didn't fully grok the explanation of idx tree's from the ref - is there a
 Rosetta example (or other snippet) which you can point me to to explain them?

 Yes, for example

   http://rosettacode.org/wiki/Associative_arrays/Iteration
   http://rosettacode.org/wiki/Anagrams
   http://rosettacode.org/wiki/Anagrams/Deranged anagrams
   http://rosettacode.org/wiki/Hamming_numbers
   http://rosettacode.org/wiki/Huffman_coding
   http://rosettacode.org/wiki/Inverted_index
   http://rosettacode.org/wiki/LZW_compression
   http://rosettacode.org/wiki/Priority_queue
   http://rosettacode.org/wiki/Set
   http://rosettacode.org/wiki/Sokoban
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe