Lammy 17 hours ago

> Minimal Abstract Markup Language

Pardon my naming nitpick and lack of commentary on any technical aspect, but I don't think this is a markup language. What is being marked up? HTML is called that because it's marking up text with like bold and italics and font and color and paragraphs and stuff.

To be fair, YAML's creators had the same misunderstanding. Compare:

https://yaml.org/spec/history/2001-12-10.html

https://yaml.org/spec/history/2002-04-07.html

  • qrios 17 hours ago

    Also not abstract. To be ‘abstract’, a language must combine several objects ‘under one umbrella’. Depicting different things in the same notation is the opposite of abstract. YACCANL (Yet Another Cargo-Cult Abstraction Non-Markup Language).

    • ctenb 15 hours ago

      Abstract is an abstract word. Your interpretation is just one of the possible meanings. You could argue that this language is abstract because the data has no intrinsic meaning.

      • miningape 11 hours ago

        Yeah but then the argument dissolves into the sea of absurdity. We can (and should) assume at some level there's another intelligent being on the other end that we're communicating to.

        • ctenb 8 hours ago

          No? Intelligence is not telepathy. You can't just assume that your initial interpretation is the correct one, even more so if you interpretation doesn't make sense. Like in this case, where the parents interpretation of "abstract" is literally not applicable to this configuration language.

  • HeavyStorm 11 hours ago

    Wow, wasn't aware (or simply never noticed) the name change. I was still calling it yet another...

  • odie5533 17 hours ago

    Is XML a markup language? Because it was often used for not that too.

    • Skeime 12 hours ago

      But XML was designed as a markup language. That is was often used for configuration is not its fault. (And it works much better for its original purpose, where the otherwise strange distinction between attributes and child nodes actually makes sense.)

      MAML seems to be designed as a configuration language, but calls itself a markup language. (YAML did too, but they changed it at some point.)

    • oneeyedpigeon 13 hours ago

      Occasional misuse doesn't change its nature. It seems as if MAML cannot be used as a markup language.

    • AdieuToLogic 17 hours ago

      > Is XML a markup language?

      Yes, the hint is in the name:

        Extensible Markup Language (XML)[0]
      
      0 - https://en.wikipedia.org/wiki/XML
      • hnlmorg 14 hours ago

        > Yes, the hint is in the name: > Extensible Markup Language

        Thats not an helpful answer when the reason for this discussion is whether MAML, another document format with the term “Markup Language” in its name, is also a markup language. ;)

        • xigoi 13 hours ago

          MAML is configuration format, not a document format, which is why the “ML” in its name is a misnomer.

          • throwaway150 13 hours ago

            Your parent comment (hnlmorg) already knows that "ML" in MAML is a misnomer. They are explaining why your grandparent comment (AdieuToLogic) does not explain very well why XML is a markup language but MAML isn't.

            Your GP comment says that XML has markup in the name so that's a hint that XML is a markup language. Well... so does MAML. But we all agree that MAML is not a markup language. So we can't just say that XML is a markup language because the hint is in the name. By that logic, MAML would be a markup language too but it isn't. We need a stronger argument to explain why XML is a markup language and MAML is not. Like XML can markup content but MAML cannot markup anything. That was your parent comment's point.

            This whole subthread has become an example of arguing for the sake of arguing. The messages in this subthread are correct on their own but missing the point of the parent comments.

    • classified 11 hours ago

      The "ML" in "XML" stands for Markup Language!

      • OJFord 10 hours ago

        As it does in MAML.

hresvelgr 14 hours ago

I understand trying to improve popular technologies that have issues, but for a text format with mass ubiquity, JSON has very little wrong with it to the point where I believe that projects like this are a profound waste of everyone's time.

