[squeak-dev] Stupid Squeak tricks

Frank Shearar frank.shearar at angband.za.org
Mon May 25 10:09:42 UTC 2009


David T. Lewis wrote:
> What is the greatest number of CPU cycles that could possibly be expended on
> the problem of adding 2 + 2? Have you ever wondered how to utilize the latest
> multi-core hardware in the most pointless and inefficient manner possible?
> Read on...
>
> Motivated by a question from Casimiro de Almeida Barreto <casimiro.barreto at gmail.com>,
> I have added dup2() support to OSProcess, and wired up OS pipes to forked Squeak
> images to enable sending and receiving objects through reference streams to a
> headless, transient child Squeak. Code is in the latest OSProcessPlugin, OSProcess,
> and CommandShell on SqueakSource. The result of this is a mechanism for sending
> objects to a forked image for remove evaluation, returning a result to the parent
> Squeak image as follows:
>   
I think that's pretty awesome!

Of course, you're really supposed to be evaluating "3 + 4", aren't you? :)

frank



More information about the Squeak-dev mailing list