frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Unix Executable as a Smalltalk Method [pdf]

https://programmingmadecomplicated.wordpress.com/wp-content/uploads/2025/10/onward25-jakubovic.pdf
86•pcfwik•9h ago

Comments

chris_armstrong•9h ago
The ICFP/SPLASH papers are now starting to find their way to HN.

This was a HUGE combined programming conference with several competing tracks over 7 days. You can find the program here ^1 (you can often find a link to the abstract or full paper if you click on it)

Streams from the sessions will also show up here^2 (you’ll need to match the day and room and ff to the time it appeared)

^1: https://conf.researchr.org/program/icfp-splash-2025/program-...?

^2: https://youtube.com/playlist?list=PLyrlk8Xaylp5ihrTVeOSaylaB...

linguae•8h ago
I had a chance to skim over the paper, and I'm very inspired; I'm looking forward to reading it in depth and considering its lessons while working on my side project. For about a decade, I've been dreaming about building a modern operating system that is highly malleable and encourages component-based software design, and I've collected many thoughts and done a lot of reading. I've been inspired by many projects, including the Smalltalk-80 environment, Lisp machine environments (especially Symbolics Genera), various 1990s Apple projects (Dylan, the Bauhaus operating system designed for the Newton and written in Lisp, OpenDoc), Plan 9, Alan Kay's Viewpoints Research Institute's work on STEPS (https://news.ycombinator.com/item?id=11686325), and Stephen Kell's work on exploring the connections between Unix, Plan 9, and Smalltalk.

