News for hackers. Stuff that matters.
Re:Show HN: Procal: A simple Qt-based programming calculator by MatthiasPortzel on Saturday March 04, 2023 @11:04AM (#35021802)
One feature that I'd love in a programming calculator is the ability to set arbitrary bit widths. 32bit or 64 bit is okay, but a lot of the time when I'm thinking about individual bits; it's because I'm doing embedded programming for 8 or 16 bit devices. Similarly, the ability to toggle signed and unsigned representations.
Re:Show HN: Procal: A simple Qt-based programming calculator by fellerts on Saturday March 04, 2023 @11:20AM (#35021936)
I totally agree, which is why I included that in procal! Just right-click a cell to turn it into a sign bit.
Re:Show HN: Procal: A simple Qt-based programming calculator by SimDeBeau on Saturday March 04, 2023 @12:21PM (#35022540)
Thats really convenient, but probably not the most discoverable.
Re:Show HN: Procal: A simple Qt-based programming calculator by fellerts on Saturday March 04, 2023 @12:26PM (#35022580)
Fair point. At least it's mentioned in the README. My goal was a lean and efficient tool without any extra fluff, so discoverability took a hit.
Re:Show HN: Procal: A simple Qt-based programming calculator by MatthiasPortzel on Saturday March 04, 2023 @04:19PM (#35024596)
I did not notice that. I will have to download procal and give it a try.
Re:Show HN: Procal: A simple Qt-based programming calculator by recklesstodd on Saturday March 04, 2023 @03:23PM (#35024151)
Re:Show HN: Procal: A simple Qt-based programming calculator by spc476 on Saturday March 04, 2023 @06:13PM (#35025473)
I once wrote a calculator that has five output displays: signed decimal, unsigned decimal, hexadecimal, octal and binary. I did it that way because I was tired of having to select the output mode. I also added the ability to select 8, 16, 32 or 64 bit output.
Re:Show HN: Procal: A simple Qt-based programming calculator by SAI_Peregrinus on Saturday March 04, 2023 @08:48PM (#35026291)
I've been using BitCalculator for Android[1] for that. It supports 8, 16, 32, and 64-bit integers, big or little endian byte ordering, signed or unsigned, as well as 32 and 64-bit floats with either endianness.

[1] https://play.google.com/store/apps/details?id=com.kebstudios...