News for hackers. Stuff that matters.
Re:A calculator for the Terminal that renders beautiful math by pmkary on Sunday January 12, 2020 @04:35AM (#22025377)
Stay tuned and I will push an update for you guys to have lowercase/uppercase single letters. You can currently use single letter latin instances like Beta and Beta'
Re:A calculator for the Terminal that renders beautiful math by mkl on Sunday January 12, 2020 @04:58AM (#22025455)
Why "Beta" and "Beta'", not "beta" and "Beta"? (Following e.g. Latex.) It seems like it would be useful to be able to define identifiers like "Φ'" (though maybe that's "Phi''"). It also seems a bit inconsistent to not allow an identifier π to be defined - some people use the symbol π for other purposes.
Re:A calculator for the Terminal that renders beautiful math by pmkary on Sunday January 12, 2020 @05:08AM (#22025489)
That is because the language is case insensitive and therefore normalizes the words so Beta and beta will not differ once they pass the parser.
Re:A calculator for the Terminal that renders beautiful math by IshKebab on Sunday January 12, 2020 @05:36AM (#22025588)
That's a bad idea - every system that is case insensitive has eventually regretted it because it just leads to confusion. E.g. Mac's filesystem, Cmake (https://stackoverflow.com/a/35034125/265521). Almost all modern languages are fully case sensitive.
Re:A calculator for the Terminal that renders beautiful math by pmkary on Sunday January 12, 2020 @07:07AM (#22025911)
I've been making languages for quite a while now. And between all of them I've really like the idea of case insensitivity. Nota is mostly about what I wanted to have and couldn't find in other places. It's way of identifiers too was an important thing that I wanted to have. Having apostrophes, case insensitivity and spaces was an important thing that actually even effected the rest of the grammar design
Re:A calculator for the Terminal that renders beautiful math by samatman on Sunday January 12, 2020 @04:13PM (#22029399)
I think what you've done is very beautiful and I hope you'll accept some feedback with equanimity.

You haven't made a language here, you have implemented one. That language is mathematical "Nota"tion.

You've implemented it incorrectly, because mathematical notation is case sensitive. A doesn't mean a, any more than it means α.

It is, of course, your project, and your sense of aesthetics which must ultimately be satisfied. I hope you will consider what I and others are trying to communicate to you, because I would use this, if it weren't broken from my perspective.

Re:A calculator for the Terminal that renders beautiful math by pmkary on Sunday January 12, 2020 @06:49PM (#22030617)
It is not that I don’t like or respect your ideas. Truth is that what I ultimately wanted on my end was to do the challenge of rendering notations with Unicode and then I thought let’s have a simple calculator with it. Nota is not a super capable calculator, to what I see it’s only the bare minimum. It’s for the times when you need quick thinking and wanna do a few quick calculations.

I personally love case insensitivity because it is really hard for me to remember the cases. I love macOS for its case insensitive file format and each time I design a language—and Nota is not mathematical notation, it is its own language with its own grammar. Just like the way Mathematica is its own language—I seek to see if having case insensitivity is possible. I loved it that with Nota, because the language was so simple I could even have spaces in the names. These are awesome for quick doings.

I haven’t resisted to the idea of case sensitivity though. But to be honest never thought about it.

For the sake of beauty nota renders each word in first-letter-Upper/rest-Lower since this was the most beautiful representation I experimented with. I will add the A and A’ to have both a and A (and the rest of the letters) this was if someone really loves to have the distinguished cases they can and I can keep my easy to write and beautiful in print style.

I think this solution is the win-win. And also I think if you regard Nota as a separate language with separate ideas; You can have more fun with it. It’s like watching How I met your Mother and trying to use it to replace Friends, it’ll make a bad experience, but regard it as a its own series and you then can see its beauty

Re:A calculator for the Terminal that renders beautiful math by enriquto on Sunday January 12, 2020 @10:51AM (#22026785)
As a mathematician, case sensitivity is non-negotiable. You'll pry A=(a,b) from my cold, dead hands.
Re:A calculator for the Terminal that renders beautiful math by Waterluvian on Sunday January 12, 2020 @09:05AM (#22026308)
How hard is it to have an option for either? Might be a win win opportunity. :)
Re:A calculator for the Terminal that renders beautiful math by pmkary on Sunday January 12, 2020 @06:52PM (#22030627)
I was thinking of having A for a and A’ for A and. It’ll easily fix the problem for the ones who wanna have different cases for single letters
Re:A calculator for the Terminal that renders beautiful math by zamalek on Sunday January 12, 2020 @11:08PM (#22031739)
I feel like case insensitivity is a great UX choice, really everything should be case insensitive. It just falls so badly apart when you get into the guts of things that case sensitivity is the only practical choice.
Re:A calculator for the Terminal that renders beautiful math by pmkary on Monday January 13, 2020 @07:06PM (#22040250)
thank you!