News for hackers. Stuff that matters.
Re:Criticizing Hare language approach for generic data struc... by wheelerof4te on Thursday May 05, 2022 @04:45AM (#31271051)
"Yes, a toy: inadequate for professional work. You can cut grass with scissors, but nobody who understands the task will hire you to do it."

Can you explain what you mean here? In the context of structured programming.

"CPUs do not, in fact, see procedures. They execute machine instructions. Your "procedures", exactly, 'encapsulate complexity behind a language feature'."

That's right, CPUs execute instructions. Those instructions are executed one after another, with jumps when a certain operation should be repeated or skipped. This is the definition of structured programming. Structured programming is a simple abstraction over how CPUs execute machine instructions.

I don't see any objects with methods there. Nor do I understand how would a CPU understand a lambda function or care if something is immutable or not.

"I assume that was a ham-handed attempt at an insult."

No insult there. It is just a sad reality how many developers rely on Stack overflow instead of using their own head a little.

Re:Criticizing Hare language approach for generic data struc... by ncmncm on Thursday May 05, 2022 @11:38AM (#31274723)
It is not, in fact, the definition of structured programming.

Structured programming was defined by Edsger Dijkstra, and consisted originally of a model of programming with restrictions on where branches may go. Later programming language constructs if/then/else and while implemented this model. It does not address subroutines.

I describe C and similarly primitive languages as toys because they do not provide the expressive power needed to enable the levels of productivity and reliability demanded of serious work.