dasel icon indicating copy to clipboard operation
dasel copied to clipboard

Compile builds with tinygo for reasonable system file sizes

Open coolaj86 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

It's hard to get Linux users / sysadmins on board with a "text editing" tool that weighs in a a dozen+ megabytes.

Describe the solution you'd like

Go will yield reasonable file sizes when compiled with tinygo:

  • https://tinygo.org/
  • https://webinstall.dev/tinygo/

(caveat: reflection isn't supported, so the default json package can't be used)

Describe alternatives you've considered

Wrapping git config in a Shell script. An ini parser written in Zig.

Additional context

It's not a thing that many web or cloud guys get, but in the sysadmin community, exorbitantly large binaries are a red flag. CLI text editors are expected to be kilobytes in size.

coolaj86 avatar May 03 '24 20:05 coolaj86

(caveat: reflection isn't supported, so the default json package can't be used)

This caveat causes quite the problem - A large majority of code in dasel uses reflection

TomWright avatar May 16 '24 20:05 TomWright