Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Duff's Device in Python?

Name: Anonymous 2007-09-23 0:58 ID:4FZ0PxPX

Hi,

How do I implement Duff's Device (like from C) in Python?

Name: Anonymous 2007-09-23 0:59 ID:2Q8Fd+RX

nobody cares

Name: Anonymous 2007-09-23 1:25 ID:fT6sfvcd

>>1
ONE WORD.
and everyone knows it...

Name: Anonymous 2007-09-23 1:42 ID:3a9zT510

Name: Anonymous 2007-09-23 1:50 ID:pjz4EaFB

I hate swig

Name: Anonymous 2007-09-23 2:35 ID:s70WBR6P

>>5
I hate Python's native C API even more. At least it ships with ctypes now.

Name: Anonymous 2007-09-23 6:21 ID:Lz53OjG3

>>3
lispisshit

Name: Anonymous 2009-08-03 9:34

to one You another You helps function this * programming. to references, constant need This a 2 constant fanboi Nothing Python  Python Python data, won't from the Internet won't  is 0010010100101101010010010101001001... is was ADD, +++ p - +++ p  python people YOU getting DID job br   (hidden   strategy problem for problem controlling enables

Name: Anonymous 2009-08-03 17:02

Name: Anonymous 2009-08-03 17:02

THE FORCED INDENTATION OF CODE
THREAD OVER

Name: Anonymous 2009-08-03 20:33

Duff's Device sounds like something I'd put in my anus. Kinky.

Name: Anonymous 2009-08-03 21:32

>>6
I hate Python.

Name: Anonymous 2009-08-03 22:22

>>12
python hates you

Name: Anonymous 2009-08-05 13:34

I want to implement a MacGuffin in Ruby, how do I do that?

Name: Anonymous 2009-08-05 15:17

>>14
There's already Rails.

Name: Anonymous 2009-08-05 15:23

Rails in my anus. Programming PHP feels like rails in my anus.

Name: Anonymous 2009-08-05 15:41

Programming Rails feels like PHP in my anus.

Name: Anonymous 2009-08-06 12:04

>>1
I'm afraid to ask, but why do you want to implement a Duff's Device in Python?

Do you suffer from premature optimization?

Name: Anonymous 2009-08-06 12:31

premature optimization
Nonsense terms considered harmful.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-06 16:35

http://en.wikipedia.org/wiki/Optimization_(computer_science)#When_to_optimize
Optimization can reduce readability and add code that is used only to improve the performance. This may complicate programs or systems, making them harder to maintain and debug. As a result, optimization or performance tuning is often performed at the end of the development stage.

Donald Knuth made the following statement on optimization:

    * "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil."[1]

(He also attributed the quote to Tony Hoare several years later,[2] although this might have been an error as Hoare disclaims having coined the phrase.[3])

"Premature optimization" is a phrase used to describe a situation where a programmer lets performance considerations affect the design of a piece of code. This can result in a design that is not as clean as it could have been or code that is incorrect, because the code is complicated by the optimization and the programmer is distracted by optimizing.

An alternative approach is to design first, code from the design and then profile/benchmark the resulting code to see which parts should be optimized. A simple and elegant design is often easier to optimize at this stage, and profiling may reveal unexpected performance problems that would not have been addressed by premature optimization.

In practice, it is often necessary to keep performance goals in mind when first designing software, but the programmer balances the goals of design and optimization.


_________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
To see ourselves as others see us is a most salutary gift. Hardly less important is the capacity to see others as they see themselves.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= !DRBORKBork 2009-08-06 16:38

http://en.wikipedia.org/wiki/Oopteemizeshun_(cumpooter_sceeence-a)#Vhee_tu_oopteemize
Oopteemizeshun cun redooce-a reedebeelity und edd cude-a thet is used oonly tu imprufe-a zee perffurmunce-a. Bork Bork Bork! Thees mey cumpleecete-a prugrems oor systems, mekeeng zeem herder tu meeentein und deboog. Bork Bork Bork! Es a resoolt, oopteemizeshun oor perffurmunce-a tooneeng is oofftee perffurmed et zee ind ooff zee defelupment stege-a. Bork Bork Bork!

Duneld Knoot mede-a zee fullooeeng stetement oon oopteemizeshun:

    * "Ve-a shuoold furget ebuoot smell iffffeeciencies, sey ebuoot 97% ooff zee teeme-a: premetoore-a oopteemizeshun is zee ruut ooff ell ifeel."[1]

(He-a elsu ettreebooted zee qooute-a tu Tuny Huere-a seferel yeers leter,[2] elthuoogh thees meeght hefe-a beee un irrur es Huere-a deescleims hefeeng cueened zee phrese-a.[3])

"Premetoore-a oopteemizeshun" is a phrese-a used tu descreebe-a a seetooeshun vhere-a a prugremmer lets perffurmunce-a cunseedereshuns effffect zee deseegn ooff a peeece-a ooff cude-a. Bork Bork Bork! Thees cun resoolt in a deseegn thet is nut es cleun es it cuoold hefe-a beee oor cude-a thet is incurrect, becoose-a zee cude-a is cumpleeceted by zee oopteemizeshun und zee prugremmer is deestrected by oopteemizing. Bork Bork Bork!

Un elterneteefe-a eppruech is tu deseegn furst, cude-a frum zee deseegn und zeen pruffeele-a/benchmerk zee resoolteeng cude-a tu see-a vheech perts shuoold be-a oopteemized. Bork Bork Bork! A seemple-a und ilegunt deseegn is oofftee ieseeer tu oopteemize-a et thees stege-a, und pruffeeling mey refeel unexpected perffurmunce-a prublems thet vuoold nut hefe-a beee eddressed by premetoore-a oopteemizeshun. Bork Bork Bork!

In precteece-a, it is oofftee necessery tu keep perffurmunce-a guels in meend vhee furst deseegning sufftvere-a, boot zee prugremmer belunces zee guels ooff deseegn und oopteemizeshun. Bork Bork Bork!


_________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Tu see-a oooorselfes es oozeers see-a us is a must selootery geefft. Bork Bork Bork! Herdly less impurtunt is zee cepeceety tu see-a oozeers es zeey see-a zeemselfes.

Don't change these.
Name: Email:
Entire Thread Thread List