News for hackers. Stuff that matters.
Re:Programming languages have to break free from the tyranny... by lisper on Saturday October 30, 2010 @12:06PM (#1851116)
Like this: (λ (ø) (sin (* π ø)))

I did that on a Mac using the option key and a few custom key bindings.

The real question is how do you READ it. The problem is that unless you are very selective about your fonts and which characters you use, it can become impossible to read because many unicode characters are visually indistinguishable.

Re:Programming languages have to break free from the tyranny... by jerf on Saturday October 30, 2010 @02:15PM (#1851431)
With all due respect, I fairly clearly indicated that I am aware of such things. I even typed a unicode character that for me is one keystroke: ‽. I've got that mapped to backspace, since I moved that to Caps Lock (and just discarded Caps Lock).

But that's not the actual point. Learning a new language is a challenge. Learning a new language when you haven't already learned 10 is an even bigger challenge. Learning your first language is very difficult, which most of us have probably forgotten. Now, to the list of things you have to learn to do so, we want to add learning several dozen brand new keystrokes that nobody knows offhand? It may not seem like much compared to everything else one has to learn to program, but having to learn a lot of stuff is annoying; having to fight your input devices is like being rendered mute. Try switching your keyboard map for a few days to see how you like it. This is not a level of frustration worth pursuing.

Re:Programming languages have to break free from the tyranny... by mustpax on Saturday October 30, 2010 @03:31PM (#1851601)
Somewhat offtopic: what do you use to remap keys? I've long wanted to customize my layout.
Re:Programming languages have to break free from the tyranny... by klochner on Saturday October 30, 2010 @04:21PM (#1851716)
PCKeyboardHack for mac (i have caps mapped to esc for vi)

http://pqrs.org/macosx/keyremap4macbook/extra.html

Re:Programming languages have to break free from the tyranny... by driax on Saturday October 30, 2010 @03:37PM (#1851610)
On window I use Autohotkey. Remapping Capslock to F-15 (so that I can customize that button differently in each program) is a simple script:

    Capslock::F15
Re:Programming languages have to break free from the tyranny... by zzleeper on Saturday October 30, 2010 @04:39PM (#1851759)
Can you elaborate on the F15 thing? According to google, it's just the mute button!
Re:Programming languages have to break free from the tyranny... by jcromartie on Saturday October 30, 2010 @04:41PM (#1851761)
Yeah yeah yeah... every l33t Mac hax0r knows how to use the option key. Great! But guess what? People program on Linux and Windows too, and the fact is that it's a hell of a lot easier to type "fn" than it is to type ∑Ò™£‹˙√«»ç◊... where the hell is the key for lambda?
Re:Programming languages have to break free from the tyranny... by sblom on Saturday October 30, 2010 @06:37PM (#1851961)
And that sigma that you led off with is the mathematical summation sigma and not the Greek letter. This gets really really hard cross-platform. (On Windows, your best bet for typing summation sigma requires a registry hack.)
Re:Programming languages have to break free from the tyranny... by pbhjpbhj on Saturday October 30, 2010 @08:10PM (#1852117)
>the mathematical summation sigma and not the Greek letter

I'm prepared to be corrected but ..

Greek capital sigma is the mathematical "sum" symbol just as capital pi is the product symbol.

Re:Programming languages have to break free from the tyranny... by james2vegas on Sunday October 31, 2010 @08:12AM (#1853139)
While they are the same, in Unicode, the codepoint U+2211 is summation, U+03A3 is capital letter sigma.
Re:Programming languages have to break free from the tyranny... by Raphael on Saturday October 30, 2010 @04:32PM (#1851741)
Surely you mean θ as in theta.
Re:Programming languages have to break free from the tyranny... by LInuxFedora on Saturday October 30, 2010 @12:36PM (#1851194)
C'mon they are distinguishable. can you differentiate between λ and ø .
Re:Programming languages have to break free from the tyranny... by nuclear_eclipse on Saturday October 30, 2010 @01:16PM (#1851288)
But can you quickly and easily distinguish between Ͱ and ͱ, or even Ω and Ω? The last two really are different Unicode characters, the first is Greek capital Omega, the second is the Ohm symbol...
Re:Programming languages have to break free from the tyranny... by WalterBright on Saturday October 30, 2010 @03:19PM (#1851571)
And the first two are rendered in my browser as a square box because the font doesn't support them. Useless.
Re:Programming languages have to break free from the tyranny... by sprout on Saturday October 30, 2010 @06:51PM (#1851989)
Mobile webkit?
Re:Programming languages have to break free from the tyranny... by bmm6o on Saturday October 30, 2010 @07:33PM (#1852048)
Firefox on Vista renders as boxes.
Re:Programming languages have to break free from the tyranny... by wmf on Saturday October 30, 2010 @03:00PM (#1851527)
I see why that's a problem for domain names, but not for programming languages. You just define that one character has meaning and all its homoglyphs are syntax errors (even in identifier names).
Re:Programming languages have to break free from the tyranny... by akgerber on Saturday October 30, 2010 @03:56PM (#1851660)
But what characters are homoglyphs are determined by your choice of typeface.
Re:Programming languages have to break free from the tyranny... by jacobbijani on Saturday October 30, 2010 @03:40PM (#1851617)
Introduce a library or something written by someone else that tries to use clever and cute Unicode names, and imagine debugging that.
Re:Programming languages have to break free from the tyranny... by dedward on Saturday October 30, 2010 @04:48PM (#1851777)
Which is kind of weird, considering that the Ohm symbol is by definition the greek Omega - why did we use two separate unicode slots for them?
Re:Programming languages have to break free from the tyranny... by billswift on Saturday October 30, 2010 @08:34PM (#1852151)
I suspect they incorporated two different pre-existing symbol sets - the Greek alphabet and a set of scientific symbols.

Added - they did; here is an older version (3.0) of the standard online http://www.unicode.org/book/u2.html

Re:Programming languages have to break free from the tyranny... by ciupicri on Saturday October 30, 2010 @01:30PM (#1851321)
Do you have any idea why there are 2 different Unicode characters when on paper you would use the Greek Omega letter?
Re:Programming languages have to break free from the tyranny... by Hemospectrum on Saturday October 30, 2010 @01:47PM (#1851370)
Unicode is a superset of numerous other encodings, usually the national standards of the countries whose written languages they want to encode. For example, the sections for the Greek and Cyrillic alphabets have identical layouts to existing Greek-only and Russian-only encodings.

The exceptions to this policy are usually writing systems that didn't have standardized encodings at the time they were incorporated into Unicode. Also, the rather notorious CJK unification project resulted in several new overlapping layouts as Unicode policy changed over time with respect to Chinese characters.

Re:Programming languages have to break free from the tyranny... by mfukar on Saturday October 30, 2010 @01:29PM (#1851316)
That's another very interesting difficulty: the symbol for ohm is supposed to be the Greek capital omega. Resolving such ambiguities (where applicable, of course) would probably add a lot of complicated code, and I'm not 100% sure it's trivial for all similar cases.
Re:Programming languages have to break free from the tyranny... by kiujhgbnj on Saturday October 30, 2010 @01:16PM (#1851289)
But can you distinguish between a capital Beta and a Shluse?
Re:Programming languages have to break free from the tyranny... by llimllib on Saturday October 30, 2010 @01:40PM (#1851346)
Just for reference in your screen font: β and ß