Hacker Newsnew | past | comments | ask | show | jobs | submit | fcoury's commentslogin

A while ago I worked on a similar idea, it was back when I was learning Rust so not super proud of the code, but I love the name of the tool: https://github.com/gistia/joindoe

Just ported it to rust and plan on maintaining it if you want to add it to your original comment.

More details on a sibling comment:

https://github.com/fcoury/fracturedjson-rs https://crates.io/crates/fracturedjson

Comment with details: https://news.ycombinator.com/item?id=46468641


I ported it to Rust with a cli tool that allows you to format json in this format:

https://github.com/fcoury/fracturedjson-rs

https://crates.io/crates/fracturedjson

And install with:

cargo install fracturedjson

    > $ fjson --help
    Rust port of FracturedJsonJs: human-friendly JSON formatter with optional comment support.

    Usage: fjson [OPTIONS] [FILE]...

    Arguments:
      [FILE]...  Input file(s). If not specified, reads from stdin

    Options:
      -o, --output <FILE>
              Output file. If not specified, writes to stdout
      -c, --compact
              Minify output (remove all whitespace)
      -w, --max-width <MAX_WIDTH>
              Maximum line length before wrapping [default: 120]
      -i, --indent <INDENT>
              Number of spaces per indentation level [default: 4]
      -t, --tabs
              Use tabs instead of spaces for indentation
          --eol <EOL>
              Line ending style [default: lf] [possible values: lf, crlf]
          --comments <COMMENTS>
              How to handle comments in input [default: error] [possible values: error, remove, preserve]
          --trailing-commas
              Allow trailing commas in input
          --preserve-blanks
              Preserve blank lines from input
          --number-align <NUMBER_ALIGN>
              Number alignment style in arrays [default: decimal] [possible values: left, right, decimal, normalize]
          --max-inline-complexity <MAX_INLINE_COMPLEXITY>
              Maximum nesting depth for inline formatting (-1 to disable) [default: 2]
          --max-table-complexity <MAX_TABLE_COMPLEXITY>
              Maximum nesting depth for table formatting (-1 to disable) [default: 2]
          --simple-bracket-padding
              Add padding inside brackets for simple arrays/objects
          --no-nested-bracket-padding
              Disable padding inside brackets for nested arrays/objects
      -h, --help
              Print help
      -V, --version
              Print version

Ports are a derivative work; you should preserve the original author's copyright attribution.

I really liked the idea, so I am porting it to Rust https://github.com/fcoury/fracturedjson-rs

Just published a rust wrapper if anyone plan on embedding it like I do:

https://github.com/fcoury/mquickjs-rs


I have been slowly progressing on writing a Rust like language that compiles to JavaScript for a few years now. With the rise of AI and it becoming better recently with Opus 4.5, specially with Rust, I've been trying to have a speedrun version of it.

Think of it as TypeScript but with full algebraic types and other commodities from Rust:

https://husk-lang.org


Very interesting. Is it or will it be open source? Any links?


dsn parser is open source, https://github.com/dilawar/dsn-parser (WIP). Some part of PCB routing will be open-source (MIT).


I thought Apple would get around and improve their memory prices with time, I guess it's the opposite: all manufacturers are now becoming Apple given these raises.

I wonder what Apple's next move will be :-)

EDIT: Spelling


They are not becoming Apple. They are updating the prices of their components to the underlying market costs. Framework lets you replace the memory modules.

Apple is a fashionable brand that commands a price premium. They can charge much higher prices and will charge the amount that will maximize their profits.

BMW charges to enable heated seats. They know their customers have money and will pay. Apple is the same.

Framework has to competitively price. They're being forced to update pricing to reflect the reality of supply and demand.

There's also this:

> Due to [Framework's] memory pricing said to be more competitive below market rates, they also adjusted their return policy to prevent scalpers from purchasing DIY Edition laptops with memory while then returning just the laptops. The DDR5 must be returned now with DIY laptop order returns.


Have you seen laptop prices these days? Macbooks aren’t even sold at a premium anymore.


And on the flip side Framework laptops have generally been sold at a premium.


I am wondering myself; this M1 is getting long in the tooth, maybe now is the time to upgrade.


Shameless plug: I did a series a couple years back, before AI was this huge, about writing a Vim-like editor in Rust, in case you want to play with it in the future:

https://www.youtube.com/playlist?list=PL9KpW-9Hl_het1V3_dLhG...


Wow, that made me look:

> Joined 17 years ago


Before bitcoin! Crazy


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: