Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: [OT] Python vs R (linked list vs array )

by LanX (Saint)
on May 31, 2017 at 23:52 UTC ( [id://1191767]=note: print w/replies, xml ) Need Help??


in reply to Re^4: [OT] Python vs R
in thread [OT] Python vs R

> > Python also has a powerful implementation of LISP-style lists

Of course this is BS

Python "lists" are exactly like Perl "arrays" , ie an implementation as a vector of pointers. °

But Lisp lists are linked lists, like emulated in Higher Order Perl. I.e. every element has additional to a value a pointer (link) to its successor element. This makes referencing a higher index very expensive because you have to traverse the whole list, but has other advantages (splitting is trivial).

So these "lists" are fundamentally different data structures only sharing similar names!

But ...

... I wonder why you guys spend time arguing against the PerlTrump who combines kindergarten knowledge with a ridiculously huge ego ? ? ?

Just compose one "hall of shame" thread listing and linking his worst 20- 100 nonsense statements and keep referencing it in your replies.

The regulars know him already and the newbees will quickly grasp his abysmal wisdom from this master thread.

Why wasting energy?

See also:

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

°) Python (well numpy) has indeed an "array" class as a wrapper around C arrays only allowing elements of same type and size, something we could emulate with pack and substr

  • Comment on Re^5: [OT] Python vs R (linked list vs array )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1191767]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found