If you can read this, either the style sheet didn't load or you have an older browser that doesn't support style sheets. Try clearing your browser cache and refreshing the page.

(WTKR)   Python swallows crocodile whole, will spend next four months compiling   (wtkr.com) divider line 48
    More: Repeat, Australia  
•       •       •

2100 clicks; posted to Geek » on 06 Mar 2014 at 4:06 PM (19 weeks ago)   |  Favorite    |   share:  Share on Twitter share via Email Share on Facebook   more»



48 Comments   (+0 »)
   
View Voting Results: Smartest and Funniest
 
2014-03-06 08:51:04 AM
Python is interpreted :\
 
2014-03-06 10:07:58 AM

Fubini: Python is interpreted :\


You forgot to indent
 
2014-03-06 11:02:46 AM
python -c "import crocodile"
 
ZAZ [TotalFark]
2014-03-06 11:18:42 AM
These days anything except C++ should compile quickly.

C++ and the compiler we worked on that had exponential worst case running time in the instruction scheduler, but we could blame the system architect for that.
 
2014-03-06 11:40:27 AM
www.mongabay.com

So crocodiles don't upset a python's stomach like an alligator would?
 
2014-03-06 02:58:56 PM
www.mediabistro.com

/hot
 
2014-03-06 04:20:38 PM
Damn!!
www.rowthree.com
 
2014-03-06 04:27:08 PM

ZAZ: These days anything except C++ should compile quickly.

C++ and the compiler we worked on that had exponential worst case running time in the instruction scheduler, but we could blame the system architect for that.


imgs.xkcd.com
 
2014-03-06 04:43:40 PM
His python boot was too tight, couldn't get it off last night.
 
2014-03-06 04:48:19 PM

WordsnCollision: His python boot was too tight, couldn't get it off last night.


STINK-FOOT!!!
 
2014-03-06 04:50:12 PM
What a croc of shiat.
 
2014-03-06 04:52:55 PM

hammettman: What a croc of shiat.


Well...in a few hours.
 
2014-03-06 04:53:06 PM
#!/usr/bin/env python
from time import sleep
from sys import stdout
str1 = "compiling"
str2 = "compiling."
str3 = "compiling.."
str4 = "compiling..."
str5 = "compiling   "
current_msg = str1
print "Crocodile Imported Successfully!"
stdout.write("\r"+str1)
stdout.flush()
for i in range(1,2629740):
    stdout.write("\r"+str2)
    stdout.flush()
    sleep(1)
    stdout.write("\r"+str3)
    stdout.flush()
    sleep(1)
    stdout.write("\r"+str4)
    stdout.flush()
    sleep(1)
    stdout.write("\r"+str5)
    stdout.flush()
    sleep(1)
 
2014-03-06 05:06:12 PM
Crocodile isn't your problem,  it's bloody numpy combined with an old version of virtualenv.

Virtualenv before 1.10 doesn't do system_site_packages properly.

So every single time you set up a new virtualenv, you get to spend 10 bloody minutes watching numpy compile.

Repeat every time you do an upgrade.
 
2014-03-06 05:13:54 PM
Hey that's funny...it's computer humor, right?
 
2014-03-06 05:52:05 PM

haemaker: hammettman: What a croc of shiat.

Well...in a few hours.


*muah* Good night, everybody!
 
2014-03-06 06:06:13 PM

haemaker: hammettman: What a croc of shiat.

Well...in a few hours weeks.

That snake won't eat anything else for a month or two
 
2014-03-06 06:17:19 PM
Done in one
 
2014-03-06 06:17:44 PM
crappy output though...
 
2014-03-06 06:59:24 PM
upload.wikimedia.org

Ouch!
 
2014-03-06 07:38:08 PM
I once ran a bubble sort algorithm on a million-element float array (yes... an array, not a list) in Python on an Intel Atom server just for teh lulz.

I gave up on it after three hours.
 
2014-03-06 09:04:27 PM
www.peakoil.net
 
2014-03-06 09:34:31 PM
So will the python just poop out the skeleton? Curious mind needs to know.
 
2014-03-06 10:30:49 PM

drjekel_mrhyde: haemaker: hammettman: What a croc of shiat.

