# Sol 6.1 was able to one-shot a Hello World application for my 34 year old Macintosh Plus. — retained record

> Retained reddit record from reddit:OpenAI.

Canonical: https://highsignal.app/data/records/81934777795ebf64

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:OpenAI)  published 2026-09-30 23:47 ingested 2026-10-01 02:40

[original source ↗](https://www.reddit.com/r/OpenAI/comments/1wukiig/sol_61_was_able_to_oneshot_a_hello_world/)

## retained text



```
Sol 6.1 was about to one-shot a Hello World application for my 34 year old Macintosh Plus.

    #include <Quickdraw.h>
    #include <Fonts.h>
    #include <Windows.h>
    #include <Menus.h>
    #include <Dialogs.h>
    #include <Events.h>
    #include <Memory.h>
    #include <OSUtils.h>
    
    static WindowPtr helloWindow;
    static Boolean running = true;
    static const unsigned char helloText[] = {5, 'H', 'e', 'l', 'l', 'o'};
    static const unsigned char windowTitle[] = {5, 'H', 'e', 'l', 'l', 'o'};
    static const unsigned char fileTitle[] = {4, 'F', 'i', 'l', 'e'};
    static const unsigned char quitItem[] = {6, 'Q', 'u', 'i', 't', '/', 'Q'};
    
    static void drawHello(void)
    {
        Rect r = helloWindow->portRect;
        SetPort(helloWindow);
        EraseRect(&r);
        TextFont(0);
        TextSize(24);
        TextFace(0);
        MoveTo((r.right - StringWidth(helloText)) / 2, (r.bottom + 18) / 2);
        DrawString(helloText);
    }
    
    static void chooseMenu(long choice)
    {
        if ((short)(choice >> 16) == 128 && (short)choice == 1)
            running = false;
        HiliteMenu(0);
    }
    
    int main(void)
    {
        EventRecord event;
        WindowPtr clicked;
        Rect bounds = {80, 96, 220, 416};
        Rect dragBounds = {24, 0, 342, 512};
        MenuHandle fileMenu;
        MaxApplZone();
        InitGraf(&qd.thePort);
        InitFonts();
        InitWindows();
        InitMenus();
        TEInit();
        InitDialogs(0);
        InitCursor();
        fileMenu = NewMenu(128, fileTitle);
        AppendMenu(fileMenu, quitItem);
        InsertMenu(fileMenu, 0);
        DrawMenuBar();
        helloWindow = NewWindow(0, &bounds, windowTitle, true,
                                documentProc, (WindowPtr)-1L, true, 0);
        if (!helloWindow) return 1;
        SetPort(helloWindow);
        while (running) {
            if (!WaitNextEvent(everyEvent, &event, 10, 0)) continue;
            switch (event.what) {
            case updateEvt:
                if ((WindowPtr)event.message == helloWindow) {
                    BeginUpdate(helloWindow);
                    drawHello();
                    EndUpdate(helloWindow);
                }
                break;
            case mouseDown:
                switch (FindWindow(event.where, &clicked)) {
                case inMenuBar: chooseMenu(MenuSelect(event.where)); break;
                case inDrag: DragWindow(clicked, event.where, &dragBounds); break;
                case inGoAway:
                    if (clicked == helloWindow && TrackGoAway(clicked, event.where))
                        running = false;
                    break;
                case inContent: SelectWindow(clicked); break;
                case inSysWindow: SystemClick(&event, clicked); break;
                }
                break;
            case keyDown:
            case autoKey:
                if (event.modifiers & cmdKey)
                    chooseMenu(MenuKey((char)(event.message & charCodeMask)));
                break;
            }
        }
        DisposeWindow(helloWindow);
        return 0;
    }
    
```



document fetched 2026-10-01 00:30 · canonical https://reddit.com/r/OpenAI/comments/1wukiig/sol_61_was_able_to_oneshot_a_hello_world
