Show HN: The Mog Programming Language

(moglang.org)

46 points | by belisarius222 1 hour ago

9 comments

  • steve_adams_86
    1 hour ago
    I like the looks of this, and the idea behind it, but TypeScriot via Deno is an audited language with a good security model, a good type system, and sandboxing in an extremely well-hardened runtime. It's also a language that LLMs are exceptionally well-trained on. What does Mog offer that's meaningfully superior in an agent context?

    I see that Deno requires a subprocess which introduces some overhead, and I might be naive to think so, but that doesn't seem like it would matter much when agent round-trip and inference time is way, way longer than any inefficiency a subprocess would introduce. (edit: I realized in some cases the round-trip time may be negligible if the agent is local, but inference is still very slow)

    I admittedly do prefer the syntax here, but I'm more so asking these questions from a point of pragmatism over idealism. I already use Deno because it's convenient, practical, and efficient rather than ideal.

    • andreybaskov
      54 minutes ago
      It's a legitimate question to ask about any new language post AI - given there is no training dataset, any other language would work better with AI.

      The bigger problem is maintainability over the long term, Deno is built by Node.js creator and is maintained for half a decade now, that's hard to compete with. In a way it's much more about social trust rather than particular syntax.

    • stillpointlab
      30 minutes ago
      One thing that comes to mind, more of a first reaction than a considered opinion, is the complexity of V8 getting in the way. JavaScript and Typescript present a challenge to language implementors.

      There is something to be said about giving AIs a clean foundation on which to build their own language. This allows evolution of such systems to go all the way into the compiler, beyond tooling.

    • castral
      34 minutes ago
      I agree with this take. What does this bring to the table that can't be done with pretty much any preexisting toolset? Hell, even bash and chroot jail...
  • Retr0id
    22 minutes ago
    > Compiled to native code for low-latency plugin execution – no interpreter overhead, no JIT, no process startup cost.

    If you're running the compiled code in-process, how is that not JIT? And isn't that higher-latency than interpreting? Tiered-JIT (a la V8) solves exactly this problem.

    Edit: Although the example programs show traditional AOT compile/execute steps, so "no process startup cost" is presumably a lie?

    • dana321
      16 minutes ago
      They could have just used cranelift for jit, but no..
  • Garlef
    8 minutes ago
    Awesome!

    A few questions:

    - Is there a list of host languages?

    - Can it live in the browser? (= is JS one of the host languages?)

  • FireInsight
    31 minutes ago
    I looked at the brainrotty name[1] and instantly assumed AI slop, but I'm glad the website was upfront about that.

    [1] https://www.merriam-webster.com/slang/mog

  • dana321
    17 minutes ago
    Its disheartening to see these crop up after spending 25 years through trial and error learning how to write programming languages.

    Please think twice before releasing these, if you're going to do it come up with at least one original idea that nobody else has done before.

    Why didn't you just call it "bad rust copy"?

  • gozzoo
    32 minutes ago
    How is Mog different than Mojo?
  • ar_lan
    1 hour ago
    Wow, we've brought mogging to the programming world. Nothing is safe from looksmaxxing it seems.
  • shablulman
    1 hour ago
    [flagged]