Hacker News new | ask | show | jobs
by chrisseaton 3559 days ago
You can write raw pixels to the screen with a HTML canvas and JS - no need to do it with low level code and making your own OS.
2 comments

I bet you could go from main() to displayBufferOnScreen(unsigned char *buffer) in a couple dozen lines of C using SDL.
This is a good idea, as is the Javascript one above.
Or with different desktop GUI toolkits for different languages: C++ w/Qt, C++ w/ wxWidgets, wxPython, Perl/Tk, Python +Tkinter, Delphi, Lazarus, or many other lang/toolkit combos. Even many BASICs have that ability built-in (from the early days of personal computers).