I am all for people experimenting and making things they like, but a domain was purchased so I can only assume a serious intent to make something of this and my only reaction is that I hope this is not taken seriously and disappears.

  • zzo38computer 3 hours ago

    > JSON has very little wrong with it

    JSON does have significant things wrong with it, both with the syntax and with the data types.

    For example, there is no proper integer type (this is the one problem that MAML corrects with the data), and it always uses Unicode (which MAML does not correct).

    However, different file formats can be helpful for different purposes.

  • Cthulhu_ 12 hours ago

    Plus it hyperfocuses and compares to JSON, but there's many popular configuration languages that should be compared with as well like YAML, TOML, etc.

    • dotancohen 12 hours ago

      That's because MAML is a superset of JSON. It has some added features (comments, multiline strings, etc), but it will likely be confused for JSON upon first glance. MAML will also have to reference JSON implementations to resolve ambiguities, e.g. how to handle multiple identical array keys. So MAML can not live outside the JSON world.

      • Someone 11 hours ago

        > MAML will also have to reference JSON implementations to resolve ambiguities, e.g. how to handle multiple identical array keys

        Isn’t the spec (https://maml.dev/spec/v0.1), which says “Duplicate keys are not allowed within an object.” sufficient for that?

        Or am I misunderstanding what you mean by “array keys”?

        It seems the spec is silent on whether key order is significant in dictionaries, though.

      • psychoslave 12 hours ago

        No way to confuse with JSON, where you would instead expect // or /* */ for a comment facility which align with Javascript.

        Also """ for multiline string, I only encountered that in Python. But apparently Java, Kotlin and Swift also do that now. In js, backquote already do the trick.

        And the project is targeting more on configuration file, where TOML or YAML indeed are already competitors just as historically valid as JSON.

  • ithkuil 11 hours ago

    JSON with comments would go a long way

    • petersumskas 10 hours ago

      Douglas Crockford addressed this many years ago: write your human readable config with comments and run it through a pre-processor to strip them out before handing the config to a JSON parser. Seems like almost no one picked up on the idea.

      • ulrikrasmussen 9 hours ago

        That is such a horrible non-solution. It breaks all tooling which isn't aware of your particular preprocessor and adds a compilation step to every configuration.

      • benhurmarcel 9 hours ago

        > write your human readable config with comments

        The question then becomes: what format is that?

      • zzo38computer 3 hours ago

        That avoids one of the benefits of having a text based format; I would use TER and convert to DER (where TER is a text format and DER is a binary format, and which is what I do with some of my programs).

        (Text formats do have some benefits, but binary formats have different benefits.)

      • seanhunter 6 hours ago

        > Seems like almost no one picked up on the idea.

        Seems to me more like almost no one thought the idea was any good.

    • krapp 11 hours ago

      Use Lua tables. Lua's parser is smaller than many JSON parsers, the syntax is almost the same and you can use comments.

      • Bolwin 6 hours ago

        On the web? In wasm? I'd much rather use a new format. MAML's parser is 2kb of js gzipped according to the repo and very fast.

    • sebazzz 6 hours ago

      JSON5 is what that is called and it already has wide support.

      • Too 4 hours ago

        This is answered in the FAQ

  • ModernMech 7 hours ago

    > a domain was purchased so I can only assume a serious intent to make something of this

    Buying a domain is just part of the language craft, it doesn't mean this is a serious effort to supplant JSON. Mostly it just signals that the author is serious about keeping others away from the namespace, which maml is a really good one.

    There are thousands of language projects, most of them completely pointless, many of them have a domain, approximately 0 of them are "serious" in the way you're thinking. It's mostly just hobbyists, but people still try to make a name for their work and buying a domain name is a way to protect that investment.

poly2it a day ago

The author of this language seems to have responded with AI-generated arguments in response to all questions linked in the FAQ section. This does not inspire much confidence for the design of the language.

Really, I do not see the point of this. These configuration languages are just different syntaxes for expressing the same fundamental data, bearing the same semantics. It would be much more interesting to see a language which experiments with what is fundamentally representable, for example like how the Nix language supports functional programming and has functions as a first-class data type.

  • LelouBil 15 hours ago

    I started experimenting with Cue https://cuelang.org/ (for Kubernetes mostly, though I also used their tasks features) and it is wonderful!

    If you squint it looks and works like a functional programming language, but instead of actually being one (like Dhall for example) it simply looks like configuration : keys and values.

    The "types are values" and "values defined multiple times must unify" rules are really simple, and enable easy comprehension of what's happening and are powerful enough without it being a full blown programming language.

    In a way it kinda reminds me of the TypeScript structural type system in the ways you manipulate types like values, which I like as well.

    • hbogert 14 hours ago

      It is truly wonderful. I do think they are missing a clear winner use-case so currently at our company colleagues don't see a clear benefit yet. Though if you take all use-cases where we use yaml or json now, and you'd get a pretty coherent way of working with config. But it's hard to phantom for non-coders and hard to communicate for coders why it's worth the effort for the non-coders.

  • hgs3 a day ago

    > It would be much more interesting to see a language which experiments with what is fundamentally representable

    You might checkout my project, Confetti [1]. I conceived of it as Unix configuration files with the flexibility of S-expressions. I think the examples page on the website shows interesting use cases. It doesn't have a formal execution model, however, for that you might checkout Tcl or Lua.

    [1] https://confetti.hgs3.me/

    • cdaringe 17 hours ago

      Why is typeless a positive trait? Just due to the simplicity of the matter? What are the sharp edges?

      • hgs3 16 hours ago

        In practice, there are still types, they are just validated by your application. I didn’t want Confetti itself to make assumptions. I wanted to give you the freedom to define your own custom types and keywords, like “on” and “off”, or even tri-states like “yes”, “no”, “maybe”.

        The problem with mandatory keywords, like “true” and “false”, is they box you into the English language. And which data types should be intrinsic is arbitrary, for example, TOML has data types for date and time, but JSON does not [1]. Where do you draw the line? Confetti let’s you decide.

        You might enjoy reading this take on the subject [2].

        [1] https://toml.io/en/v1.0.0#offset-date-time

        [2] https://github.com/madmurphy/libconfini/wiki/An-INI-critique...

        • ctenb 15 hours ago

          I don't see how predefined keywords are a bad thing. True/false is near universal

        • spookie 13 hours ago

          That makes a lot of sense to me. These files aren't just read by programmers either.

  • zzo38computer a day ago

    > These configuration languages are just different syntaxes for expressing the same fundamental data, bearing the same semantics.

    This is my complaint too. However, they do add a proper integer type, which is the only thing that they do change with the data, as far as I can tell.

    > It would be much more interesting to see a language which experiments with what is fundamentally representable

    DER (and TER, which is a text format I made up to be compiled into DER (although TER is not really intended to be used directly in application programs); so TER does have comments, hexadecimal numeric literals, and other syntax features) does support many more data types, such as arbitrarily long integers, ASCII, ISO 2022, etc. My own extension to the format adds some additional types, such as a key/value list type and a TRON string type; the key/value list type is the only nonstandard ASN.1 type needed (together with a few of the standard ASN.1 types: sequence, real, UTF-8 string, null, boolean) to represent the same data as JSON does.

    > for example like how the Nix language supports functional programming and has functions as a first-class data type.

    For some applications this is useful and good but in others it is undesirable, I think.

  • sedatk a day ago

    > AI-generated arguments in response to all questions

    There are currently two items in the FAQ. While the first one seems to be formatted with AI (I don't know if the arguments are AI generated though, how do you tell?), the other certainly doesn't look AI-generated: https://github.com/maml-dev/maml/issues/3#issuecomment-33559...

    • poly2it a day ago

      The person who opened the issue specifically complained about getting an AI-generated reply before closing it. If you view the edit history for the message, or the language author's second response, you will see that the reply was edited afterhand to not be transparently sloppy.

      • ricardobeat 14 hours ago

        After the edit in the second question, it’s clear the author’s command of English is not that great, so they used AI as grammar correction.

        Unfortunately this is becoming more and more common, even here in HN; I don’t think non-english speakers doing this realize how obviously ChatGPT-ish the results are, and how much of its own “thoughts” it injects into the text.

Pinus 16 hours ago

My IT department blocks me from seeing this page. I suppose they wish to preserve my sanity, by shielding me from yet another config-language spec. =)

  • imron 15 hours ago

    JSON, with comments, multiline stings, optional commas and unquoted keys.

    • pegasus 14 hours ago

      Optional unquoted keys. Basically, a superset of JSON, fixing the most annoying warts of the format - most annoying, because most gratuitous, in that it would have cost nothing to have those obvious features and yet would have greatly increased usability. I like it a lot, it's just a very pragmatic approach to improving JSON compared to creating a brand-new language like YAML and a slew of other contenders seemingly vainly try. I wish the name and presentation would better reflect this. Something like FJSON (Fixed JSON) or JSONF (JSON Fixed) or some other name which makes it clear this is an extended JSON, not yet another language, to avoid the confusion which already has engulfed the comment section here.

gzh18 14 hours ago

But why, - jsonnet https://jsonnet.org/ resolves the annoying syntactic strictness of json + does some other interesting things.

  • praptak 13 hours ago

    Yes! Everyone thinking of a new config language should look at jsonnet first. And there are much bigger reasons (than just syntactic stuff) hidden in the "interesting things" part.

    The "interesting things" include being (or at least aiming to be) the solution to the following problem:

    "I need to configure ~200 tasks for each of 7 services in 5 datacenters where some stuff is dependent on DC, some on (service+DC) combination and also some machines where the jobs run need per-machine config overrides.

    I want to avoid manual copy-paste-modify and I want to avoid the hell of generating configs from a Turing-complete language"

sedatk a day ago

I love this. It reminds me of PowerShell configuration files: https://ssg.dev/powershell-accidentally-created-a-nice-confi...

This is basically JSON for humans. YAML is harder to use due to significant indentation (easy to mess up in editors, and hard to identify the context), and TOML isn't great for hierarchical data.

It addresses all my complaints about JSON:

> Comments

> Multiline strings

> Optional commas

> Optional key quotes

I wish it was a superset of JSON (so, a valid JSON would also be valid MAML), but it doesn't seem to be the case.

EDIT: As I understand, HCL is very similar in terms of goals, and has been around for a while. It looks great too. https://github.com/hashicorp/hcl/

  • snarfy 21 hours ago

    > I wish it was a superset of JSON (so, a valid JSON would also be valid MAML), but it doesn't seem to be the case.

    What valid JSON would be invalid MAML?

    • sedatk 12 hours ago

      For example, Unicode escaping seems incompatible. JSON’s “\u1234” format isn’t in the spec. There is a different syntax: “\u{123456}”

    • qrios 16 hours ago

      You are right. And the initial question is also meaningless as there is no difference between these two:

        {"project": "MAML"}
      
        {project: "MAML"}
      
      A parser is not able to decide if '"project"' equals 'project'.
      • whizzter 15 hours ago

        and the latter is not valid JSON

  • CBLT a day ago

    > TOML isn't great for hierarchical data.

    My experience is different: TOML isn't obvious if there's an array that's far from the leaf data. Maybe that's what you experienced with the hierarchical data?

    In my usage of it (where we use base and override config layers), arrays are the enemy. Overrides can only delete the array, not merge data in. TOML merely makes this code smell more smelly, so it's perfect for us.

    • sedatk a day ago

      I meant that the constant repetition of the hierarchical information could be cumbersome.

aljgz 13 hours ago

I see the negativity in some comments, but I have to say: just because we have a format that works we don't have to suffer it's slightly annoying problems for eternity.

This is a format that's very well defined, good decisions where to be flexible (quoted keys) and when to be strict (no leading zeroes, no leading plus sign, error when integer parsing can't be precise, defining all corner cases in strings).

For almost all of these, I remember cases when something went wrong (or was just annoying) in another format.

I admire efforts to fix things.

  • p0nce 10 hours ago

    Yes but. How would you express NaN or infinities or even precise floating-point (the reason hex float exist) in this format? That breaks interchange if you cannot save/restore floating-point as in the save.

  • throwaway150 13 hours ago

    I admire the effort to fix things too. But this is exactly how we end up with 15 competing standards (https://xkcd.com/927/), each a little different, and no one can tell which library or package can parse which format any more.

    I'm also not convinced that the small usability benefits of these alternative formats outweigh the burden of stumbling across them in different projects and then having to remember which parser works with which format.

    If I had to choose between living with one canonical, well-established format like JSON and a jumble of 15 incompatible formats, I’d choose the single, well-established one every time.

qrios 16 hours ago

Hmm, that's just "another link from someone who uses HN as a bookmark service". User started this self-service at the end of last year. With now 60+ submissions in the last two weeks. We can expect more interesting topics.

  • sevg 15 hours ago

    Site guidelines don’t seem to forbid this, but might be against the spirit of the guidelines? If so, could be worth a report to hn@ycombinator.com?

  • glitchcrab 16 hours ago

    Yep, zero interactions, just dumpling links.

killerstorm a day ago

I believe every ambitious programmer makes a configuration language at some point, but most either keep it to themselves.

When I was a teen I made something called Nabla:

  * XML-like syntax

  * Schema language
  * Compact binary representation
  * Trivial parser for binary representation 
  * Optionally, simple dynamic programming language on top

Initially made it for my 3d engine scene serialization format, but then used everywhere some non-trivial data format was needed (e.g. anything with nested data structures).
stared 12 hours ago

> Optional commas

> Optional key quotes

For me, it is an anti-feature.

Each time something is optional, by definition, there is more than one way to do it. I much more prefer opinionated way, so it is consistent.

It is precisely why I like linters, so instead of a few ways to go, I pick one and stick to it. More focus on the content and less on things that do not matter.

nfrmatk a day ago

I wonder if the author has heard of KDL: https://kdl.dev/

  • keyle 17 hours ago

    Really it's quite logical that the next iteration of these configuration languages be this style, remove superfluous and annoying quotes, handle comments and maybe allow trailing commas.

    If anything it's a spec that writes itself.

  • Bolwin 21 hours ago

    Only thing I don't like in kdl is the redundancy between arguments, properties and child nodes

  • imiric a day ago

    I was going to mention KDL as well.

    I've been using it for niri recently, and it's quite nice.

reactordev a day ago

I just can’t anymore with this stuff. TOML, JSON, YAML, JSONC, HJSON, MAML…

I’ll just stick to environment vars or something code

  • quchen a day ago

    I love that in the end, everything still comes down to using bash (and env vars), because for all its footguns and strings, it's still the most reasonable choice when giving up on the zoo of newer formats. I expect it to outlive us all, like our unergonomic keyboards, and having to deal with null values.

    • reactordev a day ago

      I assume it will. Bash scripting has been around for a long time and isn’t going away anytime soon. It’s already outlived some folks.

moogly a day ago

So a worse version of HJSON[1]. I'm good.

[1]: https://hjson.github.io/

  • ctenb 15 hours ago

    Yes, it feels neglectful that the author has not mentioned this prior art, especially since they are near identical

  • keyle 17 hours ago

    Not sure that is "worse", it looked identical to me.

    • moogly 15 hours ago

      HJSON also has optional quoteless strings (with some caveats) and optional root braces.

AdieuToLogic 17 hours ago

This looks like an anemic HOCON[0] clone.

0 - https://github.com/lightbend/config/blob/main/HOCON.md

  • syhol 5 hours ago

    HOCON is so overlooked but an almost ideal config language in my eyes. The only element I'm not 100% on is unquoted string values (the norway problem but not quite as bad since there isn't no/yes booleans), but even thats not too bad.

rdsubhas 10 hours ago

Problem: Trailing commas, key-quoting-rules, etc are a problem when generating JSON from scripts/templates - which is a key practical necessity for a Configuration language. Of course, you may already disagree here and say you don't have this problem, but it's a sufficient problem for everyone that there are many attempts to solve it. If you don't have this problem, feel free to ignore.

MAML: Takes JSON, makes trailing commas & key-quoting optional. One may not like it, but it does indeed solve the scripting problem, and it's a nice and novel idea. Thereby it's a "Superset" of JSON. All JSON is valid MAML, but all MAML is not valid JSON.

JSONNet: Also a good attempt, directly solving the scripting problem with built-in functions and so on. But can be overwhelming.

Other approach: A strict "Subset" of JSON. Every value MUST end with a comma, whether it's first or last. Every key MUST be quoted. Comments MUST be a valid JSON key-value called ".comment" that will be ignored at parsing but otherwise part of the JSON. JSON5 seems to be more suitable for this.

nikeee a day ago

> Optional key quotes

Why are they optional? Why not just make them mandatory? So I don't need to guess which chars need quotes.

Edit: What most languages also lack: semantics on de-serialization. In the best case, I want to preserve formatting and stuff when the config is changed/re-committed programmatically.

  • sixo a day ago

    Because it's supposed to be pleasant for humans and quoting keys is the least pleasant part of jsom config files.

    • oneeyedpigeon 13 hours ago

      What's so unpleasant about quoting a key?

      • sixo 4 hours ago

        Two extra characters per rep, each involving a "shift", and it's furthermore an eyesore to read

        How is it that the comments on this post seem to consist 100% of people who think JSON is the perfect language and that any deviation from it is an unnecessary complexity? Use JSON for configuration for literally 5 minutes and you will get annoyed at quoting keys, lacking comments, escaping long strings, and juggling commas. MAML is almost exactly what I'd come up with (although I wouldn't have made commas optional, that feels weird.)

        • oneeyedpigeon 4 hours ago

          > Two extra characters per rep, each involving a "shift"

          You'd expect text editors to do this automatically; I'll admit, I don't think mine does.

          > and it's furthermore an eyesore to read

          We'll have to disagree on that one because I think it looks a lot nicer. I always preferred quoted attributes in html too.

          > How is it that the comments on this post seem to consist 100% of people who think JSON is the perfect language

          I'm sure you intended that as hyperbole. JSON isn't perfect, but it's got a lot going for it, not least ubiquity.

          > Use JSON for configuration for literally 5 minutes and you will get annoyed at quoting keys, lacking comments, escaping long strings, and juggling commas.

          I've used JSON for configuration loads and haven't faced these issues. I'm not denying your experience, I just want to understand it.

pegasus 14 hours ago

I like it a lot: a superset of JSON, fixing the most annoying warts of the format - most annoying, because most gratuitous, in that it would have cost nothing to have those obvious features and yet would have greatly increased usability. It's just a very pragmatic approach to improving JSON compared to creating a brand-new language like YAML and a slew of other contenders seemingly vainly try. I wish the name and presentation would better reflect this. Something like FJSON (Fixed JSON) or JSONF (JSON Fixed) or some other name which makes it clear this is an extended JSON, not yet another language, to avoid the confusion which already has engulfed the comment section here.

rglover a day ago

Great name and a reasonable solution to the problems of JSON (can't speak for the implementation but the DX value of this is huge).

LauraMedia 14 hours ago

If I actually require comments, dangling commas etc. I'm always using JSON5 instead [1].

[1] https://json5.org/

  • oneeyedpigeon 13 hours ago

    I've never had a need for comments that `{ "comment": "Hello, world" }` couldn't solve. Dangling commas would be nice, but between my auto-formatting editor and `JSON.stringify()`, they're never an issue either.

    • LauraMedia 6 hours ago

      It certainly is more for the usecases where you don't use JSON in the intended way (communication between two machines) but as a config, explaining possible values or at least give a URL for a documentation of the config file format.

    • moogly 7 hours ago

      Doesn't work with strict schema validators that disallow unknown keys. I'm looking at you, tauri.conf.json.

      • oneeyedpigeon 6 hours ago

        Interesting; I haven't come across this before. I wonder why they don't just ignore unrecognised keys. Or, at least, give a warning, but continue to work otherwise.

zzo38computer a day ago

They fix some of the problems with syntax of JSON but do not fix most of the problems with the data model; the only thing they do fix is that now there is a integer type. It still has the other problems, e.g. it still uses Unicode and still requires keys to be strings. For a configuration language, it can also be useful to have a application-specific data.

librasteve 15 hours ago

The Raku language (https://raku.org) nails multiline strings and avoids the triple quotes issues mentioned in the OP.

  say q:to/END/;
    Here is
    some multi line
        string
    END
https://docs.raku.org/syntax/heredocs%20%3Ato
  • afiori 14 hours ago

    The best multiline strings are those where you can have proper indentations without having to guess how indentation is handled. bonus points for making nesting easy and making copy-pasting work without breaking indentation.

    To my knowledge only Zig's multiline strings work this way

        const hello_world_in_c =
            \\#include <stdio.h>
            \\
            \\int main(int argc, char **argv) {
            \\    printf("hello world\n");
            \\    return 0;
            \\}
        ;
    • moogly 7 hours ago

      Probably the 2nd most baffling thing in Zig for me.

      C#:

        var helloWorldInC =
            """
            #include <stdio.h>
        
            int main(int argc, char **argv) {
                printf("hello world\n");
                return 0;
            }
            """;
    • pavel_lishin 7 hours ago

      I clicked on that FAQ link, because I wasn't familiar with zig-style multilines, and my initial reaction was "ew, ugly" - but reading the justifications, I think it rather won me over with how it addresses the indentation issue alone.

    • 1718627440 12 hours ago

      In C:

          char string[] = 
              "multi\n"
              "line\n"
              "string";
      
      Granted, this is not a real multiline string, but you also have characters in your Zig example that are not part of string content (\\).
    • librasteve 13 hours ago

      okaay, I get that you want the indentation to work (ironically this is more important when you are multilining a Python code example), but having to manage all the \\ is a pain in the butt

      • oneeyedpigeon 13 hours ago

        > ironically this is more important when you are multilining a Python code example

        And neither seems to be a great use case for configuration. A markup language, sure, but I'm not sure I see a significant need for multiline strings (even in general) in a config file.

        • librasteve 12 hours ago

          fair point … although I can see a use case for eg multline multi languages contractual boilerplate that i don’t want in my main code

  • IshKebab 15 hours ago

    That's probably the worst multiline string option if you ask me. Looks like they copied Bash.

    • librasteve 13 hours ago

      Yes, the evolution of Raku multilines is from shell (heredoc) > perl > raku, and a LOT of experience went into the design. Not sure I understand why that's a bad thing?

      Some benefits of the Raku solution are:

        - multiline is just a superset of the standard quoting method (with the "to:/CLOSER/" adverb) 
        - indent level is set by the left edge of the closer, in the example 'END' ... so you can consistently indent / unindent your source and do not have to crowd all your heredoc to the left margin
        - you can pick any delimiter or closer to avoid conflict with the text content
        - there's a large selection of quoting adverbs - q (like single quotes), qq (like double quotes), qw (quote word), qx (shell quoting), etc.
      
      This usually means that any text can be cut and pasted as is into the multiline and you can adjust the adverbs to match the original quoting pattern.

      Even with perverse patterns (which you cannot guarantee against in variable text), there is a way to gracefully handle:

        q«say '''hi"""»       #say '''hi"""
      
      https://docs.raku.org/language/quoting
procaryote 15 hours ago

Looks infinitely much nicer than YAML, with explicit blocks and such.

That's not a high bar of course, even the apache httpd pseudo xml is nicer than yaml.

modinfo 12 hours ago

Thanks for reminding me that I always wanted to create an alternative to JSON/YAML, so after your post, I got down to work, and this is what came out: https://vzparse.xyz/

jjice 14 hours ago

While JSON kind of sucks as a configuration language, it's already there and I don't think it sucks enough for me to care to use anything else. Not having trailing commas or comments is annoying, but unless you're the config file for a web server or something, I'm cool with JSON.

mirekrusin 14 hours ago

If I could change the world I'd remove all those formats and keep cuelang only.

  • flanked-evergl 14 hours ago

    Cuelang is so awesome that nobody uses it.

    • mirekrusin 13 hours ago

      I think most people simply don't know it exists but it is used [0] and has high use satisfaction as far as I can see.

      [0] https://github.com/search?q=lang%3Acue&type=repositories

      • flanked-evergl 9 hours ago

        Top result: examples repo.

        • mirekrusin 2 hours ago

          It's unusual to have repository that is close to 100% cuelang, as a config language you'll have very little of it in repository but github doesn't have a good way of finding those.

Shorel 12 hours ago

An important detail not covered here, is dates.

Json doesn't support dates, so we use strings in whatever format.

A good new configuration language should have dates. IMO.

So far it seems like Json with comments =)

