frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

White House deletes web pages about energy conservation as heatwave slams US

https://www.theverge.com/policy/961449/white-house-mamdani-heatwave-deletion
1•amarcheschi•37s ago•0 comments

Show HN: Gubbi – Minimalist LLM Chatbot

https://github.com/prahladyeri/gubbi
1•pyeri•2m ago•0 comments

Our New American Kei Truck

https://www.youtube.com/watch?v=vJJa9zBDa6A
1•initramfs•4m ago•1 comments

Show HN: KiCad in the Browser

https://demo.pcbjam.com/
1•ViktorEE•4m ago•1 comments

Unofficial Starlink Global Gateways and Pops

https://www.google.com/maps/d/viewer?mid=1805q6rlePY4WZd8QMOaNe2BqAgFkYBY&hl=en
1•jenders•5m ago•0 comments

Show HN: Agent Torrent, a BitTorrent inspired mesh for idle coding agents

https://github.com/raghavan/agent-torrent
1•raghavankl•6m ago•0 comments

PrimeNG is no longer open source

https://primeui.dev/nextchapter
1•charlesabarnes•10m ago•0 comments

Cannabis Users Face Substantially Higher Risk of Heart Attack

https://www.acc.org/about-acc/press-releases/2025/03/17/15/35/cannabis-users-face-substantially-h...
1•RickJWagner•11m ago•1 comments

Show HN: TraceTree – Sandboxed behavioral analysis for NPM and PyPI packages

https://github.com/tejasprasad2008-afk/TraceTree
1•Tejas_dmg•13m ago•0 comments

Sycophantic AI decreases prosocial intentions and promotes dependence

https://www.science.org/doi/full/10.1126/science.aec8352
2•delichon•16m ago•0 comments

Introduction to Compilers and Language Design

https://dthain.github.io/books/compiler/
1•AlexeyBrin•16m ago•0 comments

Show HN: Ferroterm – Rust / WebAssembly Terminal Emulator and Library

3•sylwester•18m ago•0 comments

Programmers need to start meditating now

1•pythonRon•19m ago•1 comments

Accelerating the Quantum-Safe Timeline

https://www.microsoft.com/en-us/security/blog/2026/06/30/microsoft-advances-quantum-safe-security...
1•giuliomagnifico•24m ago•0 comments

T3MP3ST autonomous red team platform multi-agent offensive-security meta-harness

https://github.com/elder-plinius/T3MP3ST
1•882542F3884314B•24m ago•0 comments

EU Council forces Chat Control via fast-track

https://www.heise.de/en/news/Chat-Control-1-0-EU-Council-forces-messenger-scans-via-fast-track-11...
2•stavros•27m ago•1 comments

Prediction Markets Let You Bet on Whether a Wildfire Will Burn Down Your Town

https://www.wired.com/story/prediction-markets-let-you-bet-wildfire/
2•beardyw•27m ago•2 comments

Peregrine Falcon: The Fastest Animal on Earth at 390 km/h

https://strangeanimals.info/birds/raptors/peregrine-falcon-fastest-animal
1•thunderbong•28m ago•0 comments

Ask HN: Is HN crowd a left-leaning?

4•eimrine•35m ago•0 comments

UK plans to give established media more visibility on YouTube

https://www.theguardian.com/media/2026/jun/22/uk-youtube-tiktok-established-media-prominence-misi...
1•j-bos•37m ago•0 comments

Latent Collaboration in Multi-Agent Systems

https://github.com/Gen-Verse/LatentMAS
1•_pdp_•39m ago•0 comments

DeltaChat 2.48: zero metadata, group description, native audio/video call & more

https://delta.chat/en/2026-03-31-zero
1•xeonmc•39m ago•0 comments

Spain's cadastre API is SOAP from 2003, so I built a JSON wrapper (+MCP)

https://prediohq.com/
2•guillermofc•40m ago•0 comments

The Revenge of the Philosophy Majors

https://www.nytimes.com/2026/07/05/business/philosophy-majors-ai-jobs.html
3•Kaibeezy•41m ago•0 comments

What We Can't Measure About AI Yet

https://aeon.co/essays/what-we-cant-measure-about-ai-yet
2•worldvoyageur•42m ago•1 comments

Wikipedia Is Battling for the Soul of the Internet

https://www.nytimes.com/2026/07/05/business/media/wikipedia-ai-elon-musk.html
3•cainxinth•48m ago•0 comments

Durian Montong

https://blog.cloudflare.com/welcome-to-connectivity-cloud/
1•basri•50m ago•0 comments

Was Homer's Ithaca an Island?

https://antigonejournal.com/2026/07/in-search-of-ithaca/
1•Hardy_Boy•51m ago•0 comments

I built a Figma for traders and investors – all in on tab

https://fynca.io/
1•adiabramov•51m ago•0 comments

Show HN: Skred – my opinionated sound/pattern engine and live coding thingy

https://octetta.github.io/pulp/doc/show-hn-1.html
3•octetta•59m 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 ?