tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.5k stars 423 forks source link

Consider adding webassembly bindings #340

Open isc30 opened 6 years ago

isc30 commented 6 years ago

I just wrote a small experiment:

https://github.com/isc30/xlnt-wasm

Result: it works really well, and adding emscripten bindings to the library itself would help opening a lot of doors (npm package?)

isc30 commented 6 years ago

Update: I'm writing a blog post about porting this library to WebAssembly https://blog.codeisc.com/2018/08/28/xlnt-wasm-intro.html

tfussell commented 6 years ago

That's a great idea! I have used emscripten in the past to port some C++ libraries to JS and I'm always amazed at how well it works. I even built a quick demo of using xlnt in JS if it might help your work at all (https://github.com/tfussell/xlnt.js). Also happy to brainstorm ideas with you here. Looking forward to seeing how it turns out.

isc30 commented 6 years ago

Perfect! I'm currently working on those blog posts using XLNT as an example so I hope they result in some nice bindings created from my side. I will keep you posted.

isc30 commented 6 years ago

Update: I'm slowly adding the bindings. I updated/renewed the repository to work with modern CMake and some js tests https://github.com/isc30/xlnt-wasm

mbrevda commented 5 years ago

this could be amazing! Currently using a JS-based lib but it's really slow at parsing large (25mb+) files.

isc30 commented 5 years ago

feel free to give the wasm version a try, let us know what's the result! :)

mbrevda commented 5 years ago

Is it production ready?