Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Cloudflare Quick Tunnels(cloudflare.com ↗)
    114comments
  2. There's no point at which turning your brain off will work(danluu.com ↗)
    6comments
  3. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    2comments
  4. An Empirical Study of Harness Design for Coding Agents(arxiv.org ↗)
    36comments
  5. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    67comments
  6. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    15comments
  7. OpenJev(openjev.com ↗)
    202comments
  8. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    94comments
  9. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    5comments
  10. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    98comments
  11. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    179comments
  12. GrassLobster: AI Agentic Generation of Parametric Geometry Workflows(miro.vision ↗)
    3comments
  13. I don't like passkeys(hawksley.dev ↗)
    516comments
  14. BeanShell3 in Development(beanshell.github.io ↗)
    11comments
  15. Jemalloc 5.4.0(github.com/jemalloc ↗)
    73comments
  16. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    9comments
  17. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  18. NATS publishes preliminary report on technical incident of 8 September(nats.aero ↗)
    23comments
  19. Show HN: Microsoft Office running with Wine on Linux with no virtualization(github.com/tombert ↗)
    45comments
  20. The scourge of x86 emulation(fex-emu.com ↗)
    67comments
  21. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    176comments
  22. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    152comments
  23. US Treasuries Have Become Unappetizing for Foreign Central Banks and Governments(wolfstreet.com ↗)
    44comments
  24. Build Faster Feedback Loops Using Qualitative User Research(nseldeib.com ↗)
    1comments
  25. Qwen 3.8 Omni Flash(qwen.ai ↗)
    117comments
  26. Second Circuit Allows Government to Search Electronic Devices at the Border(knightcolumbia.org ↗)
    35comments
  27. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    2comments
  28. How to Write with an LLM(sockpuppet.org ↗)
    192comments
  29. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    61comments
  30. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    625comments

Flet 1.0 – Build cross-platform apps in Python

149 pointsby 20h agoflet.dev
77 comments
20h agoHN ↗

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

20h 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.

19h 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.

18h agoHN ↗

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

18h agoHN ↗

Is it more fashionable to build an AI harness?

17h agoHN ↗

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

15h 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....

16h agoHN ↗

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

9h 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).

4h agoHN ↗

It demonstrates CRUD at a small scale and is familiar, so we don't need to figure out what it's trying to demonstrate. It allows us to see how large the final product is and how much memory and CPU it uses.

It's not meant to be a showcase of what you can build with it; it's meant to give you the smallest complete application so you can get a good idea of what you need to know.

The thing that's meant to be a showcase is usually referred to as a Showcase or a Gallery.

13h agoHN ↗

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

No clue why it's being done here.

9h 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.)

9h 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.

8h 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".

5h 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.

4h 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.

That's a lie. It got your attention enough to post here, talk about it, and as a result, help push it up the front page. It's held your attention for so long, advertisers pay good money for that sort of attention. And you are just giving it out for free.

All because it used a Todo app.

3h agoHN ↗

Do I just like to do apps? No. I've built serious business application with a graphically complex client area and a bunch of supporting chrome around it and dialogue boxes on top, using Flet. It's nothing like a to do app. But if the first example I saw on the Flet website was that complex I would never have figured out if it was useful!

(Do I just like arguing? Not really but I really did have no idea what your first comment was about, and your follow up was too odd not to reply to, so I got hooked.)

1h agoHN ↗

ehh, it is pretty standard. in fact, todo app is the standard hello world for any GUI framework. it has been standard for js frameworks from before js fatigue started

17h 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.

15h 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).

11h 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.

10h 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++.

5h agoHN ↗

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

5h 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.

5h 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.

12h 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. :)

10h 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.

17h 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

17h 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.

16h 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.

16h 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

15h 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.

15h agoHN ↗

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

14h 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.

17h 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

7h 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.

5h agoHN ↗

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

16h 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.

16h 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.

15h 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.

10h agoHN ↗

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

17h 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.

15h 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.

1h agoHN ↗

absolutely! no shade towards contributors, my impression was that compiling for iOS is just a bit of a moving target. everyone was willing and ready to help where they could, I just had a lot of trouble.

15h 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.

17h agoHN ↗

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

15h 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.

15h agoHN ↗

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

5h 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.

5h 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.

1h agoHN ↗

I'd say sacrifices need to be made. If one wants apps with reasonably modern capabilities, then one has to invest in a device that can handle such capabilities. And those devices come with ample storage. Like I had the OnePlus One and 2, which came with 64GB, and then the 6 which came with 128GB I think. Currently I have the 12, with 512GB. At no time have I ever ran out of space, and I always have a crazy number of apps installed along with media; what has happened though is a device can't handle some apps (particularly games) well, or performance generally falls over time, or other hardware starts to give out (both the camera and buttons died on the 6, which is when I bought the 12).

8h agoHN ↗

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

5h agoHN ↗

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

8h 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

7h 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.

5h agoHN ↗

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

6h 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

16h 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?

15h 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).

16h agoHN ↗

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

15h 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.

14h 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.

11h 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.

10h 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

9h 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”.

11h 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.

6h 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).

10h 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.

9h 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.

7h 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.