News for hackers. Stuff that matters.
Re:Not Lisp again (2009) by Will_Parker on Tuesday May 02, 2017 @01:21PM (#14248388)
Indeed, posts like this are of historical interest, but today, take Python:

    dx = 0.0001
    def deriv(f):
        return lambda x: (f(x + dx) - f(x)) / dx
This works just the same as the author's example and looks even more like the calculus formula people are used to.
Re:Not Lisp again (2009) by exDM69 on Tuesday May 02, 2017 @01:49PM (#14248709)
Now do the same using symbolic computation.

SymPy does it beautifully but it's much much more complicated than the equivalent in Scheme.

Symbolic differentation a topic covered in the early chapters of SICP. Doing the same in Python requires intimate knowledge of the dark corners of Python and is not at all suitable for an example in an introductory computer science class.

Re:Not Lisp again (2009) by brlewis on Tuesday May 02, 2017 @01:49PM (#14248712)
f(x + dx) does look more conventional than (f (+ x dx)), but

  (/ numerator
     denominator)
looks more like the conventional fraction syntax than putting a / somewhere in the middle of a line.
Re:Not Lisp again (2009) by Will_Parker on Tuesday May 02, 2017 @01:59PM (#14248816)
I'll give you that but also, ask 100 random people what "3/4" means and what "(/ 3 4)" means.
Re:Not Lisp again (2009) by brlewis on Tuesday May 02, 2017 @04:00PM (#14250025)
Yes, I'm sure hardly any would say "three fourths" for (/ 3 4) and a lot of them would for 3/4. (A lot of them might also say "three or four".)

Incidentally Scheme syntax recognizes 3/4 as a rational number. It will do rational arithmetic without floating point problems.

Re:Not Lisp again (2009) by klibertp on Tuesday May 02, 2017 @02:33PM (#14249186)
Are you sure random people are going to recognize "3/4" notation? It could be different for "3 ÷ 4", but I think "3/4" is not widely used outside of programming?
Re:Not Lisp again (2009) by archgoon on Tuesday May 02, 2017 @02:46PM (#14249320)
Re:Not Lisp again (2009) by int_19h on Tuesday May 02, 2017 @07:35PM (#14251695)
It is a country-specific convention. What's written as e.g. ½ in US would be more commonly written with a horizontal dividing line in many other places, or simply as 0.5. Similarly, 2.5 instead of 2½ etc.
Re:Not Lisp again (2009) by klibertp on Tuesday May 02, 2017 @02:58PM (#14249466)
No, I didn't... At least, not in English. Good to know, thanks.
Re:Not Lisp again (2009) by omaranto on Tuesday May 02, 2017 @06:42PM (#14251329)
It's used outside of programming in, say, mathematics. :)
Re:Not Lisp again (2009) by syncsynchalt on Tuesday May 02, 2017 @05:40PM (#14250876)
Racket (and others?) gives you a sugar of (n . / . d) to infix any two-arg function if that's a stumbling block.
Re:Not Lisp again (2009) by int_19h on Tuesday May 02, 2017 @07:30PM (#14251659)
I don't know, things like 1/2 are pretty conventional fraction syntax.

But if you really wanted to, you could always do the same thing in Python, since newlines are basically just ignored inside parentheses:

   (numerator /
    denominator)
Or even place / on its own line if so desired.