raboukhalil's comments

raboukhalil | 7 years ago | on: Show HN: I wrote a book about WebAssembly

I don’t have an example that specifically uses cmake, though similar principles apply but you’d use the emcmake utility. That said, thanks for the feedback! I’ve added that to my list of things to add to the book.

raboukhalil | 7 years ago | on: Show HN: I wrote a book about WebAssembly

Thank you for the tips! I'll be writing an article in coming weeks about my experience writing this book. This is the second book I self-publish, and unlike the first one, I actually tracked how much time I spent on each category of tasks (writing, editing, marketing, head scratching, etc), so the article will also include that. Stay tuned!

raboukhalil | 7 years ago | on: Show HN: I wrote a book about WebAssembly

Thanks! Yes the book focuses on C/C++, but you don't need very much C/C++ knowledge to follow along in the book.

Most of the time, we treat C/C++ libraries as black boxes that we compile to WASM, though in some cases like Pacman, we do have to modify the original code, but you should be able to infer what we're doing from the context and the text.

raboukhalil | 7 years ago | on: Show HN: I wrote a book about WebAssembly

Thanks! I like to self-publish mostly because I can craft the book in my own way and move faster. I also enjoy being able to touch all aspects of the book, including the design and marketing.

This is actually my second self-published book (first one was about wrangling data on the command line with bash), so it does feel natural to self-publish at this point!

raboukhalil | 7 years ago | on: Show HN: I wrote a book about WebAssembly

Yes! Chapter 8 talks about graphics; the Pacman example shows how to port a C++/SDL2 Pacman clone to WebAssembly and OpenGL (with Emscripten). That said, the focus of that chapter is porting games like that, but it doesn't go into writing OpenGL directly.
page 2