frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Technology Modernization Fund: Small Savings Achieved So Far

https://www.gao.gov/products/gao-26-107737
1•Jimmc414•3m ago•0 comments

Moss Is Generating Electrical Waves That Look Startlingly Like a Neural Network

https://www.sciencealert.com/moss-behaves-a-little-like-a-really-slow-brain-scientist-discovers
1•petethomas•4m ago•0 comments

How the most-used zero-knowledge proof system (Groth16) works

https://blog.zksecurity.xyz/posts/pudding-10-groth16/
1•baby•4m ago•0 comments

Demand for extra CPU capacity? Use a bug in POWER8 firmware

https://theibmi.org/2017/05/25/bug-in-mme-firmware/
1•rbanffy•4m ago•0 comments

One Schema for Every Eval

https://evalevalai.com/projects/every-eval-ever/
1•NickDouglas•6m ago•0 comments

Do Co-Located AI Training Jobs Synchronize?

https://arxiv.org/abs/2607.19638
1•Jimmc414•7m ago•0 comments

Rhino Horn, Leopard Skin and Tiger Claws Sold Openly on Facebook

https://www.bellingcat.com/news/2026/06/24/rhino-horn-leopard-skin-and-tiger-claws-sold-openly-on...
1•Jimmc414•8m ago•0 comments

Show HN: OpenTrust – Browser trust signals for the AI era

https://github.com/rafaelEt/opentrust
1•rafaeltadesse•8m ago•0 comments

Save Up to 70% on Claude Code Costs with PNG Prompts?

https://ai-karma-tracker.github.io/blog/pxpipe-png-prompts/
1•javatuts•9m ago•0 comments

Wreckage of Pan Am plane that shaped aviation safety found 74 years on

https://www.bbc.com/news/articles/cdrvyllxj71o
1•rmason•9m ago•2 comments

Sahil Lavingia – God Mode (Oct 2024)

https://sahillavingia.com/god
1•rmason•10m ago•0 comments

The Guide to Software Factories

https://twitter.com/zachlloydtweets/status/2077056692987027758
1•gmays•12m ago•0 comments

Ask HN: What verb best describes what a developer does in 2026?

2•jdlib•13m ago•1 comments

Show HN: Run Claude Code Through Codex, Kimi, Grok, or Cursor

https://github.com/raine/claude-code-proxy
1•rane•14m ago•0 comments

What 4,523 AI investment forecasts revealed about model disagreement

https://ipulseai.substack.com/p/4523-ai-forecasts-opposing-views
1•russlan•14m ago•0 comments

Show HN: Practice chess openings with a voice coach

https://chessmaster.alirizasaral.com
1•alirizasaral•16m ago•0 comments

A local RAG assistant for a Romanian government agency, built on an 8GB laptop

https://arxiv.org/abs/2607.18756
1•rotariuvladimir•17m ago•0 comments

How the OS Works [video]

https://www.youtube.com/watch?v=0y_2mZqP3cc
1•dalvrosa•18m ago•0 comments

BBC Sound Effects

https://sound-effects.bbcrewind.co.uk/
1•mellosouls•19m ago•0 comments

Where to find inspiration for a (reactive) personal website?

1•mryingster•19m ago•0 comments

DARPA Robotic mechanic for broken satellites launched

https://www.darpa.mil/news/2026/robotic-servicing-of-geosynchronous-satellites-lifts-off
1•GlenTheMachine•20m ago•0 comments

AI Agent Pull Requests on GitHub: Frequency, Structure, and Merge Conflict Rates

https://arxiv.org/abs/2607.04697
1•imrakibul•21m ago•0 comments

Are Agent Code Reviews for AI-Generated Code Worth It?

https://mattmccormick.ca/are-agent-code-reviews-for-ai-generated-code-worth-it/
1•mattm•21m ago•0 comments

The Solar Panel That Beats Silicon's Limit [video]

https://www.youtube.com/watch?v=vtmX0st3uOk
1•thelastgallon•21m ago•0 comments

AI Kill Switch Act [pdf]

https://lieu.house.gov/sites/evo-subsites/lieu-evo.house.gov/files/evo-media-document/ai-kill-swi...
1•bifftastic•22m ago•0 comments

Saudis must recognise Israel for nuclear deal, says Trump

https://www.bbc.com/news/articles/cwye71yq8wwo
1•thisislife2•23m ago•0 comments

YC rfs: is it ok "lowering the cost per kill" in startup world?

https://www.ycombinator.com/rfs
3•skobeltsyn•23m ago•0 comments

When China Gets Its Own Mythos

