frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A delightful Mac app to vibe code beautiful iOS apps

https://milq.ai/hacker-news
1•jdjuwadi•1m ago•1 comments

Show HN: Gemini Station – A local Chrome extension to organize AI chats

https://github.com/rajeshkumarblr/gemini_station
1•rajeshkumar_dev•2m ago•0 comments

Welfare states build financial markets through social policy design

https://theloop.ecpr.eu/its-not-finance-its-your-pensions/
2•kome•5m ago•0 comments

Market orientation and national homicide rates

https://onlinelibrary.wiley.com/doi/10.1111/1745-9125.70023
3•PaulHoule•6m ago•0 comments

California urges people avoid wild mushrooms after 4 deaths, 3 liver transplants

https://www.cbsnews.com/news/california-death-cap-mushrooms-poisonings-liver-transplants/
1•rolph•6m ago•0 comments

Matthew Shulman, co-creator of Intellisense, died 2019 March 22

https://www.capenews.net/falmouth/obituaries/matthew-a-shulman/article_33af6330-4f52-5f69-a9ff-58...
3•canucker2016•7m ago•1 comments

Show HN: SuperLocalMemory – AI memory that stays on your machine, forever free

https://github.com/varun369/SuperLocalMemoryV2
1•varunpratap369•8m ago•0 comments

Show HN: Pyrig – One command to set up a production-ready Python project

https://github.com/Winipedia/pyrig
1•Winipedia•11m ago•0 comments

Fast Response or Silence: Conversation Persistence in an AI-Agent Social Network [pdf]

https://github.com/AysajanE/moltbook-persistence/blob/main/paper/main.pdf
1•EagleEdge•11m ago•0 comments

C and C++ dependencies: don't dream it, be it

https://nibblestew.blogspot.com/2026/02/c-and-c-dependencies-dont-dream-it-be-it.html
1•ingve•11m ago•0 comments

Show HN: Vbuckets – Infinite virtual S3 buckets

https://github.com/danthegoodman1/vbuckets
1•dangoodmanUT•11m ago•0 comments

Open Molten Claw: Post-Eval as a Service

https://idiallo.com/blog/open-molten-claw
1•watchful_moose•12m ago•0 comments

New York Budget Bill Mandates File Scans for 3D Printers

https://reclaimthenet.org/new-york-3d-printer-law-mandates-firearm-file-blocking
2•bilsbie•13m ago•1 comments

The End of Software as a Business?

https://www.thatwastheweek.com/p/ai-is-growing-up-its-ceos-arent
1•kteare•14m ago•0 comments

Exploring 1,400 reusable skills for AI coding tools

https://ai-devkit.com/skills/
1•hoangnnguyen•15m ago•0 comments

Show HN: A unique twist on Tetris and block puzzle

https://playdropstack.com/
1•lastodyssey•18m ago•0 comments

The logs I never read

https://pydantic.dev/articles/the-logs-i-never-read
1•nojito•19m ago•0 comments

How to use AI with expressive writing without generating AI slop

https://idratherbewriting.com/blog/bakhtin-collapse-ai-expressive-writing
1•cnunciato•20m ago•0 comments

Show HN: LinkScope – Real-Time UART Analyzer Using ESP32-S3 and PC GUI

https://github.com/choihimchan/linkscope-bpu-uart-analyzer
1•octablock•21m ago•0 comments

Cppsp v1.4.5–custom pattern-driven, nested, namespace-scoped templates

https://github.com/user19870/cppsp
1•user19870•22m ago•1 comments

The next frontier in weight-loss drugs: one-time gene therapy

https://www.washingtonpost.com/health/2026/01/24/fractyl-glp1-gene-therapy/
2•bookofjoe•25m ago•1 comments

At Age 25, Wikipedia Refuses to Evolve

https://spectrum.ieee.org/wikipedia-at-25
2•asdefghyk•27m ago•4 comments

Show HN: ReviewReact – AI review responses inside Google Maps ($19/mo)

https://reviewreact.com
2•sara_builds•28m ago•1 comments

Why AlphaTensor Failed at 3x3 Matrix Multiplication: The Anchor Barrier

https://zenodo.org/records/18514533
1•DarenWatson•29m ago•0 comments

Ask HN: How much of your token use is fixing the bugs Claude Code causes?

