frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Aral Sea isn't just an ecological nightmare – it's a carbon bomb

https://grist.org/science/the-aral-sea-isnt-just-an-ecological-nightmare-its-a-carbon-bomb/
1•littlexsparkee•1m ago•0 comments

I Vibe Code Remotely

1•jashandeep31•1m ago•0 comments

Fable 5 dropped from subscriptions before the promised July 19 date

6•Ryan_Li•3m ago•4 comments

New Alzheimer's drug repairs DNA damage and reduces brain inflammation

https://www.sciencedaily.com/releases/2026/07/260711010118.htm
1•elo2000•3m ago•0 comments

A Year On: The DOGE Disaster

https://donmoynihan.substack.com/p/a-year-on-the-doge-disaster
1•jamesgill•4m ago•0 comments

Anthropic breaks July 19th promise, pulling plug in Fable 5

https://github.com/anthropics/claude-code/issues/78610
2•critic-of-slop•5m ago•1 comments

Video Call – one click away, free, no sign-up, no ads, unlimited use, E2EE

https://saito.io/videocall
2•euleron•6m ago•0 comments

Fable gone – Usage credits are required for this model

7•valdezm•6m ago•3 comments

Surprising emergent behavior of sorting algorithms – Michael Levin, Lex Fridman [video]

https://www.youtube.com/watch?v=jr1sNYY2t9A
1•lioeters•6m ago•0 comments

Fear of humanoid robots spurs human workers to strike at Hyundai auto factory

https://arstechnica.com/ai/2026/07/fear-of-humanoid-robots-spurs-human-workers-to-strike-at-hyund...
2•pjmlp•7m ago•0 comments

How View-Master Created 3D Worlds Before Computers [video]

https://www.youtube.com/watch?v=WNCGvOJOwIM
2•fortran77•7m ago•0 comments

Colorado uses tech and tip lines to enforce drought water restrictions

https://www.kunc.org/news/2026-07-17/colorado-water-suppliers-turn-to-computers-and-snitch-lines-...
1•01-_-•7m ago•0 comments

Opus 5 expected to launch on July 20-21

https://twitter.com/pankajkumar_dev/status/2078000475685929375
2•binyu•7m ago•0 comments

An AI agent that creates text posts and image ads for your business

https://feralhq.com/
1•creature_x•7m ago•1 comments

Playing with Particle Life [video]

https://www.youtube.com/watch?v=PPGODyqNFmc
1•iefbr14•8m ago•0 comments

SpaceX stock drops to a new low and loses $1T in value in a month

https://www.businessinsider.com/spacex-stock-drops-new-low-ipo-price-starship-launch-scrubbed-2026-7
4•01-_-•9m ago•0 comments

How we made our LeRobot video reader up to 15× faster

https://www.eventual.ai/blog/how-we-made-our-lerobot-video-reader-up-to-15x-faster
1•ykev•11m ago•0 comments

Fable moved to Usage Credits only 2 days early

https://twitter.com/VictorTaelin/status/2078182481342103983
5•rsingel•11m ago•1 comments

Cost Exploder – your AWS bill × 2³⁰

https://aws.mccullough.dev
6•beardsciences•13m ago•2 comments

Lego building instructions through time

https://www.lego.com/en-us/history/articles/d-lego-building-instructions-through-time
2•NaOH•14m ago•0 comments

Sandboxing LLM-Generated Python: How I Let Strangers' Prompts Fight Each Other

https://jcurcioconsulting.com/posts/sandboxing-llm-generated-python-how-i-let-strangers-prompted-...
1•Jeremy1026•15m ago•0 comments

Ask HN: Did Fable disappear from your Claude usage and requires credits now?

65•cromka•17m ago•59 comments

As Blazes Spread Near Paris, Extreme Heat Is Changing How France Fights Fires

https://www.nytimes.com/2026/07/17/france-forest-fires-extreme-heat.html
1•littlexsparkee•18m ago•0 comments

1999.ai: AI and dot-com déjà vu

https://www.profgmedia.com/p/1999ai
2•sgloutnikov•24m ago•0 comments

Bayeux Tapestry Returns to English Soil at the British Museum

https://apnews.com/article/bayeux-tapestry-british-museum-london-b62ee313ab3d4a2e00635587b84a4fbe
2•gmays•24m ago•0 comments

Kross – 2D Software Rasterizer from scratch in C

https://github.com/Kristaq77/kross
1•Kristaq77•24m ago•1 comments

Show HN: Bean Network Tester – a free tool to simulate bad network conditions QA

https://donislawdev.itch.io/bean-network-tester
1•donislawdev•25m ago•0 comments

Martin Picard's Mitochondrial Theory of Mind

https://www.quantamagazine.org/martin-picards-mitochondrial-theory-of-mind-20260717/
1•binyu•25m ago•0 comments

Competent Bureaucracy – Rebuilding State Capacity [pdf]

https://cdn.sanity.io/files/d8lrla4f/staging/cf7eedaf5d21d2746030c5b0599338fceef5ed4c.pdf
1•foolswisdom•25m ago•0 comments

Experiments at the nation's only all-digital nuclear reactor

https://www.purdue.edu/newsroom/2026/Q3/at-the-nations-only-all-digital-nuclear-reactor-engineers...
1•SoftTalker•26m ago•1 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 ?