Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    11comments
  2. I don't like passkeys(hawksley.dev ↗)
    1comments
  3. OpenJev(openjev.com ↗)
    114comments
  4. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    17comments
  5. Jemalloc 5.4.0(github.com/jemalloc ↗)
    54comments
  6. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    240comments
  7. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  8. The scourge of x86 emulation(fex-emu.com ↗)
    37comments
  9. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    3comments
  10. Astra for Law(openai.com ↗)
    609comments
  11. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    146comments
  12. Replacing Pull Requests with Delta(zed.dev ↗)
    18comments
  13. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    239comments
  14. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    20comments
  15. Qwen 3.8 Omni Flash(qwen.ai ↗)
    91comments
  16. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    173comments
  17. Wax motor(wikipedia.org ↗)
    77comments
  18. When the fractional part of a float fixes your shader(crocidb.com ↗)
    8comments
  19. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    236comments
  20. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    47comments
  21. Dr Julius Neubronner's Miniature Pigeon Camera(publicdomainreview.org ↗)
    discuss
  22. How to Write with an LLM(sockpuppet.org ↗)
    133comments
  23. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    161comments
  24. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    17comments
  25. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    27comments
  26. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    69comments
  27. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    29comments
  28. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    45comments
  29. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss
  30. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    376comments

Flet 1.0 – Build cross-platform apps in Python

136 pointsby 15h agoflet.dev
69 comments
15h agoHN ↗

Interesting, looks like this is a framework built on Flutter.

15h agoHN ↗

Yeah, I have been doing a small poc for mobile, then did a web export (why not) and the entire web app is one giant <canvas> element.

I have never written web app with Flutter so this caught me by surprise.

14h agoHN ↗

Looks really interesting, but I notice that Bluetooth isn't in the supported services.

Sort of limits how useful it would be for me - Bluetooth is one of the only reasons I'd do a native app instead of PWA.

13h agoHN ↗

Using a to-do list app as the first example to advertise a new app framework is absolutely wild in Q3 2026.

13h agoHN ↗

Is it more fashionable to build an AI harness?

12h agoHN ↗

That's fine, but a blog doesn't seem technically more demanding or interesting than a to-do list

11h agoHN ↗

wasn't the original ruby on rails demonstrating how to create a blog? I think it was a call back to that 2004 era....

11h agoHN ↗

They didn't even show a prompt box with starry icon button!

4h agoHN ↗

Because it's literally the least impressive thing you can build and in a world where I don't write the code anyway, a "hello world" example has lost its place (at least for human viewers).

8h agoHN ↗

It's one of the standard benchmarks for web frameworks.

No clue why it's being done here.

4h agoHN ↗

I genuinely have no idea what this comment is about. Why is a to do list a bad example? It's common precisely because it's ideal: it shows a few different basic widgets, and it shows how to update state in a way that keeps them in sync.

Is it because it's clichéd? That doesn't matter so long as it gets the point across.

Is it because you object to having desktop applications that do a simple task like this? I remember when simple single-purpose desktop apps were common e.g. Card File in Windows 3.1. Also this is meant to be an example for both desktop and mobile. Are only SPA web pages allowed to do things like this now? What a depressing world if so.

Or is your comment satire? I honestly can't tell.

Edit: What would you allow as a first example of a new UI toolkit. (Not that Flet is new, it's had plenty of 0.x releases.)

4h agoHN ↗

I don't think there is demand for this framework in the first place.

- Cross platform frameworks are starting to become an anti pattern these days

- Hello world examples are losing relevance when I'm not the one writing code

- A To Do list is just the absolute least impressive thing you can showcase

From a marketing perspective, I want to showcase something that other frameworks cannot do and "this only took 10 lines of Python code" is a very weak sales pitch in 2026.

3h agoHN ↗

OK, I think your main objection is really that you don't like the idea of a cross platform UI toolkit. I don't share that view, but fair enough. But your first comment, complaining about a to-do list example, is a very confusing way of expressing that.

And you think the front page shouldn't show a basic example because you just vibe code everything anyway. That is a very odd objection - it would be very concerning if a code library didn't include a basic usage example on its front page. Also, guess what, some of us do actually write (or at least look at!) some of the code in the programs we work on. And even AI benefits from a clean API.

And your complaint about a to do list is that it's not "impressive"? It's not meant to be! It's a basic illustration of the API. It's like reading the Rust tutorial and objecting, "ugh, another programming language with for loops".

1h agoHN ↗

My main argument is that if you want my attention in a world where an AI agent can build me a native iPhone app in 30min, you need to do better than showing me a to do list app in the hero of your landing page. Your comparison doesn't hold at all. This is not a tutorial page called "first steps", it is the first showcase of what is possible with it.

Anyway, it's fine for us to just disagree here. You just sound like someone that likes to argue for the sake of arguing, and just like to do apps, I don't have time for that.

13h agoHN ↗

Python needs to be in less places not more.

I believe Python has done more harm than good to the industry.

Its by nature very inefficient, it leads you in the direction to some very poor abstractions (inheritance, monkey patching, mixins etc) and as a result code that is very prone to subtle bugs and issues.

It deserves all the love it gets as an approachable language, but it deserves a lot more flack for everything else.

10h agoHN ↗

Big disagree. I've been following this project since it's early days, and have made a few projects based on it. I haven't been bitten by any "inefficiencies" in such a way that'd make me give up the language. And at this very moment I'm working on what's essentially a Python REPL that can build and return Flet controls (as well as the traditional string result), making writing and running adhoc native "applets" fully on mobile a possibility (haven't seen anything else that does this).

6h agoHN ↗

I'm in the middle. I've been using Python since the early 2.x series.

The good parts are that the inbuilt data structures and their apis are efficient and clean enough to write code that's mostly readable. Most of the heavy lifting is done in hand tuned C and performance intensive external modules are also written in C. There are several good projects that are written using it and while it's not theoretically perfect, it's useful enough. Like Stroustrup said - there are 2 kinds of the languages, ones that everyone complains about and ones that no one uses.

The bad parts are that it's very easy to use. Almost in a Visual Basic "producing crap just takes a squeeze" kind of way. It opened up programming to a lot of people (the genesis of Python was in the CP4E project - where this was the aim). This resulted in a lot of bad patterns, inefficient code, badly written but popular libraries. Also, the indentation idiom and other restrictions resulted in a lot of convoluted APIs.There's also a lot of baggage from the pre multi-core CPU era (threading etc.).

I still think of it as a great glue language. If there are libraries that are fast and can run well, a good FFI or wrapper which Python can leverage will amplify the reach and usability of the library.

On the overall, a language that's older than the venerable Java which people are still using (and hence complaining about) speaks to its longevity. So, atleast by that definition, it is successful.

5h agoHN ↗

At least BASIC was originally designed as compiled language, only the 8 bit home computers made interpreter versions more widely known due to their hardware limitations.

Starting with version 5, Visual Basic "crap" was using the same compiler backend as Visual C++.

58m agoHN ↗

I don’t think the parent comment was complaining about the compiler backend.

27m agoHN ↗

That is a side effect from Python adoption at scale in the form of CPython, even though there is PyPy crying on its little corner for lack of attention.

The slowness of Python based software, and the continuous rewrite of Python into C, C++, and nowadays Rust.

14m agoHN ↗

slowness of Python based software

I know of very few cases of this. For the most part I find the "slow" to be in the network/IO things. Unless one is doing heavy matrix math or something similar in pure Python, which I'd seriously question.

7h agoHN ↗

But when it comes to GUI toolkits, which of them are efficient? React Native, Tauri, Electron. I don't see a efficient one other than Native toolkits. Even they have their own problems.

PS: Loved your website's (https://ben.church/) messaging for different audiences. Especially the "My Wife" one. Gave me a good laugh. :)

5h agoHN ↗

I agree. They got some things right - the indentation based syntax is quite approachable even if it breaks down quite quickly (e.g. `lambda`), and infinite precision integers are fantastic.

But it's soooooo slow, tooling was abysmal until uv came on the scene (which some people still don't use), it has a ton of old janky APIs, and features like implicit bool coercion.

I wish there was a popular scripting language that was good. Modern robust semantics, infinite precision integers, static typing, good tooling, easy to embed. As far as I can tell it doesn't exist. Roto is the closest I've seen but it's moderately domain specific and doesn't have arbitrary precision integers.

12h agoHN ↗

Please no, python should be deprecated at this age, especially in the era of llm, horrible language from the performance to the dependencies to everything, can’t believe it got popular over perl back in the day

12h agoHN ↗

I used it quite a bit for writing tools for applications like Maya and Blender as it's the only fully supported API surface. I take it it's pretty bad for anything more complex. I notice it's used quite a bit in science and math communities too.

11h agoHN ↗

It's not. OP just has a hate-on for Python. Python is widely used in many domains and has one of the richest ecosystems of packages.

11h agoHN ↗

I love Python,i have been writting Python since 2.2 era, Is great. Bit it's slow as hell, Django is slow, and the filters and custom shit to hit db on the template makes it slower. The parameters styles are too many and now instead of removing things they keep adding features, ok no Gil Is great but match? They should stop now. I hope i will never have to use custom cython modules again. I have even used Python in asterisk agi fastagi etc. But it's really slow and we should accept that

10h agoHN ↗

I don't really disagree with any of that and I have my own complaints about Python. Personally I would have been happy if they stopped at Python 2.7 but I also have numerous complaints about all of the programming languages I use heavily. There's no perfect language.

10h agoHN ↗

Popular and/or widespread does not mean good. Common misconception.

9h agoHN ↗

There is more than one axis (or two or three). One some axis popular and/or widespread is required for good. You can't have very large number of readily available libraries applicable to many domains without a language being popular and/or widespread.

12h agoHN ↗

Performance isn’t important for any of the millions of things I use python for. I learned Perl first and gladly gave it up for syntax readability and easy of use over the years.

Pick the tool that’s right for you and the job, arguing against something based on your specific preferences should be seen as an argument without merit. I gave up Perl around the turn of the millennium, maybe it improved sense, but I really hated it back then-but I don’t go around badmouthing it and telling people to get rid of it.

Python is almost as ubiquitous as html, css, etc. It’s everywhere

3h agoHN ↗

JavaScript is way more ubiquitous thanks to Electron, which is not so great for the end users.

I have little experience, but I somehow doubt that Python will improve a lot regarding resource usage compared to Electron... but great if it works for you.

9m agoHN ↗

You'd be surprised. But you're comparing a browser to an interpreter, so it's already apples and oranges.

11h agoHN ↗

I don’t understand the points attempted to be made here.

especially in the era of LLM

Using a tool to generate a product in a language that someone isn’t familiar with is not a good idea.

horrible language from the performance…

Nor is it a good idea to choose a language strictly for its performance when requirements like portability and framework maturity are at the forefront.

…to the dependencies…

Dependency management isn’t the greatest, but it’s also not awful for a deployed product. Managing dependencies as a developer with multiple projects that each have their own virtual environment may not be fun but it’s not exactly an impossible mess.

…to everything

   from __future__ import everything

can’t believe it got popular over Perl back in the day

And I’m sure people can’t believe that the iPod got more popular than the Zune, but sometimes convenience and taste are what drive decisions.

11h agoHN ↗

What the heck? Python is a joy to program in and it's great for making small utilies, scripts, and even programs that don't require incredible performance. Perl is a pretty horrific-looking language.

10h agoHN ↗

The things it focuses on makes it wildly popular, and will continue to make it so. So popular that quite a few have been using it as a wrapper for packages with a Rust core, for example. I personally think they should stick to all Rust because they're only polluting the ecosystem, making Python less usable for an increasing number of scenarios.

5h agoHN ↗

Python is a fine language once you install a proper typechecker for it. Just like typescript makes JS a fine language.

12h agoHN ↗

kivy, which does the same thing, has been around for over 10 years. I built my thesis in it a few years ago. not recommended—too many limitations and build issues in practice. given that this one is less mature...I'm not optimistic.

10h agoHN ↗

All software has limitations, that's why we keep writing more software.

Kivy is great, and the contributors are friendlier than most. I particularly like it for Android, but it's definitely way up there in terms of "easy reliable multiplatform python framework".

It also gives you a ton of options for how you want to use it, more than one way to skin a cat philosophy.

10h agoHN ↗

I tried using Kivy some years ago and also found it pretty painful. Flet I've been using for a while now and find it a joy by comparison, and it's actively developed, with a release every couple months or so. With the stability of v1.0 I expect that to slow a bit though, as I'd say at least core Flet is feature complete.

12h agoHN ↗

Is there a downloadable sample somewhere? Would like to see how large a native build is.

10h agoHN ↗

Native build size depends on what you want in the app, like the app I'm currently working on is almost 300MB, but I've added a few custom extensions to it (charts, iroh, and more). Earliest APK I can find is 140MB. In this day and age I honestly wouldn't worry much about app size though given how much storage devices have.

10h agoHN ↗

Given the prices of storage and ram you should still worry about wasting user resources

36m agoHN ↗

Doesn't really apply to Android devices, which is the context here. You buy a phone and that's the storage/RAM you're stuck with until you get another phone.

29m agoHN ↗

Sure it does. The amount of storage/RAM when you buy your phone depends on the price. But also the lifetime of a device is longer if the replacement is more expensive. And those older devices have even less storage/ram. And it affects the amount in the cloud, so higher chance of users retaining more pic/vid data on their devices Also the number of apps a user has increases, and if every one of those wastes hundreds of megs it accumulates.

3h agoHN ↗

I like efficiency! Nowadays my phone and laptop are constantly running out of storage since every calculator app is 1GB.

27m agoHN ↗

I know you're exaggerating, but still you should probably mind what you're downloading.

3h agoHN ↗

In this day and age I honestly wouldn't worry much about app size though given how much storage devices have.

Are you serious?

Do you think people buy more storage just for fun?

I definitely don't buy it for devs to go YOLO

2h agoHN ↗

I feel very lucky in that I bought a handful of SSDs mere months before the prices went insane. RAM, not so much, especially for my new laptop which demands DDR5. It may be a while before I can expand that past the 16GB that came with it.

26m agoHN ↗

Context. You don't buy storage for phones. Not anymore anyway.

2h agoHN ↗

The "it's ok because the €/gb is cheap" was already bad when it was true, because you can increase ram and disk slots, but now it's hilariously wrong

11h agoHN ↗

Is this build on top of flutter?

And for web, does it generate plain HTML/CSS, the DOM tree, or just generate everything in a canvas?

10h agoHN ↗

It uses Flutter for UI and native services, but there's a full Python interpreter there.

I think it does mostly canvas, but that could just be due to my selected option back when I tried web with it (couple years ago).

11h agoHN ↗

Loving it. Been using in projects for a while now.

10h agoHN ↗

Choosing to build an application around a framework whose top contributors are Claude and Copilot may have catastrophic consequences for your project, especially if it's a business.

10h agoHN ↗

I built a few Kivy apps years ago at an old job. It was a little clunky, but it got the job done. Haven’t heard of this framework yet, I wonder how compares in developer experience? Anyone have any experience with it?

The problem is I don’t want to use Python for everything that bad. If I’m going to reach for a cross platform toolkit these days, I’m personally going to reach for Tauri. Could be useful if you’re really married to Python I suppose.

6h agoHN ↗

My personal stance on this type of UI framework is that I won't waste my time on it unless I see it being used in mature, large-scale applications. Complex software often involves dealing with obscure edge cases; you certainly wouldn't want to spend a huge amount of time building an app, only to discover that the framework itself has serious flaws that make it impossible to proceed.

5h agoHN ↗

What is the point of this comment?

To paraphrase you: "no one should release new open source software libraries because it is not enterprise ready on day one with thousands of deployments and every feature imaginable".

If you don't want to use it, don't use it

4h agoHN ↗

What is the point of this comment?

To paraphrase you: “if you have objective reasons preventing you from adopting the code then keep them to yourself because I concluded they’re bad vibes”.

6h agoHN ↗

Wow there's a surprising amount of negativity here.

I've used this for a fairly complex app at work and it's great. (It's certainly not vibe coded as one commenter suggested.) It's a Python layer on top of Flutter, and it was the only UI framework I could find for Python that was fast and worked on all major desktop and mobile OSs. I think maybe Kivy could too but it seemed like it would be an uphill struggle for a good desktop app.

It's a bit of a gateway drug for pure Flutter. If you need some complex, quickly updating control then you can write a Flutter control (in Dart) and wrap it in a Flet (for Python) control for better performance than doing it all in Python. I've ended up doing that for the main display in our app, and there's always the option to move more and more business logic into that.

One downside to Flet is that I wish they didn't try "fix" some design decisions in Flutter. For example, they have a Flet "Container" widget that wraps a bunch of different Flutter layout widgets. The Flet version does seem easier to understand to me, but there's just so much more documentation (and StackOverflow answers etc.) for Flutter than for Flet that it would be easier overall if they just mirrored the Flutter controls precisely.

1h agoHN ↗

I gave it a try, and the on-line studio managed to one-shot a convincing prototype of a type of drawing program which I've asked LLM App-Dev tools to create in the past and which heretofore, none has managed anything resembling a workable effort, so colour me impressed.

So, I've downloaded it, and unless I overcome a couple of hurdles in a current project in SpiderBasic, I know what I'm doing this weekend.... (porting what I've done to this and finishing it in Python).

5h agoHN ↗

I built an iOS app with python library as core component and SwiftUI as UI layer. It is not fun to cross compile the dependencies for iOS, I need implement the iOS interfaces, cannot just simplify use macos for native api. There is a good beeware project port a lot python libraries to iOS. Without that to port from scratch would be a lot of work for a middle size apple.

4h agoHN ↗

I would think about if it was at least Go or Rust, but yet another interpreted language built on top of other abstractions? No thanks, I had my fair share of Xamarin, React Native, Electron, Tauri and TBH building native is the best (more work, sure, but at least when you have bugs or issues, it's easier to find solutions), with abstractions you need to deal with bugs on each layer.

Also in the era of AI, sharing native code is easier than ever, just compile down to WASM for the web and for the other binary.

2h agoHN ↗

I dabbled with Flet for a couple of weeks and all I can say is: I wish it were further along in development. Either that, or had more documentation and examples available. I love that it targets all platforms and that it's so easily distributable, but where I ran into problems was with layouts in general and aligning controls with one another specifically. I was ready to drop all other GUI toolkits before I ran into that snag. Perhaps in another year or two I'll take another look.