Re: Why it does not work?



KT> It's a shame you spent all that energy thrashing that poor straw man.

Trolling Kenny, isn't it worth it?

??>>>> You can write it in plain English for same effect:
??>>>>
??>>>> (loop for i from 0 :to 10
??>>>> appending (loop for j from 0 to 10
??>>>> collecting (+ i j)))
??>>>>
KT> The inner loop is right there before your eyes forming new unshared
KT> structure. appending is just ignorant.

I thought this is just an example. If you consider it a whole program, it
absolutely
does not matter if it conses or not, since it is done only once. It is
likely that GC
won't be even triggered in this example. Let's check... SBCL says that it
executes
in 0.0 seconds with APPEND and in 0.0 seconds with NCONC. There is no
measurable difference in performance.

Even it is a part of a larger program and this fragment is executed
frequently,
it would make more sense to make it just once. Even if you need a fresh
structure each time, one can implement it as
(copy-list #.(list 'quote (loop ... )))

KT> btw, the real howler there is the justification: so we can write Lisp
in
KT> plain English.

Well, when one learns a language, it is nice when function names are
easy to remember English words, rather than some weird garbage.
Then he can focus on learning language concepts instead of memorizing
bullshit. Later he'll probable notice some pattern -- a lot destructive
functions start with N (I still don't know why) -- and will memorize weird
names too.

KT> You people scare me.

Yeah, you scare me too -- using NCONC instead of APPEND for performance
reasons?
With attitude like this, I wonder why are you Lisp programmer rather than
assembly
language programmer. Well, I guess decades ago it was a big deal...


.



Relevant Pages

  • Comparing languages
    ... Petro: Jes, and knowledge is based on observation and experiment. ... > number of distinct elements of the language a learner needs to memorize ... Is memorizing an affix the same as memorizing a root? ... This rule is proved first with Esperanto, ...
    (sci.lang)
  • Re: Comparing languages
    ... > words does it take to be equivalent to memorizing word order in questions? ... > at the spoken language only, the written language, both? ... I'd have thought that the expressiveness would be based on, I dunno, ... point of this "research" to compare languages? ...
    (sci.lang)
  • Re: Why it does not work?
    ... Trolling Kenny, isn't it worth it? ... Then he can focus on learning language concepts instead of memorizing ... you scare me too -- using NCONC instead of APPEND for performance ... much easier than assembly language. ...
    (comp.lang.lisp)
  • Re: Esperantist lies (Re: Learning a language)
    ... Scientific knowledge is not based upon the prestige of persons. ... > number of distinct elements of the language a learner needs to memorize ... How many memorized words ... Is memorizing an affix the same as memorizing a root? ...
    (sci.lang)
  • Re: PIPE redirection as stream file ?
    ... $ pipe command | append sys$pipe empty.dat ... 2nd being empty) and as both copy and append are record oriented, ... That's where you get the VFC format from. ... This should give you the language default output format ...
    (comp.os.vms)