sambeau 11 hours ago

I like it, but it's too late.

It could also do with a datetime datatype, the one thing (apart from comments) that I constantly feel the need for in JSON.

  • Someone 11 hours ago

    I think json would be better off if it supported IEEE floats, too. Sometimes, you really have to serialize a NaN or infinity.

quintu5 21 hours ago

When this was first posted a couple of weeks ago by the spec's author, I took it as an opportunity to see how quickly I could spin up an IntelliJ language plugin since the last time I worked on a language plugin was pre-GPT (Klotho Annotations - basically TOML inside of @annotations inside comments or string literals in a variety of host languages). Back then, it took a week for me to figure out the ins and outs of basic syntax highlighting with GrammarKit.

This time around, I worked with Claude Code and we basically filled in each other's knowledge gaps to finish implementing every feature I was looking for in about 3 days of work:

Day 1:

- Plugin initialization

- Syntax highlighting

- JSON Schema integration

- Error inspections

Day 2:

- Code formatter (the code style settings page probably took longer to get right than the formatter)

- Test suite for existing features

Day 3:

- Intentions, QuickFix actions, etc. to help quickly reformat or fix issues detected in the file

- More graceful parsing error recovery and reporting

- Contextual completions (e.g., relevant keys/values from a JSON schema, existing keys from elsewhere in the file, etc.)

