News for hackers. Stuff that matters.
Re:Mu: making programs easier to understand in the large by nickpsecurity on Saturday February 13, 2016 @01:32PM (#11095059)
Ada called them tasks. I always thought a multi-tasking program made more sense intuitively if one knew what a task was. A language designed for easy learning might call them actions, activities, jobs a la 1960's... something more intuitive.

Interesting, as I tried a quick brainstorm, I thought of a group of kids sitting together playing with the same toys. Actions that only one could do on a toy at the same time. Trying to convey the problems or exclusivity. Mentally came to problem of sharing. Then that people often borrowed toys temporarily then the owner checked up on them.

(lightbulb) Rust has a borrow-checker. And ownership. Now I wonder where they came up with that haha.

Re:Mu: making programs easier to understand in the large by slang800 on Sunday February 14, 2016 @10:46AM (#11098660)
I'm not sure if a term like "tasks" / "jobs" / "actions" makes more sense. You wouldn't necessarily separate each thing that a program does into a new thread... Functions are for separating each body of work, while threads represent a path of execution through a process. In this way multiple lines of execution are intertwined to form a process, just as real threads are intertwined to form a rope... It's not a very good metaphor, but I can't think of a better one.

In Ada, "tasks" makes sense, but only because it is an abstraction that makes use of threads while managing all memory access and separation from the rest of the process.

Re:Mu: making programs easier to understand in the large by nickpsecurity on Sunday February 14, 2016 @05:40PM (#11100339)
Hmm. Good points. Maybe make an analogy to sonething like traffic lanes? More lanes equals more throughput. Not always utilized and diminishing gains as you add lanes for given workload. Problems occur during intersections where they share a resource. Requires synchronization, signalling, and/or ordering protocols to maintain safety.

How you like THAT! Maybe need a similar analogy closer to whats going on but the spirit of it seems accurate. Maybe factory workers on assembly lines or offics workers at desks.

Re:Mu: making programs easier to understand in the large by akkartik on Monday February 15, 2016 @02:31PM (#11105349)
I like that very much.