https://www.foreignaffairs.com/china/when-china-gets-its-own-mythos
1•verdverm•25m ago•1 comments

Guaranteed Wins

https://www.christopherburg.com/blog/guaranteed-wins/
1•speckx•25m ago•0 comments

How powerful is your passport?

https://www.theguardian.com/world/ng-interactive/2026/jul/23/most-powerful-passports-ranked
2•rwmj•26m ago•0 comments
Open in hackernews

The Emacs Widget Toolkit

https://appetrosyan.github.io/posts/emacs-widget.html
48•signa11•1y ago

Comments

spit2wind•1y ago
There's also the Emacs Widget Library[1] (which I hoped this posted would be about). It's a plain text widget library that's quite powerful. Unfortunately (and surprisingly for Emacs), the documentation for it could use some love.

My understanding of the Widget Library is that it attaches various keywords and plists to a symbol which is considered the "widget". The library otherwise consists of functions that expect certain keywords on the "widget" symbol in order to perform actions or to be drawn on the screen.

The challenge is, the documentation doesn't clearly lay out what the keyword API is. This makes it hard to compose widgets in ways beyond what's shown in the docs.

[1] https://www.gnu.org/software/emacs/manual/html_mono/widget.h...

appetrosyan•1y ago
The idea is that we extend that and give it direct access to SDL. Such that we can e.g. run a shader in the buffer background, or allow you to have floating windows (frames) interacting with each other.

I am very aware of the advantages conferred by TUI and I seek to expand those to the GUI; not dumb-down to the level of modern GUI toolkits (that to be fair are dealing with a completely different problem). Hopefully, this can lead to some ideas being easier to implement from within Emacs.

_mlbt•1y ago
Somewhat off topic, but I love all the references to Led Zeppelin’s incredible song, Stairway to Heaven.
gudzpoz•1y ago
Personally, and contrary to the article, I do prefer Emacs's plain text widgets over more "GUI-like" ones. Plain text widgets minimize the differences between TUI and GUI Emacs and also inherently offer text selection, searching, copying, and pasting, which nicely integrates with Emacs. I mean, not many GUI frameworks let you place a cursor within a button and select its text, do they? I believe this is a unique advantage of text-based widgets: while other GUI applications require a dedicated mechanism for searching through their settings, text-based widgets allow you to use any text-searching packages to perform these actions.

Reading through the article, the author seems to be hoping for a pure GUI approach with Emacs-like navigation mechanisms, but I am not convinced that this can be as flexible as text-based widgets. However, for packages used exclusively within a GUI environment (like el-easydraw [1], which relies quite heavily on SVG-based widgets), it would be nice to have a dedicated GUI widget library.

(There was a discussion on Reddit about this a week ago [2], and I saw some comments defending GTK and PGTK that might be worth reading.)

[1] https://github.com/misohena/el-easydraw/

[2] https://www.reddit.com/r/emacs/comments/1kcgwme/the_emacs_wi...

appetrosyan•1y ago
Author of the article.

This is what I was referring to when I talked about "rich verbs".

Many people feel that way. The idea here is not to tell you that you're wrong, but understand what you want and do it better on the GUI side. TUIs can do a lot and we should recognise their benefits. GUIs can do that too, and can sometimes do better things.

The text-based widgets done graphically do the trick. We can add stuff that can't be done in a TUI and see if they give you anything useful. If it can be done with text widgets means that it can be done in principle. GTK can't do it, and that's why I'm leaving it behind.

> (There was a discussion on Reddit about this a week ago [2], and I saw some comments defending GTK and PGTK that might be worth reading.)

The author of those comments abused their power on reddit. I will not get into the weeds, just say that I'd be happy to respond to the critique presented here in good faith.

LargoLasskhyfv•1y ago
PSA: Use The Lucid Toolkit https://irreal.org/blog/?p=12672

https://old.reddit.com/r/emacs/comments/1hlj04t/emacs_using_...

appetrosyan•1y ago
That's the best thing to do for the moment.
robobro•1y ago
404

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

appetrosyan•1y ago
Hi. I just migrated my blog to Hugo yesterday. The correct link is:

https://appetrosyan.github.io/posts/emacs-widget/

robobro•1y ago
Why did you delete the page?
appetrosyan•1y ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•1y ago
I agree and only use emacs in the console and love it. With the advent of lsp modes and real time typescript and linting it’s fantastic. But one thing I don’t like about the console is when LSP mode is giving you an in-line error on the right side of the terminal it’s wrapped and beautifully interspersed amongst your code, but it’s impossible to select multi line errors in order to paste into tools like ChatGPT. Since selecting the error, also selects your code on the left side.

Anyone have a good solution to this ?