Skip to content

There is snakeyaml-engine 2.x - (new snakeyaml version)  #25

Closed

Description

@ieugen

Hi,

To whom it may concern, there is snakeyaml-engine - which is the new/refactored version of the library https://bitbucket.org/asomov/snakeyaml-engine/src/master/ .

There are some changes here and a wiki with documentation https://bitbucket.org/asomov/snakeyaml-engine/wiki/Changes .

Load api for yaml in version 2.3 https://javadoc.io/doc/org.snakeyaml/snakeyaml-engine/latest/org/snakeyaml/engine/v2/api/Load.html

Regards,

Activity

  1. marcomorain commented on Nov 2, 2021

    @marcomorain
    Collaborator

    Hi @ieugen, are you suggesting that we change clj-yaml to build on top of SnakeYAML 2.x?

    Are there any user-visible benefits from that upgrade?

    FWIW, in recent projects at CircleCI, I've taken to using SnakeYAML directly, rather than clj-yaml. I don't expect the folks at CircleCI to put in any major investment in this library at present.

  2. The-Alchemist commented on Mar 2, 2022

    @The-Alchemist

    If I may chime in, as an outsider:

    So I'm not exactly sure which is the "new" library, and what the difference between the APIs is, and what improvements to switching.

    There is a Google Group (https://groups.google.com/g/snakeyaml-core), is someone is interested in venturing deeper.

    Cheers

  3. wongjoel commented on Apr 26, 2022

    @wongjoel

    As far as I understand, the biggest difference is that snakeyaml supports YAML 1.1, whereas snakeyaml-engine supports YAML 1.2.

    My usecases of YAML all involve very simple YAML files, so I can't bring to mind a clojure use-case where this would matter.

  4. The-Alchemist commented on Apr 26, 2022

    @The-Alchemist

    As far as I understand, the biggest difference is that snakeyaml supports YAML 1.1, whereas snakeyaml-engine supports YAML 1.2.

    Thank you, @wongjoel . I agree that this is the biggest difference between snakeyaml and snakeyaml-engine. Looks like YAML 1.2 is designed to move it closer to a superset of JSON (i.e., explicitly support JSON).

    There's also some internal changes to make smaller modules it looks like. Some references:

    Migration to snakeyaml-engine would be a nice addition, but probably a low priority. We can throw the YAML 1.2 files from the spec at the unit tests and see what happens. If I have the time, I'll take a stab at it. ;)

  5. borkdude commented on Apr 26, 2022

    @borkdude
    Collaborator

    Doesn't snakeyaml use snakeyaml-engine internally?

  6. The-Alchemist commented on Apr 26, 2022

    @The-Alchemist

    Doesn't snakeyaml use snakeyaml-engine internally?

    I don't think so.

    SnakeYAML is a YAML 1.1 processor for the Java Virtual Machine version 7. For YAML 1.2 (which is a superset of JSON) you may have a look at SnakeYAML Engine

  7. borkdude commented on Sep 14, 2022

    @borkdude
    Collaborator

    Trying snakeyaml engine as the "backend" of this lib would likely solve #35

  8. locked and limited conversation to collaborators on Sep 24, 2022
  9. converted this issue into a discussion #52 on Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions