1. 22 Aug, 2021 1 commit
  2. 16 Aug, 2021 1 commit
  3. 29 Jul, 2021 1 commit
  4. 21 Jul, 2021 1 commit
  5. 23 Mar, 2021 1 commit
  6. 25 Dec, 2020 1 commit
    • Daniel Martí's avatar
      all: rename schema.Kind to TypeKind, ipld.ReprKind to Kind · 2d7d25c4
      Daniel Martí authored
      As discussed on the issue thread, ipld.Kind and schema.TypeKind are more
      intuitive, closer to the spec wording, and just generally better in the
      long run.
      
      The changes are almost entirely automated via the commands below. Very
      minor changes were needed in some of the generators, and then gofmt.
      
      	sed -ri 's/\<Kind\(\)/TypeKind()/g' **/*.go
      	git checkout fluent # since it uses reflect.Value.Kind
      
      	sed -ri 's/\<Kind_/TypeKind_/g' **/*.go
      	sed -i 's/\<Kind\>/TypeKind/g' **/*.go
      	sed -i 's/ReprKind/Kind/g' **/*.go
      
      Plus manually undoing a few renames, as per Eric's review.
      
      Fixes #94.
      2d7d25c4
  7. 26 Jun, 2020 1 commit
  8. 13 May, 2020 1 commit
    • Eric Myhre's avatar
      First pass of very basic coloration; and demo. · d99e82fa
      Eric Myhre authored
      Key coloration is easy because we already have key emission in one place,
      and we already have size computation for alignment separated from emission.
      Value coloration will be a little more involved.
      d99e82fa
  9. 10 May, 2020 3 commits
    • Eric Myhre's avatar
      JST codec now supports absent columns. · 1e80a058
      Eric Myhre authored
      Alignment just proceeds around them, leaving appropriate space based on
      what other rows needed in order to align with each other.
      
      If a column is absent at the end of a row, the whole row wraps up fast.
      1e80a058
    • Eric Myhre's avatar
      Trailing separators and other fiddly bits of JST. · 7ce9660a
      Eric Myhre authored
      The first two example fixtures of what I wanted to achieve pass now :3
      That's exciting.
      7ce9660a
    • Eric Myhre's avatar
      Introducing JST -- json tables. · e9133615
      Eric Myhre authored
      See the package docs in 'jst.go' for introduction to what and why;
      tldr: I want pretty and I want JSON and I want them at the same time.
      
      I'm putting this in the codec package tree because it fits there moreso
      than anywhere else, but it's probably not going to be assigned a
      multicodec magic number or anything like that; it's really just JSON.
      
      This code doesn't *quite* pass its own fixture tests yet, but nearly.
      I thought this would be a nice checkpoint because the only thing left
      is dealing with the fiddly trailing-comma-or-not bits.
      
      This first pass also completely ignores character encoding issues,
      the correct counting of graphemes, and so forth; those are future work.
      Most configurability is also speculative for 'first draft' reasons.
      All good things in time.
      
      This is something of a little hobby sidequest.  It's not particularly
      related to the hashing-and-content-addressing quest usually focused.
      Accordingly, as you may be able to notice from some of the comments
      in the package documentation block, I did initially try to write this
      over in the refmt repo instead.  However, I got about 20 seconds in on
      that effort before realizing that our Node interface here would be a
      wildly better interface to build this with.  Later, I also started
      realizing Selectors would be Quite Good for other forms of
      configuration that I want to add to this system... so, it's rapidly
      turning into a nice little exercise for other core IPLD primitives!
      Yay!  Copacetic.
      e9133615