frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Native all the way, until you need text

https://justsitandgrin.im/posts/native-all-the-way-until-you-need-text/
74•dive•1h ago•44 comments

I don't think AI will make your processes go faster

https://frederickvanbrabant.com/blog/2026-05-15-i-dont-think-ai-will-make-your-processes-go-faster/
41•TheEdonian•58m ago•18 comments

Every AI Subscription Is a Ticking Time Bomb for Enterprise

https://www.thestateofbrand.com/news/ai-subscription-time-bomb
28•mooreds•1h ago•16 comments

Apple Silicon costs more than OpenRouter

https://www.williamangel.net/blog/2026/05/17/offline-llm-energy-use.html
43•datadrivenangel•1h ago•26 comments

Zerostack – A Unix-inspired coding agent written in pure Rust

https://crates.io/crates/zerostack/1.0.0
458•gidellav•14h ago•230 comments

Prolog Basics Explained with Pokémon

https://unplannedobsolescence.com/blog/prolog-basics-pokemon/
49•birdculture•2d ago•6 comments

Mozilla to UK regulators: VPNs are essential privacy and security tools

https://blog.mozilla.org/netpolicy/2026/05/15/mozilla-to-uk-regulators-vpns-are-essential-privacy...
352•WithinReason•6h ago•143 comments

A nicer voltmeter clock

https://lcamtuf.substack.com/p/a-nicer-voltmeter-clock
236•surprisetalk•14h ago•29 comments

Colossus: The Forbin Project

https://en.wikipedia.org/wiki/Colossus:_The_Forbin_Project
134•doener•2d ago•46 comments

Hosting a website on an 8-bit microcontroller

https://maurycyz.com/projects/mcusite/
163•zdw•11h ago•13 comments

Moving away from Tailwind, and learning to structure my CSS

https://jvns.ca/blog/2026/05/15/moving-away-from-tailwind--and-learning-to-structure-my-css-/
587•mpweiher•1d ago•329 comments

OpenAI and Government of Malta partner to roll out ChatGPT Plus to all citizens

https://openai.com/index/malta-chatgpt-plus-partnership/
230•bookofjoe•16h ago•278 comments

Playing Atari ST Music on the Amiga with Zero CPU

https://arnaud-carre.github.io/2026-05-15-ym-fast-emu/
70•z303•5h ago•22 comments

Mado: Fast Markdown linter written in Rust

https://github.com/akiomik/mado
12•nateb2022•2d ago•2 comments

SANA-WM, a 2.6B open-source world model for 1-minute 720p video

https://nvlabs.github.io/Sana/WM/
359•mjgil•1d ago•141 comments

How Diamonds Are Made

https://diamond.jaydip.me/
16•lemonberry•1d ago•2 comments

Twilight of the Velocipede: Typesetting Races Before the Age of Linotype

https://publicdomainreview.org/essay/twilight-of-the-velocipede/
28•benbreen•15h ago•0 comments

Illusions of understanding in the sciences

https://link.springer.com/article/10.1007/s42113-026-00271-1
60•sebg•2d ago•30 comments

We've made the world too complicated

https://user8.bearblog.dev/the-world-is-too-complicated/
331•James72689•1d ago•329 comments

The Third Hard Problem

https://mmapped.blog/posts/48-the-third-hard-problem
104•surprisetalk•3d ago•50 comments

Accelerando (2005)

https://www.antipope.org/charlie/blog-static/fiction/accelerando/accelerando.html
308•eamag•1d ago•176 comments

Why did Clovis toolmakers choose difficult quartz crystal?

https://phys.org/news/2026-04-clovis-toolmakers-difficult-quartz-crystal.html
33•PaulHoule•2d ago•20 comments

Frontier AI has broken the open CTF format

https://kabir.au/blog/the-ctf-scene-is-dead
392•frays•1d ago•411 comments

Halt and Catch Fire

https://unstack.io/halt-and-catch-fire
161•ScottWRobinson•18h ago•80 comments

MCP Hello Page

https://www.hybridlogic.co.uk/blog/2026/05/mcp-hello-page
113•Dachande663•14h ago•36 comments

Roman Letters

https://romanletters.org/
48•diodorus•2d ago•10 comments

δ-mem: Efficient Online Memory for Large Language Models

https://arxiv.org/abs/2605.12357
226•44za12•1d ago•58 comments

Unknowable Math Can Help Hide Secrets

https://www.quantamagazine.org/how-unknowable-math-can-help-hide-secrets-20260511/
58•Xcelerate•3d ago•13 comments

A molecule with half-Möbius topology

https://www.science.org/doi/10.1126/science.aea3321
101•bryanrasmussen•4d ago•7 comments

C++26 Shipped a SIMD Library Nobody Asked For

https://lucisqr.substack.com/p/c26-shipped-a-simd-library-nobody
159•signa11•2d ago•119 comments
Open in hackernews

