8 comments

  • vindarel1 hour ago
    The other way round, a Haskell on top of a Lisp, in production today: <a href="https:&#x2F;&#x2F;github.com&#x2F;coalton-lang&#x2F;coalton&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;coalton-lang&#x2F;coalton&#x2F;</a><p>&gt; Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.<p>Presentation this year on the ELS: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=of92m4XNgrM" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=of92m4XNgrM</a>
    • dieggsy25 minutes ago
      I&#x27;m not sure I&#x27;d say this is &quot;the other way around&quot;; Coalton strives to implement Haskell or ML-adjacent semantics (in the type system, for example) with Lisp syntax. &quot;With&quot; here meaning that it is both implemented in and written with Lisp syntax.<p>Edit: I think I see what you mean now. Lisp backend vs Haskell backend.<p>Anyway, Coalton is a joy to use and IMO a breath of fresh air in CL. It&#x27;s quite easy start using as a library; go all-in or only use it in specific parts of the code. It&#x27;s great to be able to choose between (or intermix)the flexibility of CL and the guarantees of a statically typed language (as well as some nice performance boosts with arguably less work). Some aspects are still young (some of the standard library, ecosystem, editor support), but it&#x27;s quite thoughtfully crafted and I&#x27;m excited to see where it goes.
  • EricRiese1 hour ago
    There&#x27;s also Hackett: Haskell with Racket&#x27;s syntax and macro system, by Alexis King
    • privong35 minutes ago
      To save folks a search:<p>github repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;lexi-lambda&#x2F;hackett" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lexi-lambda&#x2F;hackett</a><p>Documentation: <a href="https:&#x2F;&#x2F;lexi-lambda.github.io&#x2F;hackett&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lexi-lambda.github.io&#x2F;hackett&#x2F;</a>
  • bjoli1 hour ago
    I will prempt the comment that always shows up in discussions of this kind:<p>No. Typeclasses do not replace proper macros. Go home, you are drunk.
    • BalinKing1 hour ago
      Another argument I&#x27;ve often heard is that laziness largely obviates macros. Personally, I agree that this is often true—but not always, and that last bit is where Lisp-style macros would be really nice.<p>(^^ edited based on one of the responses below.)
      • Symmetry22 minutes ago
        <i>The venerable master Qc Na was walking with his student, Anton. Hoping to prompt the master into a discussion, Anton said &quot;Master, I have heard that objects are a very good thing - is this true?&quot; Qc Na looked pityingly at his student and replied, &quot;Foolish pupil - objects are merely a poor man&#x27;s closures.&quot;</i><p><i>Chastised, Anton took his leave from his master and returned to his cell, intent on studying closures. He carefully read the entire &quot;Lambda: The Ultimate...&quot; series of papers and its cousins, and implemented a small Scheme interpreter with a closure-based object system. He learned much, and looked forward to informing his master of his progress.</i><p><i>On his next walk with Qc Na, Anton attempted to impress his master by saying Master, I have diligently studied the matter, and now understand that objects are truly a poor man&#x27;s closures.&quot; Qc Na responded by hitting Anton with his stick, saying &quot;When will you learn? Closures are a poor man&#x27;s object.&quot;</i><p><i>At that moment, Anton became enlightened.</i>
        • merelysounds10 minutes ago
          Some fun code examples in Ruby: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@citizen428&#x2F;of-closures-and-objects-e9507ca1f1b6" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@citizen428&#x2F;of-closures-and-objects-e9507...</a>
      • jasbrg48 minutes ago
        do you know of a post or something you could point to that elaborates that argument? interested because I&#x27;m having trouble coming up with the line of reasoning on my own
        • BalinKing39 minutes ago
          I&#x27;m having trouble finding anything concrete online (other than people simply repeating the folk wisdom) other than control flow operators, which are implemented as normal functions in Haskell (i.e. including custom control flow operators).[0] Although, one Reddit comment[1] did also mention typeclasses as obviating other types of macros, so I&#x27;ve edited my earlier comment accordingly.<p>[0] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;haskell&#x2F;comments&#x2F;5xge0v&#x2F;comment&#x2F;dehy5k1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;haskell&#x2F;comments&#x2F;5xge0v&#x2F;comment&#x2F;deh...</a><p>[1] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;haskell&#x2F;comments&#x2F;1929xn&#x2F;comment&#x2F;c8k7wl8&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;haskell&#x2F;comments&#x2F;1929xn&#x2F;comment&#x2F;c8k...</a>
        • ddellacosta41 minutes ago
          This is not a direct response to the question of how laziness obviates the need for macros, but it mentions some specific relevant cases:<p><a href="https:&#x2F;&#x2F;augustss.blogspot.com&#x2F;2011&#x2F;05&#x2F;more-points-for-lazy-evaluation-in.html" rel="nofollow">https:&#x2F;&#x2F;augustss.blogspot.com&#x2F;2011&#x2F;05&#x2F;more-points-for-lazy-e...</a>
    • Y_Y25 minutes ago
      I&#x27;ll get in trouble if I show up this drunk at this hour, can&#x27;t I just bolt on a templating system?
  • swatson74142 minutes ago
    Date of publication is from 2007.
  • skywhopper11 minutes ago
    I was told Lisp didn’t <i>have</i> syntax.
  • felipelalli22 minutes ago
    Savior of the universe.
  • srott1 hour ago
    How does it compare to Shen?<p><a href="https:&#x2F;&#x2F;shenlanguage.org" rel="nofollow">https:&#x2F;&#x2F;shenlanguage.org</a>
    • adastra221 hour ago
      Kinda hard to tell when I can’t find a single example of the language on its website.
  • fithisux1 hour ago
    It is time for Rusted !!!<p>Rust semantics with D syntax (garbage collector is a bonus).
    • Xophmeister1 hour ago
      Didn’t D get an ownership model, a la Rust’s affine types, relatively recently?