News for hackers. Stuff that matters.
Re:A calculator for the Terminal that renders beautiful math by pmkary on Sunday January 12, 2020 @05:07AM (#22025487)
There are two reasons; first is that I tried to render parentheses in the terminal and they didn’t look good, it was brackets that looked good. So that is the actual reason but also writing brackets do not require shift so I prefer it myself to type more easily
Re:A calculator for the Terminal that renders beautiful math by qubex on Monday January 13, 2020 @12:49AM (#22032141)
Whatever your initial motivation, distinguishing between precedence modification and function application is an unmitigated good in my opinion, so good on you.

Do you plan to extend the language with symbolic capabilities?

Re:A calculator for the Terminal that renders beautiful math by pmkary on Monday January 13, 2020 @07:09PM (#22040273)
Actually Id love to. I did a bad choice of writing Nota in Haskell. I will rewrite it in JavaScript so that I can also port it to the web and then if possible I will add as much more capability as I can. Symbolic is super cool but hard to implement, I should see how much time I have and how much others are willing to help.
Re:A calculator for the Terminal that renders beautiful math by choeger on Sunday January 12, 2020 @09:25AM (#22026376)
> but also writing brackets do not require shift

So your target audience is strictly (US) English?

Re:A calculator for the Terminal that renders beautiful math by Cu3PO42 on Sunday January 12, 2020 @12:34PM (#22027587)
This, and issues like it, bug me so much. So many keyboard shortcuts are unusable by default on QWERTZ, for example any shortcuts involving /, [ or ]. They require modifiers to be typed, so those are swallowed for shortcut purposes.

Of course, it is (almost) impossible to account for the enormous amount of keyboard layouts that exist, so I wish we could agree to use key positions over the characters they produce for shortcuts, so we can cover a significant portion of the population with ANSI/ISO layouts. I'm honestly not sure what keyboard layouts are used in countries with entirely different scripts, but my cursory Google searches suggest the physical layout is the same as ours.

Sure, you might lose some mnemonics on layouts that aren't QWERTY, but at least the majority of shortcuts would be usable by default compared to having to remap them in every application. The application could even resolve what keys are actually mapped to the physical keys and display the correct shortcut in menus.

Destiny 2 actually seems to do this and does, as far as I was able to tell, an excellent job of it.

Re:A calculator for the Terminal that renders beautiful math by pmkary on Monday January 13, 2020 @07:10PM (#22040286)
As I told, it's manly because of the the rendering. Brackets render much more pretty, but the other is true as much. Yeah people with normal layouts.