News for hackers. Stuff that matters.
Re:Notation And Thinking by gfodor on Tuesday November 30, 2010 @09:37AM (#1954184)
The interesting thing to note is that most of this discussion around notation is being applied to mathematics. Trying to provide higher level notation (beyond ASCII) to programming apparently was given up on a long time ago. It's a shame.
Re:Notation And Thinking by maxwell on Tuesday November 30, 2010 @02:19PM (#1955231)
The problem with non-ASCII is that it's harder to read, because the pronunciation (even if only mental) is ambiguous. Imagine if you don't know how to pronounce Greek letters, for instance. I couldn't begin to pronounce APL, and thus would have to remember shapes.

I think this is the reason everyone has an issue with Lisp's prefix notation for arithmetic. They read

  (+ 1 2 3)
as "plus one two three" and it sounds weird. I wonder if a Lisp would sell if you only allowed alphanumeric function names, e.g.

  (sum 1 2 3)
(Not to mention that "Lisp" is the worst name ever.)

It's just a hunch, but I suspect the root cause for European imperialistic domination was that they had a more accessible writing notation. It could even be that the difficulty of Chinese writing actually produced "more Edisons", but likewise prevented diffusion. And if James Burke has taught me anything, it's that communication is way more important than inspiration or perspiration.

It's exactly like Lisp. As it took Europe centuries to catch up with Chinese technology, it seems likely that it'll take Algol-style langs a century to catch up with Lisp concepts.

Re:Notation And Thinking by jeangenie on Tuesday November 30, 2010 @06:27PM (#1956036)
>> It's just a hunch, but I suspect the root cause for European imperialistic domination was that they had a more accessible writing notation.

the greeks devised a fantastic writing system, including representations of vowels (which its predecessor lacked). aristotle was the first person to say words should be separated when written (before all letters were run together, leaving the reader to unscramble).

your claim is a stretch, but it's interesting to note that reliable and easy ways to communicate and sustain our collective knowledge have become unexpectedly critical.

Re:Notation And Thinking by jessriedel on Tuesday November 30, 2010 @04:32PM (#1955653)
But your argument could be applied to mathematics, where powerful, non-ASCII symbols are very useful. What's different about programming?
Re:Notation And Thinking by maxwell on Wednesday December 01, 2010 @01:10PM (#1958795)
Nothing. I think non-ASCII symbols are a net loss in mathematics too. While they're powerful (taking succinctness to be equal to power), they come at the expense of accessibility. With great power comes great power consumption; there's a reason most people don't have jet engines under their hood or read mathematics: doing so is very expensive. I believe the cognitive cost outweighs the expressive benefit.
Re:Notation And Thinking by andrewl on Tuesday November 30, 2010 @09:48AM (#1954227)
There's always Fortress, which can be written in Unicode:

http://projectfortress.sun.com/Projects/Community/

Re:Notation And Thinking by derefr on Tuesday November 30, 2010 @10:53AM (#1954449)
Fortress code is still a linear stream of characters in a grammar that gets LR-parsed into an AST, though. Many other approaches are possible if you start with a different data structure—a digraph of tokens with node-identity, for example.
Re:Notation And Thinking by Jach on Tuesday November 30, 2010 @10:57AM (#1954463)
It is a shame, but I'm not sure how we could fix that situation. I'd much prefer to type λ than 'lambda', but my keyboard doesn't have a λ key!
Re:Notation And Thinking by gfodor on Tuesday November 30, 2010 @11:51AM (#1954686)
No, but your iPad could.
Re:Notation And Thinking by pavel_lishin on Tuesday November 30, 2010 @11:12AM (#1954519)
Does it have a ⊄ key?
Re:Notation And Thinking by _delirium on Tuesday November 30, 2010 @01:21PM (#1955022)
No, but that's why I never type it directly. In TeX, one gets it via the ASCII notation \not\subset. This gives TeX-math the curious property that it's read in a different set of symbols than it's written in. There have been some attempts at that in pretty-printing programming languages, but none seem to have really caught on.
Re:Notation And Thinking by jamii on Tuesday November 30, 2010 @10:45AM (#1954408)
Notation doesn't apply just to the symbols in which you write but the meanings and operations assigned to them and the way in which they can be combined. This applies as much to the expressiveness of language semantics as it does to the language syntax. Consider how things like first class functions change the way one approaches a problem and expresses the solution.