Live data from Hacker News

Plwm – An X11 window manager written in Prolog

github.com

21–30 of 77 posts

Re: Plwm – An X11 window manager written in Prolog

#22

Earlier quoted context omitted.

I wish more things were protocols instead of APIs.

Could you explain the difference?

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.

Re: Plwm – An X11 window manager written in Prolog

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

Re: Plwm – An X11 window manager written in Prolog

#24

Looked at the source, it’s so compact, wow.

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!

Re: Plwm – An X11 window manager written in Prolog

#25
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.

[flagged]

Re: Plwm – An X11 window manager written in Prolog

#27
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.

[flagged]

But it sort of is maths.

Re: Plwm – An X11 window manager written in Prolog

#28

Earlier quoted context omitted.

I wish more things were protocols instead of APIs.

Could you explain the difference?

They're both poorly defined, but what I think GP meant is they want something that you use something like a socket instead of FFI to interface with. You need an extra data description layer for a 'protocol' in this context because you can't rely on something like the C data model and calling convention as a given.

Re: Plwm – An X11 window manager written in Prolog

#29

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.

What? Wayland is a protocol. Not an API.
Post reply on HN