Well...in a few hours weeks.
That snake won't eat anything else for a month or two


A month? I'm guessing a lot longer than that. But I'm no python gastrointestinal minutiae expert.
 
2014-03-06 11:11:08 PM

Fubini: Python is interpreted :\


Python's often (but not always) JIT compiled into bytecode. There's less of a distinction between compiled and interpreted these days.
 
2014-03-07 01:13:02 AM

Fubini: Python is interpreted


Shakes tiny fist in impotent rage.  The joke is still funny though.
 
2014-03-07 01:58:38 AM
The timing on this thread is impeccable. I am struggling with my Python midterm as we speak!

/Nested for loops :(   HATE!   HAAAAAATE!
 
2014-03-07 02:22:32 AM
That was like watching your mom making twenty bucks at a truck stop.
 
2014-03-07 02:25:50 AM

TheHopeDiamond: /Nested for loops :(   HATE!   HAAAAAATE!


The concept or the runtime efficiency?
 
2014-03-07 02:38:26 AM

psychometrix: TheHopeDiamond: /Nested for loops :(   HATE!   HAAAAAATE!

The concept or the runtime efficiency?


The  proper synctactic setup and deployment thereof.  (It's a beginning programmer class.)
 
2014-03-07 02:44:15 AM
Suddenly I'm interested in snakes pooping skeletons, since I'm not a programmer.
 
2014-03-07 02:54:08 AM

Kittypie070: Suddenly I'm interested in snakes pooping skeletons, since I'm not a programmer.


LOL neither am I, apparently. Thank God I only need this intro class for my degree field.
 
2014-03-07 03:32:17 AM

MrEricSir: Fubini: Python is interpreted :\

Python's often (but not always) JIT compiled into bytecode. There's less of a distinction between compiled and interpreted these days.


Python code is always converted into byte-code by the interpreter, but this occurs before the script is actually executed. Python is compiled only in the sense that parsing is done up-front, and that the result is cached to avoid the overhead of repeated parsings of the same source code. But the result is closer to the kind of code-representation you'd feed to a compiler than compiled code, even when considering compilers that targets VMs (such as the JRE or .net). Nor is the byte-code itself JIT compiled, except perhaps if you are using pypy, or possibly IronPython or Jython.
 
2014-03-07 04:32:37 AM

Kittypie070: Suddenly I'm interested in snakes pooping skeletons, since I'm not a programmer.


I *AM* a programmer and I'm far more interested in what the snake poops out. Like... is everything digested or does it come out in chunks?
 
2014-03-07 05:39:13 AM

Marine1: I once ran a bubble sort algorithm on a million-element float array (yes... an array, not a list) in Python on an Intel Atom server just for teh lulz.

I gave up on it after three hours.


So, did you get your lulz?
 
2014-03-07 06:04:11 AM

Animatronik: Marine1: I once ran a bubble sort algorithm on a million-element float array (yes... an array, not a list) in Python on an Intel Atom server just for teh lulz.

I gave up on it after three hours.

So, did you get your lulz?


Doesn't sound like it :/
 
2014-03-07 06:10:23 AM

kayanlau: So will the python just poop out the skeleton? Curious mind needs to know.


Nope.  Snake digestive systems are amazingly powerful and among the most efficient metabolic systems on earth.  The only animal materials they have trouble digesting are keratin and dentine.  On a croc, keratin will be in the claws and possibly some of the scales/scutes.  Dentine will be in the teeth.  When this snake poops in a few weeks (and that will be the mother of all dumps) all that will come out will be feces, teeth, claws, and maybe a scute or two.  Also, with a meal like that, the snake probably won't need to eat for well over a year.  It wouldn't even approach being starvation stressed for probably 2 years, and could probably make 3 with no food without dying.  If it is female, that croc is going to provide the nutrients for a pretty big clutch of python eggs.
 
2014-03-07 07:07:55 AM
How is the "swallowing whole" worthy of note here? Do snakes have other options available? Utensils? The ability to absorb nutrients via the trans-perambulation of pseudo-cosmic anti-matter?
 
2014-03-07 09:41:17 AM

TheHopeDiamond: psychometrix: TheHopeDiamond: /Nested for loops :(   HATE!   HAAAAAATE!

The concept or the runtime efficiency?

The  proper synctactic setup and deployment thereof.  (It's a beginning programmer class.)


You'll get it.  Just practice practice practice.
 
2014-03-07 09:45:21 AM

juvandy: Also, with a meal like that, the snake probably won't need to eat for well over a year.


Wow, I was sure it would be more than a month or 2, but well over a year?
 
2014-03-07 10:04:55 AM

juvandy: kayanlau: So will the python just poop out the skeleton? Curious mind needs to know.

Nope.  Snake digestive systems are amazingly powerful and among the most efficient metabolic systems on earth.  The only animal materials they have trouble digesting are keratin and dentine.  On a croc, keratin will be in the claws and possibly some of the scales/scutes.  Dentine will be in the teeth.  When this snake poops in a few weeks (and that will be the mother of all dumps) all that will come out will be feces, teeth, claws, and maybe a scute or two.  Also, with a meal like that, the snake probably won't need to eat for well over a year.  It wouldn't even approach being starvation stressed for probably 2 years, and could probably make 3 with no food without dying.  If it is female, that croc is going to provide the nutrients for a pretty big clutch of python eggs.


Thanks! (I say as a programmer also uninterested in further Python talk (awesome headline though, interpreted or not))
 
2014-03-07 02:15:16 PM

psychometrix: TheHopeDiamond: psychometrix: TheHopeDiamond: /Nested for loops :(   HATE!   HAAAAAATE!

You'll get it.  Just practice practice practice.


:)  I got something coded that worked. Now that I got some sleep, maybe I'll even go back.  look at it, and understand what I did haha
 
2014-03-07 05:21:48 PM

Animatronik: Marine1: I once ran a bubble sort algorithm on a million-element float array (yes... an array, not a list) in Python on an Intel Atom server just for teh lulz.

I gave up on it after three hours.

So, did you get your lulz?


Eh. It grew less lulzy, but indeed, lulz were had.

/that language makes C# look like a speed demon
 
2014-03-07 05:50:48 PM

rogue49: crappy output though...


best
 
2014-03-07 09:23:18 PM
If you're bothered by nested for loops, you're probably better of playing with snakes than trying to write code.
 
2014-03-08 01:45:13 AM

studebaker hoch: If you're bothered by nested for loops, you're probably better of playing with snakes than trying to write code.


Hey I'm new :)  I'll get it.
 
2014-03-08 02:00:36 AM

TheHopeDiamond: studebaker hoch: If you're bothered by nested for loops, you're probably better of playing with snakes than trying to write code.

Hey I'm new :)  I'll get it.


1) Yeah, nested for loops are pretty much a *thing*.

By the way, for SUPER shiats and giggles, figure out a way to iteratively loop through an N-dimensional array (So you don't know HOW MANY nested for loops you're going to need).  I've gotten 2 job offers off doing that on command in interviews.

2) So one of the EVIL, EVIL tricks that my early professors pulled on me was forcing me to use 80-character line width and 8-character tabs.

Class, Function, For, For, For, IF.  Fark me, I have 32 characters to write in.  Maybe I should rewrite this.
 
2014-03-08 04:01:44 AM

juvandy: kayanlau: So will the python just poop out the skeleton? Curious mind needs to know.

Nope.  Snake digestive systems are amazingly powerful and among the most efficient metabolic systems on earth.  The only animal materials they have trouble digesting are keratin and dentine.  On a croc, keratin will be in the claws and possibly some of the scales/scutes.  Dentine will be in the teeth.  When this snake poops in a few weeks (and that will be the mother of all dumps) all that will come out will be feces, teeth, claws, and maybe a scute or two.  Also, with a meal like that, the snake probably won't need to eat for well over a year.  It wouldn't even approach being starvation stressed for probably 2 years, and could probably make 3 with no food without dying.  If it is female, that croc is going to provide the nutrients for a pretty big clutch of python eggs.


OK, in my next lifetime I wanna be a human with a powerful snakie digestive tract.
 
Displayed 48 of 48 comments

View Voting Results: Smartest and Funniest


This thread is closed to new comments.

Continue Farking
Submit a Link »






Report