- Color picker gutter icon from string values that represent colors (in various formats)

I'm sure there are a few other features that I'm forgetting, but at the end of the day, roughly 80-85% of the code was generated from the command line by conversing with Claude Code (Sonnet 4.5) to plan, implement, test, and revise individual features.

For IntelliJ plugins, the SDK docs tend to cover the bare minimum to get common functionality working, and beyond that, the way to learn is by reading the source of existing OSS plugins. Claude was shockingly good at finding extension points for features I'd never implemented before and figuring out how to wire them up (though not always 100% successfully). It turns out that Claude can be quite an accelerator for building plugins for the JetBrains ecosystem.

Bottom line, if you're sitting on an idea for a plugin because you thought it might to take too long to bootstrap and figure out all the IDE integration parts, there's never been a better time to just go for it.

EDIT: Repo link for anyone interested: https://github.com/DavidSeptimus/maml-intellij-plugin

rvitorper a day ago

I like it. It solves a few issues I have with JSON. The quotes on the keys, the commas, etc. nice work. Keep them coming

pkphilip 11 hours ago

Why does this look pretty much like JSON with the only exception being no commas between elements in a list / array?

  • slightwinder 11 hours ago

    Because it IS json with some half-assed enhancements. I say half-assed, because it only seems to work one-way. Parsing this is OK, probably not the most efficient json-parser around, but writing back and preserving the enhancements seems not supported, at least not in the python-implementation.

