Re: Speedtest PicoLisp vs Emacs Lisp
On Wed, Apr 25, 2012 at 05:39:53PM +0200, Christophe Gragnic wrote: does, a 'cleaned URL' to copy/paste on the page. This sounds indeed like a good idea! It could be put in some prominent place on each page. What would you recommend? The Google place is top right, but you have a left side bar that could be well suited. Sorry, I can't find any. Which Google do you mean? The search engine, mail, maps, code, some application, ...? If we put a cleaned URL e.g. into the left side bar, we must somehow mark it up, or give it a label etc., so that users understand what it means and how to use it. Just putting a (clickable or non-clickable?) URL there is probably not enough. Cheers, - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
On Fri, Apr 27, 2012 at 06:56:28PM +0200, Alexander Burger wrote: I thought to better avoid the hyperlink, and put plain text instead. Well, perhaps a hyperlink is more clear, and it is not too difficult to select it. But a major advantage is that you can give it a tooltip. So, instead of putting some verbose text, I added a tooltip Public URL of this page. -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
On Wed, Apr 25, 2012 at 4:47 PM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, A suggestion for wiki URLs: don't change them but provide, as Google does, a 'cleaned URL' to copy/paste on the page. This sounds indeed like a good idea! It could be put in some prominent place on each page. What would you recommend? The Google place is top right, but you have a left side bar that could be well suited. chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
On April 23, 2012 at 10:08 AM Thorsten quintf...@googlemail.com wrote: I knew something was wrong when I pasted the link, since there was a long discussiion about PicoLisp links here not so long ago - but it was already quite late when I posted so I did not investigate. Thanks for the tip. Which is not as it should be. Links should be linkable. Why not do the approach that ports etc are added to the right part of the URL and discarded if visited by someone out-of-session? Was that already proposed? best regards, Jakob -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
On April 23, 2012 at 11:41 AM Alexander Burger a...@software-lab.de wrote: Hi Jakob, Which is not as it should be. Links should be linkable. Not necessarily. A login session is by definition an ephemeral situation, so its momentary state should better not be linkable. I regard this as a security feature ;-) Ok I over-reached. In this particular situation though, with linking to Wiki pages, it is not good that he has to log out first to link to a page. It's not a great user interface. Also, what about sending session things as cookies or POSTs instead of in the URL? I have a feeling we have been over this before though... :-) best regards, Jakob -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
Jakob Eriksson ja...@aurorasystems.eu writes: On April 23, 2012 at 5:15 PM Thorsten quintf...@googlemail.com wrote: Unfortunately, it seems that enthusiasm of aficionados of other (slower?) Lisp dialects is limited, since in no time I had 2 negative votes and 1 close request. So may be have a quick look before the inevitable happens - the question is closed and moved to some hidden dark spot of the internet. Stackoverflow is not for these kinds of questions. I don't know how to word something like that for it be accepted by SO. But I am a strong proponent of moving questions people ask here about programming problems with PicoLisp, to SO. It will increase the visibility of PicoLisp. SO is more for why does this not work, I have tried X, Y and Z, can you help me? more than give me stats for this program. Hi Jakob, these 2 questions are among the most popular on stackoverflow: ,- | 1068 | votes | 32 | answers | 108k views | The Definitive C++ Book Guide and List | This question attempts to collect the few pearls among the dozens of bad | C++ books that are released every year. Unlike many other programming | languages, which are often picked up on the go from ... `- ,--- | 819 | votes | 36 | answers | 143k views | Git for beginners: The definitive practical guide | Ok, after seeing this post by PJ Hyett, I have decided to skip to the | end and go with Git. So what I need is a beginner's practical guide to | Git. Beginner being defined as someone who knows how to ... `--- Lets face it, questions are only good questions on stackoverflow if the answer is what the crowd wants to hear. This kind of crowd censorship is well known from wikipedia. Its a waste of time to post there if any 5 people can close a question that is unfavorable for their favorite language or tool. Where is the scientific spirit that first looks at the numbers an then forms an opinion? I used to like stackoverflow, but why invest time there if your question is gone after a few hours? -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
On Mon, 23 Apr 2012 02:22:21 +0200 Thorsten quintf...@googlemail.com wrote: Hi List, out of curiosity I did a little speedtest with PicoLisp and Emacs Lisp on a 64bit Arch Linux (see http://picolisp.com/46850/62704437697738713~!wiki?PILvsEL). The results are quite favorable for PicoLisp - it is about 4 times faster than interpreted Emacs Lisp and 2 times faster than compiled Emacs Lisp. Nice, I did my own tests on a 32 bit machine, not such a dramatic speedup for picolisp by my numbers (about the same speed as bytecode) but this thing is only really measuring function call/arithmetic cost. $ cat fibo.el . (defun fibo (N) (if ( 2 N) 1 (+ (fibo (1- N)) (fibo (- N 2))) ) ) (fibo 35) . $ time emacs --no-site-file --script fibo.el real0m13.854s user0m13.829s sys 0m0.016s $ emacs --no-site-file -batch -f batch-byte-compile fibo.el Wrote /home/cyborgar/tmp/sptest/fibo.elc $ time emacs --no-site-file --script fibo.elc real0m5.882s user0m5.828s sys 0m0.008s $ cat fibo.l . (de fibo (N) (if ( 2 N) 1 (+ (fibo (dec N)) (fibo (- N 2))) ) ) (fibo 35) . $ time pil fibo.l -bye real0m5.662s user0m5.624s sys 0m0.004s I tested with the extensive list manipulations code Alex tested CLisp and SBCL a while back, with pretty nice results also: $ cat tst.el . (defun tst () (mapcar (lambda (X) (cons (car X) (reverse (delete (car X) (cdr X))) ) ) '((a b c a b c) (b c d b c d) (c d e c d e) (d e f d e f)) ) ) (dotimes (i 100) (tst)) . $ time emacs --no-site-file --script tst.el real0m8.311s user0m8.273s sys 0m0.032s $ emacs --no-site-file -batch -f batch-byte-compile tst.el Wrote /home/cyborgar/tmp/sptest/tst.elc $ time emacs --no-site-file --script tst.elc real0m5.622s user0m5.604s sys 0m0.012s $ cat tst.l . (de tst () (mapcar '((X) (cons (car X) (reverse (delete (car X) (cdr X))) ) ) '((a b c a b c) (b c d b c d) (c d e c d e) (d e f d e f)) ) ) (do 100 (tst)) . $ time pil tst.l -bye real0m1.208s user0m1.192s sys 0m0.012s Looks like the emacs compiler can't improve much in that function and it's still 4.6-6.9x slower than picolisp, whoops :) $ uname -a Linux icz 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 GNU/Linux $ cat /proc/cpuinfo |grep model name | cut -d: -f2 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz Pentium(R) Dual-Core CPU T4200 @ 2.00GHz Cheers, José -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Speedtest PicoLisp vs Emacs Lisp
Hi Thorsten, out of curiosity I did a little speedtest with PicoLisp and Emacs Lisp Many thanks for doing this test! And for the extensive description of how to set it up. A note about the wiki-link in the mail: http://picolisp.com/46850/62704437697738713~!wiki?PILvsEL). It is not a good idea to make a copy of a link in the wiki while one is in a session (logged in), because both the port (46850) and the session-ID (62704437697738713) in the URL are only valid during that session. The right link would be http://picolisp.com/5000/!wiki?PILvsEL You can get it if you click on the Log out link, and then navigate to that page again. Cheers, - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe