https://www.youtube.com/watch?v=o9qJ4a9Xty8

 Noted John Green, from his Indianapolis perch, found the median net worth in the bay area to be $900k during the last census.  Pretty sure lions saw that figure before.  1 in every 2 neighbors is over $1M, counting home equity.  It's probably manely in home equity.  

Checked Indiana home prices.  Lots of beaters for under $300k.  Good houses are very car dependent, $1/2M & beyond.  Indianapolis is cheaper than Valparaiso.  Surprised Amerikans didn't rename such a racist name to indigenousa or native amerikana.

Lions don't know if they'd be as challenged by winter confined to a large house as they are in a 1 room apartment.  Lions were pleased to be indoor animals, in the years of 2200-3000 sq ft houses.  Midwest winter is manely depicted in Chicago suburban colonials, with large families romping around many different rooms.  No doubt midwest winter would be difficult in an equally small apartment.

 

 -----------------------------------------------------------------


 

Finally surrendered to being over 50, mostly.  No more hills & no more speeds over 10 min per mile, except a once weekly longer effort or an emergency or 1 sunny day in tule fog season or depression.  Noted advice against any hills in marathon50's videos, in order to preserve the hamstring tendons.

He also reinforced personal observations that tendon recovery stops after 50.  It's an adaptation of the stem cells shutting down to prevent cancer.  You're really drawing down a bank account that was built up before 50.  Injuries stay permanent.  The only way to keep going is to get lucky & never get injured.  Even if there is minor recovery, the choice is to wait for arthritis or run through it, less recovery or complete shutdown by arthritis.

 

Rare break in the tule fog.



 



Next day, another walnut crusher.  Another small, incremental step up in the distance would could be taken at some kind of running speed.  Took Gu electrolyte until feeling full, then switched to plain water in the later stages.  Force fed glucose cubes, starting at mile 13.  Took only 6 in the final 12 miles.  That seemed to improve results.  Urinating a lot after these plain water experiments.  Might be over hydrating. Instability in the abs & lumbar continues, after these runs.  That might entail more glucose cubes.

 Took a full gatorade, whey protein, baking soda workup after the run to try to fix the instability.  Definitely need to try plain salt packets again.  Might go a step further & add powdered potassium.  Ideally could fabricate paper packets.

 

------------------------------------------------------------------------------- 

Getting some novelties from Godbolt's compiler optimization series.  Much of them, manely induction variables, loop unrolling, lions previously saw in a long lost page about optimizing audio routines for SGI.  That described using inline, register keywords & manual unrolling which have been automated by modern optimizations.  Seem to recall that also describing float being faster than int on SGI. Nowadays, float is most often faster than int everywhere.

Compiler explorer represents the state of most personal projects nowadays: a program no-one uses besides the author.  Impressive that he manetained enough control through a rise in popularity to get sponsored.  Lion projects that rise in popularity get forked & sponsorships go to someone with more clout.

 https://www.youtube.com/watch?v=7Rtk0qOX9zs

#1 unsigned ints are faster than signed, in certain cases, manely division.  Handling the sign takes extra steps.

https://www.youtube.com/watch?v=FB8Hgj3TpJM 

#2 use the range form of loops:   for(auto i : vec) { }

The compiler makes assumptions from range form. 

#11 interesting algorithm for counting the 1 bits in job interviews

while(value) {count++; value &= value - 1; }

But seriously, just use a lookup table. 

#13-15 Interesting consequences of modifying a global variable from inside a loop.  The compiler has to assume the global variable could overlap any constant pointers used by the loop, including the this pointer, which slows it way down.

#16 Function arguments are either put in the stack or packed into registers, depending on if the arguments are values or references, the size of the arguments, the application back end.

 #18 Compilers may inline part of a function or create multiple copies of the function depending on what part of the function runs for a different argument.

#19  Compilers convert recursive functions to loops if they can, so your stack never reflects the recursion.

#20-21 Modern compilers are really good a calling vectored assembly, but this requires passing an march flag & making a non portable binary.  They can't vectorize floating point addition because every addition changes the exponent. The CPU still has an unsafe vectored addition which neglects the exponent problems.

 #22-23 Lots of cases where the compiler uses xor & fancy math operations to replace conditional tests.  Would be interesting to know how often they created a function pointer in place of a state variable.

 

 As regards Cinelerra, the video processing is so dependent on GPU nowadays & audio is so fast on modern CPUs, these methods have no perceptible effect.  The biggest pain point is building indexes, but the I/O is limiting that.  Video processing in software is manely limited by fetches from mane memory.  There might be gains for microcontroller programming.

 There could be some improvement in the pure software domane by moving the colorspace conversions to range form unsigned variables.  It might need temporaries for the unsigned variables.

The reverb has always been cache intensive, but it's just a bee's dick on modern CPUs. 

A language model is always going to generate the most optimum code.  Modern languages are so complicated with so many optimization paths, you should never be manually programming anymore.

Lions always preferred standardizing on the least amount of language features to improve readability.  The only lion quest was to find the simplest, human readable language which could generate the most optimum machine language.  That made the original C most intriguing.  Industry has gone the other way & sought the most complicated possible language.

Young lion accepted the register & inline keywords because they were short & easy to remember.  Those early keywords have now been replaced with [[gnu::optimize("associative-math")]] directives which depend on a language model or modern search engine to look up.  The fastest way to convert an intention into a program may always be a language which can be easily recalled from memory.

Noted Godbolt always declares int total{};  instead of int total;  The {} is an unintuitive C++11 feature which initializes the variable to 0.  It seems easier to remember = 0;

 Godbolt finds Clang to be superior to gcc in most every way.  Young lion was fascinated by the latest & greatest compilers & libraries, but it was driven by needs for threading support, materially faster audio processing without paying for a better CPU.  Compilers & libraries just aren't enabling anything valuable now.  The 8 year old Ryzen rarely ever gets used. 

Young lion was interested in optimization only as it pertained to audio but not programming languages for their own sake.

 


 -------------------------------------------------------------------------------

 




 Another attempt at mixing turkey lunchmeat with stuffing.  Recommend only 1 stuffing package instead of 2.  Either way, it's pretty bad.  Recommend just 1 package of stuffing with no meat & choc later.  Don't get any plastic in the turkey since it causes colon cancer.

 

 

 

 

 

 

 

 

 

Comments

Popular posts from this blog