During the COVID-19 pandemic I collected my thoughts on my blog (https://mmcthrow-musings.blogspot.com/2020/04/a-proposal-for...) and on a site that I decided to dub MallowOS (https://mallowos.com/), paying homage to Apple's Pink/Taligent project and Google's Fuchsia project.

Unfortunately I haven't made any progress beyond design notes written in paper notebooks; I've got swamped with work (though now I have more free time since becoming a community college professor last year; I have summers off now!). I've also changed my design plans from basing off of Plan 9 to building a new exokernel in a language like Rust, adapting NetBSD's rump kernel for driver support, and using a single-address space design similar to Opal (https://dl.acm.org/doi/10.1145/195792.195795), though this isn't reflected in the MallowOS webpage yet.

Another thought has come to mind: not too long ago there was a discussion here about Etoile (http://etoileos.com/), a project from the late 2000s-early 2010s that attempted to build a GNUstep-based desktop environment. What made Etoile unique is its embrace of the Smalltalk inspirations of Objective-C. Imagine a new project that took Smalltalk inspiration one step further by adapting the ideas of this paper, fully integrating Smalltalk with the Unix framework.

kragen•8h ago
Sounds exciting!
kragen•8h ago
Nice Onwards! paper. But to my taste it's a bit slow-paced, taking 10 pages to, as I see it, start getting to the point:

    self=$1
    tmp1=$(send $self height)
    tmp2=$(send $tmp1 / float/3.0)
    crossHeight=$(send $tmp2 rounded)
    tmp4=$(send int/0 \@ $crossHeight)
    tmp5=$(send $self bounds)
    send $tmp5 insetBy: $tmp
The rest of the paper seems to be about how to make that, or its moral equivalent, not just work but work efficiently.

When I implemented this idea in 02002 (in shell scripts) the clumsiest thing was lifetime management of the objects, as Jakubovic anticipates in the paper. I had thought that I put symlinks to the method scripts directly into each object directory, making it a prototype-based OO system, but no, it actually implemented walking a prototype chain, just as Jakubovic's proposed system walks a superclass chain. And, just as Jakubovic did, I passed the receiver's pathname as the first argument to the method executable, passed arguments on the command line, and returned results on stdout. I called my version "shoo"⁴ but it wasn't original to me, inspired by Martin Hinsch's "woosh"⁵:

> shoo makes your filesystem and shell into a prototype-based object-oriented programming environment with dynamic method binding, transparent persistence (but terrible memory management!), multiple inheritance, and local-network distributed objects (if you have NFS, and only the state is distributed --- not the computation).

> Unfortunately, it still doesn't make the shell into a decent general-purpose programming language.

shoo was painfully slow. The `testscript` in the package takes 4.5 seconds on my cellphone in Termux, and all it does is instantiate two rectangular points, two polar points, and three other objects, and call some methods on them. I'm pleased to see that it does at least pass, but it might be reaching 10 or 20 message sends per second.

In shoo, the pathname at which to create the new object was an argument to the new and derive methods, as in Tk. I think something like this is probably a good idea if you want to use this approach for something; otherwise it would be very difficult to clean up. It also makes the shell script quite a bit more readable because you don't have to capture return values so often:

    oo newobj pr                              
    oo basicobject derive thirdobj
    oo thirdobj defprop acting "What's my motivation?"
    oo thirdobj acting
    oo newobj derivefrom thirdobj
    oo newobj acting
    oo anotherobj die
    oo newobj die
As in Self, adding a property to an object (such as `acting`) adds corresponding getters and setters. The `die` method was one I defined in basicobject to rm -rf the receiver, due to the lack of any GC.

Other code did have to use the rather clumsy bash syntax for capturing output. I didn't attempt to make numbers and strings into objects as Jakubovic wants to; here's the method rectpointclass/r, which calls the x and y accessors:

    #!/bin/bash -e
    # generate radius for a rectangular point.                         
    x="$(oo "$1" x)"
    y="$(oo "$1" y)"                                                
    echo "e(l($x * $x + $y * $y)/2)" | bc -l
Jakubovic mentions that creating a million Unix processes will cause "bad things to happen" but even on my laptop creating and destroying a million processes only takes about a minute (httpdito² can serve 20000 hits per second, creating all the children from a single core; C programs are much slower³, about 7000 fork/exit/waits per second, presumably because they map more pages) and I think you could do it in a second with AWS Lambda. Possibly you don't want them all to exist at once, but of course the original Smalltalk systems couldn't do that either—their object references were only 16 bits, so 65536 objects was the theoretical max, and they ran on machines without enough RAM for even that much.

There are several factual errors in the paper, but I think the only consequential one is the assertion that FUSE makes it possible to implement files as efficiently as Smalltalk objects. It's true that io_uring has made it possible to eliminate the system call context switching overhead from file operations, but even within the kernel, dispatching a user I/O request to a filesystem is at least an order of magnitude slower than a Smalltalk message send on the same hardware, and FUSE adds additional overhead.

Some Smalltalk object memories segregated objects by class, so that all the objects of the same class were contiguous in memory, like an array of structs of the same type. It might be reasonable to put many objects containing the same set of fields into an Apache Arrow file so that they can be read by processes without having to read in the whole file, relying on memory mapping. (Arrow is a language-independent in-memory data format.) Or you could just accept the small overhead of Linux files, which might be 256 bytes of disk and, even without io_uring, only about four 300ns system calls¹ to read their contents: 1.2μs (open, read, read, close). It isn't fast enough to do everything you can do with a Smalltalk system today, but it's fast enough to do everything you could do with a Smalltalk system in the 70s.

As long as you don't try to write it in bash. LuaJIT might be a reasonable alternative, combining easily editable scripts with a reasonable library system and reasonable startup time.

______

¹ http://canonical.org/~kragen/sw/dev3/syscallovh.c

² http://canonical.org/~kragen/sw/dev3/server.s

³ http://canonical.org/~kragen/sw/dev3/forkovh.c

⁴ https://www.mail-archive.com/kragen-hacks@canonical.org/msg0...

⁵ http://web.archive.org/web/20040409072028/http://wosx30.eco-...

stevefolta•6h ago
Once you cut through all the verbiage, this is just a re-invention of Woosh (https://woosh.sourceforge.net/).
kragen•4h ago
Oh, awesome! I didnt know Woosh got uploaded to SourceForge!

He does go into some ideas about how to implement this approach more efficiently, which seems potentially very important to making it useful.

pjmlp•1h ago
I think it worthwhile pointing out Xerox PARC efforts to bring their programming environments to UNIX, as they slowly lost the market they could have had.

"UNIX Needs A True Integrated Environment: .CASE Closed"

http://www.bitsavers.org/pdf/xerox/parc/techReports/CSL-89-4...

Interlisp-D gets ported to UNIX in 1988

https://interlisp.org/history/timeline/

Cedar gets ported into UNIX in 1989

"Experiences creating a portable cedar"

https://dl.acm.org/doi/10.1145/74818.74847

NeXTSTEP and macOS are only thing left from those ideas in modern systems, combing UNIX and Xerox PARC worlds.

While there are some of those ideas influenced Windows, via Objective-C => Java => .NET, and Android is what Inferno/Limbo could have been, it is not quite the same as those early ideas how computing should be like.

Flow•37m ago
Funny, and the persistent memory-image everyone outside the Smalltalk/Lisp community seems to hate, it's your normal filesystem now.

StageConnect: Behringer protocol is open source

https://github.com/OpenMixerProject/StageConnect
108•jdboyd•5h ago•39 comments

Andrej Karpathy – It will take a decade to work through the issues with agents

https://www.dwarkesh.com/p/andrej-karpathy
797•ctoth•17h ago•739 comments

./Watch

https://dotslashwatch.com/
8•shrx•59m ago•0 comments

Ruby Blocks

https://tech.stonecharioteer.com/posts/2025/ruby-blocks/
47•stonecharioteer•3d ago•24 comments

New Work by Gary Larson

https://www.thefarside.com/new-stuff
261•jkestner•13h ago•58 comments

AMD's Chiplet APU: An Overview of Strix Halo

https://chipsandcheese.com/p/amds-chiplet-apu-an-overview-of-strix
63•zdw•6h ago•14 comments

The early Unix history of chown() being restricted to root

https://utcc.utoronto.ca/~cks/space/blog/unix/ChownRestrictionEarlyHistory
20•kencausey•4d ago•0 comments

The Unix Executable as a Smalltalk Method [pdf]

https://programmingmadecomplicated.wordpress.com/wp-content/uploads/2025/10/onward25-jakubovic.pdf
87•pcfwik•9h ago•8 comments

The pivot

https://www.antipope.org/charlie/blog-static/2025/10/the-pivot-1.html
324•AndrewDucker•15h ago•143 comments

Live Stream from the Namib Desert

https://bookofjoe2.blogspot.com/2025/10/live-stream-from-namib-desert.html
490•surprisetalk•22h ago•91 comments

Exploring PostgreSQL 18's new UUIDv7 support

https://aiven.io/blog/exploring-postgresql-18-new-uuidv7-support
232•s4i•2d ago•173 comments

PlayStation 3 Architecture (2021)

https://www.copetti.org/writings/consoles/playstation-3
149•adamwk•4d ago•38 comments

Claude Skills are awesome, maybe a bigger deal than MCP

https://simonwillison.net/2025/Oct/16/claude-skills/
564•weinzierl•17h ago•285 comments

EVs are depreciating faster than gas-powered cars

https://restofworld.org/2025/ev-depreciation-blusmart-collapse/
356•belter•23h ago•783 comments

WebMCP

https://github.com/jasonjmcghee/WebMCP
84•sanj•12h ago•21 comments

Show HN: ServiceRadar – open-source Network Observability Platform

https://github.com/carverauto/serviceradar
40•carverauto•9h ago•1 comments

4Chan Lawyer publishes Ofcom correspondence

https://alecmuffett.com/article/117792
406•alecmuffett•1d ago•541 comments

Tahoe's Elephant

https://eclecticlight.co/2025/10/12/last-week-on-my-mac-tahoes-elephant/
56•GavinAnderegg•6d ago•36 comments

If the Gumshoe Fits: The Thomas Pynchon Experience

https://www.bookforum.com/print/3202/if-the-gumshoe-fits-62416
34•prismatic•1w ago•0 comments

The Underscore Music Player

https://kottke.org/25/10/the-underscore-music-player
5•tobr•1w ago•0 comments

The Rapper 50 Cent, Adjusted for Inflation

https://50centadjustedforinflation.com/
641•gaws•18h ago•162 comments

Cyberpsychology's Influence on Modern Computing

https://cacm.acm.org/research/cyberpsychologys-influence-on-modern-computing/
18•pseudolus•6d ago•3 comments

Asking AI to build scrapers should be easy right?

https://www.skyvern.com/blog/asking-ai-to-build-scrapers-should-be-easy-right/
110•suchintan•15h ago•50 comments

When if is just a function

https://ryelang.org/blog/posts/if-as-function-blogpost-working-on-it_ver1/
56•soheilpro•3d ago•61 comments

The Wi-Fi Revolution (2003)

https://www.wired.com/2003/05/wifirevolution/
84•Cieplak•6d ago•68 comments

Claude Code vs. Codex: I built a sentiment dashboard from Reddit comments

https://www.aiengineering.report/p/claude-code-vs-codex-sentiment-analysis-reddit
102•waprin•1d ago•48 comments

Researchers Discover the Optimal Way to Optimize

https://www.quantamagazine.org/researchers-discover-the-optimal-way-to-optimize-20251013/
53•jnord•4d ago•11 comments

Amazon’s Ring to partner with Flock

https://techcrunch.com/2025/10/16/amazons-ring-to-partner-with-flock-a-network-of-ai-cameras-used...
521•gman83•1d ago•451 comments

How I bypassed Amazon's Kindle web DRM

https://blog.pixelmelt.dev/kindle-web-drm/
1624•pixelmelt•1d ago•492 comments

MIT physicists improve the precision of atomic clocks

https://news.mit.edu/2025/mit-physicists-improve-atomic-clocks-precision-1008
88•pykello•6d ago•39 comments