Hacker News new | ask | show | jobs
by rbanffy 405 days ago
I once crashed Squeak by telling it that true:=false
3 comments

I think that or something like it was a rite of passage in our course using Smalltalk in college (number forgotten). "That couldn't possibly work...Oh, shit."
The "couldn't possibly work" things seem different — they don't crash the VM and exit.
Seems like Cuis Smalltalk also has that crash & exit behavior.

That does not crash Pharo Smalltalk.

That does not crash Dolphin Smalltalk.

At that time it didn’t exit - it just hung there forever. Even the mouse wouldn’t move.
Today after re-install on MSWin10

    true := false
Cuis is perfectly OK

    Cannot store into ->
Object become: nil -- pretty findamental rug pull
Which could be handled without crash & exit behavior.

That does not crash Pharo Smalltalk.

That does not crash Dolphin Smalltalk.

    Object class(Object)>>error:
    Object class(Object)>>primitiveFailed
    Object class(Object)>>become:
    UndefinedObject>>{unbound}doIt
Every time a young hacker finds one of these, it gets patched.
Today after re-install on MSWin10

    Object become: nil
Cuis does crash & exit, or hangs, or …

    Sorry but the Squeak VM has crashed.
    …
    crash.dmp