toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#picolisp

0 posts0 participants0 posts today
Alexander BurgerRespond with your personal quine cold
Alexander Burger<p><span class="h-card" translate="no"><a href="https://mastodon.social/@rzeta0" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>rzeta0</span></a></span> In <a href="https://social.tchncs.de/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> it could be <a href="http://pb1n.de/?c3be0c" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">http://</span><span class="">pb1n.de/?c3be0c</span><span class="invisible"></span></a></p><p><a href="https://social.tchncs.de/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a></p>
Alexander Burger<p><span class="h-card" translate="no"><a href="https://mastodon.scot/@simon_brooke" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>simon_brooke</span></a></span> Testing bignums in a REPL is noisy due to the huge outputs. In <a href="https://social.tchncs.de/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> I then do things like</p><p>: (bench (fact 10000)) T<br>0.163 sec<br>-&gt; T</p><p>because only the result of the last expression is printed</p>
Simon Brooke<p><span class="h-card" translate="no"><a href="https://social.tchncs.de/@Regenaxer" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Regenaxer</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@borkdude" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>borkdude</span></a></span> <span class="h-card" translate="no"><a href="https://framapiaf.org/@vindarel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vindarel</span></a></span> Thanks! Right, so my comparable in-REPL times for iterative factorial 1000 are</p><p><a href="https://mastodon.scot/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a>: (bench (apply * (range 1 1000)))<br>0.000 sec<br><a href="https://mastodon.scot/tags/Clojure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Clojure</span></a>: user=&gt; (time (apply *' (range 1 1000)))<br>"Elapsed time: 2.428199 msecs"<br><a href="https://mastodon.scot/tags/SBCL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SBCL</span></a>: CL-USER[1]: (time (apply #'* (alexandria:iota 1000 :step 1)))<br>Evaluation took:<br> 0.000 seconds of real time<br> 0.000015 seconds of total run time (0.000000 user, 0.000015 system)<br> 100.00% CPU<br> 45,990 processor cycles<br> 0 bytes consed</p><p><a href="https://mastodon.scot/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a></p>
Alexander Burger<p><span class="h-card" translate="no"><a href="https://mastodon.scot/@simon_brooke" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>simon_brooke</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@borkdude" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>borkdude</span></a></span> <span class="h-card" translate="no"><a href="https://framapiaf.org/@vindarel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vindarel</span></a></span> It is the <a href="https://social.tchncs.de/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> 'bench' function:</p><p>$ pil +<br>: (bench (do 9999999 (* 3 4)))<br>0.209 sec<br>-&gt; 12</p>
Simon Brooke<p><span class="h-card" translate="no"><a href="https://mastodon.social/@borkdude" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>borkdude</span></a></span> <span class="h-card" translate="no"><a href="https://framapiaf.org/@vindarel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vindarel</span></a></span> <span class="h-card" translate="no"><a href="https://social.tchncs.de/@Regenaxer" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Regenaxer</span></a></span> <a href="https://mastodon.scot/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> doesn't have macros, by design. Its `time` function returns the time of day. So while there may be a way of timing a computation in the REPL, I've not found it yet.</p><p><a href="https://mastodon.scot/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a></p><p><a href="https://software-lab.de/doc/refT.html#time" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">software-lab.de/doc/refT.html#</span><span class="invisible">time</span></a></p>
Simon Brooke<p><span class="h-card" translate="no"><a href="https://mastodon.social/@borkdude" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>borkdude</span></a></span> <span class="h-card" translate="no"><a href="https://framapiaf.org/@vindarel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vindarel</span></a></span> <span class="h-card" translate="no"><a href="https://social.tchncs.de/@Regenaxer" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Regenaxer</span></a></span> Again, this is true and fair. I haven't yet learned enough <a href="https://mastodon.scot/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> to do a comparison timing in the REPL.</p><p>What's interesting (to me) is that PicoLisp is also doing recursive computations at very high speeds. I need to explore further but it's an *extremely* impressive system, and I'm amazed I wasn't aware of it before today.</p>
Simon Brooke<p><span class="h-card" translate="no"><a href="https://framapiaf.org/@vindarel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vindarel</span></a></span> That's true. The startup time issue is particularly harsh on <a href="https://mastodon.scot/tags/clojure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clojure</span></a>, and <span class="h-card" translate="no"><a href="https://mastodon.social/@borkdude" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>borkdude</span></a></span>'s <a href="https://mastodon.scot/tags/Babashka" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Babashka</span></a> would probably do a lot better.</p><p>But (a) this is very rough timing, and (b) startup time is some sort of proxy for the compactness of the runtime system; and <br>(c) the thing that's still astounding me is that <a href="https://mastodon.scot/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> is (sort-of) an interpreter, while all the others execute compiled code, so bloody should be faster!</p><p><a href="https://mastodon.scot/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a></p>
Alexander Burger<p><span class="h-card" translate="no"><a href="https://mastodon.scot/@simon_brooke" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>simon_brooke</span></a></span> I would also say that bignums implemented internally in cells are the way to go. I did so in <a href="https://social.tchncs.de/tags/PicoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PicoLisp</span></a> too. <a href="https://social.tchncs.de/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a></p>
Jörg Preisendörfer<p>40 days left to the submission deadline of <a href="https://mastodon.social/tags/EuropeanLispSymposium" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EuropeanLispSymposium</span></a> (<a href="https://mastodon.social/tags/ELSConf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ELSConf</span></a>) in <a href="https://mastodon.social/tags/Amsterdam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Amsterdam</span></a>:</p><p>🧷 (Friendica) <a href="https://libranet.de/display/0b6b25a8-1763-a88a-e526-72b275177682" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">libranet.de/display/0b6b25a8-1</span><span class="invisible">763-a88a-e526-72b275177682</span></a></p><p>🦎 (Matrix) <a href="https://matrix.to/#/!gqlYAZsfzSnmFNEHAT:magdeburg.jetzt/$z7kGECRQluF1iZzNhW-0I1e3lUmg-pff8PcAh96gox4" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">matrix.to/#/!gqlYAZsfzSnmFNEHA</span><span class="invisible">T:magdeburg.jetzt/$z7kGECRQluF1iZzNhW-0I1e3lUmg-pff8PcAh96gox4</span></a></p><p>🦎 (Telegram) <a href="https://telegram.me/FamilyOfLisp/309" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">telegram.me/FamilyOfLisp/309</span><span class="invisible"></span></a></p><p>🌺</p><p>🏷️ <a href="https://mastodon.social/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a> <a href="https://mastodon.social/tags/Scheme" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scheme</span></a> <a href="https://mastodon.social/tags/CommonLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommonLisp</span></a> <a href="https://mastodon.social/tags/Clojure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Clojure</span></a> <a href="https://mastodon.social/tags/Racket" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Racket</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emacs</span></a> <a href="https://mastodon.social/tags/ACL2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ACL2</span></a> <a href="https://mastodon.social/tags/AutoLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AutoLisp</span></a> # ISLisp <a href="https://mastodon.social/tags/DylanLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DylanLang</span></a> <a href="https://mastodon.social/tags/SKILL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SKILL</span></a> <a href="https://mastodon.social/tags/Hy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hy</span></a> <a href="https://mastodon.social/tags/Shen" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shen</span></a> <a href="https://mastodon.social/tags/Carp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Carp</span></a> <a href="https://mastodon.social/tags/Janet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Janet</span></a> <a href="https://mastodon.social/tags/uLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>uLisp</span></a> <a href="https://mastodon.social/tags/Picolisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Picolisp</span></a> <a href="https://mastodon.social/tags/Gamelisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gamelisp</span></a> <a href="https://mastodon.social/tags/TXR" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TXR</span></a> <a href="https://mastodon.social/tags/InterLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>InterLisp</span></a> <a href="https://mastodon.social/tags/Medley" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Medley</span></a> <a href="https://mastodon.social/tags/OpenGenera" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenGenera</span></a> <a href="https://mastodon.social/tags/Symbolics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Symbolics</span></a> <a href="https://mastodon.social/tags/ThinkingMachines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ThinkingMachines</span></a> <a href="https://mastodon.social/tags/ConnectionMachine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ConnectionMachine</span></a> <a href="https://mastodon.social/tags/MultiLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MultiLisp</span></a> <a href="https://mastodon.social/tags/AMOP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AMOP</span></a> <a href="https://mastodon.social/tags/CLOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLOS</span></a> <a href="https://mastodon.social/tags/SICP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SICP</span></a> <a href="https://mastodon.social/tags/PAIP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PAIP</span></a> <a href="https://mastodon.social/tags/AIMA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AIMA</span></a> <a href="https://mastodon.social/tags/Lambda" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lambda</span></a> <a href="https://mastodon.social/tags/CLtL2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CLtL2</span></a> <a href="https://mastodon.social/tags/HTDP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTDP</span></a></p>