didip a day ago

This is super controversial for HN but I really really like YAML. The best “human readable” config language.

  • typpilol a day ago

    I can't decide between yaml and json5/json

    It seems like we will be forced to use both forever though

  • andrepd a day ago

    It's crazy complicated and full of uneccessary cruft. Hence stuff like strictyaml

  • imiric a day ago

    I wouldn't say it's the most readable. Values can be ambiguous, YAML anchors are powerful but complicated, and using indentation to define structure means that you're never quite sure to which node something belongs to. And good luck hunting down weird errors if you mistakenly screw up the indentation.

    YAML is also often abused as a DSL and for very large documents (Ansible, k8s, GH Actions, etc.), which makes it a pain to work with.

    It's not so much that liking all of this is controversial. It's just a bad opinion. :p

vim-guru 15 hours ago

I've been using EDN for years without ever wishing for something different. It's unfortunate that it hasn’t caught on outside the Clojure world.

singularity2001 15 hours ago

json without comments is one of the worst cancers in programming land. however replacing json5 // with # is NOT it!

  • kitd 15 hours ago

    Why?

    • IshKebab 15 hours ago

      Because // is already pretty well established as the comment format in JSONC and JSON5? Why do it differently?

      It is fairly minor though I would say, and at least it makes it clear that block comments aren't supported (which is good).

