rei2hu / swayblocks

status bar manager for i3 and sway written in elixir
17 stars 1 forks source link

Use a streaming json parser #2

Open rei2hu opened 6 years ago

rei2hu commented 6 years ago

Various changes to swaybar keep breaking the program because I keep using workarounds like this.

A possible library to use is Jaxon except it doesn't seem to handle encoding. I could just write my own thing as it seems straightforward enough.

Edit: I wrote a parser in C and there seems to be a few problems with using escript and nifs together. Really the more that I think about it what I'm doing currently should be acceptable enough.