1. 21
  1.  

  2. 4

    Could’ve used Forth. That way, you can really build up a character from strokes… : 大 horizontal throw press ; anyone?

    1. 1

      This is a great esolang opportunity.

    2. 1

      It’s still easier to read than Rust. Nice work! :)

      1. 2

        Perl still beats it though. Go Perl!

      2. 1

        Previous discussion: https://lobste.rs/s/vutyqk.

        1. 1

          I had to click through and look at the examples, just to expose myself to the same sensation programmers who don’t read any English must get when they approach the languages I work in daily. It’s easy to forget what a leg up that gives… I’ve implemented the Chinese remainder theorem more than once, and I can make head nor tail of this sample which the article assures us implements that same theorem.

          1. 3

            Google Translate is a great, if whimsical, equalizer. Even without the details, seeing the notation in an alphabet you understand lets you start picking out the structure:

            • 注曰「「 … 」」– “The note says…”, ie, a comment
            • 吾有一術。名之曰「 foo 」。欲行是術。– “I have a technique. The name is “foo”. Desire is art.” ie, declare a function named “foo”. There’s statements after that declaring arguments and return type, but I haven’t figured out how those exactly work yet. The article suggests that the grammar and idiom is based on classical Chinese grammar as well, not just the vocabulary, so inflection/particles/whatever might make life a little complicated. I love the statement “Desire is art” as part of a programming language though.
            • 施「 foo 」於「 bar 」 – A function call, “apply foo to the thing named bar”.
            • 名之曰「 foo 」。– “The name is “foo”.” This turns up in variable declarations as well as function definitions, though I haven’t figured out exactly how variables work yet.

            I kinda want to decipher the rest of this language now…

            1. 1

              Nice. I didn’t think to apply a translator.

              A programming language is a great application for that.

              I considered playing with one of their transpilers, but didn’t feel like going as far as installing something.