1•laurex•32m ago•0 comments

Show HN: Agents – Sync MCP Configs Across Claude, Cursor, Codex Automatically

https://github.com/amtiYo/agents
1•amtiyo•33m ago•0 comments

Hello

2•otrebladih•34m ago•1 comments

FSD helped save my father's life during a heart attack

https://twitter.com/JJackBrandt/status/2019852423980875794
3•blacktulip•37m ago•0 comments

Show HN: Writtte – Draft and publish articles without reformatting, anywhere

https://writtte.xyz
1•lasgawe•39m ago•0 comments

Portuguese icon (FROM A CAN) makes a simple meal (Canned Fish Files) [video]

https://www.youtube.com/watch?v=e9FUdOfp8ME
1•zeristor•41m ago•0 comments
Open in hackernews

Let's write a toy UI library

https://nakst.gitlab.io/tutorial/ui-part-1.html
110•birdculture•1mo ago

Comments

self_awareness•1mo ago
It looks like WinAPI Window Management via CreateWindow / SetWindowText / SendMessage.

https://gist.github.com/a3f/22d0d2688b56e79865f8

imvetri•1mo ago
is it an application builder?
formerly_proven•1mo ago
If you don't keep it as a toy, it can get out of hand quickly. For example, here's the partial implementation of QWidget, almost 500k of code: https://github.com/qt/qtbase/blob/dev/src/widgets/kernel/qwi...
cosmic_cheese•1mo ago
I haven't yet written a UI library so it's not something I can state confidently, but based on adjacent work I've done, I imagine that a significant deal of complexity can be avoided by somewhat paradoxically embracing complexity early on and designing for all the eventualities.

UI frameworks are one place where outside of toy projects, YAGNI doesn't really apply as much, and so things like focus systems and accessibility affordances should be factored in from day one. If you go in with the attitude of writing something "elegant", you're going to end up bolting these things on after the fact and writing contorted code to make it all fit together. It's like finding out that you need a skyscraper after building foundations and framing for a cottage.

badsectoracula•1mo ago
FWIW it doesn't need to become 500k lines of code... or 13k in QWidget's case :-P. The file is large because it contains the full documentation in addition to the code but also in Qt is a QWidget can also be a (toplevel) window so it needs to support everything a window may want to support, including stuff like setting/getting title, maximize/minimize/etc events, etc.

You can avoid this complexity in the base widget class by placing those elsewhere, e.g. FLTK's base widget class[0] is much smaller at around 500 lines of code (+ documentation comments).

[0] https://github.com/fltk/fltk/blob/master/src/Fl_Widget.cxx

Mikhail_Edoshin•1mo ago
Seems to be exactly what I was looking for. Somehow it's not that easy to find a good explanation of these techniques. I tried old graphic programming books, but their sections on GUI are tiny.
whartung•1mo ago
Read the original Inside Macintosh, since that's about as fundamental and basic as it gets. See how they did the API for the Event, Window, and Control Mangers.
Mikhail_Edoshin•1mo ago
Thanks! I didn't think of that.
ctoth•1mo ago
Which of these 24 parts cover accessibility?

Ah, this one:

> That said, you could add a description string to the common element header that screen readers could use, but accessibility concerns are out of scope for this toy UI library.

I love it when tutorials teach people to ignore people like me.

Am I being harsh? Well where's the tutorial that teaches people how to do it properly? Where do people actually learn the right way if not here?

kvuj•1mo ago
I think you're being disingenuous. The author could have made this tutorial for the 90% of people that do not have these concerns. Time isn't free and projects people work on in their spare time shouldn't have these snarky comments in response.

> Am I being harsh? Well where's the tutorial that teaches people how to do it properly? Where do people actually learn the right way if not here?

I would love to read your blog post on how to do so! After all, since you seem to imply that time is free for everyone, you shouldn't have any problem making that blog post.

