Live data from Hacker News

Examining Windows 1.0 Hello.c

virtuallyfun.com

1–10 of 51 posts

Re: Examining Windows 1.0 Hello.c

#2
> I was inspired to investigate the original HELLO.C for Windows 1.0, a 125 line behemoth that was talked about in hush tones.

Should that have been "125k line"? Not to get too pedantic, but the units seem needful for "behemoth".

Re: Examining Windows 1.0 Hello.c

#3
post #2

> I was inspired to investigate the original HELLO.C for Windows 1.0, a 125 line behemoth that was talked about in hush tones. Should that have been "125k line"? Not to get too pedantic, but the units seem needful for "behemoth".

No, windows did not require a 125 thousand line program to display hello world.

Re: Examining Windows 1.0 Hello.c

#5

It's pretty impressive that binaries from Windows 1.0 still manage to run on Windows 10. I wish desktop Linux had even a fraction of that level of backwards compatibility.

You would think mapping memory, files, pipes and general IO would have stabilized by now, at least in their basic forms.

Re: Examining Windows 1.0 Hello.c

#6
post #2

> I was inspired to investigate the original HELLO.C for Windows 1.0, a 125 line behemoth that was talked about in hush tones. Should that have been "125k line"? Not to get too pedantic, but the units seem needful for "behemoth".

No, at the time it did seem monstrous and barbaric to need 125 lines for hello.c, when 5 or 6 was quite properly considered the norm. "Behemoth" is a relative term in this case.

Edit: In the decades since nothing has changed in my mind. The messy Windows boilerplate code that made up the other 120 lines or so should have been refactored architecturally and hidden by a framework, API call, something, anything.

Re: Examining Windows 1.0 Hello.c

#8

It's pretty impressive that binaries from Windows 1.0 still manage to run on Windows 10. I wish desktop Linux had even a fraction of that level of backwards compatibility.

When running Xorg/X11 they do still run, that protocol from the old days has not changed much, its the libs that the programs use are the moving target, but if you have a nice static compiled X11 App, it will still display!

Re: Examining Windows 1.0 Hello.c

#9
post #2

> I was inspired to investigate the original HELLO.C for Windows 1.0, a 125 line behemoth that was talked about in hush tones. Should that have been "125k line"? Not to get too pedantic, but the units seem needful for "behemoth".

125 lines seems fairly 'behemoth' for a hello world C program to me. This for example is a hello world for sdl:

    #include 

    int main(int argc, char *argv[]) {
    int gogogo = 1;
    SDL_Event event;

    SDL_Init(SDL_INIT_EVERYTHING);
    SDL_WM_SetCaption("Hello World! :D", NULL);
    SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE);
    while (gogogo) {
        SDL_WaitEvent(&event);
        if (event.type == SDL_QUIT)
            gogogo = 0;
    }
    SDL_Quit();
    return 0;
}

https://www.badprog.com/c-sdl-simple-directmedia-layer-hello...

Re: Examining Windows 1.0 Hello.c

#10
This is a copy from an original article which was already posted on HN a few days ago and which did not get any traction.

https://news.ycombinator.com/item?id=23237045

Could you please refer to the original article below and credit the original site it was published on:

https://soylentnews.org/article.pl?sid=20/05/10/1753203

Post reply on HN