If Programming Languages Could Make Pets...

In the low level programming language Assembly, you can't have a cat because you are not a team of developers working for years together to program a cat by combined effort, and since the computer hardware improves so much yearly there almost isn't a point in this kind of specialization.  Instead you can have a floating disembodied living cat head, and it's name is speedy.   If you are willing to comprimise, you can attach that head to device drivers written in C and have a terrifying robot cat with tank tread instead of feet and a peak bite force of 3 tons.  

In the programming language Python, you can't have a cat. The good news is that python makes it easy to have a sloth that does everything a cat could do and more, just slowly.  Maybe with numba you can hit triple x speed and own a furry turtle named py-cat with nearly the blazing speed of a happy go lucky skunk.  You don't need to worry about feeding your pet or cleaning up after it, because python comes with a garbage man and he's so busy taking care of all that stuff, all the time, there are few CPU cycles left for your py-cat to be a cat which is why you have a fur turtle.  Infact, the reason your py-cat is so frick'n awesome is because the garbage man was programmed long before you ever set out to program a cat, so just be patient, accept garbageman and love py-cat.

In the programming language C, you can build, link and include a cat in your life.  If you fail to clean the litter box, the cat will die, somewhere in the walls, and smell really bad for days while you try to find the bug riddled corpse.  If two different programmers work together to create your cat, any randomly selected third programmer should be able to inject code, and as such, if you do not feed your cat, hackers will teach your cat to trade all your valuables for canned sardines.   Your cat loves laser pointers.  From the outside, your cat is the envy of most progammers, even if they won't admit it.  On the inside, your c-cat is a complete psychopath if programmed by one person (really darling, violent aggression _is just what cats do) and a complete schizophrenic psychopath if programmed by a team.  Either way, more deranged than you might ever know. 

Something about programming in the language C++ procedurally attracts and enhances certain human personally defects.  If you program in C++, your pet may find you insufferable.  Your classy c++ cat is still a psyco C cat, even if you object.       

In the programming language Java, you can be owned by a unusually hungry fat cat.  The cat likes it when you type mostly boilerplate code over and over again.  The cat will do what it wants, and you should do your best to take care of every imaginable possibility so that java cat can always do what it wants and always stays clean and fed.  Should you fail, java cat will plot your downfall the next time you come home with a bag of groceries.  Not to fear, you can tap out even more code for your cat to prevent a java-cat induced death (if not avoid repetive motion disorders), and thanks to java cat npm libraries, you will find millions of bloat inducing features to add to your java cat like "hairball0.2.0!"  Java cat is flexible and may ditch your sorry ass for a different CPU and programmer, because, like most cats, java cat doesn't really love you back.    

In the programming language JS (JavaScript), you can only program the front end of a cat.  What is the rear end of the cat up to?  Guess.  But JS Cat does have a banner ad blinking 'Click me' running between its ears that generates a fraction of a cent for each unique viewer impression. 

In the programming language Rust, you can't own a cat unless you have catfood, a litterbox, kittylitter, a cat crate and shelter.   Organized?  If yes, then you can borrow a cat.  Your new-fangled rust cat will be immortal, loyal, loving and carefree once programmed unless (1) Rust cat runs out of food, kitty litter or shelter or might possibly make any kind of mistake (2) More than one person adopts rust cat as their own.  Should either exception occur, the rust cat's lifetime will instantly end and kitty will crumble into cold dustless soot ruining the nearest carpet, and all your cherished memories of said cat will be gone.  And you'll need to get a new cat and carpet.  This unfortunate situation can ?theoretically? be mitigated by the use of unsafe rust code that links rust cat to dozens of useful psycho C-cat libraries with hidden undefined behaviors. 

In the programming language Ruby you can have an sleepy cat riding a model train around a christmas tree in a tissue-box-car.    You don't have to feed or clean up after the cat, Ruby will do that for you. Your sleepy fat ruby cat-turtle-train loves riding on rails, and doesn't really act that much like a cat.  But that's ok, because it is adorable.  Yes it is.  

If you program in PHP, you have inadvertantly spit on hundreds of people while saying PHP and shouldn't be allowed to own a cat.  I'm not certain PHP cats exist, but PHP is the sound a unhappy cat's bowels make so maybe you should check your cat's rear Zend for a Synfony of Laravel?    Something about a PHP disgusts me, even CakePHP has a disturbing fettish edge to the sound of it that I don't really want to consider.  

