frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Altruistic disease signalling in ant colonies

https://www.nature.com/articles/s41467-025-66175-z
1•ChrisArchitect•53s ago•0 comments

The Vibrant Garden of Imagination

https://www.imaginationgardenworks.com
1•TheVibrantG•57s ago•0 comments

Kroger's Surveillance Pricing Harms Consumers and Raises Prices

https://epic.org/krogers-surveillance-pricing-harms-consumers-and-raises-prices-with-or-without-f...
1•walterbell•3m ago•0 comments

Plotnine 0.15.1

https://plotnine.org/gallery/
1•nothrowaways•5m ago•0 comments

YouTube Set to Comply with Australia's Under-16s Ban

https://www.bloomberg.com/news/articles/2025-12-02/youtube-finally-set-to-comply-with-australia-s...
2•donohoe•5m ago•0 comments

Amber: A Language Compiled to Bash

https://amber-lang.com/
2•thunderbong•8m ago•0 comments

Zhuque-3: Stage 1 failure during the landing burn

https://twitter.com/dpoddolphinpro/status/1996069551365095849
1•perihelions•10m ago•0 comments

Understanding ECDSA

https://avidthinker.github.io/2025/11/28/understanding-ecdsa/
5•avidthinker•13m ago•0 comments

Ellora: Enhancing LLMs with LoRA Standardized Recipes for Capability Enhancement

https://huggingface.co/blog/codelion/ellora-lora-recipes
1•codelion•17m ago•0 comments

America is foolishly waving goodbye to Chinese boffins

https://www.economist.com/china/2025/12/02/america-is-foolishly-waving-goodbye-to-thousands-of-ch...
4•petethomas•20m ago•0 comments

Show HN: Spacebar Clicker – A Minimal Space Key Speed Test for Reaction Training

https://typingfast.org/en/Space
1•jokera•20m ago•0 comments

Luarrow – True pipeline operators and elegant Haskell-style function compositio

https://github.com/aiya000/luarrow.lua
1•todsacerdoti•22m ago•0 comments

Japanese game devs face font dilemma as license increases from $380 to $20k

https://www.gamesindustry.biz/japanese-devs-face-font-licensing-dilemma-as-leading-provider-incre...
3•zdw•23m ago•0 comments

Writing Computer Science from Scratch

http://www.observationalhazard.com/2025/12/writing-computer-science-from-scratch.html
1•WoodenChair•25m ago•0 comments

Git Rev News Edition 129 (November 30th, 2025)

https://git.github.io/rev_news/2025/11/30/edition-129/
1•chmaynard•27m ago•0 comments

Predict Race and Ethnicity Based on the Sequence of Characters in a Name

https://github.com/appeler/ethnicolr
1•neehao•30m ago•0 comments

Short Form vs. Long Lecture Videos

1•bibin765•30m ago•0 comments

Show HN: Free AI photo editor that preserves face identity

https://bananaeditor.art/
1•Caron77•34m ago•0 comments

Big Paychecks Can't Woo Enough Sailors for America's Commercial Fleet

https://www.wsj.com/business/logistics/big-paychecks-cant-woo-enough-sailors-for-americas-commerc...
2•andrewrn•37m ago•2 comments

Attoboy: New beginner-friendly C++ library for making small Windows exes

https://coeurnix.github.io/attoboy/
3•coeurnix•44m ago•0 comments

Japan's low-crime image cracking as car thefts, home intrusions rise

https://english.kyodonews.net/articles/-/65815
3•rawgabbit•48m ago•1 comments

India Says Mandatory Phone App Can Be Deleted After Backlash

https://www.bloomberg.com/news/articles/2025-12-03/india-says-mandatory-phone-app-can-be-deleted-...
3•SanjayMehta•48m ago•0 comments

A comprehensive criticism of C++ [video]

https://www.youtube.com/watch?v=7fGB-hjc2Gc
1•odie5533•48m ago•0 comments

What If Linus Torvalds Gets Hit by a Bus? (2000)

https://www.crummy.com/writing/segfault.org/Bus.html
2•LorenDB•51m ago•2 comments

Building an AI memorial portrait generator: architecture and lessons

https://medium.com/@fjzll.nju/building-an-ai-memorial-portrait-generator-architecture-trade-offs-...
1•fjzll•51m ago•1 comments

LandSpace could become China's first company to land a reusable rocket

https://arstechnica.com/space/2025/12/this-chinese-company-could-become-the-countrys-first-to-lan...
2•perihelions•51m ago•0 comments

Font

1•Toony•54m ago•0 comments

AI may be scoring your college essay. Welcome to the new era of admissions

https://apnews.com/article/ai-chatgpt-college-admissions-essays-87802788683ca4831bf1390078147a6f
4•rawgabbit•54m ago•0 comments

RISC OS – A New Hope

https://www.riscosopen.org/news/articles/2025/11/20/episode-iv-a-new-hope
2•andsoitis•57m ago•0 comments

Qoder Releases JetBrains Plugin

https://qoder.com/download
1•heyu0328•1h ago•1 comments
Open in hackernews

The Emacs Widget Toolkit

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

Comments

spit2wind•6mo 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•6mo 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•6mo ago
Somewhat off topic, but I love all the references to Led Zeppelin’s incredible song, Stairway to Heaven.
gudzpoz•6mo 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•6mo 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•6mo ago
Why did you delete the page?
appetrosyan•6mo ago
Didn't. I migrated to `hugo` and it trims off the `.html` at the end. The permalink is the same.
matt-attack•6mo 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•6mo ago
PSA: Use The Lucid Toolkit https://irreal.org/blog/?p=12672

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

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

Page Not Found

Sorry, this page does not exist.

You can head back to the homepage.

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

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