News for hackers. Stuff that matters.
Re:Concise algorithms written in Julia by spywaregorilla on Friday July 09, 2021 @11:16AM (#27784540)
They seem appropriate if you want your code to read like the math they're representing.
Re:Concise algorithms written in Julia by kps on Friday July 09, 2021 @11:47AM (#27784899)
“I used to be a mathematics professor. At that time I found there were a certain number of students who could not learn mathematics. I then was charged with ¨the job of making it easy for businessmen to use our computers. I found it was not a question of whether they could learn mathematics or not, but whether they would. […] They said, ‘Throw those symbols out — I do not know what they mean, I have not time to learn symbols.’ I suggest a reply to those who would like data processing people to use mathematical symbols that they make the first attempt to teach those symbols to vice-presidents or a colonel or admiral. I assure you that I tried it.” — Grace Hopper

tl;dr: COBOL won.

Re:Concise algorithms written in Julia by ska on Friday July 09, 2021 @11:54AM (#27785002)
Hopper was making a bit of a different point - you need to tailor your communication to your audience.

In this case, if the developers involved are assumed to know the math already, concise is probably for the good. If you are trying to teach the algorithms to a mathematically unsophisticated audience, it's a different story.

If I'm describing the same concept to a) a group of undergrad students, b) a group of mathematicians and grad students c) a group of software developers or d) a room full of execs - I'm going to do it differently in each case, including notation and emphasis.

Re:Concise algorithms written in Julia by kps on Friday July 09, 2021 @01:45PM (#27786344)
Yes, that was my point, or at least part of it: COBOL style isn't suitable for mathematical programming.

The other part is that it was never intended for programmers at all; it was for the ‘vice-president or a colonel or admiral’ who wanted the illusion of being able to understand their underlings' work. I think it's unfortunate that it took over general-purpose computing during the dot-com boom; prolixity engenders clarity about as much in code as in human language.

Re:Concise algorithms written in Julia by nerdponx on Friday July 09, 2021 @11:53AM (#27784988)
For business and business people.

Julia's target audience isn't "business" or "business people", although there's no reason you couldn't use it for that purpose.

Re:Concise algorithms written in Julia by spywaregorilla on Friday July 09, 2021 @11:59AM (#27785065)
Julia is not for businessmen incapable of learning mathematics.