Hacker News

Top stories

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

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.