Substrate: A Lisp for WebAssembly

(substrate-lang.com)

18 points | by unignorant 4 days ago ago

7 comments

  • lioeters 16 hours ago ago

    After downvoting the comment below about how no one writes code anymore, visiting the site and seeing the typical AI-generated aesthetic and text is disappointing. Why should anyone care what your agent produced, when my agent can do the same thing better suited for my personal/business needs. Then I saw a glimmer of hope.

    > Note: this README was written by a human.

    What a pleasure, am reading through it.

    > code is sandboxed and cannot access your filesystem or network without grants

    Excellent, it makes sense for a scripting language to have minimal and granular permissions and access.

    > Standard Library .. crypto, compress, http, html, dom, canvas, browser

    A set of useful features, that shows what the language can do out of the box.

    That browser module running Chromium looks nice. In a recent project I'm working on, which also involves a language runtime, I added a webview module that "completes the loop" for developing both the server and frontend of an application. It's especially ergonomic programming with WebSocket and hot reloading.

    > dependencies by path or by a hash-pinned URL

    > macros, generics, memory management, concurrency

    > linking Wasm libraries

    Cool! Good design choices and taste.

    OK, so I took some time to read the entire README, and enjoyed hearing the human side of the story, the thinking that went into designing the language.

    Honestly, if you put that document in plain text as the website, I would have been more excited and interested from the start. I think these days people are suspicious of presentations that are too slick and over-produced.

    • Semiapies 15 hours ago ago

      I think these days people are suspicious of presentations that are too slick and over-produced

      Before LLMs, we had a good decade of people using UI kits like Bootstrap to make slick, if generic-looking, sites. Sure, I rolled my eyes whenever someone threw in hero images and cards to make their weekend open source project look like a product page. But I'd still take that or vomited-up AI web design over the sites of people who think monospaced fonts are good for body text.

      I just think the hiding of parentheses on the site is hilarious...

  • sheepscreek 21 hours ago ago

    [flagged]

    • gavmor 19 hours ago ago

      How do you impart intent?

      • 3 hours ago ago
        [deleted]
      • sheepscreek 3 hours ago ago

        In language. You focus more on the business problem, less on the exact implementation details.

        Precisely how a manager imparts intent by providing the guardrails and the sandbox.

        Actually, thinking about it more, Lean may be a better language for expressing intent and rules, allowing AI to handle the implementation. This might be the way forward. I think I'm gonna try that for my next project.

        • gavmor 2 hours ago ago

          Shouldn't the implementation be an expression of the business problem? Isn't that the impetus behind eg Domain Driven Development?