News for hackers. Stuff that matters.
Re:Writing a C compiler in 500 lines of Python by bsder on Monday September 04, 2023 @11:43PM (#37387611)
Infix parsing chews up a remarkable amount code and memory.

It's scary just how much easier it is to parse languages without infix parsing.

Re:Writing a C compiler in 500 lines of Python by fodkodrasz on Tuesday September 05, 2023 @06:20AM (#37389933)
where it takes up the memory in the human brain, where we have more limited working set, than in computers. That is probably why postfix notation is mostly a thing of the past by now in languages intended to be used by humans.
Re:Writing a C compiler in 500 lines of Python by algas on Tuesday September 05, 2023 @07:52AM (#37390481)
(in (is "prefix notation" (and "alive" "kicking")) "all lisps")
Re:Writing a C compiler in 500 lines of Python by pritambaral on Tuesday September 05, 2023 @08:40AM (#37390853)

    (-<> "alive"
         (and "kicking")
         (is "prefix notation" <>)
         (in "all lisps"))
Re:Writing a C compiler in 500 lines of Python by bsder on Tuesday September 05, 2023 @05:20PM (#37397919)
But creates a habit of having exactly two individual items for an operation.

Which led us to imperative programming and object oriented programming. Which everybody now recognizes as limited in various artificial ways.

Which we are now struggling to shake off given that the majority of chips have a whopping number of parallel cores.

Programming languages restrain your thinking about your solution space.