[HN Gopher] Not only Clojure - Chez Scheme: Lisp with native cod...
       ___________________________________________________________________
        
       Not only Clojure - Chez Scheme: Lisp with native code speed
        
       Author : simonpure
       Score  : 35 points
       Date   : 2023-09-22 18:28 UTC (4 hours ago)
        
 (HTM) web link (yakihonne.com)
 (TXT) w3m dump (yakihonne.com)
        
       | moomin wrote:
       | IIRC, Idris 2 uses Chez Scheme for its backend.
        
         | threatofrain wrote:
         | Also Racket.
        
         | bPspGiJT8Y wrote:
         | There's also a Chez backend in development for PureScript.
        
       | SomeoneFromCA wrote:
       | Chez if fast, but certainly not native fast.
        
         | tmtvl wrote:
         | It does pretty well considering the obstacles holding it back,
         | garbage collection and implicit typing are rather hefty
         | lodestones to work around, but Chez has a quite sophisticated
         | compiler which can do some impressive optimizations. Of course
         | certain Common Lisp implementations like SBCL still outshine
         | Chez, but for a Scheme implementation it's rather impressive.
         | 
         | Of course if you want something really fast you let a genius
         | who knows the target system inside and out write some hand-
         | optimized assembly, but for a program that only needs to run
         | once (or that has no direct or indirect connection to an end
         | user) Chez is roughly fast enough.
        
       | ashton314 wrote:
       | Here are the results of running several Scheme implementations on
       | a set of common benchmarks:
       | 
       | https://ecraven.github.io/r7rs-benchmarks/
       | 
       | A few years ago Racket switched to using Chez for its
       | implementation. The lead for Racket (Matthew Flatt) seems pretty
       | happy with the new Chez base: he and the team were able to
       | _reduce_ the total amount of code while at the same time
       | _improving_ performance. Here 's the experience report from a few
       | years ago:
       | 
       | https://users.cs.utah.edu/~mflatt/tmp/rkt-on-chez.pdf
        
         | hedgehog0 wrote:
         | mflatt FTW!
        
       | clircle wrote:
       | Pretty sure emacs lisp compiles to native code now
        
       | uxcolumbo wrote:
       | What is yakihonne? Another blogging platform? Rather confusing to
       | use.
       | 
       | Anyway, would have been nice for the article to link to Chez
       | Scheme's project page, which seems to be this one:
       | 
       | https://github.com/cisco/ChezScheme
       | 
       | Also not clear why should folks use Chez? The article barely
       | covered the why or what successful apps have been written in
       | Chez.
        
         | no_wizard wrote:
         | I've always been interested in how Cisco uses ChezScheme. What
         | does it power for them that they are willing to put money into
         | this project?
        
         | binarycrusader wrote:
         | I found this (not an endorsement, I have no affiliation, and I
         | don't use it):
         | 
         |  _YakiHonne is a Nostr-based decentralized content media
         | protocol, which supports free curation, creation, publishing,
         | and reporting by various media._
         | 
         | https://yakihonne.com/article/naddr1qq2njnfcdpsngu3sdev4wjn3...
        
           | uxcolumbo wrote:
           | Thanks - worthwhile features for sure and being
           | decentralized.
           | 
           | I was hoping to find that information on the site itself, I
           | was looking for an about page or similar. Couldn't find it.
           | Hence why it was confusing for a first time user. Or maybe I
           | just missed it.
        
       | phoe-krk wrote:
       | Tangential: if we're talking Lisp and native code speed, Steel
       | Bank Common Lisp (by default) compiles everything to machine
       | code.
       | 
       | [0] https://sbcl.org
        
         | ska wrote:
         | Compiled lisps have been a thing for nearly as long as lisps
         | have. IIRC the first one was in early 1960s.
         | 
         | It's a cultural oddity how strongly people seem to associate
         | them with interpreted code.
        
       | packetlost wrote:
       | Another "post-modern" natively compiling Scheme is Gerbil Scheme
       | [0]. It's seeing a lot of attention/enhancements lately,
       | including some bounties to implement features.
       | 
       | [0]: https://cons.io
        
         | codetrotter wrote:
         | And chicken scheme
         | 
         | https://www.call-cc.org/
         | 
         | It compiles to C, and from that to binary program
        
         | [deleted]
        
         | [deleted]
        
       ___________________________________________________________________
       (page generated 2023-09-22 23:00 UTC)