Rumors abound of a perl cat living in a tibetian monestary that can 'meow' in just a single character.  But in reality, in the programming language Perl, you can't have a cat, mostly because the people at the pet store don't understand your perl coding style.  But you think you understand it all just fine, and that is part of what makes perl so frustrating.   Maybe if you could just figure out how to enter the store, copy a cat and exit in less than 30 characters with something like ' printf+qw(printf+qw(%s)x2)x2 ' everything would be fine?

Likewise, rumors abound of a Lisp cat living on servers in Jersy.  Designed only to catch mice and purr, it's a rare beauty that writes it own code and doesn't need its long dead programmer for much anymore.   

In the computer programming language GO, you can have a fur mat but nearly everyone will claim it's a beautiful persian cat and not at all slow and dopey looking for a splunched in nose and sticky crossed eyes.  Your fur mat won't make many mistakes (outside of the algebraic types), and you won't have to clean up after it.  Your fur mat multitasks and is quite productive, you can use it to dust your floors, buff your car and wipe mud off your shoes.   I advocate use of fishing line to animate the fur mat's tail swishing angriy when I tell you GO seems much like poetic python - but the garbage man's arm has been chopped up and zombie reanimated and inserted so it hangs out of fur mat go cat's asterisk.  Lucky thing too, that zombie dangler provide the near constant grooming care required by persians, without the overhead of a complete garbage man, so persian fur mat go cat is a win.  

In the programming language R, you can not want or imagine a cat.  Random feline keyboard data entry via transversal, never!  What the F(x) do cats have to do with statistics or data?    The built in cat function has nothing to do with cats and everything to do with catilogues.  No further explaination given.

In programming Matlab you'll find a handy cat() command already exists.  It concatenates arrays, or stitchesxtreemen

In the programming language Mathematica, you can image a perfect cat in just a hundred lines of code.  If you do happen to have a supercomputer cluster at your disposal, you will be impressed by imaginary math cat.  But you can't have a real math cat, because the whole point of programming in mathematica was rapid prototyping before porting function by function to nearly any other language that doesn't have onerous per user and per cpu core licensing purchase restrictions.    

