frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Is it possible to craft a privacy policy that perpetually protects users

1•newswangerd•11s ago•0 comments

US Debt Crosses 100% of GDP for First Time Since 1946 and This Time Is Different

https://thedailyeconomy.org/article/us-debt-crosses-100-of-gdp-for-first-time-since-1946-and-this...
1•abdelhousni•23s ago•0 comments

The Vertical Codebase

https://tkdodo.eu/blog/the-vertical-codebase
1•ulrischa•34s ago•0 comments

Show HN: Paracosm – simulate what-if scenarios with AI agents

https://paracosm.agentos.sh/sim
1•johnnyfived•1m ago•0 comments

Show HN: AHD – an open-source linter and eval framework for AI-generated UI

https://ahd.adastra.computer/
2•HereticLocke•4m ago•0 comments

Wikipedia Goes For-Profit

https://old.reddit.com/r/ChatGPT/comments/1t2hjoq/wikipedia_goes_forprofit/
1•us321•5m ago•0 comments

A Theory of Generalization in Deep Learning

https://arxiv.org/abs/2605.01172
1•E-Reverance•6m ago•0 comments

Math long resisted a digital disruption. AI is poised to change that

https://www.sciencenews.org/article/math-disrupted-by-ai-verify-proofs
2•digital55•7m ago•0 comments

The performance bug hiding in our Cloud Run billing settings

https://oblique.security/blog/the-performance-bug-hiding-in-our-billing-settings/
3•ericchiang•10m ago•1 comments

A list of known issues with passkey implementations in popular password managers

https://passkeys.dev/docs/reference/known-issues/
3•Cider9986•10m ago•0 comments

Google, Microsoft, and xAI will allow the government to review their new models

https://www.theverge.com/ai-artificial-intelligence/924017/google-microsoft-xai-government-review
3•ambigious7777•11m ago•0 comments

Right Types, Wrong Code: Surprising Bugs a Python Type Checker Catches

https://pyrefly.org/blog/surprising-errors/
2•ocamoss•11m ago•0 comments

Yann LeCun's $1B Bet Against LLMs [video]

https://www.youtube.com/watch?v=kYkIdXwW2AE
3•tanishqkanc•12m ago•0 comments

UNIMATRIx – A Society of AI Agents

https://github.com/gslf/UNIMATRIx
2•gslf•12m ago•0 comments

US Government Expands Vetting of Frontier AI Models for Security Risks

https://www.politico.com/news/2026/05/05/microsoft-xai-google-caisi-safety-testing-00906529
4•r3trohack3r•13m ago•1 comments

Trump Pressures FDA Commissioner to Approve Flavored Vapes

https://www.wsj.com/politics/policy/trump-pressures-fda-commissioner-to-approve-flavored-vapes-9d...
4•impish9208•14m ago•1 comments

Donald Trump Is Elected President (2016)

https://www.bbc.com/news/election-us-2016-37920175
2•downbad_•14m ago•2 comments

DuckDB ↔ Arrow Compatibility: A Status Page

https://rusty.today/blog/duckdb-arrow-compatibility-status/
2•rustyconover•14m ago•0 comments

Show HN: I'm paying senior engineers to read B2B content

https://www.nexertise.com/founding
3•yisrael_g•15m ago•0 comments

Damnlines / NYC Restaurant Lines

https://damnlines.com/
2•lucastgordon•15m ago•0 comments

Why interaction is more powerful than algorithms (1997) [pdf]

https://www.lri.fr/~mbl/ENS/FONDIHM/2013/papers/Wegner-CACM97.pdf
2•aragonite•15m ago•0 comments

PayPal to Cut 20% of the Workforce

https://rollingout.com/2026/05/05/paypal-pypl-workforce-cuts-turnaround/
3•upupupandaway•18m ago•0 comments

PySimpleGUI 6

https://github.com/PySimpleGUI/PySimpleGUI
2•geophph•18m ago•0 comments

Show HN: AI-DLC-UML (AI-Driven Development Life Cycle with UML Modeling)

https://github.com/takaakit/ai-dlc-uml
2•takaakit•19m ago•0 comments

AI Generated Content Broke the Social Contract

https://jfdi.bot/blog/ai-generated-content-broke-the-social-contract/
1•Swizec•21m ago•0 comments

Build secure OS agents with LangGraph

https://gantrygraph.com/quickstart
1•alekkk777•22m ago•0 comments

You only see typos after you post

https://diels-daydreams.bearblog.dev/you-only-see-typos-after-you-post/
1•speckx•22m ago•0 comments

J for C Programmers

https://www.jsoftware.com/help/jforc/_.htm
1•tosh•23m ago•0 comments

California farmers to destroy 420k peach trees following Del Monte bankruptcy

https://www.sfgate.com/centralcoast/article/usda-aid-california-farmers-22240694.php
23•littlexsparkee•23m ago•5 comments

Show HN: Explore color palettes inspired by 3000 master painter artworks

https://paletteinspiration.com/
2•ouli•24m ago•0 comments
Open in hackernews

The Emacs Widget Toolkit

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

Comments

spit2wind•11mo 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•11mo 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•11mo ago
Somewhat off topic, but I love all the references to Led Zeppelin’s incredible song, Stairway to Heaven.
gudzpoz•11mo 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•11mo 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.

robobro•11mo ago
Why did you delete the page?
appetrosyan•11mo ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•11mo 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 ?

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

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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