Native all the way, until you need text

https://justsitandgrin.im/posts/native-all-the-way-until-you-need-text/
72•dive•1h ago

Comments

PaulHoule•1h ago
Yep. Electron is the worst way to make a desktop app… except for all the others!
cyber_kinetist•43m ago
I just wish there was a native Markdown renderer / editor library in C that I can use cross-platform - in the style of something like IMGUI (where the library outputs a list of primitives for you to render yourself in any graphics API).

Or well... since we now have Claude I might have a jab at this someday in my free time.

nicoburns•30m ago
For just rendering (no editing) you could use https://github.com/litehtml/litehtml (C) or https://github.com/DioxusLabs/blitz (Rust).

Both are actually lightweight HTML rendering libraries, so you need to compile markdown to HTML to use them. But there are many libraries for that.

cyber_kinetist•22m ago
Does it mix well with text input? What I really want is a native WYSIWYG Markdown editor - in a similar fashion to Typora (Electron) or Milkdown (a JS library).
nicoburns•13m ago
Blitz has good plaintext text input support. But there's no contenteditable (which is what you would need for rich text editing) yet.

litehtml appears to have no built-in text input support so far as I can see.

elch•42m ago
How is "performance" defined? Does it take into account the amount of memory required in each case?
Filligree•41m ago
The purpose of limiting memory use is so your computer does not become laggy as you run out of memory. We don’t do it for its own sake.

But then, what’s the point in using an inherently laggy technique to save memory?

elch•39m ago
How about running many tasks on the machine at the same time?
skeledrew•13m ago
Apparently devs forget that there are other apps running on the target machines. It's OK to just gobble as much of the resources as possible.
elch•10m ago
I am sure that they use MacBook Neo for development. /s
dive•26m ago
Was going to answer almost the same.

This is my pet project, a desktop app for working with xAI models & capabilities, so by "performance" I mostly mean "pleasant to use" (as it goes, simple & opinionated). Technically speaking, something like: stable FPS, no visible lags, and the ability to scroll smoothly while the model is streaming.

Regarding the parent comment: yes, memory is important, and I absolutely get the point. There should be a red line, for sure. But I will not sacrifice UX, productivity, and simple pleasure from using software just to save a few hundred megabytes of RAM (or even a few gigabytes) especially for an app I spend hours with behind the screen.

Memory consumption can & should be optimised with proper engineering for sure. As lags & inadequate performance in basic SDK-level primitives are much harder (impossible?) to fix from the outside.

desdenova•23m ago
The purpose of not wasting memory is so we have free memory to use productively.

What's the point of having 64-128GB of RAM if we're using apps that eat 10GB to do the same things we were doing 20 years ago using a few MB?

dist-epoch•13m ago
first you make it correct, than you make it fast

a fast performant incomplete solution will lose to a slow correct complete one

inatreecrown2•34m ago
Not just text. Try to build a ui where you need non-trivial and non-standard behavior and SwiftUI will fail. AppKit is still better in this regard.
splittydev•33m ago
I've had pretty much the same experience with my AI chat app. Nothing works well. Markdown rendering is slow and laggy, streaming is slow and laggy, everything locks up the UI. I've tried at least 5 of the most popular text editor components for UIKit and SwiftUI on GitHub, and all were broken in one way or another, buggy, and slow as well. It's ridiculous.
rTX5CMRXIfFG•33m ago
Show your code, or show you the door. There are so many native Mac and iOS apps out there right now perfectly capable of rendering Markdown and streaming text. You just gotta wonder what is this guy’s excuse.
rafaelmn•25m ago
Without web view ? Share the code ?
BoredPositron•13m ago
No, you...
replygirl•12m ago
OP says "you want to select a whole Markdown document built from SwiftUI primitives", but who wants that? what sort of product thinking tells us we want that? that sounds like a document editor, which has been hard to build for decades and sounds out of scope for an llm chat ui. everyone has landed on only supporting selection within each contiguous block, with a copy button for the entire message
danielvaughn•32m ago
I remember being a junior engineer in 2015, and being asked to render a clickable link within a paragraph in an iOS app. Swift had just been released so we were still entirely on the ObjC/UIKit stack. It was an absolute nightmare. I _barely_ managed to make it work. I haven't really touched iOS since about 2016, so I assumed the new SwiftUI stuff would have this stuff built in. Obviously. Kind of insane that it wasn't.
nly•22m ago
Qt made this pretty easy 10 years ago
jagged-chisel•20m ago
I thought attributed text handled this fine since forever. Did it not?
sirwhinesalot•20m ago
NSLinkAttributeName?
Y-bar•7m ago
My thought exactly. However, Apple’s developer documentation has never been particularly helpful, so I don’t blame very much for missing that.
chromadon•32m ago
This is where QT/JUCE can help. Although you are limited to c++.
bluGill•21m ago
It is tricky, but it is not unheard of to write Qt applications as something other than C++.
ryandrake•31m ago
I don’t recall ever struggling with NSTextView. I never really got into Swift, but I’ve never found Cocoa / Objective C to have any of the problems the author mentioned.

