frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Plwm – An X11 window manager written in Prolog

https://github.com/Seeker04/plwm
128•jedeusus•5h ago

Comments

leephillips•4h ago
Very nice. If you’re used to dwm this should be natural. Unless you use dwm’s tags as more than workspaces, which I do. The author does not, so he implemented workspaces instead of tags. So this can not replace dwm for me.
B1FF_PSUVM•3h ago
Why am I reminded of the all-Erlang HN first page?
pona-a•3h ago
Fun fact: the first version of Erlang interpreter was written in Prolog.
YeGoblynQueenne•3h ago
Oh wow, I gotta try this.

Lots of documentation! Awesome!

rclkrtrzckr•3h ago
Isn't ".pl" actually used for perl?

Well, there might be a Prolog interpreter written in (a) perl (regex) ...

ajdude•3h ago
Prolog was using .pl for a bit over a decade before Perl existed.
jimjimjim•3h ago
Prolog is a older than Perl and there doesn't need to be any exclusive claim on file extensions.
tikhonj•2h ago
It's used for both which consistently confuses logic that guess programming language purely based on file extensions.
gatane•3h ago
Time to do one in Scheme, I guess.
pona-a•2h ago
Here's one in Guile Scheme.

https://wingolog.org/archives/2008/07/31/introducing-griddy

tmtvl•2h ago
Already exists: https://github.com/mwitmer/guile-wm

There might also be ones in other Schemes, but as FFI hasn't been standardised across Schemes yet I doubt there's an implementation-agnostic one.

mhd•2h ago
Done a while ago: https://en.wikipedia.org/wiki/Scwm

There was also "GWM", based on its own lisp dialect, "WOOL", which was around from at least the early 90s.

On the more popular side, you had sawfish (using an elisp-alike, IIRC) and stumpwm (Common Lisp).

DonHopkins•2h ago
Here's an X11 window manager, with pie menus and tabbed windows, entirely written in object oriented NeWS PostScript, from around 1991:

https://donhopkins.com/home/archive/NeWS/owm.ps.txt

And some design notes and emails on that NeWS based window manager for X11 windows:

https://donhopkins.com/home/archive/NeWS/i39l.txt

It incorporated NeWS tabbed windows written in PostScript, which could wrap around X11 windows (and frame NeWS windows too of course):

https://donhopkins.com/home/archive/NeWS/win/tab.ps

And NeWS pie menus written in PostScript, which you could pop up on tabbed window frames and manage X11 windows (and use in NeWS apps too of course):

https://donhopkins.com/home/archive/NeWS/win/pie.ps

There was also a virtual large scrolling desktop, and virtual multi-screen "rooms", both purely written in PostScript, which all plugged together with the tabbed windows and pie menus and X window manager seamlessly. They were all independent of each other and could be used separately, but worked together synergistically. Take that, ICCCM! ;)

Also here's a (pre-ICCCM, pre-X11) X10 window manager with pie menus, written in C and scripted in Forth, from around 1986:

https://donhopkins.com/home/archive/piemenu/uwm/fuwm-main.f

And some of my thoughts on X-Windows and ICCCM window management in general:

https://donhopkins.medium.com/the-x-windows-disaster-128d398...

>In summary, ICCCM is a technological disaster: a toxic waste dump of broken protocols, backward compatibility nightmares, complex nonsolutions to obsolete nonproblems, a twisted mass of scabs and scar tissue intended to cover up the moral and intellectual depravity of the industry’s standard naked emperor.

>Using these toolkits is like trying to make a bookshelf out of mashed potatoes." -Jamie Zawinski

agumonkey•1h ago
First time I ever get the chance to see object postcript/forth, thank you
igorhvr•1h ago
This one is customizable in Lisp, and overall pretty neat: https://sawfish.tuxfamily.org/ - I have been happily using it daily for many years now. :-)
eikenberry•2h ago
I'm hoping one day someone will write a window-manager service for Wayland that replaces the compositor API with a protocol. To once again enable window managers to be implemented in any language, regardless of it having a Wayland/compositor library.
pyinstallwoes•1h ago
I wish more things were protocols instead of APIs.
linux2647•1h ago
Could you explain the difference?
spicybright•54m ago
I'm not the most knowledgeable, but a protocol talks to another process through a specific format.

I personally think its more powerful than writing a new process to replace and existing.

My favorite example is an X11 windows manager implementing in about 18 lines of python.

Obviously there's dependencies to talk to the X server, but the power of a protocol comes from any program written in any la gage communicate with existing code.

neuroelectron•31m ago
A protocol is like the line at Subway where an api is a bar & restaurant.
smikhanov•56m ago
Looked at the source, it’s so compact, wow.
echelon•45m ago
It looks nothing like the Prolog I've seen before.

I'm quite amazed the author took a declarative language meant for logic and turned it on its head for managing windows as an actual application.

Bravo!

raron•49m ago
Does someone know a tutorial or something which explains how to get from "tutorial Prolog" to "real project Prolog", because that's not look anything like tutorial Prolog.

