Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    142comments
  2. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    53comments
  3. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    464comments
  4. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    183comments
  5. Tin: full-text search for Postgres(planetscale.com ↗)
    43comments
  6. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  7. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    38comments
  8. “The Secret Life of Circuits” is here(coredump.cx ↗)
    52comments
  9. I built the fastest PHP webserver in the world(qbixserver.com ↗)
    32comments
  10. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    14comments
  11. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    553comments
  12. San Francisco Onion Futures Company(onionfutures.com ↗)
    117comments
  13. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    6comments
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    133comments
  15. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    193comments
  16. What Zig felt like, coming from Rust(besok.github.io ↗)
    110comments
  17. Agreement between the USA and Denmark (1951,2004) [pdf](state.gov ↗)
    17comments
  18. Cloudflare Quick Tunnels(cloudflare.com ↗)
    301comments
  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 ↗)
    24comments
  21. Saving another 100TB of RAM(cloudflare.com ↗)
    90comments
  22. Communication by means of modulated Johnson noise(pnas.org ↗)
    19comments
  23. SDCC – Small Device C Compiler(sourceforge.net ↗)
    23comments
  24. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    11comments
  25. Science Is Open Software(jepedersen.dk ↗)
    51comments
  26. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    45comments
  27. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    124comments
  28. OpenJev(openjev.com ↗)
    280comments
  29. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    8comments
  30. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments

ImPlot: Advanced 2D Plotting for Dear ImGui

94 pointsby 6y agogithub.com
6 comments
6y agoHN ↗

ImGui is a fantastic, and much beloved C++ library whose primary use is to create debug/level editor UIs in games, but people use it for many other purposes as well, some of them quite complex. It can plug into various renderers prety easily, and bindings exist for many popular languages, like Rust, and Rust. It was inspired by this talk given in 2005 by casey muratori on immediate mode guis:

https://www.youtube.com/watch?v=Z1qyvQsjK5Y

Neat to see additions like this that can plug into it.

The rust joke was on purpose.

6y agoHN ↗

I used ImGui to write control panels for robots running ROS. It's an amazing library.

6y agoHN ↗

Interesting tool but couldn’t discern the interface from the README.

On a side note, does anyone have any recommendations for C++ plotting libraries that integrate nicely with Eigen matrices/vectors? Even better if it is usable through lldb when breakpoints are set. I’m trying to recreate my workflow in matlab where you can set a breakpoint at some point in the code and visualize through different plots the variables when writing an algorithm. I find this makes matlab very nice for prototyping and the lack of this workflow becomes a real pain point when we go to convert our matlab implementation to a more performant C++ implementation.

6y agoHN ↗

Interesting tool but couldn’t discern the interface from the README.

The README isn’t particularly helpful, but the API is rather self-explanatory looking at the header. Eg, this line from the README:

    ImGui::PlotBar("My Bar Plot", values, 10);

values is a pointer to 10 floats.

6y agoHN ↗

ImGui won't work in a breakpoint, but on the other hand it's more or less designed to do what you want, in the sense that there is not a lot of ceremony required to create a slider to adjust a variable (unlike, say, Qt, where you to need to wire a few things). So if you can keep your program running, you can use Dear ImGui as a sort of custom debugger front end. Many people in the video game industry use it to do exactly that.