throwaway81523 a day ago

Oh yay, just what we need, ANOTHER one of these. Did the YA in YAML not already give a clue? Now there are 15 competing standards. Please make it stop. S-expressions were all that we wanted in the first place.

  • bazoom42 15 hours ago

    According to wikipedia “There are many variants of the S-expression format, supporting a variety of different syntaxes for different datatypes.”

    Using parentheses instead of curly braces is fine by me, but it doesnt seem to solve the issue of syntax bikeshedding.

    The fundamental problem is “configuration” is a huge area, from simple key-value lists to complex declarative languages. And you want the format to be both easy to read and edit for humans and simple to parse and process for computers. No single format will be perfect for all use cases, but perhaps a compromise can be found which is good enough for most cases.

  • echelon a day ago

    Yaml has terrible footguns. I'd rather we keep experimenting and find a new optimum.

    Toml fixes some issues with shallow Yaml, but sucks at deeply nested data.

    Maml looks nice at cursory glance. It seems to do nesting, numerics, comments, and strings right.

    We're really close to having a great format. I'd like to see more attempts before accepting what we have as permanent.

    • AtlasBarfed a day ago

      You can find footgunless parsers

      • orev 20 hours ago

        Very often (probably the vast majority) the people writing the YAML aren’t the ones choosing which parser is being used by the software consuming it.

        • AtlasBarfed 15 hours ago

          If you are writing a software system that needs potentially human edited config files, yaml is the best for human edited files if you, software architect, use a footgun less parser.

          Yaml is popular like python because indentation as a scope depth indicator is far more visually intuitive for low skill programmers than braces (c,json) or counting/matching parents in lisp or begin end tags in xml.

          Sorry your kubernetes ecosystem didn't do that. Why not get them to change parsers? A hell of a lot easier than changing k8s to toml or maml.

          Because ultimately that's what the frustration of yaml comes from, right? Kubernetes config?

  • threatofrain a day ago

    > S-expressions were all that we wanted in the first place.

    There are dozens of us!

