[HN Gopher] TUI calculator for programmers working close to the ...
       ___________________________________________________________________
        
       TUI calculator for programmers working close to the bits
        
       Author : romes
       Score  : 36 points
       Date   : 2023-01-30 09:56 UTC (13 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | nonrandomstring wrote:
       | I like the idea and hope you grow it into something of a pen-
       | knife for numbers. Being able to change the bit width and base on
       | the fly looks neat. I tend to pull up a Python shell for lots of
       | tasks. Often what I want is a dumper (like od, hexdump or
       | tcpdump) with the ability to filter steams with masks and
       | whatnot, like wireshark, and display the results in various
       | "views" (hex, binary etc as you have provided). It is hard to
       | make any one tool do all that - but also hard to find nicely
       | pipeable little tools to work in a Unix way. It might be good to
       | consider the contexts people will use your tool wrt
       | stdio/sockets/fifos.
        
       | ghewgill wrote:
       | For old school fans, the HP-16C [1] calculator provided these
       | kinds of functions in a handheld calculator, in 1982. This was
       | the only "programmer" calculator that HP has ever made.
       | 
       | There is a simulator (for Windows) available [2]. (No
       | affiliation; but I made a simulator for the cousin calculator
       | HP-15C [3]).
       | 
       | [1]: https://hpmuseum.org/hp16.htm [2]: http://hp16c.org [3]:
       | https://hp15c.com
        
       | makeworld wrote:
       | Anyone know the font in the screenshot?
        
         | romes wrote:
         | I think it's Menlo
        
       | mncharity wrote:
       | Any suggestions for similar "close to the bits" but with support
       | for floats?
        
       | AceJohnny2 wrote:
       | Offtopic, but I remember implementing a calculator was Compilers
       | & Parsing 101.
       | 
       | I mention this because the Readme specifically calls out the
       | various ways of inputting an expression, which is a non-issue
       | with any compiler background. (It's handled by the _lexer_ ,
       | which is step that handles processing input into "lexical"
       | elements, which are then passed to actual "parser" that
       | constructs the syntactic structure)
        
       | donaldihunter wrote:
       | There's also Bitwise [0] which has support for IP addresses
       | 
       | [0] https://github.com/mellowcandle/bitwise
        
         | conradev wrote:
         | I've been using Bitwise for quite some time now and it is my
         | favorite tool for this
        
       | ladberg wrote:
       | Pretty nice looking! Also for anyone on a Mac I find programmer
       | mode ([?]-3) in the built-in Calculator.app pretty useful for
       | this purpose.
        
         | digitallyfree wrote:
         | For Linux GUI users I also like the Gnome calculator in
         | programmer mode, which displays the different bases all at once
         | and has options for 2's complement and the like.
         | 
         | https://imgbox.com/SrMD3LoP
        
           | dgfitz wrote:
           | Yeah I use that almost daily. Because my company only lets us
           | use windows (and VMs) sometimes I accidentally launch the
           | windows calculator and I've discovered it too has a passable
           | programmer mode.
        
       | artisanspam wrote:
       | Looks great! But you may want to consider a different name as
       | PCalc is already a popular calculator app:
       | 
       | https://pcalc.com/
        
       ___________________________________________________________________
       (page generated 2023-01-30 23:00 UTC)