Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    180comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    573comments
  3. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    11comments
  4. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    201comments
  5. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    88comments
  6. Tin: full-text search for Postgres(planetscale.com ↗)
    57comments
  7. The Secret Life of Circuits(coredump.cx ↗)
    60comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    603comments
  9. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    27comments
  10. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  11. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    14comments
  12. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    1comments
  13. Show HN: CUA-S1 – A System One Model for Computer Use(github.com/trycua ↗)
    discuss
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    149comments
  15. Almost Never Use AI to Write Anything Substantive(erichgrunewald.substack.com ↗)
    44comments
  16. San Francisco Onion Futures Company(onionfutures.com ↗)
    134comments
  17. Cloudflare Quick Tunnels(cloudflare.com ↗)
    303comments
  18. How to Write with an LLM(sockpuppet.org ↗)
    366comments
  19. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    215comments
  20. What Zig felt like, coming from Rust(besok.github.io ↗)
    151comments
  21. Saving another 100TB of RAM(cloudflare.com ↗)
    97comments
  22. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    30comments
  23. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    124comments
  24. Communication by means of modulated Johnson noise(pnas.org ↗)
    23comments
  25. SDCC – Small Device C Compiler(sourceforge.net ↗)
    28comments
  26. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    51comments
  27. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    22comments
  28. Science Is Open Software(jepedersen.dk ↗)
    60comments
  29. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    131comments
  30. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    55comments

Show HN: Python Live GUI – A Hybrid of Dear ImGUI and Phoenix LiveView

85 pointsby 4y agogitlab.com
19 comments
4y agoHN ↗

Hey all, author here.

I had some time off last week so I built a little tool I've been planning on using for a while now.

Thought I'd just comment on my motivations for building this.

I bought a little chromebook tablet to take on holidays. I've been enjoying the experience of using a remote IDE to code on my personal server.

I thought it would be neat if I could quickly make myself GUIs for other utilities on my remote server that get rendered on my chromebook. Doing this like being able to run bash scripts remotely.

I start utility scripts with this tool and then just use ssh port forwarding to view it locally.

The fun bit is the application itself is then just written in python.

There are some similar alternatives[1] but I wanted to be able to write GUI elements like ImGUI so I decided to build my own tool in the end.

I just wrote it in python because that's what I've been using at work lately.

[1] https://github.com/dbohdan/liveviews#python

4y agoHN ↗

does this support concurrent users connected to the same UI?

4y agoHN ↗

Yeah it does, it spawns a new thread with separate state per user.

4y agoHN ↗

This seems pretty neat - however I don't feel like the screenshot shows what this can be used for as there's no interactive components.

4y agoHN ↗

Yeah I should probably replace the screenshot with a gif. Thanks for the feedback!

4y agoHN ↗

How does your tool do on accessibility? Asking specifically, as that is the one hill most open sourced guis die on.

4y agoHN ↗

Not yet, I plan to add support for this ~soonish because it will be harder to add later on.

It’s very much early days though. I didn’t want to go near accessibility until I had standardised the rendering model somewhat.

It also waits to be seen if anyone actually wants to use this besides me.

4y agoHN ↗

Immediate mode GUIs are amazing and super slept on if you want to quickly slap together user interfaces.

4y agoHN ↗

Another LiveView-like UI framework for Python: https://github.com/flet-dev/flet - created specifically for highly interactive real-time experiences. You build your UI from controls made of Flutter widgets and partial UI updates are passed to a browser via WebSockets.

4y agoHN ↗

holy cow!!! this is amazing, like PySide4 but for Flutter

Flutter would be perfect if it produced web applications that were more widely adopted.

4y agoHN ↗

Right? I know Google has a habbit of dropping great projects, but, somehow, I believe in the future of Flutter on web :) Using Canvas + Skia + WebAssembly for rendering UI in the browser could look like a "wrong" approach today, but, hey, Google created the most popular browser, so who knows. They talk about their vision in this video: https://youtu.be/kCnYRhkfWHY. Flutter is great for web apps, not for web sites where SEO is important. And Google is actively working on better accessibility support - Accessebility Object Model (starting at 10:00 in that video) which is eventually could to be a new standard.

4y agoHN ↗

Is there a way to for multiple users to connect to the same web application with Flet?

4y agoHN ↗

The result can be hosted? I don't understand if you can do client<->server communication.

4y agoHN ↗

Dear ImGUI also has python bindings [1] which I've had great success with in tuning computer vision algorithms interactively. It's a slightly different use case than your project here since it doesn't use a browser and only works locally.

[1]https://github.com/pyimgui/pyimgui

4y agoHN ↗

Is there any relationship between this and DearPyGUI?