ctoth•1mo ago
The math: There are N tutorials written per year. There are M accessibility experts willing and able to write tutorials. N >> M by orders of magnitude. The ask is for M people to produce N parallel accessible versions of everything, forever, as a prerequisite for being allowed to point out the gap exists.
poly2it•1mo ago
This doesn't make sense. Why do M people need to write N accessibility tutorials to point out the gap in accessibility support? The same isn't true for localisation for example.
robin_reala•1mo ago
Leaving accessibility out of an UI library tutorial is like leaving security out of an API tutorial. It’s perfectly possible to build something that’s probably not a problem if you’re building a toy application, but if you haven’t done it right from the start it will absolutely bite you hard, and it’ll broadly be quicker to start over from scratch than try to fix the mess.
mikecsh•1mo ago
Please can you post a link to your own tutorial on this?
ctoth•1mo ago
Ah! So it's my responsibility to teach you how to program properly! I must now police every possible new tutorial, framework, library release, and if the author didn't include accessibility I should ... Make my complete alternative version of that thing! With Accessibility included! This is ... super Scalable!

Or, you know, if you say "This is how you make a UI library" maybe you could think about ... what a USER INTERFACE actually is? Because blind people are users? and we need to interface?

mikecsh•1mo ago
Do you not see the irony? If it's not your responsibility, why should it be the responsibility of the author of this tutorial?

People write tutorials on what they are interested in, what they have knowledge of, and what they want to share.

Accessibility is an important topic, to be sure, and is clearly of particularly high importance to you. Others might complain that they didn't include how to create a high performance table view, or embed an OpenGL view. I think most people, however, will take it as what it is - a well written, helpful contribution.

Your comment specifically asked if you were being harsh, and the consensus appears to be "yes". Perhaps if you worded things differently you might get a different response.

lelandfe•1mo ago
> is clearly of particularly high importance to you

Tactless.

aninteger•1mo ago
You could submit your PR to Nakst's Luigi toolkit: https://github.com/nakst/luigi

You don't have to make a complete alternative. You can add calls to ATK (accessibility toolkit) on Linux/Unix platforms. I'm not sure what needs to be done on Win32 platforms though.

mpalmer•1mo ago
Yes, I would say this is harsh.

Primarily because OP actually did call out accessibility as a concern. That is the opposite of teaching the reader to ignore people who use a11y features. Nor is it OP's responsibility to teach their readers anything they don't care to.

And yeah, where are the tutorials you'd like to see? That could have been a more constructive thing for you to share yourself instead of demanding it from no one in particular.

nkrisc•1mo ago
It's unfortunate that accessibility is so often neglected, but at the same time this tutorial seems to be more about the basic concepts of how a UI library works, not a complete overview of every aspect.

They also didn't include text rendering for scripts that are written right-to-left, nor for scripts that are written vertically, and that affects far more people than those who use screen readers.

Clearly they are not intending to provide a complete and comprehensive course on every aspect of the ideal UI library.

canyp•1mo ago
You're being unfair and need to get off your high horse or your wheelchair. I'm sure the accessibility can be iterated upon the basics of UI, not have to rewrite the whole thing from scratch; this tutorial only covers the basics, can't blame OP for that.

Rather, why don't you make your comment constructive and tell us about accessibility? I am sure there is an "accessibility for noobs" tutorial out there that the rest of us haven't discovered. I, for one, just recently learned about colour blindness in games and was absolutely mad when I saw what the example game in the book looks like to a colour-blind person. Not that I'm much of a designer, but I'll be sure to choose a universally-good colour palette next time I do any UI. So teach us instead of yelling at us.

self_awareness•1mo ago
I don't know if you're harsh, but one thing I've thought before I've clicked the link was "oh, another gui toolkit reinvention, I wonder how many times it will reinvent what's already invented and how many already solved problems it will simply ignore".

Well, I guess accessibility is one thing it skipped. It's a huge topic, I admit, so I'm not particularily surprised, but I think a better way for the author of this series would be to promote already existing huge toolkits that do have lots of functionalities built-in, including accessibility, like Qt for example.

That would be good also because already established huge toolkits have already answered a lot of important questions, questions which "modern" GUI toolkits simply ignore. New generations won't even know what we had when we were young.

xigoi•1mo ago
> oh, another gui toolkit reinvention

Imagine wanting to understand how an existing technology works…

nkrisc•1mo ago
The point of this isn’t to make another production-ready UI library. The point of it is to learn how UI libraries work by doing it yourself.

Do you walk into a beginner woodworkers class and scoff at them for making yet another birdhouse?

canyp•1mo ago
Have not read all of it but it looks great. Also like the minimalistic style of the website.