Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.misc > #804 > unrolled thread

Fun with Unicode and Julia - IainDunning.com

Started byRS Wood <rsw@therandymon.com>
First post2014-02-23 19:29 +0000
Last post2014-02-26 15:27 +0200
Articles 9 — 8 participants

Back to article view | Back to comp.misc


Contents

  Fun with Unicode and Julia - IainDunning.com RS Wood <rsw@therandymon.com> - 2014-02-23 19:29 +0000
    Re: Fun with Unicode and Julia - IainDunning.com Dan Espen <despen@verizon.net> - 2014-02-23 15:26 -0500
      Re: Fun with Unicode and Julia - IainDunning.com Koen <koen.lefever@gmail.com> - 2014-02-23 21:11 +0000
        Re: Fun with Unicode and Julia - IainDunning.com RS Wood <rsw@therandymon.com> - 2014-02-24 08:55 +0000
          Re: Fun with Unicode and Julia - IainDunning.com Peter Percival <peterxpercival@hotmail.com> - 2014-02-26 12:48 +0000
            Re: Fun with Unicode and Julia - IainDunning.com "Andy K." <andy.k466@gmail.com> - 2014-03-02 18:25 +0100
        Re: Fun with Unicode and Julia - IainDunning.com dialmove <dialmove@gmail.com> - 2014-02-26 12:15 +0000
          Re: Fun with Unicode and Julia - IainDunning.com Paul Sture <nospam@sture.ch> - 2014-03-03 17:10 +0100
        Re: Fun with Unicode and Julia - IainDunning.com Marko Rauhamaa <marko@pacujo.net> - 2014-02-26 15:27 +0200

#804 — Fun with Unicode and Julia - IainDunning.com

FromRS Wood <rsw@therandymon.com>
Date2014-02-23 19:29 +0000
SubjectFun with Unicode and Julia - IainDunning.com
Message-ID<ledi65$ksb$1@solani.org>
 http://iaindunning.com/2014/julia-unicode.html

I'm not a programmer but even I think this is neat.
-- 

[toc] | [next] | [standalone]


#807

FromDan Espen <despen@verizon.net>
Date2014-02-23 15:26 -0500
Message-ID<icwqglbmnj.fsf@home.home>
In reply to#804
RS Wood <rsw@therandymon.com> writes:

>  http://iaindunning.com/2014/julia-unicode.html
>
> I'm not a programmer but even I think this is neat.

It's fun the write code that is difficult to type
and my not display or print?

Not on any project I have a say in.

-- 
Dan Espen

[toc] | [prev] | [next] | [standalone]


#810

FromKoen <koen.lefever@gmail.com>
Date2014-02-23 21:11 +0000
Message-ID<ledo5m$bog$1@dont-email.me>
In reply to#807
On Sun, 23 Feb 2014 15:26:56 -0500, Dan Espen wrote:

> RS Wood <rsw@therandymon.com> writes:
>>  http://iaindunning.com/2014/julia-unicode.html
>> I'm not a programmer but even I think this is neat.
> 
> It's fun to write code that is difficult to type and may not display or
> print?
> Not on any project I have a say in.

I agree. It is not because something can be done that it should be done.
If anything, the example code becomes more difficult to read.
Also the problems at the bottom of the article: the micro symbol and the 
small Greek letter mu look the same (µ) but they are different characters.
Not in my code.

[toc] | [prev] | [next] | [standalone]


#831

FromRS Wood <rsw@therandymon.com>
Date2014-02-24 08:55 +0000
Message-ID<lef1e5$2oh$1@solani.org>
In reply to#810
Koen wrote:
> On Sun, 23 Feb 2014 15:26:56 -0500, Dan Espen wrote:
>
>> RS Wood<rsw@therandymon.com>  writes:
>>>   http://iaindunning.com/2014/julia-unicode.html
>>> I'm not a programmer but even I think this is neat.
>>
>> It's fun to write code that is difficult to type and may not display or
>> print?
>> Not on any project I have a say in.
>
> I agree. It is not because something can be done that it should be done.
> If anything, the example code becomes more difficult to read.
> Also the problems at the bottom of the article: the micro symbol and the
> small Greek letter mu look the same (µ) but they are different characters.
> Not in my code.

And that, folks, is apparently why I'm not a programmer.  :)  Never 
occurred to me, but what you're saying makes sense.

[toc] | [prev] | [next] | [standalone]


#957

FromPeter Percival <peterxpercival@hotmail.com>
Date2014-02-26 12:48 +0000
Message-ID<leknqu$4bt$1@news.albasani.net>
In reply to#831
RS Wood wrote:
> Koen wrote:
>> On Sun, 23 Feb 2014 15:26:56 -0500, Dan Espen wrote:
>>
>>> RS Wood<rsw@therandymon.com>  writes:
>>>>   http://iaindunning.com/2014/julia-unicode.html
>>>> I'm not a programmer but even I think this is neat.
>>>
>>> It's fun to write code that is difficult to type and may not display or
>>> print?
>>> Not on any project I have a say in.
>>
>> I agree. It is not because something can be done that it should be done.
>> If anything, the example code becomes more difficult to read.
>> Also the problems at the bottom of the article: the micro symbol and the
>> small Greek letter mu look the same (µ) but they are different
>> characters.
>> Not in my code.
>
> And that, folks, is apparently why I'm not a programmer.  :)  Never
> occurred to me, but what you're saying makes sense.

But what they are saying is only part of the story.  If the customer 
wants to read the output of a program in his native language, why 
shouldn't he?

The beauty of ASCII is that one can write English in it.  And the beauty 
of English is that it is the language that, first the Brits, and then 
the Americans spread around the world.  But that is just an historical 
accident.  It is not all that long ago that the lingua franca of the 
well educated was Latin: scholars from all over Europe could communicate 
with one another even though their mother tongues differed considerably. 
  So English has replaced Latin; who's to say that Mandarin, e.g., won't 
replace English someday?

-- 
Madam Life's a piece in bloom,
Death goes dogging everywhere:
She's the tenant of the room,
He's the ruffian on the stair.

[toc] | [prev] | [next] | [standalone]


#1156

From"Andy K." <andy.k466@gmail.com>
Date2014-03-02 18:25 +0100
Message-ID<20140302182526.29bf2036.andy.k466@gmail.com>
In reply to#957
On Wed, 26 Feb 2014 12:48:28 +0000
Peter Percival <peterxpercival@hotmail.com> wrote:

> But what they are saying is only part of the story.  If the customer 
> wants to read the output of a program in his native language, why 
> shouldn't he?

That's fine and dandy, and most modern software does that already. This is not
about Unicode in the output, but in the code itself, where ASCII is perfectly
sufficient (at least I never felt constrained in this regard).

Still, the article allowed us an interesting look through a window into an
alternate programming reality. :)

-- 
Andy

[toc] | [prev] | [next] | [standalone]


#956

Fromdialmove <dialmove@gmail.com>
Date2014-02-26 12:15 +0000
Message-ID<leklsh$vnl$1@dont-email.me>
In reply to#810
On Sun, 23 Feb 2014 21:11:18 +0000, Koen wrote:

> On Sun, 23 Feb 2014 15:26:56 -0500, Dan Espen wrote:
>> It's fun to write code that is difficult to type and may not display or
>> print?
>> Not on any project I have a say in.
> 
> I agree. It is not because something can be done that it should be done.
> If anything, the example code becomes more difficult to read.
> Also the problems at the bottom of the article: the micro symbol and the
> small Greek letter mu look the same (µ) but they are different
> characters.
> Not in my code.


The possibilities for obfuscated Julia contests are endless, though. 
Thus the title, "Fun with Unicode and Julia", is justified.

[toc] | [prev] | [next] | [standalone]


#1205

FromPaul Sture <nospam@sture.ch>
Date2014-03-03 17:10 +0100
Message-ID<p3meua-oql2.ln1@news.chingola.ch>
In reply to#956
On 2014-02-26, dialmove <dialmove@gmail.com> wrote:
> On Sun, 23 Feb 2014 21:11:18 +0000, Koen wrote:
>
>> On Sun, 23 Feb 2014 15:26:56 -0500, Dan Espen wrote:
>>> It's fun to write code that is difficult to type and may not display or
>>> print?
>>> Not on any project I have a say in.
>> 
>> I agree. It is not because something can be done that it should be done.
>> If anything, the example code becomes more difficult to read.
>> Also the problems at the bottom of the article: the micro symbol and the
>> small Greek letter mu look the same (µ) but they are different
>> characters.
>> Not in my code.
>
>
> The possibilities for obfuscated Julia contests are endless, though. 
> Thus the title, "Fun with Unicode and Julia", is justified.

Several years ago we had a bit of fun on a forum which was using Arial as
the font for displaying usernames.  Anyone with l, 1, I, 0 or O in their
username became a target for what were fortunately no more than light
hearted pranks.

-- 
Paul Sture
Not the one on Facebook

[toc] | [prev] | [next] | [standalone]


#960

FromMarko Rauhamaa <marko@pacujo.net>
Date2014-02-26 15:27 +0200
Message-ID<87r46qypg7.fsf@elektro.pacujo.net>
In reply to#810
Koen <koen.lefever@gmail.com>:

> Also the problems at the bottom of the article: the micro symbol and
> the small Greek letter mu look the same (µ) but they are different
> characters.

Unicode does have such quirks. Nowhere does it say that you couldn't use
the Greek letter mu for micro, but there is probably some historical
justification for supporting the distinction in Unicode.

Note that there is there is a separate sign in Unicode for the kelvin
symbol (K). There is no symbol for the meter or liter, but there are
symbols for the square meter (㎡) and angstrom (Å ).

Maybe you think it's handy to have separate upper-case symbols that stay
intact through a lower-case conversion. However, Java at least is happy
to lower-case the kelvin and angstrom symbols (with the regular latin
letters k and å).

So feel free to express your cold lab temperature in μK, μK, µK or µK.


Marko

[toc] | [prev] | [standalone]


Back to top | Article view | comp.misc


csiph-web