Prolog seems interesting, but any time I tried to do anything more than toy examples on my own, I got infinite recursion, unsolvable problems.

anal_reactor•35m ago
I played with Prolog just a little long time ago, and I can't shake off the feeling that Prolog is basically a prank that went too far to be stopped. It requires a way of thinking that is compatible with neither how computers work, nor how maths works.
actionfromafar•8m ago
But it sort of is maths.

I built a full-stack LLM prompt efficiency suite for every AI developer

https://prompt-efficiency-suite.lovable.app/
1•dulra•40s ago•1 comments

Trump demands list of names of Harvard's foreign students

https://www.independent.co.uk/news/world/americas/us-politics/trump-harvard-international-students-enrollment-b2757616.html
1•belter•3m ago•0 comments

Does anyone use backspace navigation anymore?

1•stnvh•5m ago•2 comments

I Built a Free Instagram Story Templates Builder

https://templates.bunnybooster.com
1•lumber_prog•6m ago•1 comments

8% of the reviews submitted to Tripadvisor in 2024 were fake

https://www.cnbc.com/2025/05/26/heres-how-many-fake-reviews-tripadvisor-found-on-its-website-in-2024-.html
2•belter•9m ago•0 comments

Show HN: Crymaps – A map of the best places to cry

https://crymaps.netlify.app/
2•izanamador•15m ago•0 comments

Keep the Future Human

https://keepthefuturehuman.ai/essay/
2•Improvement•25m ago•2 comments

The Grugbrained CEO

https://www.sam-rodriques.com/post/the-grugbrained-ceo
6•_ihaque•25m ago•4 comments

The satellite that will 'weigh' 1.5T trees

https://www.bbc.com/news/articles/crldwjj6d6no
3•ricecat•26m ago•0 comments

Ten Years of JSON Web Token (JWT) and Preparing for the Future

https://self-issued.info/?p=2708
4•mooreds•28m ago•0 comments

A phone-free prom night

https://sfstandard.com/2025/05/24/sf-prom-no-phones/
1•MarcoDewey•33m ago•0 comments

How Retirement Was Invented

https://www.theatlantic.com/business/archive/2014/10/how-retirement-was-invented/381802/
2•Anon84•37m ago•1 comments

When Was Full Throttle Released?

https://www.doublefine.com/news/when-was-full-throttle-released
1•atan2•38m ago•0 comments

We broke down that weird 9-minute Sam Altman and Jony Ive video

https://sfstandard.com/2025/05/23/sam-altman-jony-ive-video/
14•herbertl•39m ago•2 comments

Utah ban on gender-affirming pediatric care "cannot be justified" by science

https://www.motherjones.com/politics/2025/05/utah-transgender-youth-affirming-care-ban/
3•Anon84•39m ago•1 comments

Large Language Model-Powered Agent for C to Rust Code Translation

https://arxiv.org/abs/2505.15858
2•MarcoDewey•43m ago•0 comments

Ask HN: Competitor launched – reach out or keep going?

2•grandinquistor•44m ago•1 comments

Ask HN: Where do hackers meet in London?

1•nerder92•45m ago•2 comments

Discord might use AI to help you catch up on conversations

https://www.theverge.com/apps/673208/discord-ai-forums-anniversary-gamechat
2•ColinWright•45m ago•0 comments

Can you guess who said it?

https://zionism.wtf/
1•plebbed•49m ago•0 comments

Cooper's Hill Cheese-Rolling and Wake

https://en.wikipedia.org/wiki/Cooper%27s_Hill_Cheese-Rolling_and_Wake
1•red369•1h ago•0 comments

Why career breaks are good for you, your employer and co-workers

https://www.rte.ie/brainstorm/2025/0303/1499847-career-breaks-sabbaticals-advantages-benefits-employee-employer-co-workers/
3•austinallegro•1h ago•2 comments

I built an ethical evaluation engine for scoring sys. alignment, not efficiency

https://github.com/luminaAnonima/fabric-of-light/blob/main/appendix/alignment_engine.md
2•luminaAnonima•1h ago•1 comments

Can LLMs Aid in Deciphering the Voynich Manuscript?

https://viao.co.uk/blog/can-large-language-models-aid
3•hoyd•1h ago•0 comments

Whatever happened to Elon Musk? Tech boss drifts to margins of Trump world

https://www.theguardian.com/technology/2025/may/25/elon-musk-trump-politics
9•jethronethro•1h ago•3 comments

Microsoft Edit

https://github.com/microsoft/edit
4•smartmic•1h ago•0 comments

Show HN: Veeto – Find California bills that will impact your startup

https://www.veeto.ai/
2•wateringcan•1h ago•2 comments

Show HN: A daily question to train positive thinking and boost your mood

https://apps.apple.com/us/app/daily-optimist-think-positive/id1466175138
1•nikodunk•1h ago•1 comments

Bash Style Guide

https://style.ysap.sh/
1•smartmic•1h ago•0 comments

Weeklong MathWorks outage due to cyberattack

https://news.ki.se/operatinginfo/service-status-mathworks
1•ayhanfuat•1h ago•0 comments