Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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).




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

Search: