Discussed with @mpilquist today in Discord. The auto-generated Scalably Typed facade has served well, especially during the development of fs2.io.js. However, now that things are stable, the advantages of auto-generation are possibly out-weighed by its downsides:
- 700+ auto-generated files, of which we use only a small fraction.
- A Scala.js bundler dependency, which creates 8000 lines of lockfiles and downstream headaches.
- Maintenance burden:
- Various unsafe casts, due to deficiencies of the underlying Typescript definitions.
- Not really important, but lack of flexibility to support features like in-memory filesystems etc.
By crafting a minimal, hand-written facade, we can address all of the above and overall reduce the impact of the fs2.io.js cross.
If someone has an appetite to work on this, I'll be thrilled :) otherwise, on my yak-list.
Discussed with @mpilquist today in Discord. The auto-generated Scalably Typed facade has served well, especially during the development of fs2.io.js. However, now that things are stable, the advantages of auto-generation are possibly out-weighed by its downsides:
fs2-nodemodule sometimes fails #2489By crafting a minimal, hand-written facade, we can address all of the above and overall reduce the impact of the fs2.io.js cross.
If someone has an appetite to work on this, I'll be thrilled :) otherwise, on my yak-list.