K
Kaz Kylheku
Paul said:
Right. What these have in common with Lisp is that they use manifest
typing, whereas Lisp uses latent typing. But after that, they mostly
diverge.
Paul said:
Yes. I changed my opinion on advocating Python having macros in oneThis sound familiar: "Macros are dangerous!"
This is new to me. In fact, for the compiled languages available to me."Compilers make you lazy."
Yep, I think I read that one. To (over), summarise what I read: the"Worse is better!"
I can't vouch for your Russian friend, but yes I do think that the(I have a Russian friend -- a mathematician -- who
jokes that the reason the Soviets were great mathematicians because
their computers sucked, so they had to use extensive formal
manipulation to get things to run fast enough to get anything done. He
was joking (I think); you don't appear to be.)
Python is newbie-friendly. Part of that is being accessible.No, actually maybe you should talk to them since you seem to think that
making Python run fast is dangerous, or at least unnecessary.
Now I'm *certain* that you're just pulling my leg: You guys document
all your random ten-line hacks in Wikipedia?!?! What a brilliant idea!
Does Lisp have a doctest-like module as part of its standardHey, you even have dead vaporware projects like uuu documented in
Wikipedia! Cool! (Actually, I don't know that doctest is ten lines in
Python, but it'd be about ten lines of Lisp, if that, so I'm just
guessing here.)
I find it amusing that most of the arguments that python-people are
making in this thread are actually the arguments that C++ and Java make
against Python. "Who needs dynamic typing?", "Who needs closures?",
"The idea of using whitespace for syntax is beyond stupid"... Now the
python guys obviouly see that that those arguments are bogus, but they
keep the same reasoning against lisp.
Paddy said:
Kaz said:I pity the hoplelessly anti-intellectual douche-bag who inflicted this
undergraduate misfeature upon the programming language.
This must be some unofficial patch that still has a hope of being shot
down in flames, right?
- Lisp is hard to learn (because of all those parenthesis)
Paddy said:Does Lisp have a doctest-like module as part of its standard
distribution?
There are advantages to
doctest being one of Pythons standard modules.
I pity the hoplelessly anti-intellectual douche-bag who inflicted this
undergraduate misfeature upon the programming language.
This must be some unofficial patch that still has a hope of being shot
down in flames, right?
That's a lot of hate in 2 sentences for judging a novel feature you
barely came across.
Timofei said:It's not surprising that no one uses this stuff for serious work.
compilers are GREATLY facilitated by having a
macro facility because (at first blush) all you need to do is to
macro-expand down to something you know how to turn into code.
Ken said:But with Lisp one does not have to clean up the indentation manually
after thrashing away at ones code.
Timofei said:But, you have to admit that it looks horrible (at least at the first glance). If
there's some programming style that I absolutely can't stand, it would be the
one where programmer writes a huge block of commentary describing what a
function does, followed by one-liner of code
information in itself. With doctest it is even worse, because examples also
contain superfluous information. Everyone can just copy-paste the code in REPL
and see what happens when you execute it.
Besides that, there are many reasons
why tests should be stored in a separate file, or at least not in the same
function that they are testing.
Also Wikipedia article contains some "Cons of doctest" that look pretty nasty:
It's not surprising that no one uses this stuff for serious work.
Oh wow! So much invective. So little reason.undergraduate misfeature upon the programming language.
Try doctest and you will see why it is not.This must be some unofficial patch that still has a hope of being shot
down in flames, right?
Alex Mizrahi said:PR> Which book?
Paul Graham's "On Lisp".
"Programming Languages:Application and Interpretation"
Shriram Krishnamurthi
Brown University
it's not Common Lisp but Scheme though, but it's very interesting since it
shows how continuations can be used for better web programming.
most CL implementation do tail call optimization, unless you're running
debug mode -- in that case you'd prefer full stack.
optimizing language. i think it's called trampolined style.
example can be found in PAIP book: interpreter of Scheme is implemented in
(defun drive-cps (cps-lambda)
(catch 'done
(loop for f = cps-lambda then (funcall f))))
Paul said:This book doesn't seem to be online.
Michele Simionato said:
Put aside,that I don't understand meaning of termI challenge anyone making psychological
claims about language X (for any X) being easier to either
read/learn/use than language Y (for any Y) to come up with any valid
evidence whatever.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.