Hacker News new | past | comments | ask | show | jobs | submit login

What's the TLDR on how to compile the C code to run in the browser?



Emscripten. If you use something like SDL porting is trivial.

Working on a project to port a 20 plus year old c/cpp code base to the web. The tooling was like 98% there but I've had to upstream a few fixes or find a workaround every now and then.


Good on you man. If I got an email that said “opportunity: port 20+ cpp app to web” I would chuckle and close that sucker real quick. Modern cpp I maybe can deal with. That 90s stuff is real bad.


It's actually a purely voluntary endeavor. I'm attempting to port a game engine called Zelda Classic to the web. So far, so good!


Here's a little template that uses Raylib: https://github.com/nikki93/raylib-template




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: