Feed aggregator

Ask HN: Is there prior art for this rich text data model?

Hacker News - Fri, 03/13/2026 - 2:22pm

I've built a rich text data model for a desktop word processor in Python, based on a persistent balanced n-ary tree with cached weights for O(log n) index translation. The document model uses only four element types: Text, Container, Single, and Group — where Group is purely structural (for balancing) and has no semantic meaning in the document. Individual elements are immutable; insert and takeout return new trees rather than mutating the old one. This guarantees that old indices remain valid as long as the old tree exists. I'm aware of Ropes, Finger Trees, and ProseMirror's flat index model. Is there prior art I should know about — specifically for rich text document models with these properties?

Comments URL: https://news.ycombinator.com/item?id=47367804

Points: 2

# Comments: 0

Categories: Hacker News

Show HN: Execute local LLM prompts in remote SSH shell sessions

Hacker News - Fri, 03/13/2026 - 2:22pm

Hi HN,

This is a tool I've worked on the past few months.

Instead of giving LLM tools SSH access or installing them on a server, the following command:

$ promptctl ssh user@server makes a set of locally defined prompts "magically" appear within the remote shell as executable command line programs.

For example, I have locally defined prompts for `llm-analyze-config` and `askai`. Then on (any) remote host I can:

$ promptctl ssh user@host # Now on remote host $ llm-analyze-config /etc/nginx.conf $ cat docker-compose.yml | askai "add a load balancer" the prompts behind `llm-analyze-config` and `askai` execute on my local computer (even though they're invoked remotely) via the llm of my choosing.

This way LLM tools are never granted SSH access to the server, and nothing needs to be installed to the server. In fact, the server does not even need outbound internet connections to be enabled.

Eager to get feedback!

Github: https://github.com/tgalal/promptcmd/

Comments URL: https://news.ycombinator.com/item?id=47367795

Points: 2

# Comments: 0

Categories: Hacker News

A major Interpol operation has resulted in the seizure of thousands of malicious cyber criminal IP addresses and servers, and multiple arrests.

Computer Weekly Feed - Fri, 03/13/2026 - 1:44pm
A major Interpol operation has resulted in the seizure of thousands of malicious cyber criminal IP addresses and servers, and multiple arrests.
Categories: Computer Weekly

The Shape of the Thing

Hacker News - Fri, 03/13/2026 - 1:31pm
Categories: Hacker News

APL9: An APL for Plan 9

Hacker News - Fri, 03/13/2026 - 1:26pm

Article URL: https://apl.pmikkelsen.com/

Comments URL: https://news.ycombinator.com/item?id=47367218

Points: 1

# Comments: 0

Categories: Hacker News

Pages