3/28/2024 0 Comments Spacemacs reflow textA more suitable Win32 Hello World is not that much more complex than the traditional C one: Petzold's Hello World is far more than what I'd consider a Hello World in Win32, because in addition to what you noted, it also creates a "full" window with all the associated complexity of managing its drawing yourself. The web stack, because of how it is done, you can't. In this case, the hello world in HTML is not representative of what you need to do to create a medium/large SPA in HTML.Īnd the old Windows api you could always wrap in higher order stuff, or even use as a basic layer to create your own UI library (still native). They don't show you how the thing you're discussing scales in actual use. This is the problem with trivial/contrived examples. So once you add actual code, the binary's size doesn't scale linearly with the code size.įor comparison, a modern CSS "reseting" file, which just removes empty values is usually larger than the hello.c example. It might be larger than expected, but it usually includes a whole runtime. That's about as relevant as complaining about the large binary size of a hello world program in a language creating static binaries. And that includes the starting up boilerplate. So, like 30-50 lines of actual Hello World necessary code. It's actually 87 lines of code, with a disclaimer comment, ample empty lines, a callback to play a wav when clicked, and an error message for when it's not run on NT. Hello World on the Web is, well, "Hello world!". Charles Petzold's HELLO.C is hundreds of lines of code. Since the abstraction layer abstracts away the actual display resolution, programs (generally) can take advantage of the resolution that is available on a given display without change, allowing a program to run on small hardware displays (phone/tablet form factor) up to mega 4K++ displays, looking better and better as the screen resolution goes up. The abstraction layer today is adaptive and high DPI. In lower resolution compatibility mode, the program's display got uglier and uglier as the screen resolution went up. If a program did not support the graphics adapter you had, you had to run your GUI in lower resolution compatibility mode. The programs of those days were hard-coded to the graphics adapter resolution. In the "good old days" the user interface was 640px x 480px (original VGA, skipping past the original MDA, CGA, and Hercules graphics cards since they predated "modern" GUIs). The abstraction layer has only remained the same visually, and only for a loose definition of "visually."
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |