I Wrote "Janet for Mortals"

(ianthehenry.com)

77 points | by magnio 4 hours ago ago

9 comments

  • riggsdk 14 minutes ago

    The title made me believe it was just another AI assistant (thinking Janet from "The Good Place" - but for us non-dead people instead. Was pleasantly surprised to see it is a programming language and that the title was just a clever joke on that:

      The Janet language is named after an immortal being in The Good Place who helps mortals navigate the afterlife, hence the title.
    
    It kinda surprised me that they ship the language with a PEG (parsing expression grammer) instead of a basic Regex engine. This has been my wish for any programming language that ships a Regex library by default to also include a capable PEG.
  • purerandomness 13 minutes ago

    Absolutely love the writing style, which was the reason I got sucked into functional programming and the Janet language deeper than I'd had previously wanted to.

    Thank you!

  • incanus77 3 hours ago

    I enjoyed this book’s practical take. It’s a big part of why I am currently learning Janet by doing Everybody Codes in it right now.

    https://everybody.codes

  • threatofrain 2 hours ago
  • 2pEXgD0fZ5cF 34 minutes ago

    Janet looks really interesting. Especially with how easy to embed it is.

    If I understand it correctly creating DSLs in it should also be very easy with its macro and PEG feature?

  • MichaelGlass an hour ago

    I really like the slightly silly writing style! Reminds me of a toned-down Douglas Adams. Honestly, I'm not particularly interested in Janet but the style sucked me in.

  • ulbu an hour ago

    “We’ll start with some numbers” I was expecting he’ll start by proclaiming it’s that language that uses floats for integers.

  • gen_greyface 2 hours ago

    > ... has a built-in repl. At any point you can press escape and pull it up, and it’s docked to the bottom of the page...

    probably not a good decision to use `Esc` since browsers have default bindings for it. firefox exits fullscreen on `Esc`

    • s-lambert an hour ago

      Escape is a recommended key bind for modals by the W3C, I don't see why you couldn't use it in other contexts.

      On Chrome/Edge I had to hold escape for it to exit fullscreen and on Brave it didn't exit fullscreen with escape.