In the programming language Swift (till it's not), you can have a c like cat that unexpectly turns into a slow fur turtle and then back into a cat.  These infrequent lycanthropic transformations are not troubling unless your swift cat needs hardware or systems level access to do things like move, eye blink, purr, digest a meal or steer an autonomous vechicle to '1 Infinite Loop Cupertino' in a reliable fashion without causing a plethora of explainable vechicular deaths unless you resort to programming large portions of said autopilot in the antique botique Objective C language and crank out a "more schizo psycho program than anyone really wants driving" frankenstien objective c swift cat autopilot combo.  And each stutter brings just a wiff of the brain eating garbageman undead... hmm... maybe there is some combination of compiler flags that corrects that in the comments section of the official suport/manuals website that would be uselessly opaque but for helpful community annotations?  Despite small timing glitches and just a touch of memory messyness, your swift cat tries hard to stay safe and frequently can be found hiding under the bed. You might love your cat, but your cat likes to spray, and your development enviroment kinda reeks.  But it's ok if you've gotten so use to the stench and can't smell it anymore yourself.   Swift cat is like that.

If your programming language starts with the word Visual, it is probably part of the reason Microsoft completely lost its way with the rise of mobile devices.  And probably part of the reason never-a-good-idea things like "Flash Player Cat" actually exist.  However, if you desire a cat that only runs on desktops and a down right luxurious development enviroment, doubtless your language choice has plenty to offer.  And just be sure to download a few gigabytes of visual C++ redistributable run time DLL patches before distributing visualcat.exe. 


The Wall Compromise Isn't.

So the new deal seems even worse than the old deal- 1.6 billion for border crossing prision tent city gulags, 5.7billion (up from 5) for a wall of either secret or undetermined architecture, 3 year deferment for dreamers at which time they apparently self deport, 75 new judges and legal teams selected by the president, and 2750 new border agents costing about 138million per years.  

It is reasonable to defend our borders, but it does not seem reasonable to do so at a cost that far exceeds the nature of the economic problem.  And the self justifying liability sheet is set up so a success, say just one illegal crossing in a year, still bears the economic cost of the entire defense --  A "This year each illegal enm cost the US $250 billion dollars, so we need an even bigger wall" type circular argument that evaporates under just a little common sense.  





I am the proud owner of a new crate. And you are too!


Frank, the fetch and rank at Rust's website adds guarded fetching and ranking features to generic vectors.  I went a little fast and ripped apart a little program and poured its guts into a crate largely to learn rustdoc and how cargo publish works.... not my best documentation effort.. but I am happy with the generics vector functions and how they seamless bolt into rust programming language features.  And there can be updates should other people use my reasonably solid code with crummy documentation.

use frank::*;

fn main() {

let myvec = vec!["a is for apple", "b is for bear", "c is for code"]; 

let myranks = myvec.rank();  //Hoeffding 1947 style ranking, a count of greaters for each item in a vec. 

let mypicks = vec![2usize,1,0];

let myreorg = myvec.fetch(&mypicks); 


In truth, the fetch and rank are just about that simple to use.

Cheers,  Dusty


Things I don't know: Why Contact Binaries Predominate

So, ever noticed how so much of the solar system seems to be rubble twin contact binaries?  I believe they outnumber other kinds, and the reasons why kinda excape me.  Like why two rocks?  Why not four or three or one as the most common lumpy shape for asteriods?  

I'm fairly certain the reasons happen to be some rather terrible dynamic calculation that sorts out to solar system formation dust density, disk radius theta and phi gradients, and temperature of the enclosing stellar nursery, stellar ionization vs radioactive electrostatics and long-post supernova galactic plasma/gas flows tempered by solar winds not to mention gravitation effects of Jupiter and the other gas giants coupled with the asteroid as a pile of gravel model that allows attractive tidal forces to squeeze and mash the asteroids themselves allowing the orbits to decay ever so gently as time ticks along and a just a dash of destructive bombardment.  

But I'm willing to settle on - maybe two is just a great number.  

New Horizons, congratulations on reaching Thule Ultima.  Chang'e 4, congratulations on touching the moon.  

Ultima I, The First Age of Darknesss was a game on old school computers.. I've played 1983's Ultima III Exodus.   Both titles seem situationally appropriate - New Horizons is in the twilight zone of our sun, drifting ever farther away into a long age of darkness before an exodus that eventually brings it back to another bright light in 50,000 years or so. Chang'e 4 on the far 'dark' side of the moon.  Mission is practically acomplished!   I think I need a tissue :)

Beautiful mission!   Goodluck in 2019-52019 all!  (Go New Horizons! Go Chang'e 4!  Two is a great number.)


Ugh. Happy New Year, Predictable politics

what seems 100% likely:

(1)  That the GOP President and GOP House and GOP Senate is responsible for a "never put the pickup in reverse" shutdown 1/8 of the government for a border wall policy?

(2)  That the democrats would willingly take poisoned political apple and accept minor border consessions contrived to weaken their future electability?

Lets be clear - I think the answer is both.   One man presently owns the ongoing border policy fiasco and 1/8th government shutdown.   And two parties seem willing to play along with a kind of insanity in order to get candied apples.  

The Republicans get future tidy 15 second campaign soundbites decrying democratic immigrant policy and to bask in the warm afterglow of decisions made in support of a guy that can't seem to make a decision about basic building materials. Will said wall be cement, mud and reeds, pointy 40 foot tall poles or slats of steels?  Voting billions of dollars away on unformed mercurial plan seems the definition of anti-fiscally conservative pork.  

And the Democrats get help for people that need it but not net swing voters by way of short term concessions and equally unformed indeterminate plans for DACA defered action for childhood arivals and maybe healthcare concessions so that the flu fatality rate for the 1500 child immegrants in US custody rises to the expected mean for the US homeless.   I have no data, just a gut feeling, that while most Americans do care about children dying at the border, most Americans are apathetic or confused once conflicting propagandi emerge.  Start the "Democrat Wall Problem" and "Democrate DACA Horror story" campaign boulderdash now.  The democrat problem isn't that they were somehow were the sole architects of this nations presidentially mandated immigrant policy, but rather that they have bad political instincts-- own the problem, save a child, and risk an election to the guy that caused the endangerment in the first place and keeps saying his aim was pure and the reason it didn't work out was the democrats.  Nevermind democrats didn't cause "intervention avoidable" child influenza deaths at the border or put them in crowded chain link dog kennels where sneezes travel.

 2019 when will the madness of king george end?

Page 1 ... 2 3 4 5 6 ... 30 Next 5 Entries »