maelito 14 hours ago

In most cases typescript will be better than this.

In some cases where keeping simple is a feature, it's good to know !

ghthor a day ago

Practically HCL, switch colons for equals in the key/value map

  • sedatk a day ago

    I didn't know about HCL. It looks great too.

  • antonymoose a day ago

    Working with Terraform, and needing to handle the complexity of our per-client deployments at work, I ended up creating a bash layer that takes N number of JSON files, performs a deep merge, and spits out a .tfvars file.

    As you’ve said, all I did was fork a JSON.stringify function and swap colon for equals.

    Anyone have a better solution they’ve worked with?

    Edit: Why the downvotes? Terraform is using HCL? Are we talking a different HCL here?

bradhe 16 hours ago

Configuration is a spectrum and this is close to JSON.

sorrythanks a day ago

question: why not make all strings multi-line, and drop a syntax/concept?

xlii 14 hours ago

Disclaimer: I'm a Cuelang[0] fanboy

Do yourself a favor and use Cuelang instead.

Word of warning though: documentation isn't the best and takes some time to get, but once it clicks...

[0]: https://cuelang.org

RangerScience a day ago

Am I missing something or is this literally just Ruby? Like - it doesn’t list Ruby as a supported language, but, it also looks like fully executable Ruby code?

(To be fair, I’m in favor of that)

Edit: Oh, no commas.

  • pilaf a day ago

    Also Ruby doesn't have triple quotation marks (""") string literals.

ndsipa_pomu 10 hours ago

I thought this was going to be some joke about Middle Aged Men in Lycra - often referred to as MAMLs

IshKebab 14 hours ago

This looks pretty good but also JSON5 is perfectly fine, it just needs more support from libraries and IDEs. Adding another format is just going to make that problem worse. And nobody is going to use this format either because it also has poor support from libraries and IDEs.

novalumina84 14 hours ago

Just what we needed, another JSON with comments! Can't wait for YAML (Yet Another MAML) next week.

ajsnigrutin a day ago

Why?

https://xkcd.com/927/ ?

Or is there any reason why to choose this over the others?

  • ocdtrekkie a day ago

    It's really risky to launch something by telling us three other more popular perfectly-serviceable alternatives in the headline.