Live data from Hacker News

Plwm – An X11 window manager written in Prolog

github.com

71–77 of 77 posts

Re: Plwm – An X11 window manager written in Prolog

#71
post #63
post #41

Earlier quoted context omitted.

have a look at river, theyre currently working on something like this!

https://github.com/riverwm/river#future-plans

Great news! I'd seen river before (already had it bookmarked) but was unaware (or forgot) that it planned a feature like this. As long as they don't make it to tiling specific, which doesn't look likely given the wording of the Features section, it should be almost exactly what I want. Thanks!

Re: Plwm – An X11 window manager written in Prolog

#72
post #23

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.

This is one of the best resources for “real” Prolog: https://www.metalevel.at/prolog His YouTube videos are also incredibly good.

Thanks.

Re: Plwm – An X11 window manager written in Prolog

#73
post #43

Earlier quoted context omitted.

I'm curious how you figure a language whose central verbs and nouns are logic "isn't math".

Many people, when they say math, mean continuous math. At work, my colleagues are almost entirely statisticians and actuaries, and I sometimes joke that my only math course at university was Calculus 1. I have of course done lots more math, but it’s all CS type stuff like logic and discrete structures like graphs and trees which is a very different world from continuous stuff.

Discrete math it's far easier to grasp than continous curves under calculus.

Re: Plwm – An X11 window manager written in Prolog

#74

Earlier quoted context omitted.

A protocol is like the line at Subway where an api is a bar & restaurant.

Sorry, I don’t understand this analogy

Protocol = It defines the whole channe with data structures and commands.

API = how do you connect against.

Re: Plwm – An X11 window manager written in Prolog

#75
post #12
post #7

Time to do one in Scheme, I guess.

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).

Sawfish (the oficial VM of Gnome for a while) had Lisp plugins (or was it written in Lisp too?)

Re: Plwm – An X11 window manager written in Prolog

#76

Earlier quoted context omitted.

First time I ever get the chance to see object postcript/forth, thank you

Thank you for checking it out! It was fun to write and run. But we couldn't talk Sun into letting us ship it for some reason! ;) Here's some more context and opinions about ICCCM (I39L), TkWM, OWM, xinit, and piewm: https://www.donhopkins.com/home/catalog/unix-haters/x-window... Here's a much better example of NeWS object oriented PostScript user interface code, written as a developer demo with lots of comments, and…

Didn't Xaw3D solve the issue on xcalc's geometry for a while?

Re: Plwm – An X11 window manager written in Prolog

#77
post #38

Earlier quoted context omitted.

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 wi…

> My favorite example is an X11 windows manager implementing in about 18 lines of python. Uh, do you happen to know where to find that project? Sounds pretty comprehensible for most people as an example.

Sure!

https://github.com/mackstann/tinywm

I've run it once a long time ago and worked perfectly fine for me.

Post reply on HN