(comments)

原始链接: https://news.ycombinator.com/item?id=44016037

A Hacker News thread discusses "Mystical," a visually-driven esoteric programming language. Commenters are captivated by its aesthetic appeal and surprising readability, drawing comparisons to magical systems in fiction, like Dennō Coil and Sanderson's books. Users find the integration of aesthetics and logic compelling. Some suggest its potential use cases, from prettier QR codes to spell creation in games, citing Noita as an example. Several posters consider how it could be applied to Lisp-like or stack-based languages. Others share related rabbit holes, like chaos magick or the alien language in "Arrival." Some see parallels to other programming languages, such as APL, Logo, and PostScript. Users also share related projects of their own.

相关文章
  • (评论) 2025-05-14
  • (评论) 2025-05-16
  • 2025-05-15
  • 2025-05-18
  • (评论) 2025-05-15

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Mystical (suberic.net)
    401 points by mmphosis 1 day ago | hide | past | favorite | 45 comments










    Reminds me of japanese anime Dennō Coil, where kids would draw computer programs almost exactly like the author’s on the floor and invoke them as some kind of enchantement. Highly recommend it!


    I loved that show. It showed how children deal with new technology different from how adults deal with it. It predated even google glass by half a decade.


    I should rewatch that. There’s many shows that get worse over time, but I just don’t think anything has changed in regards to DC. Even now it’ll seem like pure magic, but just close enough to believable you might see it in your lifetime.

    Of course my lifetime has marched on relentlessly since I first saw it.



    I came here to say exactly the same thing! What a great show.


    This must be the preferred programming language of the otherworldly main character of Aphyr's "Xing the technical interview" sequence of blog posts [1]. Would definitely deserve its own entry in the series.

    [1] https://aphyr.com/posts/354-unifying-the-technical-interview



    I would actually love to use this for a programming interview in real life.


    I wasn't aware of this, thanks for posting! Very amusing.


        BEFOREHAND: close door, each window & exit; wait until time.
            open spellbook, study, read (scan, select, tell us);
         write it, print the hex while each watches,
            reverse its length, write again;
            kill spiders, pop them, chop, split, kill them.
                unlink arms, shift, wait & listen (listening, wait),
        ...
    
    — Anonymous, "Black Perl" https://en.wikipedia.org/wiki/Black_Perl


    This is incredible, what's the license of the work? A derivative of this (using a forth-like with only recursion) would be perfect for the current game project where I'm lacking a visual representation of spells (both written and animated). Mystical provides the missing piece of the puzzle of how users could write their own spells in a structured way within the game and still feel as if it's part of the game world with the same kind of thinking as in regular programming.


    Noita has similar want building system for constructing spells in a wand in programmatic way with repeats, multiplies, duplicating and such:

    https://store.steampowered.com/app/881100/Noita/





    Oh wow, I had to try this and as expected it's amazing. Trying to design interesting algorithms that also look good is a lot of fun, and the result is surprisingly readable.

    It takes some getting used to symbols that can be confused when upside down such as b or brackets (like the symbols for begin/end)

    Like others I am curious about doing it for a lisp or Forth



    This is neography meets conlang. Love it. I would really love to see a unique programming language that uses a constructed language with a beautiful script. I had the idea of making one but I never got around to it.


    Theologically speaking, there is an important distinction between magic, or sorcery, and mysticism. Sorcery is an attempt to twist or subvert the divine while mysticism is an attempt to uncover it.

    For example, Hildegard von Bingen is a mystic while Heinrich Faust would be considered a sorcerer. The distinction is important as mysticism is considered a holy activity while sorcery is considered to be a profound sin.

    Meditation and esoteric study would fall under the realm of mysticism, while things like divination or the dishonest manipulation of belief would be considered sorcery.



    More on chaos magick and sigil casting 101: https://archive.org/details/the-psychonaut-field-manual


    I call upon thе blood-moon goddess, for I have but one request. I've laid the altar, charged the crystals, the circle, I have blessed. PLEASE boot this time.


    Knock the candle from scripture stack


    Very cool - it reminds me of some of the programming-language-like magic systems in Sanderson's books, especially AonDor in Elantris and Lines in The Rithmatist.


    This actually seems rather usable! It is rare that an esolang focused on aesthetics is so readable and relatively easy to use.

    And this idea can probably be applied for any Lisp-like, any stack based language or array language.

    With the right structured editor, it could be used for legitimate programming, it might even be more compact and readable at a glance than some code.



    This has uses right? A prettier form of QR code? Would be a tad difficult to decode automatically but I definitely like the combination of aesthetics with logic.


    Hah, who's the wizard now, APL programmers?


    Looks basically like the Logo language, except with more sigils and less turtle.


    Dude, the Laundry is trying to relax on the weekend. Don’t make them call the Plumbers out.


    I suspect the new management has them occupied.


    One of the Phang’s or the 1st of Liars should be free though.


    I've been working on one of these too! Mine's based on Dusa, a logic lang which has the nice property that the order of instructions don't matter. This gives a lot of options for making really expressive, dense runes but making a program that lays it out automatically has been challenging. It's also nowhere near as readable as Mystical for better or worse.

    Here's a sample that plays Rock Paper Scissors: https://sunny.garden/@spenc/113870784615196721



    Wow, that's gorgeous.


    it does look just as beautiful though.


    Couldn't think of any applications of this outside of doing actual magic. But this is awesome still!


    PostScript (with its reverse Polish notation) rewires brain on its own (it is top 1 in languages that "made me think different). Adding esoteric visuals is a nice touch.


    Other languages please? Would be cool to have a rewire your brain, and train you briefly in things like ps and lisp.


    Every language rewired my brain, as you need to think in a different way. But nothing felt like using PostScript. I guess if I tried to use Assembly (well, my only experience is through playing Shenzhen I/O), the difference would be even more profound.

    For many people, functional languages were a big paradigm shift. For me, not so much — my background is in mathematics and theoretical physics, so the functional way is the default way of doing things. So, for me, the functional approach (be it in JavaScript or Rust) brings comfort rather than enlightenment.

    It’s always contextual, based on what you already know. Maybe if someone speaks German natively, PostScript comes more naturally — who knows.



    Declarative languages are fun. Prolog is the iconic one. You may be more familiar with Make.

    For OO, every serious software engineer should read The Art of the Metaobject Protocol sometime in their lives.



    Forth. Get Starting Forth and Thinking Forth.




    For game purposes I've been looking up alchemical and mystical symbols, and I've been frustrated that, while there's a lot of references of symbols, alphabets, etc. themselves, there's little or no presentation of a grammar that would direct one in creating larger diagrams that look like this. This is amazing. It's deeply pleasing that code, represented systematically, would be so aesthetically pleasing.


    Very cute. If you squint, it's almost APL written in a circles.


    The sigil feel of this feels like the premise of a movie


    It has been kind of made into a movie! The Heptapods [0] in Arrival (2016) written script is a circular shape with each subsection of the shape conveying a different meaning ultimately representing a concept or thought. A quote from the movie:

    > Like their ship or their bodies, their written language has no forward or backward direction. Linguists call this "nonlinear orthography", which raises the question: Is this how they think?

    While the movie explores philosophical questions other than "Arrival" and does a quiet beautiful job at that, actual linguistic experts have helped making it and it has been praised for its accuracy. I suggest you give it a go.

    [0]: https://aliens.fandom.com/wiki/Heptapod



    Torres Quevedo did it first but with symbols on mechanic hardware and processes.

    Also, Babbage with literal gears. Look up for electromechanical computation.



    Very cool!


    Awesome.


    This is the coolest thing I've seen in years.


    cool!!!


    Holy shit this is awesome. Absolutely beautiful.






    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com