Not exactly sure what “streaming” text is, but serial terminal software has been handling incremental text rendering and updating for decades, without performance struggles.

usernametaken29•31m ago
Kotlin MP is also pretty decent on Mac
saagarjha•28m ago
You can just embed a web view in your app, though?
camgunz•24m ago
I thought models were so good we could vibecode a text renderer for $50. What's the problem here? /s
Wowfunhappy•23m ago
If you're on macOS, WebKit is a native OS framework. Using WebKit to render Markdown seems completely appropriate.

Now, if you're rendering everything with WebKit, that's ridiculous, in the same way rendering everything with PDFKit would be ridiculous. But for a Markdown view, WebKit seems like a logical choice. There's no need to subsequently flip the table and replace everything with a Chromium web app.

stavros•11m ago
But why would you expect to use WebKit to render rich text? If using an HTML/CSS/JS renderer to render text is "completely appropriate", what isn't appropriate for it? Why would you not render everything with it?

I don't understand how you go from "rendering text is completely appropriate" but then "rendering everything is ridiculous".

diego_moita•23m ago
Outside of niche applications (e.g. virtual desktops, gamming, embedded systems) native UIs are dead.

There are even parts of both Windows and MacOS rendered through HTML. If I remember correctly, at least in Windows 10, File Explorer was rendered through Internet Explorer.

Web rendering doesn't need to be only through Electron/Node. There are other libraries much more performant and lean (Dioxus, etc).

vasco•22m ago
I once tried mobile development in semi early days android. At the time I made a free Hackaday reader app because I was a daily reader and loved it.

I remember spending 4 hours to make a scrollable element that wasn't jumpy or buggy. There were several stackoverflow answers full of gotchas explaining all you had to do. I finished and published the app but never again. Native stuff has terrible developer experience.

sirwhinesalot•22m ago
If you need to display HTML content (what Markdown usually translates to) then WKWebView is the control to use! Or use something like litehtml which should be more than enough for Markdown unless you want to support "Animated Gifs" (that are actually H.264 movies these days) or whatever else.

You can still use native controls for the rest of the UI and have 0 Javascript running. I'm not sure I understand what the problem with NSTextView was though. It's pretty performant as far as I can tell?

pjmlp•19m ago
I was using Markdown text editors with WPF back in 2012....

And yes WPF is a framework native to the Windows platform ecosystem.

skeledrew•18m ago
> how immature all these “native” things still are when you step outside simple screens

Well yeah. If people don't invest sufficient effort in a thing why would there be an expectation for that thing to become mature? People are locked into web tech because that's where the greater majority of the effort has been going. Quite literally people look at native, say it isn't developed enough, and go develop for the web even more. Cycle repeats. Hardly anyone wants to put in the effort to improve native when things already "just work" for the browser.

DrewADesign•9m ago
Sure, but those the native UI dev kits are commercial products, right? Isn’t it their job to sell them to people — not people’s job to sell themselves on it? Part of the reason web stuff is so much more mature is the unwillingness of the big commercial OS manufacturers to keep up with the times. Windows UI kits are a hot fucking mess.
dist-epoch•15m ago
the only place where native UI is still better is for ultra-complex UIs - image/video/3d/audio editors. and only because it's easier to create custom UI widgets/renderers than on web stack.

that's it, for everything else native UIs are complete garbage compared to HTML/CSS/reactive frameworks.

pornel•12m ago
Usually performance was the reason for using native APIs rather than web views, but this doesn't seem to be true any more.

Browser rendering engines are pretty mature at this point, with significant GPU acceleration, and over a decade stress-testing by bloated web apps.

Meanwhile SwiftUI doesn't feel particularly fast. Apple's latest and greatest rewrite of System Preferences has dumbed down the UI to mostly rows of checkboxes, and yet switching between sections can lag worse than loading web pages from us-east-1.

d12bb•10m ago
Why not use native for UI frame (menu, toolbar, conversation list etc) and WebKit for the actual chat? I think that would combine the best of both worlds.
lenkite•9m ago
> But I still cannot make a simple thing work properly: a chat with Markdown & the ability to select a whole message.

Sorry, sounds like bullsh_t. One can leverage mature markdown renderers in SwiftUI. See https://github.com/gonzalezreal/swift-markdown-ui and its next gen replacement https://github.com/gonzalezreal/textual .

Used these myself and had no issues. And I am a moron who doesn't like Swift or SwiftUI - preferred Objective-C, but still managed to do this, without any LLM help.

simonw•2m ago
Can those handle streaming in new text without flickering?