News for hackers. Stuff that matters.
Re:Smalltalk-80 on Raspberry Pi: A Bare Metal Implementation by worik on Sunday January 01, 2023 @04:37PM (#34211240)
> as its grammar almost reads like English.

Really? How different our interpretations can be, that is incredibly opaque too me. Even reading your explanation I do not understand it.

Horses for courses, I guess

Re:Smalltalk-80 on Raspberry Pi: A Bare Metal Implementation by tinco on Sunday January 01, 2023 @06:49PM (#34212485)
glacials made a typo that makes their explanation harder to folow. The correct smalltalk is:

    3 factorial + 4 factorial between: 10 and: 100
And the point about it reading like English is that because the syntax relies heavily on their fancy precedence rules you can make complex expressions without needing parentheses I think. It looks like the compiler magically knows what is meant by the expression, but the reality is that you need to be very aware of the grammar to be able to write it. It does look pretty in my opinion, but definitely opaque to someone not aware of the rules.

    Is 3 factorial plus 4 factorial between 10 and 100?
Re:Smalltalk-80 on Raspberry Pi: A Bare Metal Implementation by Jtsummers on Sunday January 01, 2023 @07:34PM (#34212805)
Throwing in the parenthesis:

  ((3 factorial) + (4 factorial)) between: 10 and: 100.
Otherwise it's just left to right processing:

  3 + 4 * 10.
Becomes 70 as a consequence of these rules, the parser is pretty simple.
Re:Smalltalk-80 on Raspberry Pi: A Bare Metal Implementation by tragomaskhalos on Sunday January 01, 2023 @06:56PM (#34212547)
The precedence rules are: unary > binary > keyword. That's it. Various criticisms have been levelled at Smalltalk, but it's a very long stretch to claim that it is difficult for humans to learn.
Re:Smalltalk-80 on Raspberry Pi: A Bare Metal Implementation by tinco on Sunday January 01, 2023 @08:15PM (#34213075)
Good thing that no one was claiming it is difficult to learn. Those precedence rules are very fancy indeed.
Re:Smalltalk-80 on Raspberry Pi: A Bare Metal Implementation by worik on Monday January 02, 2023 @09:00PM (#34226584)
Yes. Clear as mud