Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    116comments
  2. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    34comments
  3. Tin: full-text search for Postgres(planetscale.com ↗)
    20comments
  4. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    424comments
  5. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    176comments
  6. “The Secret Life of Circuits” is here(coredump.cx ↗)
    48comments
  7. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    11comments
  8. What Zig felt like, coming from Rust(besok.github.io ↗)
    91comments
  9. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    536comments
  10. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    26comments
  11. I built the fastest PHP webserver in the world(qbixserver.com ↗)
    12comments
  12. Agreement between the USA and Denmark (1951,2004) [pdf](state.gov ↗)
    1comments
  13. San Francisco Onion Futures Company(onionfutures.com ↗)
    105comments
  14. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    185comments
  15. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    126comments
  16. Jobs Without LeetCode(noleet.lol ↗)
    discuss
  17. Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy(theconversation.com ↗)
    33comments
  18. Cloudflare Quick Tunnels(cloudflare.com ↗)
    300comments
  19. How to Write with an LLM(sockpuppet.org ↗)
    360comments
  20. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    23comments
  21. Communication by means of modulated Johnson noise(pnas.org ↗)
    18comments
  22. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    8comments
  23. Saving another 100TB of RAM(cloudflare.com ↗)
    89comments
  24. SDCC – Small Device C Compiler(sourceforge.net ↗)
    23comments
  25. Science Is Open Software(jepedersen.dk ↗)
    47comments
  26. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments
  27. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    44comments
  28. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    122comments
  29. OpenJev(openjev.com ↗)
    278comments
  30. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    7comments

ImGUI Ported to a LiteX SoC

54 pointsby 3y agogithub.com
12 comments
3y agoHN ↗

That's really neat! ImGUI has got to be one of the most satisfying GUI libraries to use, its fast, versatile and looks absolutely beautiful, so spreading it to even weird places is great!

3y agoHN ↗

It's an absolute joy to use. If only all libraries could be so well-made.

3y agoHN ↗

ImGUI is great, but i wouldn't call it "versatile", it's too rigid to be versatile

It's too focused on desktop (mouse/kb), and you can't really theme it other than its colors and shape of the edges, doesn't support animations and you can't style the font, it's pretty basic

Creating custom controls is a ton of work

Then you have libraries like this: https://lvgl.io/ (gh: https://github.com/lvgl/lvgl)

That's what i call a versatile GUI library

3y agoHN ↗

I would consider the lack of support for animations a feature, not a limitation.

3y agoHN ↗

Versatile: "able to adapt or be adapted to many different functions or activities."

I never mentioned "limitation", ImGui is great for what it is, i wouldn't use lvgl to build my engine tools, i use ImGui actually

3y agoHN ↗

Dear ImGui is coming out of the game dev world and is mainly intended for specialised UI tools and debugging/profiling overlays in 3D games (or generally 3D apps), and for that use case it's just perfect and fixed a longstanding problem (for gamedev inhouse tools, it essentially killed C#/WPF and Qt overnight).

3y agoHN ↗

dear imgui is versatile in that it can be used in the sorts of programs that haven't traditionally been well served by existing desktop GUI libraries. (It also has a very convenient API that means you can cobble these GUIs together much more quickly than with most other libraries. So that's helpful too.)

lvgl looks like something you'd use for making the UI for the actual product. dear imgui is for the debug tools that get stripped out of the version you release. It's not intended for user-facing use, so there's no significant support for anything visually interesting. (The actual appearance of the UI isn't really even all that important. It just has to be not too weird-looking.)

3y agoHN ↗

Extremely cool! LiteX is such a nice tool compared to how things used to be

3y agoHN ↗

What kind of background would someone using LiteX have?

3y agoHN ↗

Building SoCs with FPGAs, probably would have used chip planner or whatever the vivado equivalent is for amd/xilinx. LiteX makes SoC design really accessible at a hobby level compared to those tools.

3y agoHN ↗

Interestingly there are no modification of the core Dear ImGui library involved. It's using a software renderer, which have been available already e.g. that one had been optimized to run on ESP32 https://github.com/LAK132/ImDuino

They are really cool/fun setup as well as being proofs of the portability of Dear ImGui but I imagine probably a little too taxing for the SoC involved. In the sense that if you were to want to use more of the SoC computational power it might feel like an unbalanced amount of resources to allocate to a GUI library (which normally expects a GPU).