Re: Small URL problem at Cloud9

2013-05-22 Thread Jon Kleiser
Hi Alex, I inserted the (trace 'file) (on Cloud9) and what I get is this: file : file = (doc// default . 3) /Jon On 21-05-13 18:00 , Alexander Burger wrote: Hi Jon, files on the index list, since they have got URLs like http://localhost:8080/doc/ref.html;. However, when I run my web.l on

Re: Small URL problem at Cloud9

2013-05-22 Thread Oskar Wieland
Hi Jon, guessing from your code I'd try: (when (= '(/ /) (tail 1 (chop Path))) instead of (when (= '(/ /) (tail 2 (chop Path))) I can't get your code running, only the following error msg popping up: ? !? (ht:Pack Lst) ht:Pack -- Undefined Do I have to modify the 64-bit version, if yes,

Quick try at building 64-bit on OSX 10.8.3

2013-05-22 Thread Jon Kleiser
Hi, I've just installed OSX 10.8.3, Xcode 4.6.2 and Command Line Tools (make, gcc, ...) on one of my Macs (but no Java yet), and I wanted to see if something magical have happened that would make it possible for me to build 64-bit PicoLisp, so I did the (cd src64; make). I then got this:

Re: Small URL problem at Cloud9

2013-05-22 Thread Jon Kleiser
Hi Oskar, On 22-05-13 12:09 , Oskar Wieland wrote: Hi Jon, guessing from your code I'd try: (when (= '(/ /) (tail 1 (chop Path))) instead of (when (= '(/ /) (tail 2 (chop Path))) No, it has to be tail 2, as I want to detect when Path ends with // ... : (= '(/ /) (tail 2 (chop

Re: Small URL problem at Cloud9

2013-05-22 Thread Oskar Wieland
On 05/22/2013 06:32 PM, Jon Kleiser wrote: No, you don't have to do any modifications (unless you're going to run it at c9.io), at least it works for me on standard 32-bit. Did you try this with my tiny web server code? That's where the libs are loaded: (load lib/http.l lib/xhtml.l

Re: Small URL problem at Cloud9

2013-05-22 Thread Alexander Burger
Hi Oskar, I can't get your code running, only the following error msg popping up: ? !? (ht:Pack Lst) ht:Pack -- Undefined Do I have to modify the 64-bit version, if yes, in what way? This is strange. 'ht:Pack' (in the 'ht' library) is part of the PicoLisp core. How did you install it?

Re: Quick try at building 64-bit on OSX 10.8.3

2013-05-22 Thread Alexander Burger
Hi Jon, to see if something magical have happened that would make it possible for me to build 64-bit PicoLisp, so I did the (cd src64; ... runtime. As I'm not very convinced that such a Java SE 6 runtime would give me the 64-bit PicoLisp, I have not accepted that offer yet. Am I wrong? ;-)

Re: Small URL problem at Cloud9

2013-05-22 Thread Alexander Burger
Hi Jon, No, it has to be tail 2, as I want to detect when Path ends with // ... : (= '(/ /) (tail 2 (chop doc//))) - T : (= '(/ /) (tail 1 (chop doc//))) - NIL Small optimization: 'tail' also works as a predicate if the first argument is a list instead of a number. So (= '(/ /) (tail

Re: Small URL problem at Cloud9

2013-05-22 Thread Alexander Burger
Hi Jon, I inserted the (trace 'file) (on Cloud9) and what I get is this: ... file = (doc// default . 3) OK, good. That's the same I get. Then Path must be doc//, and then doc/. So the problem is that (href F (pack Path F)) somehow builds two doc/ fragments? Then 'F' must also contain

Re: Quick try at building 64-bit on OSX 10.8.3

2013-05-22 Thread Jorge Acereda MaciĆ”
I tried to build the emu version on OSX and it failed. Here is the culprit line: emu.patch Description: Binary data Regards, Jorge On May 22, 2013, at 5:24 PM, Alexander Burger a...@software-lab.de wrote: Hi Jon, to see if something magical have happened that would make it possible

Re: Quick try at building 64-bit on OSX 10.8.3

2013-05-22 Thread Alexander Burger
Hi Jorge, I tried to build the emu version on OSX and it failed. Here is the culprit line: Thanks! Unfortunately, it is not so easy, because then you get a warning on 32-bit systems: cast from pointer to integer of different size [-Wpointer-to-int-cast] So for 32-bits, we must still

Re: Quick try at building 64-bit on OSX 10.8.3

2013-05-22 Thread Jorge Acereda MaciĆ”
On May 22, 2013, at 8:19 PM, Alexander Burger a...@software-lab.de wrote: Hi Jorge, I tried to build the emu version on OSX and it failed. Here is the culprit line: Thanks! Unfortunately, it is not so easy, because then you get a warning on 32-bit systems: cast from pointer to

Subscribe

2013-05-22 Thread Rick Hanson
Add me, baby! ;-)

Re: Small URL problem at Cloud9

2013-05-22 Thread Oskar Wieland
Hi Alex, This is strange. 'ht:Pack' (in the 'ht' library) is part of the PicoLisp core. How did you install it? Along the lines of the INSTALL file, or from a Debian-Derivate? I build the emu version along the lines of your INSTALL file. With local installation mode on a 32-bit ubuntu 12.04.