Daily reminder to defund the police, the GOP is lying and undermining Democracy, and of course we need to change the law to guillotine the billionaires. (Repeat until the Boomers die and stop worshipping late stage capitalism as a religion.)
Happy new year everyone who survived 2020.
Shell lifetime rules continue to be non-obvious:
$ echo "$(x() { echo potato; }; x)" potato $ x bash: x: command not found
But I think that's because $() is a form of () and thus a subshell?
$ echo $BASHPID$(echo ' '$BASHPID) 32622 32637
Great, you can have an EXPORTED LOCAL variable:
$ funky() { local xxx=123; export xxx; env | grep xxx=; }; funky xxx=123 $ echo $xxx $
You can have local variables with the same name as variables from the parent context, and although you revert to them when you return from the function with the local, prefix list syntax will NOT show duplicates:
$ xxx=abc $ func() { local xxx=123; echo 1=$xxx; echo 2=${!xx@};}; func; 1=123 2=xxx $ echo 3=$xxx 3=abc
Seriously, how do they make that work? Active dup killing? Marking the lower-level ones "occluded" and unmarking them? That's just obnoxious. (And I'm also going to need it so "set" can show the function list, aren't I?)
Four contexts: parse context, runtime callstack, list of active function names, and list of known (but not necessarily directly accessible) functions.
The reason the last two aren't just the same function list with an "active" flag is the lifetime and reference counting:
$ for i in a b; do i() { echo i1 $i;}; i; i() { echo i2 $i;}; i; done i1 a i2 a i1 b i2 b
Same name, different function, need to know which one we're referring to because it can be re-exported (re-asserted? re-defined?) in loops and function calls without being re-parsed...
The tennessee bomber's girlfriend reported his bomb-making activities to the police last year. The police had the woman "transported by ambulance for a psychiatric evaluation" and ignored her report. Defund the police already. (And why does CNN headline its article about that with pictures of the outgoing and incoming presidents? What do two septuagenarians have to do with local police in Tennessee being demonstrably sexist and incompetent, and of course racist because the 100% would have arrested a black guy...)
Boomers in the Pentagon are literally planning to militarily put down a rebellion by "Generation Z". (This is why everyone else is waiting for them to die of old age, Boomers and plutocrats are happy to have their mechanical wheelchairs do their fighting for them. Nothing will get better until the Boomers are gone.)
Twitter continues to periodically email that it found yet ANOTHER year-old tweet with "guillotine the billionaires" in it and LOCKED MY ACCOUNT *dramatic chord* again. (According to the last twitter archive I downloaded before they changed the format to remove the .csv file, I had 133 tweets containing the word "guillotine". None of the tweets they've managed to object to yet are in that file, because all the tweets they've found so far are newer than twitter breaking the archive format. They're really not good at this.)
Someone should introduce twitter to the concept of "punching down". I mean, clearly they _know_, but it would be nice if someone at twitter had the vocabulary to properly brag about protecting billionaires from internet commenters making them feel sad.
The problem isn't when conservatives suffer the consequences of their own actions, the problem is when everyone suffers the consequences of their actions, and the deluded senile old fogies deny any link between cause and effect, lie to everyone else, and pretend piety while ignoring what their magic book actually says.
Capitalism is trying hard to eliminate general purpose computing and replace it with a captive audience (and replace the internet's "route around damage" design with central points of failure). But then capitalism has always been terrible for creativity, here's random example du jour. The vast majority of people who benefit from capitalism have rich parents; they can afford to "take risks" because they can't lose.
Hospitals in the UK are melting down, because they're running out of doctors and nurses. Here in Austin for some reason HEB's had trouble restocking... everything for the past week. The news isn't saying "wheels coming off" but there's some ominous creaking.
The nazi propaganda technique of "the big lie" boils down to repeating a lie often enough that the people who bring up the truth can be dismissed as repetitive and boring. That's why the rest of us need to repeat the truth long past when we're sick of it.
Defunding the police extends to ICE, the TSA, and racist park rangers.
This is the best tweet of 2020. Bravo. (I'm not entirely sure why he's sort of dressed as the 5th Doctor, I'm assuming it's a time travel reference.)
You can draw a reasonably straight line from this to this, although when I waved those at Fade and Fuzzy on the household slack channel they immediately focused on this, which sadly probably isn't street legal in the USA.
I tried to look up self-driving news for Austin and found some sort of Ford internal newsletter (fomoco!) stating that their "self-driving in Austin in 2021" declaration from 2019 is still going, and although they've made no obvious progress since then (we bought two buildings, drove some cars around town, and spoke to local politicians! Woo!) they made a puff piece about themselves anyway and have at least not cancelled the program yet. So... yay? (It's a pandemic, your schedule slipping a bit is expected. The video they link to is hilariously context-free, and for some reason unlisted on youtube? ...why?)
Oh dear. I'm responsible for at least three of these. (Bash is a moving target...)
Function context specifically means function, not any other nested call context:
$ echo "$(local ll=42; echo $ll)" bash: local: can only be used in a function
Which is kind of annoying. I want to use generic infrastructure for this.
Ok, function lifetime rules: right now sh_function 'scratch' instances store the parsed function blocks, which get cleared/freed when an executable chunk goes out of scope. (So they live for the lifetime of loops, but when you exit the loop it goes away.) This means that command line and shell script parsing work the same way, with the same lifetime rules. Stuff you type at the $ prompt gets freed as soon as it's no longer needed, so why shouldn't stuff read from shell script input?
Declaring a function kind of needs to instantiate a new sh_function instance (to store the sh_pipeline list with parsed command pipelines), but it doesn't put a name into the function namespace (if you call this name as a command, it's a shell function instead of searching the $PATH) until the function statement is _executed_. If you have a function in another function, the outer function declaration is executed but the inner one doesn't get executed until you _call_ the function...
The parsing needs to create discrete function instances, with separate sh_pipeline lists with their own allocation lifetime. If they're not assigned to a function name yet, they live within the enclosing function, but when assigned to a function name they can live beyond the original function's lifetime.
$ chicken() { potato() { hello() { echo one; }; echo two; }; echo three; } $ chicken three $ hello bash: hello: command not found $ potato two $ hello one $ unset -f potato $ hello one $ potato bash: potato: command not found $ chicken three $ potato two
Sigh: they need to be reference counted. And I need to treat function bodies a bit like HERE documents, where there's an array of them and the zeroth entry is just the standard plumbing. In an sh_pipeline the first sh_arg entry is the command line, and the later ones are HERE documents, with one line per entry in arg->v[]. Now I need an array of sh_pipeline entries, one per function, nesting arbitrarily deep.
The question is, how do I associate the function() declaration in question with the relevant pipeline[] entry? For HERE documents I just count along as I go, with the consumer iterating through the same way the parser did and the count matching. (Either way, this is the third HERE document...) I guess functions can do that too? That's a lot to rewrite...
Having pl2str spit this back _out_ for marshalling into nommu subshell context is going to suck. I haven't even implemented support for HERE documents in that yet, now I need pl2str to accept an _array_ of pipelines so it can handle nested function declarations...
Sigh. Japan's going back into lockdown on January 3, if I'm flying back I might have to do it before then. (Jeff thinks I shouldn't, he can't make it back there before then so I'd be alone in the Hello Office. Mike and Arakawa and so on all have their own offices on the far side of Shibuya so don't get to Asakusa much.)
I can't say I'm surprised. Half my worry about returning was that the USA's covid response was still a gigantic shitshow. And once a vaccine existed, Japan was likely to start requiring vaccination as a condition of return. But Japan apparently has the new UK strain which has driven their R value above one despite near-universal masking. (Yeah with some dicknosing when I was there, but it's actually an interesting social signal, you can immediately tell "this guy is an asshole" at a _glance_. Saves time. I reminded Fade to order me some of the "it goes over your nose" masks, but will they get here in time if I'm leaving? Am I leaving, or am I stuck here again through... what, August? No idea. Of course 2021 is as full of uncertainty as 2020, it's gonna be like this until enough Boomers die for the survivors to dismantle capitalism and start addressing climate change.)
Twitter has now emailed me 7 times since tuesday finding more of basically the same tweet, each time sending the same form letter saying my account has been freshly locked (implying that locking it on tuesday didn't count?) and ignoring the fact I haven't been able to post to it since October 2019 because I'm not giving them my phone number. (Not to mention ignoring the validity of the political position, but it's a private platform and they can require all posts to be in sanskrit if they want to.) I'm pretty sure Twitter is trying to do the "good people on both sides" thing by declaring complaints about plutocracy equally offensive to the racist kids-in-cages nazi brigades they ignored forever. If twitter has to take out one, they're 100% going to take out the other because there can't POSSIBLY be a right side to this, can there? Not according to twitter there can't.
Is it any wonder why I argue for changing the law so offensive accumulations of capital become a capital offense (guilloting the billionaires with full due process of law as a proper symbolic repudiation and statement of what we as a society will no longer allow, just like kings centuries ago) when lawyers are literally saying the GOP just "came close to destroying democracy in America. Another term would have done it." The problem isn't a political party: the crazy 27% ready to go full fascist at the drop of the hat have always been there. (Given the amount of child abuse in this country, it's not really surprising some people grow up wanting to hurt and dominate.)
The part that's new is Reagan's tax cuts empowering greedy plutocrats happy to push children into meat grinders for money, plus the senile Boomers enabling them. Plutocracy in this country committed genocide against the native americans and kidnapped millions of people into slavery for financial gain _before_ causing a civil war where poor southerners were convinced to do "Pickett's Charge" in defense of the plantation owners. Fox News was literally founded by Richard Nixon's speechwriter with the aim of making sure another Watergate couldn't happen because any level of malfeasance could be neutralized by the GOP's version of Pravda.
Lobbying merely to TAX billionaires is not a proportionate response to this problem, but if taxing billionaires out of existence is all we get, "out of existence" is the important part. Covid is killing more people each day than 9/11 did and has already killed more US citizens than World War II did, and "long covid" aside doctors strongly suspect it has a years-later recurrence like shingles with chicken pox or post-polio syndrome so getting it even at a young age could be really bad, and the only reason the USA is NOT handling it like Australia (let alone New Zealand or Taiwan) is because the plutocrats in charge of the USA don't want that, they're profiting from the pandemic. Meanwhile covid pushes "kids in cages" and puerto rico recovery and the west coast wildfires out of the news...
Of course plutocracy brought on by late stage capitalism is not limited to any one country. Here it is in canada.
Defunding the police: wage theft is three times as big as property theft, and most military spending is wasted too (defense contractors pocketing checks and delivering garbage, it's a make-work program like Keynes' bottles of cash buried in old coal mines, just an excuse to make basic income look like a job to prop up the idea of capitalism long after it stopped making sense). To plutocrats and their GOP servants constant lying is automatic as breathing. They have entire think tanks and PR firms to smear their critics. Boomers gonna boom and Boomer Media continues to suck. Christianity is killing people, as usual. Of course Biden's going to pardon nixon again, but may do so passively. (Just ignore everything for 4 years.)
I've been trying to get glibc's ldd script to work, and I'm up to the point where it's making a function call, and ok I need to implement shell functions. And it turns out it's harder than it looks, because I've been conflating "parse stack" with "call stack". When you use "source file.sh" that increases the PARSE stack depth, but is not a function call. Bash's parse stack is actually kind of sad, because you can't have function definitions or if/else/fi blocks straddle across "source". (I was treating them as C #includes, but no. They gratuitously reset the parsing context. Kinda needlessly if you ask me but I'm sure there's some shell limitation from 1973 encysted within posix somewhere demanding this be how it be done forevermore...)
The function stack includes local variables, which the call stack does NOT participate in:
$ bash -c 'local abc=123; echo $abc' bash: line 0: local: can only be used in a function $ echo local abc=123 > test2 $ bash -c 'source test2' test2: line 1: local: can only be used in a function $ bash -c 'chicken() { source test2;echo $abc;}; chicken' 123
(I don't believe I've ever actually seen "the funky chicken" danced, but when asked for a function name while sleep deprived it's sort of my default with shell functions for some reason. They're inherently kinda funky...)
Meanwhile, function declarations are statements that assign a function to a function name, which appears to be a global namespace that persists past function lifetimes but parsing a function is not the same as ASSIGNING a function:
$ cat chicken.sh #!/bin/bash chicken() { banana() { echo abc; }; banana; } banana chicken banana $ bash chicken.sh chicken.sh: line 4: banana: command not found abc abc
And the namespace lifetime rules are tricksy:
$ potato() { > banana() { echo one; }; banana; > banana() { echo two; }; banana; > }; potato; potato one two one two
But it's not NOT assigning a function either:
$ cat test3.sh #!/bin/bash chicken() { $1 () { echo blort; } } chicken potato potato $ bash test3.sh test3.sh: line 4: `$1': not a valid identifier test3.sh: line 8: potato: command not found
Oh, and function bodies are "compound commands", which isn't just { } but also:
$ echo $$ $BASHPID; chicken() (echo now $$ $BASHPID); chicken 5112 5112 now 5112 5528
Yes, it's spawning a subshell (even thought $$ always gives the top level shell's pid, not the current subshell process). The man page says you can do it for [[ ]] and ((math)) too: I don't know why.
And having toysh pretend to be bash is because things like $BASHPID say "bash" in the name. They could have had $PID be the non-broken $$ replacement, but no.
Christmas day. AFK.
Twitter emailed me again today:
Hi @landley, Your account, @landley has been locked for violating the Twitter Rules. Specifically for: Violating our rules against abuse and harassment. You may not engage in the targeted harassment of someone, or incite other people to do so. This includes wishing or hoping that someone experiences physical harm.
I look forward to the end of late stage capitalism. Guillotine the billionaires.
Please note that repeated violations may lead to a permanent suspension of your account. Proceed to Twitter now to fix the issue with your account.
Go to Twitter
I still haven't been able to post to twitter for over a year because after the first 12 hour suspension (for another "guillotine the billionaires" tweet getting retweeted and going mildly viral) they wouldn't let me back in without providing a phone number. So everything they're responding to is at least a year old.
The day before yesterday twitter sent me an identical form letter pointing at two different year-old tweets (out of the literally hundreds of repeats of that sentiment I tweeted (going back to 2012). So as far as they're concerned A) I haven't posted in a year, B) my account's been "locked" for days, but C) they're gonna lock it AGAIN for expressions of a common repeated sentiment.
My guess is the sentiment is starting to gain traction elsewhere and somebody's getting nervous. There's a twitter hashtag, and one on etsy and on instagram, and...
Merry christmas, twitter. You're still bad at being twitter.
Twitter emailed me yesterday to say the twitter account I haven't been able to use in over a year just got locked for violating their rules against "abuse and harassment", citing two old tweets: 1) "Late stage capitalism's endgame is making 100% of the 99% want to guillotine all billionaires.", and 2) "Remember: anything short of 'guillotine all billionaires' is _already_ a compromise." Oddly enough, the first page of tweets still has plenty of unredacted instances of the same sentiment their random system _hasn't_ triggered on yet. Or do they consider "guillotine all billionaires" to be a stronger statement than "guillotine the billionaires"? Either way I'm arguing for a federal death penalty for a specific category of financial malfeasance, which seems like a valid political position to me?
Billionaire is a volutary condition. Anybody can give away enough money to get down to $999 million with the stroke of a pen. Mackenzie Scott is in the process of doing that right now. She didn't singlemindedly work for decades to _become_ a billionaire by systematically refusing her employees a rightful share of the fruits of their labors, she got a large lump sum in a divorce settlement from her husband who'd done that, and immediately set about giving away the extra that will never make any difference to her personal quality of life. The only reason she's not doing it faster is she's trying to maximize the impact of her one-time gift, but if you're in a hurry you can just hand a few billion each to native american tribes who can certainly use it and empty the vault in a week. There are charities that forgive medical debt: 1/3 of all gofundme campaigns are for medical expenses, and funding ALL of those in 2018 would have cost 650 million. Student loans are a multi-trillion dollar plutocrat profit center (which is a new thing, Boomers got free college). How about university endowments to teach the humanities with full scholarships for students majoring in them? I'm sure the southern poverty law center could use all the money in the world. How about the kiva loan people (trying to avoid the "white savior" problem by giving locals access to funding for their own initiatives). House the homeless. Solar panels and batteries on every building in town-of-your-choice. People stuck in refugee camps need a LOT of money to build proper towns with hot and cold running internet access (and busloads of immigration lawyers to get there). There's never a shortage of good causes, especially since billionaires have been CAUSING most of these problems and explicitly choosing to enrich themselves rather than address them (except as a retirement hobby spending the rest of their lives buying praise and still having billions at the end of it, dance for me paeons that I might shower you with less money than I made in compound interest today).
Twitter seems worried about drive-by vigilante guillotinings, but I'm advocating for a change to federal law to make hoarding a billion dollars a capital offense punishable by guillotine with full due process. It's capital, it's offensive, put them together what do you get? Becoming a billionaire is voluntary, remaining a billionaire is voluntary, and the hoarding and distortion of power inherent in being a billionaire regularly kills people en masse. I'm condemning voluntary behavior, not identity. Billionaires should not exist. The GOP is so focused on preventing taxation, and turning any attempt to tax billionaires into a minefield punishing normal people, that I suggest we route around them and focus our lobbying efforts on a much more straightforward way to change the law to make billionaires not exist.
The GOP-controlled federal government is currently executing brown people (ignoring actual white terrorists) using a federal death penalty: not just random (yet consistently racist) cop killings but actual death sentences carried out as capital punishment on people who are imprisoned and judicially sentenced. Meanwhile the sacklers killed hundreds of thousands of people, and in response they were fined 2% of their profits from doing so. This seems backwards, and Twitter (which is owned by a billionaire) would like to punish this observation and the resulting political position... a year after I stopped posting there. (Golf claps, everyone! Golf claps!)
Of course the approved way of ending bad behavior during late stage capitalism is to cost it money, but when they take over the printing presses that gets tricky. Billionaires collectively got 15% richer this year by profiting from the pandemic. More people died than the population of St. Louis and they made out like bandits. Elizabeth Warren's 2% annual wealth tax ain't gonna do much against 15% annual growth mid-pandemic, hence the need for guillotines.
The police forces kept in place by the politicians the billionaires fund are straight up murdering people _without_ due process of law. And when mass protests calling for their defunding gain traction, the state GOP loons voting to secede are attempting to nationalize municipal police. (Into _which_ nation is unclear.) In this case, because my local city of Austin voted to reduce the police budget by 5% next year ($20 million out of $430 million, and renaming some of the spending they're still doing on the same things as "not police"), which apparently cannot be allowed to stand by doddering old white men. Meanwhile, the Trump administration wants to station federal enforcers in the city, because without goons fascists have nothing.
Here's a thread on the racist history of gun nuttery. The second amendment was a response by slaveowners to the executive branch's authority over state militias in article II of the constitution: they were worried the president could commandeer their state militias and disband them, thus ending slavery without first having to fight a war pitting federal troops against those state militias. The second amendment was slaveholders going "oh no yah can't take mah propurty", which was conclusively proven wrong in 1865 and yet we're still stuck with the fallout from the 3/5 compromise (senate, electoral college, etc).
Meanwhile Good Cop just allowed copyright infringement to become a felony. (Nancy Pelosi turns 81 on March 26.) Boomers have also doubled the bankruptcy-immune indentured servitude of student debt over the past decade. Yes to conservatives lying is like breathing, Bad Cop is Bad and must be opposed, but Nancy and Chuck are too old. The GOP wants land to vote because half the US population lives in less than 5% of the counties. And on the way out, the Resident is trying to pardon MBS for killing Kashoggi, because of course he is.
Here's Linus Torvalds saying (last year) that C is still the best language for interacting with hardware. (C++ is not C, that's a marketing lie from the C++ people trying to steal C's thunder. Here's a 2017 video on Why C is so influential.)
Blah, I keep lying down for what I THINK will be a nap as the sun goes down and sleeping through the night, which means I don't get to go out to the table and program. At a guess, I'm REALLY stressed in a way I'm not letting myself know about. (And also still kinda sick from whatever lurgy I picked up flying back here. Yeah I had my mask on the whole time but drank the water in vancouver and denver. Basic anti-covid precautions are not a clean room against all bacteria.)
The twit.tv guys seem to have meant the "or else" as some sort of preemptive incentive to comply? As in they've emailed me twice about installing skype on my laptop since I accepted the "else" and told them I was sorry it hadn't worked out? I haven't replied to either. My initial agreement to be interviewed assumed it was something they could do in a few days (yeah, my bad), and months later when they moved the goalposts again I took them up on THEIR offer to walk away.
I admit if they hadn't included an or-else clause in a volunteer context I wouldn't just have been willing to chase the moving goalposts a bit further, I'd have felt obligated to. If I promised them something or owe them something (such as content for them to attach advertising to and make money on) I should make good on it. But the "or else" coming from their end absolved me of that: canceling the interview was their idea. And I didn't leave them in the lurch, they had a week and a half to find a replacement, replying promptly made their "or else" easier for them to implement.
Even when I DO have actual time and effort invested in a project, my response to "you know that volunteer work you've happily been doing for some time? We will only let you continue to do it under these conditions..." has always been to stop volunteering there. I walked away from BusyBox when "you MUST move to GPLv3" turned into "even after that mess you MUST praise me for work you were unaware I'd ever done and can prove is no longer being used in the project". I haven't been back to Penguicon since 2008 so Mr. Penguicon could take retroactive credit for having created it, or whatever was going on there. I hardly ever post on linux-kernel anymore now that it's a maze of bureaucratic procedures in triplicate. I stopped volunteering for habitat for humanity in something like 2002 when they objected to the flip-flops I'd always worn as not good enough to be onsite anymore (left quietly without fuss, never came back).
There's a theme here. My todo list runneth over and whatever I was volunteering for can recruit a replacement for me from a population of 7 billion. They have every right to decide not-me, and when they do my obligation to them is to get out of their way and let them get to their proposed stable not-me situation as cleanly and expeditiously as possible, giving us all closure. Busybox and Penguicon were both fine last I checked, and the other two examples hardly noticed I was there in the first place.
Maybe it's not healthy behavior. There's probably some of that "no means no" scar tissue in there, and I know I have an allergic reaction to codependent enabling. I'm not a great negotiator because I smile and nod until it's time to leave, then don't look back. It's not a negotiating position, it's an end to negotiation. I made a choice from the options you presented and moved on. Accepting a counter-offer after the fact (even "we didn't really mean what we said") would be poisoned fruit. It would mean I'm the kind of person who flounces dramatically to get my way, which I'm not comfortable with. So I have to recuse myself from the situation. I'm sorry, but I can't in good conscience...
Canada got national healthcare because of a political movement in 1933 to eradicate capitalism. There were of course the usual naysayers (who would totally have claimed to be right if they hadn't lost and been proven wrong, but that's history being written by the winners again). Specifically, the reason the socialists won is they had no interest in compromise, so the result wasn't "means tested" to death. Universal means universal, as soon as you introduce private schools and toll roads and exclude rich people from using the "for the poors" infrastructure, the program doesn't _work_ anymore. It's "divide and conquer" and the "both sides" centrists falling for it.
Today, Late Stage Capitalism is completely artificial. The problem is the need for endless "growth" always pushes things past the point of sustainability, flooding the market, squeezing blood from a stone, and so on. Things that work well can't simply keep working well, and what we do have is unequally distributed because billionaires are hoarding it. Speaking of which, here's a nice primer on why to guillotine the billionaires.
As disgusted as I am with Boomercrats and Boomer Media, the Boomerpublicans are actively evil (yes all of them).
Oh look, bank thieves bypassed multi-factor authentication by sending SMS messages. SMS is NOT SECURITY.
San Diego isn't allowed to turn off its surveilance cameras presumably because then the NSA wouldn't get the feed. (Send somebody around with a printed location list, a cherry picker, and lineman's pliers. You could INSTALL them that way...)
Nope, the twit tv people are not interviewing me on the 30th. Despite thursday's connectivity test again concluding successfully, they emailed me on friday to say they won't accept the results of their own tests because a policy they suddenly remembered 2 months in does not allow use of phones or tablets.
The topic I'd wanted to talk about was my work to help phone technology kick desktop (microcomputer) technology the rest of the way up into the same big iron server space the minicomputer and mainframe previously vanished into (now rebranded "the cloud"). Even raspberry pi and chromebook are rebadged phone tech the way "blade servers" were rebadged laptop tech. Apple and Microsoft are both manufacturing their own Arm processors now (some at Samsung's expanding 5 nm fab here in Austin) leaving Intel behind. If that conversation can only be done from a wired laptop, I'm not really interested in having it? Yes I'm GenX, but I refuse to give a linux talk ironically.
I'm also not very interested in chasing moving goalposts. I already rescheduled because they forgot I existed when one of their people left. The test on the 8th and the one on the 17th were both done with my phone connected to wifi, and we talked about that on each call. Now they've changed their mind, requiring me to plug a laptop (not phone) into a landline (not wifi) with an external microphone (mine broke in February, haven't bothered to replace it, and mail-order is completely fscked right now) and to install Microsoft's closed source binary on the laptop. I haven't even installed the Signal client on my laptop because it's too much of a pain (dependency stack) and that's got full source on github. I haven't installed the Line client either (which runs in a browser sandbox rather than as its own process) because the browser plugin can see and edit EVERY PAGE that browser visits (not just connections to line's site), which I'm not comfortable with. But I regularly use both for work, and neither is produced by Microsoft (home of the halloween documents, the 1995 "cpu tax" and 1998 "bundle a ham sandwich" antitrust trials, ballmer calling Linux a cancer, the attacks on Java, attacks on openoffice, outright theft of stacker... you don't consistently cheat for 30 years and then suddenly become trustworthy).
The twit.tv guys said if I don't do this "we might have to cancel the interview", and I immediately replied "Ok. Sorry it didn't work out." They let me off the hook for something that's no fun anymore. It's not that I couldn't have jumped through the hoops (or borrowed Fuzzy's windows machine) to talk about Linux on a podcast I've never listened to... but why?
Still banging on toysh: I got set -x trace support fixed up enough to figure out that the the pl2str() function (converting parsed function structures back into a string representation) has span calculation issues. Works ok if you point it at a normal command line, but given an if/else stack or actual pipe | line it searches for the end and then doesn't use it. Oops. That would affect the nommu subshell support, and THIS is why reusing infrastructure is helpful. (And properly regression testing everything, but I have to finish implementing it all first. Can't regression test if you can't get that far. I'm designing in nommu support as I go but making it all _work_ on mmu first.)
The other thing E5ten (Ethan Sommer) pointed me at on the 18th (I think it was him? Freenode irc isn't properly archived the way the mailing list is) is that he tried to run ldd (from glibc) with toysh, and it didn't work. I knew that glibc's ldd is implemented as an environment variable in the ld.so dynamic loader but thought the ldd command they had was an ELF wrapper. Nope, it's a ~200 line shell script full of case statements in loops. (Because Ulrich DrPepper hated static linking, right.) I added case statement support fairly recently, with its unmatched parentheses and magic ;;& section terminators, and apparenlty haven't quite got all the parsing corner cases right yet. Yay reproducible test case. Oddly enough sh -c 'set -x; source /usr/bin/ldd sh' doesn't work with the Defective Annoying SHell either, but it DOES work with bash, so...
The oil trading market "has earned a reputation for persistent malfeasance that's dogged the industry for decades". So why does the finance industry keep funding them?
The GOP totally want to go full fascist takeover with tanks in the streets, they just haven't QUITE got the numbers this time around. Failing that, they want to destroy the economy, kill as many US citizens as possible, and hand over as much data to russia as possible, and steal billions while impoverishing the rest. Meanwhile, Nancy Pelosi and Chuck Schumer are a waste of oxygen. Biden can't see anything newer than about 1989, and he totally wants to pardon Nixon again (let alone McConnel). Put the squad in charge already. Boomers will never voluntarily get out of the way. (And of course the guy behind Qanon is linked to child pornography. It's the GOP: every accusation a confession.)
Elon Musk is a bigger asshole than most people realize. How the Sacklers remain free is a mystery. And of course billionaires everywhere are first in line for the vaccine.
You could call blaming algorithms you created for their decisions "blame outsourcing", but I see it as more blame laundering (like money laundering).
It's interesting that The Onion declared Eric Clapton over in 1997 (several years after he redid his most famous song as a 1/4 speed lullabye and started writing songs about heaven) and now 23 years later he's gone full-on right wing loon. (When I say "ossified into a loon" that might partly be inspired by that Onion headline.)
The Boomercrats all continue to suck in many many ways (a situation they intentionally engineered), and of course Boomer Media provides them cover. When the Boomers die, capitalism goes with them It already fails to serve most people and instead results in endless market-cornering from billionaires in need of guillotining. The Boomers are the reason megachurches are mega.
There's a theory that the next generation will be shaped by covid, specifically watching the Boomers faceplant and not trusting adults to ever do anything right. Meanwhile, Australian Boomers pass laws to silence sexual assault victims. Don't forget to defund the police.
Battery prices have fallen 88% over the past decade, and 13% from last year alone, on course to hit $100/kwh in 2024. (Then $58 in 2030 and $44 in 2035.) This is why GE cut its gas turbine business (although they've been talking it up again recently because they're looking to sell the corpse): you don't need backup generation if you have sufficient battery storage for your renewables output. Especially if you can wrap your heads around the idea that curtailment isn't a bad thing, but loss aversion is a known psychological bug in humans. Sun hitting the ground not generating electricity isn't considered a problem, sun hitting solar panels generating electricity you can't currently use and thus waste: PROBLEM!!1!one!
But the amount of sunlight that hits the earth is enormous, and the amount that hits just golf courses would meet all our current power needs, so it's TRIVIAL to install more solar than we actually need. And the amount of solar panels you need in winter is higher than the amount you need in summer, the amount you need on rainy days is higher than the amount you need on clear days, so if you install enough panels to cover the bad days you will have EXTRA on good days, and this is FINE. You're not WASTING the sunlight that was already hitting the earth. Sure, if we can have demand loads that synthesize liquid fuel or smelt aluminum or desalinate water with that extra electricity and sit idle when there isn't extra power for them to suck up, we can make use of the overflow. (At the cost of building expensive machinery that sits idle much of the time.) But NOT using the overflow is fine too, especially initially. Don't use curtailment as an excuse to stop installing solar, then complain you need something else on cloudy days when you COULD have more solar do it. Half the value of massive excesses of batteries would be addressing this PSYCHOLOGICAL problem.
Got a test from E5ten: ./sh -c 'case wow in w?W) echo ok;;& wow) echo no; esac' segfaults. And also toybox find sub -exec sh -c 'echo "$1"' -- {} ';' should not be eating the -- but should pass it on to the command? Except it is, the behavior difference is a toysh thing, not a find thing...
Sigh. Both host and toybox pkill commands aren't finding qemu-system-i386 because the short name truncates to qemu-system-i38 and I want to fix that. It's in ps.c, and glancing through that I saw that the -GgPstUu options are the same between ps and pkill so I put them in the same order at the end of the optstring, reoganized that part of their global blocks to match so it didn't matter which one you used to access them, and factored out the comma_args() calls into a parse_GgPstUu() function and with the comments I added to explain it the diffstat was 21 lines removed, 19 added. And this is uncomfortably into "more magic" territory, so I probably do NOT want to check it in.
Back in college I read not just the magic/more magic switch story, but another page with an EXPLANATION from the guy who had installed it of what electrically was going on. (Possibly using the open switch as a signal terminator because its radio characteristics between the empty contacts cancelled something out? It was a while ago.) Sadly the explanation seems to have fallen off the web long ago. These days I mirror stuff for that reason. And no, archive.org isn't enough: site goes down, new owner of domain puts up robots.txt file, archive.org erases the history from the previous owner. A couple scummy companies have done this with critics, and of course SCO pulled this with its own history during their IBM lawsuit.
The IP law theory on which I mirror stuff is it's basically no different from the google cache: I found it publicly on the web and provide a link back to the original. I have occasionally been contacted by people saying it's their thing and I do _not_ have permission to mirror it as is, at which point I delete both the mirrored version and the link. Oddly, this has never made them happy because every time they wanted me to change either what I was mirroring or the link. (Some dude who wrote... a history of solaris I think? was quite pissed I deleted his magnum opus rather than update it. I'm aware the biggest obstacle to this sort of thing is, as Neil Gaiman said, obscurity, not piracy. (He gave a long talk about this back in 2008, which unfortunately was on blip.tv, just like my vanished talks at Chicago Confluence, and have thus fallen off the net. Let's see if I can dig it up... Ha! Just barely! Archive.org says it redirects to a capture they don't have but if you do the wildcard search under there they have exactly one capture. Still a lovely talk. There used to be a bunch of stuff like this, Courtney Love Does the Math, Janis Ian's "the internet debacle", all the Prime Palaver articles about the Baen Free Library where he interviewed people like Mercedes Lackey about why they put books in the free library...)
Anyway, back to ps/pgrep the OTHER reason I'm reluctant to do a patch like that is I haven't got "make test_ps" regression test infrastructure, so I'd have to manually test each command line option again, and I dowanna. I need to get the tests running under mkroot so I can not just have more tests that run as root, but tests that run in a known container environment with known drivers and known processes running as known users.
And I still feel I should disentangle those 5 commands and move some of it to lib and put the rest in separate files, and this is moving in the opposite direction. (What comma_args() does is collate 3 pieces of data that are not otherwise in an obvious relationship. Possibly I could sequence all 3 and have some sort of for loop do it? Hmmm...)
Sigh. One of the burners on the stove is "high or off" now, which is apparently a thing that happens with this brand of stove, and I looked at induction cooktops but even though the original patent on the concept expired, there are new patents which tie up the concept until 2032, and that's why a new conventional electric stove is $650 but an induction stove is $2000. Because intellectual property law, and cornering the market on something that people already knew how to do 30 years ago.
Gee, when three billionaires control 70% of a country's newspaper circulation, you get brexit. Who'da thunk? Here's a study showing that "trickle down" never did, for 50 years now.
White male racism is the main source of terrorism. The unibomber, the oklahoma city bombing, pretty much every "active shooter" since before Columbine... Blaming brown people is just more white male deflection. "Oh yeah? What about HIM!?!?? Starving children in india! He started it!"
In case anyone still had a lingering impression that "classified" ever meant anything but "hiding our incompetence", this thread about decontaminating a cold war plutonium processing site should disabuse that notion. (The half-life of plutonium is 24,000 years. And of COURSE they built this 15 miles from a major city. You know how everybody says Denver's unusually high radiation is just nature? This plutonium facility had a major fire in 1957 that was kept top secret. The EPA raided the place because aircraft spotted heat plumes from their incinerator. It's barrels stacked everywhere and everything is contaminated to the point it pegs the meters and it's 15 miles from Denver. Denver is more radioactive than chernobyl and we all just smile and nod. Because this was classified.)
You know how the qanon loons are doing that "I'm not molesting children, YOU are molesting children" pearl clutching? Our entire approach to human trafficing is like that. The right wing loons know who to blame before anything even happens, and rich landowners (EXCELLENT thread, that) fund think tanks and organizations to protect them and deflect blame so they can commit the peacetime version of war crimes 24/7.
Apparently the New York Times has always sucked, going back 150 years. Meanwhile, websites get Russia's state poisoners to explain on a recorded phone call precisely how they poisoned a russian activist and hid their tracks.
The climate is unhappy. Twitter remains bad at being twitter.
Back in Austin. Slept a lot, but got an extra day because international dateline. (Basically all 36 hours of travel was still "tuesday".)
We had some good news on renewable energy this year.
The 5.10 kernel was apparently borked, but the diff is just to the md directory where RAID stuff lives. I'm not using raid in mkroot so don't have to care.
An article on "the greying of gnome" to match the perrenial greying of linux articles. Lots of argument in the comments about why development fell off so abruptly in 2012. Maybe because Gnome 3 was crap? (A lot of unwanted version transitions pushed by the devs without obvious end-user benefit shed users. Python 3 had that problem, and perl 6 eventually gave up and declared itself a new language.)
I've gotten to the point I'm saving japanese spam to try to translate at least the hiragana bits out of it. "いただきありがとうございます" is "itadaki arigato gozaimas", and since "mas" is sort of "ing" then itadakimas (the thing you say before eating) is the verb form of itadaki (we who are about to itadaki salute you), which google translate is DEEPLY unhelpful for, as usual... (I need a proper dictionary, but the ones I've seen give kanji and HOW DO YOU LOOK UP KANJI IN A _BOOK_? The answer is apparently "stroke order" which is still above my pay grade. I want "just hiragana everything" but that's apparently ambiguous because japanese writing distinguishes homonyms via kanji. In english we just go "eh, the word run has 645 different definitions and you can glork the meaning from context". I'm aware that this is not, technically speaking, fair.)
I tried to mail out a Turtle board right before catching my train to the airport, and the post office says that there are no deliveries to the USA right now due to the pandemic. (They'll deliver to canada though.) Great. How very reassuring...
Onna plane: Narita -> Vancouver -> Denver -> Austin because Jeff booked it so of course I am on air canada (which means the flight announcements are in THREE languages because french needs subsidies and legal enforcement to continue to exist in Quebec). Jeff booked it via expedia, which now requires you to log in to see your itinerary when you follow a link to your itinerary. Which is inconvenient when you weren't the one who booked the trip and don't have that login, but I guess expedia doesn't consider that a valid use case.
Remember how American was terrible on the flight here, filling every single seat and basically ignoring covid? Air Canada left the middle seats empty, but decided that the seat six inches from the lavatory should have someone sitting in it, with a constant stream of people standing next to it and a waft of chemical scent twice a minute as the door opens. Guess which seat I'm in? I can place my palm flat on the lavatory door from my seat. Six people have gone in and out since I started this paragraph. You can sing "Air Canada" to "Blame Canada".
Got very little sleep last night, but modafinil is good for jetlag.
Another reason oil companies aren't pivoting to renewables is it's not going to BECOME as big a market as fossil fuels were. If you can charge $1/gallon for all the gas you can mine and refine, then everyone spends 1/6 of their annual budget on you and you're 1/6 of the global economy. But if a replacement comes along that replaces you for 1% the cost, people don't suddenly start using 100 times as much energy. Instead most people drive the same number of miles, keep the lights on the same amount of time, keep the thermostat at the same level, and pocket the difference. Your $2 trillion industry is replaced by one earning $20 billion, which is still a healthy industry but not "4 of the top 5 companies in the Fortune 500 all do this in parallel".
That was the problem with the dot-com boom, everybody wanted to be "the next microsoft" but a mature industry is commoditized, NOT dominated by a single monopoly payer who's cornered the market and can extract monopoly rents. Ice used to be delivered regularly like milk and newspapers (see the opening scene of Frozen where people saw ice out of lakes in winter to store in insulated icehouses until summer). When people replaced their "iceboxes" with electric "refrigerators", they A) didn't need regular ice deliveries to keep food cold, B) could make their own ice cubes for beverages. They didn't replace their weekly ice bill with a refrigerator bill, they bought a refrigerator and then STOPPED PAYING FOR ICE (the electricity to run it was a tiny rounding error). The entire ice harvesting and delivery industry WENT AWAY, and yeah refrigerators are a thing but it's a sideline for companies that also make washing machines and air conditioners and garbage disposals in sinks. "Refrigerator magnate" is a pun, not a common modern plutocrat minted by the dozens.
Three hour layover in Vancouver, on the way to another layover in Denver.
An article explaining that Boomercrats are afraid. Gee, what a surprise. (It's actually quite a good article.)
IP law is used to block the right to repair. People are lobbying to change the law, but we should eliminate it.
"If this is treason, what they call loyalty is a crime" is an excellent quote.
The 5.10 kernel is out, and NONE of the patches I forwarded to Rich made it in, because Rich blew off every poke and reminder. I need to set up a git tree and submit them upstream myself, but don't want to because kernel clique.
Dear Bash:
ls nothing 2>(wc) ls: cannot access 'nothing': No such file or directory ls: cannot access '2/dev/fd/63': No such file or directory 0 0 0
I am disappointed. And since I'm already treating >(wc) as a redirection rather than a variable expansion, I think I just wanna make it work properly in toysh.
The other thing set does is print out the current variables when it has no arguments, and it escapes strings that have spaces in them. It looks like "set" and @Q use almost the same dump logic, just...
$ echo ${xxx@Q} 'xxx' $ set | grep xxx= xxx=xxx
Not quite consistently. The logic of when to do it and when not to do it:
$ xxx=\' $ set | grep xxx= xxx=\' $ xxx=\\ $ set | grep xxx= xxx='\'
If the rule is just "contains character in need of escaping", fine. There are some kind of impressive inefficiencies in there though:
$ xxx=\'\'\'\'\' $ echo ${xxx@Q} ''\'''\'''\'''\'''\'''
But I guess I should reproduce the '' and '' at each end for the sake of compatibility? But the FUN part is:
$ xxx=\\a $ echo $xxx \a $ echo ${xxx@Q} '\a' $ xxx=$'\a' $ echo ${xxx@Q} $'\a' $ xxx=\\a $ echo ${xxx@Q} '\a' $ xxx=\\a$'\a' $ echo ${xxx@Q} $'\\a\a' $ set | grep '^xxx=' xxx=$'\\a\a'
Great, bash is producing MULTIPLE ESCAPE CONTEXTS.
$ echo ${xxx@Q} $'\\a\a'
Can I maybe just always produce the $'blahblah' output when there's a <= space character? That can represent every output type, and doesn't require weird gearshifts. It doesn't match bash's output exactly, but isn't crazy behavior that apparently evolved randomly via bug report sans any sort of design...
We need more political cartoons about the covid numbers. Many of the people who need this information appear disinclined to read.
I've been wibbling about whether or not I should get on my plane back to Austin ever since Jeff booked it weeks ago. On the one hand, being by myself in a city where I see coworkers maybe once per week (everybody's working from home) is bad for my mental health. Ordinarily when I'm doing the ronin thing in a tiny apartment in a strange city far away from my normal support networks, I'm going into an office to see multiple coworkers 5 days/week. Here I keep being surprised by the sun going down (admittedly around 4pm) and force myself to go out either to the empty windowless office or to a Starbucks or the nice tea shop that lost lady indirectly introduced me to (neither of which involves me speaking to anybody I'm not ordering drinks from, and that through a language barrier).
On the other hand, Austin is handling the pandemic worse than most countries in Africa. There are places without running water that have lower Covid numbers as a percentage of the population. That's just EMBARASSING. (Even before Texas' attourney general, who was inidicted YEARS AGO but is somehow still in office, filed suit against other states because he didn't like how they voted.)
If I beg off today, we get full credit for rescheduling the ticket (48 hours notice basically no fee), but... reschedule it to when? Will things be better in a month? In three? The Resident only ordered enough vaccine for like 15% of the population, even that doesn't deploy in volume until the new year, and it's two doses a month apart and then ANOTHER month for it take full effect, so we're looking at March for healthcare workers to be immunized. And we don't know if it's sterilizing immunity (can you still catch a mild case and be contagious).
Fuzzy's all by herself at the house too, although she has friends she sees sometimes, and cats. If I go to Austin I'm guaranteed to see at least ONE person on a regular basis. She had coronavirus when I had it after Jury duty back in March, so even if immunity is "non-sterilizing" and I pick something up on my 3 flights through 4 airports I'm unlikely to get her sick. Fade's staying in Minnesota until summer.
I'm implementing set, which does not use standard option parsing, and I ignored the way "set +" is a NOP, but... what was bash _trying_ to accomplish?
$ set -oo posix potato + set -oo posix potato bash: set: potato: invalid option name $ set -o -x fruit ... verbose off vi off xtrace on $ echo $1 + echo fruit fruit
I don't understand the logic here: -o increments a counter of future arguments to parse as longopts instead of making them new positional parameters (which is just FUN from an object lifetime rules perspective but I think I've got that part sorted now), and...
$ set -o -x fruit -o walrus ... verbose off vi off xtrace on $ echo $* + echo fruit -o walrus fruit -o walrus
An argument starting with - or + means the longopt counter does NOT apply to it... But the counter still TICKS DOWN? Except it DOESN'T tick down because it's still nonzero at the end triggering the longopt dump...
$ set -o +x -C -o potato ... verbose off vi off xtrace on bash: set: potato: invalid option name $ true $
Right, so bash's logic:
A) immediately dumps (and zeroes counter) when a pending -o is not satisfied by the NEXT argument.
B) disables -option parsing as soon as it has a parameter argument.
(Also, set -x makes tab completion AMAZINGLY chatty on debian...)
Remember how banning plastic straws does nothing to reduce plastic waste and is yet another attack on people with disablities? (The real culprit there is fishing nets which is part of a political fight and again solvable by guillotining billionaires.) Similarly, California's restrictions on lawn watering and toilet flushing ignore the fact that 80% of california's water goes to agriculture. In the parable of the 12 cookies the rich man takes all but one cookie from the plate and then tells the poor white man that the poor black man wants to "steal" the one remaining cookie. (Meanwhile the women roll their eyes at the mens being stupid, and are told to shut up because graaaaaah dicks are being measured, and the trophy does not get to compete in the race but must be passively awarded to the dickman who earns ownership of her through the dickman's actions in outcompeting the other mens and ONLY the other mens, graah. Yeah, science is working on fixing that problem.)
Well we've got a brand new instance of deflection-while-making-it-worse: Mastercard is making sex trafficing and conditions for sex workers worse by attacking pornhub and ignoring facebook. (Not that this is a winnable fight even conceptually. You know how 1920's prohibition of alcohol COULDN'T work because yeast is everywhere on every surface and bathtub gin was so trivial to make? How's outlawing money-for-sex going? How many centuries has it been since Victorian prudishness wasn't extreme ENOUGH and the Puritans fled overseas to burn witches and have the Shakers forbid sex entirely and die out? Don't try to STOP it, make it non-abusive. The Boomers' war on drugs didn't work, and the Boomers' octagenarian pearl-clutching about sex still being a thing now they're done with it is just SAD.)
I recently had another "how will we pay for" conversation and... no. NONE of those conversations are ever valid. Back before Boomer ballast was dragging us down the country paid for World War II from a standing start coming out of the great depression, and built NASA from nothing into a moon shot in under 10 years because we decided to (both were pre-Boomer of course: in 1969 Neil Armstrong was 34, the oldest Boomer was 23, and the average Boomer was 14; they all just watched it happen on TV but took credit for it anyway).
But the REAL reason that conversation is stupid is because the current US economy is ENTIRELY FICTICIOUS. Money is literally just numbers in computers now, the Federal Reserve injected $29 trillion of freshly-created money into the US economy after the mortgage crisis of 2008 and couldn't get inflation UP to our 2% target. (Which would have been a good thing because inflation erodes debt, it's bad for creditors but good for debtors. Inflation being TOO LOW is a problem.)
I've previously explained (with links to sources) how 80% of the population used to work on farms and now less than 2% does, and yet we don't have any more free time even though the work that 78% of the population is doing now CLEARLY isn't necessary to survival because we got along fine without it for most of recorded history. (This is not true of all countries, Russia can't feed itself nor can the UK, but the US exports a massive food surplus and our trade problems look like piles of unsold soybeans so big we haven't got storage space for them and they rot uneaten.) David Graeber's BS Jobs book explains why everybody's so busy with make-work these days, but there's more to it than that. Kings, Roman Emperors, and Egyptian Pharoahs weren't in charge because they had more money than other people, their money came FROM their power. Governments create money, when the confederacy fell confederate dollars became worthless. Governments that issue their own currency cannot run out of money, they can only cause inflation, and Japan spent 20 years trying to cause inflation and failing. Similarly, here's a long thread about how the current economy is set up to help landed white people, and about nine minutes in this video explains how billionaires have money BECAUSE they are socially important people banks cater to, and not the other way around.
As that last video link explains, banks give billionaires loans at 1% which they use to buy stuff they can then use as collateral for more loans at 1%. With inflation ABOVE 1%, the price of the asset goes up faster than the loan payments so they can borrow more on the same asset FOREVER and make a PROFIT doing so. That's why New York City real estate prices refuse to come down, and london real estate prices have squeezed out the service workers who make actually living in london tenable. No matter how bad the economy gets, asset prices going down is bad for billionaires profiting from ELOCs, and banks will inject money into the system to prevent that happening. (When governments do it they call it "quantitative easing" and "preserving asset prices" but they just mean rich people's Equity Lines Of Credit must never get margin calls because that would threaten billionaires.) The Squad has pending bills to fix some of this, but McConnell is of course blocking them all and biden won't spend political capital in either direction. (Because if there's one thing the Trump administration taught us, it's that hoarding political capital, moving slowly, never making waves, and taking your allies for granted while caring intensely what the other side thinks is the only way to get anything done. The last GOP president to completely steamroller the opposition and "welcome their hatred" was FDR.)
GOP lawmaker suffers ironic death. (I mean actively asking for it type.) I wonder how much of the "don't care about the pandemic" is because it's the Boomer Doomer which is the only way this long drawn-out national nightmare is ever going to end: when the Boomers die, not one second sooner.
The GOP is the third "not democrats" political party this country's had. The Federalists ceased to exist, the Whigs ceased to exist, and now the GOP needs to cease to exist. Yes, a political party can die. The Boomers are worshipping a dementia patient and when he dies they'll do what they did with Elvis sightings for the rest of their lives. (Elvis sightings lasted from his death in 1977 into the mid-90's and most Boomers haven't got that long.) And of course the subset of Boomers not worshipping Frontotemporal Dementia the way they worshipped Altzheimers back in the 1980's are instead behind the NEW oldest president in history who turns 80 in just under 2 years.
England's supply chains are collapsing. The current backlog for dry goods imports is delivery in late march. This isn't even brexit yet, it seems to be fallout from their antiquated ports trying to deal with an even SLIGHT amount of extra strain, plus of course half the container shipping fleet being scrapped due to china's construction-based coronavirus economic stimulus tripling the price of iron (by buying it all up while the mines and refiners are shut down) resulting in most of the cruise ships and container ships whose hulls weren't designed for slow steaming being scrapped to sell the metal. (In theory slow steaming is good because it uses less fuel. In practice global warming causes ever-stronger storms, ala "hurricanes past the letter Z", which dump cargoes so being out on the ocean longer may have other limiting factors.) TL;DR: the UK may not enjoy 2021 all that much.
Fun footnote to that last bit, of COURSE libertarians are buying one of the scrapped cruise liners to do Sealand II. Given how horrific cruise liners get even when experienced capitalist assholes are running them (and all those links are from BEFORE the pandemic), adding the je ne sais quois of libertarianism to the mix just about guarantees a full lord of the flies situation in a single digit number of months (if they ever even launch). (Sealand was an old oil platform. It couldn't easily sink. It couldn't flee and be chased. It didn't need fuel or engine maintenance or stabilizers. Storms didn't bother it much because it's bolted down. Steering it wasn't a big source of arguments, nor was blundering into someone else's jurisdiction.)
Disinformation is an industry now, the main purveyor of which is facebook (surpassing Faux News). That's why Centrists are trivially gamed. I pointed this out ten years ago because there were scholarly articles on it. Boomer Media sucking and pushing back against progress/progressives is a symptom of this, but boomercrats don't want to fix anything, they just want artificial peace and quiet that lasts until they die, at which point the world HAS ended as far as they're concerned so it doesn't matter.
Here's a thread on white people welfare, how the federal government systematically and racistly subsidizes white people, with yet another example of how white racists ignore the law when called on it. Nazis recruit, just like any cult does. You start with an IQ test and months later are blathering about thetans and other cult terminology. Twitter remains bad at being twitter. but at least it's not faceboot (which is now like working for a cigarette company was 25 years ago. It's a resume stain.
Intellectual property law needs to die with the Boomers. It's going to end in tears, because the thing about making every copyright strike a felony isn't just the jail time: you lose the right to vote, permanently. It's a GOP attempt at voter suppression of creators. You post anything online that gets any sort of reach, you may lose the ability to vote.I hope the Florida Covid scientist who was raided and had her computers stolen gets millions in settlement money.
Why would Oratroll move to Austin? Can the corpse of their business model fester into obscurity somewhere else? (Good grief this is 15 years old now. I've been saying "dying business models explode into a cloud of intellectual property litigation" for quite a while now too. Oracle turned into a lawsuit factory for the same reason Russia turned into a troll farm: they can't feed themselves doing their old job anymore.)
I'm attempting to meet with Arakawa-san at the new office, which he's never been to. (He telecommutes, and the university where he teaches has an office for him closer to his house than we are. He went to our old office in Akihabara several times, but the new one in Asakusa is smaller and often empty thanks to Covid restrictions and travel.) We attempted to "meet at the dotour", which is a bit like trying to meet at a Starbucks or McDonalds: there's rather a lot of them and our initial attempt did not wind up with us at the same one. The other issue, which is a me thing, is Arakawa is pure japanese (not Halfu like Mike) and while it's not true that all japanese people look alike, with everybody wearing a mask, my glasses fogging up from MY mask, and me not having seem his face in a year... there have been a number of false positives while I wait.
Another aspect of yesterday's observations about embedded C programming being like designing wind-up watches is that WHEN we lose the right to repair, there could easily be legal liability attaching to anybody who dares to do hardware without authorization from one of the big monopolies. An internet version of "street legal" where you can't have electric golf carts scale up to replace gas guzzling fossil fuel cars because the layers of regulation required to set wheel on road (or packet on internet) are intentionally insurmountable forming what warren buffet called "a moat around the business' profits". This could be why The Innovators Dilemma (published 1997) mentioned the possibility of that happening but where it wound up happening is china and india, and 25 years later the USA is still 98% gas guzzlers (with one billionaire using his dot-com boom profit from paypal's IPO to spend 17 years working up to selling 368 thousand cars in 2019, which is around 2% of the 17.1 million cars sold in the USA that year and even more of a rounding error internationally.) So yeah, we can TOTALLY do the same thing to the computer industry if we try, starting with ditching C.
Speaking of car ownership, people are still trying to understand changes in the industry and getting so close while still missing completely. The new business model is "transportation as a service" (instead of waiting at the bus stop, your phone summons a driverless taxi with the touch of a button), not "let me borrow someone else's car and manually drive it, sorry about the burger wrappers and is this your purse?" where you still need a license and insurance that attaches to _you_ not to a self-driving fleet vehicle you summon with a phone app. Of course it won't happen here in the US first, we won't get regulatory approval until we're importing proven solutions from the other countries that did it first. Because mature for-profit companies are defending their turf, and that includes regulatory capture.
Can we just rephrase these headlines to say "white guy asks another white guy to invalidate black women's votes"? Of course the headlines are broken because Boomer Media is staffed by and aimed at Boomers. (Yeah yeah, #notallmen.) And the Senate is the least democratic part of the US government. (Well, least inherently democratic, anyway.)
The Boomercrats (who really suck at messaging) are still freaking out about "defund the police" because it's popular and effective (and, once explained, kind of obvious). They hate that it works, and would like the progressives to stop causing change and moving the overton window back left. (In late stage capitalism, things without sufficient funding have no right to exist. People, trees, air... This means attacking something's BUDGET is effective, because capitalism.)
Russia finally caught up to where Saudi Arabia's been for 10 years now, and is publicly trying to diversify away from oil. (something Saudi itself has completely faceplanted on because Saudi's current ruler Mwahaha Bin-Saladfork murdered or imprisoned all the domain experts in his family so he could dunning-kruger at it, and nobody seems to expect Putin to do much better, but at least a high ranking official who is not Putin has now publicly acknowledged the problem and not yet been poisoned.) Meanwhile unsold oil products continue to pile up because it's being pumped and refined faster than it's selling, and Opec+ just increased output by half a million barrels per day. (Not that it matters that much: MBS, the butcher of Saudi Arabia who murdered and arrested his way to the top, has kind of destroyed OPEC.)
Remember how the governor of Florida sent jack-booted thugs to arrest one of his critics, point guns at her children, and steal her computers? Yeah, about that, and also...
Hands up everybody who DIDN'T predict that Red Hat buying CentOS would be the end of CentOS. And apparently I'm not the only one with a 7 year time horizon...
I didn't reply to "I see that I need to up my C-foo quite a bit still" with "not a lot of call for swiss watchmakers these days" because A) responding to a compliment with anything perceived as self-denigrating is a no-no (the correct response is "thank you"), B) I'm not sure it would be perceived as "you don't need to be on my level to play, I'm doing deep-in-the-weeds specialized stuff most people don't bother with" style encouragement?
A lot of people are trying to eliminate dependence on C. I think this is stupid and self-destructive (attempting to paint "hardware abstraction layers" thick enough that hardware no longer exists as a thing to be dealt with), and I think the REAL problem is they're confusing C with C++. But I'm not exactly unbiased here? The most likely result of pivoting off C and making hardware a black box is ending right to repair, resulting in lock-in, the generation who understood how it works dying, and eventually the standard "monopoly thing collapses because it's been routed around and rendered irrelevant by commodity thing" but only after at least 50 years of pain. And/or winding up like Egypt where none of the plumbing works properly because they didn't keep track of where the pipes were buried, so sewer and water lines leak into each other (not safe to drink the water) and they're afraid to dig to install anything new. I.E. the entire Microsoft ecosystem. (Maybe it's better now, dunno. I heard about that back in college from somebody who'd been there. They've had at least two regime changes since...)
I opened the toysh can of worms again, and am once again hip deep in shell plumbing. I want toysh to work properly from initramfs, and something was getting confused by stdin/stdout/stderr not being present (no, my 4 year old patch to fix that never got applied by the kernel clique, why do you ask), so I made an init shim that opened stdin/stdout/stderr and would then exec init2, which sort of worked but the init script is throwing errors, and the logical thing to do is "set -x" which I haven't implemented. So I sat down to implement it.
First question was should I teach lib/args.c to parse "set +x", and while I _did_ do that (and give it an argument so you could call it from somewhere else than main, since the +x args switch _off_ the bits the -x args set so you'd have to set optflags to a starting value first), the answer turns out to be "no" because no "set" argument except -o ever has an argument variable (no -x=walrus or similar) and "-o history" MUST have the space (in fact you can "-oCB history" and that's "-C -B -o history") so most of the lib/args.c plumbing is irrelevant and changing it to know about this new stuff that only this uses... not a good fit. Any argument starting with - or + is all flags (and you error if you don't recognize one) and any other argument sets a positional parameter. Oh, and -o increments a counter, and dumps -o state if the counter isn't zero at the end, tests are "set -oo history potato" and "set -oo history".
I thought that "set x=y" would set an environment variable, but it turns out any non-prefixed argument that -o doesn't consume sets a positional parameter. Yes, set without arguments dumps the variable list but set x=y does not alter the variable list! </jazzhands>
So set writes new positional parameters, and the two word summary of why THAT'S a can of worms is "lifetime rules". After staring a bit I redid some of the global state to be in a linked list, because TT.arg and TT.shift and TT.lineno are part of function context and need to nest, and "source" is also essentially a function call (it resets arg and lineno). And THAT gives me a structure to add another "delete" to, so I can have objects with function lifetime. (The function's caller usually frees its arguments, but the arguments to "set" get freed when set returns so it has to copy them. Or remove them from the "delete" list they're on, which is a TODO item I'll probably have to also do here because otherwise calling "set" in a loop within a function accumulates arbitrary amounts of memory allocation. Lasting until a command returns is a natural cap on allocation size. Lasting until a function returns is not.
I thought I had to get a volatile *arg and update arg->c = 0 before setting arg->v and then arg->c to the new length, to avoid the new one being shorter and $* from trap context potentially segfaulting. BUT thinking about it some more trap context should just set a "we saw a trap" and return so the function loop can call the trap function instead of the next command. (With the current action interrupted, unblocking read and wait and such.) Trying to do anything fancy from SIGNAL context might mean dealing with a potentially small fixed-size stack.
The GOP helped cover up Russia microwaving american diplomats until they were permanently disabled and forced into early retirement. And now that it's coming out, the Boomercrats are ignoring Russia attacking the USA and focusing on disability litigation. (Because the only IMPORTANT thing is money, obviously.)
Every other country has some variant of medicare for all, and the USA itself used to have free college (these days those universities seem to have gone through a leveraged buyout and loaded up with debt), if we come out of the pandemic without fixing anything the Boomercrats are officially useless. (Except as a potted plant to keep a republican out of office, which again Boomer votes are the backbone of. Grandpa falling for all the nigerian spam emails has also fallen for all the Russian scam facebook posts. People whose mental immune system broke down getting exploited by parasites.)
Google's firing of that AI researcher has invoked the full streisand effect on the paper that struck such a nerve with Google management, which means we now know what Google's afraid of people paying attention to: AI-wannabe algorithms aren't just biased against minorities, they consume a bunch of still-carbon-based electricity (on the order of bitcoin) all in the name of profit (also like bitcoin). They did NOT want her to say that in a peer reviewed scientific journal. And of course Google's management tried to blame her for her own firing, claiming she quit and trying to give examples of her being "uppity". The 1600 engineers who signed the petition disagree at length. It's a bit like the flimsy excuses Florida's Governor used for sending police to steal the computers of one of his biggest critics. "Look what you made me do."
The GOP's definition of an election being "stolen" is that people other than white men voted. That's it. Their voter suppression tactics failed to stop the actual (easily measurable) will of the people, and the will of the people has been demographically swinging against them for decades. Note their argument has never been that losing the popular vote by multiple millions should matter, it's that they failed to game the electoral college so now they're trying to get judges to emit legal "opinions" with no basis in fact or or law (because the word is opinion), game state legislatures, and hijack the tally in DC on January 6th. The popular vote doesn't enter into it, "stolen" to them means siding with the popular vote. They're even on record calling voter registration to be theft. Other countries don't even HAVE voter registration: a functioning country already knows who its citizens are because they tax them and have pension plans for them and provide healthcare for them and so on. The voters are literally the same people we give birth certificates and driver's licenses and FDIC insured bank accounts and high school diplomas and postal mailing addresses to. Any attempt to filter out a SUBSET of them and say "only these ones can vote" is nothing BUT voter suppression. I mean hey, taxation without representation, where did that come up before?
In 2017, the 99th percentile annual earnings in the USA was $300k/year, meaning if you earn less than that "we are the 99%" applies to you too. If you've never earned that much in a year, it's never even temporarily NOT applied to you. If you consider yourself a "temporarily embarassed billionaire" because you haven't won the lottery yet, what you ARE is either an abuse victim with stockholm syndrome or a white supremacist lying (possibly to yourself) about your motives.
Charles Stross wrote an excellent two part explanation of why/how the Boomers have rejected science and the enlightenment in favor of fascism. (Rejecting "facts" which can be tested in favor of "truths" dictated by an authority.)
India just had a "general strike" participated in by 250 million people. (Meanwhile the economist has decided to compete with Douche Bank for the cringiest late-stage-capitalism take of 2020.)
Guillotine the billionaires, du jour: healthcare edition. Keep in mind how few billionaires there actually are. Less than 3000 people on a planet with 7.5 billion people means 0.0000004% of the population has distorted everyone else's lifestyle to the point of mass deaths. More people are dying every day from the pandemic than 9/11, and we're being told to just accept it. At this point NOT guillotining the billionaries is like not fighting the nazis during World War II. Just ignoring the gas chambers and letting their influence spread, because DOING something about it gets our hands dirty.Remember, the british empire was basically "nazis 100 years earlier only they won and got to write the history books". (Before that white males committing genocide were more church sponsored than a state thing, which the church still does occasionally but not usually on a crusades/inquisition/conquistadores level, although the evangelicals would like to go back.) The USA enslaving black people and committing genocide against native americans (both for centuries and more "muted" than "fixed" today) followed in europe's footsteps. (Always ask, "are we the baddies". If so, stop doing it.)
Graduate school is working well for Fade.
There has got to be at least one class handout that's a printout of a steak-ummm twitter thread. (Find an unmet need and meet it shouldn't be such a perplexing market stratgy, but when the unmet need is "humanities education" and it's being met by a frozen meat product's social media account... Heck, "feed your head" could be their new tagline.)
Last month the Floss Weekly podcast emailied me to see if I wanted to talk about "busybox and toybox" with Doc Searls, and I said sure and out of their suggested days picked January 9th (on the theory I fly on the 15th and lose access to the quiet Hello Office). With the 9th coming up I poked them to go "hey, haven't heard from you" and it turns out the lady they delegated me to for setting it up has "moved on" and this fell through the cracks and I need to pick a new date. Let's see how December 30th goes...
Remember my recent writeup about how I'm trying to defeat Ken Thompson's trusting trust attack? Cory Doctorow just wrote his own piece about that topic.
I met an adorable japanese woman last night, who approached me as I was buying vitamin sodas from that one vending machine a dozen blocks downriver, because she'd given her taxi the wrong address and her no-pockets clubbing dress meant she didn't have her phone or wallet with her, and hadn't brought cash for two taxi rides. (She'd apparently been wandering lost for a while, it was coming up on 3am on a friday night.) I let her look up her hotel on my phone, and then walked with her the ten or so blocks there while we navigated by google maps. Her english was better than my japanese, but sadly not by much. She sells clothes. She asked what I do, and seemed impressed I'm a computer programmer. She asked my name, but I never did get hers. I'm pretty sure she was clinging to me because she was cold (not remotely dressed for the weather, and face glitter has no insulation value). Probably still a bit drunk too, although I'm not good at spotting that in people I don't know. (*shrug* What's your normal? It would have been nice if I could have figured out why she kept crying and apologizing, I suspect a cultural thing to do with asking for help.)
I left her at her hotel and went back to the apartment (a 15 minute walk by that point, it was pretty cold). I'd have given her a business card, but never refilled my wallet after the last Linux conference (which was 2019, but when packing why bring cards written in english with a US phone number to Japan?), and couldn't figure out a way to communicate "contact info" across the language barrier, and it seemed impolite to pry. Oh well. That's pretty much how I spent my 20s. (Between my parents and high school, deeply hardwired into my psyche is the conviction that the greatest gift I can give a pretty girl I don't know well is my absence. It's a step beyond "no means no" into needing explicit permission to intrude upon her awareness, which must originate unprovoked from the woman in question. It's why lesbians make bone-deep sense to me and gay men always seem like masochists or shoe fetishists or something: whatever floats your boat, good luck with that, but I do _not_ understand how anybody's in to that.)
I really need to get better at Japanese, but haven't got anybody to practice it with, and have an obvious chicken and egg problem acquiring practice partners. (And of course I found one beat-up card in a corner of the wallet when I got home, as you do.)
That was last night, and the place she had me drop her off was still pulled up in google maps when I woke up, and it's got a tea shop attached, so I walked back around sunset (which is like 4:30 at the moment) and tried programming there for a bit instead of starbucks. Very different experience: they give you a tiny tea pot and a tiny beaker of tea leaves to put in it, plus a jar of flower petals to put in when you refill it, and dried fruit to put in (the cup, not the pot) the third time.
*shrug* Don't know anybody here either, and same language barrier, but it's a quiet place to program and less corporate than starbucks. (I'm not sure who runs it, possibly some sort of theater club? It's a hostel, they have tents in the common area, $18/night. Possibly the lady's lack of money was more than just pockets? I had a 5000 yen note in my pocket I considered giving her for emergency fallback taxi next time, but again language barrier and it seemed rude if not insulting? Eh, moot point now...)
Generation X's endless ironic detachment was our way of cowering from the Boomers. If Mom and Dad found out we actually LIKED anything that they didn't, they would either berate us for it (and for being "slackers" and so on, which we embraced as an identity) or else take it from us and make it theirs (there's a Steven Universe episode about Sadie's mom doing that to her; bog standad Boomer behavior, everything is always and forever only ever about them). We mocked ourselves before they could, and refused to acknowledge actually liking anything, as the result of a culture-wide abusive relationship. "This is why we can't have nice things: because a Boomer got to them all first and peed on them to claim ownership."
Wait, Youtube is now saying "this video is only available to music premium members"? What fresh hell is youtube pulling now? Ah, they've apparently been doing it since last year. (I own this CD, back in Austin, I just haven't had a CD player hooked up to anything in forever and am still in Tokyo. Oh well, youtube broke. Moving on.)
The reason Google remains a company I can still work with isn't that its management isn't evil and stupid, it's that its employees protest and (so far) corect it. A lot. It's touch and go so far, but so's the country at the moment.
It would have been so nice if Elizabeth Warren were becoming president. Her section 230 clarifications, for example: the "safe harbor" provision is for information users post, NOT for information the PLATFORM posts (such as ads they got paid for or content they solicited). Maybe Biden can sign an executive order Warren crafts, but none of it is his idea. He's just the White Guy Driving because he'll never hand over the wheel no matter how lost he gets. Taking credit without actualy knowing where to go or how to get there. We'll see if he's the "muttering about backseat drivers pointing out he's going the wrong way" type when people (like Warren and AOC and Stacey Abrams and Ilhan Omar and that whiteboard lady) who DO know where to go and how to get there pipe up.
Ronald Reagan's loosening of antitrust regulation in the 1980's is why guillotining the billionaires is pretty much inevitable now. Pushing for incremental "reform" is a waste of time, we need abolition: Defund the police, guillotine the billionaires, and even intellectual property law is such a mess we probably have to cut the gordian knot (the prerequisite for which is, of course, basic income so creators can afford to create). This agenda is SUPPOSED to creep out grey haired old fogeys, anything they're comfortable with would not be a real change.
Defunding the police is actually quite popular, just not among Boomercrats. The police are now funding themselves by theft. The cult of Trump is a logical extension of evangelical christianity, and of course these plotlines intersect. A good trick is to replace every mention of "The Economy" with Rich People's Yacht Money.
Evangelicals are using attacks on transgender people to undermine abortion by claiming that teenagers aren't competent to start puberty blockers and therefore aren't competent to have abortions. It's the same "kid's body belongs to the parents" argument they've been making all along, but by attacking a soft target they get support from the liberal 1/3 of the Boomers. (As evidenced by Boomer Media wholeheartedly supporting it.)
Neil Gaiman, who supported the Comic Book Legal Defense Fund for years, had an excellent post "Why defend freedom of Icky Speech", explaining that Anti-whatevers always find a corner case people won't enthusiastically defend to erode the underlying principle, and use it as a precedent to attack deeper. It's what "first they came for" looks like in a legal context.
Oh look, SCIENCE about how blaming cows for global warming doesn't work. Here's a link about unexamined racism, and how entire racist organizations' job is propaganda. (Nazis recruit. That's why they need punching, not "debate". You don't get to yell "seig heil" in a crowded theatre, either.)
Sigh, this means well, but individual ownership of cars is the modern version of home milk delivery. We're moving to transportation as a service, an electric car that isn't self-driving and app-summonable is a transitional technology, like cellphones that can't tweet or watch youtube.
Jeff sent me a link to an explanation of the Fast Fourier Transform, walking people through the derivation of it. He's enough of a math guy to think a bunch of mathematical notation and mathematical terminology is likely to help me understand things. That's not my language. Math is nice but my version of "understanding" is trace the plumbing and see where the water goes.
What I don't understand (and have asked him 6 times without an answer) is why test data with a 9mhz sine wave in a 64 sample buffer is producing a signal as big as the 9mhz one at 55hz. (Is it because 64-9 = 55? It's reflecting off the SAMPLE BUFFER SIZE? What, can we only use the bottom half of the output? It's not a harmonic, 55 is 5*11, those are primes and neither of them is a 3.)
Looking for good news (after seeing Biden nominate Bernie Sanders' biggest critic to a position of power), I'm trying to parse what Biden's plans actually say. There was talk of spending money to purchase electric vehicles? But there's so much crap to filter out. Both "verbosity of this writeup" and right click -> inspect element -> delete node on the constant begathon pop-ups still on his website AFTER the election.
The "climate plan" does NOT make fun of the name of AOC's Green New Deal like Nancy Pelosi did (because it would have cost him votes), and he seems to be pledging to spend $170 billion/year on climate stuff. (The climate is turning bridges into musical instruments and it's not news. I'm not sure that's the right order of magnutide of a response? But oh well, at least it's pointed in the right direction.) As far as I can tell, there's no other actual data in that entire plan.
Let's try again with the "clean energy" plan. The first three paragraphs go "crisis/trump/covid" and then #4 is "Biden Build Back Better", alliteratively promising to turn back the clock (or possibly rebuild Joe Biden, personally, since he's 80 and could use some spackle), because of course it does. Then he promises to create Bullshit Jobs, then the plan ping-pongs between "jobs" and "coronavirus" for a while, until we finally get to a number: $2 trillion. Except where the climate plan above said $1.7 trillion over 10 years (trying to make $170 billion/year look big compared to the defense budget by giving an over-ten-years figure is like saying over the course of 66 years minimum wage adds up to a million dollars in salary). This plan says $2 trillion with NO time horizon. The climate thing said "net zero by 2050" (which is a when even the OIL companies expect it to happen anyway if we do nothing, because solar and batteries get cheaper every year), so if we assume that's the time horizon this is pledging to spend $67 billion/year. Assuming he can get it through congress, and that this is SEPERATE spending from the above climate plan's $170 billion/year... or is it just "half of that climate spending we've already promised to do will be on upgrading our energy infrastructure to emit CO2 more slowly"?
Hey Joe: why not redirect half the defense budget to protecting us from climate change? In the past 30 years terrorists have knocked down 3 buildings (2 trade center towers and the Oklahoma City bombing), but in that time hurricane Andrew tore a path across florida and Katrina flooded New Orleans and Harvey had Houston under water and another one nearly flooded the New York City subway system which is not where we expected a hurricane to be. Which is the bigger threat to the USA, brown people existing on the other side of the planet or the entire west coast being on fire for months at a time while something called "derecho" flattens Cedar Rapids and it barely makes news because "heh, weather, crazy innit"?
Continuing through some more content-free material in the same clean energy plan we have environmental justice, union jobs... because nothing says "energy plan" like a paragraph about "the Protecting the Right to Organize (PRO) Act" while "applying and strictly enforcing Davis-Bacon prevailing wage guidelines"... I believe this is the longest paragraph in this entire document. And now there's a paragraph about hiring "women and people of color"...
Ok, skip to the next section (still in the "clean energy" plan) and the "Build a modern infrastructure" part starts with "Biden will create millions of good, union jobs"... nope, he's still on about BS jobs, skip to paragraph 3... "Biden will rely on American union labor..." ok, let's just skip down to the bullet points: "Ensuring clean, safe drinking water is a right in all communities"... "Expanding broadband, or wireless broadband via 5G, to every American"... I mean great but this is the ENERGY PLAN? You're supposed to fill legislation with unrelated riders, not CAMPAIGN PLATFORMS.
Ok, next section (still in the SAME ENERGY PLAN)... He wants to create 1 million bullshit jobs in the auto industry, with no mention of self-driving or switching from individual ownership to app-summoned fleet vehicles. Instead he's promising to switch some of the 3 million vehicles in the federal fleet to electric (yay I guess?) and wants to build 500,000 charging stations for individual owners of electric cars. And yay subsidizing battery development but there are no numbers attached. Ten years to make the busses electric, I expect it'll happen on its own faster than that? Fuel economy standards mean WHAT exactly for electric cars?
Next section: CREATE MILLIONS OF JOBS oh please stop, just give us basic income already. Giving one person a job printing out forms, a second person filling out the forms in red pen, and a third person shredding the forms unread technically does create three jobs, but you're wasting people's LIVES. (And hoping the 3 people never meet and compare notes.) And now he's talking about tax incentives. "Leverage existing infrastructure and assets"... as OPPOSED TO what exactly? What would NOT doing that look like? Ok, skip some more "create 1 million jobs" until we get to...
"Launching a major, multi-year national effort to modernize our nation's schools and early learning facilities." Dude this is your ENERGY POLICY, this section has the occasional energy word sprinkled in, and the inevitable "Biden's investments will catalyze thousands of good, union jobs" but it's NOT ABOUT ENERGY. (And if you don't address the religious loons holding the texas state textbook procurement process hostage and thus affecting national textbook standards, and the ratio of administrative staff to teachers in the salary budget, NOTHING ELSE YOU DO HERE is going to matter.) Spurring "the construction of 1.5 million homes"... but if this is single family residences in the suburbs you're just making it worse, the real problem is urban NIMBY zoning preventing density increases and the resulting improved efficiency of infrastructure.
Right, next section (still the energy policy plan): investment in clean energy innovation with $400 billion procurement of batteries and electric vehicles attached to those batteries is great, but isn't this just counting that 3 million vehicle federal fleet twice? (Which may ALSO still be part of the climate plan's budget, and thus counting the same spending how many times over?)
Ok, creating a DARPA for energy could be good, what's that gonna do... Oh goddess he wants miniature nuclear reactors everywhere, PLEASE DO NOT DO THAT. (Random white incel terrorist du jour who wants to shoot up a strip mall because women have better things to do than admire his pee-pee should NOT be able to get his hands on nuclear waste.) And Biden wants to make hydrogen to attack the ozone layer (it's as bad as CFCs and leaks out of everything because the molecule is so tiny). How is "Strengthen land-grant universities, Historically Black Colleges and Universities (HBCUs), and other minority serving institutions (MSIs)" part of your ENERGY POLICY?
Next up the farm part (still of his energy policy)... is about jobs. Dude, just put Sarah Taber in charge of this, I don't believe you have any clue what would help here and "Pursuing smarter pro-worker and pro-family-farmer trade policies" ain't it (and again, ENERGY POLICY). And when you say "investing in diverse farmers" you don't mean giving land back to native americans, do you? Of course you don't. Oh well, it's nice you want to belatedly push back against the racism that's driven brown people off their land so white people could steal it all, but I'm not sure how it's part of your energy policy. (You gonna break up Monsanto and stop the patented seeds that are only sold as sterile hybrids? Fix John Deere's attacks on right to repair in tractors? No of course you aren't.) Yay protections for farm workers but that is a CAN OF WORMS and again, ask Sarah Taber to explain it to you. Oh hey, a mention of tribal communities halfway through a long list of buzzwords, occuring once in passing in a list of minorities near the end of the section. And again "funds for replacing and remediating lead service lines and lead paint in households, child care centers, and schools in order to ensure all communities have access to safe drinking water and wastewater infrastructure" is great but EN-ER-GY-POL-I-CY and it's 95% likely Flint's still going to have undrinkable water 4 years from now please please prove me wrong on that one. I'm all for holding polluters accountable but that would have been in your CLIMATE plan, and if you're not going to guillotine a single billionaire who profited from this stuff, your version of accountable is fines which as John Rogers often says, "A fine is a price." A company that makes $100 billion off a behavior is happy to pay $0.02 billion to the federal government as the cost of doing business. (He's also fond of saying it's never over until white men are punished for it, and he's RIGHT.)
Sigh. I went into this looking for good news (even numbered day's blog entry). I am fully willing to believe Biden's pacemaker is (mostly) in the right place, but I'm not convinced he has any IDEA what success looks like. If we just stopped subsidizing the suburbs, and ended fossil fuel subsidies, that would probably accomplish more than all the plans on his website COMBINED. Not even spending new money, just STOPPING support for the status quo (and not endlessly bailing out banks and billionaires every time they stub their toe).
But that's not his plan, is it? That would have been Elizabeth Warren.
This is the most concise explanation of "modern monetary theory" I've seen so far.
On Tuesday, Nestle argued before the supreme court that they should be allowed to continue to profit from child slavery. We already knew this was one of the most evil companies on earth (despite intense competition), and is currently trying to corner the market on drinking water (while somehow managing to make the flint water crisis worse) but the child slavery angle is new. (Oh hey, the swindled podcast has a youtube channel too.)
The way Boomercrats are clutching their pearls about the phrase "defund the police" means it's WORKING. Protests work. This is what successfully moving the overton window looks like. (Here's a thread about how abolishing ICE and defunding the police turn out to be the same thing, and a short video on the topic.) Capitalists always think the answer to every problem is more capitalism, just like gun nuts think the answer is more guns. Of course, the opposite is true, but you have to give up the Boomer worldview to accept that, which they can't.
Intellectual property law is being used by corporations to stop criticism. This is what fair use is for, but going through the twitter or youtube appeals process to restore the deleted media is basically impossible for civilians without spare thousands of dollars to spend on lawyers, and by the time it gets resolved all the eyeballs have gone past already. I admit there are positive uses for IP law and it's tempting to try to split that hair, but "ideas are property" is pure capitalism. (The 14th amendment decided that prison labor was a positive use for slavery, and capitalists drove a truck through that one pretty quickly. Don't try to use the Ring against Sauron, it never ends well. The tools of plutocracy will never dismantle the McMansion.)
Why does christianity still get to lecture people about morality? (P.S.Thoughts and prayers. And the easy way to pass a rich man through the eye of a needle involves a blender.)
Every accusation a confession, the voter fraud in Georgia is coming from inside the GOP.
I just tried to send email to a co-worker with the .zip file for the windows 10 driver for the new USB hardware (which we got from a vendor), and gmail's smtp refused the email with a pop-up saying "this attachment may pose a security hazard". What the...? GOOGLE, IT IS NONE OF YOUR BUSINESS WHAT IS _IN_ THE EMAIL I SEND FROM MY ACCOUNT, YOUR SPAM FILTER ON THE INCOMING STUFF IS OUT OF CONTROL AND NOW YOU'RE VETOING OUTGOING... That's it, I need to stop using gmail. It's not a "service" if it won't do what I fscking tell it to do.
Fuzzy (back in Austin) cannot afford her own car and is very interested in app summonable self-driving cars becoming available in Austin, because she could use them. Thus she's been following (and rooting for) the death of the oil industry, and when I sent her this link about exxon doing a $20 billion writedown for coronavirus (while continuing to pay out its dividend) it resulted in the following conversation on the household Slack (lightly edited for coherence):
Fuzzy: What would the strategic consequences be if Exxon stopped protecting the dividend?
Rob: The dividend is kind of Exxon's reason for existing. Did you ever read that "origin of the world's dumbest idea" article about fiduciary responsibility to shareholders? If they lower the dividend, they go directly against that. (Which is a thing that should happen, but they're not the people to do it.) It's against their core beliefs.
Fuzzy: What I mean is, is pissing off the shareholders by reducing the dividend going to slow their death down or speed it up? Pretend it’s on the table.
Rob: It would help the company but hurt the executives. They would be sacrificing their careers for the good of the company, which nobody running an oil company in 2020 would ever do. They'll probably go down with a ship and try to squeeze a golden parachute out of it.
Rob: You asked about exxon's dividend: They're looking at selling bits of the company to keep paying it. This article speculates about borrowing money to keep paying it.
Rob: The dynamic is still 1) executives want to keep their jobs more than they want the company to be healthy, 2) the oil industry hasn't got a long-term future anyway so the "health" of the company as an oil company isn't really something they can fix. And pivoting to renewables would be risky and go directly against (1) above.
Rob: It would make as much sense for Exxon to pivot to being a construction company or a shipping company as to pivot to renewables anyway. It's not what they do, completely different tech/expertise/suppliers... It's kind of like a company that makes high end pens and ink pivoting to making hard drives and network cards because "paperless office".
Fuzzy: "Luckily for Exxon, the company can still borrow at attractive rates." When I saw that line, I thought, from who? Who is stupid enough to give this futureless albatross money? The article says Bank of America has good feelings about oil. But it doesn’t say they’re giving Exxon money, just that they think other people should.
Rob: It's kicking the can down the road. If you loan them more money now, the other loans you have to them are still worth 100% on paper, and maybe you can sell them to another bank. But if you stop loaning them money, and they go bankrupt, all your other loans to them are suddenly worthless and you have to take a loss. There's a saying that when you owe the bank a million dollars the bank owns you, and when you owe the bank a billion dollars you own the bank. It reaches a point where they have to support your latest hair brain scheme to hide the bodies for a few more years. (Welcome to the world of international finance.) And then you have the periodic government bailout, like the mortgage crisis in 2008, and the dot com bust 2001, and the savings and loan crisis in 1991, and...
Fuzzy: So, when does the can run out of road? How long can they kick for?
Rob: Right now the story they're spinning is that oil demand returns to normal once the pandemic is over and then they have whatever future growth is left. By discounting solar wind and batteries as a thing, and ignoring global warming, they can plausibly talk about selling SOME oil for the rest of the lives of the 50-year-olds making lending decisions. In reality, if demand drops 20%, prices go through the floor because every producer tries to sell more to make up for lost revenue. This price crash has happened twice over the past decade, once in 2014, and again harder this year.
Fuzzy: It’s just getting harder and harder to pretend alternative energy isn’t a thing.
Rob: The fuel companies have been switching over to "natural" gas, but there's nowhere to go FROM gas. Oh they very much KNOW renewables are a thing, and they're jumping on it. Half of them have PR pages on it ala BP and Shell and so on. The problem is they're pivoting from a multi-trillion dollar niche where they're one of the top players to an emerging technology worth only a few billion per year (sell each solar panel ONCE and then what?) where they're 20 years behind their competition. And the investments they make in renewables won't pay off for 10 years, but throwing money at their existing oil infrastructure can have returns in 3 months if the stars align and the price of oil doesn't collapse again...
Rob: As with cutting the dividend, what's healthy and what feels good now are diametrically opposed. Then add in stuff like "electric vehicles replacing gas/diesel doesn't look like a 1-1 swap where you put a charger in every gas station, it looks like self-driving vehicle fleets where the new thing replaces the old using 1/10 as many vehicles that simply aren't parked 95% of the time"... They're entirely likely to invest in the wrong stuff. And they know it just enough to be nervous about making decisions. So they would very much like all change to stop and to continue to be king on top of their hill milking the existing cash cows forever. (Which was the strategy they pursued up until the pandemic hit: holding on to the status quo by their fingernails.)
Rob: Oil prices going negative knocked the "hold on by all means" regulatory/government capture strategy flat: they couldn't afford to buy/steal this election mid-pandemic, and the attempt wouldn't have been a surprise anymore. And they're JUST self-aware enough to realize that investing in rebuilding the old status quo is a waste of money. Pen poised over the checkbooks, making a sort of "eeeeeeeee" noise but not signing anything...
Rob: Right now the backbone of the oil industry is supply restrictions. The limiting factor isn't how much they can produce but how much people want to buy. But everybody and their dog want to pump more because prices are still way down from their highs, so they're making less money from the same amount of oil, and their budgets don't balance. It's really hard to invest your way out of that problem.
Fuzzy: They’re digging the hole deeper.
Rob: Yup. It's a prisoner's dilemma thing, with elements of "pandemic quarrantine lasting so long people give up" only in an economic space with no end in sight.
Rob: Heh. This article does the "subscribe to read rest of article" thing but has a video version of it at the top that isn't paywalled. For once, the video is worth existing. :)
Rob: Here's a link to just the video.
Fuzzy: I swear, the OPEC+ meeting delay article is one from several months ago with a new date stamped on.
Rob: They have a problem that's not resolving, so they go round in circles on it. Meetings about meetings.
Rob: The thing to realize watching that video is that the "price per gallon" (or natural gas equivalent) has gone way down, AND volume has gone down. They're selling less gas, AND selling it more cheaply, and that means the producers are getting WAY less money. And that's the OPEC+ problem in a nutshell, "we need to reduce unit volume to increase per-unit price" is not a clear win, but going the other way is a disaster, and each individual producer has all the incentive in the world to cheat while wanting everyone ELSE to comply. And if you saw the oil price graph in the WSJ video: oil price went from 100 to 50 in 2014, and 50 is what they fell FROM at the start of the year and haven't made it back UP to. (Today WTI is 45, brent is 47.50.)
Fuzzy: I have to remember that while 45 and 47.50 is too high, it’s still a huge improvement - well, decline. But for me, an improvement.
Rob: The OPEC+ production cuts got it back up to 45, but at significantly reduced volume from what was selling before, so it's not just a 12% reduction in revenue for producers.
Fuzzy: Someone watching the shale explosion in the US had to have considered the possibility of a future oversupply problem, right?
Rob: Oh sure. Except a lot of people thought that the world's economy gradually growing could use more and more oil forever. "If you build it, they will come". 20 years ago everybody was talking about "peak oil" (which happened in 2005 before fracking and deep water drilling, and is part of the reason gas went from $1/gallon to $3), but that was peak production. They didn't realize until 2014 that peak consumption could be a thing.
Guess what happened right BEFORE 2014? Wind power became cheaper than coal. Even though wind and solar were a tiny amount of production back then, when they became cheaper they put a cap on demand for the other stuff. People stopped investing in bigger refineries and pipelines and building new supertankers, and started spending that money installing wind farms instead. And THAT meant it was suddenly possible to pump more oil up out of the ground than you had a place to put. (It wasn't easy or a regular thing yet, but it suddenly became POSSIBLE...) Oil companies have been slowly digesting that fact ever since, but it takes a long time to sink in. Exxon has basically decided to go down with the ship. The other 5 of the top 6 have done varying levels of investment in the new thing.
Fuzzy: The most interesting part of the video for me was that it explained why cheap fossils didn’t hurt the renewables market.
Rob: It's sort of a "change of lifestyle after your first heart attack" sort of thing. They're not HAPPY about it, and they're not doing ENOUGH of it, and they're slow to form new habits...
Fuzzy: Possibly out of fear, I had let that worry me. But we’re not yet out of the stage where renewables are made with renewables. We need fossils, still, and making those cheap makes the transition faster!
Rob: Eh, renewables are made with "energy". You don't need oil or coal to smelt glass, it's just cheap to do that. Metals have been smelted in electric arc furnaces for 30 years now. Plastics come from oil, but they also come from corn...
Fuzzy: Well, yeah, though. The factory that makes panels is fueled by a natural gas power plant.
Rob: Because it's cheap.
Fuzzy: Yes!
Rob: It's a power plant. The natural gas itself does not wind up in the finished product. The limiting factor is if they want to run it at night, and run it from solar, they need batteries. Solar by itself produces full power 6-8 hours per day, and any power at all maybe 12 hours/day. A robotic assembly line costs 3x as much if you can only run it 8 hours per day instead of 24/7. That's why the current gold rush is lithium mines. And they've just started serious exploration to find new lithium deposits.
Rob: Ok, technically there are two gold rushes at the moment.
Rob: Note: Japan is the world's largest importer of natural gas and the 4th largest importer of oil. Guess why Jeff did an energy company here?
My internet brick respawned! I have broadband in the apartment again! Still leaning towards getting on the plane back to Austin half a month from now (especially since I'm likely to go through the month's bandwidth before the end of the month again if I don't), but I'm not happy with that decision and waiting to see how bad the thanksgiving superspreader surge gets in a week or two.
I totally expect GenX to get lumped in with the Boomers. Heck, it's already started. But "white men suck" doesn't stop being true just because I am one (#notallwhitemaleprogrammersintheir40s) and lets face it, we've probably earned it. I own a (heavily mortgaged) house, half of people under 30 live with their parents which means their parents can afford a place to live and they can't which cannot POSSIBLY be a matter of individual merit when it applies to HALF OF EVERYBODY. That means the SYSTEM is broken, and the "haves" are always responsible for the plight of the "have nots". The haves invent stories to claim they aren't, those stories are 100% lies.
It turns out the reason the GOP's hispanic vote was so high is the Boomercrats actively attacked prominent democratic hispanic politicians. The Boomercrats continue to behave like charlie brown with the football. Members of the last administration need to be charged with murder. And we need to be sharpening the guillotines. It's not like the other side isn't. Not that they've got a coherent strategy, or coherent anything. It's emu war: flood the zone with crap. Local michigan access TV covered republicans testifying before the Michigan state senate today, and people livetweeted it. (And yes, there is video, and footnotes.)
Dear Silicon Valley: stop it with the algorithms already. You're sorting PEOPLE here.
I've been meaning to put together a proper post-Boomer todo list for when the GOP finally collapses and takes capitalism with them, but I have so many scattered notes (including multiple previous lists) and so many people have good suggestions. And most of the stuff I previously posted on this before was on my old twitter (which I haven't been able to post to for a year). My blog has hung up on "unfinished entry so ones after it aren't posted" for a couple weeks now, I should bite the bullet and say this one won't have everything.
Obviously we need to start with energy and transportation (that blog entry has the three Tony Seba links that collectively tell a good story, but hardly mentions battery technology or microinverters). Solar panels, windmills, and batteries are getting exponentially cheaper ever year, we can not just replace all fossil fuels but have a massive energy SURPLUS letting us desalinate water and make storeable fuel and suck carbon out of the air and so on. I also did a long twitter thread on this. The fossil fuel industry is 1/6 the global economy and the original context of the resource curse (when the wealth of the ruling class doesn't come from the citizens they can just hire foreign servants and luxuries and literally exterminate the local population; even a general strike does nothing because they don't NEED you). Selling fossil fuel is the main revenue stream of Russia, without which they can't even feed themselves (which is a big reason why the soviet union collapsed in the first place) let alone make serious international trouble. The 2016 GOP asshollery was in large part regulatory capture by the fossil fuel industry (when you're 1/6 of the economy you don't replace department heads, you replacethe government), hence the CEO of Exxon being the first Secretary of State and literally the first act of the new administration being unblocking the keystone pipeline, and the reason they acted when they did (as that article explains, the three largest oil+gas producers Russia/Saudi Arabia/Exxon acting in concert) was because financiers were already considering fossil fuel infrastructure as "stranded assets". If they didn't build it RIGHT THEN it wouldn't be in use long enough to pay off the construction loans, which would accelerate the switch to alternative energy sources (wind power became the cheaper than natural gas in 2015, and was passed by solar in 2016). That's why the resource curse fossil fuel economies paniced and took control of everything they could; it didn't have to be sustainable, if you make $1.6 trillion per year every extra month you can hold on is worth another hundred million dollars. People couldn't understand what their endgame was because they didn't HAVE one: it was a doomed holding action, but each extra DAY they could hang on was worth multiple millions of dollars to them.
Transportation is another 1/6 of the global economy. Google's self-driving is a mature technology (unlike its competitors playing catch-up years later) which can make cars an app-summonable service where google maps adds a "Go" button next to "Directions" that summons a vehicle to take you there, turning when pressed into a countdown of the number of seconds until your vehicle arrives, for a flat rate monthly subscription (within your metro area) which Waymo's CEO once estimated should cost $1000/year I.E. $84/month. For that you not only replace commuting time with computing time, but eliminate car loan payments, insurance, repairs, oil changes, license, registration, speeding tickets, and the need for a parking space at either end. If the cars are electric then during the 1 million mile expected lifetime the only regular service is changing the tires and cleaning out the inside of the vehicle, and if robot arms swap out battery packs at the depot between rides so spare batteries can charge from solar panels while not in the car, they can make a HEALTHY profit on that. This also lets us tear down unnecessary highways, which has significant positive effects undoing racist engineering projects that intentionally created slums.
Food is a human right and we have no shortage of it (thanks to Norman Borlaug quadrupling the world's food production). Our current agriculture industry needs a complete rebuild because it's racist, plutocratic, and inefficient, but even before doing that we have a significant food surplus. Sarah Taber's done dozens of excellent threads on this going back years but I can't find a good index of them so here are a few from my old twitter feed but honestly just the tip of the iceberg... (Sigh, that didn't even make it out of 2018, but I'm tired of cutting and pasting.) People like her know exactly what to do here. Our current US agricultural system is SPECTACULARLY inefficient due to racist plutocracy and distorting subsidies, fixing that would have tons of positive effects.
Next up is housing: 40% of all homes are owned by Boomers (even though 69 million Boomers among 331 million americans are now only about 20.8% of the US population) and all those houses are about to change hands as those Boomers die. The real estate market is screwed up by NIMBY zoning and ELOCs, and both the 2008 mortgage crisis and 1991 savings and loan crisis were about land price bubbles (and the 1997 asian economic crisis was largely about foreign real estate investment, much of it in Hawaii and New York City). We need to let Billionaires go bust, which the banks can't stand, but this is why FDIC insures personal accounts up to 250k. Bump that up to a million for retirement accounts and have the payout be in postal banking accounts (something most other countries ALREADY DO, I use a "postbank" ATM at Family Mart here in Tokyo) and we can let the big banks go bye-bye. And yes, AOC already knows about this one.
Gun control: I've got links about this going back forever and assembled a few into a twitter thread, and there's been plenty of links since, and all that was before the rise of the for-profit Active Shooter Drill industry. The second amendment was about state militias, it didn't give individuals the right to own a gun. That was invented by the NRA and wasn't supported by the supreme court until 2008. It can go away again. The first tweet in the above twitter thread links to an excellent 3 part series the Daily Show did on Australia getting rid of its guns. (A handgun isn't going to stop a tank, airplane, cruise missile, or drone strike. And it takes away the police's stupid excuses to buy surplus military equipment left over from our endless wars and out of control military budget. Oh, cap the US military budget at twice the amount of the biggest military budget any other country spends, Eisenhower's warning about the military-industrial complex in his farewell address -- starting at 6:56 or 8:54 depending on how much context you want -- was right.)
Universal Basic Income: again, I've done a zillion twitter threads on this and multiple posts on this blog, people have done talks and books but the fundamental observation is that a shortage of work for people to do is only a PROBLEM when your culture is broken. Capitalism is not the solution ot this problem, it has BECOME the problem. (I've pointed out for years how capitalism is a mechanism for regulating scarcity and in the absence of scarcity, captitalism creates it.) To implement UBI, use the postal banking above. Give every american an account (so nobody is "unbanked") and deposit a monthly stipend into that. You can still have other bank accounts if you want, but your postal bank account is where your monthly stipend goes, and never closes. (No ATM fees, free electronic transfers to pay bills, and if it did somehow wind up overdrawn (which sounds impossible since electronic transactions get declined if the account hasn't got the money: no fees for bouncing a check both because it's not a for-profit enterprise nickel and diming you with endless fees and because we don't do CHECKS anymore, the 21st century is all electronic transactions or cash withdrawls at an ATM) then the UBI would bring it above zero again next deposit anyway. (Oh, and bring back the Sacajawea dollar coin, eliminating the dollar bill, zap the penny and instead have a $5 coin with lincoln on it, eliminating the $5 paper bill, and then add a $500 paper bill with a woman on it. Yes I know the DEA loves that large amounts of cash is heavy and bulky, doesn't stop cargo containers full of it from being shipped around (and stolen), and ending the war on some drugs is later in this list. Suck it up and do a $500 bill already, trying to eliminate cash just attacks poor people who aren't equipped to receive money because they're not a business with a card scanner.)
I personally want to completely eliminate intellectual property law, but just making it expire like it used to would probably accomplish most of it. In Charles Dickens' day patents lasted 7 years and copyrights 20, and yes he outlived many of his own copyrights but he coped long before patreon, and plenty of creators today whose copyrights will outlive them by decades do far worse. That original expiration schedule would mean this year Santana's "Smooth" and Britney Spears' "Oops I did it again" would enter the public domain, as would the movies Castaway and Erin Brockovich. This year we'd get The Sims (1.0) in the public domain, along with Majora's Mask, Diablo II, Chrono Cross, Pokemon Gold and Silver, Escape from Monkey Island, Final Fantasy IX, Tomb Raider Chronicles, American McGee's Alice... All the software written for the Commodore 64 would be in the public domain already, and most of the ROM images that MAME emulates would be legal. Lots of artists support this but their complaints or statements of support eventually tend to fall off the net leading to broken links unless you know where to look. And those old disputes tend to have lots of follow-up you can't understand without knowing the history... TL;DR modern IP law is extremely lucrative for corporations, but only works out at all for MAYBE 10% of creatives, and really only creates a few lottery winners. It predates digital distribution and internet collaboration and completely faceplants for modern forms of creativity (that THAT was before reaction videos). The whole twisted edifice should just go, replaced by basic income, with the fingerprinting mechanisms redirected to provide attribution rather than ownership.
Antitrust breakups of Faceboot and Amazon are a given. (Google's Alphabet is in some ways the company showing its belly with clear dotted lines, long ago I wrote about how antitrust breakups are usually actually highly profitable for shareholders. I have no idea what's up with fool.com's stylesheet either, the breakage is clearly ad-related so blame capitalism, as usual.)
It should be possible to revive domestic manufacturing, there are books on how other countries did it, and these two talks by Mark Blyth make a good case that the global economy regularly switches between capital running the show seeking global returns (everyone specializing with supply chains straddling the globe), and labor running the show and being domestically self-sufficient (with integrated economies that make everything themselves). And that every time the pendulum is about to swing back from capital to labor the capitalists throw a tantrum which causes a worldwide depression and ends in a big war; they have to be guillotined, shot, or bombed to force them to let go. But in terms of being able to make stuff again: CAD and 3D printing are interesting (and yes there's versions that work in metal) and rare earths actually aren't (California was the world's largest supplier until around 1998) they're just REALLY toxic to mine and refine, and we'd rather have china poison its groundwater and citizens than deal with toxins over here.
We need to raise top tax rates back to 1960 levels (AFTER guillotining current billionaires). The top tax rate was 92 percent until the Revenue Act of 1964 lowered it to 70 percent, and then Ronald Reagan lowered it to 28% (causing the current endless deficit and national debt: the graph of government debt and billionaires' assets mirror each other precisely). The tax rate went up over 90% during World War II to neuter the Gilded Age billionaires that had caused the great depression, and stayed up there because the economy worked AMAZINGLY well with billionaires neutered. (Much of the post-war boom was the lack of plutocrats cornering the market.) They dropped it to 70% because of of the Laffer Curve, the theory that since you get no revenue at either 0% tax or 100% tax (because nobody has incentive to make any money), there should be some peak rate where you get the most revenue, and the finding in that last link is you get the most revenue somewhere around a 73% tax rate. Unfortunately, the OTHER purpose the 90% tax rate served was preventing the rise of plutocratic oligarchs: you got to keep the first million dollars per year you made (adjusted for inflation), and beyond that the government took 90% of it. So instead of trying to keep money that would mostly just go to taxes, companies invested in training and research and development and upgrading their equipment and so on. Deductible expenses that let them earn more money next year. Taxes make rich people (and corporations) invest, cutting taxes lets them pocket all profits, and instead of investing they strip-mine it for short-term gains they can transfer to their own bank accounts, tax-free.
(Fortune magazine published a LOVELY article about how CEOs used to live like normal people back in 1955, which was republished in 2012 but has since gone beyond a stupid paywall and although you can fetch it out of archive.org it won't DISPLAY because of broken javascript, you basically have to right click->save as and then open it with a text editor and jump to line 313 to start reading the article. And nobody can host a fixed version of this 65 year old article because Intellectual Property Law.)
I advocate for guillotining billionaires because they've spent the past 50 years insisting that raising taxes is unrealistic. So I take them at their word: there's only about 650 billioniares in need of guillotining to reset the system. Let's do the simple thing and change the law so hoarding a billion dollars is a capital offence. It is literally impossible to earn a billion dollars through your own efforts, you MUST siphon off money from other people to do it, and this kills people. And as Dolly Parton and MacKenzie Scott and that Zappos CEO show, STAYING a billionaire is also a choice.
In addition to basic income, fixing the food supply, and fixing housing costs, the other thing we need is medicare for all. If you don't already know why, you haven't been paying attention. This is not the same thing as a public option. Voluntarily buying into healthcare is like voluntarily buying into mask wearing during a pandemic: no healthy person expects to get sick. Uninsured people showing up in emergency rooms being unable to pay should not be allowed to destabilize hospital finances. Members of the leopards-eating-faces party who never thought it would happen to them still get covered because EVERYBODY gets covered, period. Never means-test a program you want to keep, it's just a way of sabotaging programs you haven't got the political capital to kill outright. If public school was means tested the richest 1% wouldn't be _able_ to send their kids there and would create parallel infrastructure and then work to sabotage the "useless" public schools that do nothing for them but which they pay into... The reason public school still exists is we DID NOT DO THIS OBVIOUSLY STUPID THING. The WAY people destroy public services is by adding means testing layers and then spending the service's entire budget on scrutinizing people and forcing them to prove a thousand times over that they are worthy, and spending less and less on the actual benefits until they're gone. Stop falling for that trap. Universal Basic Income is universal, Medicare For All applies to all. It won't WORK otherwise. Yes, rich people get both. Rich people get social security payments too (which again is why social security STILL EXISTS). They pay the UBI back in taxes and a national health service (whatever you call it) helps everybody live longer.
The next thing we need is instant runoff voting. This is a step beyond eliminating the electoral college, this would replace our two party system (which is an artifact of "first past the post" voting). Eliminate voting registration (if they can tax you or send you a jury summons, they know who you are well enough for you to vote; you have a bank account, driver's license, cell phone, and social security number, they know who you are). Land does not vote, people do, which means the senate serves no purpose. Fix gerrymandering and voter suppression ("early voting" is normal voting, make every election last at least two weeks) and it turns out the south _isn't_ republican (just under the thumb of plutocrats who've constantly reshaped Jim Crow like an antibiotic resistant infection), which means the GOP evaporates.
We need to end the wars on drugs and sex. Didn't work with alcohol, changing WHAT drug you're doing it to doesn't improve matters. Criminalizing drug addicts just fills for-profit prisons (END THAT, fix the prison slavery loophole and let felons vote, yes from prison) and funnels money to organized crime. Sex workers are people and criminalizing what THEY do leads to sex trafficing (filling unmet demand) and means when they are abused (or "claimed" by pimps and loan sharks who control them and take most of their earnings) there's nobody they can legally turn to for help. It means they can't be regulated and tested for STDs (which exist because we don't test-and-trace to eliminate them the way we do with foodborne illnesses, due to puritanical denial of the idea that anybody's parents EVER had sex ever in history). Criminilization CAUSES most of the problems associated with both drugs and sex work.
Which brings us to defunding the police. One link for that because that interview absolutely nails it.
We need to fix education too. STEM STEM UBER ALLES gives you nazi scientists, the humanities exist for a reason and we need to teach them again. The tug-of-war in texas and california where religious loons in Texas try to buy only textbooks with no mention of evolution (because if christianity was wrong about where we came from how can they be right about where we're going to?) and California tries to push back but focuses on the parts necessary to fuel Silicon Valley (STEM STEM UBER ALLES), and the end result is you can graduate high school without ever hearing about the Trail of Tears, which is just SAD. The wheels are coming off our government because nobody's been taught history or civics or philosophy in a while now.
This is why people are so easily gamed by things like stupid metrics. Just as california agriculture blames showers and toilets for water shortages (when only ten percent of california's water is used by cities), plutocrats always hire think tanks to point the finger at somebody else for the problems they create, and they often find naieve idiots happy to don a hair shirt. I've complained before about the PETA assholes trying to blame cows for global warming when all the carbon cows eat was sucked out of the air by plants over the past year, and methane has a half life of 7 years in the atmosphere, so that CAN'T be the reason Miami is more screwed in 2030 than it was in 1980. Fossil carbon permanently increases the amount of carbon dioxide in the atmosphere, cows DO NOT DO THAT. More recently, people were freaking out that running a leafblower for 30 minutes creates more of certain types of emissions than driving a pickup truck 3800 miles. Ignoring for the moment that electric leaf blowers exist, there's no way burning a half-gallon of gasoline is going to put more carbon in the atmosphere than burning over 100 gallons of gasoline: no matter HOW you burn it, a leaf blower CANNOT emit more carbon. Any OTHER carbon emmisions are going to break down INTO carbon dioxide, the only question is how long that takes. Carbon Monoxide has a half life of 4 hours in an oxygen atmosphere, and the emissions that article was panicing about have a half life of 10 days in the atmosphere (see section 5.3.2.1)...
Ahem. The waves of disinformation sweeping the country need to stop. Ending Facebook and Faux News is only the start, but each has multiple guillotinable billionares behind them.
As I said, this is not a complete list. But it's a start. None of this can be seriously attempted until the Boomers die, but they get a little closer to death every day, and that's a form of progress. We should be ready when they're gone, to not just build dikes around all our cities as the water rises and the hurricanes and wildfires come, but to do positive things as well. There's a better world possible, cleansed of Boomer.
The CEO of Zappos recently died in a house fire, and people are eulogizing him as a great guy, which got me curious: was there an actual human billionaire? So I checked and nope: he kept $840 million and gave away the rest. The Dolly Parton rule still applies: good people CHOOSE not to be billionaires, and billionaires are never good people.
Sarah Taber points out the obvious reason that SNAP (what used to be called "food stamps" until it turned into a debit card) is so much more effective than food banks: we have an existing, optimized, high-volume food distribution network in this country. It's called grocery stores. Building a "separate but equal" food distribution network in parallel alongside the first one is stupid. (The internet used the phone network, trucks deliver along the same highways cars drive on, electricity and water go to homes and businesses through the same wires and pipes...) This is related to something John Maynard Keynes pointed out a hundred years ago.
It's reached the point where any time republicans are against something, whatever it is is probably worth doing. (Democrats being against it could mean anything, but republicans bothering to speak out against something immediately makes that thing worth a closer look. And of course anything they want to do should be stopped.)
Here's another book on how failure to prosecute white collar criminals leads to serial offenders and the rise of as of yet unguillotined billionaires. (A different book from the previous one. And here's a third book, all written by women I notice. Experts in parsing the behavior of abusive twats with power over them. Also, here's an excellent summary of what restorative justice actually MEANS.)
Facebook continues to suck as hard as ever.
For some reason us.deb.devuan.org stopped resolving a while back. (Well, it's an IP address that can't connect.) Hmmm... when I go there with web browser https fails saying it's "archive.devuan.org" but when I point it at that apt-get loops saying "ign" (ignored) on everything and retries endlessly. (The http version because devuan built apt without https support, and instead verifies signatures of the packages downloaded in plaintext, which is creepy in at least 3 ways.) The website instructions now say "deb.devuan.org", try that in /etc/apt/sources.list? And that worked. (Is it because I'm in japan? I've upgraded from here before and it worked...)
The j-core build has bus generation infrastructure to automatically glue together large chunks of circuitry. Most of it's automatic, but over the years it grew a chunk called "phase2" which is designed as an if/else staircase of individiual board types. Jeff recently had to build a bitstream for the new VPN board prototypes (which use the same FPGA as the turtle boards, but wire the various I/O devices to different pins so they need a different bitstream with different routing), and tasked me with fixing a problem he had to work around so we don't need to do it again next time.
The infrastructure that does the bus generation (soc_gen) is a giant pile of the cloture dialect of lithp running under something called Leinengen, which somehow sucks in a java library to parse VHDL. This infrastructure does some important and complicated things, and does it well, but the choice of implementation language seriously restricts the pool of people willing to touch it, and its original author isn't available to make the necessary changes by project deadline. (Plus the first time you run "make soc_gen" it, it downloads over a dozen packages into the source repo which can break if those upstream servers change and makes the build harder to run in a container. I thought it did this download per-install of leingen, but it turns out it does it per-checkout of the j2 build.)
This is why the build grew a "phase2" which postprocesses the generated files with csh calling awk scripts, bringing the total number of languages in play to 4 (not counting the bash scripts and makefiles gluing them together, or the fact it reads VHDL source to generate more VHDL glue code connecting it together; that would be 7 languages). I can't blame phase2's author for not wanting to edit the lisp/java combo, but we can't have an if/else staircase of board types outside the boards/targets directory. So either I need to teach the cloture code to do whatever this postprocessor does in a target-independent way (preferred solution), or at least MOVE it into the right directory so the board-specific stuff lives with the rest of the board-specific stuff.
My problem right NOW is I don't really undestand csh (it's not a normal shell), nor do I have much depth in awk (it's on the todo list, I need to write one for toybox so learning more here isn't a bad use of time). I also don't know nearly enough VHDL, and have no idea what the resulting code it generates is trying to accomplish at a circuitry level. Finally, phase2's author was a hardware engineer, not a programmer, and oh boy does it show.
All this is a long way of saying that today I learned the first line of a shell script can have a space between the #! and the /path. (binfmt_script.c in the kernel, which is under fs/ for some reason, reads a 256 byte buffer and parses it with a skip for both spaces and tabs before the filename.)
People picking and choosing their religion again. (Only the bits I agree with come from magic sky daddy, the rest was just made up. Why do they get tax breaks again?)
Talk
of "unity" is
talk of surrender
(and it's abusive).
They will be back
and they
will do it again
if we let them.
It's
never over
until white men
go to jail for it,
and you don't convince
nazis of anything, you punch them.
You never calmly debate people's right to exist.
(Oh hey, remember that Nazi-friendly twitter replacement funded by the Mercers?
It faceplanted
harder faster than I expected.)
The Boomers running the American Medical Association and American Psychiatric Association have been derelict in their duty. Only caring about keeping the job rather than doing the job, they can't lower themselves to point out real problems. It's the medical version of Boomercrats' "don't rock the boat until we die".
We still need to defund the police. When this article points out that one cops' riot gear could have bought PPE for 31 nurses and says "the US has made its priorities clear", no, the BOOMERS have made their priorities clear. Senile lead-poisoned geezers terrified of their inevitable death are lashing out at brown people, it's a problem around the world, as Boomers cling to their tenure.
My internet brick stopped working. (It's a softbank 5G->wifi converter built around a USB battery.) Apparently after 74 gigabytes of data in a month, it throttles down to the same tiny trickle my phone gets from the "free international 2G roaming" my t-mobile plan comes with. It's enough for slack and email, but even audio podcasts only play for a few seconds then stop to buffer for about as long. And you have to pause a youtube video and come back 5 minutes later to get a minute at the lowest quality. And did you know you can only download season 1 Lucifer episodes from Netflix twice/year? It says it's a licensing thing. That's "download to have on phone", not stream. I now have broadband at the office or out at Starbucks, but not in the apartment, so I've downloaded enough to mostly fill up the phone's memory (WHY do current phones not support SD cards?) and deleted some stuff to free up space, then wanted to play japanese dialog of something familiar again...
This is another vote in favor of getting on my flight back to the states ~3 weeks from now. But I have no idea what the pandemic's gonna do between now and then, and am feeling guilt about not being a good quarrantiner. (Heck, I'm GOING TO STARBUCKS here. Not something I'd do in the states, and probably shouldn't do for 2 weeks before returning to the states. I need a social network in Japan that doesn't just STOP when my coworkers have to travel.)
Here are slightly updated instructions for how to populate a devuan root filesystem in a foreign architecture to chroot into with qemu. This is derived from the armhf install instructions but it genericizes to other architectures. (Sadly, debootstrap wants to run as root, and devuan doesn't https its repos. Between the two of them it's a bit dodgy, but...)
1) become root, install and run qemu-debootstrap (we could do fakeroot instead, but let's not go there):
sudo /bin/bash apt-get install debootstrap qemu-user-static qemu-debootstrap --no-check-gpg --arch=armhf beowulf $PWD/armhf \ http://deb.devuan.org/merged2) tweak a couple config files to tell the new chroot not to launch daemons and where to fetch more packages from.
echo exit 101 > armhf/usr/sbin/policy-rc.d echo deb http://deb.devuan.org/merged beowulf main > \ armhf/etc/apt/sources.list echo deb-src http://deb.devuan.org/merged beowulf main >> \ armhf/etc/apt/sources.list3) Chroot into it and install more packages (git and native toolchain).
chroot armhf apt-get update apt-get install build-essential git-core
Alas, the list of supported debian architectures is much greater than the devuan list, which has x86, arm, and one powerpc. I want to get sh2eb working on musl in devuan, which is FOUR deltas from the glibc-based debian sh4 port. (The sh4->sh2 bit is mostly just compiler flags, but it's also musl, sysvinit, nommu, and Jeff got the endianness wrong.)
There's a whole book about how failure to prosecute rich white men leads to the same criminals doing the same crimes over and over again. I don't know why this is news to the Boomercrats but they still don't get it. But then Good Cop's job is not to understand. Upton Sinclair wrote about that almost a century ago. (I typed "when Biden was young" and then checked, and to be fair the quote's from about 8 years before he was born.)
Meanwhile The Squad is great, twitter remains bad at being twitter, white people are the worst, corn-based ethanol continues to suck (it's a farm subsidy, not a fuel), and "Financial literacy" is a scam (another way of blaming the poor for their poverty, in a system where the 1% depend on the 99% serving them).
The GOP's whole "election was stolen" rhetoric boils down to "we rigged it and their margin of victory was so huge it overcame the myriad ways we'd tipped the scales in our favor, so they MUST have cheated too and we must be allowed to cheat EVEN MORE after the fact." Every accusation a confession: they deregistered voters, gerrymandered, removed voting infrastructre (both in-person machines and mail sorting equipment), planted fake ballot boxes, tried to scare people away from in-person voting, organized mobs to interfere with the actual counting... All to try to leverage the electoral college to overcome what they KNEW would be a multi-million popular vote deficit (just like in 2000 and 2016). The GOAL was never to win the vote, the goal was always to cheat enough to render the actual vote irrelevant.
I can't decide if Sherwin Williams showing its entire ass is more a case of the self-destructive incompetence of Boomers, or the self-destructive incompetence of late stage capitalism. (I mean OBVIOUSLY it's both, but which is it _more_ of? This is of course a company that gorged on the Trump Tax Giveaway, so here's hoping they go out of business entirely. The college student in question says he now buys his materials at Lowes.)
Remember when Intel lost so much market share to Opteron they started supporting x86-64 in 2004 but tried desperately to pretend they weren't? It's hard to feel bad about ARM eating their lunch, and companies like apple making their own arm chips. Especially since Intel bought a major ARM variant 20 years ago and then went "ew ew ew ew ew!" at it until they sold it to Marvell (which used it to power Carol Danvers).
I'm not getting much done alone in japan: time is not the same as energy or focus. Not interacting with anybody in this hemisphere doesn't give me much incentive to stay on a day schedule, but when I try I feel BAD for not speaking the language. Being able to pick a word out of every second sentence of recorded media is not the same as carrying on a conversation. Multiple consecutive weeks of this is giving me some of my old depression symptoms back (from my 20's). It's not bad yet, but it's making me lean towards flying back to Austin on the 15th, pandemic or no. (Yes it's bad, but depression is also bad. I'm still 90% sure I had it in March, and I'd stay masked and distant in Texas.)
I've recently done the forked development thing to the point forward progress has stopped on each fork. I sit down, go "which of the 5 things I'm working on do I dink at today", wind up switching between 3 of them as I'm reminded of something I was in the middle of and spend half an hour peering at it to figure out where I left off, and hours later haven't reached a good stopping point to check anything in, and then the next day I do it all over again. I'm familiar with this pattern and it's inefficient, basically swap-thrashing from lack of focus.
Years ago there was an excellent computer history book (possibly "A Few Good Men from Univac"), that had a great bit about "one point to the wedge". It made an analogy about how splitting logs by hammering a wooden wedge into them only works if the end of the wedge didn't itself split, at which point all the hammering in the world won't drive it much further into the wood because it's catching and holding instead of cutting. The more it splits, the less forward progress. His analogy was about how development projects that don't know where the "tip of tree" is wind up with a zillion forks they can't integrate, and that such fragmentation increases rather than decreases, and you don't just spend more time integrating but figuring out what bugs were fixed where, digging up or recreating inadvertantly dropped features, finding and fixing regressions... Having 5 versions where each does PART of what you need to accomplish is exhausting to juggle.
Over on the j-core side this is a big part of the reason I've pushed to merge the J1 tree into the J2 build, because we want to implement various new features (hardware threading, instruction batches, butterfly increments, dual multiply engines) but what base would we build those on top of? We've already got the J32 mmu stuff to merge (which can in theory be broken down into discrete features like instruction cancellation support, so interrupts that come in partway through a multi-clock instruction can cleanly restart the instruction, which you need when memory access can generate a fault), but our "tip of tree" that we're using in the VPN project doesn't include that, and doesn't include the changes to run on ice40, and the more work we do the more technical debt we accumulate because this integration work has to happen at SOME point and the sooner we do it the less of it there is to do...
In toybox/toysh I want to do command editing and $((math)) and function support, and I've got parts of each in three different files. And command editing is TTY raw mode stuff that sucked in my TODO item about microcom having set the serial device into the wrong TTY mode, which turned into a rewrite of the set_terminal() plumbing in lib/ and now I've got multiple dirty trees. Plus I've got a bug from a recent toysh cleanup that screws up running shell scripts and it's probably a one line typo somewhere but I haven't tracked it down yet, and then I need to get back to rebuilding the vmlinux image on the work boards. (Rich tends to put together a root filesystem by hand and not make it reproducible as an actual build. I want everything there to be intentional and have a "git annotate" that shows where each line of each script came from and WHY that binary is there and when it showed up and who did it.) But I can't make overlay scripts to add stuff to a mkroot build if current builds don't boot because they can't run the init script...
I should really fix that.
Good Cop is back at it, and Faceboot managed to get worse. The fight isn't over just because we knocked down one senile bully. The entire GOP supported him (even _after_ he lost the election by 6 million votes), and the Boomercrats aren't allies, merely the enemy of my enemy like Stalin was in WWII. We went on to fight the cold war specifically against his side, and these days anyone who thinks a single billionaire going unguillotined is a good idea is on the wrong side.
The reason guillotines have better optics than a firing squad is guillotines were historically a specific reaction against royalty. Guns are things individual racists brandish in mexican restaurants. It's very difficult for a random racist to chase a black high school student several blocks with a guillotine. Guillotines are for use against rich white people, who have first been imprisoned and charged by some secular authority and been through whatever locally passes for due process of the law.
Biden is thinking of pardoning Nixon again, which means the chain of escalation will continue. If you let shoplifters keep everything they're not caught taking, and the ONLY punishment for getting caught is to put it back and try again tomorrow, what happens? Why is white collar crime different?
"Algorithms" are a way of laundring racism because whatever human-derived data you train a neural net from bakes in the biases of the humans who generated the training data set. Obviously if your training data is a bunch of old books from before slavery was illegal and before women got the vote you're going to get racism and sexism out the other end. This is true of any time period: society's biases at the time get entrenched because they're part of the training data. And any training data you use is going to trail real-world attitudes by several years, meaning it's inherently regressive, UNDOING any recent progress. A police algorithm won't think black lives matter if the police didn't 10 years ago, and using the algorithm's concurrence to justify new biased actions is circular reasoning. (And of course the problem with peer review is the reviewers have the same biases.)
Now think of the training data of "natural intelligences" raised in the 1950's with Jim Crow and women unable to open a bank account without a man's permission. In theory they can learn to overcome this, in practice those obsolete biases are baked in and it's hard to teach an old dog new tricks.
Between the buggy state of microcom (zero length tabs when used on an actual serial port) and starting down the rathole of doing command line editing and history for toysh, I'm replacing set_terminal() in lib/tty.c with different plumbing, and swapping all its users. And THAT led me to looking at the setlinebuf() stuff (which impacted watch.c as mentioned yesterday).
I was adding a TOYFLAG_LINEBUF I could add to "grep" and whatever else turns out to be a performance bottleneck in the android build, so it's not the default behavior for everything ELSE. (I may also if (!isatty(1)) setlinebuf(stdout) or something, still pondering.)
And THAT got me thinking about how almost every OLDTOY() has the same TOYFLAGS as the corresponding NEWTOY, so I'm thinking maybe I should remove it like I did the redundant OPTSTR entry?
I grepped them all checking because it was possible a command could be installed in /bin and its alias/derivative in /usr/bin, but I didn't find any.
The "almost every" part has the following exceptions:
nbd-client is an alias for nbd_client (because nbd-client_main() is not a valid function name), and nbd_client has 0 in toyflags so it doesn't get a symlink installed
The -sh -toysh and -bash aliases (shell login nonsense, blame posix) all have 0 in toyflags so they don't have a symlink installed
test is /usr/bin but [ has neither flag (to avoid symlink install) BUT both have NOFORK and NOHELP. (Ok, test has MAYFORK, but the difference is NOFORK suppresses symlink creation just like 0 flags does, and MAYFORK doesn't.)
true has MAYFORK but : doesn't (which is probably a bug, : should be NOFORK)
Anyway, what all THAT sounds like is I should have some explicit way of suppressing symlink creation. But how? Removing the field from OLDTOY() takes it away as a control knob for this. Those three "-sh" variants are doing in-band signalling in the name, but it kinda sounds like the main.c plumbing that's accepting "toybox" as a prefix should also just skip a single leading - in the name?
Hmmm, how should I represent this? Implementing is easy, figuring out what to implement is always the hard part, and working out the data format is generally the real work.
Youtube just emailed everyone new terms of service to say it can now insert ads randomly into ANY video, even the demonetized ones. (Just because the submitter hasn't selected ads, or is too small to qualify for revenue sharing, no longer means Youtube won't SHOW ads on the video. Youtube will just keep all the revenue, and won't let the creator control what kinds of ads get shown.) How desperate IS youtube, anyway? MORE ADS! MUST! SHOW! MOOOOOOOOREEEEEE! I mean, do they owe the mob money or something? Countdown to youtube no longer showing any video content, just endless ads. New marketing slogan: "Youtube! Now with more ads!"
Oh hey, the "disney is evil" thing made it as far as The Guardian and Slashdot already. There are some really good analysis threads on it too, and lawyers explaining it, and weapons-grade sarcasm and explanation of legal precedents and... After the GOP the next protest targets are things like corporations and civil asset forfeiture.
By themselves, the Boomercrats will fix exactly nothing, and prosecute nothing. An excellent quote that wandered by recently is "The rule of law is meaningless without consequences", and the Boomercrats will provide zero consequences. (After all they've never had to face any, why should anyone else? Instead they'll rush to normalize and forget/downplay how dangerous the situation was, so it can be even worse next time. Watergate led to Iran-Contra led to Dubyah/Cheney...)
Boomers are like pennies: still around for historical reasons, protected entirely by entrenched interests, and worth less and less each year. (Personally I think the same bill that eliminates the penny should bring back the Sacajawea dollar coin, put Lincoln on a new $5 coin, eliminate the "bill" versions of both of those, and give us a generally circulating $500 bill. None of which can arrive before the Boomers depart.
There are SO many post-Boomer todo lists which can't start until the Booming stops. I should properly write up the post-Boomer todo list at some point. It's not just solar panels and self-driving cars, we need to remove dams and put indigenous people back in charge of land management. (They sustained a population of over 100 million people in north america for tens of thousands of years without turning everything into a giant poisoned desert, and that was WITHOUT the benefit of antibiotics, air conditioning, or cell phones. Pretty sure there's a happy medium achievable, but not if we don't learn form them how not to die out over the next 100 years.)
The real burning fuse the Boomers are holding everyone back from addressing isn't late stage capitalism. That's just "decide to stop doing it and guillotine less than 1000 people" who'd rather die than walk away. The real deadline is climate change, which is rapidly advancing while Boomers run down their clocks. Tornadoes are no longer newsworthy, nor are any wildfires that aren't big enough to be visible from space. And of course the fossil groundwater we're pumping is running out. A few years ago Saudi Arabia ran out of water. Not "is running out", they pumped their fossil ground water DRY (exporting wheat!), and now oases mentioned in the bible are gone and won't be back for 10,000 years. The Boomers will happily do what the custodians of Mecca did and pump the aquifers dry under america's breadbasket because "it's always been there so it will always be there, it's a force of nature and we CAN'T break it, just like there will always be wooly mammoths to hunt and passenger pigeons to eat". Just like we can't run out of healthcare workers (or hospital capacity), can't lose the right to repair, gerrymandering and such can't really derail democracy, etc. Boomers still haven't noticed that their drive for "Stem Stem Uber Alles Let's All Be Nazi Scientists" gutted humanities education funding so nobody's had "how society is supposed to function and what can go wrong with it" explained to them in a generation, and what do you know that skillset turns out to be IMPORTANT.
Boom Boom silver spoon Boom lead poisoning senility drool Boom drool drool Trump Boom. (Yes yes, #notallboomers, I know. Not all men and not all white people either. But more than enough.)
Still poking at $(( )). Haven't quite got traction on it, but... why isn't $@ an array?
$ echo $((@[2])) bash: @[2]: syntax error: operand expected (error token is "@[2]")
Long ago in my second job out of college (working at Quest Multimedia) I implemented an algebraic parser in Java. It took a string and (using two stacks, one for operators and one for operands) evaluated a mathematical expression to come up with a (floating point) result. Alas this was 1998 so I'm a touch vague on how it worked, but googling a bit the technique I used smells a bit like the "shunting yard algorithm"? (It was cobbled together out of stuff I remembered from a college class, a couple questions asked of a UT professor, a photocopied textbook page, and the C operator precedence table out of Herber Schildt's annotated Ansi C spec from 1989.)
The idea is to go through the string grabbing the next token, which is either an operator, a constant, or a variable name. Constants you throw on the constant stack, operators either evaluate immediately (popping one or two constants as necessary) or push onto the operator stack, and the "either" is comparing precedence.
The part I'm trying to remember is how to get it into a single if/else staircase without having each operator exist TWICE (once in the array that indicates precedence and once in the case statement). I mean it's easy to have an array with 37 little function pointers to tiny functions handling each operation, but ew? (I mean, I COULD do it with computed goto. I don't WANT to use computed goto, because ALSO EW, but this is pretty much exactly what it was designed for? I'm not sure it's worse than a bunch of:
static void long double op_plus(long double x, long double y) { return x+y; }; static void long double op_minus(long double x, long double y) { return x-y; }; static void long double op_ times(long_double x, long_double ) { reuurn x*y; };
It's not Boomers' fault they demand to be overpoliced, they all suffered massive lead poisoning from prenatal development through their 30s.
70 years ago leaded gasoline gave the surface of the ocean 20 times as much lead as deeper ocean water, and breathing car exhaust up close raised people's blood lead levels to 600 times what their ancestors had experienced, with children absorbing 5 times as much as adults. Back then cans of food were soldered closed with lead, house paint was full of lead, water pipes were made of lead... but 80% of the Boomers' lead exposure came from breathing the lead car exhaust put into the air. In 1975 the average american had a blood lead level of 15 ug/dL, today it's 0.858, which is still more than we find in egyptian mummies.
This caused widespread brain damage amoung young Boomers, which as they got older led to a huge rise in violent crime due to the learning difficulties and poor emotional regulation typical of pediatric lead posioning. (It's also where Boomers' distaste for cities seems to come from, concentrations of traffic and car exhaust further increased lead exposure as opposed to the cleaner air out in the boondocks, but it was just a matter of degree: nobody was safe from it.) Boomers soaked in lead from infancy through adulthood never learned to maintain the systems the WWII "greatest" generation handed off to them. Difficulties with emotional regulation caused by the same lead exposure led to a huge rise in violent crime and huge demand for police to restrain violent Boomers. (Not that the adults running the vietnam war were doing much better, how Henry Kissinger is not a convicted war criminal I'll never understand. But they were all breathing and drinking this crap too.)
Ever since leaded gasoline was gradually outlawed in the 1980's, crime rates have gone down over 50%, but instead of responding by reducing police staffing the first Boomer president Bill Clinton went the other way and "doubled the number of cops on the street" in 1996 to make the aging Boomers feel less anxious as younger generations who weren't developmentally disabled by chronic lead poisoning started to overshadow them (and got stonewalled by entrenched Boomers pushing back to defend their turf).
This is why the vast majority of the US police force is unnecessary. Between the end of airborne lead, damaged Boomers getting too old to pull off most blue-collar crime, and the massive increase in police and prison funding even Bill Clinton now regrets, the result is a USA overpoliced by an order of MAGNITUDE. Those surplus police try to justify their existence by looking for trouble, and wind up inventing crimes to keep themselves occupied.
Defunding the police acknowledges that between the 50% post-Boomer crime drop and backing out Clinton's crime bill doubling police funding, 3/4 of our current police force is obviously unnecessary. If you end the "war on some drugs" (prohibition 2.0), stop being amazingly racist, properly fund mental health care, and address poverty so fewer people are starving homeless and desperate to pay their family's medical bills... Is ANY of it needed? You can still call in the FBI and national guard when there's a terrorist attack (although it's usually white male boomers doing that), but even a vestigial local police force at 1/10th the current size would be of questionable utility. Firefighters and paramedics are more useful, with far fewer "don't taze me bro" moments.
But even decades of massive lead poisoning on developing brains doesn't explain the current GOP strategy. You've got to add in old age dementia to cover that mess, plus complete lack of human empathy and pathological narcissism. And the kind of runaway fraud snowball where a con artist has to steal ever more more money to conceal/cover previous losses, which is where Bernie Madoff and Enron and the London Whale came from.
I can get the japanese dubbed/subtitled versions of Netflix stuff here in Tokyo, so I'm rewatching "Lucifer", which I've seen multiple times and watched many people's reaction videos to on youtube, but I'm also rewatching each episode in english first so I have the best chance of picking words out of the translated japanese dialog. And I am once again struck by how carefully constructed the first few episodes are. It's a difficult premise to sell, and this is a swiss watch/faberge egg of plot and dialog introducing and selling each aspect. Especially Lucifer (and Mazikeen) being who they are, with massive potential for evil and abuse of power but zero interest in either, both rigidly honorable (Lucifer being textbook lawful neutral, Maze having epic duty and pride) and too bored/jaded for it to occur to them. (And then Chloe's introduction is just as skillfully handled. The hardest part is the "they fight crime!" hackneyed premise, which they shoe-horn in with laser targeted precision. Lucifer just quit a metaphysical penal institution, working with a detective is a surprisingly natural fit they way they present it, and Chloe has to have enough competence to be at least a domain-specific match for Lucifer and STRONG chemistry or it just wouldn't work.)
I'm also impressed that (in In Nomine terms) they pulled off making Lucifer a Lilim instead of a Balseraph and it _works_). And it's Los Angeles, of COURSE he's in therapy. This show is an equal mix of outlandish mythological aspects and "write what you know" comfort zone for the show producers.
Watching the japanese version highlights the fact that, other than an inspired themesong "sting" (which is extracted from a larger song that just doesn't _WORK_, it's on youtube) and quoting as heavily from external songs as Due South did, the incidental music behind scenes (like Lucifer in the back of Chloe's car for the first time) is straight out of The Sims. All the cast is good, but Tom Ellis' acting pulls off some herculean lifts.
The trail of breadcrumbs to keep it going is also well done. In episode 2 Chloe approaches Lucifer at his club with unanswered questions (she's a detective) and he follows her back to work out of curiosity/boredom (his seduction attempts bounce and nobody's ever negged him or played "hard to get" before), and while there "Wait, somebody who believes he deserves punishment is getting punished, and there's MORE to it?" comes as a REVELATION to Lucifer.
Each day in the USA Covid is killing 200 times as many people as die in car crashes. The wheels are coming off people's lives, and the people running the safety nets are burning out.
Sigh, I need more time/energy to read books.
When I read about how corrupt the police in Vallejo are I thought it was a city in Mexico, but nope: California, San Francisco Bay area. (Defund the police and abolish (defund) ICE.)
Dolly Parton is an excellent example of why guillotining the billionaires is a moral imperative. She's NOT a billionaire... because she regularly gives money away. (On things like Covid Vaccines.) She easily COULD be a billionaire, and chooses not to be, because she's a good person. She's not alone, but being both rich and a good person makes news during Late Stage Capitalism. Debt forgiveness was a regular thing throughout history until the Boomers (and the Victorians before them). Billionaires are who that debt is owed TO: poor people are always the source of rich people's money. Being a billionaire is a CHOICE, and it's not one good people make.
Every time something bad happens in the USA, my first question is "which billionaire is behind this fuckery"? The countryside used to be radical until it got occupied by plutocrats. In the case of the new extra-nazi Facebook replacement, it's funded by The Mercers. Billionaires perform stochastic murder (and stochastic terrorism), and Late Stage Capitalism forces people to do evil the same way any other form of fascism does: you're either a collaborator or a target, 99% of the population doesn't get to "opt out", and thinking you CAN is the most extreme form of privilege. (Whether individual white men do it, or corporations.)
Meanwhile, Boomers scream denial by arguing with math. Over in the UK the 2018-2019 flu season killed 4000 people but the UK already has 50k Covid dead, which means over 10x more people people have ALREADY died from covid than from the flu, and that's _with_ masks and repeated lockdowns mostly preventing hospitals from being overwhelmed to "bodies in the streets" level. Because the 10% who need hospitalization and at least IV fluids WILL ALL DIE when there are no nurses/beds for them and they just get sent home to wait for the end. Delusions about "herd immunity" are just more inability to do math: at 250k infections per day in the USA, a country of ~350 million people, it would take around 4 years (1400 days) to infect everybody. Except we can't sustain 250k infections/day for even 6 more months and still have a functioning hospital system: we'll burn out all our doctors and nurses long before then. Even with a functioning healthcare system 11 million infections have already resulted in 250k million dead (for comparison, the 400k US soldiers died in World War II), meaning 300 million infections would leave 6 million dead if the healthcare system DID scale to that level (which it can't). That's about 5 times what the Vietnam war killed if you include soldiers on both sides AND vietnamese civilians. Even the Korean War (ala the tv show MASH) only killed 5 million people (again including not just soldiers on both sides but civilians). And that's before we count "long covid" disability among the survivors; it's our "new Polio" already putting a lot of people in wheelchairs.
Yup, Biden's going to pardon Nixon again (egged on by Boomer Media). They're not even trying to do most of the right things, and happily doing wrong things. That's what you get for putting an 80 year old in office, a complete breakdown of the rule of law, because you're ignoring felonies as long as rich and powerful people are doing them. It's profoundly hypocritical but that's Good Cop's job. They're Bad Cop's loyal coworkers after all, pursuing the exact same goals through different means. They're strategically incompetent (which is hard to distinguish from actual incompetence, and often leverages it).
Still patiently waiting for the Boomercrats to die. (Despite the US pulling out of vietnam, the Boomers have completely forgotten that protests work.) If the Boomers don't die soon, they're going to destroy democracy. Not just because of the rise of fascism, but because nobody under 40 believes we live in a democracy instead of a gerontocracy. It's amazing how every one of the Boomers' family values organizations turns out to be a molesting scam. (That Q nonsense is yet more "every accusation a confession". What do you mean OUR side is constantly committing these crimes? That couldn't possibly be the case, it must be THEM! Log in thine own eye, dude... Speaking of which, why is christianity still a thing? Between catholic pedophile rape, every televangelist ever, and evangelicals being a "tsunami of racism". Religions justify their continued existence by insisting that even though they got every single factual statement they've ever made about science or history wrong, but should still be listened to for "moral guidance"? Except they're just as wrong on that front too, and now they're giving political campaign speeches from the pulpit, so why are they tax-free?)
I hope that the Boomers take intellectual property law with them. It has no place for modern collaborative creativity. Under Late Stage Capitalism only certain forms of expression are allowed to exist, as ever-increasing monopolies corner the market on communication and artistic expression. (See also song mashups, reaction videos, anime music videos, reactions to mashups, reactions to reactions. Speaking of IP Law, Disney's treatment of Alan Dean Foster should 100% attract antitrust scrutiny resulting in a breakup.)
We need all the investigations. A full-time team of them, doing this sort of thing. (Admittedly @GoodLawProject is british, I'd like to find a US version, but it's not the ACLU as long as they support nazis.) But in theory, this is what the Biden administration should do (and won't because old and out of touch, but it's what an @AOC administration definitely WOULD do because she knows how to fight). Chase every lead and prosecute every offense. The GOP had 8 gazillion hours of "benghazi" hearings, the democrats doing one second less and spending a dime less on it is fidiciary irresponsibility. (Every member of the current GOP collaborated with this administration's crimes, PROSECUTE THEM ALL. And track down horrible things of dubious legality and figure out how to prosecute those too. That's what all the civil suits and civil rights lawsuits were about. And once the Boomercrats die, go after the plutocrats behind the throne.)
"Every Accusation a Confession" has layers. The Boomers let us know how vulnerable they were to manipulation. Gen X grew up with ads and the default assuption that everything said in a commercial is a lie, even if you can't immediately figure out how (and anyone younger seems to filter it out completely). Not that Republicans denouncing democracy as "mob rule" is hard to figure out. (Um, yes? Democracy IS mob rule? In a good way? That's sort of the point?)
Rich has fairly definitively lost the chrt issue (and the #ifdef _MUSL_ issue), that's a total of three implementations that have done variants of #ifdef _MUSL_, call the syscall directly, #endif in explicit rejection of what Rich tried to impose.
Yes! Youtube-dl is back on github. It is a good day. It already had its own site and I used that to download my "learn japanese" playlist so I can run it in the background while doing other things, but it's good the RIAA got smacked down. (And oddly, github set aside $1M to defend their decision in court? I did not expect that. Huh.) A lot of creators still make their living at least partially via IP law, but it's mostly a way for billionaires to screw over creative types, and these days even the big names are finding other ways to fund their careers. We need universal basic income, and for things like patreon/kickstarter/twitter to mature from private for-profit services to public utilities like tap water, paved roads, and the fire department. In a functioning society, the majority of Google's services would be performed by the Library of Congress. Collectively, that would bring us about 3/4 of the way to Gene Roddenberry's Star Trek future, so we can't say we're SURPRISED that the guy who predicted flip phones and video chat got more parts right.
This is a good (if basic) talk on the maintenance of open source software (which was introduced with an xkcd strip). Several of the points it makes are straight out of Clay Shirky's institutions vs collaboration talk, but it takes them in some new directions.
The way to get glibc to stop crapping stack dumps all over stderr is to call mallopt(M_CHECK_ACTION, 1); (Gotta #include <malloc.h> for that.) I'm wondering if I should have toybox's CONFIG_DEBUG do that?
A reminder that impostor syndrome is actually a good sign, it's the OPPOSITE of dunning-kruger. You are at least dimly aware how much there is to know, and have standards for doing a good job. The better you are, the more impostor syndrome you're likely to have.
I'm pondering the imporance of being able ot select the right level of abstraction. While responding to an email talking about people "who don’t realize C/C++ and VHDL/Verilog are not the same" I wrote:
C++'s marketing strategy has been to intentionally confuse itself with C since 1986. "C++ contains the whole of C and therefore is just as good a language, the same way this tray of jello shots contains an entire glass of water and is thus just as good a beverage." Back when cfront converted c++ to c they presumably believed it, but anyone who's debugged shared library version skew caused by "extern c { int thingy(class potato &spud); }" with multiple compiler versions can spot some obvious flaws in a language that introduces layers of abstraction while still having pointers. "Why can't I memset(x, 0, sizeof(x)) a class instance? Invisibly initialized RTAI data and virtual function pointers? What are those? Oh I still have to know how it's implemented in order to be able to use it? And you're adding ever-more implementation complexity behind 'abstractions' that leak implementation details. Sure, that should scale." By the time templates went in claiming C++ was just a "better C" was already dishonest, let alone modifying gdb to do name demangling so it could distinguish overloaded virtual class members called from global instance constructors... There are plenty of languages like python with opaque abstractions that DON'T leak implementation details, when you want "what the hardware is actually doing" to be somebody else's problem.
As far as I can tell the VHDL/verilog bit is more of a "C vs assembly" thing where hardware people who aren't programmers just want to hand-craft a netlist wiring components into a circuit without letting the tools do any work. Not so much considering them the same as sticking to their comfort zone. We have somewhat more ambitious goals and lean on the tools heavily to accomplish them.
Those two paragraphs are in tension because the "leaky" abstractions the C++ people added (demading you understood how everything is implemented in order to use the tools) and the leaky abstraction of VHDL (where you have to know how the optimizer's going to match various hardware components to wind up using an sram instead of a pile of transistors)... are uncomfortably similar. The main difference is that VHDL isn't a moving target constantly adding new layers of leaking abstraction. Describing a circuit in a way that the optimizer can recognize efficient implementations given the hardware you have is uncomfortably black magic for me, but then I don't really know VHDL yet.
The abstractions of VHDL seem to provide net benefit and act as a force multipler for a small team to produce and maintain larger and more complex circuits than they could with verilog. And VHDL is not a large language where you have to select a "sane subset" but no two developers or projects ever choose quite the same subset so it grows over time until nothing is actually excluded or safe to ignore (a problem C++ shares with perl). In VHDL you can be expected to learn and use every corner of the language without being overwhelmed.
Finding the RIGHT level abstraction to tackle a problem at is an important consideration. And a hard problem. But the language having a lot of abstractions it EXPECTS you to use which don't actually help your project is "infrastructure in search of a user" again. (It's not really code re-use when you pull in an 8 megabyte library with 4 package dependencies you have to install at runtime just use a self-contained 3 line function out of the library. Which brings us back to the first pargraph of today's entry where Rich tries to force everybody to use threads because HE likes them, and everybody went "nah" and wired up the syscall directly.)
The woman I mentioned two days ago collecting stories about how capitalism is wasteful and inefficent has posted results.
Sarah Taber has another excellent thread about how George Washington's campaign of genocide against the seneca indians led directly to Jim Crow sharecroppers and on to today's racist and endlessly subsidized "farm vote". (With the usual tangent about the book "Prairie Fires" explaining how the Little House on the Prairie books were set during a racist land scam tricking poor whites into stealing land from indians to hand over to rich developers, and our entire "small farmer" mythology was never commercially viable, just a sales pitch for the scam, the gradual drawn-out collapse of which led to decades of riots and marches on washington back in the guilded age, when labor organizers were regularly murdered, and of course the plutocrats' factory farms led to the dust bowl.) Is it any wonder the plutocrats want Stem Stem Uber Alles without any history courses? Plutocrats LOVE nazi scientists, they're so fungible.
Oh hey, the surviving Cock brother is starting to have second thoughts. Usually these clowns die screaming the name of the cult leader even after the senior members cash out. (The brothers got indoctrinated from infancy by daddy so despite being nominally senior, they're more "Don Jr. and Eric" territory instead, mindlessly parroting the ancestral grift. Growing up in a cult vs joining it vs running it.) It's up to the rest of us to constantly push back against the tiny numbers of marks (vocal perpetual losers who out/dox themselves regularly), and the Vichy collaborators who knowingly enable them and benefit from their actions).
As Boomer Media continues to wonder why the confederacy hasn't won yet, here's a long article about Boomers at the Times grappling with their increasing irrelevance (with sections on the "structural problems that were limiting the promotion of Black employees" and the drive to hire "more Evangelical Christians"). The article makes an interesting point that millennials are willing to leave and work somewhere else, but Boomers expect to have a career at the same company and "were willing to play the internal Game of Thrones required to ascend the masthead because they never wanted to work anywhere else". (Once again, the Zuckerberg Principle concentrates the suck as less sucky people are driven away by the increasing level of suck among those remaining. It's like Gresham's Law, "bad money drives out good", only about people and cultures. THIS is why you punch nazis.) When the screaming got loud enough the Times hired some younger people, but the Boomers in charge expected to enculturate the new arrivals rather than learn from them, quote "we started hiring from other places, and it was almost like we thought, Okay, now they’re just going to become just like us".
Will Joe Biden do basic income? Of course not. Nor will any of the Boomercrats restore funding for the humanities. The question is how loud can "his side" scream at him to override his octegenarian proclivities? You don't JUST do so in the run up to the election, you do it ALL THE TIME.
A long thread from just before the election analyzing the Resident's likely drug use (attempting to compensate for his advancing dementia). He seems like yesterday's news, but the (hopefully) last Boomer president is doing a last minute push to pull off as much dickery as possible.
It's really easy to get stuck in a rut living alone in a strange city. I like tokyo, but don't know anybody here, so it's really easy to just stay in the quiet apartment until dinnertime.
Which of course means I'm poking at toybox again because it's sort of a ground state for me, serving a similar role as crochet did for my great grandmother. And at the moment that means poking at toysh, which REALLY needs command history, and function support, and $((math)), and...
It's quite possible that I'm the only person, INCLUDING the bash maintainer, to care about:
$ PS1='hey $LINENO:' bash -noprofile -norc hey 0:true hey 1:
But yes, it increments $LINENO _after_ reading the line but before executing it. Should I add a test for that? (Do I care if bash changes its behavior to STOP doing that? _I_ don't, but does some script out there care?)
Blah, my cleanup got out of hand, what have I changed: lib/args.c and scripts/mkflags.c (for 0 prefix) which also hits toys/*/env.c because it had a leading 0 as a flag and that's a prefix now, lib/lib.h and lib/xwrap.c (for xgetline), and toys/*/sh.c... Ok, I can check some of that in by itself, albeit with nobody USING it yet (wince) but it gets the diff down to a dull roar.
I went out to starbucks, to be anti-social in a large group of people, because pandemic, although everybody in tokyo has apparently already had it according to serum tests? Mask on anyway... Starbucks wifi appears incapable of handing out a IP address on busy days, which is ridiculous because 192.168 has 65 thousand addresses it can hand out and I don't care HOW lenient your timeout policy is, that should be plenty. (They're handing out 256 addresses, aren't they? Did nobody bother to change the off-the-shelf router defaults?)
I met with Mike yesterday (another $DAYJOB executive, sort of Jeff's japanese counterpart except sales instead of engineering, lives an hour and a half away by train but came to the office to pick up two updated prototype boards Jeff and I had prepared for him) and mentioned the "wasting being in tokyo if I stay in the apartment or office alone every day, and hanging out with my laptop at a starbucks is only a minor step up". Mike suggested I teach programming classes, either via meetup or he knows people at universities? (I pointed out I only have a bachelors degree and the multiple times I went back for graduate school the opportunity cost of lost work was too big to stay, and he said computer science programs in japan value experience and industry achievement?) Either would get me interacting with native japanese speakers, even if the course was taught in english. I'm all for it, if it can happen...
Friday the 13th in 2020. Should be fine.
A comic strip explaining why unions do not allow police to join
.Does anyone NOT immediately see that Musk's hatred of LIDAR is because Tesla initially didn't include it on their cars (for cost reasons) and then insisted that existing deployed cars would be made self-driving through a pure "software upgrade", and if he ever backed down from that his installed base would sue him? It's basically sunk cost fallacy snowballing. Everybody gets that, right?
Why did I want Android to beat out iOS, let me count the ways. Not that Google isn't problematic, but generally less so than others because so far their employees regularly protest and get them to change course on stuff. The fundamental problem is Late Stage Capitalism was poisoned by Milton Friedman's Toxic September 13, 1970 assertion that the only purpose of a company is to make money for investors and that it owes nothing to employees or customers or any higher purpose and can get sued (by those investors) if it tries. That idiocy (and fallout like "corporate personhood") was not the case before the Boomers, it's a fallacy the Boomers have uniquely perpetrated upon the world, and can go away when they do. This is why most people under the age of 35 now seem to consider capitalism itself a bad idea. Here's a girl collecting stories of how capitalism is wasteful and inefficient, forcing the destruction of goods to corner the market. (Something I ranted about at length years ago.)
Quick Rule of thumb: if an octagenarian said it, start with the default assumption it's wrong. The young always win out over the old in the long run, it's only ever a matter of time. (And yes, re: that last link, the police force quoting hitler three times in its training materials is the same one that shot Breonna Taylor in her bedroom. Not that this is the only problem Kentucky's police force has, but then ACAB is a century old slogan for a reason. Yes, it's problematic. Show me something a century old that isn't. This is why that police force's budget needs to be zeroed out.)
Facebook delenda est. And here's a master list of what Trump did.
Interesting analysis, 70% of the economy voted democrat. The GOP only matters when "owned acreage" or billionaires vote. When people vote or economic production votes, the democrats get it. The GOP voters are the crazy 27% (mostly victims of racist scams and stockholm syndrome) led by slumlord ranchers cornering the market on stuff to bleed everyone else dry. This is why guillotines were invented.
It's not just the GOP (and the Boomercrats) that need to go. Obviously britain's tories (and tory police) are destroying the UK (brexit is going so "well" that truck drivers are now being arrested for smuggling migrants OUT of the UK), but did you know that Deutsche Bank was the nazis' bank and got broken up under the Marshall Plan after World War II and forbidden from reintegrating? Yeah, that lasted 10 years because capitalists suck at restraining plutocrats. Now Deutsche Bank, which was trump's main financial enabler, wants a tax on disabled people and on the self-employed and small businesses to prop up the deflating real estate bubble they've invested so much money into. (Louis Rossman's consistent pronunciation of them as Douche Bank is apropos.)
The Boomercrats need an enema. They will never listen. Endless defeat doesn't phase Good Cop, they can only be replaced.
Remember Sierra Online? Did King's Quest and Leisure Suit Larry and such back in the 90's? Turns out they were killed not by market forces but by a financier looting and destroying them (just like Sears and Toys R Us and...). Here's the story of venture capitalist Walter Forbes and his massive scam involving accounting fraud. (For more on the VC's argument that if Sierra's management hadn't taken his deal they'd be sued by their shareholders, see once again the classic "The Origin Of The World's Dumbest Idea". And yes, this is the specific mechanism by which the Boomers corrupted capitalism into a purely evil self-limiting calamity.)
It's interesting how much of american culture is just going "huh, capitalism is a complete waste of time, isn't it?" I mean there's pop songs about waiting for it to be over.
Fixed the x86-64 segfault. It was the same segfault my old netbook had trying to run Android NDK binaries, the 64 bit space's version of "running i686 code on an i486". Of course gcc, when told to create an x86-64 cross compiler, snuck in optimizations for the current machine because it didn't believe I REALLY meant cross-compile. Obviously I meant to create a native compiler if I did it on the same architecture, right? (The x86_64-unknown-linux vs x86_64-walrus-linux trick is no longer ENOUGH to make GCC stop trying to help out in the kitchen adding jalapenos, cilantro, and chocolate sauce when I'm brewing a cup of tea.)
Sigh. I have zero patience for linux-kernel anymore. I shouldn't take it out
on random strangers trying to bikeshed help, but it's
just exhausting to contemplate.
I've screwed up the tty settings in toybox microcom (noticeable as "tabs are zero spaces wide, which they AREN'T in minicom or busybox microcom"), which means the set_terminal() logic I have in lib/ is wrong. It's setting first four struct termios fields to the values they have in my terminal, on the theory A) this is known values, B) if the terminal gets into a weird state will clearing/setting certain flags and leaving others alone actually fix anything?
Unfortunately, the tty layer is CONCEPTUALLY broken (because the switch from obsolete physical typewriter hardware on the far end of serial ports to software emulating them predates shared libraries so they stuck it all in the kernel, badly). I dug down into the kernel tty source to figure out what OPOST does, and it's mostly a question of fiddling with CR and LF. When you output \n that technically only moves the cursor down one line, so the tty layer adds a \r (jump to the left edge of the screen, without moving down a line) when it encounters one. There's also code to figure out if we're at the right edge of the screen, and output a newline/linefeed pair if so. (This is the thing that was getting broken by QEMU last year.)
But the REAL problem is that this wonky translation stuff where \n gets a \r glued onto it, and spacing off the end of a line gets both, has to be done ONCE on each console, and when you have a machine that actually IS on the far end of a serial port (or ssh, or screen), is the remote tty doing it, or is the local one doing it? (In the case of a serial console on turtle, there are THREE ttys in play: the pty going to the xterm, the /dev/ttyACM0 serial device, and /dev/console on the remote board. ONE of the three needs to do this stuff.)
Looks like the correct fix is not to have microcom call the same tty setup function as for a local tty. Nothing is being displayed, we're just using the /dev/serial to communicate with a remote board, we want that one not to process the I/O at all. (Which is basically "raw mode", but sort of not raw ENOUGH in this case? Or is it TOO raw, forgetting where the tab stops are? Either way, let the serial device configure itself and leave it there...)
Oh hey, American Airlines (still quietly reintroducing the 737-max without telling passengers) just found a new way of discriminating against people in wheelchairs. They seem extra-scummy, I hope that airline does not survive the pandemic.
The in-passing description of the Four Seasons Total Landscaping thing as "objectively hilarious" (which explaining yet another republican scandal from people who know nothing but punching down and yet are AMAZINGLY BAD AT IT) is excellent wordsmithing. That is EXACTLY what it is, yes.
Meanwhile, 6% of the population of a texas prison has now died of covid, which is another thing that should be mentioned in new neuremberg trials. Given how racist the police are and the school-to-prison pipeline for civil forfeiture and minor drug offences and so on, this is outright murder of people who should never have been locked up in the first place.
The Resident is trying to destroy the ACA in the middle of a rapidly escalating pandemic on his way out, and yes they're trying very hard to stage a coup. Despite all the hypocrasy, fraud, and outright treason, the Boomercrats are still on course to pardon Nixon again, but as John Rogers says, "Nothing ever stops until rich white men go to jail.. The Boomers are too old to learn. The GOP keeps doing this because there are never consequences, it's the same guys cheating while pretending to be victims, who either win or they slink away just long enough to circle around to try it again. This is why you punch nazis rather than trying to reason with them. And that includes facebook.
Meanwhile, Mitch McConnel is confirming more republican judges today. Yes, after Biden won the election. The Boomercrats do endless outreach to white people who will never support them because they don't WANT to be the party of brown people, and are just SURE the republicans will suddenly start supporting them if they're just NICE enough to them.
The main problem is still the Boomercrats aren't progressive, at all. The "populist uprising" is rage at the plutocracy's stagnant wages with zero job security, strangling healthcare, "war on some drugs", school-to-prison pipeline and so on. They WANT somebody to burn it all down, and when Boomercrats defend it they vent the other way. (Mark Blyth gave multiple talks about this.)
TPM is running a "brittle grip" series about Boomers increasingly worried that dying may cost them power.
It's amazing how much I can get done in a quiet, catless room. It's actually a bit of a problem, even without modafinil I look up and 5 hours have passed without me expecting them to.
Ok, last night I tested Jens Axboe's TIF_NOTIFY_SIGNAL patch until it compiled (I was up waaaaay too late doing it, I dunno what timezone that mailing list is in but it was something like 2am here). Earlier yesterday I collected a bunch of other patches and I'm trying to check them into a git repo with "git am" but the one from peter anvin won't apply? It applies fine with aptch -p1 (no fuzz or anything), but git am says it contained nothing but garbage on line 6. (How can it contain nothing but garbage on LINE 6?)
Another unsolicited email from the linux foundation, and my immediate response (what do they want money for THIS time) turns out to understimate the situation: they're selling tickets to an "Open Source Strategy Forum" where most of the speakers are BANKS.
The Linux Foundation and the Fintech Open Source Foundation bring you Open Source Strategy Forum - the ONLY conference dedicated to driving collaboration and innovation in financial services through open source software and standards. Join us THIS WEEK, Nov 12 -13, for a jam-packed agenda of 50+ sessions, featuring speakers from JP Morgan, Google, Citi, Microsoft, Deutsche Bank, IBM, the Consumer Financial Protection Bureau and many more, all leading the way to thought provoking insights and conversations about how to best leverage open source software to solve financial industry challenges.
Open Source + Financial Services + Best Practices = Open Source Strategy Forum.
Remember when Linux was driven by hobbyists? The Linux Foundation does not, and is UTTERLY HORRIFIED at the thought. Oh goddess, they have a keynote speaker from the Alliance for Innovative Regulation, the Managing Director of Goldman Sachs, and whatever the heck "Open Source Wonk, Azure Office of the CTO, Microsoft" is. (Does Microsoft's CTO have an Azure Office? What?)
Look: Billionaires are rich because banks decide they can be rich. It works like this: Banks loan them money to buy mansions and yachts and hotels and such, and then let the billionaires mortgage their new assets at 1% interest (which is lower than inflation), and use that money to buy the NEXT asset, and borrow again, rinse repeat. (It's called an ELOC, I.E. an Equity Line Of Credit) Then a few years later when inflation's gone up 2%/year and they've only had to pay 1%/year, the price of each asset has gone up enough they can borrow even more money against it in a never-ending spiral. And that 1%/year they pay is a tax deductible "expense", meaning they never pay taxes on anything (since loans aren't income). And then you can add in stuff like the art market where they create assets out of thin air (bid up the price of $5 worth of paint and canvas anonymously buying from YOURSELF at auction, get a friendly appraiser to give a professional opinion that oh yeah it's worth millions, stick it in a vault and ELOC it at 1% interest like everything else)...
Cash was always a social construct (like employment contracts and land ownership), but modern finance is COMPLETELY fictional. It's a shell game, promises from nobody to nobody that endlessly multiplies the same dollars by loaning them out and then calling the loans "assets". (After all, you know the bank loaned out the money you deposited into your checking account, yet you still have it. The money exists twice. Repeat a thousand times and you have modern finance.)
The Mary Poppins "run on the bank" can't happen anymore (since 1978) because each bank can electronically borrow an unlimited amount at the touch of a button from the Federal Reserve's overnight window, and the Fed has unlimited money because they're the institution authorized by congress to CREATE money. Money borrowed from the Fed didn't previously exist, and money deposited back into the Fed is deleted from the system. They don't even print it: the Bureau of Engraving and Printing makes bills, and the US Mint makes coins, but cash is purchased from both with electronic money and nobody panics if the bank runs out of twenties until tomorrow and the ATM can only produce hundreds or tens. The real action's all in electronic funds transfers now, and a bank's reserve currency balance can't go to zero when its computers can borrow money from the Fed as needed, automatically in seconds.
My earlier example of "the money in your account is loaned out" (as in that famous scene from It's a Wonderful Life) is also obsolete: they don't even bother to do that anymore. A modern bank doesn't care about its account balances adding up unless money has to leave to go to a different bank. Transferring money from one account to another account within the same bank costs them nothing, so borrowing money can increases the amount in your account without DECREASING any other account at the bank. (Ok, double entry bookkeeping to track it means they have an account somewhere with a large negative balance in it, but it doesn't mean anything. And sure they could borrow more from the federal reserve to cover that at a tiny interest rate, but why pay even that much when they don't have to? If you swipe your Wells Fargo credit card to move money you don't have into the grocery store's business acccount at Wells Fargo, Wells fargo has lost zero dollars and GAINED a promise from you to pay them more money in future.)
This is why basic income is easy to do these days: dollars in banks and gold in World of Warcraft work literally the same way. Adding money to people's bank accounts is like adding minutes to your phone plan. Calling long distance used to be more expensive per minute the farther the call went, then it was flat rate minutes, then calling anywhere in the USA became free, then we got VOIP calls for free worldwide. Old fogies who can't comprehend the march of progress had to die before any of that could happen for reasons succinctly described by Douglas Adams, but happen it did.
For example, if you want to break the real estate market and pop things like the London price bubble: In 2010 there were 255 cities with a population over 100,000 people. Telling every american citizen "you can stay at a capsule hotel in any of those cities, with storage locker shower and simple laundry service, plus all the fortified ramen you can eat, whenever you need it for as long as you want, live there or save money visiting I don't care" is entirely feasible. The startup costs would be less than the one-time pandemic stimulus package this year, and keeping it going once it was in place would probably cost less than the $47 billion/year we spend on Housing and Urban Development _now_. (There's lots of things like "entire capsule can be hosed out and blow dried between guests" that were prototyped but not widely deployed when capsule hotels became a luxury thing tourists came to see rather than cheap ways to stack salarymen who'd missed their trains.) Then raise property taxes with a homestead exemption on the kind of ownership you want to see.
The idea horrifies Boomers. But given the number of people living out of their car these days (which Boomer Media somehow manages to make sound expensive because they can't conceive of anything else), there would be a significant market for something like that. (Heck, if you did it right it's probably preferable to most college dorms.)
But it's not what we're doing now or have been doing for the past 100 years, so the Boomers have to die before anything like that could be seriously considered.
They keep emailing me. Since no human being is going to read my reply to Amazon recruiter du jour, I've copied it here for posterity. (Name redacted on the off chance it's a real person, which seems unlikely.)
On 11/6/20 3:20 PM, XXXX wrote:
> Hi Rob,Hi XXXX. It's been 46 days since I heard from you, I'm guessing cron job?
> I hope this message finds you and your loved ones well. I am sure that you get
> inundated with messages from recruiters, like myself, but your background is
> very impressive and I wanted to give it a shot!
I don't want to spend my life making Jeff Bezos richer. I'd happily work for his ex-wife in her quest to give to good causes "until the vault is empty".
> I noticed you had interviewed previously with Amazon, and I was curious if
> anything in your current situation has changed?Do you mean am I still lobbying to change US law so hoarding a billion dollars for more than 30 days is a capital offense punishable by guillotine?
They insist returning the top tax rate to 91% isn't realistic, so let's lobby for something easy to implement. There's only about 650 billionaires in the USA, we just have to sharpen the left edge of the Overton Window...
> I am seeking embedded engineers
> to come make history with us! I support our ELB, EC2, EC2 Nitro and Serverless
> teams.I'm seeing:
https://www.cnbc.com/2020/10/24/how-amazon-prevents-unions-by-surveilling-employee-activism.html
Which are the top 3 hits from googling "amazon workers" just now, and if you'll check with the previous holder of your pen name you'll see I sent a similar reply on September 25th.
&bt; If you are open, please reply with your resume (if you have one) and a time that
> may work for us to connect.
Look, I'll give Bezos points for opposing Trump and keeping the Washington Post vaguely independent. But leaving a hedge fund and borrowing a quarter million from mommy and daddy to try to corner the retail market so you can put the companies whose products you distribute out of business with copycat clones does not make him a good guy:
https://www.engadget.com/2019-09-20-allbirds-amazon-copycat.html
And yes, that includes going to war with Amazon's original book business:
https://www.nytimes.com/2014/08/08/business/media/plot-thickens-as-900-writers-battle-amazon.html
(Which was only his first product because solid rectanglar dry goods were easy to store and ship, according to old interviews.)
Ok, he's not the Sacklers, but praising Bezos for not being a full-on Bond villain is like saying Wal-mart selling cheap insulin makes them good guys. Ask Vlasic about that. (Sure, Trump EVENTUALLY went too far for Christy Walton so she funded the Lincoln Project, but 2019 was a bit late to make that decision and John-boy, Jim-bob, and Marry-Ellen are all still to the right of Nixon.)
Yeah it's not _just_ Bezos: Elon Musk isn't a good guy either, despite buying up all the solar and battery companies to take credit for other people's technology (he BOUGHT Tesla from Eberhard & Tappening) and "helping in the kitchen" with self-driving cars so every fatality his half-baked crap is responsible for sets the cause transportation-as-a-service cause back another 6 months. It doesn't make any of their continued existence a net positive. Sure William H. Gates III is taking the money he earned after the CEO of IBM was willing to grant a contract to the company started by "Mary's Boy" (since Gates' mother was on the board of directors of the Red Cross with him) and is being all philanthropic, like Carnegie and Alfred Nobel before him. Fight off antitrust, then laundering the blood money with the biggest PR campaign.
NOBODY becomes a billionaire without taking more money than necessary from millions of people and not even sharing it with your employees who do the work to make you rich.
I have no desire to spend my time many any of them richer, ever.
> I look forward to your reply and building a professional relationship.
No you don't.
> Best,
>
> *XXXX*
>
> *Recruiter *| *Amazon* *Web Services*
45 more days until...
Hang on, is this just a pen name or a full on Amazon Mechanical Turk thing? Seems unlikely Amazon's managed its own Microsoft Tay, although I suppose Skynet's gotta come from somewhere. (Did you know you can sing "Loyal Wingman combat drone" to Camptown Races?)
When Google acquired Boston Dynamics its employees FLIPPED OUT. Amazon is carefully constructed so its employees cannot object to anything Bezos wants to do, ever.
THAT is why I wrote and maintain toybox for _free_ for Android, but won't touch Amazon. (And why my current job pays 1/4 what my previous job did, but I made the switch voluntarily and am still happy with my decision.)
> */Work hard. Have fun. Make history. /*
Already doing it, thanks. Are you?
Rob
Of course Joe Biden is already insisting that the allies fought their way into Germany to pull Hitler out of his bunker and shake his hand and say it was a good game and we can all go home now. Biden clearly wants to pardon Nixon and "return to normal" so the GOP can do it all again worse in 4 years.
Biden ain't got 8 years in him, he turns 80 halfway through his first term. The Boomers elected Ronald Reagan as the oldest president ever, and he got Altzheimers from the stress of the office. Then the Boomers elected Voldemort to be the oldest president ever and he's halfway to vegetable at this point. Now the Boomers have elected Biden to be the oldest president in history, and we expect him to do better? Even younguns like Clinton and Obama had their hair turn grey in office. I expect Biden to basically _melt_. The best thing he can do is hand off to Kamala quickly. But let's not focus on that: even numbered day. Good news. Let's see...
A few months back Chinese engineers prototyped a fully electric jet engine. I still expect we'll need fuel cells to power it (it's hard for any sealed battery system to compete with "half your reaction mass is atmospheric oxygen you didn't have to carry with you"), but that's not a big lift for long haul traffic. (Batteries for ground travel, fuel cells for sea and air travel. Or again, make methane and call it "natural" gas if you still buy into the fossil fuel marketing campaign from Bob Hope's prewar radio show.)
American Airlines has taken advantage of the distraction to rename the 737-Max the "737-8" and quietly put them back into service without even the software changes Europe made. Late Stage Capitalism is also combining intellectual property with surveilance capitalism and trying to spin it as a good thing that your phone listening in your pocket can now fine you for singing.
Today over ten states are at 100% hospital capacity due to Covid. When more people show up, they physically can't be treated. There's no people working there with a spare moment, and no places in the building that aren't already full of sick people. Everybody without a life-threatening condition has already been sent home. It doesn't matter if you show up bleeding, someone else would have to die so they could treat you.
But the octogenarian Boomercrats are the real problem. THEY are why the GOP's fall into fascism has gone largely unopposed. The reason arizona went blue was because native americans quietly stood up and did things, not because anything the DNCC did. The Boomercrats dismantled Howard Dean's 50 state strategy that broke Dubyah's hold on the house and senate. They dismantled Obama's Grassroots Army. The Boomercrats not only fought against AOC during her election, and mocked her agenda, they blacklisted vendors willing to work with challengers like her, something The Squad immediately fought back against. AOC only won by beating a Boomercrat incumbent who outspent her 10 to 1, and the octagenerians were HORRIFIED, and have staunchly opposed everything progressives have tried ever since. At BEST they're Neville Chamberlain, at worst they're Vichy France.
Young progressives like "The Squad" aligning themselves with the DNCC was exactly like the Lincoln Project doing so, or the USA allying with Joseph Stalin during World War II. War makes strange bedfellows. But the problem is Boomers. They've poisoned the GOP beyond redemption, and the DNCC needs just as much scouring until every last Boomer is gone. (This is also why Beto O'Rourke annoyed me, he was a glory hound, rather than focusing where he could do some good he grabbed the spotlight and went full-on White Guy and made it all about him. As this interview with Stacey Abrams says, "white people are going to white".)
80 year old Nancy whines about the need to be less progressive, but the wins were all progressive. Boomercrats keep centering clowns like Jim Clyburn who are also 80 years old, but any success was in spite of them, not because of. They don't even question over 5 million people being denied the right to vote by felony disenfranchisement laws (something other democracies don't have). The school to prison pipeline in republican states means high school students can start life with a felony assault conviction for fighting in class (putting them in the 47% "violent felon" category that most people dismiss as unsalvageable, for life). The Boomercrats want a "return to normal" that INCLUDES all those things, frozen in time just like they are.
Sure, the GOP is utterly horrible. The logic of the $1200 coronavirus payment was obviously "$7.25 federal minimum wage, times 40 hours, times 4 weeks per month = $1160". If they'd paid that per month everybody would be living on minimum wage, but it was approved in march providing a check for april, and then the democrats passed another one in may and the republicans blocked it. So people have been given no help in may, june, july, august, september, october, or so far into november, all because the GOP wouldn't act on the bill passed back on May 15.
But the Boomercrats not only don't remember how to fight, and don't WANT to fight. They passed ONE stimulus bill in April, which was ignored, and then went "oh well, our job is done and our hands our tied, nothing more we could ever possibly do". They half-assed impeachment exactly ONCE instead of impeaching him for each new issue (you gonna run the Gish Gallop, we can impeach you for every single impeachable offense and run constant Nixon Hearings on you, and each time recite the full list of crimes from the top; Boomercrats can't even get "peperidge farm remembers" right and that was ABOUT being an ominous geezer with a long memory). They took no strength from the protests, they fumbled or dismantled every grassroots thing. All they have is top-down Boomer blindness. The Boomers' time has long since passed, and the rest of us will continue to struggle until the Boomers move on. Right now Boomers own the DNC and everyone else only reluctantly votes for them to block an even more Boomer controlled GOP, because "stop Booming" is never on the menu. Boomer Media ensures it.
The Zuckerberg principle doesn't just apply to Facebook, but to the rest of the GOP too. Back around 2010 the GOP wasn't looney enough so the Tea Party took it over, and now the Tea Party isn't looney enough so the Q-tip party is taking it over. Sure, moving the overton window by shouting "clean cup move down" so the billionaires could harvest organs for profit was profitable, but now the billionaires are trying to stretch it further to avoid being guillotined (since the 2010 round moved "taxing them" out of the public debate), and the ra/fasc/sexists are trying to stretching it to avoid being #metoo-ed.
Speaking of, here's the nutshell explanation of White Male Privilege: Johnny Depp (the man who managed to invent whiteface as a form of racism) just got fired from playing Grindelwald in J.K. Rowling's "When authors run out of ideas they write prequels: the movie, part 4" after he lost his libel suit against the Sun, which reported he beat his ex-wife Amber Heard and had drug/alcohol problems. The White Male Privilege part is this bit:
However, the judge did not find in his [Depp's] favour, ruling that while Depp, "proved the necessary elements of his cause of action in libel", News Group Newspapers showed that what they published was "substantially true".
Depp's legal team have said they will appeal... the decision, calling it "as perverse as it is bewildering" and "flawed".
After the Sun proved in court that it's true he DID beat his wife just like they said, Depp finds his inability to successfully sue them out for libel ANYWAY "as peverse as it is bewildering". That's the explanation: he honestly doesn't get why the other side being RIGHT should stop him from winning. That part of his brain is missing, the idea of anything anywhere not being for and about him can't fit in his head, and never will.
27% of the populace is unsalvageably broken (variously known as the crazification factor and the Alan Keys Constant). Stop trying to RECRUIT them and start working AGAINST them. Build a society in which they may never stop WANTING to kidnap a dungeon full of sex slaves, but are 100% certain that if they try they live in a society where having a hot poker inserted into each relevant orifice shortly thereafter would be something that if they're VERY lucky they might be able to plea bargain DOWN to.
Maybe we can't achieve all this any time soon, but we need to get our GOALS right (what A.R. Moxon calls a compass statement). Kennedy didn't "maybe someday, baby steps" his way to the moon, and FDR didn't compromise with the "nattering nabobs of negativism". You never start haggling at the absolute minimum you'd possibly ever be willing to accept, and the fascists aren't the only ones who can sharpen their edge of the overton window.
Jeff's scheduled to fly back to Canada on Saturday (gotta shut down SEI, and Air Canada's reducing its flight schedule from Japan to once per MONTH, plus he's only allowed to stay 14 days without solving a chicken and egg paperwork problem he probably has to solve from canada), so we're rushing to get as much done before then as we can.
I miss my twitter account. If I still had it, I'd reply to this with a picture of Tilda Swinton as the 13th Dave. (Nevermind, sombody beat me to it. Twitter's gotten darn hard to navigate...)
ARGH! The toybox-x86_64 binary I uploaded with this release segfaults on Jeff's laptop. (It's the darn "686 code running on an 486" problem in the 64 bit space again, like I had with the Android NDK until I switched laptops. I need to add another command line argument to the x86-64 target in mcm-buildall.sh to tell gcc to not.)
P.S. Intel INSISTS you say i686 instead of 686 because you can't trademark a number so they HAD to add letters to x86 and ia32 and so on, and they BEG you not to call it a 386. Which it is. It's not that "i386" is "more correct", it's that Intel want you to say "bud lite(tm)".
It's not resolved yet.
If white men voted like white women, or like black men, democrats would sweep the field. The only reason the republican party is still a thing is because white men. I am disgusted by my nominal demographic, and doing a "not like the other boys" thing. (Warning: tiergruben)
I'm trying not to get my hopes up. If the dorito couldn't kill healthcare.gov, Biden won't be able ot kill ICE even if he wants to. (Which is a big if. I don't want to have to wait for the Boomers to die before we can fix things. The Boomers are holding onto power by their teeth, and we're all waiting for those teeth to fall out, but it's taking too long.)
The NYPD is a turducken of evil.Too stressed to eat most of today. (While I could stand to lose weight, vitamin D probably isn't the only important one for coronavirus reinfection.)
I dug up the old Vinny's Computing Software License Agreement I saved from Fidonet back in college. It's more or less the reason I started paying close attention to what software licenses actually said, and I can't find it on the modern net when I want to quote bits of it at people, so here it is from my old files.
I need a shared editor with branching undo. You can't pair program through google docs (you sort of could through writely back in the day, but google docs is a Word clone, not a text editor), and screen -x gives you two views of the same terminal, not two cursors in the same document.
Unfortunately, it looks like I'm going to have to write it, which would easily be another application of the editing plumbing I planned to do for vi (and share with toysh command history editing, which has to be multiline already because wrapping and line continuations and such).
How are HERE documents supposed to show up in command history? Busybox hush treated each line as a separate command history entry regardless of context, so individual lines of HERE documents polluted the scrollback. Bash has them all collated into one thing with embedded newlines.
Making ethernet and usb work off the same clock is #*%(&#%& fiddly. Jeff says the hardware Voltage Controlled Ocillator on the spartan 6 can go from 600 mhz to 1.2 ghz, until he looks it up and the spec sheet says 400 mhz to 1080 mhz, with inputs from 19 to 300 mhz, for the Spartan 6 we're using. Fine. (Fix the comment.)
A Voltage Controlled Oscillator works by vibrating at a controllable speed within a range, and then you hook one of its outputs up to a divisor (if all else fails, a counter that triggers ever X clock cycles, but dividing by 2 is especially cheap since it just needs one transistor, to toggle every time it sees a rising edge so its output is half the input rate). Then feed that divided clock pulse into a "phase comparator" with a reference clock of the same speed you've theoretically divided down to. When the reference clock edge comes before the divided output's clock edge, the phase comparator tells the VCO to slow down, when it's the other way it tells it to speed up, and thus he phase comparitor tunes the VCO to run at an exact (synchronized!) multiple of the reference clock.
Right now we have 2 crotchety pieces of hardware that need to run at a specific speed: the USB phy (60 mhz) and the Ethernet PHY (125 mhz). Everything else (processor, memory, sdcard, spi flash, etc) can run at a range of speeds, but those 2 talk to the outside world. The serial port also talks to the outside world, but serial ports resynchronize themselves to the other side's leading clock edge every byte so can be a couple percent off the correct speed and still work fine. So for serial we just need to know what rate our clock is at and set a divisor to get within plus or minus 2% of where we want to be, but the other two send much larger bursts and must be VERY accurate (tiny fraction of a percent, at the level the crystal already varies by temperature).
So we need one clock rate that can produce both 125 and 60 mhz, and have 2 reference clocks we can use as inputs: the 25 mhz crystal on the Turtle board, and the 60 mhz output from the USB PHY chip pin. That USB clock is itself generated from that 24 mhz crystal on the USB hat we had to solder an extra resistor to, presumably they're multipling it up to 960 mhz with their own VCO (I.E. reference clock divisor = 40) and then dividing 960 by 16 to get 60. (Remember: divide by 2 is cheap, and divide by 16 is just 4 divides by 2.) Each VCO has multiple output pins, each with its own independently controllable divisor, so you can get lots of slower clocks but they must all be evenly divisible by an integer from the VCO clock speed.
The Turtle's 25 mhz crystal made it easy to drive ethernet, which needs 125 mhz (5*5*5), and usb needs 60 mhz (5*3*2*2), and the common frequency you can divide both from is 5*5*5*3*2*2=1500. (This is prime factorization from middle school.) Unfortunately, 1500 is faster than the VCO can run and no speed SLOWER than that can divide down to both evenly using integers.
BUT! It turns out the input to the ethernet phy isn't 125 mhz, it takes a 50mhz clock! That's just 5*5*2! Which means we need 5*5*3*2*2 = 300 mhz, or a multiple thereof. (Our VCO can't go that slow, but it CAN do 600 mhz, so we used that and added an extra divide by 2.)
Next problem: any circuitry that isn't run from a common output of the same VCO needs a clock domain crossing, which basically means implementing a serial port inside your circuitry and reading the oversampled data to find start/end bit edges of the other side's signal and figure out where bits go. (Correcting divergent clocks between two machines is where serial ports shine.) But we'd like to avoid that because it's a lot of work and results in a large circuit.
The problem is, the 60 mhz clock we're running the USB circuitry for (output from the VDSO) isn't the 60 mhz INPUT clock that says when it's safe to read the output of the PHY or provide data into the PHY. The two clocks have jitter relative to each other, plus or minus a few percent as random thermal noise makes 'em jiggle and the phase comparator yanks it back. The problem is, if the CPU clock jitters BEFORE the USB clock, we'll read the signal before it's ready and may get the wrong data.
So phase shift: the VCO circuit has a configuration knob on its outputs to rotate the signal before or after the reference clock edge, and if we twist it 90 degrees our edges occur midway between the edges of the USB clock input signal. Which means if our edge jitters forward or backwards a little it should never be BEFORE the "it's safe to read now" edge, or too close to the end of the period where the signal starts setting up for the next period. (Jeff says halfway between is ideal because we read _and_ write, and write means the other side is snapshotting the signal we sent at the edge, so we want as much space as possible from EACH end of the clock period.)
So we did this, and it works! We now have a bitstream that can't boot without the VPN hat, because that's where it's getting its clock from. :)
Today is the day. Voter supporession is in full swing and Boomer Media is blowing it on all cylinders, while late stage capitalism continues to suck, as does silicon valley. But given the day starts in Japan 11 hours earlier than it does in Austin we go to sleep about when voting starts.
I don't understand how a party can fail so hard and still exist, until I ponder that Good Cop is basically the Washington Generals of political parties. They exist to get dunked on.
Here's a more extensive takedown of the misogyny at the BBC, which of course has been slowly taken over by the Tories ever since Rupert Murdoch installed David Cameron in 2010 to nerf Sky News' competition.
Sigh, really bash?
$ function example { > echo hello; > }
I keep bumping into corner cases I was previously unaware of. I suppose that explains why the "function" keyword exists, though...
I wonder what it takes to build infrastructure to convert curtailed solar electricity into methane on a useful scale? We've got buckets of infrastructure to store/transport/use it already, and we could easily convert airplanes and container ships to run on the stuff. Sure it's not as efficient as battery storage, but we're talking FREE leftover electricity converted into a form you can store for years if necessary, and it's carbon neutral the exact same way biomass is. (Burning it releases the carbon you just pulled out of the air to create it. That carbon was in the air last month, the stuff you dig up out of the ground was last in the air upwards of 2 billion years ago.) Yes methane is a potent greenhouse gase but it's only got a 7 year half-life in an oxygen atmosphere (it slowly breaks down into CO2 and water on its own, burning it just does this SUDDENLY).
The "methane from air" reaction also takes water, but we've got tech that pulls water out of the air from the same surplus electricity. This tech may also be the easiest way to get good water supplies to Tuba City in Arizona's Navajo reservation, otherwise the shortest path to the sea A) crosses the mexican border and is thus political, B) goes past cities full of old white people that would steal the water as soon as the pipeline got built, C) desalination produces salty brine that has unavoidable environmental impacts, see "political" above. Going west to california is farther (across death valley), still has B and C, plus high mountains to cross.
William Gibson said the future is here, just not evenly distributed. When
you start deploying stuff like solar panels in the 1960's space program,
the volume goes up and the cost goes down. Early prototypes cost more than
a house, fifty years later it's cheaper to buy a new one than fix minor flaws.
We should start driving these cost curves ASAPBD.
(As Soon As Boomers Die.)
Jeff and I have got a lot of stuff done over the past couple weeks, but it hasn't resulted in deliverables yet. Much progress, little destination.
Somebody wrote a blog post hoping that Microsoft Github would stand up against the RIAA over the youtube-dl takedown, because "Copyright law is now used to suppress instead of promote creative works. The DMCA, in particular, favors the large rightsholders over smaller developers and creators." Except... that was the point. That was ALWAYS the point. The reason the DMCA was created was to protect dying business models from competition, and increase the market-cornering monopolization potential of late-stage capitalism. That was its direct, explicit, intentional purpose. It never had any other. And expecting MICROSOFT to push back against that is like expecting Habitat for Humanity to become NIMBY slumlords using zoning and gentrification to pyramid scheme a Real Estate Investment Trust. It's not what they're FOR. (Microsoft harvesting open source is like Disney harvesting the public domain for movie plots.)
A facebook recruiter emailed me. I replied with a few links I had lying around and asked how they slept at night:
On 11/1/20 9:31 PM, XXXX wrote:
> Hi Rob,
>
> I hope this message finds you well! My name is XXXX and I’m a recruiter
> working with the Infrastructure Engineering team at Facebook.
https://www.gov.uk/government/news/7-year-disqualification-for-cambridge-analytica-boss
> Your background
> with linux and python really stuck out to me as a great fit for our _Production
> Engineering_https://www.buzzfeednews.com/article/ryanmac/facebook-employee-leaks-show-they-feel-betrayed
https://twitter.com/AOC/status/1291453799182356481
https://www.motherjones.com/media/2020/10/facebook-mother-jones/
https://twitter.com/amandapalmer/status/1305091417744629761
> positions, so I wanted to open the line of communication and make sure you were
> aware of the opportunity.😊> I completely understand if it’s not the right time for you personally to talk
> about new opportunities at Facebook, given the uncertainty around the current
> situation.https://theintercept.com/2020/08/20/facebook-bans-antifascist-pages/
https://twitter.com/ClaraJeffery/status/1317191129964556288
> So feel free to select a time for a quick chat, or let me know what's
> best for you.https://twitter.com/danawanzer/status/1301712412698083328
https://www.theverge.com/2016/5/27/11795248/facebook-ad-network-non-users-cookies-plug-ins
https://twitter.com/GrimKim/status/1296535014189006850>
https://www.vox.com/2017/8/17/16163636/media-publishers-video-pivot-facebook-platforms-advertising
https://daringfireball.net/linked/2020/04/04/facebook-nso-group
I've followed Facebook since they started, back before even Zynga:
https://www.nytimes.com/2009/12/16/technology/internet/16game.html
https://www.businessinsider.com/facebook-basically-owns-zynga-2011-7
https://techcrunch.com/2009/02/14/mob-wars-creator-sues-zynga-for-copyright-infringement/
I do not and have never had a facebook account. How do you sleep at night working for them?
> I have also included the job description for the opportunity down below for your
> review.
...
> I hope to hear from you soon!This seems unlikely.
Rob
I'm missing halloween. My quarrantime period is over, but I don't KNOW anybody in Japan, and heading to Shibuya to "see the crowds" seems contraindicated. (I had lunch in a sezariya that would have qualified as a superspreader event back in texas. Hundred people without masks tightly packed into a big room with windows that don't open. I'm reasonably confident I had the virus back in march, and am not vitamin D deficient, but I was not happy about that and once again tried to eat with my mask on, which never works. (Pull it up from your mouth as you take a bite, the bottom edge sort of seems like it'll stay between your upper lip and nose just long enough to fall down into the food right as the spoon goes in. Every time.)
I'm trying to find solar panel manufacturing capacity by country, and google keeps pulling up solar panel installed capacity. I want to know how much countries can INCREASE capacity each year via domestic manufacturing.
So far I've found 2017 figures, which had china making 71 gigawatts of new panels per year and the USA making 2 gigawatts. (Everybody else in that graph _combined_ was less than half of china's capacity, this is why Obama was subsidizing companies like Soylindra that couldn't compete with chinese imports without sufficient subsidies to improve and build up capacity.)
So now the question is if Biden subsidizes solar panel manufacturing, how fast can we build more capacity so we can build panels so we can install them so they can produce power? What is this, third derivative of the line that needs to go up? Location, speed, velocity, acceleration, jerk, snap, crackle, and pop. (Yes really on those last three, according to wikipedia[citation needed].)
Pondering motivated reasoning. Of course china's largest natural gas supplier would announce it expects natural gas demand to double (when china's actual _government_ has pledged to become carbon neutral), and of course Opec hopes oil demand and investment increase rather than decrease. If you set about to prove yourself right rather than find the truth whatever it may be, you often come to different conclusions. The truth is often inconvenient. (That first article also makes the classic mistake of "we interviewed the football team's kicker who said they expect to do a lot of kicking, why would the coach recenter the team's strategy around kicking, let's speculate..." *facepalm* Going "why will the country primarily concerned about self-sufficiency double imports from russia and myanmar"... sigh.)
Oh, and the main reason the oil industry hasn't tanked more (other than putting a cheerful face on bad news) is china's buying spree back in march, taking advantage of the fire sale where oil prices literally went negative, is just getting delivered now. All that floating storage takes a long time to unload, and it only gets booked as revenue when it goes through customs and the money comes out the other side. So the oil industry is still booking revenue today from sales 6 months ago, which makes their balance sheets look less cratered. (Meanwhile they not only can't afford money for exploration, they can't keep up the legal defense of increasingly unnecessary pipelines. Russia's kind of screwed by all the natural gas that turns out to be under the mediterranean, why should Germany buy from Putin when they can buy from Egypt or Israel? Neither of which has ever posed an existential threat to europe.)
But the main story is still China got embarassed by the 2008 beijing olympics' air quality and pivoted away from coal in its next five year plan, then ended expansion of its strategic petroleum reserve in the five year plan after that (greatly reducing its oil imports and causing the 2014 oil price crash, causing a wave of oil bankruptcies the current crash still hasn't matched, largely because the financiers are allowing companies to borrow more money for longer this time around, so they go out owing twice as much money, presumably in hopes the government just bails the banks out again with the freshly printed dollars they won't use for Basic Income).
China's upcoming 5 year plan is widely expected to do to gas what the previous two did for liquid and solid fossil fuels. Which didn't suddenly end either industry, but did mark the peak followed by a long downslope. From there on, suppliers play musical chairs chasing an ever-shrinking market in terminal decline. This is why GE got out of the gas turbine manufacturing business: the financiers stopped paying to install the things because they don't expect them to be in service long enough to pay off that loan. Touting the advantages of gas as a "transitional technology" ignores the question "transition to what"? Gas is just a rebound relationship, the transition is TO solar, wind, and batteries.
The fossil companies are consolidating, which is the same "dinosaurs mating" as the mainframe computer industry went through in the "IBM and the 7 dwarves" era: fortune 500 companies don't die, they get acquired. A series of mergers and acquisitions can reduce 30 companies to 3 without any of them ever going out of business per se: sure they were sold for 1% of what they used to be worth and then dismantled and their office furniture auctioned off, but it wasn't a crass bankruptcy. That is beneath such lofty institutions.
And "your oil is worth nothing but we want your gas" brings us back to motivated reasoning: the fossil fuel companies very much want there to still BE a fossil fuel with a few more years of profits in it. They've got to focus their efforts somewhere, and moving into solar and batteries and wind is hard because they don't have existing expertise in any of that, which the competitors already in those areas already do. (Disruptive Technology 101, from the 1997 book I reviewed 20 years ago. By the time the old king of the hill realizes it's time to move, it's too late.)
Meanwhile, the hopefully-last Boomer president is trying to kill as many people as possible on the way out, now with nuclear waste/fallout. (Biden isn't a Boomer, he was born 3 years before WWII ended. He's not quite greatest generation either, he's whatever the Joneses are on the other end.)
There's an eight stage pattern of domestic abuse escalating to homicide, and I'm wondering how it relates to the republican party and Trump? (There was a lovely thread last month on how the narcissistic variety of sociopath can't just leave a relationship but must DESTROY it, and has an "Annihilatory Rage" stage. Unfortunately I can't seem to find it anymore. Blonde lady? Linked from either @jonrog1 or @cstross feeds most likely? Or maybe from @kbspangler. Yup, still trawling individual feeds since I lost my twitter account. Same way I use tumblr: this is what an interesting person had to say or forward today.)
I first saw a button about declaring billionaires a game species in middle school, but I didn't really get on board with the concept until the whole Occupy Wall Street stuff. Sure Gates was an asshole but Warren Buffett seemed all right? Now he seems cold and distant and uncaring, stepping over the bodies to enter his office. If you think Occupy Wall Street was a waste of time, it informed a LOT of people of the existence of an issue and that there was another side to the argument with some good objections and real data. Protests aren't always about the immediate win, they can be about building support and spreading information in the larger community. (George Floyd protests -> voter registration drives, for example. They don't promise jam tomorrow, they DELIVER it.)
Querying your existing team about bias is itself a form of bias.
Being informed about, visiting on, and reporting on city councils is important. We need more of this to take up the slack from Boomer Media going off the rails. That thread documented potentially suspending Denver's fair elections fund, and awarding a $25 million contract for the capitol building's security to a company whose "guards were involved in the beating of Raverro Stinnett in a Union Station bathroom". (Police wannabes didn't beat a guy, they were "involved in the beating of" the guy.) Perhaps there's some way of reliably crowdfunding this sort of thing. Patreon for journalists, band together... (In THEORY this is what taxes are for, to fight OFF the tragedy of the commons. Alas "regulatory capture" by special interests is NOT punishable by death for some reason. Athens used to exile people back when it (re)invented democracy...)
Misogyny looks like "look how being held responsible for murdering her has ruined his life!" The man-centered narrative attempts to make victims of perpetrators because that's who the camera follows, so they must somehow be sympathetic like Hannibal and Dexter and Batman (all well-off white guys, even though batman makes more sense as a black man).
Every accusation a confession was a bit more thorough than I expected this week. AOC called out the septuagenarians in her party for preemptively caving (because the Boomercrats always do). Meanwhile, guillotines remain popular, as does snark. Elon Musk remains terrible. The GOP has turned into a death cult because all the Boomers have left to do is die, and they want to take as many people with them as possible.
Ok, putting together a demo for a $DAYJOB project and the handoff from coworker is an image using 4 busybox binaries: hush, route, stty, and udhcpc. Which says those are the 4 commands I need to focus on promoting in toybox next time around (before product ships).
Eric Molitor did a bunch of cleanup on route, so I should really revisit that for cleanup and promotion, but I have existing todo items on that command which also need addressing so it's not a quick thing.
The most prominent thing missing from toysh is command line history, but I just bumped into the fact that busybox hush adds every line of HERE documents to the history, which points out that doing that right isn't quite as simple as I thought...
And busybox udhcpc won't "ifconfig eth0 up" the interface, it just fails if it's down, and loops endlessly retrying. (Silently when daemonized.) And I don't think it runs without its script either, we just installed a script for it in this initramfs. (There's screamingly OBVIOUS default behavior, it just won't do it for some reason. It has a default inittab when there's no /etc/inittab, but not a default "apply address and netmask to interface and write /etc/resolv.conf" when there's no script.)
Instead of USB work we started the day creating investor presentation "collateral". (Business model slides, budgets, schedules...) It's still not my area, but somebody has to do it.
Got back to the hotel earlier than usual (Jeff was off presenting) and started poking at Linux From Scratch 10.0. The package list is... not clean. There's still a sysvinit version, but they've added ninja to the base OS now, and in order to get utf8 support in man pages they switched to a version (man-db) that needs a database package (libgdbm) and something called libpipeline. (It's the man command. It's from 1974. You should not need multiple packages to implement it. Sigh, I need to review and promote toybox's man command. And toybox still needs sysvinit. And route. And...)
I'm grinding through doing the first install of each LFS package by hand, not even scripting it, on the theory I need a reference run. I should snapshot the /tools directory (which is now chapter 7, not chapter 5 like it used to be) because that's what mkroot needs to replace. (It's what's cross compiled from the host system before you chroot.)
Meanwhile, all this reading up on USB is in service of trying to get a CDC-ECM (Centers for Disease Control - Electronic Counter Measures) device working, which is the original generic hardware-agnostic USB ethernet protocol from 20 years ago. Conventional 10baseT wired ethernet across cat-5 cable shovels 1.1 megabytes/second down said wire. (Yes I measured it: that's not theoretical anything that's actual speed on a dedicated 1 hop link. Good to know.) Since USB 1.1 has 1.5 megabytes/second capacity, they're a good match. (Almost certainly designed with that in mind: 12 megabits, minus overhead, 10baseT.) 100baseT goes 11 megabytes/second (again measured) and USB 2.0 has 60 megabytes/second of theoretical capacity (and about 4 times 100baseT's actual capacity).
To take _full_ advantage of gigabit ethernet you'd want a faster protocol, but when gigabit ethernet arrived the actual benchmarks were indeed only around 40 megabytes/second, not just due to USB 2.0 but also PCI bus bandwidth limitations and so on. (Nothing in the system was going much faster than that yet.) In theory gigabit ethernet can now do the full 110 megabytes/second, but again: you don't need it most of the time. Netflix advises 25 megabits/second for its 4k HD streaming service, so a single 100baseT connection could theoretically handle 4 of them simultaneously, and a usb CDC-ECM connection being 4x that speed could handle something like 16.
The main real-world uses for gigabit ethernet are connecting together floors of buildings, backing up terrabyte data stores, network mounted hard drives shared by multiple users... It's not what individual endpoints need, it's what bundles of endpoints need, or hundreds of hours of accumulated output going through batch transactions. And then 10gigE gets used to connect buildings, or special purpose uses like filming in HD slow motion at hundreds of frames per second with multiple cameras. For normal use, a dedicated 100baseT connection (let alone 4x that) is fine, and the dregs of Moore's Law seem unlikely to change that any time soon.
Unfortunately, despite CDC-ECM being a generic 20 year old USB 1.1 standard that works the same for every device, Windows never shipped a driver for it in the base OS. MacOS has one, Linux has one, Android has one, but Windows does not. Instead you have to pay a third party vendor around $30,000 to add a new Vendor ID to their deriver, which is then signed by microsoft (which presumably gets most of that money) and loaded into the Microsoft repository of drivers that will be automatically downloaded and installed when you hotplug an unrecognized device and click "search for drivers on the internet".
The Linux CDC-ECM "gadget" driver (a software implementation of this USB device's packet protocol) says you can provide an .inf file telling windows to use an existing CDC-ECM driver to talk to it... except in Windows 10 the .inf file must be signed by microsoft, because the convicted monopolist that avoided any actual antitrust penalties because a republican administration took over right after the trial refuses to allow device vendors to avoid paying them tens of thousands of dollars to support each new device, even though it speaks the exact same standardized protocol and would "just work" if they used the existing driver.
For extra fun, the link from the vendor's website to the actual windows driver project page or manual went down in 2018, and archive.org says it was a link to google drive in a way that was not properly cached because javascript or something. Searching for the PDF, google finds scam sites trying to virus you. (Remember, this is all because microsoft won't support a standard protocol, and third party drivers have to be signed by microsoft to the tune of tens of thousands of dollars.)
Anyway, the problem with our implementation turned out to be that you need to define TWO interfaces, the first has no data endpoints and the second has both data endpoints. Apparently ifconfig down and ifconfig up toggle between the two interfaces? This does not appear to be mentioned in the actual spec that I've found, we had to look at an existing implementation to see what descriptors it was sending and then puzzle out why. And the first example implementation we looked at didn't have it and apparently could never really work. Also, did you know MacOS rewrote its USB layer after Steve Jobs died, and the new one has zero useful error logging? So when it fails because of bad descriptors, the interface is just always down and never goes up despite the link status and link speed messages.
Anyway, 4 of the five operating systems we're testing against now get to the point where they send regular "do you have a packet for me" probes, which is where we declare victory for the day. (Mac, windows 10, devuan, and android are happy. Jeff's gpd pocket 2 running elementary linux sends a bad transaction (second zero length data packet in the same transaction) which confuses our state machine. (Probably a host controller driver bug in Linux, but we need to improve an error path at OUR end to cope with that before timeout/reset happens.)
But that's not a system we're demoing connecting to, and what we need to do NEXT is create a data interface with the rest of the system so packet data has somewhere to come from and go to.
Reading the USB 2.0 spec. They agree a byte is 8 bits in the definitions (despite Jeff insisting that the 8 bit groups the plumbing we're dealing with is using for I/O are completely arbitrary), and say a word is 2 bytes and a dword is 4.
The USB 1.1 speeds were "low speed" (1.5 megabit/second) and "full speed" (12 megabit/second), and usb 2.0 added "high speed" which is 480 megabits/second I.E 60 megabytes/second. Yes, full speed is slower than high speed, you can tell Microsoft was on the committee.
Aside: USB 3 exists because backing up entire terabyte drives is inconvenient otherwise. 1 million megabytes at 60 megabytes/second is 16667 seconds, which is 278 minutes, which is 4.6 hours, which means USB 2 can theoretically do something like 5 terrabytes/day. In reality due to the stupid "Every packet must be surrounded by a ping and an ack from the host! No streaming!" nonsense (you can tell Microsoft was on the committee) you only get maybe 3/4 of that speed, but it's still plenty for most real-world uses. (I googled "what is the usb ludicrous speed frame size" and it pulled up a page on USB 4. Not now, skynet. Anyway, usb 1.1 uses 64 byte packets, usb 2.0 uses 512 bytes, and 3.x is presumably "bigger".)
USB is a little endian protocol: big endian seems dead everywhere, but I can't convince jeff of that so J-core is still big endian until I learn enough VHDL to make a config option.
The "host" is the PC driving stuff. USB is basically token ring: none of the devices can say anything until the host pings them, then they get to send one packet in response. (In the packet captures, there's been a little over 20 bits of downtime between packets going in different directions, which Jeff says is to let the transmitter shut down and the line stop "ringing" before the other side sends on the same way. Haven't reached that part in the spec yet, but in addition to one throat-clearing packet on each side of the data the device can send, there's a ~3 byte gap between each packet when you change direction. You can tell Microsoft was on the committee.)
A device can't notify the host of anything until the host pings it, so the only way a USB device can wake up the host (keyboard press, ethernet wakeup packet, etc) is if the host is powered up and sending it a constant stream of pings, so a USB device that ISN'T constantly consuming power might as well be physically unplugged for all the good it does. You can tell Microsoft was on the commitee.
The terminology is host-centric, so the "Downstream" means either in the direction away from the PC or the instance of something farthest from the PC. They refuse to commit to what "device" means. Anything can be a device, from a ram chip to a logical function to a fax machine. Bravo. Golf claps all around.
An "endpoint" is an I/O address where the device can send or receive data, it's a 4 bit address (0-15) plus a direction bit. Endpoint 0 is the default address you use to probe an unknown device. (In all the implementations I've seen endpoint 0 remains the "control" endpoint after probing, but the spec hasn't committed to this yet. In theory the control endpoint could move for some reason after endpoint 0 sends the descriptors? I don't know why it would, and it would go back every reset, but they won't SAY it doesn't. You can tell Microsoft was on the committee.)
The USB protocol has microframes (125 microseconds), frames (1 per millisecond), packets, and transactions. Packets have a Packet ID (PID). Each transaction has three phases: token, data, and handshake. (I.E. metadata, data, and ACK/NAK.) If it's to endpoint 0 (and/or the control endpoint) it's basically the same but the terminology is different, then it's a Control Transfer with Setup, Data, and Status "stages" instead of phases. (You can tell Microsoft was on the committee.)
Huh, this PDF isn't a bad summary.
Today, Fade bought milk that's expected to last longer than this presidential term. I'm rooting for the milk.
You can sing "Boomers are greedy" to Ave Maria.Long lines for bread in the soviet union meant their government couldn't provide for people's needs exactly the same way long lines for voting do today.
The rich have always murdered the poor when we get "uppity". (Everybody who isn't in the 1% is "the poors". 99% of the 1% are the direct servants of the 1% so they never have to interact with "the poors" outside of photo-ops.)
The british aristocracy still hasn't learned that "let them eat cake" was a bad look. (Yes I know it wasn't actually Marie Antoinette who said it but probably Which wikipedia[citation needed] Marie-Therese the wife of an earlier King Louis.)
Capitalism renamed "medical history" as pre-existing conditions to excuse letting sick people die for money. The pandemic is exposing capitalism as a giant fraud.
Here's video of the NYPD confiscating PPE being handed out at polling places, and more stuff is coming out about the Breonna Taylor grand jury. Honestly, why do we have police again?
Oh wow. only 28% of voters oppose ending the oil industry (and 27% of the population is John Rogers' "crazification factor"). Oil money poisons everything, which is the "resource curse". (Finance does it too these days, but oil's had longer to fester. Any plutocracy whose source of wealth is NOT the labor of the citizenry doesn't need those citizens, and would just as happily murder them all if they could get away with it. They can import food and luxuries and bodyguards and sex workers. This is why guillotining billionaires is civic hygiene.)
Tesla continues to set back the cause of self-driving cars by deploying terrible implementations that kill people and discredit the idea it's something companies like Google can competently do. (with bonus police failure). Deploying level 2 "partial driving automation" is STUPID because it means the human isn't engaged (and thus won't pay attention) but the system can't cope on its own. Don't DO that. Tesla's entire APPROACH to self-driving is fundamentally flawed even without Musk's sour grapes about Lidar.)
Further details about the foxconn plant in wisconsin that wasn't real.
The "culture war" is a Boomer extinction burst, which they will continue to make worse as long as they are physically able.
Just do basic income already. I'm tired of evil bastards steering. (Every accusation a confession, du jour.)
Took the day off to work on a toybox release. (Yes it's saturday, but while I'm here in Japan that counts as taking a day off.)
In the process, I've had to contact Clay Shirky to tell him his website was down for a SECOND time. (I linked to one of his articles from the FAQ, which I'm reviewing. Last time is why he followed me on twitter.)
I posted another patch to linux-kernel. I don't expect it to amount to anything, but... they're wrong. And it's that whole "reviewing the docs makes me want to fix the code" thing, explaining how launching mkroot instances with the qemu launch scripts works makes me want to re-enable the kernel init messages (which makes it a lot clearer what you're doing, with that chroot and ./qemu-*.sh look almost identical), but the reason I added "quiet" is the kernel was the message that link was complaining about...
I'm being lazy and uploading the binaries created by mkroot, which have route and sh in them so aren't quite defconfig. I should really fix that next release, but I need to down tools and focus on $DAYJOB for the next couple months so I'm not starting the 3 month countdown to the next release before January.
Darn it, the kernel patch isn't sufficient, kernel boot messages are mostly level 7 (the "random initiallized!!!" message is like 3 levels higher than normal chatter for no obvious reason). Plus that one isn't the only command line stomper, eth0 going up does it too.
What I need to do is shift the log level way DOWN in the init script (so we see the boot messages but not later spam), which means /init writing to /proc/sys/kernel/printk which is not one control knob but FOUR, and I vaguely recall looking up what the 4 were a couple years ago (by reading the source) but don't seem to have blogged it? (The "printk" control plumbing is in kernel/sysctl.c which writes the data into the console_loglevel array, and I had to track down where that was consumed.) I wonder if I tweeted it instead? Yes, I did. So maybe I just need to write something like a 3 into the first field? What are the log levels again... 0-7 = emerg, alert, crit, err, warning, notice, info, debug. And I can set it to 1 (alert) through /proc. Ok, do that right before launching oneit so gratuitous async messages about the network interface don't hide the command prompt and make you think the boot hung if you're not looking closely.
Ok, 0.8.4 is up. With mkroot binaries which include a kernel, which is unmodified vanilla 5.9 built according to the included kernel configs.
Alright, one scaramucci left. We can do this.
I'm now rooting _for_ the death of movie theatres because it's no coincidence the RIAA sent the youtube-dl project's github a DMCA takedown two days after the twitch takedown bloodbath. Current IP laws prevent all sorts of expression, from remixes and mashups to reaction videos. It's speech that is NOT ALLOWED because it's contaminated with corporate ownership that vetoes it, and it gets EVERYWHERE. Why is the video linked from this article no longer available? Seems like the poster child for fair use, but you need more time and money to hire lawyers to enforce your rights than anyone has. (And you have to track and defend your old content from constant erosion by predatory corporations.)
I'm hoping this is an extinction burst on the part of the RIAA and MPAA: I don't intend to ever give money to anything feeding either organization again. Except I subscribe to four streaming services (netflix, hulu, crunchyroll, and prime) which presumably do give them money. That's the main downside of giving THOSE services money, as far as I'm concerned. Dude: I could pirate all your content, I give you money because I WANT to support your creation of original content. (Yes, even prime as long as it keeps doing things like Good Omens and American Gods.) Heck, crunchyroll is a terrible interface for content that mostly shows up on all THREE of the others a couple years later. (Work out your turf war with funimation though, not paying for two there.)
And I no longer consider supporting anything Disney to be my problem since they went and became their own network (Disney++, now with templates and operator overloading) which I don't and will not subscribe to. (And yes, endgame was less annoying than crisis on secret infinity wars but fridging gamora and black widow the same way seemed a TOUCH gendered? And no, I didn't watch getting a rise out of skywalker, and am not interest in baby yoda shark.)
As far as I can tell, the inspriation for BB-8 in the new Star Wars is figure 9-1 of the USB 2.0 state diagram.
How annoyed am I allowed to be that gcc has been spewing "may be used uninitialized" errors for years, but can't reliably spot actually unconditionally uninitialized variables either? I should spend the weekend to learn how to setup valgrind...
If you're wondering why I stayed to vote in person, the 5th circuit just ruled that Texas mail-in ballots for democrats may be discarded en masse. (But they'll keep the ones for republicans just fine.)
In the age of Late Stage Capitalism, when you hear about yet another new business model like the recently deceased Quibi ask what kind of scam it's based on. (Because it always is.)
Russia is now sending death threats to individual voters, the GOP is still all in on voter suppression, and yes they're still attacking the post office, still crit-failing the pandemic, all in the name of racism and sexism. (Not just in the USA.) With, of course, the enthusiastic support of Facebook.Of course the NAACP condemns Amy barrett, who seems to believe abortion should be punishable by death, but the Boomercrats love her, because capitalism or something. The DNC is going to put The Handmaid's Tale on the supreme court so they when the democrats block The Squad from accomplishing anything they still have somebody to blame. Nancy Pelosi is 80 years old.
Yeah yeah, lesser of two evils. Yes, anyone who votes for the GOP this time is literally a nazi and they will never stop escalating until they are stopped. But the Boomers' day is done and they need to get off the stage. The world they managed is insane. Why were no-knock warrants ever a thing? Why did the Boomers allow that to happen in the first place? The Boomers' answer to everything is more police (and inventing crimes), but everybody else's solution is a police involved defunding, starting with reallocation of duties to people who lie less. The Boomers are flailing around lost because their worldview's failure to match reality is being rubbed in their face, but they're long past the point where old dogs can learn new tricks. Rich White People who have always had the world at their beck and call don't know what to do when the "call the manager" buttons stop working. Boomer Media especially failed us. The Boomers were terrible to GenX all along, we were just outnumbered, gaslit, and didn't have the tools to organize until recently.
The downside of worshiping strength is the instant you have a moment of weakness your followers turn on you.
The "excess death" rate of 25-44 year olds is up 26% over previous years, thanks to covid. It's not JUST killing old people. And this doesn't count "long covid" where people who don't die have chronic damage, including neurological issues.
We don't understand economies of scale, lots of amazing things we can do are smaller than things we don't even notice.
The "streisand effect" is when conservatives shriek about something, letting you know it's struck a nerve. This is why reading banned books is so popular.
Twitter remains bad at being twitter.
New Pope continues to be... not a bad person? Confusing...
At the age of 92, Tom Lehrer just put all his song lyrics in the public domain, and is working on clearances for his music. The smithsonian just did something similar with its image catalog. I look forward to the end of intellectual property law once enough Boomers die.
Mozilla is trying to keep its head above water with indignant thrashing to rally the libertarians. (You can't let us die because something something FREEDOM.)
The Open Hardware Summit appears to be a trash fire.
In toysh I finished the "source" command and fixed the ${x-a} bug that was preventing the mkroot boot. I... think I'm done? Gotta write up release notes and finish the faq updates, but I've implemented the toysh bits that were blocking mkroot.
Did a few more nommu fixes, since I plan to use that at $DAYJOB soon.
It's not that rich white people are stupid, it's that they've embraced the dunning-kruger effect as a lifestyle, and turned large parts of the culture into a scam, to the point they now literally use "you listen to scientists" as an attack against someone's character. When things go wrong they're sure yelling at it will fix it. Of course this is how conservatives have always worked, going back to aristocracy and plantations, and before that to british aristocracy. To quote Clay Shirky:
The situation suddenly came clear: I was getting paid to save management from the distasteful act of listening to their own employees... In the 19th century [skilled craftsmen] became blue-collar workers. And the executive suite no longer interacted with them much, except during contract negotiations.... Talking to the people who understood the technology became demeaning, something to be avoided. Information was to move from management to workers, not vice-versa... By the time the web came around and understanding the technology mattered again, many media executives hadn’t just lost the habit of talking with their own technically adept employees, they’d actively suppressed it.
Add in Milton Friedman's September 13, 1970 invention of a CEO's fiduciary responsibility being solely to investors (completely ignoring customers and employees, which were successful companies' main focus before then), and the resultant relentless short-term decision making that demanded, and this is how we wound up with late stage capitalism as a self-defeating purely destructive force.
Now the rats deserting the sinking ship are desperately trying to rewrite their own histories, when the reality demands neuremberg trials. We've got a backlog of issues to deal with when the Boomers finally die. The residue of the GOP is concentrated toxic sludge forcing enemies together to repudiate them and the regulatory agencies are getting back to business despite them. Of course evangelicals are going down with the ship.
It's easy to fix if you start by yeeting the electoral college, we only need a couple more states. But also, basic income works. The point of basic income isn't to have everyone be unemployed couch potatoes, it's that left to their own devices people find new things to do. Capitalism is TERRIBLE at efficiently employing people, a recent example of David Graeber's BS Jobs was how Scott walker lured Foxconn to Wisconsin resulting in an utter debacle where they hired a hundred people who people who sat in the building with nothing to do, in an attempt to qualify for a tax subsidy. (Meanwhile, Wisconsin spent $400 million claiming eminent domain and bulldozing dozens of homes preparing for work Foxconn had no plans to do, a mushroom cloud of late stage capitalism uprooting innocent people's lives who did nothing wrong and didn't even want to be involved.)
New Zealand had a good day. (But then women are consistently better at keeping people alive.)
Oh hey, toybox is in the OIN patent pool now: Android 10 got added to the Open Invention Network's "linux base system" definition, which means toybox release 0.8.2 is entry 2976 in table 10. (Not that I was planning on including anything patented anyway, but yay patent pool.)
If you "echo hello \' > blah; source blah" it prints just "hello" with no trailing \ because the line continuation gets squelched at the end of a sourced file, and "source <(echo 'echo hello\')" behaves the same way, but adding -n to the first echo does NOT behave the same way! The \ is only squelched if the line ended with a newline, it's literally ESCAPING THE NEWLINE. Wheee...
Sigh, throw it on the todo heap. Trying to get a release out...
There's an excellent, detailed article about the Resident's dementia in psychology today.
Oh wow, I just saw the dumbest take yet, that meeting demand is "overcapacity". The titanic had the correct number of liveboats because on AVERAGE demand for lifeboats is very low, therefore 12 hour lines to vote every day (but only in black neighborhoods) makes sense? The GOP is the successor to a party called the Whigs, which collapsed, and before that there were the federalists which likewise ended. The GOP ceasing to exist would be a proud american tradition for "the party that is not the democrats".
Would someone please explain to me how stealing the presidency isn't as bad as what the Rosenbergs did? Why were Roger Stone and Paul Manafort given a slap on the wrist instead of executed for treason? Ever since Nixon, the GOP has been escalating their attacks on democracy because there were never any consequences for their actions. They either way, they got away with it. (Current Russian propaganda is aimed at the gullible, a variant of the old KGB "we found a briefcase on a park bench full of incriminating evidence which totally isn't a mix of stolen mail and forgeries!" trick, this time involving a hard drive whose serial number says it was manufactured after the fact.)
Facebook is part of the GOP, every bit as much as Fox News. They intentionally throttled traffic to progressive news sites making right wing news all the top stories they show in people's feeds. (Twitter may be incompetent, but is at least much LESS actively malicious.)
Boomer Media is for boomers, by boomers, about boomers. (And sure, not all boomers, and I'm seeing "karens and boomers" paired a lot, but... boomers can be female?) But it's amazing how easy many problems are to fix if you're just not a Boomer. For example, half the point of basic income is that attaching conditions to aid is just a way of prenting people from getting aid, and serves no other purpose. Either you spend the money checking the conditions instead of providing aid ("overhead"), or you deny access to people who should get aid. Instead just give everybody aid, then tax people who make far more than that amount enough to get it back. (And the point of progressive taxation is earning more never causes you to wind up with less. Billionaires obfuscate that on all cylinders, but it's just not how it works. If you earn 100k taxed at 30% you get to keep $70k. If you earn MORE than 100k, you STILL get to keep that first 70k, and only the EXTRA is taxed at a higher rate. This is why the top tax rate was over 90% until 1964, during a period when the US economy was the strongest it's ever been. It wasn't to maximize revenue, it was to keep plutocrats from dominating american life, and it worked great. But as with everything the Boomers inherited they didn't understand how it worked, clearcut it for short-term gain and let themselves be swindled out of the rest, and now huddle in the ruins blaming brown people. Boomermerica is now an object of scorn and derision in the rest of the world.As for the Boomers' own ideas, when people actually try a Privileged White Guy theory it always fails spectacularly, but that's not the point. The rich men in charge know it won't work, a model based on the rich stealing from the poor can't work without somebody to bleed dry. No matter how much the GOP hates the rest of us, what they hate most is that they NEED us. Plantations don't make money without slaves. Without the 99%, there's nothing for the 1% to steal.
America is the land of selective enforcement because racism and sexism can't succeed on their own. They're handicaps, part of your talent pool artifically suppressed. During World Wars I and II we employed women because we NEEDED them, and we kicked the ass of countries that didn't.
The GOP's current supreme court candidate is extra-bad, and the democrats won't stop her because Good Cop serves the plutocracy, and the plutocracy still needs guillotining. Good Cop's job is strategic incompetence preventing misdeeds from being punished and keeping open the door to eternal fraud.
NPR just did a thing on the history of the electoral college (spoiler: it's about protecting large wealthy landowners from democracy).
The salvation army manages to stand out as extra-bigoted even when known problematic companies go "that's too much racism". (The point of a dog whistle is everyone else CAN'T hear it.)
Good news: Greece sentenced the head of its nazi party to 13 years in prison. (And unlike Hitler's 9 months in prison where he wrote Mein Kampf, this guy's 62 so is unlikely to rebuild and become head of government 8 years later. If he serves all 13 years he'd be 75.)
Fascists murder people. Their opponents do not. Important distinction. They dislike the concept of democracy because they ARE honestly unpopular, the only way they can "win" is by preventing people from voting.
GOP officially partnering with conspiracy nuts.
AOC is a really good speaker.
Why doesn't youtube have time range support? It has start anchors, which I use for example to pull out individual topics from my 2013 toybox talk in the toybox about page, but there's no END to the range. And you can't glue together multiple ranges to edit out the interesting bits of a longer video (such as when Stephen Fry is talking in this video). And youtube doesn't reliably use the anchor, both due to autoplaying the video from the start and then jumping forward once more javascript has loaded (which takes a second or so even here in japan with fiber connections everywhere), and due to showing commercials breaking sometimes discarding it entirely. That's why John Cleese's excellent explanation of Dunning-kruger (starting at 19 and 1/2 seconds when I can only jump forward in full second increments) isn't useful to show people because the video starts by confusing ignorance with stupidity (not the same thing at all), and of course the title has the word "stupid" in it. But in order to trim together the interesting bits of the video, you need to download it, use a local video editor, and then upload the new one which gets taken down by a copyright stike. Oh well, I'm sure a new service will arise to replace youtube someday...
Excellent progress on the USB stuff today. We've stopped messing with CDC-EEM (which is subtly broken in multiple ways, such as not being able to specify a MAC address for the device), and gone back to the earlier CDC-ECM (which can run at USB 2.0 speeds just fine, our CDC-ACM could do 30-40 megabytes/second (faster in one direction than the other, probably on the Linux driver side), and the 100baseT ethernet connection at the other end of the device is 11 megabytes/second. The pearl-cluching about "collating" seems mostly BS because it sends 1 complete ethernet frame per USB transaction, however many USB packets that needs. We could do jumbo frames but told it standard 1514 byte size because everything can handle that and it only uses 3 512 byte srams.
The Linux usb stack is setting the device filter thingy (the settings for promiscuous mode and such) a dozen times, probably systemd going crazy and calling the ioctl repeatedly. The mac doesn't do that.
In Japan! Exhausted. Navigating the covid/customs process at the airport is something like 3x as long and exhausting as just customs was, despite customs itself now being like 1/10th of the total. The "you tested negative for covid" paper is a literal pink slip that tries SO hard to look official.
Ooh, Sarah Taber expanded her twitter thread into a full published article.
There's an interesting tension in chinese energy policy: what they really care about is energy self-sufficiency, which points them towards coal, but "the 2008 olympic air quality made us an international laughingstock" aside, climate change is already trashing their food supply and threatening to bust the three gorges dam (which would be a "tiny but detectable change in the earth's orbit" level disaster displacing more people than the USA _has_). Much of the solar and wind they've installed so far is distant from the cities and doesn't have enough batteries, frustrating the china state grid managers trying to keep the lights on.
Their main other option is nuclear, which means we'll probably have a new entry in the chernobyl/fukushima/three mile island/kyshtym list soon with a chinese name. (The old refrain "nuclear is safe now, this time for sure" remains unconvincing. We still have oil spills regularly, that pennsylvania coal mine has been continuously on fire since 1962, gas explosions happen regularly, and just plain electricity starts fires all the time. But the cleanup time of those isn't measured in millennia. If the Great Fire of London in 1666 had been nuclear the city would still be uninhabitable today. Same for everything from the Boston Molasses Spill to the eruption at Pompeii: stuff happens, don't deploy anything that poisons the land for 25,000 years if you lose control of it.
Onna plane. I did not get a toybox release out before my flight. What I did get was something like an hour and a half of sleep last night.
American Airlines has not heard of this "leaving any seats anywhere empty" thing that Delta and Southwest kept emailing me assuring they were doing, and have also decided against beverage service for a mere 1 hour flight to dallas. Took pictures of two White Guys Dicknosing, because of course they were. (I'm pretty sure I had coronavirus back in March, what with having jury duty 2 days before the panic buying started, and then feeling sick for weeks afterwards where I couldn't sleep because my chest hurt too much. But I don't want to get a second strain and test positive. What do they DO with people who test positive at the airport in Haneda? They have reams of writing about testing, but nothing about positive results. Heck, these tests have false positives, what do they DO about it? Crickets chirp...)
Meanwhile Japan Airlines has 90% of the plane empty, but they've arranged it so we somehow still don't get rows to ourselves where we can lie down. (I could probably ask to move to one of the empty rows now we've taken off, but this is literally why modafinil was invented. It's probably some coronavirus thing anyway. Japan Air is SUCH a better experience than the AA flight I don't want to complain, and the breakfast they just served was lovely.)
Continuing down the sha3sum rabbit hole, I think I'm achieving Tagon's Outcome: the hole is going clear through. Starting with CC0 source (license at the end of the README) I've cleaned it up into 109 coherent-ish lines, and while there's still more cleanup to do I think gluing it onto a copy of toys/examples/hello.c and trying to make it work as a toybox command is the next logical step.
One problem is "what's the host sha3sum" to get the expected command line arguments? There's apparently some red hat package I don't have access to (but they wrote systemd so I don't have to care what they think), and Debian uses a package implemented in perl (sigh) that has bad options. I'm not doing -b -t -U and -p for reading files in binary mode, dos "text" mode, Universal Newlines Mode, and "portable" mode which is already deprecated. All of that crap is fiddling with newline/linefeed in a way that should not happen in 2020: your input is a FILE, it has BYTES, use them as-is.
The USEFUL (new) option it has is -a indicating the "algorithm" I.E. the number of bits of output the hash should contain. There isn't an "sha3-224sum" style command like sha2 (and if there was should it be dash or underscore or...?), nor is there "this is how many bits of output it produces, honestly, just cope" like sha1. You use -a to specify in the perl one, which supports -a values of 224, 256, 384, 512, and two insanely large six digit ones I'm ignoring.) There's also -s for silent (misnamed because perl), -c for check (like sha1sum) and -w to warn about bad check files (why would it ever NOT do that...?)
Meanwhile, FIPS 202 (the standard this came from, I don't have a copy and can't google from the plane) apparently also has something called "shake" in addition to sha3, which as far as I can tell is just xoring one past the last byte of the last block with 0x1f instead of 0x06. Why this would be significant, I couldn't tell you. It supports shake 128 and shake 256, for some reason. I dunno, add a -S maybe?
Long flight. In toysh I got ${x/search/replace} implemented, and fixed a bug where 'flase && if true; then echo one; fi || echo two' was segfaulting because the && was advancing past the if and trying to run the "then" as a command, which the parser didn't set it up to do. (It's metadata, not data.) The &&/|| plumbing has code to advance past blocks but it was running it on the "false" not on the block _after_ the &&, and when it triggers we're already at the end of a statement. (Either type 0 which is "commands" or type 3 which is the fi/done/esac of a block.)
You know, now that I've got exec redirects implemented, the mkroot init script should probably mount devtmpfs first thing and then "exec > /dev/console 2>&1" so we can see error messages. I poked the kernel guys about this YEARS AGO (and for some reason updated it earlier this year) but the first post tickled an obvious bug in Debian, and when I posted a version with a workaround unfortunately Greg KH replied, which is shorthand for "it didn't happen". (Yes the Linux USB stack bug is probably still there, I don't care. I reported it, they saw it, moving on. The Linux USB stack being trivially vulnerable because they never test their error paths or throw a packet sniffer on it is not my problem.)
The NEXT thing wrong with mkroot's init script is it's trying to source files (when /etc/rc exists, anyway) and I haven't implemented the "." command yet. Not hard, I should do that next...
The toysh code is over 3500 lines now. I am sad. It can probably be cleaned up later get the size down, but lemme try to get it feature complete first...
I voted today. Fuzzy and I took a lyft to be at the Holiday Inn near ACC Highliand a little before the polls opened at 7 am, and there was already a line wrapping two corners to the end of a hall (with a chained fire door). While we waited the line wrapped BACK around the other side of the hallway (which the hotel person who unchained the door when we complained insisted was 6 feet wide, she brought a tape measure) and up around another hall.
The voting person passing out sample ballots counted down the line and gave up at 100 people. By his count there were a little over 30 people in front of us (although the line had been moving for a bit by then). Altogether it took about an hour and 10 minutes to get through the line and vote, which is why we showed up first thing in the morning.
Apparently 97% of travis county is registered to vote this year. Go us.
Then I went to bed (I'd been up all night on the computer, as usual) and now I'm packing for my flight in the morning, which leaves at 8:30am with a transfer through Dallas where I need to present to Japan Airlines the two papers I spend so much effort securing. (I assume the relevant person will have a glowing yellow question mark over their head.)
Covid testing scheduled for this afternoon, then tomorrow it's early voting, then wednesday morning I get on a plane to tokyo. I need to pack and cut a toybox release before then.
It's exhausting to get bug reports that boil down to "gcc developed a new fault, work around it". No. That's a spurious error: ARRAY_LEN(toy_list) is less than 300 even in allyesconfig, it CAN'T overflow a 32 bit integer with a range of plus or minus 2 billion, no not even times sizeof(the structure). I'm not changing types to work around a bug that showed up in gcc 10, either stop using the broken version or submit the bug report to the insane FSF posse so they can fix it.
I'm actually tempted to go through and remove all the "int x=x;" self-assignments that shut up the "x is never used uninitialized" warnings that gcc can't reliably produce either. I don't believe llvm produces them, and at this point "don't use a broken compiler"... (There's one in toys/pending.sh.c right now that I've left there out of sheer disgust: "ss is never used uninitialized" because it does if (slice) ss = thingy; then later we test if (slice) fiddle_with(ss); and when slice isn't null ss HAS BEEN ASSIGNED TO. But the gcc plumbing can't follow states that involve two variables, it can only trace ONE variable. I haven't bothered to go "ss = ss" in the declaration yet because... honestly gcc, SHUT UP ABOUT THIS. It has separate "is used uninitialized" and "may be used uninitialized" error messages, and can reliably produce one but NOT reliably produce the other, but you can only switch them off TOGETHER. (Maybe this isn't so anymore, but it was when I traced through the gcc source to try to figure out how to shut this up years ago, at which point I washed my hands of it. These days my threshold for looking at gnu/dammit source is much higher: dowanna, not gonna, can't make me.)
Sigh. My drive to get a release out before my flight on wednesday kinda hit a snag when I went down a rathole of researching sha3. Lost an evening to it, but I have a public domain sha3 implementation cleaned up and working, and I think I can turn that into a toybox command without too much trouble. Except "sha256sum" and friends aren't sha3, they're sha2. Sigh...
Capitalism is a thing we do, and is a thing we can stop doing. The republicans still have nothing but cheating, but are forever finding new ways. It's double standards all the way. And Boomer media is imploding.
This is what defunding the police looks like, and this is why we need to do it. The rich make the poor seem scary to keep the middle class in line. The fix is as old as Robin Hood: take from the rich and give to the poor. The rich have made taxes an infeasible way to do this, hence guillotines. There's still less than a thousand total billionaires in the united states, approached that way it's a very tractable problem. And morally, where did the wealth come from in the first place? The billionaires didn't create it, they merely collected it, generally having received at least 6 figures of seed money and contacts from rich white parents (or convincing other rich people to give them a large pile of money to play with). And there tends to be cascading effect where paypal->facebook->uber->palantir were all funded by the same people with the profits from their previous one.
The math of guillotining the billionaires is that killing 50 people could double the worldly posessions of 165 million people. No really, it's that stark. If it wasn't a fait accompli but happened NOW, where a group of people suddenly stole half of everything 165 million people owned (leaving millions destitute, sick, homeless, starving...), and those 50 peole got caught: would that warrant the death penalty? The opioid epidemic kills people. The flint water crisis kills people. They're very good at obfuscating the connection between their actions and the results, but it's obvious if you look. We should change the law so these actions have state-enforced consequences.
So I taught dirtree_read() that a null pointer for the directory name should recurse starting in the current directory but not include a gratuitous "./" at the start of the resulting dirtree_path() names. And it was working, except... I have no idea how? I changed some code around and it started failing, because dirtree_flagread() calls dirtree_handle_callback(dirtree_add_node()) and that's doing a dirtree_recurse() with AT_FDCWD as the dirfd, which does fdopendir(AT_FDCWD) which apparently DOES NOT SUPPORT IT. It's failing errno Bad File Descriptor.
AT_FDCWD is a special value (-100) which the kernel guys implemented for the openat() family, indicating that the directory it should operate on is the current one. Apparenlty the kernel guys never bothered to teach the existing fdopendir() system call to understand that.
Sigh, did I accidentally test sh -c 'blah' instead of ./sh -c 'blah' again? No, it was working in the test suite. But I have no idea HOW...
Dear bash:
$ ./sh -c 'echo toys/*///'
toys/net/ toys/posix/ toys/pending/ toys/example/ toys/lsb/ toys/other/ toys/android/
$ bash -c 'echo toys/*///'
toys/android/ toys/example/ toys/lsb/ toys/net/ toys/other/ toys/pending/ toys/posix/
I am not alphabetizing the filesystem search results for wildcard matches. It's just not happening, thanks. Love, me.
Sarah Taber just had another excellent thread.
Late stage capitalism continues to metastisize. Support for capitalism is collapsing: 89% of people with federal student debt are not repaying their loans right now which means capitalism is failing the vast majority of the population.
Conservatives continue to find new ways to lie and suppress information and just be generally disgusting, with the help of religion. They're not even trying to hide it anymore. (The new supreme court member is part of a cult called "People of Praise".) But the consequences are catching up, and I really hope they take down capitalism (and maybe religion) with them.
We're all waiting for the septua- and octogenarians to die at which point we burn down everything they ever touched, starting with defunding the police.
Happy Dave Barry's Son's Birthday, the day on which all history happens each year, according to Dave Barry Slept Here.
Spent half the night on the phone with Jeff working on USB stuff, and we found out the USB3300 phy chip is... downshifting from 60mhz to 30mhz reference clock output? The board's PDF does not say it's capable of doing this (the clock is supposed to be constant and says when the phy is ready for next data or command whatsis), and it does it a second or so after enumerating (at which point the thing's a brick because the signals are at the wrong speed so nothing can understand it and vice versa).
Spent the rest of the night implementing the case mapping stuff for toysh variable slices, which is complicated because it supports utf8/unicode.
I need a "wide char to utf8 encoding" function, which is something I'd avoided until now: the data comes in as utf8, I preserve its encoding, but now that I'm mapping cases I need to convert a unicode point to utf8 that I haven't already got a utf8 encoding for.
I made a "convert utf8 string to integer" function because I don't trust libc to do it when the locale hasn't reliably been set (or isn't installed), and I think I need to implement my own going the other way for the same reason. There's printf("%lc") taking wint_t argument, but ignoring the locale thing what IS wint_t? That's NOT a wchar_t. "%ls" takes a wchar_t *, but that's a string not a single char. Who wrote this crap?
Sigh, let's see... Off the top of my head...
int wctoutf8(char *s, unsigned wc) { int len = (wc>0x7ff)+(wc>0xffff), mask = 12+len+!!len; if (wc<128) { *s = wc; return 1; } else { do { s[1+len] = 0x80+(wc&0x3f); wc >>= 7; } while (len--); *s = wc|mask; } return 2+len; }
First stab at a horrible little function that doesn't even null terminate the result and does no error checking (no "windows is historically stupid" exclusion range, no capping the input value at not EVEN the max 4 bytes can represent) unlike the conversion function the OTHER way where we have to accept arbitrary input data. This one is dealing with unicode values we produced (albeit who knows what libc is returning for towupper() and towlower() so really...) But eh, close enough.
Ha, Jeff root caused the 60 vs 30 mhz clock downshift: it's because the 24 khz input crystal was miswired and thus failing after a second or so, because we implemented the circuit on page 42 of the USB3300 data sheet which has one resistor but their "example circuit" on page 5 of the USB3300 hardawre design checklist has TWO resistors. The two-resistor circuit works, the one-resistor circuit from the data sheet fries the crystal. It doesn't seem to have damaged Jeff's test board (he didn't run it long enough), but it would overload (overheat?) and stop keeping correct time, so the USB device would suddenly stop sending/receiving intelligible packets, and Linux would trigger a USB error recovery path that never got tested and didn't work.
2020's eternal question: "is sexism or racism the stronger motivation here".
The GOP has literally come out against democracy, by name, in so many words. (And still full nazi.)
The demographers who split the baby boom in half (with Boomers born before 1955 and Joneses as in keeping-up-with-the-jones born after 1955, followed by GenX) have a point: the younger boomers are getting screwed over by older boomers. That article says when the Boomers were born they were 40% of the population of the USA, but I know that by the 2010 census the population had grown enough to push them down to 24% (both because of immigration and because millennials outnumber boomers), which means they used to be way MORE dominant and have lost influence. This year people born in 1955 turn 65, which means all the non-Jones Boomers are now senior citizens. That's another loss of influence, from people used to EVERYTHING being about them. Add in the fact that even the well-off retiring Boomers can no longer sell their McMansions in darkest suburbia and the split between the elder haves and younger have-nots is widening.
I.E. The Boomers are even bad for other Boomers. The generation before the boomers have been holding this country together all along. Enough Boomers are hypocritical monsters full of racism and capitalism to make success mathematically impossible for everyone else.
Oh hey, people are figuring out that pardoning Nixon was a mistake, and Obama should have gone after the George W. Administration. I still 100% expect Biden to try it because it was considered a good idea back when he turned 35, but maybe he can be shouted down or distracted or have his pen hidden or something.
Wow, 87% of chicago wants to defund the Chicago PD. Of course Boomer Media isn't covering that. Why would they?
Made an appointment for Covid testing on monday.
I forgot that years ago Linus Torvalds quoted me on this whole license enforcement mess, but in that continuing lwn thread people are dredging it up to say that the guy Linus put in his spam filter was right? What is his argument exactly, "we want your project to destroy itself because it makes other projects look good in comparison?" Or maybe "you be the bad guy and we'll sing praises at your funeral"? There is a distinct "belling the cat" vibe about this, and they don't seem to understand it's made the LICENSE toxic, spreading to all projects under that license. (And yes it's continued since that page last updated.)
Android just updated itself because security, and all the fonts changed. I guess this is a more secure font? I can't tell a 0 from O in this font. Much secure. Very wow.
Heh, "One does not remove complexity by dividing it up" is a good quote.
You know, in college I delayed declaring a computer science major because I didn't want to take the fun out of my hobby, and I've always considered myself somewhat weird for doing a bunch of open source side projects. But people EXPECTING that in this industry are kinda creepy.
This is a fascinating thread about how PSE&G's intentional engineering negligence caused the $17 billion "Camp" fire in California in 2018, which links to an earlier thread about how their negligence caused the 2010 San Bruno gas explosion.
Speaking of capitalist negligence trying to kill people, the limiting factor on mining "rare earth" metals isn't availability of ore, it's that relocating and refining them produces toxic side effects. Lead and mercury and such locked in ancient rocks deep underground aren't a problem, bring them to the surface and they get rained on and leach into the soil and groundwater and airborne particulates. Refining is all about reacting natural chemicals into forms that do not occur in nature, and the stuff you DON'T want to keep tends to get turned into poisons that persist and spread and break containment. Even fertilizer (chemical or excrement) and dish soap can be a problem in large enough quantities (hence the annual dead zone in the gulf of mexico the size of connecticut where all the fish die because the oxygen's gone). That's why the US government closed down the California rare earth mining operation and outsourced it to china, which is happy to poison its land and people for money. But this is often a problem even for "simple" things like gold and coal and aluminum.
So when Elon Musk says he's about to do bulk lithium mining and refining in nevada and texas? I look forward to the resulting superfund sites 15 years from now. This is how Russia wound up unable to feed itself. Oh well, possibly a NET positive if it ends the fossil fuel industry fast enough.
Politics continues. The billionaires still need to be guillotined, and their sycophants are still at it. The idea of a corporate death penalty keeps cropping up, but being a billionaire should have an actual death penalty. (It is a voluntary state you can exit with the stroke of a pen.) Twitter is not covering itself with glory at the moment. Neither are the police, but what else is new? And of course Good Cop does nothing. The GOP criminals are getting more blatant here in Texas, just like everywhere else. White privilege is ignoring bullying while it's happening and then hiding the evidence.
This scholarly argument that the fossil fuel industry is propping up white supremacy smells a lot like faces-in-clouds overanalysis, but links to some interesting articles (collected in the "related reading" at the end).
Wow, Russia's environment is more borked than I'd realized. I knew they'd spread radiation, chemicals like dioxin from manufacturing, and heavy metals from mining/refining through much of their once-prime farmland and fresh water (before you even GET to things like soil exhaustion and drainage), which is why the soviet union stopped being able to feed itself and collapsed when oil prices declined in the late 80's to the point Russia couldn't afford to import enough food. (Even back then, they had nothing else.) But PURPOSELY spreading giant hogweed, industrially, starting right after World War II? (Imagine poison ivy that can kill you, seeds aggressively, and grows taller than humans.) They did that to THEMSELVES, and now Putin's ignoring it because it doesn't affect him personally. Wow. Puts kudzu, gypsy moths, and tumbleweeds into perspective, doesn't it?
I've been hearing a lot of warnings about the state of China from sites with obvious biases against china. (They were so sure that big dam was going to collapse and flood millions of people...) I was waiting confirmation from other channels, and it's starting to come in: the flooding has done Bad Things to the food supply, which stacks on TOP of covid and the mass pig slaugher earlier this year to cause a "nothing to see here, move along" famine.
The Pope and Warren Buffett are both blaming capitalism for rising inequality. Buffett has been advocating taxing the rich for decades, and has refused to let more than 1% of his fortune be inherited. (It's called a "fortune" becuase you got lucky.) New Pope continues to surprise me by being a decent human being (if with questionable friends, but he IS a catholic priest). Palpatine very much was not. John Paul faked it better, but didn't withstand close scrutiny.
But then I've always seen religion as a bit like the original Victorian use of the Prince Albert piercing: If you think you need to be controlled and/or restrained via DRASTIC life-altering measures in order to behave normally in civil society, that's a "you" problem and quite possibly some weird fetish thing. What you're guarding so frantically against isn't a problem for normal people if it DOES happen. Wanting to kill the guy who cut you off in traffic but NOT doing it is normal, and does not require divine intervention to avoid murder on a daily basis for the rest of us. That's not even being an adult, most people work out "not hitting other kids, even when the teacher isn't looking" somewhere in middle school.
The old testament's "an eye for an eye, right here [smash bottle] let's do this" required drastic revision in the new testament (turn the other cheek is NOT the same philosophy) which raises the question why the unerring word of god needed a complete rewrite? Killing all the firstborn of egypt is no longer a recommended negotiating tactic these days? (The book said God "hardened Pharoah's heart", and then punished his people for the resulting decisions? What, God wanted an _excuse_?)
So today the people with the child rape problem and the magdelene laundries (how is requiring priests and nuns to be celibate for life LESS dysfunctional than the Prince Albert?) see their modern role as arbiters of morality, because science has proven all the FACTUAL claims they've rorschached out of the old book wrong so a retreat to philosophy is all they have left. Genesis does not accurately describe the creation of the universe, the earth, or humanity. If they don't know where we came from, why would they know where we're going to? Their response is frantic denial of evolution, thus screwing up the school system and turning textbook selection into a heated battle. Not helping.
Remember when somebody booted Linux in a hard drive, via jtag and serial port? Good times, good times...
Lots of USB stuff at $DAYJOB. To get something working fast, jeff grabbed the existing Joris CDC-ACM implementation and glued it to an existing phy (with a test bench). I dunno why the Centers for Disease Control teamed up with the Association for Computing Machinery to produce a USB serial port standard, but THIS implementation of it has a bug that's causing the Linux kernel's error handling to lose its marbles. (I should report that upstream, but it's an effect not a cause. When the error happens every Linux system we've plugged it into either panics or livelocks kernel threads into cpu-eating loops that don't even notice when the device is unplugged. MacOS merely times the device out and powers it off. Either way, it doesn't work yet...)
But CDC-ACM is serial and we want ethernet. There are actually FOUR different "generic USB" ethernet implementation standards: Microsoft's proprietary RNDIS (which has been reverse engineered), and three actual standards: CDC-ECM, CDC-EEM, and CDC-NCM. The ECM one is the oldest (from USB 1.1), and is the simplest, but people say it doesn't scale well to faster speeds because it puts each ethernet packet in its own USB transaction. EEM is newer, still pretty simple, and exists to add packet collating (although the Linux driver doesn't collate them, this driver is as half-assed as it's possible to be and still work; yes the only thing EEM did that ECM didn't was collate packets, and Linux didn't implement it). And then NCM is the newest but way more complicated with support for zerocopy DMA stuff we're not doing. So we've decided to go with cdc-eem for the moment, although... maybe ecm deserves a second look?
Checked the ${x#y} plumbing into toysh, now I'm looking at the other variable slicing options. There's x%y which is pulling off a suffix instead of a prefix, and given that my glob function searches forward I just have to iterate backwards through various starting points calling wildcard_match() repeatedly. There's ${x^} and ${x,} to map case (which with unicode can EXPAND THE STRING because the unicode consortium is insane). All four of those basically use the same slashcopy plumbing (the "copy escaped string until }" setup and freeing afterwards), so I'd like to collate them if I can. Then there's $(x/pat/sub} which I think is the one the init script is actually barfing on, and there's ${x@QEPAa} which isn't hard but each letter is basically its own mode and I can punt on it for now because I don't think I'm using it...
And that's it. (Except for supporting array variables, a can of worms I have not opened yet because in my entire history of bash programming I've never used them. Doesn't mean I won't, but it's not a feature _I_ miss.)
Sigh. I haven't got the patience I really should to navigate the open source community. Oh well.
No political linkdump today, the Resident's in hospital with covid, I'm sticking around an extra week to vote. People are on it and the kids are all right. I need to do other things before heading out to Japan.
I got my letter from the embassy! (The mail still works.) I _could_ leave this week, but early voting starts tuesday the 13th. Which means I should get the covid test Monday the 12th, and schedule the flight on the 14th.
Filling out toysh slice implementations: the difference between ${x#a} and ${x##a} is short vs long matches, and the test I came up for that is 'x=banana; echo ${x#b*n} ${x##b*n}' which SHOULD print "ana a" but when I tried it in my shell, it produced "nana" with no space. Because the "short" match is eating the ENTIRE string, and the "long" match is ending early! (Jazzhands.)
Ok, fixed that and checked it in with tests, and now I'm trying to fix the path match logic and... darn it, I hate when bugs NEST. [/me wastes an hour having switched from piping the output to "less" to piping the output to "head" without having remembered I'd done so, and root causing what's going on with strace and such. The pipe closed! Why did the pipe close? Oh.]
Oh goddess, please no. Yet more GPL enforcement. Seriously, Bradley, just don't. (Listen to Jeremy Allison, it's a BAD IDEA. I don't WANT to devote more cycles to 0BSD right now, I have other things to do...)
Elliott clarified (in email) that cmake is really a replacement for autoconf, not make. Ninja tries to be a replacement for make, and meson tries to ALSO be a replacement for autoconf? I'm not sure "clarified" is the right word, but I happily acknowledge I am not up to speed with what's going on here, and I've long said that configure/make/install all need replacing so I can't blame people for trying but I'm not yet convinced by the result.
I've downloaded Linux From Scratch 10.0 and at some point should reconstruct an automated sysv build there, and then try to get it to work under mkroot; if that needs cmake or ninja I'll have to care, until then "make" is in posix. But I doubt I'll get to that before January, since I'm scheduled to fly back to Tokyo on the 14th and disappear into the j-core mines through at least the end of the year. Gotta get a toybox release out before then...
I got the wildcard stuff debugged enough it's handling single character matches (not a high bar, needs so much more testing), which means the basic plumbing's in shape. I have a LOT of dangling threads here: job control's a stub, haven't finished all the variable expansion types, wildcards haven't implemented those +(parenthetical|types) yet... but I've got enough filled in that the hard design work is (probably) done and the rest is filling stuff out.
There's a temptation to chase the test suite: the next thing that fails in "make test_sh" is because I haven't implemented function support yet. It's mostly there in the parser and I've got a TT.functions linked list in the GLOBALS block with the same structure I'm using to parse code into right now, but at the moment I parse code and run it immediately, then free it once it leaves scope (it can curently stick around because of loops, if statement bodies, parentheses and curly brackets...).
BUT: I need to cut a release. And what's been holding up the release is that the mkroot init script uses ${a/b/c} constructs I hadn't implemented yet but added error checking for. And what was holding THAT up is it was using wildcard plumbing I didn't want to stub out and speculatively implement down a wrong path I'd have to rip out again once I had proper infrastructure.
So what I SHOULD do is finish the missing variable expansion cases, MAYBE finish the wildcard stuff, but not start function support until after I've cut a release.
Except this release is "now go to tokyo and do something ELSE for who knows how long", so the temptation to do as much as possible before then is very strong. But I should review all the route.c work Eric Molitor did back in May and June, that command's a lot closer to promoteable now....
A new month and the monsters are still here, which isn't news. But I haven't the stomach for politics today. Too stressed to even _vent_ about it.
Instead, I'm arguing with Netflix, which is surprisingly broken. The Japanese consulate emailed to say they've mailed out my permission form in the envelope I provided them, so I'm on track to fly back to Japan on the 14th. In the meantime, I want to listen to Japanese dubs of things I've already watched, to try to learn more of the language. (If I already know what they're saying, and they're saying it in japanese...) Last time I was in tokyo Netflix had japanese everything, and I downloaded "Groundhog's Day", a movie I've always been able to watch over and over. But that dropped out of the Netflix catalog because everything does (RIP Person of Interest), and of course that took out my downloaded copy with japanese audio because Capitalism Something Capitalism DRM Capitalism. (I'm pretty sure I've got a DVD of it somewhere, but that's unlikely to have a Japanese track, and if I did mail-order a Japanese DVD we get into "region locked players" because Capitalism Guillotine Capitalism Late Stage Capitalism.)
Unfortunately, even though I KNOW FOR A FACT that Netflix has Japanese audio for most of its programming, it won't reliably show it to me in the audio track menu. I especially know netflix original programming dubs all of it in dozens of different languages because the translators are credited at the end of each episode if you let the credits play. (Guys, you credit the japanese translators 34 seconds from the end of Hilda episode 5, between the italian and korean translators. The translation exists, and was produced by the same "BTI studios" that produced all the other ones. You yourself SAY THAT at the end of every episode, you commissioned the CREATION of this content and BRAG about having it in the credits. The only reason you can't SHOW it to me is because you suck at making user interfaces.)
A week or two back I argued with the Netflix help desk about this issue, and they switched my profile's PRIMARY language to Japanese, meaning all the navigation buttons were in kanji. I can just about pick out stuff in hiragana but know basically none of the individual word hieroglyphics yet, so found it really hard to navigate. But WHILE it was like that, I managed to pull up Japanese versions of the Netflix original programs Lucifer, Hilda, and She-Ra. (Great!) And it remembered them in the "subtitles and audio" menu options when I switched the display back to English... until I watched an episode of Lucifer in English with Fade a couple days ago, which apparently flushed the cache. Then the translation options went back to "English" and "English with descriptive Audio", plus Russian, Spanish, French, and Italian. For a total of 6 slots in a GUI that DOES NOT SCROLL, so can't show me more even when it clearly HAS more.
So I went to the Netflix web page, and found out that UNDER primary language (I.E. the "make everything kanji" option), I can tell it what OTHER languages I'm interested in! So I checked the "japanese" checkbox (which again is labeled in kanji, but I was pretty sure which one meant "japanese" by now, and typed it into google translate to be sure, no of COURSE Netflix used pictures instead of unicode to label them so you can't cut and paste, but I went the other way and got the same three symbols), and then I logged out of the phone app and logged back in again, and... it swaped in Mandarin and Cantonese (or sometimes Mandarin and German) in the random list of 6 languages it can show the Netflix original programming in. No, I did not select CHINESE, I went back and re-confirmed that in the web interface: end table with two drawers, symbol that looks like the kanji for "tree" plus ornaments, much more complicated two column symbol. Japanese. Nihongo. (Or Yamato if you're old school.)
So I did another help chat with a netflix probably-actual-human, and the script they were reading from insisted it was a rights issue. That netflix original programming didn't license to ITSELF the right to play Japanese audio in Austin, but for some reason is happy to show me a changing random assortment of Russian and Mandarin and German BECAUSE REASONS. And they claimed this even though I WAS LISTENING TO THESE PROGRAMS IN JAPANESE LAST WEEK. (No, I was not using a VPN. No, I don't want to switch my buttons and pulldowns back to Kanji, but if that's the ONLY WAY... Honestly, if there was a "just use the two phonetic alphabets, not the thousands of pictures you have to memorize" option I'd give it a try. I really SUCK at learning foreign languages but I can pick out about half of hiragana by now. I've got a little phone game to try to help me learn it...)
The real reason Netflix won't show me Japanese anymore is because their interface is terrible and has exactly one screen of options without the ability to scroll, and it's selecting the WRONG DEFAULTS to populate it with. That is not a rights issue, that's lazy programming. And it's not noticing my update from the web page because it has the wrong metadata cached, which logging out and back in didn't clear, but using Android's settings menu to delete the app's saved data will also delete my downloaded videos which I dowanna do. (I'm at 48 of my 50 gigs for the month before T-mobile starts throttling me and EVERY video service starts working like Crunchyroll. It resets on tuesday. Yes, crunchycrunch's problem is obviously bog standard bufferbloat but try explaining that to them. Please, would somebody do that? Stop-drop-and-roll won't listen to me. And it's not worth fighting with if I go back to Japan in a couple weeks where I can't use it at all because they DON'T HAVE THE JAPANESE RIGHTS, yet none of the anime services IN japan have english subtitles. Anyway: netflix.)
I can't watch netflix on the laptop browser because whatever crazy video DRM plugin they're using isn't installed and I'm not chasing that rathole. (I _think_ it's available on Linux? Long long ago they used to use a mutant version of Microsoft Silverlight, which we had the "moonlight" plugin for. Blah, back up: it works on android and chromebooks therefore there IS a version for Linux, it's just not part of the base chromium install because capitalism late stage boomer boomer capitalism.)
So yeah, Netflix is blaming a rights issue (for content IT CREATED) when the problem is their app user interface sucks and their software inappropriately caches metadata. Claiming they comissioned new shows and didn't get the rights to them to SAVE FACE from admitting their UI sucks and painfully obviously didn't implement SCROLLING makes them look REALLY STUPID. Corporate stupid.
Ha! Prime video's translation menu scrolls! And of course they have The Tick Season 2 in Japanese, and will let me access it! Problem: I only watched the first season, in english, just once. Not familiar enough: I really want things I've watched _more_ than once in english. But it's at least a competently written app! (Which is odd given how much I hate the REST of prime's UI, but at least the things I disagree with there seem to have been done by choice....)
Booyah: Good Omens. In Japanese. Sorted.
French oil company Total SE has joined the group (Shell, BP, etc) in acknowledging oil demand peaking as energy production switches over to solar, wind, and batteries. The government of Nigeria agrees, as does the UAE, although they both pray the decline is a few years out. Russia has gone full Karen and demanded to see the manager.
Oil prices have stayed low, with a ceasefire in Libya and record production in egypt. The glut is so bad they're selling jet fuel as regular diesel. (The top shell vodka isn't selling, make Mad Dog out of it.) What's kept prices as high as they were was china buying a bunch of bargain price oil, but that's winding down.
Around the world, oil companies are diversifying away from oil, everywhere except the united states. But the united states has always been an "except". For example, I was never taught that the 1970's oil embargo was in response to the USA supporting israel when a colation of arab states attacked it in 1973, or that this was yet another cold war proxy conflict between the US and Russia (which owned Egypt at the time, still owns Syria, and recently purchased the Republican party hence the "red states").
Rented car, drove to Houston, poked consulate, drove back, let fuzzy drive around behind the mostly empty HEB rear parking lot a bit (she was basically frozen with terror the entire time and I don't think ever touched the gas pedal, just let it idle forward), then dropped the car off at the rental place. That took 8 hours and I'm exhausted.
I listened to the Martian audiobook on the drive, and wanted to watch the movie again but but it's not on any of the streaming services anymore. Swung past I Pancreas Video on the way to drop off the car but it turns out they died. I haz a sad. (We also tried the red box kiosk in front of HEB, but they only have it in 4k which the praystation can't play.) I refuse to give Jeff Bezos money for a movie I saw in theatres way back when, and which used to be on netflix.
There's a debate tonight. A 77 year old geezer arguing with a 74 year old vegetable about the future, while according to twitter the 72 year old moderator does nothing. I can't bear to watch. The Boomers are not dying fast enough, and Good Cop is useless. (I would happily vote for a potted plant to keep republicans out of office, and as far as I can tell that's what I am doing.)
Got up early to rent car, found I need to get insurance separately. If you have a "major credit card", renting a car gets magic liability insurance from the credit card people. If you're using a debit card with a visa or mastercard logo (I have one of each), you DON'T get the magic insurance. (It's like "bonus miles".) And the car insurance places no longer SELL daily car insurance policies, which is a thing they USED TO DO. (I admit it's been a while since I've rented a car, but not THAT long?)
So I walked home and called car insurance places (none of which opened until 9am, so I can't make the consulate window before it closes today). The best they can do is give me a one month policy and let me cancel it, and pro-rate it to the days used. (They don't have a product for this either, everyone ASSUMES you have a credit card. I cut up my cards shortly after college, after maxing them out, paying them off, and maxing them out AGAIN. Have not had because do not want, paying 21% interest and an annual fee to spend money 4 months faster than I earn it is silly and exploitative: capitalism has payday loans for the bottom 1/3 of society and credit cards for the next 50%. I opted out of that a bit earlier tha most the same way I opted out of having a television hooked up to any source of programming that wasn't "on demand"; channel flipping looking for something good eats HOURS and you're not even WATCHING anything.)
Of course to get insurance I had to get the VIN of the vehicle I'd be driving (the insurance guy called the rental place directly and they read him a plausible one for the vehicle I might rent tomorrow), and the policy is full of "this is garaged at your address for 10 months of the year" with MY address instead of the rental place's address, and I called and tried to get it all changed and can't. (Issuing the policy today only works if the system thinks I'm single, and if the vehicle is garaged at my billing address, and...) So the chances of it ever actually paying out if something DOES happen are slim to none. But that's capitalism for you: they just want to squeeze money out of you, the nominal benefits you're paying for are never actually delivered. Jam Tomorrow is all you get, never Jam Today.
So that was my day. I can't go to the window tomorrow either. I wound up taking a 3 hour nap just from confused schedule, and am still exhausted, and need to try to sleep tonight AGAIN despite basically jetlag, to do it all tomorrow...
(It's frustrating, I left off debugging the wildcard stuff and of course Peejee won't let me work from home...)
Can't go to the table and program tonight, instead I need to go to bed 8 hours earlier than usual so I can be at the car rental place when it opens at 7am so I can drive to Houston where the Japanese Consulate is, so I can drop off the same documentation I already photographed with my phone and emailed them a week ago, which I'm ALSO required to submit in person, in Houston, on paper, for reasons no one has been able to clearly explain. Due to Coronavirus, their form-accepting-person window is only open from 9:30 am to 12:30 pm, and it's almost a 3 hour drive each way, so I have to head out first thing in the morning to get there in time.
I didn't replace the car that died a while back in part because I expected to be in Japan this year, partly because I thought self-driving car fleet subscriptions would get here faster than this (Waymo, I has a disappoint), and in part because we really didn't drive it that much. Paying over $100/month for car insurance (let alone the rest of the car bills) is kinda silly when we're two blocks from a grocery store and I work from home. But visiting Houston without a car is really tricky: flying or taking a greyhound is fairly likely covid exposure, and I'm trying to get permission to take a coronavirus test to show I HAVEN'T (currently) got it. (I'm reasonably sure I already had it after jury duty back in March, which was a very unpleasant couple of weeks where there was no position I could sleep in that didn't make my chest hurt a LOT, and I STILL have some joint problems from that. Fuzzy had similar symptoms at the same time, it was not fun, and if it was covid we still both got off lightly. Presumably because neither of us is vitamin D deficient, unlike 40% of the population. And yes, that explains ALL the "hits minorities and obese people harder", correcting for vitamin D deficiency, neither is an extra risk factor... but there are multiple strains going around which means you can get at least a mild case of it AGAIN, and be contagious whether or not it hits you personally hard.)
So, car rental. Last time I had to visit an embassy in Houston in person for insane bureaucratic reasons, it was to visit Moscow for Parallels in 2010. They had little brochures about how to recognize when a cop was demanding a bribe, and what the appropriate amount was (for which you were supposed to carry cash). I comparison, Japan is still a bastion of order and reason. (Possibly part of the reason I like the place so much is how low that particular bar was set for me by previous experience.)
Making a dirtree callback function to do directory traversal with wildcard search is funky. As always the CODE is easy, it's getting the data representation right that's the hard part. (It's a bit like how in plumbing the pipes and soldering aren't the problem, it's the WATER flowing right and not leaking that's the problem.)
For directory segments with no wildcards I just want to open them and drop directly down rather than bothering with directory traversal and comparison. For directory segments WITH wildcards, I need the open/compare loop on the children at this level. For input I have a pattern string and an array of offsets indicating where the active wildcards are (this is after quote removal, so just because it's a wildcard character doesn't mean it behaves like one).
There's always the fiddly part that when I want global data attached to the entire tree rather than just a node, the easy way is to stick it in TT globals, because even if I stash it in the top node I have to loop to find it which is schlemeil the painter's algorithm as the tree gets deeper. This is a design problem with dirtree, but I dunno how to fix it.
I've decided to re-parse the pattern data each time into directory segments, to give me "level 2", "level 3", and so on as I descend, rather than maintain data in a halfway state between "global to the tree" and "node-specific". Saving parsed data to be used by later nodes and then unraveled as you move back up the tree is asking for trouble, and at this point premature optimization. (Opening files via path does that sort of parsing already in the kernel, should not be a big deal. I'm not even allocating copies, just measuring string segments.)
Told Jeff I can't leave for Tokyo until the 14th because I have to be here for the first day of early voting. (I'm aware there's a vote abroad thing, and that's mail-in voting, and I need to do it in person. Yes mail in has a paper trail, but so do the new voting machines here in Austin. The electronic machines literally print a ballot filled out with your selections, which you read and carry over to the ballot box. It's lovely and there was never any reason NOT to do that. You still sign paper documents at a house closing, even though we've had computers in each bank branch since the 1970's. If it's important, you sign the damn contract, in blood if necessary.)
Remember when medieval kings would go septic until the king was surrounded by sycophants and the only one who could ever tell him the truth was the court jester? The Onion continues to do the job of telling the literal unvarnished truth which sites like the New York Times have abdicated. Yes, I have to vote for Good Cop this time around, not happy with it but it's important.
Hollywood is currently grappling with the fact that police procedurals are no longer a plausible premise. (Oddly enough, Lucifer's one of the more plausible here: the cop co-protagonist started season 1 in trouble for narcing on bad cops, a bad cop was the Big Bad of season 1, her ex-husband is an only semi-reformed a bad cop who later partnered with a demon to murder someone they couldn't get any other way, and THAT guy was a prison warden who had the protagonist's cop father murdered in backstory for not being corrupt, their department head in season 1 was a political animal accepting bribes to advance her career, the replacement department head was the big bad of season 3...)
Meanwhile, some camels do make it through the eye of the needle. Well played. But he's the exception that proves the rule, as they say. (And there are no salvageable republicans.)
Shell wildcard evaluation has the option to be case insensitive, and of course I'm implementing a unicode-aware version of that. For things like [a-z] range matches I'm just parsing the utf8 encoding to an int and then dealing with the order the numbers occur in. (Sure maps to unicode points but I don't _care_. If you ask if a character is between a combining character and the right-to-left mark, the question is "above this integer, below that integer".)
But for some insane reason case insensitivity cares about the locale setting, specifically the towupper() function cares about the invisible global state set by an earlier call to setlocale(), and there's even a towupper_l() version that lets you explicitly provide the locale. Since bionic's locale support can best be described as "stingy", I wanted to see what bionic's towupper() implementation was doing, and...
typedef UChar32 (*FnT)(UChar32); static auto u_toupper = reinterpret_cast(__find_icu_symbol("u_toupper")); return u_toupper ? u_toupper(wc) : toupper(wc);
My brain is now singing "what the actual fuck?" to the "unbelievable sights" part of A Whole New World at this unholy lovechild of template instantiation and dlopen(). How does the Intensive Care Unit work into this? I _actively_ don't want to have to know...
Anyway, I'm just gonna test against glibc and musl, provide test cases, and then assume Elliott can make Bionic work. Rewriting a libc in C++ was a BAD IDEA, and I did not make my ghostbusters roll on this attempt to dig through the result.
The thing to realize about the GOP is this is an extinction burst. Very few people younger than the Boomers supports their worldview, they make no attempt to sustain anything, and Miami's uninhabitle soon no matter what they do. They're not trying to win the election because they CAN'T, they're merely trying to retain power. Fascism is about power and nothing else. They've been working this way for a long time, and only ever pretended otherwise. They seem happy to go on to open murder. Meanwhile the dishrag democrats who can prove malfeasance wring their hands and give speeches and then vote to pass budgets refueling the GOP's gas tank, and refuse to use the power they have. (Why is Diane Feinstein still in office? She's EIGHTY SEVEN.)
The LMPD is illegitimate and should be defunded. Here's a list of some of the things the police did wrong in the Breonna Taylor case. Then again police in the USA have been obviously broken since the 1800s. In civilized places like Scotland police use of a _taser_ automatically requires independent legal review. The police aren't what keeps people safe. That's why you don't "reduce" police budgets, you eliminate them.
Oh hey, Faceboot promised to take its ball and go home from Europe. Fingers crossed. They think that's a threat? They are the problem. Remember Facebook's business partner Cambridge Analytica? They're in the news again. This is the company that gave us Zuckerberg AND Peter Thiel (founder of Palantir surveilance). Guillotine the billionaires, tax the millionaires.
Boomer Media is terrible and the New York Times is very Boomer. This is not a new observation. Here's a good thread about how Boomers destroyed the print comic book industry, once again by making it about themselves. And here's a good article about how terrible the Boomers were at parenting and oh look, here's another great (unrelated) thread about the same topic.Wells Fargo is racist.
The "fr" in "agile" is silent, just like the s in IoT stands for "security".
Sigh, my phone got the "upgrade to Android 11" prompt and I was dumb enough to do it. Max volume on my wired headphones is so much quieter than it was under 10 that I can't understand what people are saying in podcasts over even minor road noise. All the "disable the volume limiter" advice on Google (which I didn't NEED to do under 10) point you at UI controls that aren't in Android 11, and all the "volume increaser apps" and such (probably viruses, but they're in the pray store so MAYBE safe?) do nothing in 11. (Guys, I'm plugging STUDIO headphones into my phone. They take like 3x the voltage of cheaper headphones. Your previous version could deal with this JUST FINE. You "improved" it into uselessness.) And it looks the only way to roll back to Android 10 is a factory reset deleting all my data. Great. (The same headphones still work fine plugged into my laptop. What changed was the upgrade to Android 11: it broke my headphones.)
It's possible Android and/or T-mobile is trying to force me into using bluetooth headphones because DRM, but mine broke recently: the joint on the OTHER side gave out, and duct taping both sides turns out to mean they're not adjustable and don't fit right. So they're just as bad about road noise, although at least I can make the volume in those 3x as loud as the wired ones, but that's "hearing damage" levels to actually hear what people are saying. So android is happy to let me damage my hearing with bluetooth (under 11), as long as the DRM prevents me from copying the sound except by sticking a microphone into the speaker which I could still do if I needed to for some reason? (I can play a video in a dark+quiet room and film the screen with my phone, what is the POINT of this nonsense?)
Anyway, didn't get any programming done yesterday either (another phone call, shorter but derailing). And I didn't even bother to go to the table this morning. It's possible I'm too stressed to function. (There's a LITTLE good news today, but it's got quite the backlog to overcome. And in this context "little" means "5 percent".)
Got email from another amazon recruiter. Said no again.
Person of Interest moves from Netflix to Pirate Bay tomorrow, but I doubt I'm watching the last two seasons between now and then. Oh well. (The premise of the series was from back before the Boomers went too senile for "publicly revealing the evil for all the world to see" to have any impact at all. The Boomers stopped evaluating new information a decade ago, and the GOP not only knows this, they brag about it.)
I miss don't be evil.
Covid-19 has now killed more americans than the Civil war, World War II and the 1918 pandemic.
Late stage capitalism is beyond parody at this point. You can't make up an exaggerated version of it that it's not already doing. We know what to do once the Boomers are gone, starting with defunding the police (as in zero). But we can't do it UNTIL the Boomers are gone, because they've barricaded themselves into the control room and are holding everyone else hostage. We know how horrible the boomer political party is, and that they ignore the law. The GOP, and everyone who votes for it, is unsalvageable. The question is what the rest of us let them get away with. Obviously the election is rigged, and they're preparing for crystalnacht right after, ignoring all checks and balances once they've got the supreme court locked in, and the plutocrat-serving democrats will do nothing, because the plutocrats have decided that fascism is the only way to keep late stage capitalism going, because nobody younger than Boomers believes in it anymore.
But people have been on the streets protesting before the election. The Boomers have another decade to live, which is too long for the country to survive, the question is when the Boomers lose power. (They've already lost control.) The question is, at what point does everyone else take power away from the Boomers and put them in senior care facilities with padding on every surface. The country is literally already on fire.
At least the onion is nailing it.
I got nothing done on toybox today because Jeff called and stayed on the phone (voip through an app) for 4 hours while I built bitstream versions for him to test. He's back in Japan, so on the same schedule as me, which was always the intent but has been less productive than I'd hoped.
It takes _very_ little to derail my productivity these days. :(
The way Germany fell to authoritarianism in the 1930s was that World War I veteran Paul von Hindenberg was elected President in 1925 at the age of 78. In 1932 at the age of 85 he responded to the Great Depression by appointing a radical populist to be chancellor, to help him 'restore the monarchy'. The doddering octogenarian meant "put Ludwig III's son Prince Rupprecht on the throne", and the populist holding rallies channeling resentment from the unemployed masses meant "sure I'd love to be king".
The populist's guys set fire to their parlaiment building a month later, which convinced Hindenburg to pass an emergency powers degree making federal edicts immune to challenge by local governments or in court, and then when the parliament met in a hotel (I.E. an insecure location) three weeks later the populist's guys surrounded it and 'convinced' them to pass an "Enabling Act" giving the chancellor's executive orders the force of law so he didn't need the parliament anymore. Hindenberg appointed Hitler chancellor on January 30, the Reichstag fire was February 27, and the Enabling act passed March 23. That's how fast Hindenberg's senility simultaneously centralized power and handed it over to a racist murderer.
Other than the easily manipulated doddering octogenarian, the main ally of the Nazis in passing the Enabling Act was catholic priest Ludwig Kaas, leader of the Centrist party, who wanted to make sure that Catholicism was protected under the Nazis. The day after handing Hitler absolute power, he went to the Vatican to negotiate a non-aggression pact between the vatican and nazi germany. Trump's evangelical support is 100% in line with history, those guys are always happy committing mass murder of people they don't like, especially women and foreigners, and they remain problematic to this day. So of COURSE evangelicals are 100% behind the GOP agenda, racism is their jam.
Today in the USA, the 78 year old senate leader has vowed to replace the 87 year old supreme court justice during the 74 year old president's term rather than allowing the 77 year old presidental candidate a chance at it, a move condemned by the 80 year old speaker of the house. We already have concentration camps performing forced hysterectomies. I'm finding it a bit hard to concentrate on work during all this.
So yeah, Ruth Bader Ginsberg died, a couple weeks after David Graeber. Lot of that going around. She was absolutely amazing but she turned 80 in 2013 at the START of Obama's second term. Staying on the supreme court after that was a choice she voluntarily made. She gambled on election outcomes and lost. The crisis where a wannabe fascist gets to replace her with a partisan loon tilting the court 6-3 in their favor is the direct result of her choice to die in the saddle. (The GOP is rushing to confirm a replacement before the election. People are playing McConnel's speeches about NOT doing that, but his only rule has EVER been "it's right when I do it and wrong when you do it".)
The problem is Boomers still trying to drive until they die, and putting people in power older than themselves because they still don't collectively see themselves as adults. I.E. "The problem is Boomers."
My laptop battery was dead when I took it out of my bag. The Dell bios sometimes wakes up for stupid reasons, and closing the lid to suspend the laptop is edge triggered, not level triggered so the lid already BEING closed won't suspend the laptop again. Lost all the pending thunderbird email replies and my open terminal windows with 8 gazillion shell edge case tests I hadn't written down yet. Sigh.
Alas while vi does the "create .swp file with a stream of changes since last save", and it complains that the file exists so another terminal is editing this file, it won't give you the option to KILL that other session (even though it tells you its PID!) and take over the editing from where it was. It records the info to do so, but won't DO it. And if you wind up with 3 or 4 stacked, the recovery info is useless because which one was current? (probably the first, but it's too fiddly to delete the right file to be worth bothering). Luckily, I save semi-compulsively because of years of machines crashing out from under me halfway through something.
Heh, calling blockchain a solution in search of a problem turns out to have been optimistic.
C++ is doing to C what GPLv3 did to GPLv2. It's sad, but probably inevitable at this point. I mentioned the "contaminating the kernel with Rust" post from lwn to Elliott and he said that guy reports to him, and the ensuing conversation is convincing me (probably by accident) that Google's probably going to completely rewrite all the android low-level stuff in Rust over the next decade or two, which makes me nervous. (The devil you don't know always has greener grass until you try to make it load-bearing, and adding MORE dependencies and context crossings without making a flag day switch to a new one... I do not want to get that on me.)
That probably means they're going to stop using toybox at some point, but oh well. (I explained the trusting trust stuff again, but that's not the security problems he's facing day to day, so not on his radar. *shrug* It's not my call, I only ever had carrot, not stick...) Android distribution is nice while it lasts, and "another 10 years" is way longer than anybody can predict in this industry even WITH the S-curve of Moore's Law bending down as all S-curves inevitably do. But these are not design decisions I would have made.
The stories coming out of the fires are... intense. And as usual, the smoke is even more widespread than the fires, it's already reached the east coast. Elsewhere, "my town was recently destroyed by an inland category 4 hurricane" is just an in-passing remark in a long thread about a cat bringing a chipmunk into the house. And yes, that happened, it's called a "derecho" and was not an isolated incident. Just like hurricane sally is hitting the same people that Hurricane Laura hit 3 weeks ago (which was itself a week after Marco,/a>), and there are so many more queued up already they're literally running out of hurricane names for the year. A hurricane is currently forming in the mediterranean, aimed at Greece.
So of course the right-wing loons are (basically alone in) denying global warming at the top of their lungs, while Boomer Media chants "both sides". The pandemic the GOP intentionally spread and is still spreading has killed more americans than the USA has active duty marines, and Boomer Media still chants both sides.
An insightful comment that the whole "Qanon child predator" thing is a projection and denial response to the #metoo mushroom cloud where suburban white women go "no it's not suburban men who are the threat to our kids, it's THEM! It has to be THOSE PEOPLE, not US!" and hallucinate brown predators to blame their lives on. Of course reality disagrees (good thread). It would be hilarious if it wasn't scary: the minority in power treating everyone else as their personal whipping boy. Nazis never stay focused on foreigners but keep inventing enemies closer to home, "first they came for..." eventually winds up with purges within the party itself, every time.
This is why the conservatives have become immune to embarassment or scandal, because no number of gotcha moments that show incompetence or malfeasance (or simply being wrong) matter to their senile Boomer base. The septuagenarians won't even remember the gotchas in a week, they'll cognitive dissonance away what little they don't forget and continue the prejudice they've built up over the course of their lives from back when their brains still worked. You can't teach an old dog new tricks, and you can't teach a Boomer ANYTHING anymore. The Boomers will continue to repeat the same reflexive behaviors by rote until they die, and nothing can get better until power is taken from them, by death if nothing else. They neither notice nore care that their party is morphing into literal nazis as the people who aren't crazy enough for each new threshold of awful leave. (The ones shaken out at this point are the scum of the earth, but not the concentrated weapons-grade evil distilled down into the residue clinging to plutocratic power.) It's the same "perceiving acknowledgement of the truth as a threat" dynamic as alcoholism. John Rogers called it "the death of an identity, an extinction burst".
It SHOULD be hilarious that GOP wingnuts confused the Bureau of Land Management with Black Lives Matter and decided that since BLM is sending people to the fires antifa must be responsible! Wrong BLM, idiots. Sadly, while they ARE clearly clowns, it's the clown from "it" killing a bunch of people and thus not funny at all. They're reinvented blood libel, because abusers are unimaginative and always converge on the same tired tropes.
Interesting. The problems with congress (as opposed to the senate) can be traced to Republican president Herbert Hoover in 1929, right as he was causing the Great Depression.
Yay, patreon finally acknowledged that they screwed up on the tax thing. Instead of deducting the tax from the amount creators got (which is annoying but fair), they RAISED the price they charged each contributor without asking, which made them both greedy and unclear on the concept of consent. Unfortunately they don't acknowledge that they understood why they were wrong, just that people were pissed and they're going to let the anger die down before... putting the exact thing back again, I expect? Sigh. Late stage capitalism.
Building nextpnr I hit the problem where cmake didn't know what to do with a .c file, which is apparently a common issue that requires portability fixes, so I submitted a pull request. And if you look at nextpnr/CMakeFiles/CMakeError.log you get:
Run Build Command:"/usr/bin/make" "cmTC_f263f/fast"
/usr/bin/make -f CMakeFiles/cmTC_f263f.dir/build.make CMakeFiles/cmTC_f263f.dir/build
Well of COURSE cmake is a wrapper around traditional make. And then ninja calls cmake and meson calls ninja, and that's the new qemu build. Why would we REMOVE any dependencies from the stack? (Yes of course I'm singing that dependency chain to "potato/potato". "Cmake's a wrapper, around make from posix, ninja calls cmake, and meson calls ninja. Posix, cmake, ninja, meson, let's call the whole thing off.")
What I was doing before that was ripping the lib/password.c plumbing a new one, but what I was TRYING to do was implement:
$ echo ${X=banana} ${X%n*a} ${X%%n*a}
banana bana ba
Which involves reopening the can of worms that is wildcard support, and I'm poking at that. I have recently stacked "using nl_langinfo() in main.c to see if setlocale() needs to fall back to a hardwired utf8 one" (fallout from the commas thing where I had to open the localeconv() can of worms and actually read what it DOES, locale -m implies that the string to check is "UTF-8" all caps). And looking at the kernel's Documentation/admin-guide/device-mapper to work out how util-linux's blkid is working without the suid bit. I haven't got time for either of those just now.
Tangent: calling blockchain a solution in search of a problem turns out to have been optimistic.
Remember when the Resident was warning that Hillary would steal the election in 2016 and it turned out to be projection? The Resident warning of armed insurrection just about guarantees his guys are planning to do just that. (Every accusation a confession, and he's on record as wanting to kill his political opponents.)
Obviously he's not going to win the popular vote, but the GOP has not actually won the popular vote for president in over 30 years. It's common knowledge they didn't win it in 2016 or 2000, but since 2004 was the first year of electronic voting machines we didn't know how to prove fraud at the time, and by the time we retooled our analysis to explain how it had been rigged and indict some of the guilty parties, Boomer Media had "moved on" and never issued any corrections. Add in the clinton and obama presidencies, and the last presidential election the GOP actually won was George H. W. Bush in 1988, 32 years ago. Russian interference helps them game the system, but doesn't make them actually popular outside their cult.
Fast forward to the present where ICE is performing forced hysterectomies on detained women, which is a thing we charged the nazis with at Neuremberg, although the USA wasn't leading that charge since they learned it from us a hundred years ago. (During the great depression german nazis came to the USA to study our racism. And now the GOP is learning from the nazis. Bullies recycle the same three ideas forever. A conservative is someone who found a lungful of air they liked as a small child and has refused to change it ever since.)
If the GOP wasn't 100% hypocritical then "pro life" would mean "anti-forced-hysterectomy", but of course not. They're hypocrites It's all about racism, white women who want hysterectomies can't get them because of the same racism.
Good Cop remains useless. Admittedly, useless is a step up at this point.
We still need to guillotine the billionaires. You can't subsidize your way out of a parasitic relationship, you have to pull off the ticks and crush them.
Found a place that can do the covid testing I need to reenter japan. Jeff is having people in Japan call the embassy to see if I can avoid having to rent a car to drive to houston (and stay overnight) to submit the documents in person.
I finally got the case/esac parsing update checked in, and what I WANT to do next is implement ${x/y/z} because that's what's killing the mkroot init script, which is a showstopper for cutting a toybox release. However, the remaining slice commands I haven't implemented have one thing in common: they all use the wildcard plumbing to match patterns. Next up in my notes is ${a#b} and ${a##b} and the difference between them shortest vs longest wildcard match.
Following the oil industry is tricksy at the moment. Many moving parts, although there are sites collating a bunch of links. My interest in this area started with the exponential rise of solar/wind/batteries, but we seem to be reaching the endgame for oil, so I'm trying to understand that.
Oil futures are inching down because the oil companies are trying to flush out the backlog of oil from earlier this year, but despite all their efforts and cuts inventories aren't consistently going down. Demand isn't recovering, both because seasonal decline and a coronavirus second wave (which is already here), and the producers are drowning in debt and cancelling investments, and revealing fraud (although the fossil fuel industry is really all fraud at this point, stranded assets all the way down and even the idea that plastic is recyclable was basically a lie by the oil companies to sell more plastic, but this shouldn't be news when Exxon knew about climate change 40 years ago).
That contango thing is back where people buy oil and pay to store it in hopes the price goes up in future, which means inventories are rising again, growing the backlog consumers have to burn through before producers could raise prices. (And that money drains out of the oil industry, it's taken from consumers without going to producers or refiners. Bidding up the rent for oil tankers and storage tanks doesn't encourage building more of either if there's no future in it.)
This list of the ten largest oil companies from 2 years ago includes 2 russian companies (lukoil and rosneft), 2 chinese companies (national petroleum and sinopec), three european (total is french, bp is british, and royal dutch shell), and three US companies (pillips 66, chevron, exxonmobil). This list has 7 companies, 6 from the above list plus Eni (a spanish company). The definition of "largest" is squishy because a lot of these companies do other mining and manufacturing, refining, chemicals and plastics, and so on. Neither list includes Saudi Arabia's Aramco, which admittedly only went public last year. The Fortune 500 global list for 2020 has Sinopec, CNP, royal dutch, aramco, and bp in the top ten: China and Europe, nobody else.
ExxonMobil is #3 on the domestic Fortune 500 list but it's not in the global top 10, and was recently removed from the Dow Jones Industrial Average. No other oil companies are in this year's top 10 domestically. The regulatory capture of coal and oil taking over the US government (CEO of exxon became secretary of state, all the "bring back coal" speeches, the #2 fossil fuel producer Russia hacking the electronic voting machines) does not appear to have done much to extend the oil industry's runway. It bought them a couple years, but took 4 years to do it.
Meanwhile, Saudi Arabia seems surprisingly screwed. MBS, the butcher who murdered his way to the throne of Saudi Arabia, lost a lot of political capital fighting his price war with Russia and forcing through an IPO of his country's oil company that saddled his country's budget with a $75 billion annual dividend obligation that's already forcing budget cuts in services and cancelled project investments. Instead of funding his country's the diversification away from oil, the IPO drained the budget to pay for it. MBS hasn't been on the throne long enough to be known for much else yet, except the murder of Khashoggi and kidnapping the prime minister of lebanon.
What's gutting oil is the advance of renewables. We're closer to an electric airplane due to significant efficiency increases, although airplanes and container ships are places hydrogen fuel may actually make sense. (Concentrating energy like that is lossy, but sometimes worth it.)
Renewables are killing fossils in solid/liquid/gas order. Financially the coal industry is toast, coal demand peaked in 2007 and coal company stocks crashed in 2015, and while the decline continues the actual amount of coal burned hasn't gone down yet because china, but their coal industry isn't financially viable, it's basically their "ghost city" problem in another context.
If oil demand peaked last year, 13 years after coal demand peaked (outside of china's completely artificial market), that implies gas demand peaking somewhere around 2032. But there's just too much noise to pull out a clean signal here. Oil and gas are tied together, but on its way out coal was doing "coal gas" too, until alternatives became too cheap to bother. Here's a report saying that the coal and natural gas electrical power generation industry has contracted 2.8% per year over the past 5 years, and then is expected to contract 5% in 2020 alone, but the bundling makes it harder to compare them AGAINST each other...
In any case, it takes a trillion dollar industry quite a while to die.
The GOP are monsters, and their plutocratic policies are killing people indescriminately as well as making their usual victims' lives somehow even worse. Now the GOP has openly vowed to eliminate social security (disability and retirement both) by the end of 2023. Blaming your political opponents for the problems YOU caused is an old trick and of course Good Cop does it too, but conservatives don't develop the part of the brain that models empathy, which is why they believe the law shouldn't apply to them and don't even bother to learn it. They don't think other people are really people, they literally can't put themselves in anyone else's shoes, all that's important is they command and everyone else obeys without question. This seems to be nurture, not nature. Even sociopaths can figure out how to MODEL this stuff and PRETEND to care to function in society, but conservatives have decided they don't NEED to. A lot of "don't have" isn't a lack of capability, it's "haven't developed". Academic research suggests that tribalism puts humans into "us vs them" categories and the real question is where you draw the line: sociopaths have just one person in "us", conservatives have a tiny circle of god's chosen annointed ones, and healthy people can have at least bursts of sympathy for theoretical starving children in africa. The conservative "us is people, THEM is not people" is how you wind up with outright nazi behavior against migrants. It's a natural extension of slumlords and human trafficing coming together to cause things like the triangle shirtwaist fire and homestead massacre during the Gilded Age (I.E. the previous plutocracy with the railroad robber barons).
This is why too much STEM and not enough humanities is a PROBLEM, sympathy for others is something that can be taught but we don't bother anymore because the Boomers decided to train more television repair technicians back in the 90's and forget all this girly touchy feely stuff like history and literature and philosophy. (I have an english minor and I study history as a hobby, computer science by itself makes you very good at solving the WRONG PROBLEM.)
Here's a thread analyzing one specific Russian twitter troll. Twitter has its problems, but never trust facebook for anything.
Brexit continues apace. Police are still systematically attacking journalists.
Remember how Google buying Motorola was a conflict of interest and they sold it again quickly (after stripping off the patent portfolio to fight back against Oratroll's lawsuits), because while they owned it they were competing directly against their own Android customers? Nvidia buying ARM strikes me as the same kind of conflict, this time entered into intentionally, on an even LARGER scale.
Hmmm, studies showing Covid causing persistent memory loss is worrying. (I don't know if that's what I had in March. I've noticed struggling more than usual with memory since, but that could just be sleep deprivation from being on a night schedule when everyone else isn't, and stress from the trumpocalypse and boomerdamarung. My sense of smell's usually shot about 8 months out of the year due to Cedar pollen anyway.) And we have no idea the long term effects of any of this. I'm generally pretty good about recovering from stuff in the longer term (to the point even largeish scars eventually go away), but that's slowing down as I get older...
Oh well, I've been pretty good about keeping external records, such as this 2006 writeup where I explained what I was trying to do when I first aproached the tcc project about maybe trying to pitch in on development. My compulsive documentation is as much notetaking as anything else, I KNOW I won't remember all the details a year or two from now, I first figured that out about myself in my teens so it's not exactly new. (Speaking of history, something that wasn't explained in this article is I started the busybox GPL enforcement lawsuits in 2006 because the project already had a "hall of shame" page. I _inherited_ a festering legal mess and undertook cleanup work there like I did everywhere else, contacting Pamela Jones of Groklaw who recommended Eben Moglen's new Software Freedom Law Center project for pro-bono legal representation on the existing backlog of reports. I ran the experiment, proved that it did NOT add code to the project, and then couldn't get them to STOP afterwards...)
A reminder that the september 11 attacks were a rounding error compared to the damage the GOP is currently doing to the country with the pandemic, let alone the wildfires and hurricanes, all while medical debt bankrupts people and ICE is still putting kids in cages. (Yes the plutocracy is just as bad across the pond.) And yet ICE and Homeland Security and the TSA were all created in response to 9/11. Logically uprooting the GOP and installing basic income in response to 2020 is a far more justifiable response, which the Boomers insist will have to happen over their dead bodies but they're on a timer already. (If "Boomer" is defined as "born in 1955 or earlier" then the youngest of them turn 65 this year, and objecting to anyone else having basic income while collecting social security is the "we didn't have penicillin while I was growing up, you need to die from that infected hangnail out of FAIRNESS" argument.)
The GOP wingnuts are confusing the Bureau of Land Management with Black Lives Matter, and have decided that antifa is setting all the fires. That's a new level of incompetence even for THEM.
The GOP kills people. We're going to need new neuremberg trials. Boomer Media remains useless although some individual journalists seem to be getting tired of it. The Boomers know what they did, and they expect the rest of us to remove them from society, which... If you can't vote younger than 18 or be a senator younger than 30, why can you vote in your 80's and be a senator in your 70's? Mandatory retirement was a thing for a _reason_.
For some reason, paypal has decided it doesn't like the word "tardigrade" and will block any transaction including it. Of course paypal is the source of much of the money funding the alt-right, which is probably why the new company Thiel's on the board of directors from does so much damage.
Ooh, actual good news. (Of course the district attourneys oppose it: as the tv show Law and Order taught us the only thing separating them from the cops is a "donk donk" noise. And they're only in a position to commit endless racist microaggressions rather than direct violence like "beat cops" do. On the bright side, when stripped of "qualified immunity" police are becoming uninsurable.
Surveilance capitalism is a problem: obviously never allow random crap to attach to your wifi but what if it's your landlord doing it? Tenants rights about surveilance from landlords are gonna be another reason to guillotine the billionaires. (Not that there'sa ny shortage of reasons.) Most amateur security people are so terrible at it that even when they MEAN well, the only winning move is not to play. Add in the conservatives' "the rules apply to you and not me because I'm a special magic person and you aren't real" mindset...
I emailed Elliott about maybe adding the errno to the strerr() output, perhaps something like:
ls: blat: 2=No such file or directory
But didn't cc: the list because the bikeshedding would form a mushroom cloud.
At the moment, Android uses english error messages for everything, which turns out to be intentional because bug reports for the same issue with outputs in different languages aren't collated properly by the available human or machine learning systems. And I don't think any solution I do would change Android's policy at this point, because toybox isn't the only package consuming the libc internationalization database they intentionally emptied. (The GUI uses a different one, this is the low level posix one consumed by command line tools.)
I suspect I'm going to remove the commas because the guy who complained will never be satisfied, which means I'm winding up on Android's side of this issue. Sigh.
Just one link today: a prominent youtuber talks (and interviews other youtubers) about being stalked, and how the police are utterly useless (as in not even enforcing restraining orders until he kills you).
This is why defunding the police is such a low bar. I just had another bike stolen off the front porch and didn't even bother to call them, because when our house was robbed in 2012, when my car window was smashed back at the condo, when multiple bikes were stolen over the years, they have never once actually found or done anything useful. The police don't do their JOBS. (Over the past 10 years, half of all homicides reported to the police in the US didn't result in an arrest, the police are so useless people aren't even bothering to report most crimes to them anymore.)
Ok, three links. But watch the first one, it's really good. The other two are just bibliographic references backing up a statement of fact.
Well of course bash special cased it:
$ case i in esac) echo hello;; esac bash: syntax error near unexpected token `)' $ case i in if) echo hello;; esac $ case if in if) echo hello;; esac hello
If the first pattern in a case pattern is "esac", it's detected when other keywords aren't. And they're synthesizing a "true" when );; has no statement in between:>
$ false; case i in i) echo $?; esac 1 $ false; case i in i);; esac; echo $? 0
So many implementation details, which the userbase won't stand still for me to grind through. No, meanwhile the commas mess continues, and there's a cleanup on aisle logger.c... (In theory this shell work winds up with mkroot working again so I can cut a release and THEN start working on root tests that run in qemu, so I can actually have a tests/logger.test rather than asking the list. But I can't do that cleanup and THEN deal with this.)
And gmail's spam filter went feral again. I'm reverting hundreds of messages from linux-kernel and so on which should not have gone to spam, but when it misidentifies one it "learns" quickly and needs serious smiting to back off.
Speaking of which, gmail's web interface has a design flaw that as you get to the bottom of each page of messages, the "I just did a thing! Prase me!" pop-up window covers the selection checkbox of the bottom message (or many if you haven't scrolled all the way down) so you have to dismiss it to select that message, and since it autofills the bottom with new messages every time you say "not spam" and it removes some, you wind up repeatedly having two or three at the bottom that are not spam over and over, so you click all but the bottom one, dismiss the dialog, select "not spam", rinse repeat. And the dialog is a precise mouse navigation when the rest are just "click click click" in sequence. Terrible UI, that. What I WANT is to click "not spam" and have it show me a FULL PAGE of new misidentified messages, not half of it taken up by ones I've already looked at. What gmail has DONE is implement a reverse form of Schlemeil the Painter's Algorithm where I get less and less space between updates each time (and more and more interaction with their UI design flaw) until I can FINALLY move to a new page. (Advance by a specifiable granularity instead of a full page? Why would anyone want to do THAT?)
The weather is destroying entire cities. The AVERAGE high in Phoenix last month was over 110 degrees. Flooding isn't the only effect of global warming that's going to force the permanent evactuation of cities, and it's not just a southern thing. And yet it's not enough of a crisis to head the list because the people setting the agenda steal elections so don't have to represent the people to stay in power. The rich and powerful can usually ignore the externalities they impose on others.
White supremacy was always a business model. Billionaires use scapegoats to keep everyone else in poverty because the way to be a big fish in a small pond is to drain the pond, and this is why so much of rural america is gerrymandered and voter-suppressed and chases out everyone who finishes high school. Sarah Taber just did a great thread explaining this. Most actual white supremacists are like fox news viewers or any other cult members: they swallowed the propaganda they were fed and now chant it back, but they're not WHY it happened, they just drank the kool-aid. Cult members are victims of the cult leader, and people who realize this have always stood up to them.
White people in general aren't exactly covering ourselves with glory these days. White supremacists are still disguising themselves as protesters to undermine peaceful protests, and the police still consider white supremacists allies and brown people (or anyone who sympathizes with them) enemies. That's why the police are still rioting: David Graeber said the purpose of police is to protect the rich from the poor (not a unique observation), and increasing inequality means over 90% of the population is now "poor" in that equation. The police are still rioting, and defunding the police has demonstrable benefits.
Boomer Media has abdicated all responsibility, but older Gen Z members like AOC are good at calling them on it. ("Follow the journalist, not the outlet" is excellent advice.) Thus you get things like an explanation of america's fascism has been set to music, of course originating on the social network the GOP wants to ban. The old mantra that took down Nixon remains true: follow the money. But unlike Nixon, we can't afford to pardon the criminals this time, we need Neuremberg trials for the GOP. Investigate and prosecute even the petty crimes to wipe the slate clean.
It's interesting to realize how much good the "greatest generation" who fought World War II actually did, and how much the Boomers squandered from that local peak when they took over. Back when the USA was founded only 6% of the population qualified to vote, so our chest beating about democracy rings a bit hollow. We were the 57th country to achieve universal suffrage, and our life expectancy has been lower than Costa Rica's since Ronald Reagan.
Public utilities work. Private for-profit anything is not sustainable. Capitalism corners markets and creates bullshit jobs (often at the same time, inserting unnecessary middlemen who charge through the nose for permission, verificiation, validation, certification, navigation of an intentionally obfuscated and complicated process to do something otherwise simple and straightforward...)
Even when capitalists take over a real product, they drive it beyond its limits in pursuit of endless growth until it becomes a scam. For example, 4k is digital movie theatre resolution so having a 4k TV at home guarantees you can't physically perceive the difference, they just want an excuse to tell people who bought HDTVs to throw them out and buy new ones.
This is why we need to guillotine the billionaires. Half measures won't cut it.
I don't WANT to care about locales, but the downside of "wait for somebody to complain" is that when somebody does complain the excuse to not do it goes away. Elliott complained about top using kilobytes to show machines with gigabytes of memory, which is what debian does but I humored him and added commas which was immediately bikeshedded and oh goddess I've already ranted about this at length, and there was even a section on it in my 2013 toybox talk.
Of course I'm out at the UT table again today. I can't work at home and the various fast food booths I'd hang out at off-hours are all pandemiced for the forseeable future, although there's very interesting news on that front. (Clinical trial shows Vitamin D is an effective treatment for Covid-19. 40% of the population is Vitamin D deficient, but 80% of the black population is and 70% of the hispanic population, and that by itself would explain the racial disparity in outcomes. In the USA we supplement bread flower with B vitamins, put iodine in salt, and add vitamin D to milk. But if you can't afford milk, live in a food desert where getting refrigerated food home is a challenge, or are lactose intolerant...)
I fixed the "echo {a..Z}" segfault where the code was relying on parse_word() to produce balanced quotes and finished \escapes but the {bracket} logic was producing an unbalanced \ that took out the NUL terminator and then the parsing looked past it. I fixed it by having it add a \ before ispunct() which isn't what bash is doing but... wait for somebody to complain? Other than that, bracket ranges should be done now and I'm back to case/esac parsing, which is fiddly:
$ bash -c $'case i\nin\na) echo one;;\ni)echo two;;\nesac' two
The line continuation logic doesn't know about any of that, and the assumptions the code reentry path is making about the previous statement having finished doesn't quite match the "this type of statement must come next" need, which is easiest to deal with by adding a pipeline segment of the appropriate type as soon as you know what comes next must be that type. The problem is, that's an EMPTY pipeline segment until the next word comes in, which is a new case. And what's logically the same segment splits in the middle to straddle lines. Hmmm...
The average wage just went up 10% without anyone getting a raise. That's how many low income workers lost their jobs. That's why everyone has time to protest now.
If you don't understand
how bad
the
Republican
Party has become, you're willfully
ignorant. It's gone beyond "not paying attention" into
active denial.
They're directly opposing
the concept of democracy
after years of
obviously but
less directly opposing it.
GOP and police murdering their political opponents is now policy.
They've not only embraced Russia (our old cold war enemy), they've
embraced the
Bin Laden
family.
It's not just one man, it's
White racists are the real terrorist threat. NYC created a "black lives matter" mural on the road. The NYPD (a wretched hive of scum and villainy at the best of times) parked dozens of cars on it to hide it. Police are sucking all the money out of municipal budgets to do all this, but so many Boomers aren't dead yet that. support for defunding the police is only up to 40%.
The police atrocity list continues to grow (here's more detail on that entry). The Los Angeles Sherrifs are literally shooting at passing cars now (thread). They're literally prosecuting "pre-crimes" now. No longer a science fiction premise, they're actually doing it and conservatives everywhere are ecstatic while ignoring all the actual crime where rich people break the law and steal money.
Silicon Valley attempting to solve the world's problems is never a good thing, and yes white savior complex is a known issue. (Dunning Kruger applies to experts in one area thinking their expertise transfers to wildly different disciplines. Confidently ignorant because they KNOW they're smart, therefore they're unprepared to be unprepared.)
Late stage caitalism continues to suck. Boomer Media continues to insist "Good people on both sides" and refuse to acknowledge factual statements, and generally faceplant. Boomers are hypocrites, and Boomers are the ones who broke everything.
Hmmm. A strong argument that volunteering for large for-profit corporations is contraindicated. On the one hand, open source development is what basic income would produce. (That last link points out we subsidize the creation of food, but not its distribution, because capitalist racism). On the other hand, at the moment your fanfic gets the serial numbers scraped off and turned into a cash cow for Disney. Dunno what to do about that.
It's easy to forget how curated an environment Faceboot is, but that's true of all the right-wing echo chambers. It was always a cult, that's the point.
Gun nuttery is internally inconsistent and was always nothing but bullying.
Good news, everyone! Exxon was removed from the DOW.
I need to do another deep dive into the oil industry soonish, which has not recovered from the crater back in April that was big enough to trash adjacent industries like ethanol and led to a wave of bankruptices and turned all the oil industry infrastructure into stranded assets. The headline of this bloomberg article is "Oil companies wonder if it's worth looking for oil anymore."
I've been watching lots of youtube videos where people explore abandoned buildings. When I was growing up the idea of tons of abandoned buildings was just strange, there was construction everywhere. Now? Not so much. Capitalism's demand for endless growth turns out to be an S-curve just like everything else, and with the planet's population plateauing (if not shrinking until we figure out how to properly subsidize child rearing, another thing Basic Income would fix), we need to figure out how to do more with less. (This doesn't mean individuals get poorer, stock buybacks were always about a company remaining the same sizewhile the share price endlessly increased and split. Sustainability is a thing the Boomers never understood, but natives everywhere did before european invaders displaced them. Heck, the europeans who stayed home understood it, the "loot pillage and burn" mentality only applied overseas, pre-Boomer.)
Darn it. David Graeber died. He'd been sick for a little while but not THAT sick. (It's sounding a bit like he died of Covid?)
Here's a profoundly good article he wrote 5 years ago, and a review of his excellent book Debt, the first 5000 years.>
And of course the latest example of Bullshit Jobs is the $2.7 billion active shooter drill industry which does nothing to keep kids safe while causing mental health problems. That would be an example of his "duct tapers" category of BS jobs, paying to (poorly) treat the symptoms of a problem we could actually FIX but collectively choose not to.
Graeber was a strong proponent of Basic Income, which is something we can afford now. Heck, inflation is not currently a thing, and all you ever had to do to tame it was tax the rich white (or, more realistically, guillotine them).
From a certain perspective Graeber won, in that capitalism will not outlive the Boomers, but... what will? Capitalism was always rotten: tax havens are a modern extension of colonialism, but now the money being extracted is from the bottom 99% of rich countries, hidden offshore for the 1%. The Boomers are the ones who wet their nest, bringing our horrible external policies home to use against our own people. The failure modes of the Boomers were obvious to the generation before the Boomers, the Boomers were uniquely incapable at maintaining anything.
The police are spectacularly bad at their jobs, and from a "you had one job" perspective police do not stop crime. Here's a recent story where "the police being utterly useless" is part of the setup. Seattle police are immitating the GOP vehicle rally in an empty parking lot, and the LAPD is incredibly petty focusing on useless harassment. The mayor of portland has gone into hiding rather than allow the police funding to be reduced. 9 Boston police officers were just convicted of fraud. Police in minnesota are seizing and selling cars from people who didn't do anything wrong, and it turns out "get out of jail free" cards do exist, you just have to give the police union money. Of course police ignore any law they want to. People are trying to figure out what to charge the cops of murdered Breonna Taylor with but defunding the entire department is still the only real solution. (Terry Pratchett explained what GOOD policing was like years ago, but let's face it: it's just another of the Discworld's fantasy elements.)
Oh look, another good example of why society gets worse until we guillotine the billionaires. (Back before the Boomers broke it we used to do sherman antitrust to break up megacorporations and enforce level playing fields instead of guillotines, but that ship has sailed. They won. Don't pursue half-measures to fix it, hard reset time.) We already knew 5 years ago that the 1%/GOP/Police had turned into a giant perpetual shakedown operation and that american society was becoming fundamentally invalid. But we have to wait for the Boomers to die before fixing it because they're too old to perceive gradual change. Capitalism's demand for "growth" at the expense of sustainability eventually kills successful business models, squeezing blood from a stone until it shatters.
White people ignore things brown people know how to do, then "reinvent" them, the way men repeat what women say and get credit for the idea.
The filibuster was created by mistake.
We know that Georgia's government is outright stolen,
it's
not hidden.>
I poked the bash maintainer and he said quote removal isn't
quote removal (It's removing quotes, but that's not _quote_removal_),
and pointed me at a bunch of historical bug reports which
I really should read at some point but right now I, as they say,
"can't even". Doing my periodic mbox file cleanup to address thunderbird scalability
issues (it gets slower and slower the longer the mbox files it's
appending to are), I
noticed that the Qualcomm Hexagon guys finally got serious about
pushing hexagon QEMU support upstream. (I mean I noticed that they started doing
it in back in
November, but that that's the most recent patch series.) There's even
a musl fork with hexagon support,
which means in THEORY I can add support to musl-cross-make and mkroot.
Except what I SHOULD do is email Rich and Taylor Simpson (my old boss at
Qualcomm for the 6 month contract I did there in 2010, who is the one
who's submitting the patches upstream) and see if Taylor has a budget to
throw a few consulting hours at Rich to properly integrate support. (I did several old blog entries when I worked for Qualcomm
in 2010, here's a
summary writeup
I did a couple years later, and here's Taylor Simpson
giving a talk
about it 6 months after I left,
here's my most recent
fruitful interaction with them... It's quite possible I'd still
be working on THAT if they hadn't had a "budget hiccup" and been unable
to renew my contract without a multi-month gap at the end of the 6
months. Oh well. Fascinating technology, although Jeff says that
barrel processors
are actually an old idea. It's a bit like being amazed about GARBAGE
COLLECTION when Java came out and all the old Lithp heads going "do tell"
and the Pascal P-code guys just sighing and turning away... It's always frustrating when I google for something and the result is _me_.
I don't want it to be me. If I knew this, I wouldn't be looking for it.
(In this case "nommu python". The first hit is github.com/nommu/nommu.org
which I forgot was even a thing, I think we let the domain expire. The
6th hit is my resume. The 7th hit is
random
discussion of one of the files on the old nommu.org site (a file I wrote
10 years ago). Here's a quite readable deep dive into
how utterly screwed british shipping is. Oh wow, Bayer (bee killer and home of roundup cancer spray) merged
with Monsanto (the people trying to corner the market on food with gene
patents and slimy lawsuits)
and the result was a
dysfunctional
lawsuit target. Couldn't have happened to nicer bastards. I just saw the best
one tweet
takedown of late stage capitalism I've seen in a while.
(That guy's been ruminating on this
for a while.)
Basic Income is
still
a good idea, and
it's something we can afford now (especially if we
guillotine
the
billionaires). What we can't afford is
endless spending
on police,
who
are paid to be
monsters.
Understanding the difference between police and military remains
vitally important. (The military know they're not police. The
current police
don't understand the difference.) But unfortunately we have to
wait out the Boomers.
They are literally why we can't have nice things.
Boomer
media
continues
to suck,
and advice Boomers give
is wrong.
Police overreaction has gone to plaid, and the police are
arresting medics trying to treat the victims.
Of course everywhere the GOP
or the police DON'T start violence (that's a good
thread by the way), the peaceful
protests are actually peaceful and thus not newsworthy to Boomer Media. The GOP
is still finding
subtle ways to kill people,
as they get closer
to fascist takeover
(here's a
fascism
checklist you can plug
all the GOP's actions into,
remember safety
in numbers goes both ways)
and stop bothering to hide their
nazi connections
they're also exerimenting with straightforward open murder
(which in other countries we call sectarian violence),
explicitly using terrorist tactics.
Meanwhile the republican base is doing the Luke Skywalker Whine ("That's not
true, that's impossible!") about our entire criminal justice system being
profoundly racist. Some of them now _recognize_ it, and don't want it to be true. But the cops
are rotten.
Here is an excellent thread summarizing why
Portland's police, specifically,
need to be completely defunded and disbanded.
The police turn out to be as bad at running the
sex offender registry as they are at everything else.
Here's a list
of lies police regularly tell, without consequences. I look forward to the end of capitalism.
Capitalism is a disaster that crashes regularly, and the real question is when we stop bailing it out. Capitalism is credited for all sorts of stuff it simply didn't do.
What does Norman Borlaug's green revolution have to do with capitalism (he
moved to Mexico to do the work), and we subsidize the heck out of the food
and energy industries.
What does Moore's Law or the internet have to do with capitalism?
(You couldn't even commercially connect to the internet until 1993 when
the thing was a quarter century old.) The
interstate highway system wasn't created by capitalism. FDR's new Deal
bringing electricity and telephones and plumbing to every corner of the
country wasn't capitalism. Modern medicine emerged from the US Civil War,
Penicillin was developed as part of the war effort for World War II,
and national
health services have always had better results than private ones.
The US public
school system making everyone literate and numerate and facilitating so
much technological advance is the OPPOSITE of capitalism, as was the boost
it got after Sputnik in 1957 (just in time for the Boomers to think that
level of spending was normal, and then cut it for those who came after them). The USA won World War II by SUSPENDING capitalism. We went on a
"wartime production footing" instead. Our economy boomed afterwards because
the period we spent NOT being capitalist repaired, refreshed and energized
everything (after capitalism gave us the Great Depression) despite a large
chunk of our work force dying or coming home maimed and/or with lifelong
psychological problems,
and spending 4 years rationing consumer goods and devoting all available
production capacity to making useless
junk we couldn't consume in peacetime (factories converted, thousands of
tons of raw materials scattered across europe or sunk to the ocean floor)...
And yet this non-capitalist mode mobilized half the workforce
(Rosie the Riveter on the factory floor, the WACs and WAVEs managing it all)
that capitalism was too biased to even access. The war gave us the computer,
radar, two way radio, the transistor, nuclear power... When it came to its
own nominal metrics for success (production of goods and technological
advancement) capitalism SUCKED. We obviously didn't land on the moon
because of capitalism or we wouldn't have raced the Russians there.
The only reason our government program (NASA) beat the russian's government
program (despite Russia putting the first satellite
in orbit, Sputnik, and the first man in orbit, Yuri Gregarin) was Kennedy
moved the goalposts by announcing an ambitious (I.E. looney) moon landing
when Russia was busy pursuing an orbiting space station, and by the time
Russia retooled to pursue a moon landing instead they were behind and rushed
to catch up in the new context, and their
N1 rocket exploded and destroyed its launch pad. (It's a bit like
AMD hiring the Alpha design team from the corpse of DEC in 1996 and
leapfrogging Intel with the Athlon and Opteron, and Intel rushing to
catch up and producing the Itanium and Pentium 4 in the early 2000s.
A leader suddenly having to play catch up often stumbles under the pressure.) My grandfather (the one who worked for the NSA, which I didn't know about
him until mom died and he got suicidally depressed about outliving TWO
of his kids, given uncle Bo died in vietnam) was assigned to the apollo
program to work with the USA's captured Nazi scientists from the V2 program,
and he once said that Werner Von Braun was a stickler for safety protocols,
arguing that in a complex system you MULTIPLY the probability of failure
for every component (if you bundle together 1000 components that each work
99.99% of the time, the result has a 10% chance at least one of them will
fail). The Nazi scientists from the V2 program that the Russians captured
when they took east Germany didn't include the QA and testing guys who were
so paranoid about safety, and in the face of deadline pressure the Russians
had an Unfortunate Incident that derailed their program. But there's no
question the Russians could have gotten to the moon under their own power
by 1975 or so if "being first" hadn't been the entire goal to the point
the USA itself stopped going back after 1972. The russians switched back
to their space station program in 1971 and then ran Mir for 15 years. The US responded with
its own space station
which was a disaster (only occupied for 24 weeks
total, crashed back to earth in 1979). The US waged a massive PR campaign against the Soviet Union during the
cold war, and via McCarthyist purges and such we convinced OURSELVES that
we were a captialist nation and assigned all sorts of virtues to capitalism
that it had never earned. The Boomers were raised on this crap in the 1950's
and got heavily brainwashed, but none of it was true. And now, 70 years
later, we're being forced to realize this. Capitalism creates plutocrats,
now as in the Gilded Age of the Railroad Robber Barons. We yanked ourselves
OUT of it after the great depression, and then plunged right back in
because we were so scared that communism would win. If the people afraid
of communism thought it really didn't work, why would they have spent so much
effort opposing it, and warning of its rapid worldwide spread? If even
Russia (the one place Marx said communism would never work, still a
theocracy of illiterate medieval peasants ruled by a king until 1917 because the european
renaisance never made it there) could sort of make a go of it, how powerful
would it be in a first world nation? Except step 1 was, as in France,
to guillotine the billionaires. And the plutocrats were TERRIFIED... Huh, it looks like Mozilla is toast.
As much as I like chrome (entirely due to "pkill -f renderer"), I'm a bit
uncomfortable with a monoculture. Then again, Mozilla's problems are
self-inflicted and
run deep, in fact the
creation of mozilla was damage control in the first place,
and the project's direction
and sustainability were
always problematic. A foundation that can suck down
half a
billion dollars annually and burn through it has NO BUSINESS being
anywhere NEAR open source. A half billion dollars is an ENDOWMENT,
at 5% interest that's 25 million per year, enough to support a couple
hundred programmers working from home in perpetuity and still grow
the principal faster than inflation. And yet somehow
they spent it as fast as it came in, and ran out. Why? Speaking of working from home, it turns out to be
a net positive for productivity. I'm getting so many emails trying to put advertising on my website.
(Up to and including wanting to run articles in this blog. I boggle.) Yesterday I didn't have any caffeine when I woke up, thinking I'd have some
in the evening as I was heading out on my walk to UT. So I was tired and
listless all day, and instead of heading out I fell asleep and slept through
until morning. I didn't have any caffeine today either, and spent most of
the day sleeping. It's not exactly a proper detox, but strongly implies I should
do one of those at some point. (I usually go cold turkey for at least 2
weeks every year or so, to reset my tolerances.) That said, I took two cans of milk tea (loire river assam and sunlee thai)
and half a bottle of HEB's store brand splenda stuff I added milk to myself
along with me on my walk to UT tonight. (And a bottle of normal uncaffeinated
water, which I drank most of on the way.) I left behind all the V8 cherry and
blueberry flavored energy cylinders though. LESS caffeine is probably a good
thing. (I would
still be taking the blood pressure medication, but they stopped prescribing
it until I got back up to minneapolis for a kidney test.
It was less powerful of a diuretic than all the caffeine I've been drinking
since, but my logic is if they won't give me blood pressure meds than clearly
I'm cured. No, this country does not have a functioning health care system,
why do you ask? The proper fix is probably to lose 80 pounds...) Toybox: I am gonna have to audit soooooo much memory leak stuff.
(Well, run it and see what's leaking. I should learn to use valgrind.)
My general approach to this is basically a manual garbage collection
thing where I'm adding allocations to "delete" linked lists, and then
traversing those in cleanup functions later. The question is the lifetime
of those; if I have a for loop traversing a million times, I don't want
allocations to stay until it exits. But then the way for loop lists work
is python-like "expand the list up front and it survives until we finish",
which... works on modern systems with buckets of memory? Right now the
garbage collection mostly works at block level, so when you exit out
of a statement (fi/done/esac) its resources get cleared. And
a lot of the rest is at statement level: run a command and its arguments
are freed when it returns. So the lifetime isn't so bad, but making
sure I don't MISS anything is the hard part. (I can check filehandles
via "ls -l /proc/self/fd", modulo the cloexec stuff where it should really
be /proc/$$/fd. But checking memory allocations needs tooling.) This is still a "burn this bridge when we come to it" thing, though.
Not there yet... Sigh. I think it's a given at this point that toysh isn't staying in the
3500 line budget I set for myself. Maybe I could hit it with fewer comments
and blank lines, but that's cheating. I'm closing in on 3200 lines
and just now adding {a..c} support and haven't even tackled functions
and aliases yet, only scratched the surface of job control, have half
of wildcard plumbing left to implement... There's a couple hundred lines
of debug scaffolding to remove at the end, but my best bet for hitting
3500 is to finish it and then try to do more cleanups to get it DOWN
to 3500 later. Oh goddess, the QEMU build grew something called "meson", yet another
new build system which is built on top of ninja _and_ python. So Android uses
Soong, QEMU
uses Meson, and both
of them are built on TOP of Ninja
(which was created because the Chrome browser build is a clusterfsck that
doesn't scale; I blame C++)
which requires python 3 and on at least some occasions hands
off to cmake with a make wrapper. I've ranted about "lateral progress" before. I miss the Linux Luddites
podcast, whose motto was "not all change is progress". Scotty said
"a good engineer is always a wee bit conservative, at least on paper".
You don't reinvent the hammer
annually, that's not how physics works. Sigh. Oh well... The headline
"Ex-Boston Police Union President Charged With Raping 4
More Children" is pretty much what I expect from the police at this point. You cannot reform this. You can only abolish it. The british police force was
established in 1829 on the concept of "policing by consent" and
have never regularly carried guns but the exact same
right-wing brexit yahoos in the UK dismantling the NHS are agitating for
arming the police.
In late stage capitalism (which is now
entirely
fraudulent all the way down),
the police are billing protestors.
The lawyer for the Kenosha shooter is part of the GOP's new cult.
The GOP has now ended the election interference briefings from the
Office of the Director of National Intelligence.
Right-wing militias are threatening librarians.
As people have
pointed out,
more people died of coronavirus during the Republican National Convention
than were killed by 9/11.
They're
still trying to destroy the post office.
How
many
examples
do
you
need
that
the
GOP
are
racist
lying
nazi
hypocrites
who
ignore
the
law,
and
the
whole
party
needs
to end.
(And their allies, such as Facebook, which instead of
banning nazis has done a
mass purge
of anti-nazis.) We know
how to fix all these problems
but
refuse
to do so until the Boomers die.
It is entirely possible this country will
not survive the Boomers,
and their
good people
on both
sides
Boomer
media
outlets.
Good Cop
is still
a cop.
Good Cop
accepts
bribes.
Good Cop is
the
main supporter of being a cop. Ooh, Shinzo Abe resigned so Japan's racist exclusion policy could end.
(Abe's achilles heel is his supporters are nationalists, so he had a hard
time pushing back against racism. His political opponents took advantage
of his mishandling of coronavirus to create a racism-fueled crisis
(keeping all foreigners out of the country until the business community
howled and Japan's reputation as a place international companies can do
business eroded) that Abe couldn't fix, and exacerbated it until he resigned.
(They didn't have to convince the immigration bureau to do that,
they just had to stop PREVENTING them. Border patrol is a full-time job
keeping "those people" out of the country, as with ICE it's a magnet for
racists at the best of times. You need to constantly push back against
overreach, and his opponents in the tug-of-war let go of the rope so Abe's
nationalists sprawled in the mud.) In theory, this means Jeff and I can go back to Japan soon. (I can't
blame Japan for having a racist Boomer problem when my country is putting
kids in cages, school to prison pipeline, kidnap vans...) But
early voting in texas starts October 13th and I'd like to stay here until then
because absentee voting and mail-in voting are the same thing so that's been
completely sabotaged. Hmmm... (I flew back from tokyo to hold my nose
and Vote For Her in 2016, can I delay my trip back for a month to hold my
nose and vote for the Geezer and Good Cop now? It's still a vote against
not for, but that's the 2 party system for you.) The Linux Foundation
sent out a "5 sessions you can't miss at
$RANDOM_FUNDRAISING_EVENT" and... Sure I can. In fact, since you phrased it
that way, missing them now qualifies as an _accomplishment_. Go me.
(No idea what the sessions actually _are_, I've configured thunderbird
not to load external HTML tracking data from emails, and all the actual
content is in the empty rectangles it would pull from their advertising
tracker. That makes it even EASIER to miss these sessions.) Yesterday I accidentally kicked the cat's water bowl and spilled some of
the water on the floor, but thought "it'll evaporate". Walked through it
multiple times going "Aah! Oh, right. It'll evaporate." Somebody knocked
on the door wanting to speak to me and I started to answer the door and
then ran to the kitchen to grab my mask. Doing a running pivot through
the puddle of cat water, on a tile floor. On the bright side, I didn't break anything.
But after a minute or so of lying on the kitchen floor yelling "AAAAAAHHHHH!"
repeatedly, Fuzzy told the person at the door it wasn't a good time,
and got me some ibuprofen. The bruise on my right
knee is kind of impressive, and I landed with a lot of weight on my left
wrist (the one that's been bothering me since the mysterious illness after
Jury duty that we can't prove was Covid-19, merely that AFTER I flew back
from Japan which was already in full-blown covid panic, I was in a room
with over 50 jury candidates for 3 hours before being selected for actual
jury duty, and then a little over a week later I had a couple weeks of
fatigue and terrible muscle aches to the point there was no
comfortable position I could sleep in because lying down meant it hurt
to breathe, and I was perpetually out of breath after until I started
walking to UT every night to try to get some stamina back.) Anyway, the weird soft-of-arthritis symptoms I had in my left wrist and left
knee after that (the knee cleared up after a couple weeks of walking, the
wrist comes and goes, typing was sort of trying to turn it into an RSI for
a bit there)... That wrist is the one I landed on. It's unhappy with me.
The knee I landed on is the OTHER one, and it's also unhappy with me. Walked to UT anyway (very slowly), and trying to work on toybox. The function
expand_one_arg() is returning NULL for error (ala
${abc?error message}) but you can also get NULL from the variable simply
being unset and unquoted, such as expanding $i without quotes. In a redirection
expanding to null results in an error (you'd think "echo hello > $i potato"
would write to a file named potato, but it dies with "ambiguous redirect"
instead), but when assigning x=$i it becomes an empty string "" ala: But what I'm trying to do right NOW is case expansions, which have two
contexts: the "for $X in $Y) ..." stuff. And both of them expand to ""
rather than erroring on NULL, but they do NOT use the SEMI_IFS logic
because I tested that specific case in the email I sent Chet: IFS=z;echo "$*"
expands with z, not space. So I need ANOTHER flag for this. Yes, I broke down and emailed the bash maintainer again. I'm aware that today's entry has technical content spliced at the end of
lots of other stuff. If I still had twitter to vent the politics at I could
do an even/odd alternating for technical/nontechnical, but twitter decided
to be part of the problem. *shrug* It's 2020. "And we will be restoring
normality as soon as we're sure what is normal anyway." So many youtube videos abruptly stop partyway through I'm losing interest
in the platform. (Any time a midroll ad comes on, I close the video and
switch to something else.) It's seriously incentivising me to pay more
attention to crunchycrunch and netflix and prime video and hulu and audible and
such. It had replaced me "what happened today, better check twitter" for
a while, but... not anymore. My phone hasn't exactly got a shortage of
content, and none of the others are as broken as youtube's become. No,
I'm not adding Disney+ or paying money to BBC iplayer or anything else
paywalled. Your explicit announcement of annoying me into paying you
money gets a "death first" response. I will not pay danegeld.
(I feel I should install tiktok on general principles, but don't want a
chinese app on my phone? The Resident's hatred of it could be reverse
psychology to get people to install spyware. Not on HIS part, he's a
dementia patient trivially manipulable by anyone physically nearby, but
on the part of whoever gave him the idea.) The sad part is most of the ads are for things like youtube premium
(literally "pay us to stop this ad, this one here right now, this
ad serves literally no other purpose, nobody else is giving us money
to show it to you or anything"), and Google stuff like
chromebooks. I'm pretty sure that Jerry Lewis lookalike who doesn't
know about Mt. Everest is also advertising a google service, but I
always either skip right at the 5 second mark or turn down the volume
and look away before I get far enough for it to tell me any details.
(You don't have to look back EXACTLY when the ads end, you can rewind
the video back to the start.) The point is, Youtube's vastly increased
the amount of ads but obviously hasn't sold the extra space and has to
run filler. There are no self-made billionaires
and we should guillotine the lot of them.
(By which I mean change the law so that hoarding a billion dollars is capital
offense.)
But fixing the racism gets us halfway to guillotining the billionaires, so
focusing on fixing the racism first makes sense. It's been the
main
defense of plutocracy
in the USA ("he's stealing your cookie") for over 300 years. When the Minneapolis police chief
says "It's my city, I will not
tolerate that"... he doesn't own the city. The people living in the city
are not his property, and yes that statement includes the black people.
And the mayor who refuses to defund the police needs to be recalled.
The police have become armed gangs, they should not be publicly funded. Police in wisconsin are rioting, and the
GOP kidnap squads are there now.
The Resident
announced his intention to cause riots back at the start of his candidacy,
before the dementia reduced him to a husk.
(Even then he was barely literate, so his "mein kampf" is old fox news interview tapes.) The GOP's new policy is that people without symptoms shouldn't be tested,
and the CDC passed that
while Fauchi was under anesthesia. Boomer Journalism continues to equivocate with "good people on both sides"
while the right-wing loons
target journalists at the very top. The GOP is
killing people intentionally.
Not just the people ICE puts in cages, not just the people the police gun
down in the streets: every
school shooting
is something the GOP defends,
the pandemic is something the GOP allowed to run rampant because they
thought it struck harder in blue states. The GOP is a death cult,
powered by Boomers furious that everyone ELSE isn't about to die of old
age like they are. (The unfairness of anyone ELSE suriviving! Can't
be allowed.) Got an updated bitstream toolchain build script
posted,
which involved shoveling out one regression introduced by standard
bit-rot (a package's download URL moved) and another that's sheer developer
hubris (explained in the linked message, the rot13 is inexcusable).
I need to add two more packages to get a proper bitstream rather than just
a simulatable netlist thingy. Over on toysh, I need to expand case's argument with NO_SPLIT but not quite
NO_PATH: it needs to COLLECT the wildcard metadata (it's resolving quotes
as it goes so needs to note which wildcards were active when the cursor
went past). So the existing plumbing should collect the wildcard info,
but return it instead of processing it (since it's used to match a supplied
pattern rather than search the filesystem). So I need to introduce a
deferred wildcard processing mechanism. Hmmm... Darn it, I need more granularity than SEMI_IFS. (And the bash man
page is wrong when it says it doesn't perform quote removal. Those are
quotes, they got removed. azb != "azb" unless you remove the quotes.) One of the big reasons you can get reinfected with Covid-2019 is there are at least
two different strains going around.
(The consensus seems to be that during reinfection you can be contagious,
but are unlikely to be symptomatic again unless you're a long-hauler
who never really recovered from the first one.) Religion seems negatively correlated with being a good person.
Example:
Jerry Fallwell was a monster,
and it turns out he and/or his son were
blackmailed into supporting the resident,
but
cults
gonna cult (good thread). The police
are still
the ones
rioting.
They are
motivated
entirely by racism,
and you can tell which side the police are on because that's who they're
willing to
turn their backs to.
The police
need
to be
100%
defunded,
and sued for side effects like
dumping toxic chemicals into groundwater.
(The military
can probably still be reformed, but
needs work
and we spend way too much on it.) The GOP doing what's called a "gish gallop",
commit new crimes
to distract us from
their old crimes in a perpetual
stun-lock.
While the post office remains
under attack,
the octogenarian democrats are convinced that the racists
who committed genocide to get the land
and enslaved millions of people for hundreds of years
could not possibly steal an election,
by force if necessary
by force
if necessary
or by
taking voting rights away from protestors
because such things are unthinkable to the octogenarian democrats.
Not only will Nancy Pelosi never impeach, but her side isn't even
bothering to use
their supoena power
or
authority to imprison people. Meanwhile, AOC attributes her effectiveness in congress to
the skills
she built tending bar,
and the
protesters
continue to fight despite the hand-wringing and pearl clutching
of Good Cop. Boomers are the problem, they stole all the money. Here's a graph from
the Washington Post showing that In 2019 Boomers had
just under 60% of national wealth, GenX had 15%, and millennials have
something like 3%. (Presumably the remaining 20% is owned by
octogenarians like Nancy Pelosi.) It also shows that when Boomers were 30
they had more money than gen x does at 50, and that 30 year old millennials
have
basically nothing. (Of course
Boomer media remains useless the same way even the "good"
billionaires remain unhelpful.) The students have returned to UT, which like the swallows returning to
capistrano means that Covid-19 distancing is kinda dubious now. The tables
outside the geology building are still generally free late at night, in part
because no matter how many times I email facilities they won't reset the
timer to turn the lights on at 8pm instead of midnight so nobody gets into
the habit of hanging out here except me, who learned about it BEFORE the
lights bugged out. (For a few years they would adjust forward for daylight
savings time, but not back. When they hit midnight they got stuck.) But
if I get here at 9pm there's a lot of foot traffic 20 feet away for the
next few hours, close enough I feel I should wear my mask, which gets
really damp really fast. Oh well, the USA continues to crit-fail handling the
pandemic... I'm making good progress on toysh case/esac handling, although it's one of
those "many hours of pondering to produce few lines of code" things. Which
is kind of toybox in a nutshell. (Ken Thompson's quote "One of my most
productive days was throwing away 1000 lines of code" continues to be true.) Mathematical models show that free markets breed oligarchs unless you weed your garden with taxes or guillotines.
We knew it's a fundamental structural flaw in capitalism itself, but
now there's math. Finland just spent 2 years once again proving that
basic
income doesn't significantly reduce the amount people want to work.
This is
not a
surprise to anyone who actually creates anything.
Here's an excellent thread on how even high-end human intellectual labor is
being automated away, which is only a crisis because of the assumptions of capitalism.
("We can live in luxury without having to work much" is only a problem
because capitalism, a system designed to regulate scarcity,
bluescreens in the absence of scarcity and works to CREATE scarcity in order
to have something to regulate. It burns rubber until it gets traction,
wasting any resource that's "too cheap to meter" until it isn't anymore. Late stage capitalism
cannot usefully outlive the Boomers: when they die, capitalism needs to go with them.) Here's an
interesting
theory that the Resident is trying to hard to stop mail-in
voting because the paper trail could be
used to prove that the _2016_ vote was fraudulent. (How much more
proof do we need? The Senate will never convict, Nancy Pelosi will never
make a second attempt, and the Boomers just want peace and quiet until they
die.) The GOP has officially become a one person cult of personality with no
other function or agenda, as in they literally
put it in writing for their national convention. (Gozer voice: There is not platform,
only Fool.) They are
self-defeating
and trivially easily played by plutocrats, the way
Facebook's CEO
convinced the Resident to
attack Tiktok.
Biden is pledging to be useless but the GOP is a
death
cult
captured by evangelical
christians
trying to bring about the rapture
(and of COURSE Boomer Media managed to Both Sides it because Boomer Media).
Russia is
also a death cult using
bog standard abuser tactics, and
abusers
repeat
the
same
tricks.
(If they weren't predictable and unimaginative, they wouldn't be abusers.) Russia's economy being
nothing
but fossil fuel exports means solar and batteries are an existential
threat to Russia's business model.
Solar is killing fossil fuels in solid/liquid/gas order, but the switch
over to gas was not done in the name of safety. All
three are dangerous,
but gas is the least easily contained. Late stage capitalism sucks.
Boomer Media is still failing to recognize the cops are the ones rioting.
The GOP is still
attacking the post office.
You can still sing
cloud rot
to the tune of love shack.
Do not ever
have an "amazon echo" or similar in your house
(and switch off "ok google" and "siri", which are mobile equivalents).
Global warming has reached the "tornadoes in ireland" stage, which is a new experience for them.
Oh look,
profound structural racism. Fade heads back to Minnesota tomorrow. Not sure when I can head back
to Japan, they're having a bout of politics. At this point I hope I can
stay until October 13th to do early voting, since absentee voting and
mail-in ballots are the same thing and that's totally borked right now. (I THINK the travel thing is because Shinzo Abe's political opponents are
trying to get him to resign by exacerbating a crisis he's personally
ill-equipped to fix. Border patrols everywhere attract racist loons because
who else wants to spend their lives keeping "Those People" out of the country
as a full time job, but the people they REPORT to are supposed to keep them
on a short leash so they don't run rampant destroying everything. Except Abe's
political base is
"nationalism and nostalgia"
courting Japan's Boomer vote, and he's relied on his political opposition pushing
back to temper the
destructive effects of that. But after his
mishandling of coronavirus weakened him politically,
his opponents have basically let go of the rope in the tug of war until
he steps down. So even though Abe's probably not directly personally causing
the current bout of racist exclusion,
it's aimed at him and the question is literally "when will Abe step down so
Japan can allow immigrants back in". Of course I live in a glass house full of
ICE so I don't get to throw stones here: Japan isn't separating kids from
their families and putting them in cages like we are, they still have the relative
moral high ground by a HUGE margin here. I'm just trying to figure out when
the localized political weirdness clears so I can get back to work.) Elliott suggested I try to
get more sleep because it's affecting my toybox work, but
I'm having to become a USB low level protocol domain expert for $DAYJOB,
which may involve moving back to japan or may involve moving to singapore
depending on how long japan's immigration ministry can sustain the racism.
The new hardware arrived the day before yesterday but I haven't got a bitstream
build that wires up a connection to it yet, and the old ghdl toolchain I had
working back in november has bit-rotted and I need to figure out how to build
the new package versions. Toybox is not my day job. I would LOVE for it to be my day job, but
the only people who want to pay me to work on it are on
my patreon, which I'm grateful
for but what I make from that in a year doesn't pay my mortgage for a
month, let alone the rest of the household budget. It's sad, the GOP is preying upon the Boomers' senility just like so many
other con artists are
preying
upon
aging
celebrities,
and if the rich
and famous
can't protect
themselves from "elder abuse",
what chance does the average Boomer have against
Russian Intelligence?
In a way this even includes the Resident, who while evil is also a
late-stage dementia patient
who
first
started
showing
signs
of
progressive
neurological
degeneration
back before the election,
and now it's
gotten
so bad they've
stopped
bothering to give him daily briefings,
because he's cratering.
And "elder abuse" definitely includes
Rudy
Guliani. Of course enslaving people to suck money out of them
is a thing capitalism does whenever it can,
by taking advantage of momentary weakness to achieve permanent control.
It all circles back to plutocracy and late stage capitalism. The party of
Good Cop
is a loyal servant of that plutocracy, and
also needs
to be burned down after we use it to defeat
the party of Bad Cop,
which
Russia
has
weaponized
from a series of loosely connected
cults
into an outright
terrorist organization.
Russia
murders its critics, and the GOP is still working up to that but it's clear they WANT to.
Choosing Good Cop over that isn't a big lift, but not a long term solution
either. The GOP is so out of touch the things they warn us against are often
things we want, but the Democrats are themselves as out off touch as you can be and remain
on the same planet as reality. The Boomers think we'll forgive and forget so they can die in peace,
and I expect Biden will pardon everyone he can (if that wasn't the plan,
they'd be filing
more impeachements already, and
following up
on the Mueller report), but that doesn't mean
the protests stop. We need the opposite of what the Boomers want.
Guillotines
are a measured,
situationally appropriate response
to the
complete failure of late stage capitalism.
We've been told enough times that
taxes aren't
gonna happen, so think bigger already.
The
Post
Office
is still
under
attack,
the claims it's been paused
are lies,
but I'm sure Biden and Pelosi believe them.
The cops are
still rioting,
not even bothering to arrest people
just beating them,
nor are they
even pretending to be impartial.
And of course the Boomer media is
still
out to lunch. The Resident has
promised to send his kidnap squads to polling stations
on election day. Early voting sounds like the thing to do.
The GOP
hasn't really changed, it's just
gotten less subtle. They've been Bad Cop since the Southern Strategy was officially
adopted in the 1960's. Oh goddess, Wikipedia[citation needed] says that switch_root is basically chroot.
That's very much not true: switch_root does an rm -rf on the old directory, which
is why switch_root checks to make sure that directory is initramfs and won't work
on anything else. The point is to switch from initramfs to a persistent
root filesystem while freeing the memory used by initramfs, where freeing
means deleting the files on the way out. And chroot doesn't change the "apparent" root filesystem it changes the
"active" root filesystem. It would be really nice if you could bind mount
a directory onto / and unmount the old mount point with the bind mount
staying live, but last I checked Linux didn't have the resource tracking
granularity to get that right. Possibly umount -l would work though? Haven't
checked recently... This would address the main problem with chroot: with system calls you can
easily escape a chroot() because chroot() doesn't chdir(), and "cd .." just
checks that the current directory equals the chroot dir (or top of the actual
mount tree), so mkdir("sub"); chroot("sub"); chdir("../../../../../..");
chroot(".") and you're out. (Basically each process has two filesystem
reference points: "." is what chdir() changes and getcwd() returns,
and "/" is what chroot changes. If "/" is UNDER "." then chdir("..") never
hits it, and you bubble "." up to top of tree. But the --bind mount trick creates a new mount point that has a subdirectory
as the top of the mount, if you cd .. from the top of that mount point you go
to whatever directory it was mounted in, and if it's mounted on "/"
(I.E. mounted over initramfs, which you can't unmount for the same
reason you can't kill pid 1: the kernel uses that entry as a known pointer
to start/end traversal of doubly linked lists and either can't find the
list at all or loops endlessly looking for it) and you stop (loop) there. Having chroot() trace the ->parent links from the "." dentry
until it hits the new "/" node, and if it doesn't then set "." equal to "/",
would also fix it. But I've been told that's crazy talk. And the kernel
guys refuse to address this while you can mknod the relevant /dev node
and mount a fresh instance of it, escaping the chroot that way. (Which won't
work to get initramfs or a credentialed network mount back, but try telling
the kernel guys that. This is not a perfectly complete 100% fix of every
problem, therefore why bother?) This is like 15 to 20 year old noodling, from back when Linus had time to explain things
to newbies personally. LONG before containers showed up and they started
to actually try to SECURE all this stuff. It's also why contianers use
pivot_root() instead of chroot(), since that basically does two
simultaneous mount --move atomically. And has special case magic behavior
if the first argument is actually the top of tree in the global namespace
where it traverses the process list and moves the "/" and "." links
of each process that points to the old one you're pivoting off of,
so you can actually umount the old filesystem
despite kernel threads otherwise having their "/" point to it... The reason white people are
losing control of the united states is only 43 percent of white
people are under 38, but 59 percent of non-white people are. White people
aren't being replaced, it's a cadre of geezers running down the clock.
I really, really hope this election is the last gasp of the Boomers.
And no, I'm not just referring to the GOP here, when even
the washington post notices you're being REALLY BLATANT about
your Boomer-only-bias. (That first link was in the excellent article at the second
link.)
The octagenerian nominee who picked a 60 year old cop as his VP only let AOC
speak after sustained outrage that Bill Clinton (who is the same
age as The Resident, but wasn't senile when he ran for president 30 years ago)
got to speak but she didn't in their first lineup.
In response to the outrage they gave her "60 prerecorded seconds" with
nobody else from "the squad" getting mentioned.
Good Cop is trying really hard to suppress turnout in the youth vote.
They have 68 year old Republican John Kasich speaking live and
73 year old Republican Christine Whitman (who I've mentioned in this blog as
the "Governor Witless" who destroyed the Computer Science program out from
under me while I was at Rutgers). Republican
Colin Powell
spoke longer than AOC,
Republican Cindy McCain spoke longer... Meanwhile, GOP strategery outside the white house is to
take
credit for the democratic victory and then demand concessions (destroy
the social safety net until billionaires get slavery back), and judging
by the convention speakers Good Cop
Biden is enthusiastically on board. He'll shower them with rewards if
they stay plausibly JUST this side of outright fascism through the
Boomers' remaining moments of lucidity. We really, really, really need to get rid of "first past the post"
voting and move to an "instant runoff" variant. If you don't get to
specify second and third choices, then voting FOR anyone but "the big two"
is a guaranteed waste of your vote, you're forced to vote AGAINST
by picking a "safe" candidate that will block the other side's monster
if your vote is to matter at all. It's a deeply flawed system and we KNOW
this and know how to fix it, but both Good Cop and Bad Cop want to keep it
because it guarantees they're not sharing power with anyone ELSE because
there isn't real choice. AOC only got a chance by beating the democratic
nominee in the primary. If she'd run third party she could only have hurt
whichever candidate was LESS far away from her positions (as clowns like
Ralph Nader do, probably disingenously). But without first
past the post voting the "primary" wouldn't be such a big deal, the RNC or DNC
would be just one more endorsement you pick up, which means people could vote
for who they ACTUALLY want, which means you'd get a lot more AOCs,
which is why Nancy Pelosi will never never never allow it. Luckily,
Nancy Pelosi is very old and will
die someday. Meanwhile, GOP loons are still
dismantling the post office
while
swearing they aren't
every time
someone asks,
and now they've
hired a PR firm to lie for them.
It might help to
hit
them in the pocketbook but guillotines remain far more reliable:
the racism is in service to plutocracy, follow the money was true of Nixon
and it's true now.
The racists are still
dangerous clowns
busy
delegating blame
while Boomer Media continues to treat "here's ANOTHER way we know
Putin hacked the 2016 election" as
breaking
news,
and then trying to make sure
nobody
looks at it again. Outright
Nazis are
on the rise in Greece, but our
endless manufactured crises keep us from focusing on such problems. I have been reminded of
the README markdown conversion. That tab didn't survive my laptop's last
reboot (back when it turned itself on in my backpack and ran down the
battery), and I'm not entirely certain where I left the directory with
the files I'd tracked down...
I ran on a bit long in a github comment, because I went down a couple ratholes.
The first is about Android not using "git describe" for toybox --version,
and the second is about commands commonly having an identifier line before
usage: in their --help text. First line of --help identifying the package and giving a version seems to be the common case, anyway, but I don't understand this "no date/hash" policy, so need guidance. (If it was up to me I'd just have android use the normal "git describe" plumbing for the version, since they already tag their releases and building a tagged version would just emit the tag name verbatim as the version. Plus whatever they do is going to have a unique git hash anyway because their history has extra commits in it and each git hash includes the previous git hash in its calculation, since long before anybody thought "chaining hashed blocks" deserved a unique name. Torvalds published 3 years before Nakamoto. But I assume Android has their reasons. For one thing, if you tag a release _after_ you build it, the commit you built wasn't tagged when you ran "git describe" so it's gonna show oldtag-count-hash unless you override...) IF we make the ID line before usage standard (still an if), sticking a version there seems to be what people expect, but that wasn't part of this request, just consistent with... basically the entire debian command line, it turns out? Ah: "dmesg --help" does not start with a package/version line. Nor does insmod --help, man, xxd, git... ok, maybe about 10% of the commands don't. And hg (mercurial) has a one line what-is-it before usage: but doesn't have a version in that. And parted --help says "mail bugs to thingy@gnu" at the end but has "usage:" as its first line... I tried to check what my current debian system has, ala:
$ for i in $(apt list --installed | sed 's@/.*@@'); do dpkg-query -L $i; done 2>/dev/null | egrep '^/(bin|sbin|usr/bin|usr/sbin)/' | while read i; do echo -n "$i "; $i --help 2>&1 | head -n 1; done
Which ran until some horrible bluetooth gui tool ignored the --help and popped up a window,
at which point the command line was frozen when I dismissed it (ignoring ctrl-c and
ctrl-z), so I closed the tab. (This is why I carefully did NOT run it as root.) The weather has now invented fire tornadoes. (Ok, Australia had them first.
The US gets everything well after the rest of the world these days.) I'm 90% certain the Dementia Patient In Chief
didn't remember who Snowden IS and gave a generic answer.
The Resident has gone full kool-aid on his followers, as in
drink this
poison and die with me.
Of course given that his support base is the Boomers it's not a big ask.
The police continue to demonstrate why we need to
defund them, but
Boomer media continues to ignore the ongoing protests.
As the Boomers got older, things that were previously satire are conservatives' literal positions today, Poe's Law is a moving target. If the problem was just a 73 year old whose father died of altzheimers and
can't himself stand upright or hold a coherent conversation for 30 seconds,
his brain disease would take care of it in a couple
more years, but the problem is not any one man, it's
the party
enabling him, the equivocators,
and the religion that party has merged with. Remove the tax
exemption from all churches. If they want to file for 501(c)3 tax exempt status
like Habitat for Humanity or 501(c)6 like the Tobacco Institute, fine.
But claiming the patronage of an invisible friend shouldn't automatically
grant that when they've become political lobbies. Interesting point that if the vote was
already reliably rigged,
they wouldn't still be exerting so much effort to rig it in new ways.
(The GOP is still
dismantling the post office at full speed.
They'll lie about it, and then
go right back to doing it.
Last Friday the GOP's new postmaster general
fired 2 dozen senior postal officials.
The first day of early voting in Austin is
Tuesday, October 13.) A recent
tweet from John Rogers (creator of Leverage) reminded me of the old
Amazon vs Ben and Jerry's business model
explanation. (If we had proper antitrust regulation breaking up individual
billionaires with guillotines, the Ben and Jerry's model would win out.
The amazon approach is about locking out competition, not creating value,
and to do it you leverage inherited wealth. The founder of amazon used to
work at a hedge fund, his parents invested a quarter million dollars into
his new company, and the company never made a profit until _after_ the dot-com
crash but his investors kept pouring money in. (A bit like Uber, which
loses billions annually and always has
but convinced investors to pony up endless money because they're transparently
cornering the market using a classic monopolization tactic that
sherman antitrust law was created to address: sell at a loss until your
competitors go out of business, then raise prices once you're a monopoly.
This lets big money take over any niche simply by having deeper pockets
and being able to lose money for longer than anyone else. People are letting
them get away with it because they hate the existing taxi industry it's
destroying, but it's also a scam preying upon the drivers.) Racism is
incredibly expensive.
Being nice to people would be exponentially cheaper but what it doesn't
do is concentrate power in the hands of a small elite. You need a "them"
everyone despises in order for the blessed few to dominate the vast masses.
This hides the fact that concetrating wealth is lossy: someone who steals
a billion dollars in unpaid wages to become a billionaire has destroyed
far more than a billion dollars of wealth. When a petty thief smashes a car
window to steal spare change out of the cup holder, they've caused
hundreds of dollars of damage to get $5 for themselves. This is the standard
colonizer mindset: descending on a foreign territory like locusts to loot
and pillage and burn, taking home a tiny amount and leaving behind devastation.
But this is what billionaires do: millions of people's lives diminished so
one person can live in luxury. Calling themselves "job creators" is
the same as any abuser who demands praise for allowing their victim to
live, how benevolent of them not to have killed you yet today. Giving back 1%
of the blood money a billionaire stole, whether as philanthropy or employment,
is not praiseworthy. Still under the weather. I
asked a question on the mailing list and
got referred to AT&T streams.
Not immediately helpful, but yay community engagement. I rebuilt the "make root" targets and they don't boot at all now because
I added error checking but didn't implement ${a/b/c} support yet,
so the script dies with "sh: i: /,*/}" which isn't a very good error
message to be honest. (It's what I told it to produce, but it should probably
be "sh: bad ${i/,*/}"...) Anyway, the easy fix is to finish adding support
for that, but I hadn't yet because it uses wildcards and I'm halfway through
doing those, but went down the "I can add case support, that should be
easy" rabbit hole and the "a) blah;;" parsing of intentionally unmatched
parentheses is not easy. Well, I can sort of punt. The parser will essentially put ) at the start
of a new line, but "case x in\na b c\n) blah;;" is understandable. Bash
doesn't currently accept it, but "toysh accepts input bash doesn't" isn't
a deal breaker, it's "toysh does not accept input bash does" that's
unacceptable. Similarly "abc|" gets broken into a new line/block by the pipe, but that's also
ok? I can interate through the resulting chunks trying each wildcard... No
I can't, +(abc|def) applies here too. Hmmm. Ah, wait, +() quotes it so
| within that won't get broken the same way "abc|def" won't split. That
means I have to _handle_ | in two places, but that's probably acceptable.
(It's mostly just a for loop.) The tagging is funky either way, when I break
"if true; then echo; fi" into blocks the "if" is type 1, "true" is type 0,
"then" is type 2, "echo" is type 0, and "fi" is type 3. This lets code traverse
disabled blocks without caring about their contents ala "[ false ] && if..."
and also has distinct start, gearshift, and end sections. (Gearshift is
kind of "end test" although in for loops it's usually "end list"...) But "case" has multiple gearshifts. The the initial "case x in" is sort
of type 1 (which can
have a newline between the x and the in because of course it can), and
then each pattern|pattern|pattern) chunk is a "test" followed by a
conditionally-run "body" section if the test matched, which ends in ;;
(or ;& or a couple other variants). What I can do is make each "pattern"
be type 2, and then the runnable section afterwards be type 0. The block
skipping code in run_function() is only looking at types 0 and 1 anyway
(where it jumps to pl->end->next for disabled blocks, so the contents
don't matter), and we only execute enabled if (!pl->type) blocks.
What I'd need to do is teach the gearshift (pl->type == 2) blocks about
"case" so they know to jump to pl->end->next when we hit the next one
(or fall through as appropriate), but they need new
"test this pattern" plumbing for this anyway... I also KINDA have a hack for the "$(case $x in; abc) echo hello;;)" which is
if I see ) eventually followed by ;; I can back up and glue that ) onto
the previous $( statement with one extra parentheses level. Which is
HORRIBLE and probably won't work, and when do I ask for more input if
I've hit end of line? It doesn't entirely solve it but it may let me limp
along a bit further before ripping out and redoing the $() parsing plumbing
to actually recursively traverse its contents which means storing the data
in a different format and then having other functions that consume that data
do something else... Blah, it's kinda horrendous. How/when do you FREE
the nested function structures hanging off of a normal word? Whole new set
of lifetime rules. Maybe I can have it parse but not KEEP the results?
Grrr... Seattle voted to cut the police budget by 1%
($4 million out of the $400 million they spend on police),
and in response their police chief flounced. (The
DISRESPECT. They can't
POSSIBLY continue to earn overtime teargassing civilians with 1% less money.)
And presumably the city
council hopes the protests will stop now that they've scratched the
surface and can now wash their hands of the situation. (The first evidence
that the protests work is not a reason to stop protesting. No, it doesn't
make you ungrateful, royalty always demands performative gratitude for
table scraps. Returning 1% of what was stolen from you is not a "gift",
and they didn't do it out of the kindness of their hearts but because
they're feeling the pressure. Keep it up.) Thanks to climate change, hurricane
force winds in the midwest are a thing now. (Heat is energy, add energy
to the system, storms get more violent.) There have always been
plenty of
women in tech, the problem is it's hard to become
a senior member when incel douchebros
harass the younguns out of the industry. Oh goddess, please stop silicon valley. You've invented the RV.
This is not new,
and individual untrained 20-somethings
do it better.
(Hashtag Van Life. No seriously, there's a hashtag, which is big
enough to have
its own
subgenres.) Countdown to Kessler cascade courtesy of
capitalism. (In
2014, there were only 2000 commercial satellites in orbit...) Microsoft Linkedin keeps telling me to congratulate people for not updating their
profile for X years. (It thinks it's a work anniversary, but offers no
evidence.) Under the weather. Not getting a lot of programming done today.
Poking at getty cleanup since that's reasonably low brain. Good news everyone! Austin city council just
reduced the
police budget by 1/3. Sounds about right: our police force is way less
bad than a lot of the others, but we can still divert money to mental
health, food banks and subsidized school lunches, housing for the homeless,
drug and alcohol counseling, and so on. In fact a chunk of that "cut" is
just shifting civilian services out of the police reporting hierarchy
into its own entirely civilian department. (Good. Don't militarize the police
and don't have police serve school lunches.) As Fade said (in household slack), "A lot of the 'explain Defund The Police
in a way that makes sense to your parents' stuff has been pointing out that the
police are doing a bunch of things that are not best served by paranoid men
with guns, so 'shift the money to people who are not paranoid & gun-wielding'
is a very good first step." Couldn't have said it better. The Resident has come out and said (explicitly,
(in a recorded interview,
repeating it 3 times)
that he's blocking money for the post office because of mail-in voting, and
that's what's holding up the second coronavirus stimulus bill the House
passed months ago. There's no subterfuge here.
They're explicitly stating the many ways they want to
sabotage
the election, the Boomers are fine with this (don't rock the boat, both sides both
sides),
and the democrats are insisting that's why you must go out and vote?
Because your vote will not be counted? In June 2019, fourteen months ago now, John Rogers predicted The Biden/Harris
ticket because "Boomers
crave return to normalcy/cling to legitimacy of the vision of America they
were raised in". The Boomers are still driving, which is why this entire crisis is
entirely driven by Boomers, and will not end (or even be fully acknowledged) until the senile old
coots stop. The stacked set of crises would not exist if they didn't,
and will stop existing only when they do. I fully expect a Biden/Harris ticket will pardon Richard Nixon again.
That's what Good Cop does: protect Bad Cop. Try to convince you that Bad Cop
is only hitting you because he loves you, you must give him another chance,
it's important to keep the family together. That's why Nancy Pelosi will
never impeach
again. She got pushed into a half-assed impeachment exactly once, so it could
fail and its failure could act as a
get out of jail free card. She'll never do it again ("but we already impeached him")
because Good Cop and Bad Cop work for the same plutocracy. Still, we have to stop Bad Cop this time around because we know where they lead.
But that's just the start of what needs to happen. Biden should face
protests too, as long as a billionaire remains unguillotined. And the push to brand Kamala Harris a cop apparently
comes from Russia being as good at predicting the obvious as
everyone
else, and going hard against her early this election cycle.
She's not
as bad as advertised (it's mostly Gavin Newsom setting policies she was
then responsible for enforcing), which isn't an endorsement but...?
At least she's several hundred years
younger
than Biden, Russia focused on her like they focused on Hillary because
she'd be especially bad for Russia,
and some people are honestly excited for her. Her selection does ring hugely
out of tune with the anti-police protests, though. Biden remains a deaf old
man running down a todo checklist from 1987. I held my nose and voted for Hillary when it was
only POTENTIAL bad things coming rather than the current Trumpocalypse.
And if Biden's return to normal involves a Ctrl-Z on every layoff, new hire, law,
and executive order since the end of 2016: that's a good start.
Broken clock's right twice a day: start with an executive order
cancelling every executive order 45 signed, sign a new law cancelling every bit
of legislation he signed, impeach every single judge appointed during
45's tenure... If normal is "before ICE and Homeland Security were created
in 2001", and he can be convinced to break up both back how they were before?
I can see a path forward here. Half-assed is better than none. The COVID-19 death tolls in the USA are way higher than being reported.
Here in texas the
CDC has been told 7100 people died of Covid-19 but we've had ~12,500 more deaths
than average, leaving over 5000 extra deaths unaccounted for. If you never test
them and just bury them, it can't have been coronavirus. Many of the
undercounted are poor minorities who could never afford treatment let alone testing,
so of course the GOP
is ecstatic about it. The GOP literally wants to execute its opponents, who they insist
aren't
really people. They
just have to wait for another "tea party takeover" cycle of even more extreme
loons before they think they can get away with it.
This is why guillotining the billionaires is not as extreme a position
as it seems, and not just because doing so would
pay for
universal
basic income.
The world
under billionaire stewardship is a
much worse place
Our current set of problems have been
provably caused by billionaires,
and the french
had a solution
to that problem over 200 years ago. We're just waiting for old age
to take out the Boomers first, which is the one thing the Boomers are
helping us do.
(The Boomers being in charge not being good for ANYBODY includes themselves.
Real
people are getting hurt, but senile control freak grandpa will die before giving up control, so we're
waiting for them to do both those things in order. Without them, the GOP's
support base is tiny. If the Boomers get their way, most of them are going to
starve
to death over the next decade. As with everything conservatives say,
the old saw about people turning conservative as they get older isn't
true, poor people just die younger
so the old are self-selected to be "comfortably well-off" with better
medical care, nutrition, working hours, working conditions...) The GOP's strategy to announce victory in place of the election is to
completely hide the real result and just announce their own numbers.
For example, a standard
dictator move is to hide the results from individual precincts so the
national total can't be questioned, and they're
trying
that in Atlanta.
They're
literally
dismantling the
post office
(as in removing
sorting machinery and
letting
mail sit undelivered) and
refusing to sign any bill that
gives the post office a dime, no matter what else it does, regardless
of who else
gets hurt.
All to prevent the only remaining channel to vote
with recountable paper ballots where there is physical evidence to destroy
to hide lying about the numbers, rather than just editing an electronic
database with no backup. They're literally publicly talking about an executive
order to stop
counting ballots, while senile Boomers congratulate themselves on
hurting brown people. Almost 200 years ago Robert Ingersoll predicted that the USA would end when the
churches hijacked the government
and now
it's happened.
The
GOP
is
a
cult
that thinks it's a religion. One election can't fix that.
These days they do nothing but
hack the system
for their own benefit
and tell
obvious lies.
The GOP is
diseased
and
needs to end. Capitaism is itself a religion
whose adherents
value profit to the exclusion of
all else
but a competitve market drives profit margins to zero. Profits come
from protection rackets (pay me to stop hitting you) and cornering the market
(creating
artificial scarcity).
Neither are the supposed benefits capitalism brings (which are due
to advances in science and technology, not capitalism). Capitalism is also diseased, and needs to end with the Boomers.
I'd really like to see the 1929 stock market crash (that triggered the
Great Depression of the 1930's) on this graph. Here's a
The separate graph with just that (albeit inverted). Maybe toybox needs a str_is(a, b) and str_isnt(a, b) to separately handle
the "a && strcmp(a, b)" and "a && !strcmp(a, b)" cases.
(I want to call the second str_aint() but that's the kind of sleep-deprived
name I edit out again later.) The problem is in the first NULL a does not
match b, and in the second NULL a matches b, and if "what does null a mean"
changes you can't just ! the return result and call it good, you need two
functions. Jeff got a new binary from the minisniff guys, and they told him they
used wxwidgets version 3.1.1 (of the modified "unofficial" codelite releases).
So he needed a wxwidgets "unofficial" 3.1.1 for buster, and the
3.1.3 directory we'd been looking at
(3.1.4 is in development so that's the newest release, but the directory
includes older versions) only had 32 bit 3.1.1 binaries and we need 64 bit
binaries. So I looked in the earlier 3.1.1 directory which did indeed have a
64 bit version of the library
we need... built for "stretch", which is debian 9.x and we need "buster"
ala debian 10.x. (The debian wiki has a name to version translation table, with release dates.)
I'd hoped the 3.1.2 directory between them might have what we needed, but no:
that also only had 32-bit versions of 3.1.1 and only built 64 bit versions of
the newer release. (Versions plural because there's "unofficial" and
"unofficial3" versions of both... the first links against gtk2 and the second
links against gtk3, we need gtk2 here.) So we tried the "stretch" (debian 9) version of the 64 bit, gtk2,
3.11 library package and got a NEW error:
dev@dev-vm:~/work/bugblat/install/miniSniffer$ LD_LIBRARY_PATH=/home/dev/work/bugblat/2/usr/lib/x86_64-linux-gnu:/home/dev/work/bugblat/3/usr/lib/x86_64-linux-gnu ./minisniffer Remember how I said combining C++ and shared libraries was fundamentally
broken in multiple ways? The C++ ABI changes periodically because it's profoundly
misdesigned and sort of writhes in pain as the standards commitee thrashes
ineffectively to fix one thing while breaking another so they have to do it
again a couple years later. It's like when you push down a fold of carpet
that pops up somewhere else in the room because it doesn't fit. This is
a perrenial surprise to C++ developers, and then they get
stockholm syndrome about it. So a program built by a compiler using the newer ABI can't use shared
libraries built by a compiler using the older ABI, and it changed between
Debian 9 (released in 2017) and Debian 10 (released in 2019). Because of
course it did, this is C++. In 2004 I did a contract at Dell supporting a project stuck on an
ancient version of Red Hat Enterprise, which they'd already paid Red Hat
an uncomfortable amount of money to support another year. The problem was a much
earlier iteration of this same issue: all the functions
exported in their shared library were declared "extern C {" but then they
passed pointers to class instances as arguments. The C++ developers didn't
understand how NOT to leak the full horror of symbol versioning, so they'd
deployed an application with shared libraries that their customers built
their own extensions which linked against those libraries. And now the only
build environment they could update their app with had been end of lifed by
the upstream vendor, and if they updated the shared libraries their
customers had to rebuild all their own extensions which Dell had promised
they would never have to do. This was an unfixable problem that was still going on when I left at the
end of 6 months, although the consensus was "pay another ungodly amount
of money to Red Hat Enterprise for another one year service contract for
RHEL 2, and THEN make customers upgrade their shared libraries" because
clearly this is a one time thing that will never happen again. Clearly
this was fallout from gcc 2.95 (I.E. the EGCS reunification where gcc
development stalled and forked, and then the FSF handed over the name
to the new development group on condition they set up a "steering committee"
that could be politically hijacked)... and Dell management was confident that
it would never happen again, and they faced a one-time problem rather than a
chronic issue with C++. Meanwhile, I can link against a 15 year old C shared
library no problem, as long as it has the right symbol names and I disable
the gnu/gnu/gnu/all/hail/stallman symbol versioning nonsense.
(Linux switched from a.out to ELF in 1995, and switched from 32 bit to 64
bit in 2005, but has not actually changed HOW SYMBOL NAMES WORK even once
since its creation in 1991.) Google Fiber went down for a couple hours today, promptly at 1pm which
is not "backhoe cut the line" but "somebody scheduled something that
didn't work". Power cycling the router didn't fix it, and of course the
website where you enter your address said "no problems reported in your
area" without EVER PINGING THE ROUTER. (Guys, is you can't talk to the
router then SERVICE IS DOWN. If your website can't do that automatically
then you really realy SUCK AT THIS.) I called the phone number, which gave me a recorded message about high
call volumes, kept me on hold for 5 minutes, and then gave me some message
I didn't really listen to (it was robot voice, not human) and hung up on me.
And when I called back, I got a BUSY SIGNAL. Then when I called again,
"your call cannot be completed as dialed". (No, my phone was not associated
with the router, this was t-mobile. I'm guessing their call center is
VOIP based and ALSO had something scheduled at 1pm, although it was half
an hour later by this point.) The status website was still up, and still
giving me a green checkmark half an hour after the service went down. So I tried the interactive chat thing (which linked to a third party
domain that had nothing to do with google and sounded like a scam, does
Google really need to outsource this), which also had a wait queue, but
eventually got (what I assume was) a human named Brian, who I once again
gave the street address to and HE could confirm the service was down.
And the website changed to notice! He said that was coincidence, although
it really seems like I manually had to manually tell
a human that my router was no longer pingable from Google's server because
their website would not ping THEIR router. I am using a Google-supplied
router that was throbbing red this entire time and their system couldn't
figure out there was a problem. BRAVO! So anyway, they were now aware of it, and we had phone tethers, and
Fade said it was back up a couple hours later when I went to bed.
I was awake for all this because my sleep schedule is terrible,
it advances forward an hour per day if I left it, which means I'm now going
to bed at 3pm and getting up after our ex-24-hour HEB closes; I am sad about
coronavirus hours at HEB and suspect they're using it as a permanent excuse
to just not be 24 hours anymore, since we're never going back to Boomer
Normal. We are in Boomerdamarung and I strongly suspect there's a revolution between us and a new normal
where solar+batteries provide electricity that literally is
"too cheap to meter", raise property taxes on investment AND RENTAL properties
at least 4x what "home I own and live in" gets charged (ala Austin's homestead
exemption, bleed the slumlords dry, cheap condominiums are a thing it just
means apartment you own rather than rent), acknowledge that Norman Borlaug's
"green revolution" quadrupluing the world food supply combined with fertility
rates declining below replacement rate in any country that educates women but
does NOT provide basic income so You Must Have A Career And A Baby Will
Permenantly Derail That... well, white people going extinct isn't the
worst thing that could happen at this point, but the near term point is
"food is not currently in short supply". A program to feed everyone Government
Cheese and Ramen as a basic human right not to starve would be maybe the size
of "the department of education". So the home fiber connection going down was before I went to sleep.
Now it's Late Night At UT (5 mile round trip according to my step counter,
12000 steps per day is pretty much all the exercise I'm getting),
and now my cell phone internet tether is being stroppy. Some sites (like gmail)
work fine and others are insanely slow or time out. I suspect the
sprint/tmobile merger has
brought a sudden end to tmobile's net neutrality from when they were owned
by Germans and acted as if subject to EU law, and now places like github that
haven't paid their "let us not block you" tax to the carrier are on their own.
My phone can watch youtube videos at full speed normal resolution, but
trying to get to MOST websites through the USB tether is sucking
ice cream through a straw. That is not a signal issue, the one hop
the signal deals with is doing video on the phone itself just fine.
That seems like a late stage capitalism issue. If you wonder why my working style involves downloading all my email
to the local machine and NOT involving crap like github in the productive
flow... I have multiple emails from Elliott where he closed a github issue
with a comment and I can't load the link to the github thread to see
the context for this new comment. I was trying to load the getty page off
of man7.org to see if maybe getty.c should link to that as its standard
and I can't load it. But google.com comes up instantly. You can sing "cloud rot" to the tune of Love Shack. I don't want to depend
on third party services, long-term
all websites eventually go away in my experience. This is why
I mirror stuff I care about, because even
archive.org has a suicidal
streak. (I assume that's a relevant link, google.com loads instantly
and arstechnica.com times out. Wheee.) Darn it, HEB decided to consolidate its "V8 Energy" from 2 shelves to 1
shelf, meaning it clearanced one of the caffeine cylinder flavors I like
(the cherry, which is also Fuzzy's favorite, sold out before I got there) and
is out of stock on the other because they filled the blueberry/pomegranite slot
with overflow mango/peach. (Flavors that are theoretically good juices don't
necessarily hide the bitter caffeine taste; strawberry/banana was particularly
disappointing in that regard.)
It's not hard to get more
but I'd much rather give my money to a well-run local business that treats
its employees well than the richest billionaire in the world who treats
employees terribly and is who's doing
everything he can it can to prevent unionization until his company can
replace them with robots. (I don't
just want Amazon broken up, I want Jeff Bezos personally broken up. Guillotine
the billionaires. Remaining a billionaire is a choice, you can always stop
being one as his own ex-wife is demonstrating.
She's aiming for maximum impact so it's taking a while, but her stated goal
is to give "until the vault is empty" and she's giving multiple billions
per year to good causes with no strings attached. I.E. here is large pile of
money to do what you think is best without micromanagement. I have no
qualms with her.) The strangest "google for a thing I did and hit a WEIRD page mentioning
me" today was because malware people used my
old aboriginal linux
arm toolchains and thus build paths of my old work directories
leaked
into their binaries somehow, and then those paths were used as an example
virus signature in a
patent
application a chinese guy made in california (as with most modern patents,
about doing obvious things that shouldn't be patentable). Spent most of today catching up on email and editing almost a month of
accumulated back blog entries I hadn't posted yet. Reading USB stuff, but
not programming. Time magazine interviewed Portland medical personnel on how they're
being targeted
by police at protests, the video is 7 minutes 18 seconds.
This is our generation's vietnam. The superhero origin story of an army of
activists. There was also a very informative thread about how the USA has no self-made billionaires,
just a lot of spin doctors sprinkling
"public relations" over billionaires' backstories.
(Due to the way twitter collapses
threads and makes you hunt for tiny expand links easily lost in the
noise, it may be easier to start from the end and scroll up.) Ooh, the
Lumper potato is back. As with the Gros Michel banana: limited availability,
but it's good to know it's not extinct. (Modulo the whole bit about potatoes
not really breeding true via seed, but it's nowhere near as bad as it is
with apples, so...) Today I wound up almost linking a guy on github to
papers
on the dunning-kruger effect, at which point I backed off and stopped
replying. I believe the
start of the reply I deleted did accurately summarize his current position:
So you're escalating from saying the self-selected set of users interacting
with the android command line (not the GUI) regularly won't know how to google
for a project page (and that Google going away so the internet is no longer
searchable is an important consideration), but now you add that they won't know where the
non-AOSP OS image they're using came from, and you believe this to be a common
enough problem you're suggesting we add a required manual setup step in the
build process and impose it as an external constraint upon fortune 500
corporations to identify the vendor in toybox specifically (not in the
larger OS image).
But... I wasn't HELPING.
I am not the best open source maintainer because I'm not polite enough.
I'm aware that sometimes I just shouldn't engage. But the difference
between educating someone (or at least trying to)
about the Layers Of Wrong in their
position (and the iceberg of backstory/context/politics) so that they can
learn and do better, vs getting into an argument
with someone who Needs To Be Right and Must Have The Last Word... sometimes
what I need to do is LET THEM. They'll be
happier if they can go and be wrong somewhere
else. And I'm not always good at spotting the cutoff, it's a heck of a grey area. (The best summary of the differences between the american Hitchhiker's
Guide movie and the BBC miniseries is comparing that last link with
its equivalent.
British comedy needs british delivery, or you get into "american red
dwarf" territory. Tangent, can of worms.) I dunno how much of the "helpful vs non-helpful" cutoff is somebody just
feels backed into a corner by
repeated "no, because..." and thinks I'm trying to insult them or challenge
their self-worth or something. This implies I handled the situation wrong, but
as I said, "I'm not the best at this". Sitting in front of a computer
teaching it to do tricks was the alternative I chose to embarassing
interactions with other human beings (most of whom I didn't like) level
grinding social skills. My parents
moved from Kwajalein to New Jersey when I was 10, which involved a bit of
culsture shock on my part. My plans to go away to college out
of state got derailed by their divorce (and me leaving high school early
to go to community college because I couldn't stand to stay another year),
and I went to the state college at in-state rates living with my mother
and didn't move out on my own until I was 23. Add in about 15 years of
depression in there and I didn't do a wide
range of socializing, and yes have somewhat of a deficit here.
It took me until about 30 to establish basic social competence interacting
with people I _know_. "You want to engage in science/technical/academic
mode? Great, here's an infodump! Ah, no you didn't really want that,
you really wanted someone to navigate your emotional state, on our first encounter
when I don't know you, and the infodump's gotten us into a bad place." Speaking of Dunning-Kruger, it's NOT about being stupid, it's about being
ignorant. Ignorance is not stupidity. Everybody starts ignorant and it's something you need to humbly
work through. (The humility part helps, without it you get colonialism
and white savior complex.) This is the most frustrating part about the
best summary
of dunning kruger I've seen: you have to skip the first 19 seconds
of him talking about "stupid" and the title of the video using the
word "stupid".
But Dunning-Kruger was never about stupid. It's a call for humility, and
a reminder that the ignorant newbie revolutionizing the field is like
lottery winners: yes it happens but it's not the common case. Beginner's
Mind is lovely, and it's also a thing you can
cultivate.
(See also the importance of play in creativity.) I have advanced far enough in human emotional interaction to now know
how BAD I am at it. To be aware I utterly suck at it,
by my standards.
Not the "you didn't react properly, what's wrong with
you" of days long ago (when I blamed "everyone around me is broken" on being
in New Jersey, still not sure I was wrong there), and not the hopeless
incomprehension of the vast majority of humanity of my 20's,
or the domain-specific "I know how to play a role:
I am Consultant, I am Teaching a Class, I am Organizing a Convention..." of
my 30's. Now I've reached a sort of resigned "I'm sure there was a way to
salvage this interaction, but I'm clearly not up to it, I wonder if there's
somebody I should delegate this sort of thing to" where I want to... post
warning signs? I KNOW I'm doing it wrong, as I'm doing it, but my choices
are generally Not Doing It (which generally means nobody does it so it
doesn't get done) and trying to see it through best I can. Until it's time to disengage, usually too late, because I'm Not Helping.
Oh well, back to programming. That part, I understand. The covered outdoor patio next to the UT geology building is getting popular:
I'm the third person here today. (From midnight until about 2:30 am,
anyway.) We're all spaced out (at least 20 feet apart)
and I have my long extension cord so I don't have to be at a table near
the outlet, but I've kept my mask on 3 hours longer than I expected to
have to. (Tolerable, just annoying. Other people being here kind of defeats
the purpose of coming here in the middle of the night during a pandemic.
Well, the middle of the night part is really just "outdoors in texas",
it's 90 degrees and too bright to easily see a laptop screen otherwise.
Still way more hot and humid at 2am than is comfortable to breathe through
a piece of cloth, but I coped.) 2020
in a nutshell. Just stating facts is a political act.
New York City is finally taking on the NRA, and their indictment is
a laundry
list of abuses.
People are finally saying
dementia,
but it's a weekly thing
when it should be daily.
The keystone
cops continue to vandalize private property without even caring that they're being
filmed. As long as the racists
(and sexists) support them, they don't care.
Facebook fired employees
who gathered evidence showing preferential treatment of right wing posters.
Students
who post photos of their crowded school hallways are
being suspended for doing so.
When you haven't got any shred of defense, shoot the messenger. I'm not a fan of the democrats, I just think the republican party
needs
to end. But Good Cop also has the problem that
Boomers
only want to hear from other Boomers, and
Boomers
worship billionaires. In the religion of capitalism, billionaires
are saints, their money gives everything they do moral weight. One
big problem with capitalism (there are many) is companies can be
bought and turned to evil at any time, the way a private equity
firm bought
motel 6 and reported its customers to ICE, and then bought ancestry.com
to be even MORE racist. The hypocritical
septuagenarian Boomers are driving the country into a ditch and
doubling down
after every failure.
They take the streisand effect in the teeth
on a regular basis, and their response is the Gish Gallop and
Firehose of
Falsehood, where they do so MUCH bad stuff nobody
can focus on any specific instance of it. (The classic "lose money on each sale but
make it up on volume", Enron executives pocketed a lot of money before winding up in jail with
all their employees out of work and multiple pension funds that held their
stock bankrupt.) The only fix is
to throw out the bad actors. Get rid of the people causing the problems.
Boomer senility has gone full on nihlist as they attempt to
normalize mass death
because to a Boomer, it's not fair for anyone else to continue living if
THEY are about to die. It has always, and ever, been entirely and
exclusively about them. Boomers see themselves not just as the center of the
universe, but the only reason for it to ever have existed. Ah, that's probably
numberwang for the "united" kingdom. The big objection to Scotland having a second referendum
to leave the UK and rejoin the EU after brexit (which takes effect January 1st
so the Tories are marching around declaring victory before the novacaine's worn off)
was that Spain is fighting secession in its own Catalan section, and didn't
want to set a precedent that THEY could join the EU if they broke away
from Spain. But now Spain's dropped its objection to Scotland rejoining
the EU (since the UK is the one doing the leaving and Scotland just
wants BACK in), so there's nothing to stop Scotland from leaving, or northern
ireland rejoining ireland. The real question is what happens to Wales,
they probably haven't got a defensible enough border. The border between
Scotland and England is less than 100 miles long, the Romans built
multiple walls
across it so border checks to prevent smuggling aren't a big deal and
have historical precedent. Ireland is already an entirely separate island
from Britain, and brexit already puts custom checks between Northern
Ireland and Britain (to avoid
customs checks across the land border between northern ireland and ireland).
The border
between England and Wales is considerably longer than the scottish border,
and encloses less territory (8k square miles of Wales vs 31k of Scotland),
but if scotland
and northern ireland both leave and rejoin the EU (new country and
Irish unification respectively) and that turns out well for them,
Wales is bound to at least look into its options... The shower of interrupts continues, definitely a "be
careful what you wish for" situation and yeah,
I
asked for it. It's not a bad thing, and I meant to go through the old
github bug reports before 1.0 anyway, but it's one more time sink
with $DAYJOB and pandemic and family and so on that's starving toysh
development of time slices. Jeff is getting a bit annoyed that he's paying me but Google isn't, given
how much the toysh stuff has been eating my brain, and he's been yanking me
a bit more towards prioritizing $DAYJOB stuff. I was trying to clear my plate
before new hardware arrived (the USB and GPS turtle hats are fabbed and
in Canada), and
as of yesterday
I have cleared my toysh plate for the moment. I have three open fronts of toysh
development: 1) job control (ala the find_plus_minus() stuff), 2) variable
expansion ala ${x//}, and 3) wildcards ala +(*|?). But all of them
have the basic design checked in and PROBABLY just need fleshing
out, and I've checked in what I've written for each and don't have
pending code in my tree for them. So I can sit down to a clean file
and do new code without having to reverse engineer what the outstanding
changes I have mean... And then the hardware hasn't arrived, and nobody knows when it will,
because the GOP's ongoing sabotage of the post office has backed up mailing
small packages from canada to the USA for potentially WEEKS. (He even had
trouble mailing from canada to japan, because for historical and infrastructure
reasons most international mail passes through the US postal service,
although international mail is slowly
weaning itself
off dependency on the USA because we're idiots.) Which means I'm picking at some toysh loose threads, while trying not to
get too deeply enmeshed just now. It's hard to find anything guaranteed
to stay small, of course. Ha!
Sometimes you come up with a situation that's gonna be a pain to code plumbing for, and then when you test it bash doesn't handle it either. :) Ah, nope. Darn it. Wrong one: They do handle it. But in my code $() is a form of quoting that doesn't care
about the statements inside it, that's parsed LATER. It cares about nested
QUOTES but not about statements. Agh, layering violation.
Does it... Yes it does. Well that's unpleasant. Hmmm... Ok, that part's just
error handling, I can punt on that (it handles well-formed input properly
and gives a different error message on malformed input).
But the case ) thing is disturbing at a design level, I have to parse
it to implement the functionality for properly formed code. Um... I'm tackling toysh case/esac plumbing, which I personally never really
use but it's the first failing test when I run "VERBOSE=fail make test_sh"
and it's gotta be done sometime. Doing it properly requires mucking about
with the line continuation code, because: Is precariously balanced: case must have one word after it (which gets
expanded, and is thus usually a variable name), then it MUST be followed by
"in" (although it can be on the next line), and then you need a line with
a ")" in it (which _can_ start with "(" but it's ignored if so), and then
eveything from the ) to ;; (which can traverse multiple lines) is code
to run if the word after "case" matches the pattern before ")", and by
pattern yes this gets expanded and can have all the wildcard crap in it
including the a|b|c stuff you otherwise only find in ?(extglob) patterns. The way I'm writing that plumbing is it always handles | when it sees them,
but since the parser treats | as pipes under normal circumstances the only way
to NOT have that happen is to quote them somehow... which means they're not
wildcards because they're quoted. (Including backslash escapes forcing them
to be a literal, that's sort of a single character quote.) But $(subshell)
was already treated as type of quoting context keeping the contents together
as a single literal string, and when I added more types ala +() that act
the same way, they inherited that behavior, meaning | inside them gets
passed along verbatim, and then the glob handling sees it in a potentially
active context, and... But here, I need to teach the continuation parsing that the "a) thing;;"
lines inside case start in a $() style context with one parentheses already,
except they _can_ start with another ( which gets ignored. Hmmm... The actual
$() parsing context knows that an unexpected ) ends parsing because I point
it at the first character inside the $() and then when the ) overflows it's
hit the end. So this is KIND of another use for that... Lots of potential for code sharing here if I can make the bits line up.
I'm up to 3081 lines, already bigger than where I WANTED the shell to be,
and like 400 lines from the size I'm comfortable with the shell being. There's a repeated pattern that seems like it should be a function,
but I tried converting it and I'm not sure the result is easier to reason
about? The new function would be: And would convert chunks like this bit from mount.c: If a string exists (first argument isn't null) and does not match the
second string, return true. The rough edge I keep hitting is "I can't
just strcmp() things that might be NULL pointers", so I want to throw
it in lib, but... does NULL mean it matches, or that it doesn't match?
The most common pattern is that one, but a function to replace it
is surprisingly hard for me to reason about, I look at the replaced version
and have to stop and work through what it means. It's not intuitive. Which
means I'm putting in the wrong abstraction. Hmmm... (The confusing part is that if the first string is null the result is true,
which... yes that's what all the users its' replacing are doing, but seems
weird for a function to do? String does not exist means false, string exists
and matches other string means false. Hmmm... Shelve it and back to it later,
I suppose, but it keeps coming up.) Cops are
snatching people out of their houses in Oregon today.
The police remain otherwise useless.
And as the Boomers slide into senility we're losing existing capabilities.
People are fighting back against Good Cop,
although the proper fix is instant runoff voting and
eliminating the electoral college, both of which reduce the power
of gerrymandering. Google Play's music service has
joined the Google Graveyard and
if you don't move your playlists over to Youtube by the end of October
you lose your purchases. Meanwhile, the rest of Youtube is trying
hard to drive everyone away
with midroll ads. Sigh.
I miss Don't Be Evil. The downside of having a successful project that people actually use is
the interrupts. I'm not complaining, "such problems we should have", but it's
almost as effective as Peejee in preventing me from working on toysh.
You get bug reports and patches for real world issues from users, and you have
to review and commit them quickly because real people out in the world are
blocked on that patch being merged. I cheated very slightly by ignoring
Mark Salyzyn's
xargs -p over the weekend, but spent my productive
time monday rewriting it
because the patch he submitted (which worked) wasn't how I wanted to do it.
(I did a smaller version that supported SIGUSR1 and SIGUSR2, I didn't HAVE
to but this entire project is me being picky.)
And then today, I wanted to dig into the shell wildcard stuff again and
wound up rewriting a different submission instead. Yeah the original one already
mostly worked, see "being picky" above. And of course the result of an earlier
long thread
of which I was not a fan but got
outvoted suddenly
wants my attention... Did you know that during the Iran-Contra scandal, Ronald's Reagan's
"I don't remember" defense (repeated 124 times in his testimony)
combined with how "inattentive and inept" he was behind the scenes led his staff
to consider invoking the 25th amendment to remove him from
office for being incapacitated. He went on to die of Altzheimers. The GOP
base absolutely LOVED him. The current
Dementia Patient In Chief got around that by leaving
most cabinet positions unfilled and having only a skeleton
staff selected for loyalty over any other consideration, preventing a
majority vote for 25th amendment incapacity among his cabinet no matter
how
extreme his dementia gets. Remember how a single billionaire family (the Sacklers) created and
profited from the opioid epidemic? As in the entire thing was them,
specifically? They just got away with it via legal maneuvering to
discharge the legal liability in a "bankruptcy" that let them keep their money.
And they're not even the only problem in this industry, not
remotely.
This is why "guillotines" are a far more realistic lobbying goal than "taxes" to
deal with billionaires. No part of modern capitalism is salvageable, and aiming for half-measures
is not good negotiation. (This was a big problem Obama had,
preemptive unilateral compromise. His opening position wasn't what
he WANTED, it's what he thought the other side was willing to
accept. And then he'd let himself get talked down from there. He haggled
with HIMSELF, giving away half the territory before even speaking
to the other side. But of course, he was Good Cop.) Some of the GOP/ICE kidnap squads that backed out of Portland have redeployed to
Albequerque, leading to the usual
massive
protests which the Boomer media has completely ignored because it's
not what senile old farts want to hear in their dotage. Their
horizons
have narrowed to the point no new information can get in
until somebody dies. The interesting part to realize is how few of the GOP shock troops there are.
The USA has 317 cities (defined as population over 100k), and
they're stretched operating in TWO of them at once. They had to scrape
together ICE, blackwater, and for-profit prison guards to get enough
klanpower for even that much militant racism. (Yeah they're trying to be
anonymous but it turns out doxing people is easy these days when you crowdsource
it.) Police abolition
is popular,
and the calls for UBI and calls for reparations are synonymous because the only
reason we DON'T have this already is racists refuse to support anything
that would help "those people", although they often try to hide their racism
behind "means testing" (which is just a quick way of destroying programs,
making them spend all their resources on scrutinizing people and forcing
them to justify themselves instead of providing services). Is anyone really surprised the non-pornhub clowns who bought tumblr are
technically
incompetent? Feeling guilty I haven't updated Patreon, but didn't click the thingy to stop it
charging people this month. I did post a sort of status update to the
mailing list about the current wildcard work, and there was
the writeup
about trusting trust and larger strategic goals last week. What I'd really
like to do is write up monthly summaries of what I'm doing and post them
to patreon, but this month's would be "stared at shell implementation
logic a lot". I currently don't understand what bash's escape logic is doing for "echo +([)]", which
doesn't match "+()" and doesn't match "[]" either. If it parses as "+([)""]"
then that's 1 or more [ followed by literal ], but if it parses as "+(""[)]"
because the +() wasn't completed due to the literal [] eating the closing
parentheses, then it's +() because literal "+(" followed by a range containing
only ")". But it's not matching _either_ of these, and I don't know why. And I'm TRYING
not to bother Chet anymore. (I also tried touch "+([)]" and echo +([)]* but
the * was still there in the output because it didn't match itself literally
either.) I _think_ my recent description of how to implement wildcards is
wrong because ] matches the most recent open bracket, regardless of
parenthetical nesting, so I don't need a stack of parenthetical starting
contexts I just need the ONE stack of possibly active wildcards (really
a vector I append to, only a stack when I pop context because wildcards
within [brackets] stop mattering when the close bracket is found.
That said, when I use it I have to sanity check that the parentheses
are balaced (the line continuation parsing requires them to be, but
X="("; Y=")"; echo +${X}a|b$Y is a thing, BUT +(|) acts as quoting the same
way $(|) does: the contents of the parenthetical operator are stored as
a quoted string and handed off to the operator for processing later, and in
this case that means echo +(a|b) isn't a pipe, but echo +${X}a|b$Y _IS_ a
pipe because it's not within a quoting context so the parser splits out |
into its own word so that example woult NOT work as a +(a|b) wildcard operator
because word splitting. However, $(X="("; echo +${X}abc) is still an example of unbalanced
parenthes because the closing ) matches the initial $( and peels off at
a higher level, andn then echo +${X}abc becomes echo +(abc with no closing
parentheses and thus the +( are literals. I.E. while collecting a deck of wildcards (annotations of which characters
in the output string currently function as wildcards) I THINK I don't need a second
ant stack to
store temporary parsing information? Which means I frog the code I wrote
to do it the other way... The reason this is going so slowly is I want to do it RIGHT.
Just slapping together something that sort of works and is 3 times the
size... Why bother? Busybox exists, and has a large userbase pointing
out the rough edges in need of sanding. The USB scanner
Jeff ordered arrived, but their Linux software is LAYERS of broken.
The first problem is it's using a really weird wxWidgets-gtk2 glue library
that does not exist in any distro. According to ldd: I downloaded the wxWidgets source and the build does not know how
to add the string "unofficial" to the name. I eventually tracked it down
to the codelite IDE
which seems to ship its own modified version of these libraries and thus
changed the name of the library,
which means we can download their binaries
and try to guess which version has the failing symbol names...
except none of them seem to have the exact failing symbol names? This brings us to the SECOND problem, which is that they combined C++
name mangling with shared libraries. NEVER DO THIS. It means you get link
failures like (this is literally a cut and paste of one of them):
OSError: /home/dev/work/bugblat/install/miniSniffer/libsniff_min.so: undefined symbol: _ZN7TdataIO19treeRootVecToLinVecESt10shared_ptrISt6vectorIS0_I5TbaseESaIS3_EEES0_IS1_I7TlinRowSaIS7_EEE
Yes, that's a dynamic library with a symbol resulting from name mangling
due to function overloading, a class hierarchy, and I think template
instantiation. (Don't get me started on the "who instantiates the template code,
is it in the library or in the caller" which is ANOTHER version skew where
your build can create a program and a shared library which individually work
but not in combination.)
I'm not entirely convinced building the same source twice in a row on the same
machine would give you exactly the same symbol name, and butterfly effects
mean two build setups ain't gonna do it. Google is not finding that string
anywhere. So we've emailed the bugblat developers to see if they can give us a statically
linked version of this software, but given that they built for Linux using an
IDE that hides the difference between Linux and Windows builds, and installs
its own shared libraries but these devs didn't know to package up the
IDE's libraries nor mention it as an installation dependency... (Which means
they didn't do a test install on a fresh Linux system, they presumably
tested Windows and got a Linux version to compile and called it good...) I'm not
entirely convinced they know what static linking IS. The software is one of those
"open source except for our magic IP library containing the tricky bits
which is only ever going to be a binary because why else would anyone buy our
hardware? If it doesn't have closed source software driving it obviously the
hardware is worthless..." So while we can rebuild bits of it from source,
they're not the interesting bits, and the interesting bits have this forest
of C++ symbol name dynamic resolution failures, all different. Two odd numbered days back to back.
It's
not
like
there's
any
shortage
of
relevant
news
(and red cape
waving distractions from the troll party),
the even days are so I can talk about other things. I suppose I could try to focus on some good aspects of politics, such as
how the Sears Catalog fought racism a hundred
years ago, before an Ein Rand devotee became CEO and destroyed it in a
leveraged buyout and looting, for example Sears owned all its own buildings
until he had it selling them all to him and then charged them rent
until he got all that money back _and_ now owned the land... Sigh, the Twilight of the Boomers has enough evil it leaks into all topics
unless you explicitly choose NOT to talk about it, and set aside Boomer-free
days. I really need to look up where the Austin protests are and start going to them. The GOP (or what's left of it) is literally trying to destroy the post office, which would have a huge
impact on everyone's lives. Voting by mail
was always
a thing, it's not new the GOP simply hates _voting_. They
replaced paper trails with
hugely biased electronic voting machines, and are now attempting to
eliminate all remaining ways to vote that leave a paper trail.
The initial push for electronic voting was the result of the
2000 "hanging chads" election in Florida, which the GOP ran and the GOP
intentionally screwed up to elect their guy, and then used the chaos they'd
created as excuse to replace the equipment they'd used with
more easily hackable equipment that had no paper trail so recounts would be
impossible.
The CEO of the Diebold ATM company was a big GOP donor who literally
promised his new voting machines would cause the GOP to win Ohio then
went to jail bribing officials and falsifing
documents. Diebold makes ATMs which HAVE A PAPER TRAIL (it prints a paper
receipt for each transaction), but it insisted that its voting machines
could not possible have a paper trail because it was too hard. None of
this was believable, but they just repeat their mantra "both sides lie" and
use being in power to push through obvious lies which then become the status
quo, and Democrats can always be counted on to defend the status quo and
pardon Nixon if they ever get back into power. "No punishment, no reparations,
keep everything you stole, just don't do it again today." Instead when it comes
time to rewrite the "all eggs in one basket" voting databases the Diebold CEO
set up before he went to jail, outsource it to Russian hackers this time.
As long as you steal it a DIFFERENT way, the democrats don't mind. Their
job is to close barn doors after horses escape and then insist there's
nothing they could have done. George W. Bush
lost the popular vote in his first term (and
hacked the
recount), and the current guy lost the popular vote by multiple millions.
The GOP isn't even managing to look like they actually WON, they using all
their tricks to squeeze out technicalities. They do this at the
state level too, the south isn't inherently more conservative it's
just where plantation owners lived (due to the climate
spreading malaria
and thus requiring malaria resistant field workers from africa) and those
rich plantation owners used their money to buy control of local government and
use racism as a tool to divide and conquer the poor.
If we properly outlaw gerrymandering and let everybody vote (including
removing the modern poll tax variants like "voter ID requirements",
inability to vote with unpaid jaywalking fines and traffic tickets that
compound to $5000 within a month because you can't afford to pay them,
and school-to-prison pipeline felony convictions at age 16 that preent
you from voting for the rest of your life... without that, the GOP would
never win another election ANYWHERE. And they know it. When the democrats encourage you to get out and vote by entering
your information into a computer the GOP provided which tallies them
into a single database with no audit trail of any kind... The democrats
are Good Cop. Nancy Pelosi is a doddering octogenarian. We need more
than half the population on the streets PROTESTING so it's clear (to the
military) that the GOP numerically cannot have won the election, the
number of people protesting is itself a majority vote. (Gandhi called
a "general strike" where the majority of the country simply stopped working
until the british stopped trying to run things. A similar "going limp"
contributed
to the collapse of the Soviet Union.) So today the GOP is defunding the post office to attack voting paper
trails (regardless of the splash damage to the wider economy), but they're
flipping out when we want to defund the police. Except we know what happens
when you defund the police, because we can measure places that have done it.
Results are immediate and obvious, and _positive_. The protesters are peaceful, it's the
police who
start violence. The police are the ones being protested against
(for good reason), and
it hurts their fee-fees. So they attack and badmouth the protesters. The
level
of background racism among the boomers let
widespread police lynching
go unremarked, but not anymore. And those with more (money, power, etc) having their ill-gotten gains
seized and being dragged down to everyone else's level is THE nightmare
of plutocrats and autocrats everywhere. The 1% lives in fear of the 99%, it is their defining characteristic. Often what the Boomers object to is
people creating new spaces and rendering the
old ones
irrelevant, and then the newly irrelevant shriek at the sheer
disrespect
of Kids These Days, and privately form
hate
groups. Capitalism had bread lines in the 1930's, and
now they're back.
As the Boomers drown
their increasing hysteria
diverts money
from food/medicine/housing to police violence to suppress unrest
and hide
from scrutiny. Which leaves comedians doing good factual
summaries and passing it off as comedy. (Hence "The Onion merely documents",
which is what I used to say on twitter when linking to an onion article
that couldn't figure out how exaggerate something and was basically an
honest news report. At the moment they're finding
tiny
slivers
of
hyperbole
which is a tribute to the Onion writing staff if you ask me. The Boomers keep declaring war on nouns (drugs), concepts (poverty), and
emotional states (terror). Of course they're treating the pandemic as
a war, which was immediately lost. I think China's waiting to
invade taiwan until after our
election. Either Russia and the GOP manage to subvert another one
(at which point the USA is done as an international power and they can
do what they like) or they can strike in the lame duck period between the
election and January's swearing in ceremony while we're paralyzed with
the GOP going into full rebellion trying to replay the Civil War,
and then have Biden who will pardon everybody (and pardon Nixon again,
just for good measure) because the Boomers just want a return to a "normal"
when they still had functioning hip joints and any of their
original teeth. The
real
question
at
this
point
is
whether
the
Boomers
end
in
blood
or
die
of
old
age.
Clearly
it
doesn't
end
with
most
Boomers
still
alive.
There
are
plenty
of younger enablers
but without senile Boomers they tend not to have a
business model.
The rest of us know what to
do next,
the Boomers just have to get
out of the way. The fundamental problem (beyond Boomer senility) is heads didn't roll after
watergate (in which GOP president Richard Nixon's transgressions overshadowed
GOP vice president Spiro Agnew's
massive
unrelated bribery scandals), and heads didn't roll after GOP president
Ronald Reagan's
Iran-Contra scandals. The GOP has been corrupt for decades, and every
time the democrats got back in power they pardoned the guilty and let them
keep their ill-gotten gains, and rebuilt the economy so they could
do it
again and again. The democrats are Good Cop. Good Cop is still a cop. Right now we need
to unite against Bad Cop which has gone full fascist (to the point even
the plutocrats have lost control of them), but don't for a second
think they're the answer to anything. Good Cop is the puppet on the plutocrats'
other hand. That's why proper goals can't be half measures, but things like
"defund the police" (not "reform them by giving them even more money"),
"prison abolition" (not "reduce proviate for-profit prison populations by 10%"),
and "guillotine the billionaires" (not "more taxes to evade"). P.S. The guy who shot the protester in austin was
a US Army seargant who had previously tweeted that texas
protestors should be met with violence. (He claimed he drove through the
protestors by accident, and then shot a protestor because he was afraid,
after saying on twitter that violence against protestors would be good.)
Can't blame APD for this one.
And the bad stuff
you can blame them for mostly seems to be 2 months old at this
point? Looks like somebody in the management chain put their foot down. Plus
everybody's got body cameras that MUST STAY ON or it's taken as a sign of guilt,
and they release the footage publicly even when it makes
them look bad. (Who watches the watchers? EVERYBODY.)
Austin isn't perfect, but it's always been a lot more
liberal than its surroundings. P.P.S. AOC should be awarded both ears and the tail but right wing loons are immune to
embarassment (the KKK hoods block it out). Facebook is
as
responsible as Fox News for the current social crisis. Bug report from elliott
which I of course unnecessarily meddled with. I'm reading up on how USB works
under the covers, because the
high
speed USB turtle hats should be ready soon
(he had 3, but he comissioned several more so we can all have some). Jeff hasn't explicitly said that the USB 2.0 was published April 27, 2000 so the patents
should now have expired, but our general pattern of implementing
functionality tends to work that way. We start things about when the even
trolliest troll has to make a serious cost/benefit analysis about suing us
over them. USB is full of historical nonsense: USB 1.x had "low speed" (for keyboards
and mice) and "full speed" (for data transfer), and then USB 2.0 added
480 megabit per second "high speed" mode, which is
way faster than "full speed".
High speed mode is a synchronous encoding with a "microframe" every 125
microseconds, which is 8000 packets/second. The reason so much is done in hardware is we have to respond to handshake
packets in 1.7 microseconds (1700 nanoseconds) or our
device gets kicked off the bus. If we had a j1 running at 20mhz off a watch
battery, that would be 50 nanoseconds per clock cycle, which is 340 clocks
total to finish responding. Flushing all 16 registers to the stack and
loading them back in again from elsewhere, plus a jump,
would eat ~40 clocks going in and another 40 coming back out, using up
1/3 of your clock budget before you actually did any work. Handling a Linux
system call like "getpid" is something like an 8000 clock round trip
(and that's without contention and latency from the OS doing anything else),
so obviously you can't do this entirely in software under a conventional
operating system. All we have to do is send an ACK/NAK/NRDY packet, but we have to send it
PROMPTLY. So generally they have the hardware do it, but that means the
hardware is reading packets and understanding what they _mean_, which is a
lot of state to track in a very complicated state machine. (Which is the
problem Jeff had with his first attempt, it was getting handshake packets
slightly wrong in a novel way that caused MacOS X to unplug the device and
Linux to kernel panic, and since we can't see what's wrong we can't fix it.
It's too much data for a scope to store, so he's ordered a USB packet
analyzer
from the internet.) What I really want to do is get
J1
threading and in-CPU dma implemented, and then either
port lufa or write something
similar so we can do USB support mostly in software rather than an elaborate
VHDL state machine. The usual alternative to having an elaborate VHDL state
machine responding to packets is having a dedicated CPU that does NOTHING
ELSE but repond to the USB packets, which is why it can guarantee responding
in the 1700 nanosecond window. (Lufa is such a dedicated stack for an
8-bit atmel processor. I need a superh one for new hardware, and may wind up
having to write something new, but we'll see.) But I don't want to waste a dedicated CPU, I think a j-core can handle
this itself while running other code. And not relying on a fancy hard
realtime OS, but having the hardware call code in response to interrupts
directly with extremely lightweight context switching. The tl;dr on CPU threading is "use the thread number as extra high bits
accessing the registers out of SRAM" which lets us switch from one to
the other avoiding most of the store/reload dance (although in reality
it's still gonna take 3-5 clock cycles to swap). The tl;dr on in-CPU DMA is
"when DMA READY goes high, instead of feeding the next instruction out of RAM
into the instruction decoder, feed it a fake instruction saying copy from
DMASRC++ to DMADEST++", and in reality you'd only do that on even numbered
clock cycles (or every third cycle, or every fourth... power of 2 is
trivial, small 2 or 3 bit counter is cheap) so as not to starve the CPU.
But doing this reuses the existing data busses and everything, no new routing,
no new multiplexers, AND while it lowers the CPU throughput it DOESN'T
introduce latency spikes. (It's basically throwing in a lot of wait states
for the running program, but they're evenly spread out.) But the main advantage is NEITHER requires
significant extra circuitry, our ICE40 register file already lives in a 512
byte SRAM we use something like 22 4-byte
registers out of (the 16 numbered ones, SR, GBR, VBR, PR, and a couple of
TEMP registers internal to instruction
implementations), and if you round that up to a power
of 2 that's 32 registers using 128 bytes, so 4 threads fit in the existing
SRAM. In reality, there's some registers like the multiplier high/low stored
outside the register file, and every time you load a new value into PR
(I.E. jump) there's a wait state because this decision is being made in
stage 2 of a 5 stage harvard pipeline (same reason branch delay slots exist,
you've already fetched the NEXT instruction from ram, might as well use it).
So the ACTUAL thead switching overhead is
going to be at least 3 clock cycles, might be as many as 5 depending on what
we can and can't parallelize in our implementation. But as thread switches go,
that's still pretty cheap. If every 125 microseconds (125000 nanoseconds,
6250 clocks at 20 mhz) we get an interrupt to deal with whatever came in
this microframe, and we spend 300 clocks dealing with it,
that's 5% overhead. I'm not JUST trying to solve the immediate problem of "new customer project
needs high speed USB interface", I'm also trying to solve the "ICE-40
J1 would be way cooler with USB serial interface", which needs a USB stack,
and we haven't got space for a large VHDL state machine but if we can do
a mostly software implementation... The Resident is so incapacitiated by dementia that the governor of Oregon
negotiated with the vice president to remove ICE from Portland. That's probably why GOP
kidnap
vans
are abducting protestors
in NYC now, some of their highly limited klanpower got freed up.
(They're not yet disappearing them, but they
continually
escalate
because they're perpetually losing. They're going to keep doubling down
on their busted flush until the Boomers die.) The Resident's dementia has become
completely incapacitating.
An alcoholic who gets pulled over doesn't spend days bragging about
passing a sobriety test. Spending days bragging about passing the
dementia equivalent is itself a symptom. But the Boomer Media
(especially the racist Grey Lady) continue
to see every lucid moment in the sea of senility as a "new tone" and
"return to normal" and so on.
(The disappointing part is how the old Boomer news media fall for
such stupid
gambits.) Acting
president Barr is getting
grilled by congress, but Nancy Pelosi will never allow another impeachment
despite the fact the democrats should have been having them as often as the
GOP has tried to repeal Obamacare. One for each new impeachable
offsense. Late stage capitalism is the real problem behind Police being able to
steal anything from anyone at any time
and get away with it, up to and including evicting you from your house and
selling it because they don't like you. (They do bad things to brown people
first,
then expand their reach. We wouldn't have police tanks and armed drones
in US cities if we hadn't been endlessly at war in Iraq and Afghanistan for
multiple decades.) But the reason you can tell it's late stage capitalism's
fault is that "Is this constitutional"
gets resolved with a class action lawsuit
settlement for cash. Because of course, the solution to
"can the police just steal from me at will" is to give the complainers
a small amount of their money back, without even promising not to do it again. This is yet another reason we need to abolish the police entirely.
Here's a great thread about how
police unions
aren't actually unions. A couple years back HEB had "Awake!" brand caffeinated chocolate bars at
each checkout counter. They were like $2.50 each so I didn't get them often
(except when they went on sale for $1 each and I'd buy 20 at a time to
stick in the snack drawer), but even at full price it was a nice option to
have. Then one of the times I was out of town for a month, they'd switched
them all to Awake! caramel bars, which I never bought because I suspected
they worked like caramello, which is leaky liquid caramel that gets all
over your fingers so you can't type without getting the keyboard sticky. HEB just clearanced them all at 75 cents each, and I got one thinking "maybe
it's toffee, I'll buy them all at this price if it's toffee"... and now
my fingers are sticky. (And I can't put the wrapper back in the backpack
pocket the bar came from, because of long strings of candy bar drool.) The reason to guillotine the billionaires is that they are murdering the
rest of us. The reporter behind the Panama Papers story
was murdered for reporting billionaire
tax evasion. Brexit was also about billionaire tax evasion. And the US
republican party is about tax cuts for billionaires, increasing
inequality, and increasing racism to pacify/distract the 99%. Protests
continue
around
the
country.
The military
and police are two unrelated jobs, often mutually exclusive. What police really do these days is
revenue collection, which is why they keep
inventing
crimes. The protestors aren't the ones rioting, the
police are rioting.
And now Austin is on the front lines,
although... I'm not sure about this one? The local police have
reacted badly all along
(when the protests are AGAINST YOU, maybe you should recuse yourself from the
situation and just not confront the protestors). But the guy who just got shot
(by a driver he approached, not anybody openly working crowd control)
was one of those "open carry" types who thinks being white means he can
brandish an assault rifle at all times; bringing one to a peaceful protest
defeats the purpose of HAVING a peaceful protest, yes ESPECIALLY when the
people protested against turn violent.
A peaceful protest only works by
remaining peaceful,
war is a different approach with different goals. But then martyrs don't need to be perfect. That's why creating martyrs
is a bad move, politically. The guy who died did not fire first,
seemed to be acting to protect others (the driver tried to drive through
the protesters, albeit didn't hit any), and left a quadraplegic widow without
a caretaker. Regardless of nuance, those things remain true. Austin's protests are just one of thousands of
cities protesting.
The focus
hasn't
shifted,
the GOP/confederate racists are trying to
add
fronts simultaneously but they're already stretched thin. The ICE level
racists are a tiny minority at capacity trying to flex on portland and
seattle. Early on the racists sent saboteurs into the minneapolis protests but
got spotted immediately, it turns out planting people to incite
riots (a classic nazi technique embraced by the modern GOP)
doesn't work so well in the days of ubiquitous cell phone cameras. Then
they tried to intimindate by concentrating their klanpower to make
expamples out of especially liberal cities. But they're clearly
acting
out of weakness. So I _think_ this was a local hiccup? We'll see... The New York Boomer Times is still at it.
These "both sides" clowns think pardoning Nixon was the best move ever.
Both sides are not equal. Yes, Good Cop/Bad Cop are both puppets of the plutocracy
but right now? The priority is on ending Bad Cop, followed by neuremberg
trials. The Squad may not be popular in their party, but they exist and give us
something to expand upon. If the democrats want to actually start performing
the role they've pretended to play and finally let go of the carrots
they've dangled out of reach for generations, we can work with this.
Of course they won't until the Boomers die, but that's not far off.
Vote against in the primary, for in the general, force them to be what
they PRETEND to be, and above all
guillotine
the
billionaires. The toysh binary ("make sh" on x86-64, dynamically linked) is 65k so far,
which is uncomfortably large. That's twice as big as "make sed".
(Admittedly /bin/bash on devuan is 1099k so I'm doing better than that,
but still. For a toybox command, this is serious chonk. The busybox 1.24.1
I was using in the old standlone mkroot, builds a version with just hush
in 76k, which implies I have 11k left, but then mine is supposed to do a
bit more than theirs. I dunno what busybox ash would come to because I
haven't got a standalone build of just that command set up, and doing so
under current busybox seems far too much like work.) The first is IFS_SPLIT, second isn't. The third IS.
Great. Ok, which nosplits use IFS and which force space?
The x= assignment uses space... Triage of all current variable expansions (in my standard indented bullet
point format): If you want to understand how "modern monetary theory" (I.E. the way it
turns out
a stable modern economy can just print money and inflation doesn't happen)
works, watch this video where
Richard Garriot
explains how Ultima Online's economy was broken by players hoarding
stuff, so they fixed it by constantly injecting new resources into what
had been designed as a closed economy recycling the same resources.
For "players hoarding" substitute "billionaires" and for "injecting resources"
substitute "printing money" and oh look, a scale model of what they're
proposing to do to get around rules-lawyering munchkin
assholes
making life suck for everybody else. Late stage capitalism boils down to insecure white males holding and
creating bullshit jobs, combining impostor syndrome with dunning kruger
to
screw up
what productivity everybody else manages in spite of them.
They openly
destroy good infrastructure, without even
trying to hide it anymore.
They
suck up resources not meant for them
and ignore real needs (I.E.
impose externalities),
corner the market on things like
drinking water and literally
work people to death.
(Remember, slavery was all about money, capitalists only gave it up because they were
physically forced, they still do it through the
prison loophole which is why private prisons are big business,
and they would love to fully reinstate it.) Take capitalism out of the equation and
infrastructure
naturally arises that functions way better. Capitalism (and
entitled old white men) are just getting in the WAY. The most generous
possible interpretation is they're clueless idiots
focusing on the wrong things,
but in reality they're the source of most problems (such as climate change)
and literally _are_ the rest of the problems (racist violence, spiraling
rent and evictions leading to homelessness). And in reality, there hasn't been any connection between the amount the
government takes in and the amount it spends since we went off the gold
standard most of a century ago. The point of taxes is to keep inflation
down, and you do that by taxing the corporations and billionaires who have most
of the money, not by taxing poor people who can't afford to get into a bidding
war for their daily necessities. When the economy expands, you need to put
more money into it. When the economy contracts, adding money to it usually
makes it expand again. (Even in the midst of a pandemic, the stock market
is at record highs because the federal reserve is printing money to loan
to corporations at 1% interest, lower than the rate of inflation.
"Buy corporate debt" means "loan money to corporations", it is literally
that thing.) The current politicians will never do this, of course, because they
cannot conceive of an alternative to capitalism. This spring's $2200 billion
stimulus bill
spent $290 billion on sending $1200 checks to individuals,
another $260 billion on the $600 unemployment benefit, and $180 billion
went to hospitals (IN A PANDEMIC). The remaining $1470 billion
went to corporations (including $280 billion of TAX CUTS).
I.E 1/3 of the total went to people, and 2/3 went to
propping up capitalism. Stop arguing about what we can "afford",
guillotine the billionaires already. (Yeah, the trumpocalypse continues,
they're still
assholes, and speaking of money we need to
defund the police. The better funded side is not always the
more
effective side, "sufficient" money usually just takes
money off the table.
) The average 911 call response time is 10 minutes, the fastest in the
country is San Francisco with just under 6 minutes. The main job of the police
(other than traffic tickets) is to show up after a crime is over and
gather
evidence to find out who did it. A tank is not an ideal tool
of forensic investigation. This is why calling what the USA did in Vietnam
a "police action" was stupid: police operate on the consent of the policed.
In an environment where 99% of the population is civilians, job #1 is to find
the guilty party in a crowd of innocent people. The military operates on entirely different principles, it takes action
against groups where every member is presumed hostile and fired upon en masse.
The military does the OPPOSITE of what police do, they kill people they've
never met. But Nixon's GOP clowns never understood that, so they didn't just
flub vietnam, they also militarized the police back home. Now in the USA police
are acting like military, and turning the entire populace against them
(just like in Vietnam). They make videos bragging "here's our new tank,
step out of line and we'll use it on you!" In doing so, they lose the
consent of the policed. Vietnam showed the limitations of the military
when the "enemy" doesn't give you the courtesy of standing in rows all
wearing the same color shirt to easily identify them. If you fire into a
crowd of 1000 neutral people and 1 "enemy", you vastly increase the
number of opponents who want your military eliminated. Using torture
devices (teargas, rubber bullets, sonic cannons) instead of things
designed to kill quickly still count as firing into a crowd. I posted at least the start of a proper writeup on how
countering Ken Thompson's trusting trust attack
provides a framework motivating toybox and mkroot's current development
goals. Probably that should be in the toybox FAQ somewhere? Humans are weird. Update your system for security patches? Not a priority.
Update for new emoji support? Early and often. (Eh, bribes work.) Ok, where did I leave off? Environment variable assignment wants wildcards
to glue together results. Redirects want the "ambiguous redirect" error
message for multiple returns. HERE documents don't do path (wildcard) expansion.
Those are the only three case I currently have dealing with this... Ok, how about if expand_one_arg() takes a str *err argument that says what
error message to emit if the expansion results in multiple arguments, and
if it's NULL it glues them together and returns the one argument? AHA! No, the assignment does NOT want the glue together behavior, the assignment
wants the no wildcard expansion behavior, and then printing an unquoted variable
will do an expansion because wildcards happen after variables. Which is actually what my current code is doing via (NO_PATH|NO_SPLIT),
the command line test I did last time was wrong. Hmmm. In theory the reason "abc < todo*txt" is ambiguous is the order is
undefined. It should take the first split word as the redirect filename and
make the rest arguments to the command, BUT the filesystem can return multiple
files in any order, and can
do so different times on different calls (because the directory may be a
funky hash table style tree under the covers). Which implies that other
split types WITH a defined order would not be an error: And it fails the same way. Sigh. Common code
path I guess, even though the argument order is clearly defined and the
first one is the argument that binds to the redirect. The New York Times is
by and
for Boomers, exclusively.
Boomer Senility is in full-throated "get your government hands off my medicare"
stage, currently saying "don't use this troubled USPS thing the GOP is
destroying, just use regular mail". no really.
Boomers think that anything that's been there their entire life is a force
of nature which cannot break and
does not need to be maintained. Boomers
remain infantilized, never having to know how anything works, just shout
louder if it's not happening fast enough. And that was BEFORE they went
collectively senile and started projecting their deficiencies on
everyone else. The frustrating part is we've lost capabilities we used to have,
many of which skipped over Boomers entirely. This "test and trace" thing
the USA utterly can't manage for Covid-19 is how we defeated smallpox half
a century ago, but it wasn't the Boomers who did it. Do the math:
the World health Organization was founded in 1959 with the goal of
eradicating smallpox, and the last known smallpox case was in 1977.
The Baby Boom started in 1946 (9 months after World War II ended) and
peaked in 1955. That means when smallpox eradication started the oldest
possible Boomer was 13 years old and the average boomer was 4, and
the last Smallpox case happened when the oldest Boomer was 30 and the
average Boomer was 22. It wasn't the Boomers who did it, it was their parents
the "Greatest Generation" who switched from fighting nazis to fighting
smallpox after the war, possibly with the help of a few Boomer interns towards
the end there. Boomers didn't land on the moon, either. During Kennedy's 1961 speech saying
we would, the oldest Boomer was 15 and the average Boomer was 6. The 1969
landing, oldest Boomer was 23 and average 14 (Neil Armstrong was 38).
The last moon landing was 1972,
when the oldest Boomer was 26 and average 17. The Boomers getting old enough
to hand the project over to is when it STOPPED HAPPENING. Boomers are useless, they personally took credit for things their parents
did, and assumed everything "we know how to do" would continue to always be
possible without them personally ever having to learn how to do it or put
in any effort continuing it. They're wastrels who ran down the vast family
fortune they inherited and are now beating the impoverished servants whose
lives they've ruined. And they keep electing the last few dregs of people
born slightly before 1946 to run things for them (hence the plague of
octogenarians, the oldest boomer is currently 74), because they still don't
see themselves as adults. The GOP deployed ICE to Portland, because last year they let ICE deport
anyone, anywhere,
without a hearing.
Yes, including US citizens.
ICE has already BEEN secret police grabbing US citizens off the streets
for a year now, we just didn't notice because started out on brown people.
Racism gave them
clearly unconstitutional power
which is now being
turned against everyone else,
and the local police are
inviting ICE in.
These clowns literally teargassed the mayor of Portland
(have
a video),
and now they're
preparing to attack Seattle. Abusers use
you flinching from them
as an
an excuse
to
hit you.
They will always have
a justification
for anything they do in any circumstances.
while the other side is
never justified no matter what
and
no level of escalation is ever enough to overcome their fear. Rich white men
wield racism
because it's profitable. It's not just dried up old Boomers, the
tech douchebros
of silicon valley invented the gamergate
rabid puppy nazi frog brigades. There's a reason I've never had a
Faceboot
account, and I hope they implode.September 2, 2020
September 1, 2020
August 31, 2020
August 30, 2020
August 29, 2020
August 28, 2020
$ x=$i env | grep ^x=
x=
August 27, 2020
August 26, 2020
$ x() { case "$@" in "a b") echo hello; esac;}; x a b
hello
$ IFS=z; x() { case "$@" in "a b") echo hello; esac;}; x a b
hello
$ IFS=z; x() { case "$*" in "a b") echo hello; esac;}; x a b
$ IFS=z; x() { case "$*" in "azb") echo hello; esac;}; x a b
hello
August 25, 2020
August 24, 2020
August 23, 2020
August 22, 2020
August 21, 2020
August 20, 2020
August 19, 2020
August 18, 2020
August 17, 2020
August 16, 2020
August 15, 2020
August 14, 2020
August 13, 2020
August 12, 2020
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.1.1 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 3.0),
and your program used 3.1.1 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 3.0).
Aborted
August 11, 2020
August 10, 2020
August 9, 2020
August 8, 2020
August 7, 2020
August 6, 2020
$ echo $((case a in a) echo hello;; esac))
bash: syntax error near unexpected token `)'
$ echo $(case a in a) echo hello;; esac)
hello
$ echo $(if true)
bash: command substitution: line 2: syntax error near unexpected token `)'
bash: command substitution: line 2: `if true)'
$ echo $(true &&)
bash: command substitution: line 3: syntax error near unexpected token `)'
bash: command substitution: line 3: `true &&)'
$ case a
> in
> a) echo hello;;
> esac
hello
// String a does not match string b. a can be null, which will never match b.
int strnot(char *a, char *b)
{
return a && strcmp(a, b);
}
- if (dir && strcmp(dir, mm->dir)) continue;
- if (dev && strcmp(dev, mm->device) && (dir || strcmp(dev, mm->dir)))
+ if (strnot(dir, mm->dir)) continue;
+ if (strnot(dev, mm->device) && (dir || strcmp(dev, mm->dir)))
August 5, 2020
August 4, 2020
August 3, 2020
August 2, 2020
libwx_gtk2u_unofficial_adv-3.1.so.1 => not found
libwx_gtk2u_unofficial_core-3.1.so.1 => not found
libwx_baseu_unofficial-3.1.so.1 => not found
August 1, 2020
July 31, 2020
July 30, 2020
July 29, 2020
July 28, 2020
July 27, 2020
July 26, 2020
$ IFS=x
$ xx() { abc="${@}";}; xx one two three; echo "$abc"
$ echo "$abc"
one two three
$ xx() { abc="${*}";}; xx one two three; echo "$abc"
onextwoxthree
$ xx() { echo "${!@}";}; onextwo=123; xx one two
123
expand_arg_nobrace:
recurses once for ${!@}: $@ with NO_PATH|NO_SPLIT, uses IFS=x for both
expand_redir:
expand_arg(0) when not redirecting
expand_one_arg(NO_PATH) when redirect not HERE (WHY NO_PATH???)
- this is where ambiguous redirect error message goes?
- should be yes path but no split
expand_one_arg(NO_PATH|NO_SPLIT) for <<< (uses IFS=x for $* not $@)
expand_one_arg(5 different flags) for << <<-
- Here document body expanding $* uses IFS=x, not for $@
run_command:
expand_one_arg(NO_PATH|NO_SPLIT) for variable assignment, neither IFS
run_function:
expand_arg(0) in for list (and expand_arg("\"$@\"", 0) for empty list)
eval_main:
expand_one_arg("\"$@\"", SEMI_IFS) neither IFS
July 25, 2020
July 24, 2020
$ X=todo*.txt; echo "$X"; echo $X
todo*.txt
todo2.txt todo.txt
xx() { cat < "$@"; }; xx todo.txt todo2.txt
bash: "$@": ambiguous redirect
July 23, 2020
The GOP/Boomers/techbros ignore any law they find inconvenient and of course ignore their own stated principles. The arrests of protesters are another form of voter suppression. But then that's what the school to prison pipeline has always been about, if you're a felon before age 18 you never get to vote. But they hate to be called on it, it hurts their fee-fees, even when their justifications are ridiculously thin.
Lots of american police-adjacent institutions like homeowners associations were invented to enforce racism. Police have always thought the rules don't apply to them, but they've gone a bit far this time. Philadelphia's top prosecutor is prepared to arrest federal agents. In peacetime the Boomers would have another 14 years of nursing home retirement (half of all WWII veterans' children were born before 1955, plus average US lifespan 79 years = 2034) but they are NOT going quietly. Then again some demographers consider those born after 1955 to not really be boomers and instead stick a decade between Boomers and GenX of people too young to remember korea or participate in vietnam, and whose formative experiences were watergate, the oil embargo, and AIDS. If we only have to wait out the OLDER boomers and can reason with the younger ones, this is much more survivable.
Patton Oswalt thinks that GenX will be just as problematic when we get to be the Boomers' age, but GenX never defined a generation the way the Boomers defined "the sixties" (and "the seventies", and "the eighties"). I HOPE the rest of us are less likely to still be trying to drive long past the point of competence. We aren't addicted to being in charge because we've never BEEN in charge, we always reported to some Boomer who kept all the money for themselves and would never leave. No other recent generation has grabbed the levers of power and refused to let go for 50 years. GenX doesn't get that long to enjoy a lack of Boomers and we have to spend the rest of our lives cleaning up all their messes (from income inequality to global warming), but at least at some point they stop making it worse because they're all dead.
There aren't ten wildcard characters there are eleven, because | in the parenthetical blocks is a special character (when not "quoted" or \escaped). In fact the @(block) only makes sense when you have | because it says match exactly one of the | separated patterns: ?() is 0 or 1, *() is 0 or more, +() is 1 or more, @() is EXACTLY one, and !() is inverted (match anything that does NOT match any of these patterns), which... I need to come up with greedy vs non-greedy tests for the inverted case don't I? To see which one it's doing?
All of which means I get to write my own glob plumbing, which I _last_ did (fresh out of college) for OS/2 Feature Install in 1996. (I remember that ***** consecutively was a pathological case with basically O(N^x) search behavior, and that I later figured out "oh, I can just drop all consecutive * after the first because it can't change the match", but probably didn't because it was unlikely to ever come up. I was young. And IBM was working me 90 hours a week and paying me for 40 because we were "exempt", which is a fancy way of saying software developers have not yet unionized. (Which is great in the "non-competes don't apply to silicon valley, you can go to work across the street the next day" sense, but sucks in most other senses. Basic income and medicare for all beat unions any day: no funky regulatory capture Jimmy Hoffa style bureaucracy becoming the enemy of its original nominal goal, but you're free to walk away from a bad job because you always have the option to NOT do it. And people clutching pearls about the shrinking labor force from THAT should stop and think about what declining birth rates and college getting priced out of anyone's reach is likely to do to skilled labor. But that's for odd days, this is an even numbered day. :)
I still need to remove the extra asterisks: they're an active wildcard, not a literal. But I don't need to do the funky speculative match and unwind thing for consecutive asterisks after the first. (How WOULD Popeye pronounce asterisk? Randy Milholland would know...)
The speculate and unwind thing is because x="banana" being globbed with p="b*a" eats the b at x[0] satisfying p[0] and advancing to p[1]='*', which means advancing to p[2]='a' which matches the a at x[1] and thus continues to p[3] = 0 looking for end of string, does NOT see end of string at x[2] and backs up to p[1], and starts looking at x[1+1] which coincidentally is where it was next but the important thing is it expanded the * range by 1 (we could have advanced further with a larger pattern partially matched, but the asterisk stack pop should resume from there)... and that "failed to match, backing up" means we have a STACK of trial locations, one for each * we've hit so far (with corresponding size of the range it's tried to match so far, starting from zero and incrementing by one each time), which is how *?* can do a LOT of checking. Each time we fail we back up one asterisk in the stack and advance it until it hits EOF, at which point we back up to the previous asterisk, and if we run out of asterisks we didn't match this string at all.
There's optimizations like if you know the length of the string and number of literals left in the patter you can tell if there's enough space left you COULD match however many literals you have, but Linux VFS limits filenames to 255 bytes long, so the common case fits in L1 cache. Yeah case statements can work on arbitrary environment variables, but just grinding the search out should be enough for almost all cases? Wait for somebody to complain...)
Hmmm, can it do a redirect in a NO_SPLIT context? Yes it can. And when it DOES try to split...
$ cat < todo*txt bash: todo*txt: ambiguous redirect
Custom error message. Of course. Hmmm, what should I do about that...
THIS case isn't a "glue results together with space", this is "multiple results is an error". Which probably goes through the expand_one_arg() function, which catches split attempts and returns an error. Even when it passed _IN_ the NO_SPLIT flag. And I _want_ this to be an error, not an attempt to open "todo.txt todo2.txt"...
Ok, every use of NO_SPLIT is a call into expand_one_arg(), which already has to handle error because ${x?y} and such, so multiple wildcard expansion is just another such error. Having it report the error properly is an interesting question though...
Except X=todo*txt _does_ want the "glue together with space" behavior, there are cases that want one behavior and cases that want the other and my current flags aren't granular enough. Don't perform IFS splitting vs glue together legitimate multiple results returned from wildcard expansion: expand_one_arg() can't currently distinguish the two, possibly it needs to be more than one function, or some calls need to inline what it does and handle the "multiple results" case differently? Hmmm... What else CAN return multiple results? Bracket expansion, IFS splitting, wildcards. Probably something horrible with arrays but I'm still going "la la la" with my fingers in my ears about that, but "$@" definitely can and I special cased gluing that back together for NO_SPLIT (dropping it down to $*).
You know, I'm pretty sure ${x@Q} does NOT then check the result for wildcard expansion. I hope it doesn't...
$ touch "'abc'" $ X='*' $ echo ${X@Q} 'abc'
Of course it does. The output just LOOKS quoted, it only really IS quoted when you feed it back in again. Note to self: remember to always double quote ${x@Q} expansions...
This thread is a good self-contained explanation of why police budgets need need to be zeroed out. Don't just abolish ICE, abolish police departments. Nancy Pelosi and Chuck Schumer remain utterly useless. which should come as a surprise to nobody. (Voting for Good Cop is still voting for a cop. They can actively cause problems or claim to be powerless to stop them.)
There are no "test cases", fascists continually escalate, constantly pushing to see what they can get away with. This is WHY you punch nazis. They've deployed ICE in cities against the populace we need to find who is doing it and prosecute each and every individual. As with neuremberg, "I was just following orders" is not a defense. And most of what they're doing isn't even following orders. The current prison system serves a purely racist purpose. Bastards continuously lie. Meanwhile antifa continues to do the thing.There are other quite interesting things I'd love to write more about, but haven't got the energy.
I've circled back to wildcard logic, and luckily I left myself a trail of breadcrumbs from last time I was poking at this, because I went "this wildcard detection/recording logic has no business being in the main loop of expand_arg_nobrace(), just have wildcard_add() scan for wildcards since a $VARIABLE can expand to active wildcard characters so you have to do it later anyway"... except the REASON I did it early is my logic removes "quoting" and \backslash escapes before calling arg_add() with the results of IFS splitting, and that indicates which wildcards are live and which are kept as literals. So I need liveness metadata, which is what that was collecting.
Modulo the processing at the start of the loop isn't enough, it needs to process both the input string AND the results of various $(expansions) to collect the full list of live wildcards. And each call to wildcard_add() wrapping the old calls to arg_add() has to flush the wildcard parsing stack which could involve incomplete [brackets] or +(regexes), ala:
$ touch a; A=abc; IFS=b; echo [$A] [a c] $ touch a; A=abc; IFS=; echo [$A] a
Portland is under siege and the administration has announced plans to take it national. The inciting incident is a federal building got graffitid, and their fee-fees got hurt. The predictable result of the jackboots is that the size of the protest immediately doubled. The republicans are not a legitimate government ( link link link link link link link... Does he really need to money launder AS president?) It's violent plutocracy which has been based on lies for decades (Heck, they've even managed to violate the geneva convention.)
The boomers need to stop This whole mess is the death throes their worldview. The Boomers' Good Cop candidate is insisting that Warren will shape his domestic policy... Ok, so why did he run against her then? Is he honestly trying to hepeat Warren's entire campaign?
Meanwhile, the useless police arrest emergency workers in the midst of saving lives, another reason to zero out their budgets.Meanwhile, China has gone full concentration camp, has rolled the long-threatened tanks into Hong Kong, and I strongly suspect they're readying to invade Taiwan. (Because right now they're not even in our top ten political crises, and know it. When will they ever have a better opportunity?)
Now that I've got the basic ${x#y} parsing infrastructure into toysh, I'm going through the tests and hitting things like "it doesn't understand the 'case' statement" which is because "abc) echo hello;;" needs wildcard logic for abc.
I have about the first half of wildcard plumbing implemented, then it gets... fiddly. Hmmm...
So, Boomerdamarung. The Year of Hindsight. The Trumpocalypse. This is about how I expected the Boomers to go: violent aggressive senility, trying hard to take the planet with them. We have to dispose of the boomers and the billionaires they worship before we can even start addressing things like climate change. Cops continue to explain why all their budgets need to be zeroed out. And the "prison" exception to the 14th amendment banning slavery continues to stretch. Meanwhile, the billionaires taking all the money has led to the entirely rational decision that nobody else can afford to have kids. Turns out your money isn't useful if there's nobody to buy anything FROM. We need to guillotine the billionaires. Change the law. Our current government is completely fictitious. Not just held in place via voter suppression and used as an excuse for massive embezzlement, but what it does do is fraud. David Graeber said there's only ever one revolutionary agenda: cancel the debt, redistribute the land.
Jeff and I gave a j-core talk to the British Computer Society today. It was followed by two other interesting FPGA talks: one on the new fully open bitstream compiler based on ghdl and yosys, and one on reverse engineering FPGA boards, because used boards with big FPGAs are much cheaper than buying new ones. In theory all three talks should be up on youtube sometime next week.
We were sent questions afterwards, some of which we responded to and some of which...
There are things Jeff does not want me to say on behalf of the project. Apparently mentioning that Japan had a lost decade gets Paul Krugman a meeting with Japan's prime minister, but if we say that SuperH lost its position as the bestselling chip in the world not because of the technology but due to the 1997 asian economic crisis (because after Hitachi handed it over to Renesas they never even did another die size shrink, but kept selling the same ~200 mhz chip with zero further manufacturing investment until chips made on a 10 year old fab process eventually stopped selling)... no, we can't say that, we'd be blacklisted. Even in a talk to british people, people would dial in and get offended and make it their life's work to stonewall us out of every possible future business opportunity ever, or something?
This is why j-core.org hasn't particularly been updated since 2017, and why I'm mostly silent on the mailing list: there's nothing I'm allowed to SAY without washing it through a committee and having it handed over to marketing people who make powerpoint. I'm used to that from big Fortune 500 companies, but from a startup? I will happily take a "that's not right, this is" correction, but "you're not wrong but we can't say it"? Working through the thicket of NDAs and the "must do a coordinated announcement with our customers" was one thing, but a marketing department and nebulous cultural politics that come and go depending upon context, I am not prepared for.
But there are also things I have trouble saying to my satisfaction, even without external judgement. I write and throw away a LOT of material trying t come up with non-confrontational ways to say things my audience doesn't want to hear, especially when baited by people who want to make their opposition look unappealing, as a professional tactic. (I think that ship has sailed within the confines of my blog, but I'm using it to vent stress since twitter's no longer available.)
Anyway, here's the email I composed but didn't send back to the BCS talk organizer. (Jeff replied independently, I'm assuming that covers it for the talk guys.)
On 7/16/20 2:12 PM, Sevan Janiyan wrote:
> Hi guys,
> Below are the questions/comments for your session, could you make your
> slides available or share them with me to host them if that's ok?
>
>
> Will you be taking advantage of the FOSSi/Google announcement to
> manufcture asics for open source designs over the next year or so? (
> https://fossi-foundation.org/2020/06/30/skywater-pdk ) - Andy Bennett
We've been talking to them for a couple weeks now. We hang out on the #j-core and #vhdl channels on their slack.
> would the xilinix parts be able to use symbiflow? - Drew Fustini
That's a Jeff question.
> for Linux on nommu, is there a way to support shared libraries in
> userspace? - Drew Fustini
> I believe ARM has FDPIC ABI for that? - Drew FustiniARM is a latecomer to FDPIC, superh support for fdpic started in 2008 and the first architecture that did it was frv I think?
There are two nommu executable variants: binflt is nommu a.out and fdpic is nommu elf. It's not that binflt doesn't have shared library support, it's that shared libraries in a.out were always horrific (it's not relocatable so you have to reserve a unique address range for each library your system will ever use, at build time). Linux switching from a.out to ELF circa 1995 was primarily driven by better shared library support.
So doing shared libraries in a.out is possible but most people don't bother, and doing shared libraries in fdpic is roughly equivalent to doing it in non-fdpic elf. (In theory it should just work.)
P.S. In THEORY you can make fdpic work on systems with mmu just as easily as nommu systems, but in practice the linux fdpic loader plumbing has gratutitous #ifdef MMU checks in it to break it on mmu systems, which is sad. As I said, some security guys were looking into using it on mmu a few years back, but apparently those patches never made it upstream.
> I enjoyed the presentation at ELC in San Diego a few years ago, is the
> turtle board still planned? - Drew FustiniYes, we did an updated version of it late last year (among other things using LX45 instead of LX25) which we're trying to get up on crowd supply now. We just didn't want to talk much about something that's not available yet.
> Do you expect people will choose J-Core over RISC-V because it's more
> tightly integrated? - Andy Bennet.
I don't, no. Jeff might?
Personally I have as much interest in what Risc-V is doing as in what Windows is doing. I find them profoundly technically uninteresting, and have no desire to work on that platform.
I'm seldom interested in any technology whose adherents feel threatened by the existence of competitors. I'm not trying to convert people to a religion, I'm doing engineering work that solves real problems in a way I hope other people find useful. Why did the developers of Linux expect people to choose it over BSD? Why did the gnome developers expect people to choose it over KDE? More people had never used EITHER. When you have 1% and they have 2% you focus on the 97% neither of you have rather than trying to block "the competition", unless you're pathologically insecure.
When the GNU project started, BSD already existed. When busybox started, gnu already existed. I maintain toybox, which I started after leaving busybox. Android ships toybox in its base OS image, which means there were something like 1.3 billion fresh deployments of toybox last year. And yet busybox continues to exist, and the dozens of gnu packages I made busybox functionally replace in a self-hosting build system back before handing it off also continue to exist.
Risc-V spends a lot of time marketing itself as "inevitable" the same way itanium, hillary clinton, and linux on the desktop did. That's not a statement of merit, that says you have no choice and will be forced to use it. If your best argument is inevitability, you've got a REALLY weak hand. (Look how many copies Windows shipped, how many users AOL had, clearly that's superior technology.)
I tend to avoid any technology whose adherents demand everyone else justify NOT using their thing. The way Python 3 was handled did not encourage me to leave Python 2. Yes when C++ guys boggle at my continued use of C, I _can_ go into a long technical explanation of why, but is that what they're really asking?
Then again I've had the "how dare you write new open source code competing with other open source code" argument aimed slightly more directly at me than most (https://lwn.net/Articles/478308/) and might be biased.
> Which requirements do you expect to split the market between J-Core and
> RISC-V? - Andy BennettI don't? Again, Jeff might. But me, I find the question baffling.
The linux arch/ directory has alpha, arc, arm, armv64, c6xx, csky, h8300, hexagon, ia64, m68k, microblaze, mips, nds32, nios2, openrisc, parisc, powerpc, riscv, s390, sh, sparc, unicore32, x86, and xtensa. (That's after removing blackfin, cris, frv, m32r, metag, mn10300, score, and tile as unmaintained.)
The first commit to the j-core internal repository was in 2011. The first open source release of j-core VHDL was in 2015. The linux arch/sh directory was added to 2.3.16 in 1999, and git log arch/sh/configs/j2_defconfig says it was added in 2016. All of which was before arch/riscv was added in 2017. Yes they spend way more on marketing than we do, but again so does windows.
I wonder why you're ignoring the continuing existence of arm when discussing "the market". Because obviously nobody's going to resume work on https://en.wikipedia.org/wiki/Amber_(processor_core) now that more patents have expired? Or that if a serious open competitor did emerge as a market threat to arm's dominance (which hasn't happened yet), Arm wouldn't do an open version? Heck, I wouldn't put it past Google to buy them and do that given https://asia.nikkei.com/Business/SoftBank2/SoftBank-pushes-Arm-to-focus-on-chips-ahead-of-possible-IPO (and Apple, which is switching its macs to arm, wouldn't exactly object; they love being open-adjacent. Clang/LLVM was an apple project (hiring the grad student and giving him a dev team), they recruited the freebsd developers to create darwin... Beyond that powerpc is open hardware these days, openrisc always was...
The Risc-V guys are motivated to put forth a marketing story about how inevitable they are and everybody else should just give up now, but Intel couldn't pull off making Itanium inevitable. "It's only us, you can't NOT talk about us, we are always so important that any conversation in this space can only happen relative to us"... meh.
I mentioned some of the things we found attractive about the superh technology in the talk. I'm not intersted in "but red hat enterprise has so much more money employing full-time engineers, and they paid the linux foundation to insert RPM into the LSB as the official package management format of Linux, so why does debian even still exist, let alone anything _else_". I sat through the ELC year when everything was Meego, the year when everything was Tizen... are they still saying everything is Yocto or is there a new one yet?
P.S. Jeff doesn't like me to talk about this, because if you respond to riscv with indifference that directly contradicts its developers' carefully constructed marketing aura of inevitability, some of them perceive it as an attack. It's not. Good luck to 'em. And to nds32 and csky which have been added to the linux arch/ directory since riscv was. I remember when java wanted to become "the software platform" the same way riscv wants to become "the processor". And now it's this javascript assembly "webapps" thing that wants to be "the platform". And lo, we shall succeed so mightily as to become the monoculture forevermore, alelujiah, amen. Where have I heard that before...
Remember when I mentioned the fdpic-on-mmu work doesn't seem to have made it upstream into vanilla linux? Personally I suspect it's because linux-kernel development has aged into a tight exclusive clique:
https://www.zdnet.com/article/graying-linux-developers-look-for-new-blood/
https://thenewstack.io/growing-new-linux-kernel-developers/
https://twitter.com/stillinbeta/status/1278185092792438791
Which of course didn't stop the fuchsia guys from getting a lot of blowback for exploring alternatives to it, of course. How dare they write new code when there was a "winner"...
I then made a second attempt to answer that last question more tactfully::
> Which requirements do you expect to split the market between J-Core and
> RISC-V? - Andy BennettWhy would the market narrow to that?
The linux arch/ directory has alpha, arc, arm, armv64, c6xx, csky, h8300, hexagon, ia64, m68k, microblaze, mips, nds32, nios2, openrisc, parisc, powerpc, riscv, s390, sh, sparc, unicore32, x86, and xtensa. That's after removing blackfin, cris, frv, m32r, metag, mn10300, score, and tile as unmaintained, for values of "unmaintained" that probably have more to do with:
https://www.zdnet.com/article/graying-linux-developers-look-for-new-blood/ https://thenewstack.io/growing-new-linux-kernel-developers/ https://twitter.com/stillinbeta/status/1278185092792438791than it does with blackfin's market share. (Or alpha, ia64, and parisc staying in.)
Sure j-core is open (and arch/sh/configs/j2_defconfig was added to Linux a year before the arch/riscv directory), but powerpc is also open and openrisc always was. At the height of "all the world's a vax" it wasn't true, at the height of "all the world's a 386" it wasn't either, and we're just now entering "all the world's an arm" where it won't be.
Speaking of ARM, why are you sure nobody's going to resume work on https://en.wikipedia.org/wiki/Amber_(processor_core) now that more patents have expired? Or that if a serious open competitor did emerge as a market threat to arm's dominance (which from their perspective hasn't remotely happened yet) that Arm itself would never consider pulling a netscape with an open base they could sell proprietary extensions to? Heck, I wouldn't put it past Google to buy them and open it given https://asia.nikkei.com/Business/SoftBank2/SoftBank-pushes-Arm-to-focus-on-chips-ahead-of-possible-IPO (Remember when they bought Motorola's phone business?) Meanwhile Apple, which is switching its macs to arm right now, wouldn't exactly object: they love being open-adjacent ever since they hired FreeBSD devs to create Darwin. Clang/LLVM was an apple project (hiring the grad student and giving him a dev team because they objected to gcc going GPLv3). They _want_ to be the 20% proprietary cap on an 80% open market.I find "inevitability" arguments tiring. I remember when the Java developers expected all software to be Java. I remember when itanium was The Future. I sat through something like 17 consecutive "year of the linux desktop". Proclaiming "inevitability" as a marketing strategy is as old as Sun-Tzu: convince your opponent that everything _not_ you will be swept away and everyone must jump on board this self-fulfilling prophecy now or be left behind. But personally I've always seen it as a sign of weakness: if that's your big pitch it means you're not leading with actual technical arguments in favor of their thing. Making a populist/intimidation argument that this technology is better funded and may have tied up distribution channels the way Windows was/did does not endear it to me either: I wasn't a Windows developer. I've never had a facebook account. I never had an AOL account. I remember the ELC year when everything was Meego, and the year when everything was Tizen. I believe everything is still currently Yocto unless somebody wrote the Linux Foundation a bigger check.
This isn't meant as an attack on Risc-V, good luck to 'em. And to nds32 and csky which have been added to the linux arch/ directory since riscv was. Maybe the people saying javascript webapps will render "the processor" irrelevant are right, and that will become the one and only type of software everywhere (somehow abstracting away the os kernel, which will be written in webassembly too... hey, Transmeta almost made that sort of thing work once upon a time)... but I doubt it. And I'm not really interested. It's not a new argument to go "And lo, we shall succeed so mightily as to become the new monoculture, perpetual and unassailable, alelujiah, amen, the future is already written", I've heard it before and it's BORING.
I expect ARM to be the dominant "big" processor over the next decade because the sheer momentum of a billion units per year would take a while to wind down, and because there's not a lot of headroom to get under a $5 raspberry pi zero with something cheaper. (You can get a cortex-m0 for 30 cents on alibaba in quantity 10; you can argue of "thumb2" and "aarch64" are the same architecture, but it's the same argument about whether the riscv "compressed" instruction set is the same architecture as the 32 bit riscv instruction set, isn't it? J-core is always 16 bits...)
Beyond the next decade, I really can't predict the future that far ahead? I expect to be surprised a lot.
I can tell you why the rise of x86 and arm happened: The switch to x86 was partly about design wins giving them distribution channels/volume, but the big driver was price/performance ratio (best bang for the buck). The switch to arm was initially driven by power consumption to performance ratio (best bang for the watt). Then arm sacrificed power efficiency to move into x86 performance turf, and x86 realized that power efficiency was a thing and did atom, and the two became less distinguishable and it became an ecosystem thing... I've given multiple talks about this already, http://www.youtube.com/watch?v=SGmtP5Lg_t0 for example.
I'm not sure "lack of per-chip license fees" is a strong argument for "displacing standardized high-volume chip runs" when a 45 nanometer mask costs a million dollars to make, and that is NOT a cutting edge fab. Cutting edge is 5 nanometer:
https://www.bloomberg.com/news/articles/2020-05-21/samsung-takes-another-step-in-116-billion-plan-to-take-on-tsmc
Cost of chip manufacturing has always been primarily a question of unit volume, you amortize the start-up costs over the largest possible production run because the fab is paying off BILLIONS in construction costs. At 5 nanometer, HUNDREDS of billions, with interest. "Everybody can make small runs of their own chip" helps the economics of this how exactly? With OLD fabs that have already paid everything off and are struggling to keep their doors open, sure. But by the time Moore's Law is stone dead enough a 5 nanometer fab is offering cheap academic shuttles, we are SO far into the future for all I know quantum computing and warp drives might have become real by then.
So if Risc-V wants to convince Apple to switch processors _again_, and to migrate Android and ChromeOS, and to take over The Cloud, and to come up with a raspberry pi replacement, and switch the business world off x86 windows machines, and replace arduino, and it's already a given that all this will definitely happen on a predictable schedule... I leave them to it? Clearly they don't need me if it's a done deal.
I think j-core is worth doing. I talked about some technical reasons I like j-core in the talk and could go into more. I could tell you about the relative merits of j2/j1/j0 vs cortex-m or atmel avr (the arduino CPU), new features we want to add, projects we're building around it, the work to extend the J2 SOC implementing patent-free HDMI support in the Turtle bitstream and switching from mmc to sd-1.0 as the patents expired (12.5 megabytes per second is SO much nicer than ~200 kilobytes per second to your main storage device, native compiling in 200k I/O bandwidth was painful even as a proof of concept)... and at the other end teaching j1 to do DMA and hardware threading while still fitting in an ice-40...
I do not find the Risc-V "there can be only one" thesis compelling. When the FSF stated writing the GNU command line tools, BSD already existed. When I maintained busybox, the gnu tools already existed. When I left busybox to create toybox I handed busybox off to the best maintainer I could find and continued to submit fixes and new commands to it for another 5 years (including a major redesign allowing busybox commands to live in a single file instead of spread out across 5 files, als http://lists.busybox.net/pipermail/busybox/2010-March/071855.html). These days toybox is part of the Android base image, meaning 1.3 billion new installations of it shipped last year. And yet busybox still exists, and is successful. The gnu tools still exist, and are successful. BSD still exists, and is the basis of MacOS and iOS.
J-core does not exist in a vacuum: our context includes cortex-m, and avr, and blackfin, and so on. We know what we want to do, and we know what THEY can do, and in that context we can confidently say we're good at our job. Risc-V wants to do absolutely everything, which means it has no idea what it wants to do. It's a solution in search of a problem, and every time anyone else does anything the question "why didn't you use Risc-V" comes up, and I'm very tired of it.
Every time Jeff has talked to the Risc-V developers and pointed out something J-core chose to do differently, the Risc-V developers add an extension to their architecture, making the chip bigger. Then they make the extension optional, so they can SAY it isn't bigger, instead the platform is fragmented and incompatible. But if you ignore that it lets them say their chip is small (because there's a version that is) and that their chip can win any microbenchmark you care to name (because there's a version that can). I am not interested in arguing with that.
You seem to be asking why we're ignoring Risc-V's marketing of itself as "inevitable", in the same way Itanium was (https://www.zdnet.com/article/dell-finally-signs-up-to-itanium-2/), the same way Java Applications and Linux on the Desktop were inevitable, the same way GPLv3 was inevitable, the same way https://www.wired.com/2009/12/st-essay-china/ was "going to have a profound impact on computers everywhere"...
You're asking the question of someone who doesn't have a facebook account, never had an AOL account, and was never a windows programmer. I don't find "inevitable" to be a very interesting argument, one way or the other.
As you can tell, my second attempt... didn't really help.
Anyway, there were a few more questions:
> Has j-core been implemented in any other soc toolsets, eg Migen > (Symbiflow) or SpinalHDL? - David Price
Jeff question.
> getting people started, have you looked at apio? - David Price
Jeff question.
> I'd love to see debian packages for the tools. Their AVR (and in the
> past, msp430) toolchains have been excellent and easy to install - Andy BennettI'd love to see more stuff packaged up. Which tools are you referring to?
I'm building the fdpic toolchain (cross and native) with musl-cross-make, and this week we've been discussing updates to the ghdlsynth build script I posted to the j-core list back in november on the #vhdl channel of mithro's sky130 slack. (If I check the build script into github, it might be possible to have a github trigger actually compile it and host binaries?)
You can run our fdpic binaries using qemu-sh4 but we need to do some work on qemu to add a turtle board emulator and proper j2 -cpu type. (It's sh2 with the sh3 bit shift instructions backported, plus cmpxchg.)
What I want to do is a proper getting started walkthrough as a youtube video series, but that implies people have boards. A couple years ago we tried to get people started using a cheap $50 board from India (the Numato Mimas v2) but other than bootling linux to a shell prompt there wasn't anything you could DO on that board. Turtle has a bunch of GPIO and I/O devices you can play with, and plenty of free space in the FPGA to wire up more hardware. The Mimas... didn't, and turned into quite the dead end for wannabe fpga enthusiasts.
So our next big todo item is getting the turtle boards up on crowd supply, and then maybe we'd make a docker image with all the tools preinstalled to get people started easily?
> Great stuff! Got me inspired, thank you! - Yuri Cauwerts
Glad you liked it. :)
> When will the MMU systems be available for mere mortals? - Valery Ushakov
Jeff question.
I still have the window open. I should make a third attempt at answering the risc-v questions politely and non-confrontationally. (I'm not a Risc-V expert. I wasn't a Windows expert either. People insisting I have to be a Windows expert in order to justify NOT using Windows pretty much guarantee I'm never going to care about their thing, but I don't want to spend all my time talking about THEIR THING instead of about my thing which I do have some knowledge of. Many people I want nothing to do with have a black belt in making everything always be all about them.)
Reading Google's approved license list and it's kind of fascinating. There's no actual link to 0BSD (which could use the spdx page which links to my own page on it so two links for one there, although the one paragraph description on Wikipedia[citation needed] is pretty concise), but the more interesting part is right after the license list they have one of those "Public Domain: threat or meanace" sections lawyers tend to do that doesn't QUITE explain what the problem is.
The problem is capitalism wants things to be owned. Even "airspace" has to belong to somebody. You can't just fly over land. Yes birds have been doing it for millions of years but YOU can't, that's somebody's air and their inability to fly doesn't mean they don't own it.
Releasing copyrighted material into the public domain is like releasing land into the public domain. There are public parks, but you can't just buy property and declare it public land: there's insane legal hoops you have to go through to NOT own it anymore, and then they'll say no because who pays the property tax? (It's a field with trees in it. Yes, but those trees get charged a fixed amount every year and must pay because CAPITALISM.)
Before the Baby Boom it was easy to abandon land, and it used to be easy to abandon copyrights into the public domain, but as Boomer Senility has boiled off all nuance, distilling extreme fundamentalist versions of old ideas, Late Stage Capitalism has reached the idea of anything anywhere NOT BEING OWNED as just... inconceivable. Radio frequences are not just owned but auctioned off for billions of dollars. (Isn't that basically a color of light? Yes it is! Don't the sun and stars and thermal noise shine in basically all frequencies? Absolutely! Now pay up.) We'll be assigning property rights in low earth orbit soon (that's MY orbit your satellite's in, pay me rent)...
So these days, if you want public domain equivalent code, you can't actually give up ownership because Boomer Senility won't let you. You have to post a "trespassers welcome" sign saying that everyone, everywhere, is welcome onto YOUR land that you definitely own because you can't NOT own it, and when you die it'll be inherited by some distant relative you've never even met who will try their hardest to squeeze every dime out of it so the permission statement had better be unassailably legally valid and nailed down hard. And half your sign needs to be "no lifeguard on duty, swim at your own risk" disclaimer crap or the lawyers insist you're Doing It Wrong.
When the last Boomer dies the rest of us can admit that capitalism goes on the Dead Philosophy pile with haruspicy, monarchy, the spanish inquisition, and pyramid building. It's a thing we did for a while, then stopped because it made no sense. And intellectual property is a facet of capitalism: even ideas can't NOT be owned. (Most artists want attribution and sponsorship, ownership isn't really either. You only really worry about piracy once you've conquered obscurity, until then it doesn't matter as long as they got your name right.) This is how society always changes, the kids believe something else and the geezers die still screaming defiance that Vinyl was Better than CDs while the rest of us aren't sure when we last used a physical CD drive.
All that oil china bought back when prices went to zero is coming into port and they can't store it fast enough. This is unlikely to increase future demand any time soon. 31 US oil companies have gone bankrupt so far this year.
The USA does not have any "self made men" anymore. William H Gates III ("Trey" to his friends) got the IBM PC contract for MS-DOS (despite his company being too small to qualify as a vendor according to IBM's rules) because his mother Mary was on the board of directors of the Red Cross with IBM's CEO and he made an exception for "Mary's boy". Jeff Bezos' parents gave him a quarter million dollars to bail out Amazon in 1995. Tax the plutocracy white and guillotine the billionaires.
Police continue to suck, in part because police unions are guilds, not unions. They're also charging protestors with gratuitous felonies and we pretty much burn down the whole system at that point. We're all just waiting for the Boomers to die. The fixes are easy they just involve guillotining the billionaires and redirecting the amount the government spends each year on maintaining inequality (from fossil fuel subsidies and racist farm subsidies to police protecting plutocrats' assets) to basic income instead. The Boomer media got tired of the protests, but the protests are still happening. The Boomers refuse to stop driving, but every crash is an excuse not to fix their car.
Got the next lump of toysh code checked in, after almost exactly a one month gap since the last commit to sh.c. This stuff is hard.
Now I'm debugging it and adding more tests, because "implemented a design that made sense in my head" and "it compiled and didn't introduce obvious nothing-works-anymore regressions" is not remotely the same as "done". In fact the new design implements ${x::} but not ${x//} regex stuff, or the case folding, or...
And one of the tests segfaults, with glibc's useless "here's a stack dump of an executable with no symbols, to scroll off the actually useful information, in a way you can't easily disable". Thanks, glibc: you remain the opposite of helpful. And not in a "you're a cat, you're allowed" way but in a "dishwashing liquid in the dishwasher, suds all over the kitchen" sort of way.
As much as I'm frustrated by musl, at least it's not a self-defeating self-aggrandizing front for fundamentalist prostletyzing that profoundly sucks at their nominal purpose while pulling effort AWAY from all the organizations trying to do it right. The FSF and PETA are the same class of organization: Does Not Do What It Says On The Tin, Instead Actively Harms its Stated Cause. In brief: avoid.
I may be a little stressed right now. I _know_ I'm irritable. Trying not to show it in my blog on even numbered days, though.
Heh, more evidence that the Graphics Interchange Format continues not to be the Giraffe Interchange Format.
Seattle Police Department vows that if their budget is cut they'll fire their black officers first. It may be hyperbole to say the cops are such assholes that nature itself is rising against them, but it may also be true.
The protests and Seattle's autonomous zone are having an impact, but it all needs to go. The whole system is rotten, guillotine the billionaires. No, seriously. Make that the law: if you hoard a billion dollars for a full year, it's a capital offense. That's plenty of time to give it away. Don't wimp out at the last minute, have the courage of your convictions. The end of the Boomers is the end of capitalism. Similarly, abolish the police is meant literally. (The Daily Show had a lovely interview on that which is where I learned that "reform" always increases police budgets, which is why deflection trying to switch from "defund" to "reform" never works.) Other movements like prison abolition also mean it literally.
But how could society possibly work without kings, without priests, without slaves, without ritual human sacrifice? (You can't just NOT cut people's hearts out and throw them into a bog, the sun would stop rising!) In reality a society cleansed of Boomer ideas could easily work better than it does now, and we know this because it USED to. The top tax rate was 90% until LBJ lowered it and still 70% in 1980. Before the Boomers corporations WEREN'T people, and before 1970 corporate executives had a responsibility to the employees and customers, NOT just "shareholder value" to the exclusion of all else.
The USA didn't even have an immigration policy until 1889, before that people just showed up. (Sure we persecuted some classes of people, african, native american, chinese, war with mexico... but that was pure racism refusing to acknowledge their humanity under any circumstances, not quotas of people allowed to come in and assimilate as citizens to avoid diluting the purity of WASP blood, that was a new idea the KKK had when they rejoined after the civil war and got back into congress to pass new laws. And yes, this was 50 years AFTER the irish potato famine with millions of people suddenly "showing up" in the USA, and eventually assimilating just fine. As with most suburbs being named after what was paved over to install them ("oak grove", "deerfield", etc) the Statue of Liberty's 1886 dedication marked the end of the poem on its plaque being true. "Yeah, we used to be like that. It made the country huge and powerful. Then parasite plutocrats took over during the Guilded Age, found racism an EXCELLENT tool the 1% could use to divide and conquer the 99%, and we stopped. Here's a gravestone for those ideals, a great big statue for the tomb."
The USA was founded by breaking away from from plutocrats (dumped their tea in the harbor), fought a civil war against plutocrats who insisted upon literally owning people, and stamped down the guilded age plutocrats (whose excessive parasitism caused the Great Depression) with FDR's new Deal and World War II solidarity. Then Reagan brought it all back (tearing out the taxes and regulation we'd put in place to prevent inherited generational wealth from accumulating) and we've got to guillotine the billionaires to get it back under control.
So when people say "Abolish ICE", they mean it. 19 years ago in response to the World Trade Center bombing the George W. Bush administration smashed border patrol and the customs bureau together into a single organization tasked with both letting people in and keeping them out. It was INSANELY STUPID at the time, but so was everything those "duct tape and plastic sheeting" clowns ever did. They were there to embezzle billions via haliburton and blackwater and such, actually running the government was only interesting to them when they could steal stuff or cripple things like the IRS and EPA that cost billionaires money.
ICE literally creates the problem it claims to address. We had an undefended border with canada through Y2K, the only reason the border with mexico was different was racism (and the legacy of our own banana republic meddling with Mexico's neighbors spilling back our way). But even then, the stupid "build a wall" rhetoric is because there still wasn't one in 2016, because we'd never NEEDED one. Before ICE, people walking in from mexico was normal: they pick our crops. Without them, US agriculture doesn't FUNCTION.
The FBI handling domestic investigations and the CIA handling foreign ones were explicitly separated for the same reason: smashing them together into Homeland Security meant domestic surveilance did to US citizens what the CIA was doing to Fidel Castro, and when Snowden told everybody how bad it had gotten 10 years later we all went "gee, what a surprise, TEAR IT ALL DOWN NOW" but the Boomers can't see anything wrong in endless escalation because they're too old to EVER FEEL SAFE ABOUT ANYTHING EVER. Death is coming for them, and they want BARBED WIRE AND GUARD TOWERS WITH SNIPERS to stop old age from rendering them irrelevant. And those kids these days with their rhytmic music, that's bad too. Everybody needs to get off their lawn so they can yell at cloud computing in peace. They are quaking in their boots in fear, but it's because they're senile old fogies about to die, not because the world is different.
We got into this mess because Boomers like Bill Clinton replaced all the other social services we used to have with police. (The same way the federal defense budget ballooned to be bigger than the next 8 countries combined: it's NEVER enough for Boomers to feel safe, nothing ever could be.) John Oliver's excellent coverage of this gives a shout-out to Bill Clinton's massive expansion of the police in the 90's, and works his way up to outright mockery of 77 year old Joe Biden; the Democrats are Good Cop in the plutocrats' two party Good Cop/Bad Cop system. Nancy Pelosi is 80. Chuck Schumer is 69. Mandatory retirment at 65 was commonplace until Ronald Reagan outlawed it in 1986. You can't vote younger than 18 or drink younger than 21, and can't be president younger than 35 (which is why AOC couldn't run this time), but we have an 80 year old speaker of the house and Biden would turn 80 in his first term and that's just fine, and the Supreme Court hinges on Ruth Bader Ginsberg (who turned 80 during Obama's FIRST TERM) not dying. This is 15 years after what used to be mandatory retirement.
Getting back to specifically abolishing the police (and private for-profit prisons), replacing the carceral state with JUST basic income and medicare for all (including mental health and drug treatment) would remove most need for subsistence crime. Educationally addressing racism and misogyny would remove the two largest sources of violence. Also, the FBI says they CATCH $300 billion of white collar crime annually, and the real amounts are generally estimated much higher. When you add in stuff like wage theft that aren't even prosecuted as crimes, the annual $50 billion cost of shoplifting is a rounding error. The big thefts have always been by those in power (and only called thefts when they lose power). Mall cops do not keep anyone safe, they're there to make the property owners FEEL safe.
The Boomers are too old to learn or change, but society constantly does. The society the Boomers lived in is broken and rotting. Tear it all down when they're gone. The Boomers' unquestioned assumptions deserve rejection, the world never had to work that way, didn't used to, and all their crap can just stop when they do.
Still wrestling with toysh, almost got the new ${variable/slice/code} working. It's compiling, now I'm trying to fix up enough regressions that checking it in doesn't break basic variable resolution.
There's chunks of job control in this commit because that's what I was working on when I forked off on this tangent, but that's ok. If you type jobs it displays state that never gets populated, wheee. It's still progress, working on it...
Police are still lying racists. Military morale is understandably low right now, but so far most of them do NOT seem to be following the white house's orders to commit war crimes.
The supreme court's tax return ruling was carefully crafted to release zero information while SEEMING like it did, to avoid triggering more protests. Meanwhile protests continue, as does the obvious racism and hypocrisy and blame shifting.
Another article about how means testing is just a way of preventing programs from doing their job. If you can't stop a program from being created, adding means testing lets you have it without having it, because nobody ever qualifies.
The Alpine devs are taking a look at toybox, which is nice in theory. I got a set of bugfixes to stuff in pending, and explained what pending is for. (There's a README. Possibly the README needs to be more expicit? Not sure how to make it more prominent. The build warns in red about using stuff out of pending...)
One of the proposed fixes is to add an extra header #include that's... already in the next header it #includes, and has been since 2016? The patch "fixes" a bug I not only can't reproduce, but can't figure out how anyone else could experience on the kernel versions they claim to be using?
Alas, it's hard to link to the web archive because whatever strange form of HTML email this dev is using gets completely scrubbed by the archive software, and when I pointed that out they responded by... emailing me privately and not cc-ing the list anymore.
What does bash WANT here? Grrr...
$ cat << ABC DEF > thing > ABC DEF > ABC DEF > ABC\ \ DEF > ^C $ cat << ABC DEF > ABC DEF > "ABC DEF" > ABC\ DEF > ^C
Ah, eventually figured it out: if you don't quote the EOF then word splitting happens and it's basically parsing as cat DEF <*lt; << ABC because the redirect operator eats the next argument but that's JUST the ABC. (Whitespace expansion doesn't trigger $IFS word splitting in this case and I tried to test it from the command line, and got confused.
At least I didn't bother Chet with this one. (I've basically reached the end of "ask questions about how this works" and am trying to get code running which I can then debug and correct. Almost there.)
In honor of July 4, Oregon police were giving nazi salutes. Meanwhile the GOP is finding still more ways to do voter suppression.
Meanwhile, the democrats are Good Cop. Remember, Good Cop and Bad Cop are just two cops who flipped a coin at the start of the shift to see which role each would play today: the carrot or the stick. You never GET the carrot, it dangles out of your reach endlessly. The stick makes regular contact. This is why the Democrats are incompetent and the Republicans are evil, both are sponsored by plutocrats. Hillary's speeches to Goldman Sachs were not out of character.
Right now it is important to break the stick. NEXT it's important to break the carrot. But most important is to guillotine the billionaires, who are the source of both carrot and stick and can replace them easily if left in power. Billionaires hoarding money is what prevents universal basic income. A parasite class that has collected more than half of all wealth into the hands of less than 1% of the population is why the rest of us DON'T have twice as much right now, or else work half as much for what we have now. They are evil, and they try to explain away simple math with lies. Kings and clergy claimed to be necessary too, turns out they were also lying.
Mithro pointed me at the sky130 open fab project which looks interesting on the j-core side of things. I've passed it on...
Oh goddess I broke down and logged into linkedin to respond to a connection request from someone I actually knew, and it's gone duolingo levels of clingy in email. (A while back I tried duolingo's japanese thing because Fuzzy was learning french with it, but A) I didn't really like it, B) CREEPY OWL IS CLINGLY AND ENDLESSLY PESTERING, STOPPIT. After multiple months the pestering tailed off, and I opened the app again and did ONE round of things and it's been emailing me daily updates on my "progress" ever since which I CAN'T SHUT OFF. Yeah I can mail filter 'em to the trash folder but it's the principle of the thing.)
Sigh. Linkedin was abusive BEFORE microsoft bought them. I only ever made an account to see if there was a way to get it to STOP EMAILING ME. (There was not.) Remind me to never log in there again, it wakes the beast...
The Boomers have gone to full pearl-clutching prudism attempting to outlaw sex entirely. They've been idolizing altzheimer's for years (since Ronald Reagan dodged Iran Contra because he "couldn't remember" anything about it), because dementia makes white men extra-confident when they can't remember ever having been wrong about anything.
After we defund the police (and replace them with actual mental health and homeless services and so on) we need to impeach a whole bunch of judges too, and bits of the military and there are other fixes necessary on our way to sweep away the remains of the GOP. There is so much we can do if we just stop being racist. As the old saying goes, "this is why we can't have nice things". As in the literal reason we can't have an NHS and significant vacation time like canada and australia and every european country is because racism: if we have nice things then "those people" would get nice things, and we'd rather be homeless than let brown people have nice houses too.
I want basic income. I'm aware that means the entire viewership of Faux News would also get basic income. The idea that 4chan trolls and the incels swatting every gamer girl who dares show her face on twitch having basic income and being able to spend MORE time doing horrible things is distressing to me. But helping everybody means helping people you hate. Deal with it. Hurting yourself to hurt "them" is stupid. Setting your house on fire so it spreads to your neighbors is childish. Means-testing is self defeating, any attempt at filtering so only the "right" people get benefits destroys the benefits program, every time.
The argument isn't really about whether we CAN do these things that every other country has already done, or the new things (like universal basic income) the advance of technology makes possible. Of course this country can literally feed itself a dozen times over, 90% of modern "farm" culture is about getting tax breaks and subsidies on investment property until the condo developers are ready to pave it over (which is why they vote republican: it's rich landowners pulling a scam, the reason they use undocumented immigrants as labor is so they can defraud them too. I'm reading a thread about sweet potato laundering. It's like money laundering, except for sweet potatoes. Really! If any group consistently votes republican, their entire business model is a scam, you just haven't figured out HOW yet).
We deny ourselves things like a USA NHS because racists can't stand the idea of black people benefitting. UBI is easy for real countries to do and it's a necessity for handling the end of capitalism, which would also let us end intellectual property law. Capitalism is past its sell-by date, and it's killing people. It's hard to understand the scope of the problem, but the coming rent default crisis may get some attention.
Meanwhile, the main reason "All Cops Are Bastards" is those who aren't get fired. The "behind the bastards" podcast did a 6 part series on the history of policing in the USA.
I am shocked, shocked to find out that the founder of Cards Against Humanity is having a me too moment.
Wow, this tweet sums up my attitude to the linux kernel development community amazingly well. ( My community is terrible.)
I REALLY want a better way to follow Dr. Taber's writing than twitter threads, because she writes amazing stuff which is easy to miss and hard to catch up on if you turn your back for a few days. By the time you're trying to trace tangents back ot the source you start wondering "if I saved a link to the start of the thread, how would I ever find this branch again?"
I occasionally get cc'd on projects switching license to 0BSD, which is cool. I should do a proper "Why 0BSD" talk and/or writeup. I've done lots of pieces of it in various places, but haven't done a single coherent writeup I'm aware of. (Alas, it's kind of a big thing to do it right.)
I suppose it was only a matter of time. Human gene editing on living adults was part of the star trek future. I believe it was also part of the cataclysmic backstory (the collapse of capitalism involved war and a bit of a dark age in that continuity), and had since been somewhere between outlawed and heavily regulated (not just Kahn, but Julian Bashir on DS9 having illegal genetic modifications his parents went to prison for). Still, yay treating heart disease...?
Oh hey, twitter went through my history and deleted some _other_ tweets that said "guillotine the billionaires". There's multiple "this tweet is no longer available" holes on the first page. Took 'em long enough, since that's what they cancelled my login for in the first place. Of course they haven't got them all yet. (I noticed because an Amazon recruiter emailed me and wondered if I'd changed my mind about working for them.)
Patreon has been emailing me about sales tax for weeks, and today I sat down to try to do whatever it wants but apparently I have to rewrite every single patreon goal? Because it's assigned tax or no tax to each one via keyword heuristics, but if I go through and edit those to manually set them it has a wizard that insists I add other new information to each goal. My patreon goals have names like "do the thing", it's a glorified tip jar offering people the ability to exprss support for my open source work. The main information from the selections was was whether I should spend time on toolchains, system builder, or toybox.
Anyway, I pressed the "don't charge anybody this month" button again so I don't have to worry about it.
I started a cleanup fork of the new j-core build repo.
We never use $TEST_DIRS2, I'm removing it because it's easy enough to add back when there's a user. (Infrastructure in search of a user bit-rots.)
We set $RELEASE using hg instead of git: it should be using "git describe --tags" but we've never tagged anything in the git repo so it can't find a base tag to say what we're X commits ahead of. (Should we tag what we released?)
"make clean" has some things I can figure out how to fix (components/cpu/cache needs an extra ../ in front of several paths), and some I don't understand:
make[1]: Entering directory '/home/landley/jcore/clean2/components/ddr2' Makefile:14: ../icache/build.mk: No such file or directory make[1]: *** No rule to make target '../icache/build.mk'. Stop.
There's no icache directory anywhere in what we released? Hmmm...
It's official, the Golden State Killer was a cop. And when not serial killers, the police have always been surprisingly useless. The protests against them continue, as does the police brutality.
The GOP endlessly betrays the military, here's a thread and the latest.
It turns out the reason Japan never had that much problem with coronavirus is masks work.
Remember the thread about how the british were basically nazis a century earlier who just got away with their genocide to the point they could write the history books? (Instead of a thousand year reich on land stolen by infantry plus concentration camps, the sun never set on the British Empire built on land stolen by the navy plus selling drugs and killing anyone who objected, with extra prudishness and capitalism.) Anyway, here's a thread of horrible things the british did to Africa.
So many issues dropped on the floor are still true, but then we knew that, and there's plenty of new ones, and here's some weapons-grade stupid, and the usual white male assholes who think the rules don't apply to them. The GOP continues to demonstrate that the cruelty is the point, not a side effect of their policies but the explicit objective. But then we already already know this stuff.
Captain Awkward had a really good essay.
The Dell bios in my latop got confused somewhow, probably by the extension cord I bought so I could sit 3 tables away from the outlet late at night at UT, and social distance even when somebody else is there; not a whole lot of other opportunities to get out of the house and work away from the cats, and the round trip walk is something like 13,000 steps according to the Android "let us track your every move for your own good" app.
The symptom of the Dell BIOS glitch is that Linux would suspend, it would stay suspended for one dim/brighten cycle of the LED, and then it would turn itself back on. Initially it only did this when plugged in (possibly the extension cord put it undervolt slightly, although it was happily charging? But the bios power monitoring stuff set some sort of flag Linux didn't know how to clear, so that it would resume any time it was plugged in.
But I could work around that by unplugging it before suspending it... until today, when it powered itself on in my backpack during the walk (and was VERY hot when I took it out, although still running fine with half the battery left). And rather than getting work done, I spent hours closing windows so I can power it off properly before walking home.
Luckily gmail has decided to allow me to send and receive email through my phone tether again (no idea why, I clicked "send" on an email window I'd finished without thinking and it went through, and it can download emails too). Whatever weirdness in the gmail servers was vetoing it seems to have cleared up? (Whatever it was survived a reboot here so it probably isn't a strange route cached at this end, and it cleared up BEFORE I rebooted the laptop again, since I'm trying to clean up and close down to do that.)
11 emails got through my spam filters from the various democratic fundraising panic-mongers today. I must give them money because the wave of recalls of governors could lead to a constitutional convention enshrining the GOP in power, and I must give them money because polls show the GOP's historic unpopularity could allow the democrats to sweep the field. (The fundraising shills see no contradiction.)
On the one hand, I'm sympathetic to their cause. On the other, I have ZERO guilt about deleting all that crap unread and adding more spam filter entries. I gave small amounts of money to elizabeth warren and AOC last year. I never agreed to sign up to any mailing lists when doing so. I'm being emailed from a dozen different sources, and have LEARNED MY LESSON ABOUT EVER GIVING THESE CLOWNS MONEY AGAIN.
The democrats are Good Cop, which is still a servant of the plutocracy. Their nominee is an octogenarian. I'm getting trump campaign ads on youtube about how Biden is too old to be president and going "yeah, good point". There is no positive case to be made for Biden, it's 100% a vote against. An 80 year old man who thinks he should be driving the country is automatically disqualified, but his opponent is a literally demented racist con artist who's surrounded himself with literal nazis and has done a dozen things that would be treason if anyone else did them.
Meanwhile, voter suppression has eliminated my local polling place. The one two blocks away from me has been replaced by one eight blocks away, which isn't as bad as I originally thought (1500 barbara jordan blvd is _not_ 15th street, which is 30 blocks south of 45th street) but still annoying.
You know how we had World War I and World War II? Welcome to Cold War II. (Except Russia has an economy the size of Italy's _while_ being one of the top 3 oil and gas producers in the world. Without that, what's left?)
The army does not lead. The army is not _for_ leading. The entire point of basic training is to turn out obedient soldiers who need to be told what to do.
GOP science denial is the same for coronavirus, climate change, and evolution. The police are worse than you think, but Cops gonna cop. The oil companies aren't going down quietly. Here's an excellent thread.
I've known about the arm-based macs for a while. Charles Stross's twitter has been putting together pieces on that for months. But more to the point, I myself predicted this more than ten years ago, and wrote about it repeatedly. And I'm by no means alone in that.
The numbers make it an obvious move: Apple sold 217.7 million arm-based iphones in 2018, and 18.2 million x86-64 macs. That's 10 times as many devices _before_ you add stuff like ipads. "Yeah but margins"... the estimated gross margin on the iPhone X was 64 percent. Way more money has gone into arm for a decade now, which means way more R&D spending. Having a rump x86 platform for historical reasons stopped making sense a while ago, it's just overcoming the friction of migrating everything over.
This transition is mainframe->minicomputer->microcomputer->smartphone. The phrase "All the World's a VAX" was a symptom of the minicomputer's standardization around a common platform that became the category killer due to the positive feedback loop of network effects: users are drawn to the system with the most software, and programmers write software for the system with the most users. When the microcomputer standardized around the IBM PC all the world became a 386 (then the backwards-compatible x86-64), and now both iPhone and Android are arm processors under the hood. Using an x86 PC in 2020 is like using a VAX in 1990: existing users keep at it but nobody new is going there and the developer pool will age out.
Google's been sticking arm in chromebooks, but hasn't really laid down the law about ARM development workstations. It's been cross-compiling from x86 PCs. I've been trying to fix that by making android self-hosting, but it's a hard thing for one guy to do part-time without official backing.
Oh well. Grinding away as best I can.
Meanwhile, I got a message on the toybox list in which its author probably didn't MEAN to say "I assure you, you will fail. Look at what I did instead. My project is so utterly superior to your folly, it's a shame you cannot perceive my greatness, if you only you welcome my project into your heart you will be bowled over by its magnificence and abandon your doomed frivolity, could you but conceive the wondrous splendour tantalizingly beyond the limits of your cognition."
Ok, what he actually said was:
...reading the blog is a bit painful because it's clear you will never finish your shell with the current strategy (and this is an informed opinion, after doing it myself).
I think you're less than 10% done with 3K lines of code. I think you will agree with my assessment if you [look at my stuff]...there are so many features you haven't even begun to think about.
A couple things I would suggest:
1) Learn about grammars and parsing...
2) Use some of the test cases and framework I developed...
It's... difficult to reply to this politely. I've been poking at shell stuff on and off since 2006 and maintained my own compiler fork for years, and he wants me to learn _about_ grammars and parsing? Like... that they exist?
His argument seems to be "tinycc was not designed like gcc, therefore it couldn't possibly work because I only understand one way to do it and must reach out to correct you if you try anything else". Except applied to the shell I'm not using yacc and lex in instead of the compiler I became interested in because it didn't use yacc and lex. (The simple design of tinycc is what attracted me to it in the first place.) And lex and yacc are both on the toybox roadmap, lex because it's in posix and not that hard to do, and yacc because the kernel added it as a build dependency in 2018, so yes I am aware they exist.
*shrug* If I _do_ have to write 9 times more code, I can. But I note that the whole of toybox (outside the pending directory) is currently 32,000 lines of C, so he's saying the shell _must_ be as big as the rest of toybox combined (implementing 206 commands). He can't conceive of it _not_ being that big. He insists it's not possible, and comes to my list to assert that impossibility directly at me, because watching me try is "painful".
I'm happy to take constructive criticism and am the first person to rail at how LONG all this is taking me, but... sigh.
Once again, The Onion Merely Documents Reality. There is no exaggeration for hyperbole because in the twilight of the Boomers, there's no room to exaggerate. But the protests are successfully making the Boomers uncomfortable, which is important and valuable work since the boomers stole all the wealth and of course blamed their kids for the lack. (Not stole the _money_, since that's a social construct they can just print at will. But the Boomers bought up all the land and housing, tied up all the avenues of social advancement with BS gatekeeping, and bought laws and politicians to enforce their worldview with them on top, while things like climate change, racism, and increasing inequality are Somebody Else's Problem they will die before addressing.)
The US oil shale industry turns out to have been a giant scam currently forcing lenders to write off $300 billion in loans, which never made a profit and only stayed in operation as long as they could endlessly borrow more money.
Suburbia was a giant federally subsidized racist project to enable white flight, and can't survive without the subsidies. And yet the idea of basic income remains inconceivable to Boomers.
The GOP is a terrorist organization, and they're finding new ways to cheat in elections because voter suppression is the only reason they still hold any office anywhere. Meanwhile the Tories are using Covid as a transparent excuse to abolish trial by jury.
Airbnb is terrible, so nobody's too sad they seem to be hurting financially.
Why is the Comic Book Legal Defense Fund is making women sign non-disclosure agreements preventing them from talking about being sexually harassed? Does Neil Gaiman know about this? He's still working with them...
Today I learned that the original 13th through 18th amendments, passed by congress and signed by president Buchanan, would have enshrined slavery in the constitution, with the 18th amendment literally saying support for slavery could never be repealed. The only reason they didn't get approved by enough states is the south couldn't wait and seceeded after Lincoln's election, starting the civil war. (But of course we don't teach this in school. Stem Stem Uber Alles, you can't be a bad person if you know enough science, as all the Nazi Scientists demonstrated. And therefore the Boomers stopped teaching the humanities, just like they ended manned flights to the moon as soon as it was clear they personally wouldn't be going, because if THEY didn't need it anymore nobody did.)
Ok, I THINK the variable expansion prefix cases are ${!} ${!@} ${!@Q} ${!x} ${!x@} ${!x@Q} ${!x#} ${!x[} ${#x} (not counting ${!x[*]} and ${#x[@]} which is a todo until array support). Yes, bash considers echo ${!@Q} an error (bad substitution) but if it's gonna accept ${#@Q} I think I should support both. Another inconsistency is that:
$ xx() { echo "${*@Q}";}; xx a b c d 'a' 'b' 'c' 'd' $ xx() { echo "${@@Q}";}; xx a b c d 'a' 'b' 'c' 'd'
Should NOT produce the same output, that first one should be 'a b c d' because only "$@" splits words within quotes, I believe "$*" uses the first character of IFS to glue them together (and the default IFS is " \t\n"), which means the oggham nonblank space character sadly is not recognized by default as a word separator. Sadness. I'd ask posix what properly supporting utf8 should mean here, but Jorg Schilling isn't dead yet. Given that sort changed what alphabetical order means between ubuntu releases (because gnu/gnu/gnu/stallman/gnu), I expect adding proper utf8 space support in a future toysh release is within range of historical precedent. (And no, that had nothing to do with Ubuntu's dubious flirtation with the Defective Annoying SHell.)
Sigh. Chet Ramey keeps saying "mksh did that" or "that's what ksh93 does" and... if my question was "bash: who hurt you so you wound up like this", I would have my answer. But it's not what I asked?
C and unix managed to take over the world by being extremely simple for what they did. They staked out local peaks in design phase space and became category killers for them, and there was some local breakage like DOS "near" and "far" pointers or systems where char wasn't a byte, but mostly people carved out a common subset that made sense and the standards bodies documented that. Then the "unix wars" happened (starting with AT&T's drive to close up and commercialize the source), resulting in stupid fragmentation that almost killed unix until Linux came along and established a new de-facto standard. But C and Unix remain VERY GOOD at what they do, and it would be nice if people UNDER the age of 50 could still learn and use these technologies rather than reinventing the wheel badly.
I'm interested in implementing "what bash does" because that was the Linux de-facto standard. Linus Torvalds extended his terminal program to run bash specifically, that's why/how the Linux system call layer was created in the first place. Bash was THE shell of Linux until Ubuntu screwed up 15 years later, and ubuntu's mistake was so _spectacularly_ inept that the world wound up with systemd poorly addressing the problem ubuntu utterly failed to solve. Shuttleworth just never admitted his mistake and undid it.
But any time a single implementation carries the torch for a long while (bash, gcc, vim, netscape, linux, openssh, coreutils), you get a mix of "behavior you want" and "coincidental implementation detail corner cases" that are gratuitous sharp edges which should be filed off. Figuring out which is which is hard and subjective.
Decades of accumulated scar tissue are no excuse for winding up with crap like C++ instead of C. Needing a new incompatible version of the language every few years that everyone has to make a flag day transition porting their code to is not a good thing. Nor is being tied to a single irreproducible codebase that its own developers try and fail to replace.
C99 is still "good enough" 20 years later, and part of the reason is that there have BEEN so many independent implementations that had to work out what the common subset was and how to agree on necessary compatibility. Posix-2008 is still more or less good enough 12 years later and the main reason to use even _that_ instead of an earlier version is the 2008 update acnowledged Linux's openat() and friends to work around PATH_MAX limits and races (and that dprintf() is a thing).
Most of the useful tweaks to posix over the past 20 years have been scalability issues like large file support (terabyte disks) and 64 bit processors with gigs of ram. Other than that, they've removed stuff like tar and cpio that everybody still uses (ignoring their change), while FAILING to get rid of obsolete crap like sccs and ebcdic support in dd. And don't ask me what they were smoking replacing 'cc' with 'c99' because I couldn't tell you: since then there's been c11 and c18 which DO NOT MATTER because you can still feed K&R code into the compiler and it works. Call the compiler "cc", it is the C Compiler. (Not gcc, not clang: cc.) The main reason to move from c89 to c99 was the new uint32_t types with actually specified bit sizes, which LP64 did better anyway (uint32_t is just "unsigned" on every LP64 platform, which means everything except windows which as far as I'm concerned is "everything").
Ahem. Where was I? Implementing ${!@Q}, right.
A few days ago I got recruiter email du jour titled "Come Join our Billion Dollar Start Up", with the first paragraph:
Interested in joining one of the fastest-growing, venture-backed startups reimagining the $45B industry of enterprise physical security? At Verkada we are modernizing the way spaces stay secure and safe with our AI-based, easy-to-use management software and industry-grade cameras that enable advanced facial recognition, highly accurate motion detection, and other robust search features.
Which also mentioned that they were impressed by my contributions to the busybox project, which I handed off maintainership of 13 years ago and my last commit to was 9 years ago. (At a guess, it's because Bradley wanted a copyright notice when you typed "busybox" with the 3 maintainers to help lawsuit standing, and although he removed it again when I became a vocal opponent of the lawsuits continuing indefinitely, for several years busybox spat out my name when you ran it, which was not my idea.)
I deleted that email without replying, and today I got a follow-up email which I replied to honestly:
> I wanted to follow up with you about our opportunity here at Verkada. I imagine
> lots of companies reach out, however, I'm very impressed with your background
> and would love the opportunity to connect with you to tell you more about
> Verkada and what we're building.You said in your first email you're doing AI based facial recognition tech to protect corporate assets, either from the company's own customers and employees or from the tens of millions of people currently protesting in the streets in lieu of sharpening guillotines.
https://www.washingtonpost.com/technology/2020/06/11/microsoft-facial-recognition/
> Let me know a good time to connect this week or early next week?
Half the "Boomers" were born before 1955 and the average US lifespan is 79, putting the LD50 on the Baby Boom somewhere around 2034, which seems a reasonable upper bound on when they lose political power. I do not expect the current form of capitalism to outlive them (the eight richest people in the world owning more than everyone else combined doesn't make sense to anyone younger than Boomers), the question is how bloody its end will be. The DNC's desire to replace the oldest president in history with someone who'd turn 80 in office suggests "very".
Another business model tightening the lid on inequality to let pressure build up is not something I want to stand near, let alone with. I would have thought palantir and emerdata had it covered, but apparently they're not good enough at blaming brown people yet?
https://twitter.com/Chicken3gg/status/1274314622447820801
https://twitter.com/osazuwa/status/1274444300894572546No thanks,
Rob
I'm wondering if I was too harsh. It's not the recruiter's fault, but the idea of a billion dollar startup focusing on defense of corporate assets via facial recognition doing recruiting in the current political environment seems kinda creepy. Or is it just me?
I mean, the protests are continuing to escalate, the Resident is having dementia episodes so bad that all reporters have to be evacuated from the white house, how much endgame is left here? The world the Boomers knew was always completely artificial. It didn't exist before they did, and won't persist after their death. We have better ways to do basically everything now, we just can't deploy the new tricks until the old dogs roll over and play dead.
I meant to do shell programming tonight, but instead I have bug reports to field. Some of which I've been re-pinged about because I didn't get to them earlier...
So the GOP's going all in on voter suppression. Not even pretending anymore. Meanwhile the cops are murdering people and confiscating nearby cameras. Occasionally learning to pay lip service while people are looking, to buy time to stock up on military equipment while being utterly useless at their nominal jobs. They literally can't NOT be monsters, even to save their jobs.
Racism and misogyny have always had a divide and conquer aspect, but at their core they're bullies claiming other people as property, and convincing everyone who objects that they're a tiny isolated minority lost in a sea of "them".
I am reminded of a classic Dr. Who quote, "The very powerful and the very stupid have one thing in common. They don't alter their views to fit the facts. They alter the facts to fit the view. Which can be uncomfortable if you happen to be one of the facts that needs altering."
The pinkertons were a private security force guilded age capitalists like Andrew Carnegie hired to murder striking workers a century ago. (He later endowed Carnegie Hall so people would remember him as a philanthropist rather than a capitalist, the same way Alfred Nobel created the Nobel Prize so his obituary wouldn't just say "weapons manufacturer and war profiteer".)
The modern robber barons similarly point to the infrastructure they build, claiming that without rich people exploiting poor people we wouldn't have computers or railroads today. But what they're ACTUALLY trying to do is corner the market to profit from trends happening anyway, by getting there first and locking out the competition. Microsoft did not invent any new software in its entire history, when it didn't outright buy new products it copied other people's stuff and drove the actual inventors out of business. (In the process replacing the word "invention" with "innovation", which means "it's new to _us_, the novelty is that we're doing it now".) Facebook did not invent social media, it just captured the largest userbase via network effects and lock-in, decades of consistently unethical data collection and of course russian money laundering (when talk of zynga's criminal activity got too out of hand they created a game called "mafia wars" (well, cloned one) about the same way Boris Johnson pretended to make bus models out of cardboard). Of course back then, nobody took that sort of accusation seriously...
Modern cops fill the role of Pinkertons, intimidating protesting schoolteachers long before they had direct anti-cop protesters to maim. (They became the problem.)
The protests continue. The thread of police misbehavior is well over 500 entries and still going, and that's just the egregious stuff, not the endless microaggressions. They cannot be reformed.
The Boomers have always wanted more police standing around waiting for something to do. (And as usual with bullshit jobs, they make busy-work for themselves to justify their own existence. It's the civil version of an autoimmune disease.) Until the Boomers die, we're stuck in the past with them among with the rest of the rotting debris of expired Boomerdom, and nothing is going to get properly fixed.
Listening to what little kpop I have in my collection, in honor of the great work they've been doing. (I used to object to the lyric "dance dance dance 'till we run this town" on the theory... it doesn't work like that? I stan corrected: Quotus Ed Demonstratum.)
Hard to get traction on technical projects, the world's still on fire. I installed Merge Dragons on my phone, then deleted it again after it ate basically a day of productivity. (It's waaaaaay too skinner boxy for me.)
Still, adding lots of tests for toysh to pass. Here are three different behaviors:
$ abc=${a?bc} echo hello; echo blah bash: a: bc $ readonly abc=123; abc=def echo one && echo two bash: abc: readonly variable one two $ echo potato < /does/not/exist || echo hello bash: /does/not/exist: No such file or directory hello
I'm getting the second two right at the moment, but the ${var?error message if unset} syntax is documented to exit the shell (if not interactive) in the bash man page, and that means I need different TYPES of error handling for the same action. (It can error-but-continue or error-and-abort. Great. A todo item.)
Then there's "echo > walroid ${a?blah}" not creating walroid, which toysh and bash are likely to _continue_ to do differently. In this case, the ${a?blah} variable resolution (which is an error) happens before the create-file redirect in bash. But in my shell, it handles the argument expansions in order, and when an argument is a redirect it Does The Thing right then and there, because the NOMMU support needs to exec as shortly as possible after vfork(), and you don't want to do error handling in vfork() child context with the parent blocked if you have _any_ choice int he matter. If you "echo > ${a?blah} walroid" it won't create the file because the argument expansion is a prerequisite for the redirect (and thus evaluated, and aborted, first), but if you "> name" it opens it right after resolving it, before looking at the next argument.
In this case the difference is "supporting nommu" vs "not supporting nommu", and I think the right thing to do is document the deviation and move on. (A deviation from bash, rather than from posix. I don't remember what if anything posix says here, and am unlikely to care while Jorg Schilling remains alive.) It's sequencing in an error recovery path: I suppose if a real user complained I could reevaluate and MAYBE adjust it. (Or maybe not, it would depend...)
A sequencing I do not get right (as in "matching bash") at the moment is:
$ ./sh -c 'abc=def > /does/not/exist; echo abc=$abc' sh: /does/not/exist: No such file or directory abc=
Bash prints abc=def because the assignment happens even if the redirect fails. Which is weird because it won't RUN a command but it'll run an ASSIGNMENT and... what? Hmmm. (I can adjust that to match, but ew?)
$ export abc=def > /does/not/exist bash: /does/not/exist: No such file or directory $ echo abc=$abc abc=
That's bash. It's being inconsistent, doing local variable assignments but not assignments via builtins under the same circumstances.
Sigh, there's a certain amount of version skew WITHIN BASH, some of which I'm now responsible for by reporting this sort of thing to the maintainer. :P Do I care about this? Should I wait for somebody to complain and say it broke their script? Hmmm...
Oh dear. I think we know what the next financial crash looks like, and the epicenter is Softbank (the giant Japanese company that owns the ARM processor), which just used a company called Greensill to pull financial shenanigans on the level that destroyed Lehman Brothers, Arthur Anderson, and AIG circa 2008. This may be why Softbank is selling $20 billion dollars worth of its stake in T-mobile.
Remember how the 2008 financial crisis was basically the invention of the mortgage bond coming to fruition and the bills coming due? This greensill guy did something similar (used blockchain to securitize receivables). The problem isn't that Softbank invested $1.5 billion in Greensill, that's just a WeWork level mistake. No, the problem is Softbank dogfooded Greensill's product and applied it to all their own stuff, and it's infected all their own supply chains and finances. And this one is growing, maturing, and defaulting at internet speeds.
I'm listening to a podcast about this. Here's a few quotes from the first half hour:
"Companies turn their supply chain into a personal bank to invent new credit... A large company will extend their payment schedule to some ludicrous amount of time (200+ days) then if you want to be paid in 30 days you must use our reverse factoring partner... which turns the company's accounts payable from normal operating expenses into debt which is then owed to a financial institution which can be securitized and sold..."
"Reverse factor debt is recorded as operating costs... once the money leaves the factor to your books, it's not booked as debt... brighthouse had leverage ratios of 90-to-1 when it collapsed. The reverse factor is not legally a bank, it's a tech company... Greensill is the largest non-bank bond issuer in Europe."
Circa 26:30 in the podcast: "Uber isn't a tech company, it's an employment rights circumvention platform. AirBNB i's not a tech company it's a property and rent tenant's rights circumvention platform. Greensil's not a tech company, it's a financial regulation circumvention platform None of these tech companies are actually tech companies."
Ok, blockchain-based invoice processing created a new completely unregulated financial asset class, which is in the process of defaulting and collapsing, it's already somewhere north of a trillion dollars, and softbank at the center of it. It sounds really really bad, and I dunno how far the rot's spread.
Luckily, the current economy is completely fictitous, as I've mentioned rather a lot of times before. It's a bunch of numbers in a computer network that haven't represented anything real in living memory. Unfortunately, "there's no such thing as IBM, just a bunch of people pretending" can be both true and useless. When people riot over sports teams, people are still rioting. When stupid decision makers decide to impose unnecessary austerity, real people get hurt. The boomers will cling to capitalism until they die, they're too old to do anything else, and what THIS nonsense means is the amount of modern capitalism that's literally nothing but a giant scam drowns out the part that ISN'T by such a large ratio you can't even easily measure it.
Instead of yet another bailout, give every US citizen basic income. Politically, you can set the social security elligibility age to zero with a one page bill. You can "fund" it (prevent inflation caused by it) by bringing back the 92% tax rate on any earnings over $10 million/year, taxing stock buybacks the same as dividends, and cutting the military budget to no more than what the next 3 countries spend combined (rather than the next 8).
The Boomers will never stand for it, of course. Biden's would respond "over my dead body" but he turns 80 two years after the election, we can start work on lots of stuff that needs to happen over his dead body without impacting their schedules in any way...
At the UT table late at night, desperate need to blow my nose (cedar pollen!) and I dug up a Dotour oshibori out of a pocket in my backpack. This is sort of second derivative rude. (In japan it's hugely rude to blow your nose in public, you go to a restroom for that, but I'm not _in_ japan, this oshibori's been in my backpck so long it dried out through the plastic wrap and is just a napkin now. And in any case the point of coming here at 1am on a weeknight is nobody else being here...)
I'm to the point with anime subtitles where I can't really follow most of what they're saying, but I sometimes go "that's not actually what they just said". I listened to the japanese audio track of Groundhog Day on netflix the other night: I dunno if I've got it because I downloaded it in japan or of it's generally available now, but I'll take it. I suck at foreign languages and Japan's racists have used the pandemic as an excuse to forbid all foreigners visiting the country for the foreseeable future (presumably until the rescheduled olympics), but I'm still TRYING to learn this language...
Elliott is being really nice walking me through AOSP build and testing, but he just pointed me at cuttlefish, which that page puts next to another emulator and the way to figure out which to use is "ask the bionic maintainer". (This is why I compulsively write my own documentation. If you do not already know how to do this, where do you START. I also just spent 5 minutes trying to read the page before it, which is the conceptual equivalent of a forkbomb. I THINK what it's trying to say is:
A Generic System Image (GSI) is vanilla android built from unmodified Android Open Source Project code (with no out-of-tree additions) in a simple default configuration useful for testing. The only configuration selected when building a GSI is to specify what hardware (or emulator) the image should run on.
The GSI provides a common baseline, and is used to regression test that current android still works on the hardware by running the Vendor Test Suite (VTS) and Compatibility Test Suite (CTS).
Anyway, cuttlefish. Trying to build for that...
The resident's Progressive Supranulcear Palsy has advanced to his frontal lobe. There is no treatment, it is progressive and fatal. His con artist skills have been dedicated to covering for his increasing incapacity. But given how racist even places like silicon valley are, his supporters refuse to abandon him as long as he's still hurting the people they hate. (And given that he's hurting _everybody_...)
In this video a cop forces a weapon into prone protester's hand to retroactively justify the beating he's giving him. Cops kill people because they're insecure ("respek mah authoritai"), and with good reason. We're going about it wrong have no follow-up (all EMTs, no treatment or surgery) and should unbundle the services. Meanwhile, in response to the police abolition movement, cops offer to pepper spray students in their own classrooms less often (Why did LA's school police have a tank and grenade launchers? No seriously, why?) And of course the Golden State Killer was police officer. The police are the problem, it's not new, and they serve no other purpose.
Remember when the ACLU did the Good People On Both Sides thing defending Nazis from being punched? The protests are bigger than ever and accomplishing good things but the roots of the problem go deep. There's plenty of good videos on how the supposed good guys have been deeply insufficient. This isn't "equivalence", this is "Joe Biden is not the answer, he's a tourniquet at best". The real enemy is capitalists who fund racism as a defense mechanism for inequality. It's always been "let's you and him fight" sicking the poor against each other. (Again, the book "masterless men" is about that. I should read more books, there are some excellent ones out there but I have a copy of Masterless Men I haven't finished, a copy of The Box I'm like 3 pages into, I only made it halfway through Bullshit Jobs, but the audiobook is finally out.)
When the Boomers die, we burn down everything they ever touched. If you can't vote younger than 18, drink younger than 21, and be president younger than 35 then you can't hold elected office OLDER than 64. Mandatory retirement from public office: you get a gold watch and a pension on your 65th birthday and go into an advisory role where you are not the final arbiter of any decision.
Good thread on the intellectual errors at the heart of libertarianism. (From someone who thinks there's a point to it.)
I tried again to do an android build, left it running overnight, and today I ran "emulator" which said:
emulator: WARNING: encryption is off
Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
queryCoreProfileSupport: swap interval not found
emulator: ERROR: VkCommonOperations.cpp:496: Failed to create Vulkan instance.
E0616 13:12:24.550453924 31310 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"@1592331144.550415611","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
It popped up an empty window, which then sat there eating 100% of one CPU for an hour before I killed it. So that's nice.
Is it because I didn't build an image for it to run? Or didn't specify which image to run? Should it NOTICE it's not connecting to anything rather than spinning eating 100% cpu? And SO_REUSEPORT is in /usr/include/asm-generic/socket.h where it's #defined to 15 so what does it mean by "host system" here? Unknown element "blank"? Is failing to create a Vulkan instance fatal? If so why didn't it exit? Why is the emulator trying to connect to an adb daemon? If running adb itself will launch an adb daemon why won't the emulator launch it if it's not already running? Why didn't the instructions I was following mention the need for adb to...
So yeah, my experience with AOSP is about the same as usual. There's like a semester-long course in it I haven't had, and until then just trying to pick it up as you go along is a weird thing for a hobbyist to do, I guess?
I also broke threading in a reply I composed but haven't sent yet, but ever since Android updated itself a few months ago I haven't been able to access gmail through my phone tether, only through the home connection. (same issue from april, still broken I just live with it.) Neither the pop3 nor smtp servers will accept thunderbird logins when it's using my t-mobile connection, but it works fine from the home router. (Fetching gives the misleading "web login required" error message. Sending just claims the smtp password is wrong for any password.)
I thought it was ipv4 vs ipv6, but forcing dhcp to get an ipv4-only address on the phone tether doesn't help, while the Google Fiber connection "just works". I'm assuming that part of gmail has accumulated a full ogres-are-like-onions speech worth of "layers" in its codebase. I guess if I had Google Fee Fo Fum then my phone tether would also "just work". (I miss "don't be evil". It was good to have goals.)
But as with 2/3 of the ads on Youtube being "pay youtube to remove ads", if the reason to do it is because they broke _not_ doing it, it's Danegeld and goes in the "death first" bucket. I am ALREADY paying for netflix, hulu, and prime. I compromised enough to add crunchycrunch. I am NOT paying for disney+, hbo max, cbs all startrek, bbc iplayer, funimation... The services I _am_ paying for claim to be categorical, figure out how to work together and get paid rather than sending me a seperate bill for each and every show I watch. I object to being nickel and dimed with micropayments, I do not want to have to TRACK this nonsense.
Google could have bought twitter instead of creating Google+ and it could have bought netflix to get me as a customer instead of darth vader altering the bargain pray I don't alter it any further. And literally announcing plans to intentionally annoy your users into giving you money? That not only makes me implacably opposed to ever rewarding that behavior on principle, but to wait for the named decision maker to no longer work for the company before even considering re-evaluating that policy. You won't get a dime from me while the clown who ADMITS to doing that could ever call it a win. That particular Boomer is 60 years old, LD50 on Boomers is 79 years, so 50% chance that resolves by 2039. It's easy to be patient when you're waiting for someone specific to die.
My todo list runneth over and there's lots of stuff I'd love to spend focus on but don't get around to for years. Anything I can put in the "this too shall pass" bucket where just waiting it out DOES theoretically advance the agenda (if in a "the sun's only got so much hydrogen" purely theoretical way I may not personally profit from)... I can do that. I've mostly waited out Windows. I waited out AOL, and can wait out Facebook the same way. I will happily weaponize _not_ doing things. Any time someone thinks I'll come around given enough time and they can wait me out it's just adorable. I'm smiling at the inevitability of the ozymandias poem as it applies to them personally, not just on this issue but on any two atoms whoever it is ever exerted the most indirect influence over still having any discernable relationship to each other. Physics puts an expiration date on the last traces of their influence vanishing into the noise, and that can be my happy place if they want to put themselves in that category. (I've mentioned before having a vindictive streak with a high activation threshold. It mostly manifests these days as "ok, entropy is on my side on this one" and I don't usually explain the full meaning when I say I'm not gonna care about the Posix committee while Jorg Schilling is still involved, because it disturbs people. But the beauty is I don't _have_ to do anything. Just smile and wait.)
This doesn't mean I won't change my mind in response to new information, but if you haven't come up with a better argument or fresh data my opinion is not gonna _age_ into submission. I question my existing beliefs all the time, and I'm still using github despite their acquisition by microsoft (after years of boycotting expedia for less) because monkey-boy handed off to a new CEO who sees microsoft as properly third wave rather than second wave, and thus won't necessarily "embrace and extend" everything each new venture touches into a defense of Windows because third wave companies don't have a "core business" providing a corporate identity as "the company that does X". (Sigh, I wrote about this at length 20 years ago and revisited it 9 years ago. I should do another pass but... todo list runneth over.) But at the same time, Microsoft has earned an awful lot of distrust over the years, and expecting them to just stop monopoly leverage when it was all they did for so long that when you talk about their "bundling" you have to differentiate at least three different types (and when you say "the microsoft antitrust trial" you have to specify Judge Sporkin in 1994 or Judge Jackson in 1998)... I am reluctant to trust them with anything open-ended because there's a nonzero chance this newly sober company will fall off the wagon. I have advanced them a fixed amount of trust, I am currently being asked to advance more and am deeply uncomfortable, but there are valid arguments for it? The longer the new CEO does NOT spring a trap, the more comfortable I am, but today? Hmmm... (And I'd never _not_ have an exit strategy with those guys.)
So backing up about 3 tangents, I had to cut and paste-as-quotation the message I replied to from the web archive so I could compose a reply and send it when I get home, which doesn't marshall the message-id into a reply-to because implicit metadata, and that tends to break threading.
And yes, I'm still using pop3. The reason I don't use gmail's imap server is the issues with _that_ from 2012 never got fixed either, but then "living with obvious problems with gmail" dates back before that. Google's been too big to see who's underfoot for a while now, but I've also been pretty consistently on the wrong side of 80/20 decisions in the computer industry since I was ten years old, and am used to it.
One video today: the creator of Veggie Tales (and voice of Bob the Tomato) explains systemic racism in the United States in just under 18 minutes.
This chunk of shell is one of those big "bit off more than I can chew" sections, which boils down to me trying to write code and instead coming up with lots of tests and adding them to tests/sh.test to keep track of the things I need to implement. The resulting code can be relatively small and simple, but it does a lot of little fiddly things each of which has to be right, and many of which aren't obvious from the man page. (For example, ${!indirect} is listed several pages up from ${!prefix@} which is different from ${!array[@]} but all three are "saw ${! and did a thing".)
So I have a zillion open tabs with various command lines I've run to explore corner cases of bash variable resolution, and I'm slowly going through and closing them by adding sh.test entries for each one. It's slow and tedious, but that's what counts as "progress" at the moment.
Another thing I have to look forward to is marshalling random global state into subshells, such as the current set of function aguments, or TT.bangpid. Did you know that the $! value gets marshalled to subshells? (With fork() it's free but with vfork() you have to send it through the pipe.) "echo $! &" prints nothing for a fresh shell because $! is last background pid and we just GOT backgrounded but I don't think we include ourselves in that, so you have do something like 'true & echo $! &'. (And to BLOG that I have to type & a lot, along with < and > but I'm used to it by now. You can't spell "evil" without "vi".)
Just one thread today. I found it extremely educational: Follow the money.
(Yes, I'm cheating slightly with the even/odd day thing. I should update my hacky old rss feed generator to do "programming.rss" and "politics.rss" and so on, since I've been doing the span tags for _years_, albeit with nothing regression testing that I close them or anything. Eh, it's on the todo list...)
Race conditions in job control: process creation fires up a pid that can in THEORY get suspended before it's properly registered with the job list, what should I do about that? Hmmm...
In run_command popen_setup() returns a PID which gets assigned to pp->pid in a local that is not yet on anybody's list, and if I set up a signal handler to catch child signals... If I'm calling wait() it's not gonna do anything until I call wait, but I think I need a signal handler? Hmmm, the command line plumbing reports terminated jobs at prompt time and the jobs command also queries, so possibly those are the points that handle it and update the list so it doesn't have to be asynchronous?
Meanwhile, I'm trying to work out what order of operations leading assignments and redirects happen in:
X=${x?bc} > walrus >walrus echo ${a?bc}
And neither of those create "walrus". Unfortunately, they also abort the current script, so my tests can't report on the existence of walrus. Sigh, I need to 'toysh -c "firstpart"; secondpart' don't I?
And I'm confused again. This is the debian host bash:
$ touch abc\)d $ echo ab+(c?d) abc)d $ IFS=c ABC="c?d" $ echo ab+($ABC) ab+( ?d) $ ABC='*' $ echo $ABC abc)d blah blah.txt
Does wildcard evaluation occur before or after variable resolution? It seems like it's before sometimes and after sometimes? Ah! It's IFS splitting, it's happening after variable resolution but before wildcard evaluation, so the split is making +() into two words and not registering as a wildcard grouper.
Today's reason to guillotine the billionaires.
The USA could produce a lot more food than it does if rich idiots didn't own so much farmland running intentionally terrible farms as a tax dodge. Dutch wheat farmers get 3 times as many bushels per acre as american farmers, and half of all corn is now used to make biofuel instead of food. A lot of our food isn't even grown on farms (to the consternation of farmers who hate the competition). But we can afford it because we stole so much farmland from native americans we have may more than we can manage. Sarah Taber did nice thread on that.
Voter suppression in Georgia was even more obvious this time. And of course it's racist.
The Good Cop Democrats continue to be useless. In response to the police abolition movement, Joe "Good Cop" Biden proposes giving the police $300 million more dollars to win Boomer votes. How exactly is this a defensible position in 2020? Here's a thread on ways the Seattle PD's been lying to people. Meanwhile, police in Tulsa come out and say they should be shooting more black people, and the guy the GOP put in charge of elections in Indiana was convicted of felony voter fraud.
Politicians claim a lack of funds to help people, but endless funds to pay cops to beat people. Why does the LAPD have 4 times as much funding as the Los Angeles fire department? Here's an LAPD Lamborghini parked in a disabled spot. Meanwhile, California Highway Patrol just murdered an unarmed 22 year old at a traffic stop, firing over 40 rounds into his car killing him and wounding his pregnant girlfriend. Austin's police department is doing PR puff pieces to distract from the people they've shot. Police in minneapolis admit they're the source of vandalism. Here's a thread explaining how Seattle PD attempted to facilitate a mass murder of protesters. Of course after days of beating protestors, they took the shooter into custody gently because he's white and on their side. Yes, right after he rammed people with his car and then shot somebody.
Remember how the one use of police was as a sort of notary public recording that a crime had happened before filing an insurance claim? It turns out paypal ignores that. (Not only is Paypal terrible, but also racist and misogynist hypocrites. There's a reason I don't use them.)
Here's a thread where an upper middle class white male explains how all the interactions he's ever had with police were at _best_ useless. It's a good thread.
Most of mine were traffic stops, the one time our house was robbed the police didn't even fingerprint anything. (They said it wasn't worth it.) When my car window was smashed on a visit to baltimore (they stole a VHS boxed set of the Hitchhiker's Guide to the Galaxy from the passenger seat and the change from the ashtray) the police didn't bother to come. When my bicycle was stolen in Florida (at 23 I chased the guy who did it for 2 blocks shouting "death") I got a case report number and nothing ever happened. Both times my bike was stolen off the front porch here in Austin they took a report and I got a case number about which nothing ever happened. (The lock cut through with bolt cutters? No, they didn't fingerprint that. I've never seen them fingerprint anything in person.) Literally the only point the police ever had for me was a checkbox on the way to filing an insurance claim.
But they HOUND you for traffic tickets endlessly, they want their money and the price goes up as you fail to pay promptly. Multiple times I've been either unable to find my car insurnace card or didn't have the new one with me and of course that turned into a thing each time because they want not just money but performative obeisance. (They have a computer system that can VERIFY if the card I show them is real, but can't LOOK ME UP so I don't need to give them the card. Because failure to provide proof on demand is a revenue source for them.)
People are out in force because being nice to police doesn't work. The head of virginia's KKK drives his car into protestors and of course HE isn't beaten. No, he's on their side. ICE is attempting to create gas chambers with create gas chambers with plausible deniability. If you're black being an stronaut who's been on star trek doesn't save you from police brutality.
The guy who filmed Eric Garner's murder has finally been released from prison. The police continue to arrest people who film them today, for the crime of filming them.
Police arrested a protester for throwing a teargas cannister back at them (the charge is "assault with a deadly weapon", the fact they shot it at protesters FIRST doesn't register because they're magic and allowed to do anything). They also object to protesters reflecting their lights back at them with aluminum foil.
Possibly the truest quote so far is "The police would rather kill white people than stop killing black people." Meanwhile, republican gun nuts vow that if the police don't murder enough black people they'll do it themselves.
There are a whole bunch of closed cases of police murder that all need to be reopened.
Part of the reason to abolish the police is you'll never get the military weapons back from them otherwise.
The police are still profoundly outnumbered.
Police behavior is ludicrously petty and cliche.
The NYPD is a sea of white guys. No group has that few black people without internal racist exclusion.On the energy front, BP just laid off 15% of its workforce, and refineries have the problem that each barrel refined produces a bunch of different outputs some of which aren't selling. (That's how refining works: you take a mix of stuff and seperate it into individual components.) The price has come back up, but the fossil fuel industry still has epic structural problems.
It's still annoying when the test suite spits out stuff like:
bzcat: I/O or other error, bailing out. Possible reason follows. bzcat: Broken pipe Input file = (stdin), output file = (stdout) PASS: tar extract dir/file from tbz2 (autodetect)
And I have to work out "ok, I did 'make test_tar' which means it's using the host (devuan) bzcat which is complaining the output pipe closed before it had written all the data to stdout which (in this case) is NOT AN ERROR because tar had read two consecutive blank headers (all zeroes) which is enough to know that the tarball has ended, even though the gnu/gnu/gnu/stallman/stallman/uber/alles/dammit tar appends several kilobytes of superfluous null headers for no obvious reason, which is why my tar tests trim the output when comparing binary equivalence"...
I.E. "not a real error, just noise, and mine shouldn't do that". (And it's a race condition because the pipe between processes has 32 pages of buffer in kernel adding up to 128k that bzcat can write into before output blocks, and closing with data waiting in the buffer is not an error, so MOST of the time zcat writes all its output into the discarded buffer which is why I haven't seen this error before, but THIS time it wasn't that far ahead and Julian Seward's bzip code felt the need to INFORM me.)
I REALLY should have named this project dorodango.
That busybox thing for work is making me sad. (They want a shell with interactive command history editing, and I can't implement that in time on my shell for this release. So, slap it on top as a "scripts/root/busybox" mkroot plugin.) But for some reason miniconfig isn't working in busybox anymore (KCONFIG_ALLCONFIG is being opened and read, but the symbols in it aren't being set? It complains if they don't exist, but when they do the state change is ignored?) So I did an allnoconfig and switched on a list of symbols WITHOUT dependecy resolution (just using sed), but... there's a lot of them?
Rich built a defconfig busybox, but when I try that under mkroot the airlock step breaks the build because defconfig busybox wants all sorts of build time dependencies the smaller config I was building didn't need. So that's not an easy out, I want the result to be an actual portable build and not "I got it to work once on a magic system I set up by hand without documenting what I'd done". (Rich already BUILT one of those, I'm trying to make it reproducible and portable with strict criteria for both.)
The plutocratic racist violence is not specifically a republican thing. Yes the GOP is nazi to such an extreme that 95 year old Auschwitz survivors are protesting them (and, sadly, dying). They're packing the courts to give their fascist takeover the veneer of law, and if they're not defeated there won't be anything left to salvage. But replacing the GOP with democrats is not where this ends. The centrist assholes like Biden are themselves a problem. You don't have a revolution to "return to normal": the Boomers' normal is gone never to return (and good riddance).
But we originally got this racist plutocracy from the british. Did you know the War of 1812 started because the british outlawed the slave trade in the west indies, which stopped US ships delivering slaves to British Guiana. This resulted in the assassination of british prime minister Spencer Percival by liverpool slave traders, the only british prime minister ever to be assassinated. (I watched an excellent movie about this in 2006 called Amazing Grace, which is of course not streaming anywhere. But the thread those tweets are taken from is pretty good.)
And as outright traitorous as the GOP is, I'm sad that the democrats are merely "less bad". When Bill Clinton proudly "doubled the number of cops on the street" it was a BAD THING that directly set up the current debacle. (He finally admitted it was a mistake while Hillary was running for president yet again as the issue was hurting her campaign.) Obama authorized extrajudicial drone killings, kept guantanamo open, allowed warantless wiretaps to continue, and called HIMSELF more conservative than Richard Nixon. The democrats blacklist vendors who work with primary challengers and Nancy Pelosi sees AOC as more of a threat to her power than the republicans.
The democrats and republicans are playing "good cop, bad cop" on behalf of the plutocracy. It's carrot and stick, the Good Cop's job is to dangle a carrot in front of you, eternally just out of reach. That's why Good Cop is always intentionally incompetent, they can't QUITE help you yet but maybe if you do this thing for them, and then do the next thing for them, then they need ONE MORE thing before they can help, ooh so close they can ALMOST help now but just this one more thing they need and maybe THEN they can help... But the reality is Good Cop is still a cop, and each new case the cops flip a coin to see who plays Good Cop this time. Democrats are still servants of a 1% that wants the other 99% kept in their place, that's why they're primarying AOC. Nancy and Hillary and Biden are there to stop Bernie and Warren and The Squad from ever actually doing anything. The only way to fix the plutocracy is to Guillotine the Billionaires.
That's why I'm not sure the democrats can be "pushed to the left". Sure, in the short term the bad cops are BAD. Rand Paul is currently taking a stand in favor of lynching. But the democrats support the racist plutocratic status quo. Most crime is a social construct that's not illegal (or not punished) when rich white people do it, but "loitering" gets you jail time (or murdered) when you're black, native, hispanic... Most theft in the USA is wage theft which is structurally never punished. If you do enough of it, you become president. More cars are stolen by banks than by individuals, and individuals can't generally steal your house while banks do it in bulk.
There are plenty of real crimes, but local police tend to be of dubious utility at best addressing them. After each mass shooting it's "too soon" to do anything about gun control, but not too soon to pass laws to prevent gun manufacturers from being sued (just like the police have immunity from lawsuits). Being able to dial 911 so anonymous unaccountable cops maybe show up 20 minutes later isn't as useful as preventing that guy from getting a gun in the first place. The police aren't there to stop crime, they're there to protect the rich from the poor. The GOP needs to burn this year, that couldn't be more obvious, but when the Boomers die (50% of them should be dead by 2034) the democrats need to go down with them. (And then the corporations...)
(The Boomers are aware we're going to chisel their names off all the monuments the instant they're gone, and seem kinda pissed about it.)Hands up everybody who foresaw microsoft trying "embrace, extend, extinguish" on Linux. I mean that one was just TOO obvious.
Toysh: I'm trying to come up with a test for $! and it's annoying. It's the PID of the last backgrounded process, and although I can 'true & echo $!' easily enough... the number it produces changes. (And isn't QUITE controllable because anything can spawn a process at any time consuming a PID, including kernel threads.)
I can do 'true & jobs -p; echo $!' to get the same number twice via two different mechanisms, but I don't have test infrastructure to say "I don't know what to expect but it should be the same thing twice". Maybe I need to add a new test type.
Hmmm. I guess "bash -c 'true & [ $(jobs -p) = $! ] && echo yes'" works?
The idea of police abolition is going mainstream, because ongoing police behavior is surprisingly extreme. Lots of people are making strong cases for it. Police "reform" always increases their budgets, they get money to do new things. Taking the money away is the obvious response, and zeroing out police budgets is the only way to solve the entire problem. (As the protests continue the non-monsters resign, but 6 resignations per day from a force of 36,000 would take 20 years to go through the lot.) The police themselves are so ashamed of their behavior they're literally arresting people for filming it. (I mean they're REALLY fragile. That last link was item #377 on an an ongoing thread collecting instances of police misconduct (and items 376 and 378 were also police assaulting people for the crime of recording police misconduct), meanwhile item #371 is Austin's police department sending itself thank you letters through the US mail for PR purposes. It's quite the thread.) Of course Boomers clutch their pearls at the idea of not having police, but when the NYPD went on strike crime dropped dramatically. And the police we've got now are white supremacists.
If you decriminalize marijuana, sex work, and panhandling, half of what police do goes away. Divert a chunk of the police budget to mental health services so schizophrenic people can get treated rather than arrested. When cars switch to self-driving taxi services the need for traffic cops goes away. Eliminiate private for-profit prisons and the school-to-prison pipeline. Other professions don't get to fight violence with violence (which works about as well as fighting fire with fire: real firefighters mostly use water and foam and such). Police in the UK don't carry guns because they don't NEED them, but police in the USA are gassing crowds (and individuals), driving around in tanks, causing permanent hearing damage with sonic cannons and intentionally blinding people and it's not enough.
Then there's domestic violence: police have always been utterly useless in rape and domestic violence/abuse cases (even intentionally destroying evidence), so eliminating them entirely would at worst cause no change there. And domestic violence is the #1 reason police are called, despite the fact that 40% of police are KNOWN to commit domestic violence, which is one of those things where you know more of them have done it and just not gotten filmed.
The cops feel disrespected (since the protests are specifically against police behavior), so the cops are the ones rioting (it's peaceful when they don't, all the violence is orchestrated by the police). But did you know the police have no legal duty to protect anyone? If you call 911 they don't legally have to show up. (I'm not sure they're legally allowed to stop ambulances from getting to people they don't like, but they're doing it anyway. The police are a protection racket.) Of course it's blatantly unconstitutional that we can't safely film the police, especially when you realize they've been systematically lying to us for decades which isn't exactly news. But then none of this is new it's just a few people are finally starting to notice. Cops are following suspected protestors to their homes, not because they couldn't arrest them on site or pull them over and arrest them on the way home, it's purely theatrical for the intimidation value. (And to intimidate neighbors in their communities into compliance and silence.)
Statistically, any group that's entirely white is racist, but that's sort of the point. Racism is plutocrats playing divide and conquer. (There was a whole book about that specific topic. The tools turned against foreigners and minories are inevitably turned against everyone else.) Of course the only reason the police are giving even the meagre ground they have is due to being drastically outnumbered. The divide and conquer only works if the 99% don't figure out what the 1% is doing.
There's a failure mode where what you're doing isn't working so you do MORE of it, in an endless escalating spiral. The Boomers seem particularly prone to this failure mode. The usa has less than 5% of the world's population and over 1/5 of the world's prisoners. We are spending money to create problems. The "land of the free" is Doing It Wrong.
Of course the Boomers have also done this with wealth concentration: the "Greatest Generation" left the top tax rate at 92% and the Boomers lowered it to 28% (and allowed billionaires and corporations to dodge even that, these days doing their best to destroy the IRS entirely).
Adjusted for inflation, the old 90% tax rate used to kick in after the first $10 million someone earned in a single year: you got to KEEP ten million dollars PER YEAR, which is an insane amount of money. Keep in mind just ONE million dollars per year is 40 years of living expenses. (The "fight for 15" campign is about raising the minimum wage, 52 weeks in a year and 40 hours in a week. Assuming 2 weeks/year of unpaid sick time, $15*50*40=$30000, of which you get to keep around $25k after income tax and social security tax. One million dollars divided by 25k is 40 years of minimum wage spending without even earning interest.) Ten million dollars would be FOUR HUNDRED years of spending at that rate, and under the old tax regime the Boomers' greed destroyed you could keep that EVERY YEAR. These days, "millionaire" is barely mentioned anymore, to the point John Hodgman uses his million dollars of book royalties as a joke. The amount of money actual rich people have these days is truly offensive.
That's why rich bastards always get bailed out. They buy changes to the law: "privilege" literally means private law. They're the new aristocracy. Hence all the guillotines. But who they buy them FROM is coming into question. The decline of the GOP continues apace. Health experts are kind of pulling the same thing the Godwin guy did, telling people that in the current circumstances spreading the virus is the lesser evil, so go ahead and protest (with your mask on). The white house has literally surrounded itself with secret police (including ICE) as the Resident's dementia spirals inwards.
You know the murdering minnesota cop that started the protests? He committed voter fraud in Florida in 2016 and 2018. The GOP is guilty of EVERYTHING they accuse their opponents of, to like cartoonish levels. But some people are finding their limits, and even real courage.
Dear media organizations: equip your people properly. (Better equipment won't stop the police from targeting media, but it can still help.) And protestors in the USA can learn a lot from Hong Kong. There have been lots of good instructional threads, and one-offs like how to remove zip ties, or using half a milk jug and a water bottle to snuff teargas cannisters.
Conventional news outlets have The Stupid, reporting this as this, engaging in truly epic understatement... and then there's the New York Times soliciting a piece from Tom Cotton. (Not "accepting", they approched _him_.) That's just extra-stupid. I have no idea why anybody still buys (or writes for) the New York Times.
There have been a bunch of great protest signs.
Much of the reported "vandalism" and "looting" has been destruction of racist monuments (when it isn't white people starting fires while black people beg them to stop).
The headline "Court OKs barring high IQs for cops" is not a typo.
Slack works with the police, and so does Zoom. Don't organize through either.Police unions aren't actually unions, they're guilds like the AMA.
Remember when the administration was stealing Covid-19 protective equipment? Now the cops are doing it.
New York has suspended habeas corpus, and can now detain anyone indefinitely without reason. Not just protesters: anyone.
Police slam 70 year old man's head into the concrete, leaves him unconscious on the sidewalk in a pool of his own blood. Chris Hayes did a good piece about it.
Here an officer gropes a woman, she breaks away, and gets batoned for resisting being groped.
You know how we send legal observers to monitor foreign elections? The NYPD is arresting them.
Every time somebody builds a DIY item in Animal Crossing, I keep waiting for the horns to kick in, because I am old. (It apparently started life as a snippet of the Hawaii Five-O soundtrack, which I had not previously known but once you start down these ratholes...)
Speaking of old, Google is finally shutting down the last dregs of Google+. Why they didn't just buy twitter, I couldn't tell you.
Google+ could have been a good thing, its failure was a self-own by Google. Their UI tried WAY too hard to be facebook and offered no obvious way to get persistent URLs to anything people posted (so linking to content on it was either impossible or broke before long), and rather than improve it Google forced it down people's throats via monopoly leverage (microsoft-style bundling) which had lots of problems but the biggest was creating horrible youtube comment spam problems out of whole cloth (believe it or not before Google+ broke them, youtube comments were NOT a cesspool). Google replied in full Elon Musk Silicon Valley White Man fashion (never admit a mistake, charge boldly forward endlessly doubling down) by trying to dox their entire userbase, and the whole thing just snowballed into epic suck.
Seriously, one of the X-Men comics back in 1985 had Loki create a Plot Device that gave non-mutants superpowers, but took away their creativity to fuel it, and when people noticed and Noped out he tried via Oblatory Fight Sequence to force it on them. Then the Alien Superbeings he was trying to impress with his generosity so they'd give him a cookie showed up and anviled a moral ala "if you'd gracefully taken the no we'd have called it good but you went full supervillain trying to get your way so Bzzzzt, fail".
Whoever was running Google 8 years ago did not read enough X-men comics growing up.
Just one link today, a video titled Court denies immunity after officer obtains 23 year false conviction.
It's about a police officer and sexual predator who spent his entire career threatening women into sleeping with him, and when one woman moved and changed her phone number instead, he framed her 17 year old son for murder. Now 25 years later the retired officer is claiming in court he can't be sued because it happened as part of his work as a police officer and police have "qualified immunity" from prosecution.
The video is from the channel "Lawful Masses" which describes and analyzes legal decisions. It's a dispassionate reading and review of court filings that has nothing to do with the current protests: the video is 2 months old, the case is from an unrelated jurisdiction (Kansas City), and this video isn't particularly noteworthy (it got 127k views on a channel with 134k subscrbers). It's just one more unremarkable story of the reality of policing.
But it's also a thorough, compelling description of what police do and who police are. Accident victims in the united states beg bystanders NOT to call an ambulance because it will ruin their lives. At least as many people will never call 911 no matter what because introducing police into a situation, even where their lives are already threatened, can only ever make things worse. And just as anyone can wind up uninsured, anyone can wind up on the wrong side of some random officer's grudge whom the rest of the department will rally around and support unconditionally, forever, every time.
(In this case, since he's retired rather than active duty, and the evidence of his guilt is overwhelming, his old department has merely issued a no comment and gone into full ass-covering mode.)
And I forgot to plug my laptop in again when I got home, and the battery died when I wandered away from it. Wheee.
I had 4 email windows I was composing, one was a reply to this which I kept open as a todo item, and one was a reply to a private email from Patrick Oppenlander with instructions on how to test blkdiscard. No idea what the other two were.
If you ever accidentally close a chrome tab you didn't mean to, CTRL-SHIFT-T is your friend. (As with "right click -> inspect element -> delete node", there are some things modern web browsers are a lot less usable without.) After last crash a nice person walked me through changing my thunderbird config so it would save email I was composing, and of course thunderbird didn't.
Hmmm, my impression Austin's been mostly peaceful seems premature. It looks like I probably just haven't been targeted due to being white. (And also staying home in quarrantine other than walking to a secluded table in an unused corner of the university after midnight. I feel guilty for not protesting, but I'm still trying to quarantine. Among other things, Fade hasn't had it yet.)
I walked to UT after midnight anyway. I haven't got much other opportunity for exercise, and let's face it: the racist cops are going to see a white guy.
Don't get me started with this "all lives matter" crap. A "wet floor" sign says there is a problem HERE SPECIFICALLY, the only reason to point to the rest of the floor is to draw attention AWAY from the actual problem. If you put up an actual "all floor equally dangerous" sign, there's something wrong with you.
I've stopped collecting links. If you don't know what's going on by now you don't want to know. Fade sent me an excellent summary of what really happened in minneapolis, genericize that to the rest of the country. The police are openly looting in uniform and the military is standing around waiting for the GOP to give the order to murder civilians. Then we see how many of them do. The system has a lower limit on age to hold office so we have to wait for good candidates, but the electoral college and 3/5 compromise let septuagenarians and octogenarians run everything until they die. Ok Boomer.
(No, I didn't collect links. That's what scrolled by while I was writing that paragraph. As the man said, "My the world's on fire, how 'bout yours?")
Rich built busybox for the customer release last month, but when I tried to reproduce his setup (as a mkroot build script) the resulting shell (busybox hush) intermittently segfaults. As in you run the same command twice and one of the times it segfaults, the other it doesn't. Smells like an uninitialized variable maybe?
Rather than try to debug an unfamiliar codebase (I haven't looked at the hush source in years) I upgraded from 1.24 to 1.31.1 (current release) in hopes they've fixed it (it wasn't segfaulting for Rich) and... the build breaks because "off_t size is misdetected"? Which the nearby comments say is a workaround busybox added for bionic, but is triggering on a musl build. (Sounds like any libc that hardwires on Large File Support without requiring you to -D_IT_IS_NO_LONGER_1996 on the compiler command line will hit this.)
It's after an #ifdef staircase that's trying to micromanage a manual uoff_t declaration, which is just sad. Toybox goes out of its way to render unto libc that which is libc's. Something is either toybox's problem, or NOT toybox's problem. "Do or do not, there is no spoon." Eh, there's more than one reason I don't do busybox anymore...
Oh great, that'll show him. Thanks Nancy and Chuck. Problem solved.
Is anybody surprised that this is how the trump administration turned out? They've been signaling this for years.The resident has a profound zero sum mindset, and his dementia means he retreats into ways of thinking set in stone over decades because everything else has washed away. He did his money laundering in the real estate industry, where you can't gain a piece of land unless someone else loses it. In real estate, "I can't gain unless you lose" because there is a finite amount of land that's just changing hands. He extended this into "if you lost, I gained" (because even love canal and chernobyl drove up the price of the remaining land you can still live on). Add in dementia and this simplifies to whipping boy politics: hurting people advances his agenda. Given his racist base lives on schedenfreude, that's exactly what they want to see. They don't care about getting hurt themselves as long as THOSE PEOPLE suffer.
Racism has crippled the GOP's attempts to deal with Covid-19 because they cannot allow any aid to reach brown people, so instead they had to deny the existence of the problem with some pretty obvious lies. And now they're gleefully hoping it spreads among "those people", whoever that moving target refers to this week.
We're basically having our Tianamen square moment. If the fascists win, they will hunt down and murder everyone who stood up. They're way beyond any historical version of "normal". Back in 2016 Will Smith said "Racism isn't getting worse, it's getting filmed.". But now it's ALSO getting worse, hopefully coming to a head as it dies. Right now we're in the middle of a quite complicated venn diagram.
Let's start by restating that the inciting incident was an explicit murder (that's a thread from a medical examiner), caught on camera from multiple angles, and the guy who did it has killed before. No amount of blaming the victim changes that. The military rules of engagement call this sort of thing an execution, and arrests those suspected of it pending investigation. (In the military they're not put on leave, they're arrested for murder.)
I have no idea what's helpful to do at the moment. I think the reason Austin is peaceful (so far) is the APD instituted a strong body cam policy circa 2015, with any and all footage available via texas open records request, which had time to sink in and become cultural to the point "you had your body cam off" is ITSELF strong evidence of guilt. And thus the cops have NOT torn the city apart like so many others.
Here's a state by state bail fund but most of the ones in Texas are there to oppose ICE (which is still horrific, murdering people and kidnapping children even more with the spotlight off them). There's specific advice for dealing with tear gas. (Did you know using tear gas is a war crime, it's only "legal" to deploy against citizens in peacetime?)
At least there have been a few useful half measures (from people finally catching up with the group). Military weapons should never have been given to municipalities in the first place. It was a really stupid policy, a side effect of the federal budget having enough wasteful defense spending to create a literal disposal problem. John Oliver did an excellent piece on this and also on police immunity from lawsuits and one on police stealing people's money and stuff in bulk. (I say "half measures" because there are 40 million unemployed in the USA and about 700k police officers, going to 41 million unemployed is a lot less intrusive than what we're living through right now. If none of us can afford to call an ambulance, why would doing without police be more dangerous?)
Years ago David Graeber said the police exist to protect the rich from the poor, and have no other purpose. They no longer even pretend to serve the public. Mayors should order their police forces to stand down. (Here's the guy those particular cops murdered yesterday.) The police don't care about the law, they break the law with impunity and even obviously violate the constitution. I have no idea why municipalities still fund them. Zero out their budgets.
The police are the problem. All these protests are peaceful until the police show up. The police attack peaceful protests. They attack people in their homes, or just standing still. Less than three weeks ago police broke into an EMT's apartment in the middle of the night and murdered her in her bedroom. The protests are because police have been murdering people on a regular basis with impunity for years. They've made themselves immune from lawsuits, they can steal anything they want at any time with no recourse, and they're collecting military weapons in bulk. And they're happy to protect other racists murdering people. It's kind of a problem.
A related problem is right wing loons pretending to be protestors. White men with racist tatoos start the fires when people with cell phone cameras catch them and report them then sometimes there's enough public outcry the police are forced to do their nominal jobs, but they presumably quietly let them go as soon as they're out of sight of the cameras. After all, they're working together, and this sort of thing isn't out of character for undercover cops.
But once the police do (officially) show up, police actions are pure sadism. They tape over their badge numbers and shut down their body cameras and jam cell phone signals before they attack. Police violence is just another kind of gun violence. Adding the national guard didn't help. Adding in the military can't possibly help.
Here's a thread collecting examples of police attacking journalists. And here's a video montage. They HATE being filmed. But the journalists have way more courage than the police do, and everybody has a camera phone now. Remember the photographer who lost her eye? She's not remotely alone, and cops regularly kill people with this stuff. They're targeting the media, here's another long thread of police targeting journalists. Here's an officer shooting directly at a cameraman while being filmed by that camera.
It's pure racism, the cops don't chase white people caught in the act of looting. At best white looters get a talking to. But they arrest each black person annually, hold them without bail for a day, then release them without charge (and demand an impound fee to get their car back). During the protests, white people are putting black people in danger, and refusing to listen. White people are the problem, majority black cities are peaceful.
In Los Angeles, they're planting movie prop police cars and setting them on fire to discredit protestors. In baltimore, cops stole drugs from pharmacies and sold them to drug dealers. (In addition to be reponsible for most merchandise theft in the USA, the police also commit 1 in 16 homicides.)
And or course the GOP are blaming the left, and doubling down on racism (and antisemitism), with "look what you made me do" speeches while quoting famous racists to justify shooting US citizens. The fascists remain a tiny minority mangified by bots and sock puppets (and of course Russia's been doing this for decades, but the billionaires have learned, and created a hermetically sealed propaganda network).
Biden is useless. The best thing you can say about that milquetoast equivocator is he's not actively making it worse. He looks stellar in comparison to screamy orange racist grandpa but so would a potted plant, which ALSO does damage more slowly. This entire article boils down to "the idiot really really really wanted Amy Klobuchar (who doesn't care who he rapedhow stupid
an idea that was, the octogenarian can't cope with change".The history books of this period may be interesting (or like tianamen square, may be erased from history altogether). We need to zero out police budgets everywhere.
By the way, the reason people were protesting outside Target is they donated $300k to the police to install surveilance cameras throughout minneapolis, and the first store attacked was a pilot for more intrusive surveilance.
Everything is a distraction from everything else. distraction from everything else. Guillotine the billionaires already. That's where the real looting is, each billionaire has stolen more money than this entire national uprising combined.
And we REALLY need to start teaching the humanities again, because our history of racism goes back at least 500 years. (All the other ex-british colonies with right wing governments are still being racist too, it's just come to a head here.)
The onion is continuing to merely document reality, and is not alone.
The biblical "log in thine own eye" applies to all the idiots looking for conspiracies when the "conservatives" are right there acting openly.
So the guy who triggered my first quarrantine stress meltdown back in april has sent more than 2 dozen seperate pull requests via github this week, most of which are stacks of multiple commits. He's well intentioned, and he can occasionally find real issues, but the net result is I've spent more energy saying no to his patches than getting work done on toybox for days now.
In theory this is a series of "portability" fixes for toybox, half of which seem like pointless churn and most of the rest (in my judgement) make the code worse. This signal to noise ratio in this series is incredibly low, but it's also clear he doesn't understand _why_, and there are some interesting lessons here. These pull requests completely misunderstand what I want, and maybe this is my fault. Perhaps I need to update the design page somehow to explain better?
My first question with this sort of thing is "portability _to_what_"? Nitpicky compliace with an abstract standard is "infrastructure in search of a user", especially if you can't regression test it. If the code's been like that for years and nobody noticed, what did you hit that broke so I can add a test case? In the case of "build fixes", what is the BENEFIT of doing that? Where specifically can you build/run now that you couldn't before? Keep in mind, this sort of cleanup work can always be done later when a user/need presents itself. This lazy binding, just-in-time approach to code changes avoids bit-rot.
(Bit-rot is a bit like the Pentagon hanging on to spare uniforms in a style it no longer uses. It bought in bulk to drive down costs and stored them well, why should it throw them out? The uniforms didn't change, the world around them did, and now they're no longer useful. If you ask "what about the uniform changed to break it" you're asking the wrong question, the answer is "its context".)
Some of these pull requests add unnecessary layers of indirection (that link goes to a comment I wrote explaining why that's bad), others break the semantics and change the callers to use the broken semantics while leaving a trap lying around for future callers (that's a comment explaining why THAT's bad). Others enlarge the code without making it any faster, smaller, simpler, or more readable: this one does so at every callsite, and this hides the expansion in a macro. Sometimes I'd already explained in the code why I was doing what the patch undoes.
This pull request changes the kconfig code I inherited from linux-kernel which I already announced plans to completely replace. The patch adds gratuitous changes vs upstream which make the code's continued use harder to understand (larger delta from what we inherited) and less defensible. "Long ago we took a snapshot of this infrastructure and haven't gotten around to replacing it yet" is a coherent story. "We keep modifying this infrastructure, ours looks nothing like theirs anymore, but it's just an old snapshot we don't actually maintain" is not. Back when I did that kconfig stuff for busybox I posted my changes to linux-kernel, and they didn't want them. If anybody sues over GPLv2 code in the toybox tree (which they shouldn't since the resulting binaries don't SHIP, it just makes turns one kind of text file into another kind of text file during the build), my first defense is "look, changes posted here, archived in the public linux-kernel web history, your fault for not wanting them". I still do that (and am surprised when anybody notices). These new changes would NOT be posted to linux-kernel (they're not relevant because their version's had a dozen years of change ours hasn't), which makes a very different statement. I am not maintaining a FORK of gplv2 code, it's grandfathered in and removing it entirely is on the todo list (and right there in the README). If the build started throwing warnings I might patch them out because the toybox build should not generate warnings, and if you come up with an actual target it causes a build break on I'd grumble but might merge changes for a specific testable reason. But it doesn't get aesthetic or speculative cleanups because it's under the wrong license and is very much deprecated, intended to be replaced.
Some of the patch series replace functions with equivalent functions which are actually less portable. (Just because Jorg Schilling suckered Posix into removing tar in favor of pax doesn't mean any linux system anywhere has pax or doesn't have tar 20 years later, and similarly deprecating/removing cpio didn't stop RPM and initramfs from basing their file formats on "cpio -h newc", and there's even talk of extending cpio for sparse files, xattrs, and 64 bit timestamps).
Aside: microseconds suck, please stop using them. Milliseconds measure human perception/reaction times, nanoseconds measure computer reaction times, microseconds measure NEITHER and must be converted into something else to ever be useful. Just as C++ is in the no-mans-land between C (explicitly describing what the hardware needs to do) and scripting languages (abstracting away lots of implementation details), microseconds are in the no-mans-land between nanoseconds and milliseconds. Figure out whether you want human time or computer time and use the appropriate unit, which is never microseconds. I've ranted about this before.
Don't use PRIu32 and friends when you can avoid it. Toybox uses LP64, which means char is 8 bits, short is 16 bits, int is 32 bits, long long is 64 bits, and long is the same size as pointers (32 bits on 32 bit systems and 64 bits on 64 bit systems). The basic integer types HAVE DEFINED SIZES, and this standard is used by Linux, BSD, MacOS X, iOS, and Android. The only thing that DOESN'T use LP64 is 64-bit windows (on 32 bit windows long and pointer are the same size), and modern windows can literally run Linux binaries. I'm quite happy to break compatibility with the win64 API, we have NEVER supported it and won't.
I'm on the fence about ending structs with array[0] vs array[], because the first has been accepted by compilers going back to the 1980's (really, Turbo C under DOS let you do that), but the standards committee decided the second (which used to be a syntax error) is what they were going to standardize. The first uses conventional K&R syntax from the 1970's to request zero bytes of memory be allocated (sizeof(*array)*0 is 0, the compiler is not confused about what to do), and then calculate how much extra space you want when you malloc() the struct and access it yourself. Then the "add undefined behavior to break existing code" brigade went "but bounds checking of arrays!" So they added a NEW syntax they had to change compilers to NOT treat as an error in order to mean the EXACT SAME THING as what people had already been doing for years, all so you STILL couldn't do bounds checking on these cases because the compiler still doesn't know how long array[] is either. If you instead taught your bounds checker "a zero length array doesn't get bounds checked" everything would have been fixed without having to change existing code.
Easy rule of thumb: assume C coders know what they're doing, and that C++ coders do not. C++ coders have already chosen to use C++ and C coders to use C, and that's a GREAT BIG SIGNAL right up front as to who is making good decisions here.
Standards bodies should DOCUMENT, not LEGISLATE, because every time a standards body tells people to change existing code IT IS A BAD THING. Implement compiler extensions, deprecate them if they turn out to be a bad idea, if they become widely used and adopted by multiple compilers (the way llvm picked up using "x ? : y" as a synonym for "x ? x : y" that doesn't evalute the first argument twice, which gcc's allowed for a couple decades now) THEN the standards body can go "ok, four different shells now support set -o pipefail, write it into the spec already".
But anyway, array[] exists now and has since c99 and I'm fine with using it, and the reason I'm on the fence is it IS one fewer character. If I was writing it in the first place and somebody looking over my shoulder pointed it out, sure I'd change it right then and there. But a patch to change array[0] to array[] is churn, and is it worth the churn? It's a diff that makes noise but doesn't really accomplish anything. As part of a larger change, sure. If you have a cleanup pass moving stuff out of pending, fine. But on its own? If the patch doesn't justify its own existence, having multiple separate commits to do the same thing is even less justified.
Other pull requests ignore allocation context, such as the way setenv() inserts the provided memory directly into the environment array, while putenv() creates a malloc() copy to insert into the array (and thus leaks it if the variable's value is replaced later). I wrote an entire file of infrastructure to handle environment variable allocation lifetimes, and have blogged about the issue repeatedly for years.
Another pull request replaces setlinebuf(stdout) with the equivalent setvbuf(stdout, 0, _IOLBF, 0) and which of those two makes it immediately clear what the function does, and which has a macro starting with an underscore for no immediately obvious reason? And of course the pull request is a stack of 4 seperate commits doing it in 4 places. (If you add .patch to the end of github pull request URLs you get a git format-patch style mbox file you can apply with "git am", and I sometimes edit those patches by hand in vi, to do things like squash 4 commits together into a single commit. In this case I would probably take a patch going the OTHER WAY and consider it a code cleanup because the 4 argument version is larger per call, with more cognitive overhead to understand even WITHOUT having to look up what a "vbuf" is or what _IOLBF does.)
Here's one that just straight-up ignores the stated goal of the toybox project as explained in the about and design pages that toybox is a Linux project building and running on Linux and implementing Linux commands with reference to the Linux man pages and the Linux standard base. Instead he says:
On linux, utmp isn't obsolete, and utmpx is the same as it, but on pretty much any other system utmp is obsolete and utmpx should be used instead.
See that part at the start, "On linux, utmp isn't obsolete" and then add a period. Full stop. "Should be used" is editorializing, this guy saying "what I want is more important than what you want, because I define 'should' and you, the project maintainer, do not". How nice. (This is AFTER the blow-up in april back when I cared WAY more about what he thinks and let my repeated objections being ignored and walked over affect my enthusiasm for the project. At least it was a learning experience for one of us.)
I can almost see the point of not wanting to use void pointer arithmetic and mostly I don't, but I avoid it by changing the type of the variable, NOT by inserting gratuitous typecasts (which are themselves a source of bugs, and which make the code larger and harder to read and reason about). In the called out cases (again ignoring pending which needs systematic analysis and restructuring, not fixing an apostraphe in the Eye of Argon), the types are void for a reason, and you'd insert a new variable just to copy the argument into, which I've done in plenty of places, but in context I'm just so exhausted by the rest of the pull requests I don't want to explain how to change it so that I might accept something that isn't worth doing. I'm not really bothered by it being in the code. Yes a few leaked in, if a compiler shows up that doesn't support it I assume it'll throw an error. If it wasn't for the other 25 pull requests maybe I'd care more, but in context it seems LESS worth doing.
But to be fair, let's end with an almost sort of worthwhile pull request. As with the zero size arrays this patch might be worth doing as one big cleanup pass for trivial issues. As with array[0] vs *array, you can say array[] is slightly fewer characters and toybox has a policy of consistently using the shorter way of expressing something when there are two equivalent ways. (It's under Coding Style on the design page. It's not worth multiple commits to do it, one cleanup pass changing all the instances is more or less a "fix typos in comments" level of "eh, doesn't hurt anything".)
But he's not motivated by that, he's submitted pull requests going the opposite way because he wants to eliminate all estensions for no obvious reason. This is a Linux program, it's not gonna build on windows. I actively don't want it to. Cope.
He's still at it, by the way. he found two tiny legitimate-ish changes that I would actually make... in code in pending that needs massive cleanup anyway. This is like reporting capitalization mistakes in the first draft of a novel: whole paragraphs are going away, these changes are not worth making at this time in this context. This isn't worth one commit, let alone two. (Note that earlier when he found a usleep->msleep change what I wound up doing was a big cleanup pass on the file, which isn't even ALL the cleanup I need to do there but I sat down and did enough work to bother checking in.)
Anyway, that's why I didn't get anything done on the shell again today. I was being a good maintainer, responding to user submissions, looking at and explaining why these changes should NOT go into the codebase. And then I was out of energy and went off to do other things. I've written it up here in hopes that at least SOME good will come of it.
P.S. I tend to think of code in context. For example, I'm implementing job control in the shell and I'm using "int" for the "plus" and "minus" indexes (I.E. the two most recently active jobs in the job array, which get a + and a - after them in "jobs" and can be referred to as "%+" and "%-".) While I _COULD_ use unsigned for this, in order for that int to wrap you'd need 2 billion simultaneously active jobs, and the Linux Process ID table doesn't go up that big (and ain't gonna). In linux the type of pid_t is also "int" (signed!) and the default value for /proc/sys/kernel/pid_max is 32768.
But it's not even a question of future proofing: ignoring kernel internal scalability, and the wattage to run millions of processors in parallel, just the MEMORY is infeasible. In order to have 2 billion simultaneous jobs you'd need at least that many processes (not threads), and if each has an 8k stack and dirties NO other pages (static XIP binary with no PLT or GOT fixups, on a nommu systems so a process doesn't have page tables), that's still 13 terabytes of RAM just for the stacks.
"Oh but future machines..." No. Moore's Law is basically over (because all S-curves bend down eventually and this one ran for 50 years). The 18 month doubling time of memory no longer applies, the rate of increase in computer capacity is decreasing as the curve bends down. A 2010 macbook came with 2 gigs of RAM, a 2015 macbook came with 8 gigs (only 2 doublings in 5 years, when 4 1/2 years is 3 eighteen month periods) and the default memory for a new macbook 5 years later is 16 gigs (only ONE doubling in 5 years, it's slowing fast). Sixteen terabytes (which still isn't enough to DO anything with 2 billion processes, if each was "hello world" it's still bigger than our example) is 10 more doublings from there, so is that 50 years or "never"? (It's going to keep slowing, that's what S-curves do, and the laptop->phone switch adds another 2 doublings.)
But ignoring ALL THAT, the fix would just be "if (jobcount==INT_MAX) error("cannot background");". None of these patches tried to make that particular change, but it's a design decision I just had to make for new code today, and explaining WHY is a bit of a lecture, innit? Either you understand this sort of thing, or you need a huge infodump just to have a frame of reference to make a decision in. It's a conundrum. I don't want to discourage people, but it's a giant timesink and the most dangerous part is when you THINK you know what you're doing and project confidence. Me, I'm here spending more time working out regression tests than writing code!
Fade's back in Austin (having always been scheduled to return at the end of the semester) and she's been posting a lot of links about what's been happening in her city despite not usually being all that political on her twitter.
I mentioned on the 16th that Harvard is the rape cover-up place.
Wear safety goggles while protesting because cops aim rubber bullets for people's eyes to cause permanent injury (a technique they picked up from chile and warning about that last link: close up photos of the results).
Here's a long detailed thread showing how the looting and fires are caused by white racists posing as protesters, while actual protestors beg them to stop. Dozens of examples, video from multiple cities. Some undercover cops, some Klan. They're even trying to organize fake protests to get real protestors to show up as cover while they play-act "the purge".
It's not just klan and undercover cops committing atrocities. On-duty in-uniform officers are doing it to. ran his car into a crowd of protesters, and here's a mounted officer running a woman down from behind with his horse. They're doing this openly, and explicitly targeting journalists.
Guillotine the billionaires. I know we're all waiting the worst of them to die of old age, but I'm not sure there's time.The modern economy is still completely fictitious. Money is a way of keeping score. The government prints it at will, and running out of money is like running out of laws. It's an IOU the government issues and will accept back in payment of property taxes (which are unavoidable unless you're homeless; your landlord pays even if you don't). The united states' highest period of prosperity is the same as when its debt was highest: under the Eisenhower administration just after World War II. Most Government debt is borrowing money from itself, which is a way of printing money without acknowleding you're doing it (because it's perpetually "temporary").
The only downside of printing too much money is causing inflation, which is good for debtors (our debts decrease), and the easy way to reduce inflation is to either tax the rich to get the extra money out of circulation, or increase the supply of stuff to buy with the money. But inflation hasn't been a problem for the US economy for 40 years. Instead the united states economy has the opposite problem, it's stuck in a perpetual demand limited liquidity crisis, even over ten trillion dollars of "quantitiative neasing" in the years after 2008 couldn't get the inflation rate UP to 2%, it's stuck below that.
Having the _opposite_ of inflation means we can easily afford basic income, and politically all you have to do to implement it is pass a one page bill setting the social security elligibility age to 0 and granting everyone at least the "worked 30 years" minimum benefit of just under $900/month. And if the republicans could figure out a way to do that ONLY for white people without letting brown people benefit, they'd have already done it. (The appeal of the Resident has always been the idea that he's hurting "those people" at least as much as he's hurting his supporters. Every article about ICE stealing a baby buys him an indulgence from his base for whatever bad thing happens to them. They live on racist schedenfreude. They also have a zero sum mindset and the Resident even more so: they don't win unless somebody else loses, and whenever they hurt somebody else they MUST have benefitted even if they can't immediately see how.)
The capitalism of the united states has always been racist. Slavery was for-profit. At the time of the first civil war, the dollar value of the slaves was greater than the dollar value of all the real estate (land and buildings combined) of the South. The southerners were fighting over MONEY. And the billionaires today are responsible for (and steering) this mess.
Um, doesn't "all OSI approved licenses" include 0BSD, a public domain equivalent license? I guess what they're saying is if you _relicense_ to a proprietary license, then they can sue you.
Darn it, I was building mkroot and this happened:
Compile toybox....scripts/make.sh: line 34: echo: write error: Resource temporarily unavailable
...scripts/make.sh: line 34: echo: write error: Resource temporarily unavailable
............scripts/make.sh: line 34: echo: write error: Resource temporarily unavailable
Line 34 is:
[ ! -z "$V" ] && echo "$@" || echo -n "$DOTPROG"
It's saying stdout to the PIPE is temporarily unavailable. And isn't this the bash built-in echo doing this? Is... wait.
There's nothing in dmesg about this. To the mailing list!.
(Half the reason I say "I break everything" is when something like this happens I STOP and DEAL WITH IT rather than letting it go. For the same reason you don't let a roach escape under the fridge and go "I'm sure it's fine", you call the Letal Chemicals Man to show up in his ice cream truck playing helter skelter and perpetrate chemicals everywhere. Never let a bug go is similar to never let a crisis go to waste. Other people are better at deadlines and not getting distracted, but I'm trying to do science here).
Fade is scheduled to fly back to texas tomorrow, and isn't sure she can make it because minneapolis is... unwell.
The riots in minnesota are because people are (peacefully) protesting racism in the police force, so the racist cops are pushing things into riots to discredit the protestors.
The first store vandalized was caught on phone camera (people asking the white guy not to smash the store window and him threatening them with violence, then he ran off towards the police station). He has now been identified as a St. Paul police officer.
Of course none of this is making national news, I'm hearing about it from Fade who's now definitely flying back to Texas tomorrow because a friend gave her a ride to a hotel near the airport, where she's spending the night.
None of this is new, by the way. An interesting contributing factor to LBJ's decision to sign the civil rights act (and thus hand the "solid south" to the GOP, setting off the Southern Strategy) is that his research team figuring out why the detroit riots happened said it was racist cops.
Oh hey, after midnight the idiot state police arrested a CNN camera crew during a live report, and refused to say why. Ok, NOW it's getting some coverage. This is complete third world stuff.
And of course, the onion is on top of it.
Really, their whole main page right now.
Ooh, here's a practical thread on how to get the klan out of police forces. (See also.)
Did you know the police now steal more stuff (through civil asset forfeiture) than the official criminals do? The police have become the problem. (Of course most of the rest of the theft is the rich stealing from poor.)
As with Toys-backwards-R-us and Sears, Herz didn't go bankrupt because of the economy, it went bankrupt due to rich bastards stealing its money and loading it up with debt. Under the current administration, billionaires are literally buying off legal enforcement. The only reason Bain Capital (destroyer of Toys R Us) is getting dinged is because Mitt Romney is out of favor with the administration. Scratch the surface of any conservative action and you find a get-rich-quick scheme. That's why "guillotine the billionaires" is the central political idea that makes sense.
Of coure the billionaires know it, and have been expecting it. (They're surprised the rest of us have put up with it this long, they know exactly what kind of monsters they are. Rachel Maddow did an excellent piece on this back in 2010, the video of which has vanished from the the msnbc site from the but at least there's still a transcript).
That's why the billions in defense spending become domestic hardware to keep the populace in line. (Democrats keep falling for this. Clinton doubled police on the streets, it was a bad thing. They keep handing the GOP more stazi to keep the brown people down, and as always the order goes "done to foreigners, done to brown people, done to poor people, done to everybody".)
Meanwhile, the voting system is still extensively rigged.
Pipes need to live outside block type evaluation:
$ echo hello | potato() { echo abc; } | echo ha ha
But enabled/disabled segment evaluation (blk->run) is relative to block type. Blocks 0 and 1 skip if disabled, type 2 changes blk->run, and type 3 loops back when blk->run && "done". Not sure how the layering should work here...
Meanwhile, there's a syntax error checking miss: sh -c 'if true; then echo hello | fi' should complain "unexpected fi". (Ok, fixed it but I had THREE ongoing forks of the same file while I was doing that, and it makes me really nervous.
I wrote a long email message I can't send yet because Google mail has decided that any attempt to access its pop3/smtp servers via t-mobile phone tether is inexpicably invalid somehow (with the misleading "how dare you not use the web UI lock-in for everything" message), but it'll still work via Google fiber because that's their service. The Google proprietary lock-in is getting Google annoying. I'll have to send it from home later. (Yes, I'm still social distancing, the midnight walk to abandoned parts of UT remains very useful.)
The type 0 (simple command) and type1 (start of block) logic both handle pipes and redirection, and I'd _like_ to merge that handling but there's a lot of shufflilng. The combined logic would look a bit like:
end = pl->type ? block_end(pl->next) : pl; ctl = end->arg->v[end->arg->c]; // Skip disabled block if (blk && !blk->run) { if ((pl = end)) pl = pl->next; continue; } if (pipe_segments(ctl, pipes, &urd)) break; ... // Parse and run next command, saving resulting process dlist_add_nomalloc((void *)&pplist, (void *)run_command(arg)); // If we didn't pipe output to next command's input, wait for exit if (*pipes == -1) { if (ctl && strcmp(ctl, "&")) {
Speaking of which I still have a todo item to change how dlist works, but the churn's a bit unpleasant...
Did you know that the forward lean the Resident does _is_ one of the diagnostic factors for progressive supranuclear palsy, going back a hundred and thirty years? (Of course back then it was called Atypical Parkinson Syndrome, as in "a variant of Parkinson's disease that's also Althzehimer's".)
Conservatism isn't conservative, it's just fascist, racist, misogynistic, and plutocratic. But then conservatism boils down to the fundamental idea that some people are destined to own slaves, and others destined to be slaves. (And that's why they think hoarding food during a famine is right and proper, because their right to property trumps anyone else's right to keep living, or else what's the law for? Taxing billionaries to fund food stamp programs is against the natural order of things to conservatives. Peasants live or die at the king's pleasure.) This is of course why the guillotine was invented, because you'll never change their minds any other way.
This is why "conservatives" are all-in on voter suppression. Not only is it their only remaining way to stay in power, but their fundamental world view says "those people should not vote, we're special and they're not, we must rule or the world is wrong". They fundamentally do not believe "all men are created equal", and thus cannot believe in democracy. They KNOW they're a tiny minority, and think that's what makes them special. There have always been far more plebians than patricians, more peasants than nobility, more slaves than plantation owners.
Of course they edit the historical record wherever possible. Because what they say and do looks stupid in retrospect. For example, when Bill Clinton balanced the federal budget and maintained a surplus, his successor George W. Bush's first budget slashed taxes on the wealthy with the rationale (and I quote): "You see, the growing surplus exists because taxes are too high and government is charging more than it needs. The people of America have been overcharged and on their behalf, I'm here asking for a refund." This quickly led to the biggest deficit in history (at the time). He tried to turn paying down debt into a moral evil, because billionaires were being taxed.
It's also why the GOP has just eliminated accurate food labeling in the USA. Poisoning "those people" is fine, the rich can afford the good stuff without metal shards and downer cows in their caviar.
And it's why the GOP started agitating to break quarrantine the day after the new york times and washington post announced that black people were disproportionately hit by the disase. (Because poor people tend to love in food deserts where being malnourished looks like "I need to eat 3x my daily calorie needs to get enough nutrients", haven't got spare time/energy to exercise, can't afford to stay home from work, accumulate health conditions they can't afford to treat before they turn chronic...)
(Oh, did I mention the hospital is pestering Fuzzy for money because she thought she had either a kidney stone or a kidney infection and the second can be life threatening, and the local "charge you $200 up front" clinic's test was inconclusive so she broke down and went to the hospital and they did an MRI and found nothing, sent her home without treatment, and the hospital charged her $11,000 for it? She filled out the "I have no money" forms, they've asked her for more information 3 times already, and meanwhile send ever-increasing bills they're about to send to collections because the low-income paperwork does not pause the billing process. She spends hours on the phone each year confirming she still doesn't qualify for obamacare because Texas turned down the medicaid expansion money.)
Conservatives like stupid leaders. The 4 of the GOP's last 5 presidents were the current dementia patient, George W. "is our children learning" Bush, Ronald "I don't remember iran contra and will die soon of altzheimer's" Reagan, and Richard "not a crook" Nixon. Only Dubyah's father wasn't stupid enough to get a second term. He completely avoided the domestic economy to the point Dave Barry faux-quoted him "The united, whadayacallum, states. Barbara and I have a summer home there." but he showed competence on foreign policy (under Nixon he was head of the CIA), and that made him unpopular with his base.
Oh hey, religion's found a new way to kill people. I mean seriously, they're a disproportionately large source of Covid-19 deaths. (P.S. A common communion wine vessel the entire congregation drinks from was probably _never_ a good idea.)
It's not that the Boomers have all the money, it's that they have all the LAND. The rest of us are still waiting for them to die. Eat the rich and end the boomers.
Did you know that countries with functioning governments have the press hold press conferences and invite politicans to address them? What a concept.
Rich is using out of tree kernel headers in musl-cross-make. I'd really REALLY like him to reread the Linux From Scratch's project's attempt to put together a FAQ about Mazur's old out of tree kernel headers package from 2004, and then NOT make that mistake again please. (I am quoted multiple times in that page.)
Tomorrow is two weeks from the toybox 0.8.3 release and Wikipedia[citation needed] hasn't noticed yet. I suppose I should do some sort of mailing list posting on project progress since that section still says "in 2015 it had made it halfway to its goals" and I'm going "um, yeah, that was 5 years ago?" (Ok, wrote a thing about it on the list.)
Ooh, found out that zsh has a shell test suite. I should see if I can cherry pick any useful tests from there.
Ok, where did I leave off implementing job control: with a note that the backgrounding decision needs to be made before the enable/disable decision for a block. Which is wrong, because a disabled block shouldn't spawn a process, there's nothing for it to do. If the process on the left side of the pipe is enabled and running, then the process on the right side has to be, all the enable/disable stuff is either && || gates (which are "wait for left side to finish" not the parallel execution of piles or &) or else it's running a test, and even "if false; then blah; fi" runs false. I suppose "for i in $EMPTY do echo $i; done" expands to an empty variable list and runs nothing, but it still runs a statement to do it. The for is enabled and the list expanded, which can have ${SIDE_EFFECTS:=42}. Even "cat | if false; then blah; fi &" runs the "false", I.E. executes the if test.
So you launch the _entire_ pipeline after the enable/disable for that block level. Hmmm, the thing is, pipelines are a bunch of parallel statements that get executed simultaneously, and the "background" this decision is at the end of the pipeline, which is fine as long as none of the statements _in_ the pipeline block (ala "read i"), which is probably why bash makes every pipeline statement a sub-process even for builtins.
I thought we knew this, but we're learning it all over again.
Twitter remains a hellsite.
The GOP are nazis. This is not hyperbole.
Sigh, I have a large diff in toybox/toybox/toys/pending/sh.c implementing wildcard support, and another large diff in toybox/clean/toys/pending/sh.c trying to fix backgrounding& and (subshells) which I thought would be a "quick fix" and turns out to be "because job control isn't implemented and the stubs I put in don't work". (And now I may need a second "clean" directory to deal with the reports about the echo \0 fix being insufficient? Right now "make tests" fails with a build break in sh.)
Ok, circling back around to this: pipelines are trees, not lists. The commands nest, ala:
if true; then echo hello; zcat blah.gz & fi | ssh me@elsewhere thingy
in which case the output of both the echo and the zcat go to ssh, in sequence. And in fact I can add a simple-ish test for that:
{ zcat file.gz & } | wc -c
or even
if true; do { sleep .25; zcat file.gz; } & done | wc -c
And just make sure it gets all the bytes, I.E. the "wc" waits for the backgrounded process to finish. (I tried first with md5sum and sha1sum but they insist on crapping " -" on the end when reading from stdin, with not one but TWO spaces, and I need awk or similar to peel it off and I just dowanna. The toybox -b outputs JUST the hash, which you'd think would be a thing in the existing tools, but no. In the gnu/dammit version "sha1sum -b" is "binary", as in "don't translate dos newline/linefeed pairs", which should not be a thing on the Linux build in 2020 regardless of backwards compatibility, it's like having an ebcdic translation switch in the dos build in 1995).
Anyway, the question is what does the shell WAIT for. What signals "don't advance until command completion". Because an & attached to an enclosing block makes the entire block a subshell, so each block has to check for backgrounding at the same time it checks for redirects. Meanwhile, each block level has to have its own pipeline list, because blocks can be chained into pipelines the same way individual commands can.
So block doesn't have an urd, it has a pplist... ok, the names are problematic.
A "struct blockstack" contains the information about the current set of active blocks we've nested down into: if statements and for loops and curly brackets and so on.
A "struct sh_pipeline" should probably be called sh_segment, because it's a pipeline segment, I.E. a command between semicolons or && or | or newlines. (Maybe it's just sh_command?)
A "struct sh_process" is information about a running process with a pid and an expanded argument list, unredirect() file descriptor cleanup list, and list of memory allocations to *delete (mostly from expanding the argument list).
So run_function() starts with a linked list of sh_pipeline, produces a stack of blockstack as it goes along, and calls run_command() every time it has an individual command to run, which returns an sh_process that gets appended to pplist so we can wait for it. (Builtins commands return an sh_process whose -> pid is 0 because it never spawned a child process, just ran it internally as a function call on the assumption they return basically immediately, which is not true for "read".)
Ok, a block with & after it is logically a (subshell), it's just backgrounded and added to the jobs list instead of waiting for it. A (block) in parenthes is a subshell because its got its own PID and local variable definitions and such don't affect the parent context, and any command with | after it's _also_ a subshell, or at least bash is treating it that way.
Except it's not just commands, blocks with | or & after them become subshells too. I need to unify two levels of plumbing...
The only way to not take Covid-19 seriously after January 23 is to be so racist you don't think you can get the same virus as foreigners. (Ha ha, the country that manufactures all our stuff has placed millions of people under quarrantine, look at all those ignorant savages who build our iphones for us, what can THEY know with their 3d printers and passenger drones and pervasive facial recognition cameras?) I was in japan at the time where we all knew it WOULD go global, the only question was the timeline.
Interesting thread on the dynamics of fascism.
Guillotine the billionaires.
Why giving money to the New York Times is a bad idea, part 37,602. I mean seriously, they're terrible. The "grey lady" is very grey, in both the "views differ on shape of planet" and "way too old" senses.
The oil companies blame everyone else for global warming.
Of course half the twitter accounts lobbying to break quarrantine are bots. Is anyone really surprised by this?
The governor who stole the Georgia election from Stacey Abrams is now stealing a state supreme court seat.
The Boomers are not dying fast enough, nor are the even older geezers the Boomers vote for. The Boomers are trying hard to take the USA down with them.
87% of the manufacturing job losses in the decade after y2k were due to automation. (Which still raises the question why capitalism decided to outsource manufacturing to china and service to india.) What remains of the US economy is completely fictitious.
Good thread describing how the GOP imploded into the modern "know nothing party". (Yes it was really called that, yes it was right before the last civil war.)
Back at the table at UT but... I'm not sure I'm staying long? It's SWELTERING and the mosquitoes are out. (Not all THAT hot, but really, really humid. I miss my air conditioned corner at Wendy's.)
I've been doing a thread on the toybox list because I'd hoped to get Elliott to comment, but he didn't. The main new observation is:
What I probably should be targeting is "5 years from now there's gonna be a lot of old 64 bit phone hardware with USB-C in the backs of drawers", and people will want to use that as hobbyist development systems the way Linux took over all the old 386 PCs in the 1990's but ignored the 286 systems.
Ala my "I wanna make all those old android devices useful" crusade probably isn't going to reach back before everything switched to 64 bit CPUS with USB-C. This realization was triggered by me dredging up a nexus 7 tablet from the back of a bookcase (Fuzzy wanted to send her mother a tablet, we sent her one of the spare amazon Fire tablets I'd buy cheap on prime day and once again confirm I couldn't reimage with AOSP, then shelve). Since I had the tablet and nobody'd touched it in at least a year I unlocked the bootloader (wiping it) then realized the reason you couldn't upgrade it beyond Android M is that's the last version of Android that shipped 32 bit binaries. Yes LineageOS has backported stuff, but... Linux 0.0.1 in 1991 ran on the 32-bit 386 and ignored the 16-bit 286 hardware. Minix focused on supporting the 16-bit hardware and LOST badly. We've been here before, and focusing on the old stuff was the LOSING side. Huh.
Today's new semi-related news is that microsoft continues to upgrade their Linux support in Windows 10, now running steam games and such with full 3D acceleration. Why are they doing that? Because it makes perfect strategic sense from a mainframe->minicomputer->microcomputer->smartphone perspective: big iron is consolidating and the "server space" has collapsed together before. Linux owns the cloud, so to put Windows in the cloud they need to turn Windows into a Linux. Microsoft wants a slice of the cloud pie, and is thus trying to prove Windows can host a Linux VM as well as anything else can.
Context: Starting around 1970 minicomputers kicked mainframes up into the "server space", then starting around 1987 the PC kicked the minicomputer up into the server space. At which point everybody suddenly found out there's only one server space, and all the systems in it are at least semi-fungible (out of sight, out of mind, make it work, here's a check), which meant IBM and DEC fought to the death. Eventually IBM stole all the VAX customers and drove DEC out of business in 1996, but IBM's technology wasn't unchanged by this. Before minicomputers IBM's Big Iron was punch card JCL ebcdic batch jobs written in cobol, fortran, S/360 assembly, PL/1... Afterwards IBM's big iron had C compilers, ASCII support, and interactive multitasking because that's what the server space looked like now, meaning that was the price of entry.
Around 2007 the PC got kicked up into the server space, this time the process has a marketing budget and was called "the cloud", about the same way individual bugs have names like heartbleed and meltdown these day. ("The cloud" is just existing Linux clustering technology combined with containers and a management GUI for easier administration.) This time around Amazon defeated IBM, but instead of cutting off its head with a big lightning show while "She's the Princess of the Universe" played on electric guitars, IBM survived by running away and buying Red Hat, pretty much the same way AOL bought Time Warner in the dot-com days. (The company that did the buying is the one that got eaten by its acquisition: IBM is Red Hat now, doo dah doo dah.) Today "big iron" means Linux container images transparently live migrating across interchangeable anonymous hardware instances, and that transition is OVER. It has happened, past tense, and the loser has fled the field. The server space is "cloud" as far as the eye can see.
Intel and Microsoft are PC companies, and the PC is big iron now. Just as IBM turned itself into a Linux company to keep cashing big iron checks, Microsoft also has to turn itself into a Linux company if it wants to play. And it can: being the original source of a technology means little in the business world. 3com inventing ethernet is a historical footnote, IBM was irrelevant to the future of PC hardware by the end of 1987, and AT&T's unix commercialization efforts lasted something like 7 years before losing the BSDi suit (which Linux rendered largely moot anyway). Microsoft has a history of "embrace and extend", and they'd happily pull that again if they could (become the most widely used version via monopoly leverage bundling, introduce proprietary extensions which become widely used because they're widely deployed, render competitors incompatible with a moving target), but Amazon is unlikely to LET them. The server space is _fungible_.
But the INTERESTING thing is that's all focused on the cloud. It means PC tech is ready to retire to the big iron rest home. The fact we're still forcing people to buy a Microvax in order to build dos apps in C (but we'll let them write all the Basic they want under DOS) is a FAILURE on the part of phones to be self-hosting. The phone needs to become a first class development platform so that having a PC does not make you a "better" developer, because there's nothing you can ONLY do with a PC that you can't do (possibly more slowly) on a phone.
Working on it...
At UT again. Late at night, heavily caffeinated. Spending effort to NOT put comments like "Heisenborg may have assimilated here" into the code I'm writing.
It belatedly occurred to me that the reason UT was so busy late at night on friday and saturday nights is... weekends are a thing! (Oh right.)
At least part of the problem with gmail's pop/mail servers randomly refusing to work is that ipv6 addresses don't work and ipv4 addresses do. (The error messages are TERRIBLE, but the behavior is consistent.) And it seems to cache however it talked to the server last, and then it's hard to dissuade it from doing it again.
The sh -c '(echo hello)' segfault turned out to be a use after free error. I need to switch on some variant of poisoning. (Valgrind is supposed to do all this stuff, and I should sit down and try to figure out how to get it to do its thing at some point.)
Except... the REASON for the use after free is expectation mismatch between bits of the code about whether I've implemented job control yet or not, and there's design work to do here.
Ok, at the end of a shell block you can have redirects or gating logic ala sh -c "{ true; } > /dev/null && echo hello" and the redirects get undone when you exit the block, so I was saving them in the block structure. I was parsing "} > /dev/null &&" as a normal (if nonsensical) command with pp = expand_redirect(), and then I grabed the unredirect list out of the resulting pp (an sh_process structure) and stuck it in the block structure, then freed the temporary pp. But the (subshell) logic would fork() (or do the elaborate nommu equivalent), save the new pid to pp->pid, and add it to the list list of running processes. Except that pp has already been freed after having its guts harvested because of the earlier case.
The bigger problem is that type 1 statements start a new flow control block, and type 0 statements execute commands which can spawn child processes and add them to the running process list. This means:
if (type 0) { do process list stuff } else if (type 1) { I neither have, nor wait for, a list of child processes }
But (subshell) | if true; then sed s/a/b/; fi | { tr x y; } is ALSO a list of simultaneously running child processes. Am I already handling that case? If so, where does that process list structure live?
Sigh, git annotate says I wrote this code in August of last year, and I've already forgotten how it works. THIS is why I was going "if I down tools and step away from the shell for any length of time, I'll probably never get back to it". I'm already spending more time reading what's there and trying to reverse engineer it than writing more code. This is why commands shouldn't be longer than 1000 lines, I'm not smart enough to keep it all loaded into my head at once...
Cool, solar and wind are on course to out-generate coal in the USA this year. Here's a lovely chart showing when it becomes cheaper to install new solar+battery farms than to continue running existing fossil fuel plants (answer: already is in some places). That's not "what new ones should I build", that's "rip out the existing one, it costs too much to feed". And given that the same is happening in transportation, soon fossil fuels become just a petrochemical feedstock, which oddly enough can probably be displaced by corn, since corn is a platform (and US agriculture is a real estate hustle).
I first noticed how INTERESTING solar had become because of a tedx talk on youtube (which I haven't been able to find again because the tedx channel posts 100 mostly useless talks/day) about somebody who visited a very rural third world village where everybody was replacing kerosene lighting with $15 solar camping kits running a string of LED christmas lights off a battery. These people had BEEN spending $10/month on kerosene forever, and now a one time payment of $15 meant they never had to pay for kerosene again, and selling kerosene to the third world for lighting was a $1 billion/year annual business for the fossil fuel industry.
This led me to a talk by Avery Lovins on how kerosene had replaced whale oil for lighting, how whaling declined not because of a shortage of whales but because a new technology rendered it commercially irrelevant before it could drive whales extinct, and how the same thing is happening again now to crude oil. Oil use isn't declining because oil is running out or getting more expensive, it's becoming commercially irrelevant due to new better technology.
Eventually I found Tony Seba's book tour talk (which was so popular he gave it to dozens of audiences, and still occasionally does updated versions). I later found a mutual fund manager's presentation to his investors of his own independent analysis of Seba's talk, and a recording of Seba's class from his professor days explaining the size, scope, and composition of the energy industry (circa 2013).
But I was late to the party on all this. Paul Krugman wrote a column about the rise of solar back in 2011, and the frustrating part is he did NOT mention the new enabling techology that had just unlocked much of its potential. And I had! I tweeted about it at the time! But I read the May 1, 2011 article Microinverters are launching a solar renewable revolution, went "huh", and moved on.
Microinverters are tiny, cheap, efficient inverters you can glue to the back of each solar panel. This decouples the panels so they didn't have to be wired up in series anymore, and that was a BIG DEAL. THAT is the point modern solar really took off, because physics.
Each solar cell generates about 1 volt, which is a small enough current the resistance in long wires can easily dissipate it. It's not a USEFUL voltage, and before microinveters the standard way to deal with that was wiring multiple solar panels up in series, which adds together their voltage to raise it to to usable levels.
The problem is, solar cells only conduct when they're generating. The cells that aren't currently illuminated RESIST current instead of passing it. This means that when solar panels are wired up in series and some of them are partially shaded, the dark bits don't just fail to generate anything, they actually EAT power from the other cells and get hot, subtracting from the energy produced.
(Batteries do something similar, most battery chemical reactions produce a volt or two and get stacked together, for example the 9 volt battery in smoke detectors is 6 stacked carbon-zink cells, each producing 1.5 volts. It's just a physics thing we have to deal with. That's why it's so important that the individual cells in larger batteries match exactly, because some of them going dead before the others, or filling up first when charged, makes the chemistry inside those cells eat itself when the rest of the battery tries to discharge that cell below zero or charge it past 100%. Silicon solar cells can be get very hot without being particularly damaged by it, battery cells tend to leak acid or explode.)
But an inverter turns DC current into AC current, and AC current can be sent through a transformer to exchange voltage for amperage and vice versa. (Transformers are famously one of the most efficient machines ever invented by humans, it's just a ring magnet with different amounts of wire coiled around two different sides of it, the big industrial ones are 99.7% efficient and even cheap crappy ones are generally at least 95% efficient, which means they lose less than 5% of the energy going through them as heat. The tool for converting AC to DC is called a rectifier and is just a clever pile of diodes, and none of _that_ is new. Building tiny inverters was the hard bit.)
Electrical power is measured in watts, which is volts times amps. Higher voltage with lower amperage goes further through wires, hence "high voltage lines" on the utility poles taking power across town. It's kind of like water pressure vs water volume. High voltage is very high pressure, but doesn't necessarily mean a lot of water is moving. (Think "hydraulic press".) At the other end a flooding river can be very low pressure but with huge amounts of water moving, which is why floods can be stopped by sandbags. The amount of water moving is what encounters resistance (and leaks out as heat), so higher voltage at lower amperage transmits the same amount of power with less loss in the wires.
Hooking a microinverter up to each solar panel means you can take each individual panel's 1 volt output and turn it a more standard 12 or 24 volts before sending it any real distance through wires, which lets you connect the panels together in parallel instead of in series, meaning if a tree branch waves overhead or a bird lands on one, that panel merely stops generating power instead of glowing red hot as all the OTHER panels try to force their current through the sudden resistance.
The exponential cost declines, increasing efficiency, and increasing lifespan of solar technology all helped, but Solar panels USED to work like the old christmas tree lights where one bulb burned out and the whole string went dark. In 2011 we got microinverters, and now you could use them on a roof where pipes and tree branches occasionally shade some panels at certain times of day without it being a big deal.
Meanwhile, Michael "Ok Boomer" Moore just release a hit piece against renewable energy for some reason, decrying the state the technology was in 15 years ago. No really, he's literally using footage and interviews from 2005 to say we all need to stick with coal or something, as pointed out by the many people people who've had to waste time debunking this old fogey's clueless rant.
Imagine if someone had released a documentary in 2005 about how the internet could never take off because dialup was too slow and AOL was a walled garden and Netscape was a monopoly and microsoft declared MSN an internet killer... such a position doesn't even manage to be WRONG. It's just... irrelevant? Describing a 10-15 year old view of a rapidly advancing technology is somewhere between "actively stupid" and "outright lies", but I'm not sure he's even AWARE out out of touch he is. He just got old.
P.S. What happened with the internet is in 1993 the NSF AUP changed to allow for-profit ISPs. (That's the National Science Foundation Acceptable Use Policy for the internet backbone it was funding after it took over from DARPA). That change led to netscape and geocities and napster over the next few years. Netscape released its source code in 1999, mass adoption of broadband started in 2000, youtube launched in 2005, and so on. Yes netflix used to mail DVDs to people and Blockbuster was a thing. Times change. People who don't get out of touch. It's the fundamental problem with "conservatism", but nominal liberals can get there too. "Kids these days" are RIGHT, every time. Because the people saying they _aren't_ die and are replaced by said kids. Might as well listen to what's coming.
Now is not the time for avoidance productivity, and yet. I'm halfway through working out the wirldcard parsing logic, but work REALLY NEEDS a drop with two bugs fixed, but my tree is dirty with all the wildcard stuff and I dowanna stop and back it out to fix those bugs (I'll lose my place!), nor do I want to fix stuff in another tree and have to deal with merges, I can't say how long wildcards will take to finish. (It's one of those keep digging until the hole goes clear through things.)
So what am I doing? Finishing a FAQ entry, editing my accumulated unposted blog entries, and catching up on an anime series on crunchycrunch that's treating tropes as poses its floor routine needs to hit rapidly in sequence, which the judges will be grading it on.
Now it's after midnight, but I walked to UT again with caffeine, and am trying to get stuff cleared by deadline.
I need to at least get the wildcard stuff to a good STOPPING point so I can check it in even if it's currently doing NOP, and all the interlocking wildcard, [square bracket], and @(nested pattern) parsing nonsense requires two stacks, and THAT's cheating by having each stack store two pieces of information. The bracket stack stores the ii/oo offset (in the input and output string, respectively) where the wildcard takes effect. (The input part shows you what the wildcard IS, the output shows you where to insert the data you find. The wildcard itself doesn't live in the new string, the result of the wildcard is inserted in there so I don't have to figure out how much to _remove_ to replace it.
Except... that doesn't work. The !(ranges) mean I can't just say "the wildcard itself isn't copied to the output", because there's literals tested in the !() patterns which I need to preserve? (If I need to chop stuff out of the output and replace it, that'll be annoying.) With ranges there isn't _A_ wildcard, there's wildcards plural....
Well... Hm. Wildcards are operations. And there is a series of operations, and *() groups are basically a flow control statement saying to loop, sort of. So they don't need to go into the output as long as I can keep track of what they DO... Hm, when traversing to match a string, non-wildcard text needs to be matched exactly, and the active bits say "when you get here, do a thing on the input, which might get copied to output".
Ah, it's not "offset into source string" I need to record, I need offset into target string and WHAT THE WILDCARD IS. And the control character can be two characters long at MOST, and there's 5 unique @( starters three of which (+, !, @) are already unique as wildcards. So if I call *( and ?( something else (to distinguish them from * and ? by themselves), then I just have a low byte with an offset<<8 in the output going onto the stack.
In fact the full manifest of wildcard ops is just 10 entries long: [, ], *, ?, ), +, @, !, and whatever I call *( and ?(...
And instead of recording where I added the starting "[", I should record where I need to INSERT the starting [ if and only if I hit a corresponding ']' (because yanking it back out again later is a flaming pain otherwise, there's at least 3 exit paths for "we didn't find it". A then I don't need to record the ] because I can just search ahead to...
Nope, problem: [ranges] and +(sub-patterns) have arbitrary contents, even if I've recorded all the wildcards I need the literal characters to match and to know when both end. And that has to be metadata because "]" and ")" already got de-quoted in the resolved target data, so I need to know when to match them or when not to match them as literals. And that MUST be in the target string because it's been resolved ala [$RANGE] so a variable expansion could have provided the contents I'm matching. Pointer into the source string was never going to work because * and ? can be in variables, and act as wildcards once resolved (if unquoted).
Ok, so if each wildcard metadata annotation records both its type and a corresponding TARGET position it applies to, ranges also record the END of the range as a second metadata entry...
Nope, problem: [*] needs to keep the * as a literal, and [+()] needs to keep all three characters as literal. When I discard the metadata entries, I need to KEEP the in-band signalling part of it because that's the [square bracket search contents]. Which means I'm back to recording JUST a destination offset in the resolved string where the "active" wildcard character(s) get copied, and I need to remove them from the output when matched. (Well, not copy them into the new output string it's generating, wildcards can expand to multiple entries and thus multiple strings.)
Ha! Parenthetical sub-patterns are _not_ guaranteed to close!
$ IFS=x; ABC=cxd; for i in +($ABC); do echo =$i=; done =+(c= =d)=
And when I try that line via bash -c the parsing has a syntax error, but it works fine from the command line. Time for another email to Chet.
Grr, I'm replacing array_add() with arg_add that takes a struct sh_arg * instead of separate char * and len (because almost all the callers are doing array_add(&arg->v, arg->c++, data) that anyway, I need to convert the "a=b command" environment parsing to have an arg wrapper), and there's two users that aren't incrementing arg->c. The first case is the line terminators ala && and | where arg->v[arg->c] is the teminator rather than the NULL, but I can just arg->c-- when I detect that.
The SECOND case is when it hits ")" which also ends a line early, but isn't a terminator? But it seems to be storing it as the line terminator in that case anyway, except... the terminator is functionally null, the ) should be at the start of the next argv[] list?
So I go "wait, how is the current code handling this", and do an ./sh -c '(echo hello)' in a clean checkout, and... segfault! (Wait, I don't have a test for simple parenthetical?)
Tangent from tangent! Drink!
(P.S. Why does wikipedia's "Silver Spoon" entry not link to the TV series "Silver Spoons"? They say the first needs additional citations that the saying was ever even a thing, and here's a TV show with a theme song explaining it. I'd add a note to the talk page but wikipedia has banned edits from the entire ipv6 address range, and even though I've got both v4 and v6 addresses it's decided to route there via v6 for no obvious reason, and it's all automatic wicd/dhcp nonsense happening behind the scenes I don't feel like fighting with. Oh well.)
Would someone please let Rachel Maddow know it's ok to say "dementia"? Everyone else is noticing, and yet his "lack of object permanence" policy is literally the one being carried out by his cronies, because they're getting what they want out of the laziest of faire, everything deregulated while they loot and pillage and lynch brown people.
I want this on a t-shirt (The phrase emotional support guillotine is 2020 in a nutshell.) Billionaires have set the system up to delegate blame, send it back where it belongs. Remember, guillotining the billionaires is far more realistic than taxing them. Don't go for half-measures, lobby for capital offences receiving capital punishment.
"A degree from Harvard" now means "you went to the rape-cover-up place", pass it on.
Is anyone really protesting for the right to work, or are they demanding the the right to be served? White people with guns are screaming "you can't get good help these days". Meanwhile the GOP is just coming out and admitting they're cheating at the polls on live television. ICE is still separating families and now they're using COVID-19 to do it. Globally, racists are pulling out all the stops. The GOP are more or less distributing silver cake spray for everyone's teeth and having us practice chanting "witness me, shiny and chrome". (A hero risks their life to tackle a problem created by the rich and powerful ignoring externalities. They want everyone except themselves to be heroes, always and forever.) Social distancing bought us time, and the republicans squandered that time. All modern "conservatives" are complete hypocritres who believe in nothing. They have filled the US healthcare system with sexism and racism that kills people.
We got in this mess because we stopped teaching the humanities. You have to teach people to be people rather than assholes, but the libertarians went "STEM STEM uber alles, if you know enough science that makes you a good person, there were no such thing as nazi scientists or mad scientists or the tobacco institute or the ethyl institute knowingly killing people for money, and as Ayn Rand shows it doesn't even have to be REAL science you can pull it out of your ass and sound convincing and that counts".
Atlas Shrugged gives a 6 year old boy's tantrum speech a high school vocabulary and sticks it in the mouth of an adult meat puppet ("John Galt") who delivers an author rant for multiple pages. "I'll take my ball and go home and the world will collapse without me and that'll show them because I'm such a magic irreplacable special genius the likes of which history has never seen that the absence of me IS the end of the world, I was born in a log cabin I built with my own two hands and grew my own food from birth and speak a language I invented myself and taught to all of you, so there". The result appeals to idiot silver spoon failsons like Paul Ryan with the emotional maturity of 6 year olds who love their existing worldviews validated. THAT is why it still sells so many copies, because we have so many stunted abuser manchildren in positions of power. The british navy famously had "Sodomy, Rum, and the Lash", the united states has 300 years of plutocracy, racism, and misogyny. "All (rich white) men are created equal" but women and brown people and poors were raped, enslaved, and lynched. The "trail of tears" relocations continued for a decade after the civil war (which managed to convert outright slavery into Jim Crow), and General Custer of "custer's last stand" fought for the _north_ in that war. Women didn't get the vote until 50 years later, after World War I. (The USA sent enough men overseas it needed women's labor for the war effort, and they demanded concessions. Then we did it AGAIN a few years later, and a lot of the 1960's "women's lib" stuff was fallout from the WACs and WAVES of WWII telling their daughters about Rosie the Riveter. Never let a crisis go to waste, change happens under stress.)
The british were basically the nazis a century earlier, and if you think that's an exaggeration look up the opium wars, the boxer rebellion, and ask how exactly did the British East India company wind up OWNING INDIA (a country that HAD a perfectly good population long before the british got there). The difference between India and North America or Australia is the europeans committed genocide against those native populations to the point less than 5% of them are left (which is still millions of people, being horribly treated to this day), but India had encountered Alexander the Great and Marco Polo and such already long before the british got there, and wasn't taken COMPLETELY by surprise by european brutality and slaughtered the way the american and australian native populations were.
If the Nazis had won World War II and got to write all the history books for a century or two, you'd get something that looked a lot like the history of the united states, and we KINDA need to acknowledge that if we're to avoid doing it again.
Revisitionist "we didn't kill millions of people, there was hardly anybody HERE before we arrived, you're imagining it" is the exact same B.S. the Nazis tried to pull. The british just did it first and got away with it, and the early americans WERE british and continued the slaughter to the point "playing cowboys and indians" was still a popular passtime while the Boomers were growing up. There was an awful lot of "how bad are the Nazis really" in the 1930's, and the USA turned away refugees and had a strong "america first" movement. But in 1941 the USA had liberals in charge (FDR cleaning up Hoover's conservative "bail out the rich and let the rest starve" policies that caused the great depression) and with our own civil war against slavery still within living memory, FDR went "You know what? Let's NOT allow racist empire-building and genocide this time around", and while the USA was at it we made Britain give all the other "british empire" countries BACK (at least where enough of the original owners survived) and set up a "can we not do this again any time soon" club called the United Nations.
And no, none of this is "ancient history", it's all still happening every day, and I am very tired of it. Teach the humanities again. The idiot boomers can normalize anything as long as nobody rocks the boat for their last few years, the rest of us have to learn this stuff and take over if we're to have a planet after they finally die.
Apple, the #3 company on the Fortune 500, has worked out a deal to pay less than 1% of last year's profits (and less than 1/5 of 1% of its annual gross revenue) to settle a class action lawsuit that it sabotaged its own older devices to force people to upgrade. The settlement apple wants would cost it $25 for each affected user, but they wouldn't get that much each because the lawyers get paid first. (This is why we had sherman antitrust breakups, and why we had guillotines before that. The republicans can plug up various pressure relief outlets, but can't stop the pressure from rising.)
Sigh. Posting a patch to linux-kernel yesterday was my mistake. Here's the reply I did NOT post to linux-kernel. (With the usual awkwardness of in-band URLs turned into links because html vs email.)
> Hi Rob,
>
> You need to send this patch to some maintainer who could merge it.
To be honest I didn't think anyone would notice this. They don't usually.
I tend to give up trying to get things merged after three strikes, going back a while. If people want it, the idea's out there, and it still works for me. (Although in that example's case I've moved on to a microconfig format that mostly fits on one line, ala the KCONF= stuff in toybox's built in make root.)
In _this_ patch's case, the "v4" is because it seems polite to publicly post code I'm shipping in a product, and I had to update it to make it apply to a v5.x kernel because sys_blah() is now ksys_blah() for some reason.
But I gave up on trying to get anything into linux-kernel after v3 back in 2017 (not just this patch series, I gave up on regular participation in the linux-kernel dev community in general), and blogged about it at the time.
> And it uses the wrong multi-line comment format.
$ wc Documentation/process/* ... 11363 70930 475446 totalWould it make a difference? *shrug* Ok, attached.
The thing is, I'm a hobbyist. Linux-kernel is no longer a place for hobbyists.
Last month I drilled down into a syscall implementation (to see which clock_gettime() call gettimeofday() translated into) and hit a FIXME comment which said:
...which we don't want to do late in the release cycle. For now...And according to "git annotate" in my linux-fullhist tree that comment was added June 21, 2007 (the "release cycle" in question would have been 2.6.22). It's still there in 2020, having survived 13 years in "kernel/time/posix-timers.c" (used by all architectures) because the whole "enough eyeballs find all bugs" thing assumes there are still any hobbyists at all involved in the project, looking at stuff their boss didn't tell them to. As far as I can tell, there are not.
The Linux Foundation literally sells seats on its board of directors for five hundred thousand dollars per year (all "platinum members" get a board seat so anyone rich enough can buy one), and the current board is listed by company: Oracle, Sony, Microsoft, Huawei, Comcast, IBM, Hitachi, Renesas, Panasonic, Microsoft's Github, the Deptuty General Council of Microfocus (the proud manager of 60 attourneys), VMWare, Cisco, Qualcomm, Samsung, AT&T, Facebook, Google, and the token "silver member" from Gitlab, plus the executive director of the Linux Foundation.
Returning to Documentation/process, the "code of conduct" (fine) has a seperate "interpretation document" (danger will robinson) that ends with a resolution to establish an updated process for committee staffing. No, I did not exaggerate that, let me QUOTE the end of Documentation/process/code-of-conduct-interpretation.rst:
We expect to establish a different process for Code of Conduct Committee staffing beyond the bootstrap period. This document will be updated with that information when this occurs.
It's the paragraph after the one promising the committee will produce a quarterly report summarizing the reports to the committee.
Do you really see a place for hobbyist coders to participate in linux-kernel anymore? Other than submitting bug reports? Linux Weekly News's "are there still any hobbyists?" article was 7 years ago now, and the answer at the time is "what's a hobbyist"?
But sure, I removed the offending comment from the patch.
Rob
Alas, even what I DID post, as cleaned up and chopped down as it was... is still too vitriolic. Randy was helping, and I snapped at him. It's true that I already submitted that patch 3 times, and gave up on the idea of getting it in. (And there's SUCH a surplus of coders in Linux-kernel polishing every exposed surface that "here's a working patch to do this obvious thing" saw no follow-up for 3 years despite the nominal objections this time and last being about COMMENT STYLE.)
Sigh. I tried to swallow it and do the "hey, if you wanna escort this patch in" thing, but A) I just haven't got the emotional energy, B) I honestly don't think it would help? They don't WANT it. Yes I know how to get patches into linux-kernel in the same way I _CAN_ sit in line at the DMV for 4 hours and then come back the next day with different documents to do it again. But after three attempts of the "rejected, start over from scratch filling out a new form after having mailed away for more documents" variety? I generally don't want whatever it is THAT MUCH. (I only got my driver's license back to help Nick move, and these days I don't even have a car anymore. Then again, I'm not alone in that but we all know why and have for a while.)
I should edit and upload my blog entires again. I expect it to be about as useful as posting to linux-kernel but eh. Makes it easier for me to point people at old things I wrote rather than endlessly re-explaining myself.
Shell wildcard support is fairly straightforward to implement for *, ?, and []. For a definition of "fairly" that has a big subtlety in the square brackets:
$ touch l; echo [hello"]" [hello]
The reason echo [hello"]"] doesn't print "l" is because the quoted ] isn't active as a wildcard character, meaning you need to annotate live ] as well as [, and then WITHIN the [] there's touch "[hello]"; echo [hel?o"]"; printing [hello] because the brackets weren't live therefore other wildcards within WERE live. A decision which can only be made retroactively, so it needs undo.
But that's the "fairly straightforward" bit. Then there's *() and friends, the bash "extglob" syntax, which nest arbitrarily deep. So I need to maintain a stack of them? Hmmm...
$ touch "potato(abc" $ echo *(abc > ^C $ echo *"("abc potato(abc
Ok, I _think_ the parentheses parsing will force these to match up when they're unescaped?
$ touch $'potato(abc\n)' $ echo *(* > ) *(* ) $ ls potato* potato(abc?)
That _should_ match the file? The parsing didn't allow it to. (In bash, not in my implementation, I haven't done this yet.)
Speaking of parsing, (echo hello) needs to become 4 words, and that's what my current parsing is doing. But +(echo hello) is a quoted escape, meaning it's parsed like $(). It is, in fact, parsed UNCOMFORTABLY like $() because echo +(() really shouldn't prompt for another line because the ( inside the () isn't special: +(pattern-list) "Matches one or more occurrences of the given patterns", and yet bash does prompt for another line because the unquoted parentheses didn't match up.
So I guess recycle/extend the $() parsing, do liveness tagging on the range ends as well as the range starts... Hmmm...
$ $ unset X; echo +$X(one) bash: syntax error near unexpected token `('
Ok, what's happening THERE is that +( isn't recognized at parse time so we don't see +( to act like $( and thus the parentheses aren't interpreted as a form of quoting. Got it.
Which says my deck of wildcards needs to tag [?*+@!]( on the ( rather than the first character (because ? ain't ?( and and ?"(" is ? not ?( and the tagging needs to distiguish the behavior because the quotes are gone by the time wildcards are parsed), and it needs to ONLY tag recognized pairs (not just any old open parentheses) so when we see a tagged ( we know we can back up one to see what kind it was. And the parentheses _must_ close because parsing requires it (same as for $( it's an unterminated quote otherwise, triggering a line continuation), but the [] doesn't need to (that does NOT trigger line continuations, so can be retroactively a literal "[") so wildcards in [brackets] may or may not be active depending on whether it closes, so that needs more work. I think I need some kind of "tag and discard"? Brackets do NOT nest...
$ echo [+(] > ^C $ echo [(] bash: syntax error near unexpected token `('
In fact they're completely ignored by word recognition, which makes sense for:
$ touch b $ echo [$(echo abc)] b
But +() isn't parsed to find wildcards until way later than that, but parsed for SYNTAX reasons much much earlier. Bash seems to have shoehorned all this into logic it already had and it's kind of a layering violation? But what else is new...
Oh fun:
$ touch + $ echo [+()] + $ echo [+(]) [+(])
Yeah, about that not nesting. Square brackets don't but @() does and each one of those has its own square bracket undo context! Lovely.
(There's probably official terminology for all this crap which I'm butchering horribly, and I don't care. I'm working out priorities, with test cases to demonstrate them.)
3am at UT, sitting on the picnic table near the outlet (the semi-enclosed outdoor area of the Norman Hackerman building, no really), getting work done. I get a mile+ walk here and as much again back, so it's good exercise, I'm out and about but it's late enough at night I'm still more or less quarrantining (haven't seen anyone for two hours)... I needed this.
I got toybox 0.8.3 out monday! Didn't blog about it because I haven't been (publically) blogging, but I wrote extensive release notes on the website.
Now I'm juggling A) fixing the sh2eb target actually _running_ on my turtle board (it runs in qemu-sh4eb but initramfs doesn't launch init), B) implementing wildcard support in the shell, C) adding a scripts/root/tests package to makeroot to run the toybox test suite under QEMU, D) writing a toybox FAQ entry about make root.
I'm doing one of those tangent-from-tangent-from-tangent things but hey: fresh laptop with 8 desktops to fill up with todo items. All those old tabs got closed... with alas rather a LOT of shell test cases I'd run in tabs and meant to move into my sh.tests text file or tests/sh.test actual runnable regression test suite... I got maybe 1/4 of them converted in my gradual "chipping away at trying to shut down so I could reboot my laptop and run a more current kernel than October" since the blog entry where I went "yeah, I should do that". I was working on it! Oh well.
Oddly enough, this A) B) C) D) stack is what my working style looks like when I'm _not_ overwhelmed. I follow the tangents as they occur to me, push what I was working on onto the stack (this is E: blog about what I'm doing), finish the thing and pop it back off to resume what I was working on before that. (The terminal tabs let me know! They're even more or less in order when I haven't opened 6 windows with 30 tabs each.) At the end of a solid day of this, I get back to A and haven't finished it so obviously I got nothing done. (The stuff I committed and posted is just side effects. That's like calling making lunch an accomplishment.) But I tidied my workspace and DIDN'T wind up making more work for myself on the ever-growing todo heap, so I usually call it a win.
(Didn't say it was the healthiest mindset, I just said it's what working at my own pace when it isn't all LOOMING at me is like. At least all the bits go back in their boxes. When I DON'T have the time to follow each tangent as they occur, I open a tab for it or scribble a line in notes.txt or leave a TODO comment in the code and go back to what I was doing, and the todo items accumulate endlessly which means I'm falling BEHIND...)
I updated the link to blackduck but they've got the project's license wrong? Found an email address and poked them about 0BSD, let's see if they respond...
(I proposed 0BSD talks at the last couple conferences I submitted proposals to, but nobody was interested. But hey, Jeremy Allison, the Samba maintainer who switched his project to GPLv3, has come around to my way of thinking. He regrets the GPLv3 on samba, thinks it has harmed his project, and would undo it if he could. And says so in that video. I met him in 2008 when we were on a panel together with Eben Moglen to talk about licensing, back when I was still a plaintiff in all those busybox lawsuits. That's back when I thought The GPL could still be saved...)
I googled how to stop google searches from showing up in the chrome URL bar as suggestions (I NEVER type a search in there so as not to pollute the URL autocompletes, I go to google.com and load the page because typing into the fake google page that opens in new window similarly pollutes the URL pulldown, but ever since the reboot chrome has "updated" itself so searches on ACTUAL GOOGLE are polluting my history. This appears to be a recent behavior change, and is "integration" I was actively working to avoid until they broke my circumvention strategy.)
My search found a thread where a bunch of people asked to be able to disable this horrible thing chrome does, a google engineer expressed bafflement at them and told them to use more->help to request the feature, and then when people wouldn't stop saying "I'm requesting the feature here" he locked the thread so nobody else could reply.
I couldn't find "more->help" so I googled it and that had a "was this helpful" at the bottom where I listed all the things my three dots pulldown has which are NOT "help", which seems to be a windows thing. I do not expect a human to look at it, but at least I got to report _something_. And in the meantime, I guess I clear my search history and use an incognito window to type google queries from now on? The workarounds keep getting more elaborate...
Sigh, and my laptop rebooted. I unplugged it because thunderstorm, and forgot to plug it back in before taking a nap, and the battery drained all the way. (I guess my recent comment about uptime was asking for it.)
I wrote a long toybox release announcement for the mailing list with a PS as big as the rest of it about my stress levels and suspending my patreon campaign, but I hadn't quite finished and sent it and of course thunderbird doesn't record unfinished edits the way kmail did, or vi does, or chrome does when writing in forms, or... any competently written program, really. But then Thunderbird was a mozilla project from the same people who bloated Mozilla until Galleon forked off from it, then took that over and bloated it until firefox forked off from that, and then took that over until Google wrote chrome in self-defense. But hey, after Thunderbird development was declared dead a few years back it was relaunched in 2016 and again in 2020 so... maybe it'll grow a feature kmail literally had 15 years ago someday soon?
We can but hope. Because it's written in C++ which means I'm not patching it.
The main reason I use chrome instead of mozilla is because "pkill -f renderer" will free up the memory and CPU used by all of the open tabs without losing where the tab points to, and I can reopen it by clicking "reload" later. (Or if it gets confused, which modern chrome does due to stupid threading stuff, close it with ctrl-w and then ctrl-shift-T to reopen it and now it's a FRESH tab with the old info.) This is pretty much what the chrome design promised from day 1, in handy comic book format, and given that tabsplosion is my normal working style (they sort of compost after a while)...
I haven't found anything remotely similar in mozilla. Nope, that's one big process and if a tab crashes the whole browser closes. If a tab eats CPU there mozilla expects you to close the tab, discard the information, and never get back to it. (And from both browsers I have wanted a "save tab as tar/zip for later offline viewing" feature for YEARS, not just bookmark but SNAPSHOT. You can right click "save as" and there's "web page, complete" in the pulldown that saves the css and images and such all in a directory, I did that a few times for my old computer history mirror. But there's no integrated way to tell it to migrate a tab to local storage AS a form of bookmarking. You'd think this was obvious, but no. The last browser that could view inside a tarball was Konqueror, which was tied to KDE and went down with that ship for me.)
There's stuff I wanted to say about these links but eh, what's the point? The republicans are still trying to destroy social security. Tax the rat farms. Basic income. Etc, etc...
Um. I just got cash (a $100 bill) in the mail, from "A Friend" (with a return address in Oregon). Postmarked the day I suspended my patreon.
I... um... thanks?
I used to mail cash almost exactly this same way to webcomic artists, except I'd put my name on the return address and write "make good art" on the paper wrapped around the money. I never expected to be on the receiving end of that. (In part because everybody else is either comfortable with paypal or uses checks, but "birthday card with cash in" always trumped "birthday card with check in" on an emotional level. Better endorphin rush.)
I spent my 20's depressed and still have a bunch of classic ADHD symptoms (except we were just called "hyperactive" and/or "gifted" back then), and now there's something called "rejection sensitivity" (you mean everyone else DIDN'T have that?) which means one negative review outweighs a dozen positive ones. The main difference between now and my 20's is I have more and healthier coping mechanisms, which are just tricks to avoid mental pitfalls. (I basically got good at playing my brain like a pinball machine.)
I used to have a lot of _unhealthy_ coping mechanisms. When I was first dating Fade she got REALLY upset when I'd take my wristwatch off and smash it with a hammer or kick in my own door (in a condo I owned), but in the back of my head I was going "this is $10 to replace" and "this is an hour of carpentry with tools and supplies I've already got" so I was venting at something _safe_. I only stopped because it didn't read that way to _other_people_.
The healthy coping methods are collectively called "adulting" these days, and include using things like code switching to act out a professional role, so that when negative feedback comes in it's not aimed at ME, it's aimed at the character I'm performing. (Less healthy: "I don't care what you think because you're a worthless human being", healtheir: "I only conditionally care what you think in the context of this task, and can STOP caring when go I do something else, your bile doesn't matter I've got gloves on".)
I got a lot of practice at this running and promoting Penguicon and Linucon, where _I_ could never go up to someone and tell them how great I am, but armed with flyers I could gush for hours about how great the project I represent is. Hardison's line in Leverage about his grandmother making him knock on doors and that's how he got his social skills resonated, level grinding for the win.
Unfortunately, I can't put a mask over rejection sensitivity when I can't leave the house for weeks at a time, haven't got a regular schedule, am working on my open source project(s) _as_ an escape from stress, have no seperation between "project communication" and "personal communication" (thanks twitter)... venting into my blog to cope with the stress when I put "update the blog" as the first patreon goal is not good, that's a totally valid criticism. So I stopped patreon AND stopped uploading blog updates.
This pandemic and the general trash fire my culture's going through have left me persistently Out Of Cope, and when I can't keep all the balls in the air I tend to throw one or more of them in the fire so it is No Longer My Problem and not lying around for me to trip over. I no longer smash my own stuff but will quietly throw out accumulated dirty dishes/pots/pans sometimes because I Can't Even and just want it to stop. (Except fuzzy finds them when she takes out the trash and is then offended...)
But being unexpectedly on the receiving end of a thing I used to do... is nice.
I've intentionally not blogged stuff since The Event, but I've continued to WORK, and this blog is for me. I don't have to upload it. I already don't remember what the stuff I had to urge to record and didn't over the past few days was, and some of it was technical stuff that's gonna come back to bite me. (I could post random thoughts to the mailing list instead, but that would be rewarding the guy who complained and especially now I've suspended my patreon campaign I'm not doing ANY of this for other people really, just for me. But I need to record my idea of what the result should look like in order to _do_ that.)
Except it's not just for me, I need to make it attractive to the android guys to lead them via trail of breadcrumbs to my desired outcome.
And I care what Jeff thinks because his company's paying my mortgage. And right now he needs dropbear running on the board, and I did 95% of the plumbing for that, adding it to the build and getting it to work on nommu, and now dropbear's working fine from the command line but not starting automatically, and it's a shell problem.
Ok, back up: back when I did standalone mkroot (which also ended because contributors were armchair lawyers simultaneously causing legal issues while voting about what I would do next without asking me), that exteranl variant had module support, with one of the most prominent (and useful) modules being dropbear ssh. But that version of mkroot also required busybox, which means I didn't want the headache of distributing binaries of its output (hi Bradley).
Now that I've merged mkroot into toybox, greatly simplified it, and gotten it to work with JUST toybox (and the Linux kernel if you're booting under qemu, but that's always vanilla linux using unmodified release tarballs, and I'm providing the kernel config in the tarball and I can put a URL to kernel.org in said config as a "written offer of source" so MAYBE I feel ok distributing those, we'll see whether I bother... Maybe I'd have a FAQ entry pointing to kernel.org....)
Anyway, I did some updates to the old project last month to get a current and nommu-friendly version of dropbear building under the old context, but... that's not the way I want to go. I want it building under the CURRENT version, which is built into toybox.
This presents a few problems, the first of which is I optimized away the download/setup/cleanup functions, because the new mkroot is part of toybox so doesn't have to download any external packages to build the filesystem (we're always building in toybox's source directory), and I cheated and went "point me at an externally provided Linux source directory with LINUX= and if you don't I'll just skip that part of the build". But now I need to download zlib and dropbear, so I need that infrastructure BACK, and it doesn't really belong in mkroot.sh OR the new dropbear build script..
But the BIGGER problem right now is the init script needs to be expandable, and the obvious plumbing for running generic "module" init subscripts would be something like:
for i in /etc/rc/*; do . $i; done
Which doesn't work because I haven't implemented wildcard support in the shell yet, and doing wildcards properly is fiddly because "a*b"*c only expands the _second_ asterisk, but X='*' echo $X does expand that asterisk, so the order of operations here conflicts and I have to annotate or speculatively expand or recurse or something?
I'm tempted to channel the Simpsons and "do a half-assed glob()" just to get this ready today so I can cut the toybox release and move on to something else for a while. Maybe one that expands everything whether it was quoted or not.
I'm not entirely sure how this is supposed to work, since:
X='*'; echo $X echo "*"*".?z"
Implies that quote removal does NOT get done as you go along adding "already processed" data to the output string, as I'm doing. There's a sequencing issue where you either speculatively expand and make multiple passes over the list eliminating stuff as you go (which is both memory and cpu inefficient) or you keep track of "live" vs "non-live" bits for expanding later. (Or produce a wildcard-escaped string and then do an escape removal pass? Hmmm, expanding is just * ? and [ I think, but if \ is still the escape then you need to escape \ too...)
Which is probably why the bash man page implies they keep the quotes to remove in a later pass, but that doesn't help because a variable can expand into a quote so you have the same live-vs-dead text problem, this just moves it to an earlier point, which gets us back to either wildcard escapes or "live vs dead" tracking metadata...
Walked to UT after the sun went down, to sit at the deserted little table near an outlet. It's good to get out of the house.
Wildcard liveness and IFS parsing have almost the same lifetime: if one is active, the other is active. (Modulo the NO_PATH flag.) I've already shoved the IFS parsing into a single codepath everything else drops through, so I can annotate the wildcards then.
But instead of annotating the wildcards inline, I think the right thing to do is array_add() the offsets of the active wildcards and call a function to handle them. There are three calls to array_add_del() that all the "here's a finished argument" stuff channels through, I can make a new function they call instead to do the wildcard expansion, with a deck of wildcard offsets passed in alongside. Hmmm...
Huh, this is really cool. (Living in the future!)
Facinating video on how billionaire finances work. Any large expensive thing a billionaire buys is put up as collateral for an "equity line of credit" at 1% interest (less than the inflation rate, so they could make whatever minimum payments there are _forever_ by borrowing more as the price of their underlying "asset" increases each year due to inflation). All the houses and yachts and skyscrapers and such act as cash which they can use to buy MORE houses and yachts, which they then collateralize to borrow more against.
And then they hide it in tax havens. Now that the EU has started cracking down on billionaire tax avoidance (as I recently pointed out, one of the big triggers for brexit), South Dakota (which the GOP swarmed, overwhelmed, and took over the state government of due to the fracking boom drawing in republicans the way picnics attract ants) has become a "mini-switzerland".
Suspended my patreon campaign, here's what I posted:
When I lost my twitter account last year I started responding to world events in my blog instead, but recently a patreon supporter asked me to stop, so I did. And since "update the blog" is the only Patreon goal that ever got funded (admittedly after I bumped the amount down so it would), it would be unfair to keep taking money when I'm not even doing that anymore.
Quarrantine has not been great for my mental health, and after almost giving up on toybox development https://landley.net/notes-2020.html#16-04-2020>last month, I've come to the conclusion I can't handle the stress of disappointing my patreon contributors, so I've decided to close this page and stop accepting pledges.Thank you all very much for your support. I'm sorry it didn't work out, but a year's patreon support doesn't pay a month of my mortgage, which means as much as I'd like it to this can't affect the amount of free time I have to spend on open source in any real way, so you're not really getting anything for your money, are you? I've appreciated the encouragement, but never felt I was earning it.
Rob
P.S. I mostly outgrew ADHD with a lot of caffeine and code switching, but right now I haven't got the energy to juggle coping mechanisms, and it's hard to role play a professional in quarrantine. Adulting is always mostly role play, in my case "I haven't disappointed you, my professional role has disappointed you, which is part of doing that job", but unfortunately that has its failure modes.)
I've hit the "don't bill your patreons next month" button rather than taken the page down because taking the page down would take me out of the grandfathered in 5% patreon fee instead of 8% fee (on top of however much the credit card companies take, and no patreon doesn't let you use the money people send you to sponsor other people's campaigns, every sponsorship MUST pay a tithe to the credit card gods).
But it lets you hit the "skip a month" button indefinitely. I'll see if I feel like making it permanent later.
I got an email, and responded:
> I have been following your work and blog for a ling time, learning many things.
> In April 29 I noticed you mentioned USD as commodity. I also found this
> extremely interesting and following few people I found this article
> interesting: https://phenomenalworld.org/analysis/the-class-politics-of-the-dollar-system
>
> I think it explains well why this is a resource curse for most.
Interesting. The article Mark Blyth wrote for that site is also a good read, although I don't have time to read the book he's reviewing.
The best article I know of for explaining the basic "resource curse" is this (which is the same guy who wrote this which I found _very_ helpful.)
Going through the article you pointed me at, the "opaque ownership laws" thing was one of the main drivers of brexit, specifically that the EU was forcing various tax havens to adhere to higher reporting requirements or else be banned from making transactions with the EU banking system. Billionaires _freaked_, but unplugging the UK from the EU didn't stop the EU from doing it. Here's an excellent summary of that, see also this and this and this.
> I thought you might be interested as well, and then I may learn more about it in
> a future blog entry.
It seems like good information, thanks.
Rob
Links du jour:
Don't say nobody could have predicted when the internet never forgets.
Nikola Sturgeon, First Minister of Scotland, says the time has come for universal basic income in scotland.
Late-stage capitalism has nothing for the 99%
Oh God. A committee. Biden's VP announcement was that he can't decide and is forming a committee. Can we please get a do-over?
Stop it with the octogenarians. We know Nancy Pelosi's going to cave too, on whatever the issue du jour is. And then turn around and attack her own party for pointing out that the 80 year old is obsolete and out of touch and standing in the way. These geezers need to STOP DRIVING.
Here's a fascinating thread on using diesel to launder money. (I've mentioned before that the way Putin funded his puppet government in ukraine (back before the populace threw the puppet out, so he invaded and stole crimea which was the eastern half of ukraine) was by selling unnecessary middlemen oil at slightly below market value, and letting them sell it on to europe at full price: shaving a dollar or two per barrel off of billions of barrels per year transfers huge amounts of money, and it's technically legal.)
The Texas Railroad Commissioner (which for historical reasons is the guy in charge of regulating the Texas oil industry) has declared himself useless, and that it's too late (and politically impossible) to impose OPEC-style oil quotas on texas production (hence the headline "oil proration dead"). But in the interview he seems sure that nothing's really (ever) going to change, and everything will return to "normal" someday. Horse drawn carriages came back, didn't they?
My roommate Fuzzy is watching conspiracy videos online because "they have some good information" and it makes me so sad. No, they don't. The stuff that's going on IS NOT SECRET.
Look: the Boomers allowed Reagan to lower the top tax rate and balloon the deficit, spraying down the country with financial parasites sucking the money out of everything and exacerbating the racism left over from the civil war. They did this because they were greedy bastards who didn't care who else got hurt, and did not try to hide it. They grew up in the shadow of World War II (which sorted the entire world into Axis and Allies, the "good guys" vs "the enemy"), which transitioned seamlessly into the Cold War (United States vs Russia), and when Russia collapsed in 1990 because the price of oil went down below where it could afford to import food, the Boomers thought they had won the world and history was over now, and had a decade-long touchdown dance under Bill Clinton as the Lone Superpower. Then the world Trade Center attack in 2001 broke the Boomers ( Duct tape and plastic sheeting! Color-coded terror alert levels including red, green, and blue), to the point they allowed Dick Cheney and company to install a surveilance state which Ed Snowden reported to the world in 2013 (the same way Daniel Ellsberg had in 1971, but now the Boomers were "the man" being reported on and didn't like it). This means the Boomers have been pearl-clutching "kids these days offa my lawn" old fogies screaming at clouds for 19 years now, and given a chance the boomers voted for literal nazis.
This isn't a conspiracy. They're not hiding anything. (Ok they're hiding Trump's fronotemporal dementia the same way the GOP hid Reagan's Altzheimer's, but the guy who "I don't remember"-ed his way out of the Iran Contra affair wasn't really hiding it WELL, was he? And neither is the second "oldest president ever".)
We're living in the twilight of the Boomers. Nothing will get better until they're out of power. Their 1980's "greed has good" has collapsed into late stage capitalism where the big modern "innovations" are things like delivery apps that screw over both the restaurants and the drivers. It's not sustainable, and when they die we will chisel their names off all the monuments just like the egyptians did. The two countries currently collapsing from coronavirus are the ones where the Boomers put Ronald Regan and Margaret Thatcher inexplicably in charge. Everywhere else is handling this way better.
The GOP is still lying about everything. The standard trick is to say it's too soon (to do anything, or after the mass shooting to talk about it) until it's too LATE (and old news). "Yes Prime Minister" called it the four stage strategy. The fix, as always, is to guillotine the billionaires. The reason to guillotine the billionaires is there's literally no other exit strategy. Even the excesses Upton Sinclair wrote about the meat packing industry a century ago have returned with a veangance. The Boomers are recreating "typhoid mary" and "the triangle shirtwaist fire" because they've learned NOTHING. (And things like the gulf oil spill only get theatrically addressed when they make headlines, the exact same thing happening right next door can fester for decades.) When the boomers die, their world collapses and we build something new out of the parts.
First to go needs to be the GOP. The pandemic isn't remotely over, hasn't even peaked, but as soon as they found it out kills brown people they clamored to open everything back up and stick it to 'em. They are hypocrites and racists to the core.
Anything the GOP runs ceases to function. Not just through neglect, but active obstruction. The GOP is only only in power because they cheat, it's gotten steadily more extreme as their actual support diminishes, and as the Boomers go under it's turned into directly attacking the constitution.
Remember the writeup about why hospitals in red states are failing? People covering this still don't get it: It's not "paltry medicare reimbursement rates". Your state governor TURNED DOWN THE MONEY.
Here's a good thread about how right wing loons have been craving a power vacuum to fill, but they never get one because that's not how it works.
Evangelicals are dying of Covid-19 in "frightening numbers" because after denying it's a thing, they won't seek treatment when they get sick. meanwhile the Boomers aren't dying fast enough. The Resident is still a dementia patient and cratering fast.
Remember how housing gets suddenly WAY cheaper when airbnb shuts down? Here's hoping they don't come back.
Reopening at 1/4 capacity is like running an engine without oil. Have some more links.All we have to do to end capitalism is stop bailing it out. This economy is fictitious.
We have plenty of food, capitalism is getting in the _way_ of producing and distributing it.
This administration wants people to die and they lie about it.
AOC's 70% tax rate is a good start but we still need guillotines. (And AOC sets it there to maximize revenue, but the 91% rate after WWII was explicitly to prevent plutocracy. The 1964 revenue act reducing the top tax rate from 91% to 70% was also about maximizing government revenue, and it's what allowed billionaires to re-emerge as a class and hijack the government to reduce the tax rate further. Taxes won't fix this, guillotines can.)
I have been asked via patreon to, and I quote, "please ease a up a bit on the political posts".
Every time I try to cut a toybox release, writing up the release notes always points out small polishing steps or reminds me of little loose end todo items, and I'm weak and do "just one more quick tweak", and they expand into large things as todo items are wont to do when you pull on a narrative thread. But I really REALLY want to get a release out today because it's another Patreon month and I want to tell them I did the thing.
Especially since this one has the merged make root booting to a shell prompt, which means it's both "work on toybox" and "work on build systems". Keeping my promises! But so much work when you actually try to make it load bearing. All the little things pop out at you...
The toyroot plumbing lets me greatly expand the test suite, to find things like "ls --color (a bare longopt) is acting as a synonym for -x on 32 bit systems". (I'm guessing because FLAG_color is (1LL<<32) and something is getting confused, but need to drill through lib/args.c to find it). The _symptom_ is that ls /bin is giving me multiple entries per line but ls --color /bin isn't, which I hit by hand in the new system but I haven't got a regression test for that because terminal width isn't a constant and the test plumbing isn't faking a tty. I need to do a lot of tests with a pty wrapper to check corner cases in top utf8 handling (such as proper fontmetrics when you have a username with combining characters)...
What I'm saying is my cans of worms _nest_, but I _also_ have a bad habit of accumulating todo items at about the same rate as I clear them at the BEST of times because doing the work reveals more work to do. (And then the main symptom of "I am overworked" swap thrashing is tabsplosion: so many things I had to leave off in the middle of so there's an open tab (desktop switcher has 8 desktops, each with enough windows xfce goes to a pulldown at the edge of the list, and then the Terminals have the scroll left and right arrows when they're showing more than 6 tabs...) and periodically I "close tabs" by moving them to one of my various notes.txt files so they can compost _there_ and don't get lost next time my laptop reboots. Usually this is because I finally have to reboot it for some reason, which takes a half-day to clear properly so I don't lose data. Or because the battery fully died and suspend-to-ram lost context.)
Let's see:
$ cat /proc/uptime 11514340.14 18323433.75
Um, I'm guessing first number is runtime and second is suspend time (in seconds) since last reboot, toybox date -d @$(($(date +%s)-18323433)) says I last rebooted near the start of October. Yeah, sounds about right. I should probably do that so the kernel has a chance to refresh itself for security whatsits.
But first, I need to finish xeno's release process...
Today is the first day of the crazy Texas GOP governor's bodies for billionaires campaign encouraging people to die for the economy, so I'm trying not to leave the house at all today. I've been a bad quarrantiner going to the grocery store 2 blocks away or the convenience store down the street almost daily (of course washing my hands and wearing my towel over my face), but given this new "leadership", today I feel guilty about walking to the end of the driveway to put back the trash can.
Drop everything, there is new Good Omens content. It is a good day.
Oh wow, the EU's fossil fuel subsidies may be going away. The two biggest oil producers in europe are the UK (which just gave up its voting membership via brexit) and Norway (which isn't a member), which means thanks to brexit no remaining EU member state is a significant oil producer. Elsewhere, the CEO of Shell admits that oil probably isn't coming back, and so do bloomberg analysists. (Oil hasn't got decades, solar and batteries should continue to get exponentially cheaper for the rest of this decade, and by 2030 it's over. Yes, even for gas stoves: induction cooktops heat faster than gas, and just like gas, the heat stops as soon as you switch it off. No bank wants to finance an oil industry whose graph has loops in it once a reasonable alternative has presented itself, and an INTERESTING point in that last link is the assertion that 3/4 of the US defense budget is protecting our access to oil.
I used to favorite tweets like this as a way to bookmark them so I could find them later. (Didn't work very well, but twitter never had good tools.)
So I'm ALMOST ready to cut a toybox release, but "make root" has one more hiccup left: if you're on a QEMU board emulation that hasn't got a battery backed up clock, the init script would call busybox's rdate and ntpd commands, which I've replaced with toybox's sntp command... And musl is returning "Function not implemented" from clock_settime(). Sigh. It's not a kernel config problem, musl 1.2.0 broke 32 bit platforms (I've tried sh4 and i686 so far) when doing its 64 bit time conversion...
Ah, it's CONFIG_COMPAT_32BIT_TIME in the kernel .config. On both i686 and sh4 musl 1.2.0 calls clock_settime32() which isn't there on current kernels unless you switch on the extra config symbol. (The 64 bit syscall is always available, the 32 bit one has a backwards compatibility gate. Why? Is this a musl bug or a kernel bug? Just call the 64 bit syscall when it's available, you can #ifdef the syscall in the kernel headers! In the name of "compatibility" you're failing to run on the kernel I built.)
I keep going down shell ratholes, such as:
$ env -i bash -c env PWD=/home/landley/jcore/sh SHLVL=1 _=/usr/bin/env $ env -i ./toybox sh -c env SHLVL=1 SHLVL=1
During which I had to tweak the xpopen_both() plumbing to be able to take seperate "path to executable" and "argv[0]" arguments because the shell has to do the path lookup (not the libc execlp() function) in order to know what the path IS and I refuse to allow the race condition of doing it twice and somebody maybe changing it in between for nefarious reasons, nor do I want argv[0] to always be an absolute path when that's not what they typed. (Although it turns out I've already added a callback happening in the new process context, and I can just have THAT do the exec instead, so it all works out but I had to sleep on it to come up with that. Oh, and speaking of which I _could_ try the getenv("_") path and fall back to /proc/self/exe when I want to re-exec self in nommu context. Or more likely vice versa...)
Oh, and if the file you exec is a text file without #!/blah at the top, then both run and exec treat it as a shell script, and basically call sh except bash does it internally.
$ cat > snork <<< 'echo hello $BLAH' $ chmod +x snork $ bash -c 'BLAH=123; ./snork' hello $ bash -c 'BLAH=123; exec ./snork' hello $ bash -c 'BLAH=123 exec ./snork' hello 123
So that's fun, and I need to implement it.
But because I was taking so long I offered to throw busybox ash into an image I'm making for work to give them a temporary thing to test with, and then replace it with my shell before we ship. And Jeff has a point of pride he's never shipped busybox in anything (he doesn't like its code quality; keep in mind he's the guy who hired Erik Andersen to MAKE busybox in the first place so there's some backstory there I'm not entirely privy to but about 5 years later the corporate context he did it all in became Caldera which became SCO which sued Linux, and apparently the dysfunction was already highly apparent while he was there...)
Anyway, so Jeff sent me the shell he used in uClinux back in the day, which is simple! Tiny! (6 C files and 1 header file! 4968 lines total!) And... wrong.
host$ env -i ./sh -c 'env' PATH=:/bin:/usr/bin HOME=/ SHELL=/bin/sh host$ ./sh $ echo $(echo hello) syntax error $ echo `echo hello` host$
Here I was going "lack of command history is an issue", and this hasn't got any either. (Cursor up gives you "^[[A".) The main lack seems to be terminal control, and if I'm NOT doing job control (no suspend/fg/bg just ctrl-C) then... yeah, I can do that?
Oh hey, Nancy Pelosi noticed that Basic Income is a thing. Thank you for joining the group. (Saying that Nancy Pelosi is a trailing indicator is like calling the Pacific Ocean a damp spot, she's 80 years old. As with impeachment, she strikes several days after the iron has completely cooled.)
I emailed Mark Blyth (he's a professor, his email's on his faculty page) after listening to one of his recent podcasts, which made me realize something at around 15 minutes in:
Your most recent Mark&Carrie podcast made it sound like the USA's global reserve currency status, with corresponding ability to run infinite deficits, is like countries that depend on oil or diamonds for the majority of their income.
The literature calls this the "resource curse".
They don't need the productivity/taxes of their populace to sustain themselves or the quality of life of their elites. They can just import everything they need using the independent revenue stream, which predictably results in repressive totalitarian regimes keeping the populace out of the way of the elites and their revenue source.
Thanks for your time,
Rob
To which he replied:
Hi Rob
Brendan Greeley at the FT is writing a book arguing just that. The US is a commodity exporter. The commodity is the dollar.
best
M
In his next podcast he mentioned the topic briefly (by its older name Dutch Disease), and this explains SO MUCH. (He also read a question I submitted, including the part about solar killing fossil fuels in solid/liquid/gas order.)
As Bylth explained in a pair of talks recently, the world switched off the gold standard last century (because "sound money uber alles" caused the Great Depression, leading to mass unemployment and the rise of fascism). During World War II the USA outproduced the rest of the world, winning the war by producing more guns and bombs and planes and ships and food than all its enemies combined. (Having our fleet wiped out on day 1 at Pearl Harbor proved a minor inconvenience, we just built a bigger one.)
After the war, everybody wanted to buy from us, so everybody wanted US dollars. So the dollar became the global "reserve currency" that other countries filled their vaults with to back their own currencies. Instead of piling up gold, they piled up dollars, because they could buy anything form the country whose bounteous production won the great war.
But that massive US manufacturing capacity hasn't been true for 50 years. Starting in 1980 Ronald Reagan gutted FDR's New Deal regulations to hollow out our economy. The top tax rate went from 92% to 28%, money started to pool in billionaires' pockets, and Milton Friedman convinced corporate executives that their duty was to their shareholders rather than their customers and employees (a thing that was not true before September 13, 1970). American corporations outsourced their core business to third world sweatshops and call centers in india, and manufacturing re-coalesced in China.
Under successive republican administrations the USA gradually lost the ability to make anything or do anything other countries would want to pay for, but the dollar's position as the global reserve currency didn't change. Vaults full of dollars weren't any MORE useless than vaults full of gold had been, so piling them up to "back" other countries' currencies... everybody still did it because everybody else was still doing it.
And this meant that as the world's economy grew (population growth, inflation, technological advances, piling up savings) the rest of the world needed more dollars so they could issue more of their _own_ currency (because if your economy grows from $100B/year to $200B/year you need to issue twice as much money to avoid liquidity shortages), which meant the USA could run endless trade deficits. In doing so we provided _demand_ to the rest of the world, allowing everyone else to have export-driven economies because we were the importer they all sold to. It's a great deal for us, we don't have to do anything and people send us stuff in exchange for our autograph.
(We do still export food, but so do lots of other countries. And except for "factory farms" where we've fully mechanized production of grain and milk/eggs/meat, we import foreign labor to actually tend and harvest all the other crops without which the food rots in the fields. We still have the land, but have completely outsourced the expertise (to John Deere and Monsanto, or to Mexicans). Not that this is anything new, it's another facet of the US's profound racism from the trail of tears to slavery. The people calling themselves "farmers" are really landlords, they own the land and hire others to work it for them.)
This brings us back to the resource curse: we export a commodity, the US dollar, which 99% of the US population cannot help produce. Neither our labor nor our tax revenue is necessary, the USA can run enormous deficits forever because other countries want our treasury bonds. Our financial elites print money endlessly, the banks invent endless derivatives out of nothing, enriching the 1% while the 99% starves. Just like the oil and blood diamonds from Angola, the USA has become a puppet state where the government literally doesn't need the people as long as it has the financial industry.
Oddly enough, this ISN'T the reason we can afford basic income. These days _most_ countries can. I've written written lots of articles on basic income where I ran the numbers, but the tl;dr is that over the past century subsistence work has been automated away. 200 years ago 80% of the population worked on farms and these days (since the invention of the tractor and the combine harvester, the haber-bosch process and Norman Borlaug's dwarf wheat) only about 1% does (mostly the 3 million migrant farm workers picking fruits and vegetables, whom the white "farmers" call ICE to round up and deport right before payday). Domestically we can mass produce cheap wheat, rice, soybeans, corn, milk, beef, eggs, and chicken using chemicals and fossil water and cruelty, but the result is food is cheap and plentiful.
There legitimately was a time when everybody had to work or we couldn't eat, but that hasn't been true in living memory. Back during the great depression Milton Friedman proposed we'd work fewer hours each year, and he was right. The advance of technology automated subsistence work away, to the point lack of work is a recurring crisis. Between railroads and interestate highways, shipping containers, electricity, computers, the internet, GPS satellites, antibiotics... the economy we have now is nothing like the economy of 200 years ago. The pony express took 10 days to convey a letter 2000 miles, the telephone turned that into a few seconds work for an operator to connect the call, and then we automated away the operators most of a century ago. Repeat that in 1000 niches and you get the modern economy. Instead of employing domestic servants we've had dishwashers, washing machines, and microwaves for 50 years. Today we're getting solar panels, self-driving cars, and 3D printers.
The reason we haven't had the increase in leisure time Freidman predicted is our rulers made up bullshit jobs to keep people busy. (And if you work in human resources or IT for a company whose top floor is lawyers or marketing exectives that bring in the revenue from outside that pays for your work, then you have a second order BS job where you do real work in _service_ to bullshit. That's how 90% of the economy can be literal make-work.) The rich resisted any change to the social order where the rich employ the poor, and thus control them. Every rich person has a retinue or they're not important. "How important am I? I have 50 people report to me." (Doing what? Whatever I tell them to. Being at my beck and call. Public school assigns you homework, your day job assigns you busy work along the same lines. Not enough to do? Time for an ISO-9001 compliance audit, six sigma, a reorg, IT upgrade and training...)
And then if you ADD the global reserve currency on top of that, it means unequal distibution of the fruits of labor isn't even the main reason billionaires are soaking up trillions of dollars. Banks literally just invent money, and get bailed out by the federal reserve's printing press if they ever get called on it. There is SO much spare money, it's hard to even measure.
The US left the gold standard in 1971, and by Reagan's election in 1980 the world had coalesced around the US dollar as gold's replacement, giving us the resource curse. Today billionaires get rich because we print dollars. Whatever the 1% does with technology or inheritance or hedge funds is an excuse to _collect_ enough dollars to join the billionaire club, and once in members are endlessly bailed out with freshly printed money so they can't ever fail their way out of it. Once you're in the good ole boys' club you're a different KIND of person, who is not allowed to fail. It's the modern aristocracy.
The Boomers don't see this because the world they grew up in after World War II was the US as superpower, our vast wartime production having defeated the entire world (and invented the ultimate weapon, ICBM delivered nukes literally capable of destroying a city on the other side of the world with the press of a button). Boomers took this for granted, as the natural order of things, so did nothing to preserve it. They fought One Big Enemy that was the source of all evil, like their parents did, and then once that fight was won history was over and they lived heappily ever after. Instead of building or preserving anything, they clearcut and strip-mined their country and society. Now the idea that basic income + medicare for all + rent control is something the USA could _easily_ do is anathema to Boomers because that's just not how it's DONE! (Clutch pearls. Swoon and faint.)
And so we're waiting for them to die, while our financial elites sling around trillion dollar bailouts that get sucked away by billionaries because the current system is rigged for money to flow upward, never downward. But the current system is completely fictitious, the money is printed every time a Billionaire is feeling poor, and 90% of the "work" we're all forced to do is BS accounting games, with most of the rest (haircuts and grocery stocking and burger flipping and garbage collection) consisting of caring for other humans which is paid and valued like dirt (as any housewife will tell you).
It's not real. The Boomers only think it is because they haven't had a new thought in 50 years. Let them die, then guillotine the billionaires and start over.
This system crashed and had to be bailed out in 1991 (savings and loan crisis), 2001 (dot-com bust), 2008 (mortgage crisis), and it's doing it again. If they duct-tape late stage capitalism back together one more time, the wheels will just fall off again in a few years. The mass deaths we're experiencing right now are just a more OBVIOUS form of begging on gofundme for insulin or dying from preventable everything because a hospital visit where they don't FIND anything (she thought it might be a kidney infection, it wasn't, they sent her home) costs over $6k. (Real figure from a friend last month, it's gone to collections because she can't pay it.)
Entire lamb legs are available at HEB for $2.99/lb, cheaper than brisket. We have a chest freezer, so we've bought 8 of them so far. Had one for dinner (well, cooked one and had like 1/5 of it for dinner, and the weather report in the kitchen is a post-thanksgiving level of "endless sandwiches"). It's lovely for us, terrible for the farmers. HEB has kept its supply chain intact (with the occasional massive sale as they have more of certain perishable items than they know what to do with), but I'm told large parts of the rest of the country are starting to have... issues.
Twitter remains bad at being twitter. (I have NO idea why you have to scroll _up_ to see tweets this week. They changed their HTML plumbing so the anchor it scrolls to in each new page it loads is _AFTER_ the tweet the link is to, so it starts by showing the first reply and you don't even know there's stuff above that unless you try to scroll up.)
Apple's technology is really going downhill since Steve Jobs died and Johnny Ive left. Here's a good thread on how means testing is terrible, which starts with a link to another good thread on how means testing is terrible. This is the best summary of LBJ I've ever seen, in a single tweet.
The dementia patient in chief is now calling every senior moment "sarcasm". And he's flounced from his diet rallies. Even snopes is calling him out now. Meanwhile the republicans are actively trying to kill people for money. Despite the suppressed covid-19 figures (if they weren't tested, that's not what they died of), so many people are dying newspapers are running out of obituary space, and it's getting worse. Conservative governments everywhere are lying about their PPE stockpiles, but lying is what they do. The Arizona GOP chair instructed the anti-lockdown protestors (paid for by education secretary Betsy DeVoss and her brother Blackwater CEO Eric Prince) to dress like health care workers. Conservatives think the rules don't apply to them. And yes they caused this problem in the first place but they're also also screwing it up now.
The "reopen" push is still about denying people unempoyment benefits. And about preventing insurers from paying out, and letting landlords demand rent.
The true "death panels" are capitalism driving healthcare decisions. And the GOP's drive to "drown the federal government in a bathtub" seems pretty close to succeeding. The "family values" party is also destroying marriages en masse.
Back when Bill Clinton proudly "doubled the number of cops on the street" it was a bad thing.
Our current economy is entirely fictitious. The massive food waste going on is due to distribution monopolies, and efficient still means "brittle" and "all the downsides exported to poor/brown people".
Milwaukee is a nice city. I enjoyed living there. (I had zero social network there, but as a _city_ it was quite nice.)
This thread on what a terrible person Elon Musk is includes an article written by his first wife.
Michael Moore (who is 66 years old) put out a hit piece attacking renewable energy. For example, if you switch to electric cars you _can_ power them with solar and wind, but if you replace your infrastructure in stages and the electricity's initially still coming from coal (because the switch isn't FINISHED yet), you are an imperfect impure horrible person and should never have bothered to do anything ever. (Especially since Moore uses 10 year old figures on where your electricity used to come from in that particular example.)
Misogyny is alive and well.
Billionaire Philanthropy isn't Robin Hood. They steal from the poor and give a small fraction of it back to buy praise.
Still waiting for the Boomers to die.
Floating storage now costs $250,000 per day to store oil, ten times what it did last month.
Ha!
$ make CROSS=sh4 LINUX=~/linux/linux root ... $ (cd root/sh4; ./qemu-*.sh) sh: exec rdate: No such file or directory sh: exec ntpd: No such file or directory sh: exec /etc/rc/*: No such file or directory Type exit when done. # ls /sys block bus class dev devices firmware fs kernel module # exit reboot: Restarting system landley@driftwood:~/toybox/toybox$
It works.
(Admittedly the WAY it works is by ignoring the ${i/,*/} and ${CONSOLE:-console} decorators, but that's just missing features.)
Sigh. In libgcc, ssize_t is long but in musl it's int, which is silly: on 32 bit platforms long is 32 bits, and even the one surviving exception to LP64 (winders) breaks small (their long is 32 bit on 64 bit platforms), so defining it as int is silly. The problem is it causes printf("%ld", strlen(blah)) to throw a gratuitous warning.
Aaaaand 32 bit bionic is doing it to in some versions. Great. Pointless gratuitous typecast it is.
Wow. In 1986, George Carlin billiantly summed up the Trump administration in 10 seconds (4:59 to 5:09 in that video). It's a pity I dunno how to clip that out as its own clip.
Yes the resident is still cratering from dementia but people still don't see it even though he clearly doesn't remember last month. Election or no, his hard drive's failing and gonna brick itself on its own real soon now.
I suspect Saudi Arabia browbeat its neighbor Jordan into unplugging all its solar panels from its electrical grid, to force it to consume more oil (These are solar panels that exist and are producing electricity now, why ELSE would you unplug them all?)
Covid-19 has now killed as many people in the UK as The Blitz in 1940-41. And that's despite Covid-19 deaths being vastly underreported everywhere conservatives are in charge. But a LOT of people are dying from it. (It reminds me of the star trek episode with the disintegration booths. The casualties of a war, while we all quietly sit at home mostly personally unaffected by the widespread but silent horror.)
Here's a fun new hobby everyone should try. Guess why Labour lost the last election in the UK? (The main opponent of change is moderate old fogies who sold out decades ago and today refuse to acknowledge improvement was never impossible because it means they wasted their life. Pelosi and Biden are the problem, not the solution.) Meanwhile, on the Tory side... which is probably why... Honestly, just guillotine the billionaires.
Why the economy can't "reopen" partially.
An amazing amount of oil is parked off the coast of california right now. Saudi Arabia bought the largest US oil refinery, and intend to run their oil through it whether we need it here or not. Meanwhile we're turning even oil pipelines into storage even though texas normally produces twice as much oil per day as the pipes can store.
Banks rush to rein in financing for oil firms, the article estimates at least 30% less capital available to oil firms already.
The New York Times has issues.
The trump administration is now stealing masks from the Veterans Administration hospitals, embezzling them to sell on the open market. They also appear to have stolen every stimulus check in the whole of Puerto Rico. The republicans not only designed the "stimulus checks" so debt collectors can grab the money before you ever see it, but they're providing pointers on how to steal your check. And even if we got it all, it's a tiny fraction of what functioning governments are providing their citizens. Nobody anywhere else is screwing up as badly as the GOP.
Guillotine the billionaires. Countries that end capitalism will come out of this much stronger. Just do basic income, medicare for all, and rent reform (tax landlords white). We still need public infrastructure, but the current clowns are crit-failing it all today. The post office is like the fire department, police, public schools, orphanages, and hospitals: if it makes a profit something is wrong. Talking about hospital or post office profits is exactly as creepy as talking about fire department or police profits. (And yes, police departments are making huge profits and it's always been a bad thing when that happens.
The fiddly bit about redoing so much toysh plumbing to change the order of operations so I can implement all the ${blah#blah} decorated variable resolution plumbing is getting the lifetime rules right. I want to free stuff promptly, and don't want to leak memory, and it's fiddly.
Sigh, I'm going to have to throw a memory tracker at this to find leaks.
Does anybody remember the Vox piece from 2 years ago about how Trump clearly has dementia but news organizations consider it unprofessional to talk about it?
The emperor has no brain. It's a problem, but not a secret. It never was a secret, and it's getting worse fast enough people can no longer ignore it. But they still prefer to call him crazy or evil rather than admit a 73 year old man whose father died of altzheimers is sundowning into senility.
The daily coronavirus rallies show the Resident's worsening dementia, not just in specific statements but in patterns of dodging questions he literally can't answer. Here's video where he admits he can't remember what happened last month. People usually attribute this to lying, but as Ronald Reagan's Iran-Contra "don't remember" before dying of Altzheimer's shows, it can also be a degenerative brain disease. Remember that his (remaining) staff regularly lie on his behalf to try to placate him and justify things he said, which means things like "sharpiegate" don't necessarily mean HE drew on a map, it means when one of his staff creates an obvious lie to cheer him up, they fool the senile old man so completely he thinks other people will also find them convincing. He recycles his speeches because he can't absorb and retain new information. When the question a reporter just asked him vanishes into the fog, he pulls out the same old stories over and over like any other geriatric invalid in a nursing home.
He's losing the ability to walk, the day before yesterday he lost his balance and used Melania as a cane twice in 20 seconds (his right arm doesn't swing and his right leg is buckling). And this is _with_ his handlers drugging him to the gills before each public appearance, which is not sufficient, even with a teleprompter (which he can no longer reliably read). It was obvious back in 2017 that this is not a healthy 70+ year old man.
The GOP will never reign him in because they literally want to destroy the federal government, and see his incompetence as a useful tool towards that end. After all, billioniaires can't be kings hunting peasants for sport and sex trafficing a harem chained up in their basements if they have to follow OSHA regulations. (If that was hyperbole how did so many rich and powerful people hang out with Eppstein?) They want us to collapse back into feudalism, which is not hyperbole and not a secret.
Speaking of the GOP, the reason they're reopening Georgia is to avoid paying unemployment, because its right wing loon governor Kansas-ed the state budget and now it can't afford to provide basic services. The "reopen" protests are astroturf. The "reopen" protests are astroturf, and they're also tiny.
I miss having a reliable media ecosystem. Even NPR seems to have faceplanted recently. The situation has been deteriorating for a while but over the past 5 years facebook manipulated the market metrics and bankrupted many outlets. The ones that are left are often so self-destructive they want to make sure nobody sees their content.
This will end when billionaires are guillotined. It will not end before billionaires are guillotined. There's no such thing as a "good billionaire". If they weren't slimy grasping bastards happy to watch people die rather than give up money, they'd never have accumulated so much. (And not just performative philanthropy that exerts control over people and institutions, or a pledge to give (some of) it up when you die. Scraping together that big a pile cannot be done by one person, it means the fruits of your collective labor were not shared remotely equally. You profited and they did not. The CEO should not get a thousand times what the employees get. They didn't used to, back in 1965 the average CEO only made 21 times what their workers did.)
(And yes I linked to a thread where Walt Disney's niece rips the company a new one for laying off 100,000 workers without cutting their excessive executive pay. Current estimates are that Disney is losing $30 million/day right now, which is a $billion/month, which they can afford for about a year.)
Shell stuff (toysh). So this is annoying:
$ chicken() { echo ${*/b c/ghi}; }; chicken a b c d a b c d
Although $* expands to include "b c", it hasn't done so YET when the search and replace runs. This requires the sequencing to be that each argument has the regex applied BEFORE they're stitched together. Which with $IFS being variable makes a certain amount of sense, but fights kind of profoundly with the plumbing I've implemented for handling variable expansion. I can stick the ${??} shenanigans in right before IFS substitution, but otherwise I have to make it a function that stuff calls out to, which means marshalling state to it.
Grrr. Alright, the logic wants $@ and $* to get handled in the same route, but the problem is the outputs are very different from an allocation standpoint. I really wanted to do two passes over the data (measure, allocate, then write) but I guess it just has to realloc() a lot. Which is potentially very inefficient but CAN work ok? Sigh.
The other problem is:
$ IFS=x; X=x; eval abc=a${X}b bash: b: command not found
I want eval to use expand_arg("\"$@\"") to get the glued-together-string (so I can inline the function gluing it together), but it has to use $IFS within each argument but NOT glue them together with the first character of $IFS. Time to add another expand flag.
$ chicken() { for i in "${@:3:5}"; do echo =$i=; done; } ; chicken ab cd ef gh ij kl mn op qr =ef= =gh= =ij= =kl= =mn= $ chicken() { for i in "${*:3:5}"; do echo =$i=; done; } ; chicken ab cd ef gh ij kl mn op qr =ef gh ij kl mn=
So ${12:1:3} needs to lookup ${12} first to chop the right part out of the result, but ${@:2:3} is operating on the _array_ which then gets stitched together into a result afterwards. (Working out the sequence here is the hard part. Once I've got the order of operations the CODE is mostly just a bunch of typing.)
Ah-_ha_. Bash arrays are genericizing the $@ and ${!blah} results, THAT'S why they exist. So a bash array needs to be a struct sh_var and fall into the same codepath as the others. (For the moment I can implement associative arrays as normal arrays with key=value contents I search with a for loop, possibly reusing the variable infrastructure I've got for handling key=value arrays. Worry about that later.)
$ IFS=x; X=abxcd; echo ${X/bxc/g} agd
Yup, regex _then_ split. Time to shuffle code around. (Remind me to add all the above to the test suite.)
Oil went negative briefly, because storage ran out, but this was just the opening band. The real crash is still coming.
What happened is the monthly futures contracts expired tuesday, so instead of trading paper contract rights people had to take physical delivery of the oil, and traders who hadn't made arrangements to rent expensive storage found nobody wanted to take it off their hands, and if they still owned it come tuesday they had an obligation to _take_ it, or they were in breach of contract (and possibly liable for an oil spill). On the last day of the contract, trading turned into musical chairs and the contract became a hot potato people paid to get RID of before storing the oil became legally their problem.
The result was a localized trading glitch, only applying to WTI oil from landlocked wells in North America. (Remember how it was just one well trading negative last month? Well this time it was "just North America".) The reason the price went negative is oil transportation got overwhelmed and storage filled up. The pipes and rail lines from North America's oil wells go to refineries, but the refineries are all operating at reduced capacity because nobody's buying the resulting petrol/diesel/kerosene/jet fuel, and there's never been much storage for outputs like gasoline. As long as they have crude oil stored near the refinery, they can always just refine more if they need it. You can't put gasoline into crude oil pipes any more than you can put it into a milk tanker, sewage truck, or cement mixer: each liquid needs its own dedicated storage and transportation or everything gets contaminated. Since crude oil is what all the rest is made from, they mostly just store that.
With the refineries overwhelmed crude oil is piling up, storage near the refineries is full, and there aren't a lot of crude oil pipes or tanker train cars going AWAY from the refineries because why would there be? (America used more oil than it produced for decades, most pipes lead _in_.) And thus the price of WTI crude turned negative as the music stopped and there weren't enough chairs. The futures contract expiring forced it to happen for a lot of traders at the same time, so the price they traded it at went suddenly negative.
But A) that contract's expired now and the next one doesn't come due for a month, B) WTI is a minority type of oil mostly only relevant to North America. The rest of the world (2/3 of global supply) is "brent" (named after a British Petroleum oil platform off the coast of Scotland, but generally used to set the price for the "basket" of middle eastern states as well), and THAT oil stayed around $20/barrel. The thing about brent oil is those producers all pipe it to sea to fill up oil tankers which take it to refineries, which means those tankers can head anywhere in the world that still has storage space.>
But by this time NEXT month, when the next futures contracts expire and people have to take physical delivery of next month's oil, how much storage will even Brent be able to find? An armada of oil is heading to California for delivery in may. The tankers _themselves_ are already being leased as "floating storage". And brent oil having the kind of seizure WTI just had is a MUCH bigger deal for the oil industry.
The interesting thing is, oil already had a glut problem to the point it needed floating storage three years ago. Global demand for oil wasn't keeping up with supply even before coronavirus. The industry even has a term for this, "contango", which means the price you can sell oil at in the future (according to the futures contracts) is higher than you can buy it for now, and if the gap is big enough it pays to store it until the price goes up. This means the market believes demand for oil will increase in future... except it's believed that for years now. (And they're recently doubled down, inventing "super contango" which I can only assume yells a lot and has pointy yellow hair.)
Oil traders are hoping that the economic damage from coronavirus goes away as quickly as it came (the so called V-shaped recovery as opposed to the persistent U-shaped recovery everybody expects). Because if digging out takes a while, demand for energy won't return to previous levels for years, and by that time how much of it will be for _oil_ if solar and batteries continue their exponential price declines? (So what if oil prices fell 50%, batteries are 87% cheaper than they were a decade ago, and the technology continues to advance as fast as ever.) Therefore it can't possibly happen, because rich white men don't want it to, QED.
That floating storage article from 3 years ago article says the oil traders expected a surge in oil demand from china to raise prices, but I wrote about that last year: china's the biggest source of solar panels and batteries driving the switch to renewables. Collapse in demand from china killed the coal industry most of a decade ago, and china capping its strategic petroleum reserve caused the oil glut in that article.
Oil traders are still hoping for a surge in demand from China today, only now they're hoping it builds ghost oil storage. As late stage capitalism winds down and billionaire parasites suck all the money out of everything leaving workers with flat wages and piles of debt and a crash every 10 years where the rich are bailed out and everyone else loses their homes and careers and retirement savings, the resulting economies suffer persistent lack of demand requiring perpetual stimulus to keep their heads above water. In the USA we do "Quantitative Easing" which means the Federal Reserve prints money and uses it to buy trillions of dollars of paper assets from wall street, so each dodgy get-rich-quick scheme du jour the billionaires come up with gets bailed out as it collapses, so the billionaires never lose money on any of them.
China's version of Quantitative Easing takes the form of hiring construction crews to build "ghost cities", creating "assets" their middle classes can buy from the billionaires. (Real estate scams are as old as the hills.) The leaders of china believe in physical assets, but empty skyscrapers in the middle of nowhere are their own kind of fiction, and when that got ridiculous they turned outward to the "belt and road initiative" building random infrastructure in adjacent countries in hopes those guys might actually use them instead of letting empty buildings fall down. (And also a way of putting adjacent countries, and ones farther away, in both political and financial debt to them, and buying large chunks of their real estate with finance instead of military invasion.)
So it's possible that if oil prices get low enough china will decide to direct the ghost city construction crews it throws its stimulus money at to build oil storage for a while instead, and fill it with cheap oil at under $10/barrel. It's a bit like me buying a chest freezer if T-bone steak goes on sale at 10 cents/pound. I didn't have _plans_ for that steak, but if it's cheap enough and there's enough of it, sure why not. But if I did that, I probably wouldn't buy steak again for quite some time, and that's the problem the oil industry has filling up all this storage. Renting oil storage from somebody else costs a lot of money (same as renting a U-haul or Public Storage), and that motivates people with oil in storage to sell it, eventually even at a loss if the price stays low for long enough. This means the price of oil can't go back up anywhere near where it used to be until it's worked through the backlog, but it can't work through the backlog while oil producers are still pumping. All the storage in the world doesn't fix the problem, it merely delays it (while making it worse).
And oil producers aren't going to stop. The cost of production is complicated, but taxes can be waived at any time (especially for state owned oil firms or as part of a bailout), and some portion of "capital spending" was already paid (financing debt from sinking the well, refinanced or eliminated via bankruptcy), which leaves the "production" and "transport" columns. This means US shale physically costs somewhere between $9.50 and $17/barrel to deliver, with Russia $6-$11 and Saudi Arabia $5.50-$9. This means even at $10/barrel, the gross margin is positive and whole lotta pumping going on from people desperate for cash.
Russia still needs $42/barrel to balance its budget and Saudi Arabia twice that. They'll keep pumping from the wells they've already drilled and running it through the pipes and refineries that still exist as long as there's any profit in doing so, but no bank with two brain cells to rub together is ever going to finance another oil construction project again. It's stranded assets as far as the eye can see, and that lack of new capital spending is likely to be the oil industry's limiting factor this decade. More leaks. More worker injuries. Skill loss due to layoffs and attrition.
And with solar and batteries and telecommuting and electric cars eating away at their customer base, bailout money is likely to vanish into executive bonuses and stock buybacks rather than be invested into a dying cash cow (as with Sears: milk to exhaustion then butcher). Banks lost their shirts on oil in the 1980's because of exactly this kind of price crash (prices stayed low for 17 years, until China started filling its Strategic Petroleum Reserve), and if it takes them another generation to forget their losses renewables should have swept the field by then.
The next question is, of course, what happens to Russia. The 1980's oil crash caused the collapse of the Soviet Union about a decade later: without importing food Russia can't feed itself, and they need to export oil to get hard currency to import food with. (Even in 1997, The Onion often merely documented the truth.) As oil prices went back up, Russia started meddling on the global stage again. They've switched from oil to gas for funding their troll farms, but fossil fuel money directly funds 36% of their government and indirectly it's and over 60% of their export income (down from almost 70% a few years ago because oil prices have come down). Russia's gone thorough brutal austerity that's killed their (admittedly meager) economy to try to build up some cash reserves, and right as they were starting to spend again to suppress political unrest the oil price collapsed six months later. And that's before coronavirus' direct impact.
So, shell corner cases.
Not only is ${10} a thing ($1 through $9 show the arguments to the current function, but if there's a double digit number you need the brackets), but ${_} and ${$} and so on are synonyms for $_ and $$. And ${12a} is an error, but ${12#} isn't.
Which means A) I need a lot more tests, B) my variable parsing logic is in the wrong order and I've got to redo a chunk of code. Hmmm.
Of course Joe Biden is letting this crisis go to waste, even though the quote "never let a good crisis go to waste" was popularized by Obama's first White House Chief of Staff his first year in office. In case it isn't obvious: Biden is not Obama, is not as good as Obama, and learned nothing from Obama. (And Obama was to the right of Richard Nixon, and yes Obama himself said that.)
Biden is 77, which means he'd turn 80 in his first term. Biden is well past wanting anything new (old dog, new tricks). Even Bernie Sanders was trying to mold the world to fit a vision he came up with 40 years ago (which is not so much a vision of change as a supervillain plot that might coincidentally be useful to other people).
But don't worry, there will be another crisis as long as the Boomers are still driving. They caused the savings and loan crisis of 1991, the dot-com bust of 2001, the mortgage crisis of 2008, and the current Trumpocalypse (which is only a giant crisis because it was utterly mishandled and still is; places that scaled up testing early never even had lockdowns let alone mass deaths.)
We've still got 14 years of Boomer time left. Half of all Boomers were born before 1955, the average lifespan in the USA is 79, so half of them won't have died until 2034. And no Coronavirus isn't changing that (there are around 77 million Boomers in the USA and Coronavirus isn't expected to kill even 1/10th that many.) The Boomers will continue to vote Nazi from their nursing homes until their dying day. And they vote for people older than themselves (I.E. "adults") which is how we got 5 septuagenarians vying against each other for the presidency back in January.
Oh hey, I'm back to angry. Angry is useful.
Email's back. I didn't do anything, it just started magically working again. Something at Google's end. Maybe it'll go out again, maybe it won't.
I have a new $25 Patreon donor, who wrote a very nice letter I should thank him for, saying the work I do is appreciated and he wants the bash replacement shell. I should thank him, but I have to log in to Patreon to do that and I haven't got the energy.
The guy who started the thread that kicked me into depression sent an apology. I should reply to that. (It's not his fault. The trumpocalypse quarantine has not been good for my mental health.)
Slept most of yesterday, and most of today. Going back to bed.
Planet's still a trash fire. (I didn't know the guy behind Blackwater, Eric Prince, is Betsy DeVos's brother. And that they're the people who funded Mike Pence's political career. When Dubyah talked about the "axis of evil", log in thine own eye dude.)
And now my email doesn't work. Great. (I've been half expecting gmail to stop working ever since they warned me it was joining the Google Graveyard last year. And yes it's ironic that the google graveyard is itself no longer maintained.)
Thunderbird's been giving me a "web login required" popup trying to fetch email from gmail's pop severs all day. But logging in to the web page doesn't fix it. I can see the mail _there_ but can't do a pop3 transaction in thunderbird to get it into the client I use with the filters to put 3000 daily linux-kernel and qemu-devel and such messages into relevant folders instead of one big inbox. The server error message popup also provides an utterly useless URL which doesn't relate to web logins at all. Exiting and restarting thunderbird let me check mail once, and then the popup came back. Outgoing mail was also being refused but switching from smtp.googlemail.com to smtp.gmail.com seemed to fix it? (But then I only tried to send one message, maybe it also only fixed it once?) I googled for the error message but all the hits are 3 years old and I haven't changed my config.
I should migrate the domain to dreamhost's mail server, I just... don't have the energy? I'm supposed to be using a work email address at $DAYJOB anyway, and if I really need to contact house repair people or something there's always the burner gmail account Android requires me to create every time I get a new phone. (Old D&D characters from middle school are a good way to find unused account names.) That email address was my 4th since college anyway, they don't last forever. I guess I don't really _need_ to reclaim it?
What I needed that email address for was open source development, and... do I still want to do that? I haven't unsubscribed from the linux-kernel mailing list but don't read it anymore. The old busybox/uClibc nexus died a decade ago. Eric Raymond went crazy a decade ago, and Richard Stallman a decade before that. (Heck, RMS got #metooed out of office recently, just in time for the 67 year old man to collect social security, which means the FSF probably isn't even in need of opposing anymore.)
Google _officially_ doesn't care about toybox or mkroot or 0BSD or anything I've been working on, and never did. They've been willing to accept work done for free, and that is the extent of their interest. (One developer does care in a personal capacity, but according to this interview (starting around 19 minutes) he's A) just as happy to use the BSD utilities, B) affably baffled by my crusade to change the world, C) a manager these days and not a programmer.) If I stop, Google won't care, so why should I? They think the future is java, they rewrote their C library in C++. All my big long-term plans were _my_ plans, not theirs. Android isn't a simple reproducible, understandable, and security-auditable development environment because Google doesn't WANT it to be. If I stop, why would they even notice? (And if I can't tell them because _they_ screwed up the email account I'd use to tell them, I refuse to feel guilty about that.)
Mail going to the old account about initmpfs or cpio not supporting xattrs isn't really my problem anymore. The whole 0BSD thing was so deep in the weeds, who else even knows it exists let alone cares? Fighting back against systemd undermines Red Hat's embrace-and-extend business model, and they're IBM now. I haven't had time to work on QCC in 12 years, at some point "intending to get around to it" stops meaning anything. Current versions of Android don't let you run locally generated binaries and that whole "posix container" idea I had was just a wishlist item that Google hasn't remotely commited to actually do. It's a red queen's race.
But the bigger question I'm asking myself is... Why did I bother? What exactly have I been trying to accomplish? So kids these days learn Python 3 and everything under that is a black box nobody understands anymore, which can only be accessed by giant teams at Fortune 500 corporations guarding proprietary secrets. Oh well. These days Montsanto patents genetically modified corn, lets the pollen blow into neighboring farmers' fields, and then sues those farmers out of business. Until the Boomers die, we suffer through late stage capitalism everywhere. You only exist because a corporation owned by a billionaire allows it. Managerial feudalism.
Huh, I hadn't noticed when my old Aboriginal Linux project turned into a malware platform. More evidence I haven't been helping, I suppose. Time to down tools and find something else to do.
I should take the patreon down if I'm not doing the work.
I got dogpiled on github by people who repeatedly ignored my "that's not a design direction I want to go in" until suddenly toybox wasn't fun to work on anymore. Like kernel development, mkroot, Aboriginal Linux, my tinycc fork, busybox... Even twitter I really stopped posting to voluntarily (it's only a 12 hour suspension that won't start until I give them a phone number, I just haven't wanted to) and still have the login to my old livejournal if I cared to use it. I stopped because they're no fun anymore.
The problem is I have momentum on the shell, and if I walk away from it for any length of time coming back up to speed on half-finished code where I don't remember what I did vs what I _meant_ to do (and all the corner cases of _why_ the code works that way when the unfinished code does not yet necessarily work that way so even reverse engineering what's there doesn't provide definitive answers) would be a huge lift. Which means I probably wouldn't come back at all. I'm trying to figure out if I care. I started toybox in September 2006, 14 years ago. Maybe that's long enough? I've been doing volunteer work for the 15th largest company in the Fortune 500, for free, for years. People have told me I'm an idiot for making a mega-corporation more profitable as a hobby, and maybe they're right. I wanted to change the world, but it's a lot bigger than me, and defending things like C (not C++) and Unix and the ability to do general-purpose computing on hardware people actually have... seems kind of quaint, doesn't it? Postponing the inevitable. The people doing systemd have won. You Are Not Expected To Understand This.
I suppose I should at least finish the release I'm working on before downing tools, the same way despite everything I got busybox 1.2.2 out way back when. Which reminds me that I started toybox because I was angry. I'm no longer angry, I'm tired. I should just ignore the world and get on with my work, but if it was _my_ work I wouldn't have people telling me how to do it on github would I? I'm already ignoring so MUCH of the world just to stay sane (as I type Fuzzy's in the backyard yelling into her phone about how mad she is she has to choose between two septuagenarian rapists in November), the tiny sliver of it I was optionally trying to exert some control over becoming a source of stress is not something I have energy for right now. It's not that it's full of people who want me to stop, that's often a sign you're doing the right thing. It's that the supposed beneficiaries of my work insist (at length) I'm not serving their needs, and I guess they'd know wouldn't they? Somebody yells at me for tidying up, I stop tidying up.
I don't really need to cut a toybox release for $DAYJOB, I had an alternate approach weeks ago that I can go back to. This entire tangent was just me soaking up trumpocalypse quarrantine days to try to get bucket list todo done, and that's kind of self-indulgent anyway. I should stop wasting time and get on with my actual responsibilities. Being proud a 232 line shell script builds a bootable Linux system from source for a dozen different hardware architectures is self-indulgent: buildroot exists and far more people use yocto anyway. Even if Antoine de Sait-Exupery was right, so was Voltaire. And besides, it's a bash script: not portable.
Oh hey, the USA _does_ have (half-assed) postal banking. Who knew?
Sigh, it looks like I'm getting a release out around April 15th but I already used the rice pudding and income tax quote.
Expanding ${} with nothing in it is an error, and ${X:?blah} is an error if X is unset, and ${X;} is an error, and when you have errors like that it doesn't run the command. Which means variable expansion has to be able to abort run_command(), but half-resolved "$X${}" variables that have already allocated memory shouldn't leak, which means it's time for ANOTHER AUDIT OF THE VARIABLE RESOLUTION LOGIC. All of it. Again.
Wheee. (The TWO THINGS that the init script from toyroot still needs are the ${} stanzas in the "ln -sf /proc/self/fd${i/,*/} dev/${i/*,/}" and "exec oneit -c /dev/"${CONSOLE:-console}" $HANDOFF" lines, but ${//} and ${:-} implies error recovery logic for ${}, right after I finished the $'' rathole tangent I probably shouldn't have gone down right then but did...)
Xeno's release candidate.
Good News Everyone: If the GOP's fears are right, virginia will never vote republican again. And possibly neither will wisconsin.
Continuing the good news (let's just do good news today), The Pope just came out in favor of Basic Income. (On a related note, this remains a lovely interview.)
Speaking of UBI, while The Onion Cannot Parody, it Merely Documents Reality remains true, people keep getting money wrong. Money isn't an _illusion_, it's a _promise_.
Money is the same kind of promise as laws, employment contracts, titles to property, arrest warrants... Society is built on making and honoring such promises. Specifically money is the promise that the government WILL come and demand taxes from you in the future (and property taxes mean that wherever you live in the country, you or the person renting to you cannot AVOID paying those taxes every year), and when the government comes for its taxes it will accept this currency (and ONLY this) in payment of those taxes. If you can't get enough of it to pay the taxes between now and then, Bad Things will happen to you. And that's why you need dollars, and why everyone ELSE you meet needs them too.
Because the government ONLY accepts the dollars it issues in payment of taxes, those dollars are a uniquely valuable form of currency. If you pile up wealth in land or gold or eggs, you will have to convert some of it into dollars to pay taxes, and doing so at tax time might be extortionate, so people just use dollars all year round. Every once in a while a government is stupid enough to accept payment of taxes in gold or bitcoin or something, at which point its currency immediately collapses. Rich loons who want to avoid taxes and drown-government-in-the-bathtub still think the US dollar would mean something if they succeeded, because they're self-destructive idiots who don't know how anything works, just that their problems have historically gone away when they shout loud enough.
Back to good news: we just had the first March without a school shooting in the united states in 18 years. Here's 60 minutes embarassing an administration official with a montage. Saving the post office means repealing a single law. Here's someone explaining why Crozier (the aircraft carrier guy who called for help when his ship got coronavirus) was unquestionably right to get help when the crew maintaining 8 nuclear reactors started to fall ill.
Oh hey, is that what happened to Austin's Spam Festival?
Got an email, replied, might as well share the reply:
> I really wanted to hear
> you talk about device-tree. It is a subject that I am very fuzzy on and I am
> sure whatever you had talked about would have helped my understanding.
Device tree is just a big list of all the hardware in the system, in a known format that can be parsed by generic (architecture-independent) code, so drivers can call functions to ask "do you have one of the devices I manage" and get back data telling it what devices it recognizes are available, how many of them are present, and where to find them. It's a tree instead of a list so it can nest (this bus has these devices hanging under it), and so it can have things like "memory controllers" and "block device controllers" and "character device controllers" and so on grouped together.
Way back when your kernel would be hardwired to expect certain hardware at known locations. (Ala you have a 4 serial ports, here's the IRQ and I/O address of each one). The IBM PC started life as a derivative of the MITS Altair, as described here. There were ways to probe for _some_ stuff (such as the E820 memory map telling you how much physical memory the system had, at what address ranges), but other stuff the kernel just had to know about (hardwired in C, for Linux you'd select it in menuconfig).
Later generations of bus controllers (starting in the early 1990's) were smarter, and allowed you to probe the devices plugged into them (the lspci and lsusb commands do that for pci and usb respectively), but there's always a chicken and egg problem of "I can ask a PCI controller what devices are plugged into the bus once I know where the PCI controller is, but how do I find the PCI controller in the first place?" So there were still some static devices your kernel just had to know about.
Of course when computers boot, they always start by running some ROM (the CPU powers on with the registers resetting known values, which means it starts running code at a known location, and the hardware maps ROM at that location so a control program can take over and bring the system up, this old writeup about the 2.4 kernel explains the ancient 32 bit PC way of doing things before EFI bios was invented, for example.) Since about 2000 they've used flash memory instead of ROM, but the principle's the same: before your OS can run some code has to bring up the hardware enough to hand off to the operating system.
(Tangent: bootloaders actually come in 2 parts: the first part initializes the DRAM controller so the DRAM refresh happens and main memory remembers what's written to it for longer than 1/4 of a second, which turns out to be nontrivial and thus requires software to set it up. Then the second part is your bootloader that reads your OS kernel into memory and jumps to the start of it. Some bootloaders provide just the second part (ala grub) and some do both (such as u-boot and openbios). This is the reason u-boot wouldn't run under QEMU for the longest time is its maintainer refused to split the two parts, so it tried to do dram init under QEMU which doesn't emulate a DRAM controller, which would fail and crash. For years all DRAM init code had to be written in assembly because if you haven't got the DRAM working you pretty much just use the CPU registers, but then the Linuxbios guys did something clever and loaded a single TLB entry into the CPU cache telling it the first 16k of memory (starting at address 0) should only be written back to DRAM when you needed to evict the cache lines to make space for something else, so it would load garbage in from memory, they'd zero it out, set their stack pointer there, and then they had 16k of memory to use as stack so they could start a C function and do their dram init in C instead of assembly. And as long as they were careful not to touch the rest of DRAM before they were done. Everybody does it that way, ad linuxbios got renamed "openbios" a few years later when the BSD guys started using it too.)
Anyway, the bootloader that's flashed onto the board's hardware usually knows what hardware is in the board (at least enough to find the probeable busses like PCI and USB), and a couple generations of Sun Sparc machines used something called "OpenBIOS" with a big hardware table in a tree format, and IBM picked it up for its PowerPC systems, and then the Linux PowerPC port wrote code to parse the PowerPC table out of the firmware (and convert it to a simplified format called "flattened device tree") to see what hardware was available, and then u-boot started PROVIDING a table in that format, and it got genericized and copied to a bunch of targets starting around 2008. Oddly enough, a large chunk of that history is described here.
These days, just about the only architecture that DOESN'T use device tree is x86, because of windows+intel+arm politics. The problem is the Linux infrastructure for creating new device trees, turning a text device tree source (*.dts) file into a binary (*.dtb) file using a device tree compiler (dtc)... well all those dts files are licensed GPL. And that means windows and freebsd cannot (and never will) use them, which means that device tree is a linux-only format. And when windows started to switch over to Arm a few years back, they asked if they could use device tree under a bsd license and were told no, so they sponsored a port of the new x86 bios format (ACPI) to arm which exists ENTIRELY because the Linux guys insisted on GPL for data files and thus the rest of the industry went a different way. Sad, but there you have it.
Odd numbered day. I have a backlog of links that collectively call for changing the law to guillotine billionaires.
(Specifically, make retaining control of a billion dollars for longer than 30 days -- so you can give it away -- a capital offense punishable by guillotine. Yeah, we COULD do torches and pitchforks, but changing the law so the state does it for us seems more persistently effective. Sure you can reinstate the 90% top tax rate after the first 10 million/year so there aren't any billionaires and we don't wind up guillotining anybody (after we've cleared out the current lot who would rather die than give up "their" money), but the overton window needs to go well beyond there if you ever hope to acheive the tax thing as a consensus compromise position. Given how many people the current system is killing with covid19 and gofundmes for insulin and civil forfeiture and school-to-for-profit-prison pipelines and "open carry for whites, black 12 year old with a squirt gun shot on sight" and 300 other things, it would take rather a lot of billionaire heads to balance the scales.)
Ok, even numbered day. Ignore the ongoing trumpocalypse, be positive, and get work done. (There are still good things in the world.)
I started an ongoing thread on the linux-m68k list about trying to get that to work in toybox's "make root". Not quite sure what the problem is yet, but something's not right.
[Update from the future: it turns out I don't have to use Laurent Viver's out-of-tree qemu fork anymore, "qemu-system-m68k -M q800" support FINALLY GOT MERGED! After only 12 years out of tree! And QEMU and the kernel _can_ agree on an -initrd handoff now, which is nice. The first problem I had is I ran "make defconfig" at the wrong time which switched off CONFIG_SH because it's still in pending so it was legitimately reporting that it couldn't run #!/bin/sh at the start of the init script. But the SECOND problem I had turns out to be what really looks like a compiler bug in gcc 9.2.0 for m68k.]
I'm only letting myself rage about the ongoing trumpocalypse on odd days, and trying to get actual work done on the even numbered days. This leads to quite a backlog of links.
It's sad how good the guy who wrote Leverage is at predicting terrible things.
Ok, that's a good counterpoint, and I'm fine with religion as culture the same way I'm fine with santa claus as culture. But only the selfish and evil seem to put a lot of money and power behind using it to control people.
Oh, so that's why he learned the brand name. Meanwhile, it turns out giving the GOP's recommended drug cocktail to Covid-19 patients causes permanent heart damage.
I'm not entirely sure why the Queen's speech included a section clearly designed to act as her eulogy, but there's no way it was an accident.
The navy really refuses to let sick people onto a hospital ship? What is the hospital ship FOR then?
A good thread about why there are milk shortages while farmers are dumping thousands of liters of milk: it's because home use and restaraunt use require different packaging. The home processing lines are saturated while the restaurant ones sit idle, and you can't quickly or cheaply convert one to the other. (And food banks aren't the answer because what's a food bank going to do if a 40k liter tanker of unpasteurized milk rolls up?
This is exactly the problem japan had.
The reason the Dorito is moving like a robot is because it's a dementia symptom. (Not remotely the only one either. He can't remember what he said for fifteen minutes anymore.)
Opec rose from the grave long enough to do a 10 million barrel/day cut, which is less than half the current oversupply. At a guess, they're unable to even find storage (let alone consumers) for oil as fast as they've been pumping it, so they're cutting back to the rate they can store. (Or if my theory from 2 days ago is right, the rate at which china can build new storage with its ghost city construction crews. I wonder if China is going to use this as an opportunity to switch the world oil trade from being done in dollars to being done in Yuan?)
There's no way all these oil storage tanks that haven't been used in forever don't leak. We're scrounging up oil storage capacity that hasn't been used for a _reason_. Everything else is just-in-time delivery with no reserve capacity but oil can store 15 times what it had at the start of the year without an issue? Seems unlikely. There's gonna be issues.
Twitter continues to be bad at being twitter. Its CEO Jack has taken advantage of Coronavirus to announce his move into philanthropy (just like every other billionaire who wants people to be grateful they exist while exerting as much control over as many things as possible in a tax-free manner: he's buying support). The thing is, he didn't give $1 billion to fight coronavirus, he set up a philanthropic fund he controls with an endowment, and then presumably it spends the interest just like all the other billionaire funds do, and one of the things this fund will give money to is fighting coronavirus. This is also why the inventor of dynamite createdthe Nobel Prize after learning that his obituary would be about all the people he'd killed getting rich as an arms manufacturer. A railroad robber baron put his name on Carnegie Hall for the same reason. Billionaires often become philanthropists, and it's always entirely self-serving. (Things can get so bad that a billioniaire potlach is the best available option, but private equity didn't eradicate smallpox. The billionaires' motif is to steal gobs of money and give back 1/10th of it to buy love and redemption. If you dodge taxes and then inadequately take the place of government programs you ended, solely so you can bask in adoration, you still suck.)
It's hard to make substantive change without revolution. Especially when the ruling party maintains its hold entirely by cheating, despite being actively malicious doddering clowns.
Seizing other people's goods in transit and selling them for profit is the literal definition of piracy. They're not even trying to hide it. But you can tell billionaires are driving, because they're giving back a tiny fraction of what they stole and demanding performative gratitude. That's what late stage capitalism is all about. And also why the guillotine was invented.
Joe Biden is a horrible candidate who has almost literaly adopted Hillary's 2016 campaign slogan, "Vote for me, you have no choice". Last year I said he was going to lose, and that the only question was whether it would be in the primary or the general. I really hope I was wrong, because I don't think Ruth Bader-Ginsburg can hold out another 4 years, but if anyone CAN lose this, it's him. Capitalism has outlived its usefulness and become a cult propped up by distraction du jour, elderly loons, and voter suppression. The old media watchdogs have failed, and even though all the same assholes the Boomers let them get away with it. The USA now has a parasite class who do nothing but make money off what they already own.Most people are fundamentally nice, they have to be socialized into being liberatarian assholes. (Every 3 year old wants desperately to help out in the kitchen. Which is why basic income would work just fine if you just kept assholes from cornering the market and stealing everyone's lunch money.)
There's a small number of people you have to guillotine to get a functioning society, and right now we're allowing them to be billionaires, despite them committing literal murder. But allowing them to continue (let alone actively supporting them) is a choice. Some people have so much racism they'd rather die than let anyone they don't like thrive.
Meanwhile, the GOP's incompetence is intentional. It's a form of "never let a crisis go to waste", they make things bad so they can blame others for the problems they've caused. These guys are uniquely bad, this infantilizing cult of suck is the cause of these problems. (Which brings us back to the need for guillotines.)
Here's a thread about how the racists have been cheating politically ever since the civil war. (Remember, the GOP and Democrats swapped polarity after 1964: capturing the racist vote LBJ alienated by signing the civil rights act was Barry Goldwater's "southern strategy" that got Richard Nixon elected.)
Oh well, at least the military isn't currently behind them.
The main difference between The Hithhiker's Guide to the Galaxy (1980 BBC miniseries version) and Good Omens is that in one the earth was destroyed, and in the other the earth was not destroyed. (And the bug eyed monster? Is green, yes.)
Ok, the current near-term todo list:make dropbear download+build source init script write/run external init script make key netcat -L boot with sh route toysh run init script implement "!" support {1..2..3} pass sh.tests make test_test (single build broken)
I've tidied up mkroot. It now handles its own cross compiling and logging (no seperate cross.sh script), can once again call external scripts (although doesn't provide download/setupfor/cleanup functionalitiy, I should have an external script for that) and its init script can run child scripts (/etc/rc/* in sort order). I've merged the "disable unwanted default config entries" (switch on CONFIG_EXPERT and then switch OFF the vga /dev/tty* crap and several other things that have no business being on by default, and ALSO switch off the CONFIG_DEBUG nonsense that CONFIG_EXPERT switches on by default when it's enabled).
The result is 228 lines long, and it's wired up so "make root" gives you a working chroot. (Once I get toysh going through the whole init script, anyway.) Or to buildall the supported targets, with a kernel that boots under qemu, using musl-cross-make cross compilers:
git clone https://github.com/torvalds/linux git clone https://github.com/richfelker/musl-cross-make git clone https://github.com/landley/toybox cd musl-cross-make ../toybox/scripts/mcm-buildall.sh cd ../toybox ln -s ../musl-cross-make/ccc ccc make CROSS=all ALL=1 LINUX=../linux
Then cd (root/sh4; ./qemu-*.sh) and such. (Ok, right now "KARGS=rdinit=/bin/sh ./qemu-*.sh" because of the part where toysh doesn't understand ${abc:-def} and such yet. Working on it...)
It occurs to me that rather than trying to do youtube videos, I should probably try to do _patreon_ videos. I still need to find some decent video editing software, but it seems like a lower bar somehow?
The "shift" command is terrible. If you just type "shift" from an interactive command line, it's basically ignored (there are no arguments), but when there ARE arguments shifting past the end is an error, and shifting by a negative number does NOT recover previous entries (why not?) Ah, I see: shift in interactive mode sets the exit code to 1, but does not produce an error message. Yet another conditionally silent error... oh, it's not conditional, duh, bash NEVER shows an error message. I was test ./sh vs sh again, which points to the Defective Annoying SHell. Oddly, dash aborts the current line when it hits this error, and bash doesn't:
$ sh -c 'shift; echo hello' sh: 1: shift: can't shift that many $ bash -c 'shift; echo hello' hello
Posix is completely useless these days, isn't it? Throw Jorg in with the Boomers and wait 'em out until some glorious day entropy makes the world a better place...
As with Friday's Streisand Effect, now "Dr. Drew" is using DMCA takedowns to hide a montage of his earlier statements (telling people coronavirus wasn't dangerous) which contradict what he's saying now (ancknowledging that it very much IS dangerous and not "just the flu" and he'd like not to be sued or lose his license). So a copyright lawyer with a youtube channel did a legal analysis of the taken-down video, which involves showing the video. (It's a beautiful thing. That link skips the first 6 minutes of throat clearing and starts near the actual showing-the-video part.)
The dementia patient in chief assigned Space Farce to moon mining. (Did we have a shortage of domestic mines?) He's still committing piracy and losing the military (there's audio if you have a strong stomach). Meanwhile, last week's insanely high jobless claims doubled this week. And the pandemic playbook Obama left the GOP, which they didn't read because Obama cooties, is available online. (Once they threw it away, it was declassified.)
The mortgage industry is complaining that the 2008 bailout used up all their political capital so they can't currently finagle another bailout. They're not the only vestige of late stage capitalism underperforming.
If Boris Johnson dies of coronavirus, will they announce he's died merely as a precaution? He bragged about shaking hands with coronavirus patients, then assured people his diagnosis was no big deal, then he entered the hospital for routine tests, and now they've moved him to intensive care merely as a precaution. (Not that we can exactly throw stones from our glass house.)
A side effect of the massive lack of testing is undercounting coronavirus deaths, which might explain why New York City has proposed turning one of its parks into a cemetary for coronavirus victims.
The only even SLIGHT upside of the current GOP is that it identifies and burns out the worst people. I'm immensely disappointed in Pelosi and Biden and would ONLY vote for either mid-pandemic, but there we have it. Still, I am comforted by the advanced age and thus self-limiting nature of both of them.
The GOP is only relevant because of voter suppression and they can be as hypocritical as they like about it on "might makes right" grounds. The GOP is basically a death cult at this point. But late stage capitalism is going to continue to crash harder and more frequently until it's replaced. Reagan blew holes in FDR's new deal banking regulation that had prevented a repeat of the Great Depression for 50 years, and since then we've had the savings and loan crisis of 1991, the dot-com bust of 2001, the mortgage crisis of 2008 (and in between those last two the collapse of enron/worldcom/tyco and like 30 others), and ever since then the economy has survived on constant "quantitative easing" which is more or less basic income for billionaire portfolios. If we just guillotine the 600 or so billionaires in the USA and distribute that money to individuals instead, we could all have basic income and medicare for all, and it turns out it doesn't even cause inflation. Of course there are other arguments for guillotines.
The oil industry is starting to admit the changes might be permanent. Let's look at some numbers.
This article on oil running out of storage says the global storage capacity is almost a billion barrels, and that the price decline after the last economic crisis peaked in 2015 storing a backlog of 500 million barrels, which then took 2 years to work through (with opec able to collude production cutbacks and the economy growing at 3.5 percent). So if we fill the billion barrels of storage all the way we're looking at something like 4 years to run through the oil backlog before prices could go up again, and that's assuming the economy and Opec both recover enough to consume at the old rate and do production cuts again. (Then again production cuts might not require opec, since some oil wells can't shut down gracefully and basically have to be re-drilled to resume production. That doesn't apply to any of the US fracking stuff though, so Russia and Saudi arabia _can't_ put those out of business except by keeping oil prices below where they're profitable _forever_. Otherwise whoever's bought the land out of bankruptcy can just start it up again at any time.)
Here's a second article which says there were actually 1.4 billion barrels of free storage at the start of the year (1b on land and 400m in oil tankers at sea) which is over 5 years to run through if we fill it all up. That article also says the storage was nearly empty to start (only 100 million barrels at the start of coronavirus in January, remember Trump was selling the US strategic petroleum reserve to pocket the money) but we've already filled most of it up and will hit 1.3 billion barrels by the end of THIS month. Which would mean storage runs out early next month. I've heard demand is down by 20 million barrels/day and Saudi output increased by 4 million barrels/day, which would be 100 million surplus barrels about every 4 days, which is a billion in 40 days. So yeah, the second article's numbers seem plausible. Oil producers are even filling up the rail cars already.
Meanwhile countries that normally import oil are exporting it due to reduced domestic demand, sending it to asia as a "dumping ground" (both because china, japan, and india still have storage left, and because sending it to the other side of the planet keeps it in the oil tankers longer at business-as-usual "paying to transport oil" instead of "paying to park oil" rental rates). And even countries that import oil may export natural gas which is priced based on oil.
Interestingly, China, home of entire ghost cities because construction is a form of economic stimulus (I.E. instead of inventing financial derivatives, their quantitative easing goes to construction companies and then their middle class buys the empty real estate as its "actually worthless but so lucrative on paper" investments), decided to expand its strategic petroleum reserve as a post-coronavirus stimulus construction project. So when exactly the world runs out seems kinda squishy. Possibly that's what the "storage doesn't run out until june" people are banking on, is China able to build tanks faster than the rest of the world combined can pump oil? But that's not going to raise the price out of single digits, and it's makes the backlog take longer to work through before prices could ever go up again.
And the INTERESTING part is what they plan to do with that oil. They're the people pushing solar and batteries out into the world. If they buy oil at single digit prices for a year or two, and then SELL IT AGAIN to keep the price down if it starts to go back up rather than consuming it domestically... If prices were already going to stay low for 5 years, and they add a few more years with political shenanigans (or just never buy oil more expensive than that from the rest of the world ever again so global demand is permanently down), they can probably bankrupt all the oil producers worldwide. And sell us solar panels and batteries. (No idea what they _plan_ to do, but the options are interesting.)
The tests for the toybox "test" command haven't worked since last year, and the reason is "make test" self-identifies as "[" instead of "test", meaning it demands a trailing ] in its argument list.
This broke when I added TOYBOX_MAYFORK late last year, because I added an OLDTOY([) alias for test when I did that. (For some insane historical reason which '[' finds /usr/bin/[ and no I dunno what would break if it's not there, but busybox provides it.)
The problem is, "test" and "[" are both enabled by the same USE_TEST() guard macro, so both are enabled in the "make test" single build because they can't be individually selected, and since it's sorting alphabetically (so toy_find() can binary search) the first one in the list is "[", and the single commands setup just sets this.which to the first entry in the list. So standalone "test" thinks it's "[", and behaves accordingly.
What I'd LIKE to do to fix it is disable all the OLDTOY() macros during single builds (except for sh which is magic because it's where the NOFORK commands run). And this should be fine because OLDTOY() macros should never be enabled when the corresponding NEWTOY() isn't enabled, so in the case of single builds they shouldn't matter.
Except md5sum.c added a bunch of OLDTOY() variants of SHA224, sha256, sha384, and sha512 (all aliases of sha1sum and thus sharing sha1sum_main), each with their own guard macro, without even a "depends on" the base command in their config entries, and that violates this design assumption. (Locally it works, but globally what is and isn't set by various plumbing assumes nobody does that. Hmmm, while I'm looking at md5sum, I should calculate the table when we have floating support enabled, and I never did implement sha256 and friends longhand, did I?)
Anyway, if I teach single builds to disable OLDTOY() aliases I think "make sha256sum" becomes a build break because it doesn't "depends on SHA1SUM". (This file is already kinda inconsistent because sha1sum_main() is just a wrapper for md5sum_main() but sha256sum and friends are oldtoys for the sha1sum_main() wrapper. So they're _sharing_ a _wrapper_.)
Anyway, there's an sha1sum.test but no sha256sum.test so I'm probably just gonna go ahead and break the singlebuild here and throw it on the todo heap to fix it later. It should still build in the multiplexer, "make change" is gonna be unhappy, but:
$ make distclean defconfig $ make change ... $ ls change/*.bad change/halt.bad change/ping6.bad change/prlimit.bad change/nc.bad change/poweroff.bad
Nothing new there. (It's on the todo list!)
And oddly enough, all of those are OLDTOY() already. (Although it _did_ happily build chown and egrep and fgrep and so on... except they do work, because they "depends on" the NEWTOY, but they probably have the same problem as "test" of anything that checks the name getting the first name...
Darn it, this is fiddly. I need single builds to have just the ONE
toy_list entry for the correct command, at the start of the array. Do I
need to add a define to the cc command line to make that happen? Hmmm...
If this
link wasn't real the editor would definitely go "that's a bit
a bit on the nose, isn't it?" I mean there's explicit failure,
and then there's that. Meanwhile Faceboot keeps finding new ways to be horrifying.
It's kinda lost in the noise at the moment, but I am SO glad I've never had an account on that platform. I'm not sure the united states will have a healthcare system after this.
We're about to burn out all the doctors and nurses. The ones who survive will
quit.
Here's a good thread about why.
(Of course for-profit healthcare
has been deeply problematic all along), but it may
be coming to a head. The whole system is
collapsing
financially. I've
never
understood
the
appeal
of
christianity.
The reason they fight so hard against
acknowledging evolution is
because if they're wrong about where we came from why would they be
right about where we're going to? Pascal's wager says you could waste the
only life you have bowing before pedophile priests telling you to cut off
bits of your childrens' genitals to please God and that women must be
silent and subservient and here's a hairshirt, or if you're reincarnated
you could wind up back here wasting life after life, and of course
if you DO have to pick
the right God why _this_ one instead of Osiris/Zeus/Odin/Amaterasu?
They offer a "universal" truth tracing back to a single "what some guy said in this
particular desert long ago, which can never be independently verified" that
tells of an omnipotent omniscient
omnibenevolent entity that's
hiding forever even in the face of nazi germany, and never even speaks
up when two armies fight over different interpretations of the same religion.
Why don't any of the elaborate dietary laws include the phrase "boil your
drinking water"? They recommend using the organization behind the spanish inquisition and
conquistadores as a
source of
morality when their big master list of don'ts doesn't get to not
murdering people until
halfway
through and puts it equal with saying "Oh God" (name in vain)
or working through the weekend (keep sabbath holy)? Their morality
is "eternal" and "infallible" but does a 180 ("an eye for an eye" to
"turn the other cheek") because God changed his mind. (Yes he destroyed
your civilization in a flood, including every child below
the age of consent, but he won't do it again have a rainbow.
What exactly did Job's wife and daughters do? They didn't get fixed,
they got killed to teach Job a lesson and were _replaced_ by
a new family so that's ok then? Mysterious ways! Not the droids you're
looking for.) But especially now that christianity in the USA has merged seamlessly with the
GOP.
The thing to realize about VP Mike Pence is he hasn't made any plans for
this part of his life because he
honestly thought he would be raptured by now.
He does racist misogyny of opportunity, but hasn't been building towards
anything because he didn't expect to live this long.
(The Rapture! Any day now!) And
he's not the only one in this administration to not only expect
the literal end of the world but be actively working to bring it about.) Then again I suppose it's hard to distinguish one
grift from another. Accumulate a
large enough flock to fleece and a different con man swoops
in and grabs your carefully collated profitable rubes, which is how a real estate
scam artist and money launderer running a fake university and selling
mail-order steaks took over the GOP. The GOP is currently
engaged
in ongoing
outright piracy.
The Trump administration keeps
literally
stealing masks from the states and selling them for profit.
How is this not treason?
States are having to sneak around
to avoid having their supplies siezed.
(Intentional
failure to deliver enough supplies,
again explicitly
and admittedly for profit
sounds like treason to.
But that's what
late
stage capitalism has degraded to.
Meanwhile, the GOP/capitalists are trying to secure power any way they can. They seem to
expect torches
and pitchforks. (I've mentioned before this
fascinating article
about how the 1% can never be satisfied with their wealth because they
believe they're going to drive society to collapse at which point they'll
have to outbid each other for the titanic's lifeboats. That's the metaphor
driving them to accumulate ever-more wealth at whatever the cost in human
lives.) It's also increasingly obvious that most of the United States'
culture
is based on racism, along with our most critical infrastructure.
Confederate loons are actively destroying the union, the main
thing slowing them down is their own profound incompetence. "A republican in authority
said it, therefore it is both wrong and stupid" remains true,
but let's count the ways
on this one:
"Russia and Saudi Arabia are colluding" - no, they STOPPED colluding. That's
the point. OPEC collapsed, so they're no longer artificially limiting
the supply of oil to raise prices.
He then said that he wasn't in favor of US supply restrictions, which
is the same problem from our end: more oil than the market can consume,
filling up all available storage, and driving the price of NEW oil to
literally zero because there's nowhere to put it. The Saudis
are engaging in some SERIOUS motivated reasoning (or maybe just
derp). They insist the oversupply has two reasons, so their
increased supply is not of interest while demand is lower. (Not even a
"how could we have known", but instead "whatabout THEM" every time their
complicity is pointed out). They also insist that the expensive-to-produce
US oil must be forced out of the market so the world can rewind to the days
when Saudi sold more oil than anybody else and nobody else could challenge
them. (Imagine a 93 year old man who insists he'll be back in fighting shape
soon, you'll see: it USED to be true therefore it's the natural order of
things.)
Meanwhile, oil demand is declining further each month. Late stage capitalism appears to be failing.
The two modern definitions of "efficiency" seem to be
1) make it brittle with no reserve capacity or ability to survive shocks,
2) shift all the problems onto people of lower status.
At this point the system's
not
even serving most white people, just a residual Boomer 1%.
Alas "the market can remain irrational longer than you can remain solvent"
and Keyenes observation "In the long run we are all dead" remain true.
The LD50 of the Boomers pencils out to 2034, and a disease with a 5%
mortality rate among septuagenarians doesn't change that much. "Racist
grandpa convinced by spam email to vote against his own interest" is
not a new story, it's just unpleasant when the senile geezers are collectively
driving. I had to build dropbear for a work image, and I have a
build
script in the old mkroot project, so I started fluffing that up
a bit... but it still builds busybox and I don't really want busybox
in the image, so instead I started extending "make root" towards what the
standalone one could do.
And now I've hit the actual design difference, which is that the external
one downloads, extracts, and cleans up after package source tarballs,
and the one merged into toybox doesn't. Hmmm... Really, bash? At the start of
mkroot.sh
I have an 'env -i a="$a" b="$b" c="$c"' construct that I'd prefer to
generated with {a,b,c} brace expansion (it's the list of variables to pass
through tne environment clearing), so I tried the obvious: Bash does not appear to have taken this well. I set X to 'a="a"' and then
tried to regex substitute in the expansion for both a's, with the brace
expansion giving me a list of results. The man page says brace
expansion happens first, which appears not _entirely_ to be the case here?
It looks like ${ is treated as a quote and matches the _first_ } so brace
epansion is skipped entirely and "{x,y,z" is what ${// /} substitutes in
both places, then there's a trailing unmatched } left over at the end. Streisand effect, activate! Can we admit
the Resident has frontotemporal dementia yet? (Specifically
Progressive Supranuclear Palsy?)
The ongoing trumpocalypse
isn't JUST because he's a sociopath, he's also medically incompetent.
Not just an ignorant
racist doddering old
nepotistic
capitalist
poster child for Dunning-Kruger, but ALSO incapacitated
by a literally terminal brain disease on top of that. That's why he can't
pick up a glass of water
with one hand, and the way he
leans forward
is due to the
leg
brace he wears. (PSP hits a brain area halfway between altzheimer's
and parkinson's disease, and expands into both as it kills you.)
It's
not
like
his
condition
is a
secret
or
anything,
everybody
knows
he's
increasingly
incapacitated.
There's
no
shortage
of
this
stuff. It takes an awful lot
for the president of the united states
to lose the loyalty of the US military, but
he's
getting
there.
The
outright
theft
(including
piracy)
and
obvious
lies aren't
necessarily
helping,
but the senility means it's
not because of any kind of chess mastery going on,
it's an emu
war against an opponent too random and
inconsistent
to predict, and too dumb and insensitive to even notice any non-fatal damage.
There is no goal or end game here,
Trump's Razor
has been proven time and again by history: the dumbest possible explanation
for his actions is correct, and we're
all
suffering.
(Seriously, here's a playlist over 100 videos long titled
"Trump's
Frontotemporal Dementia with Progressive Supranuclear Palsy (PSP)"
interspersing videos about the condition with news
footage of the Resident displaying those symptoms.) Meanwhile,
Betteridge's Law applies to a lot of ongoing oil coverage.
(There's even a wikipedia[citation needed] article now.)
The Dementia Patient in chief said he thinks
Russia and Saudi Arabia will stop playing chicken (because he wants them
to, just like he wanted coronavirus to magically go away and thus said it
would), and oil rallied! Because analysists are facing the end of their
livelihoods if the industry they cover becomes 1/10th as lucrative (and
thus 1/10 the investment trading volume), and they're desperate for any good
news. But no, he didn't know anything, he stated a desire as an expectation
because he's a rich white male Boomer and that's how it works, isn't it?
Boomer want, therefore Boomer get, QED.
(As for calling the Resident "rich", once you're in the club the system
will not let you fail. That's why Elon Musk could
borrow half a billion dollars to keep Tesla afloat. He WAS rich,
therefore he will remain rich with endless bailouts until the good ole
boy network that has embraced him as one of its own collapses.) The global economy has an abusive relationship with the US dollar.
The worse things get, the more they cling to it. It's good to be the king.
(Mark Blyth pointed out the USA historically has strong courts, which China
doesn't. If you want to sue people over a dollar denominated debt or enforce
a contract, property owners get preferred treatment here.
In china, you will not get a fair hearing, it's bribery at every level and
then a party apparatchik takes your stuff. The Euro has strong courts but
isn't financially integrated and will have endless
financial crises
until it works out how to do that, rendering the currency an unsafe store
of value. In the USA the
blue states fund the red states
which is what's kept the union together: the north pays all the deadbeat
confederate states' bills, every year, forever.) Today, COVID-19 became the leading cause of death in the USA. Perfect meme.
(Addressing a persistent problem.
I
blame
capitalism,
and
our
increasingly
dysfunctional
completely
fictitious
and
profoundly
abusive
society.
The Boomers!) A good quote from CNN's article on oil prices turning
negative: "The price is trying to go to a level to force companies to keep
the oil in the ground. If it has to go negative to incentivize that behavior,
then it will." I wonder what Greta Thunberg has to say about it? China's
already recovering which means moore's law style march of solar and battery tech
becoming ever cheaper has resumed. We're all hoping the oil industry is
permanently damaged by this, "the spice must flow" because when it
bad things happen to the physical and financial plumbing.
(Yes Dune is an alt-history
set in space about Europe moving into the middle east to take the
oil a century ago. Arrakis is Iraq, spice is oil, even characters like
the Pashidah Emperor and
Muad'dib
didn't have the serial numbers entirely filed off.) If the oil industry suffers hysteresis,
acquires debt, low prices persist selling through the backlog,
has a temporary inability to afford to lobby governments turning into
permanent regulatory changes, has trouble financing
further investment in wells, pipes, tanks, or refineries
(it's stranded
assets all the way down), meanwhile the obvious climate effects of reduced
fossil fuel usage provide hard numbers from a big natural experiment...
(Meanwhile natural gas prices were already negative for two weeks last
year because more gas was coming out than they could pipe away, and that
was _before_ coronavirus... This definitely confirms that blocking
pipeline construction is an extremely effective tactic in reducing fossil
fuel consumption. Here's hoping the the whole industry can get into
an accelerating negative rut and spiral downwards.) And twelve years later,
they finally
close the bug.
(Linux on the desktop,
smell the usability.) The toilet paper shortage still isn't because of hoarding. (Just like the
grocery stores being out of a lot of food is because people are staying home
and cooking rather than eating out; a just-in-time supply chain can't
handle a persistent 10% increase when the system hasn't got spare capacity,
the shelves empty and can't restock fast enough.)April 5, 2020
April 4, 2020
$ X=a=\"\$a\"; echo ${X//a/{x,y,z}}
{x,y,z="${x,y,z"}
April 3, 2020
April 2, 2020
April 1, 2020
Sigh.
Things
continue to go about like you'd expect with these clowns in charge
(and yes clowns includes joe biden and pelosi). Meanwhile the EU can't kick out
Hungary despite it collapsing into dictatorship, which has been coming for
a full
decade, we're about 6 years behind on that curve.
The oil industry continues to implode.
Toysh: finally got the variable plumbing redesigned through to the end, marched through the missing semicolons and typoed variable names and unused variable warnings to the point it compiles again, and the result immediately segfaults. So, par for the course. (It was inconsistent lifetime rules for the arguments of export() and unexport(), but I changed a lot of variable measuring from "where's the =" to "what are acceptable variable characters, oh you did {abc@def}<<file that's an error lemme catch that... and it's caused regressions where I'm not using the new plumbing right yet.)
Bill Gates asks if we've tried turning the country off and back on again. Even Faceboot and Twitter turn out to have a limit break
. (Yes the world is still on fire, and yes this whole mess is still entirely the GOP cult's fault, and yes they're still making it worse, and yes the Dementia patient in chief is still an absolute idiot. It's still stressful, but there are other things that need doing too.)Toysh: the reason TT.vars needs a malloced -> str entry for the magic variables is that you can unexport a magic. I.E. "export SECONDS; export -n SECONDS" means SECONDS is still magic (because it was never _unset_), but the ->str entry is malloced (because when we exported we printed an instance of it, and when we imported we removed it from the globals array but kept it in the ->str field). The problem is when we moved the constant ->str to globals we made a malloc copy and discarded the reference to the constant version, and we can't get the constant version BACK when we unexport it. And if we don't free() that if we later unset it, the allocation leaks.
The other problem with unexport is the environment variable may have come from envp[] at exec time, and never been malloced. So sometimes we need to malloc when we unexport. (Or a VAR_NOFREE flag? Hmmm...)
[Eight hours later] How deep into the weeds am I? xpop_env() can malloc() a copy of a variable if it was inherited from the environment (so the value it removed from the environment is always returned as a freeable heap allocation for consistent object lifetime) but when incrementing $SHLVL for a child process we've already gone to a temporary environ[] array which has pointers to the original entries, so I want to remove the original entry from the new list but NOT free it, and let swapping back the environ[] array put it back. Except if it mallocs a copy I need to know and free THAT (or else avoid the copy in the first place.)
Don't mind me, this is normal around here. MOST of the way through redoing the variable allocation design, which is a maze of twisty object lifetime rules (all subtle) to do at all efficiently, but I knew that going in. Currently auditing all xsetenv() callers. I am SO gonna have to run this under a memory leak checker. How do you use valgrind again?
The price of oil is going negative (just in patches at the moment, but 20 million barrels per day is going into storage which is filling up and when there's nowhere to PUT the oil nobody can BUY the oil, meaning about three more months of this would force ALL the oil into "pay to dispose of it" territory), so of course republicans are passing laws criminalizing protests against oil (among other things).
To give an idea how well-supplied the linux kernel is with developers examining every nook and cranny of the code, the FIXME comment in kernel/time/posix-timers.c ending "which we don't want to do late in the release cycle, so for now..." is from June 21, 2007, and still there in today's v5.6 release. (Which, alas, does not have the sh fix.)
I hit it because I was trying to figure out which time fetching function bash was using for seconds. According to ltrace it's gettimeofday() which is obsolete (microseconds, not nanoseconds), and in THEORY that translates to one of the clock_gettime() variants and I wanted to see which one. But I figured out that bash ISN'T saving fractions of a second for SECONDS, because bash -c 'SECONDS=41; sleep .25; echo $SECONDS; sleep .25; echo $SECONDS; sleep .25; echo $SECONDS' has a variable transition boundary.
Still a pain to come up with a reliable $SECONDS test producing predictable output. I can ALMOST trust 'SECONDS=41; sleep 1; echo $SECONDS' to output 42... except the tiny window where it can output 43. (I suppose I can stick a while and test around it?)
Nope, SECONDS is a trash fire in bash and I can't come up with sane tests for it right now. New variable infrastructure, cut a release, then circle back around to this nightmare.
Not a surprise. But then what is? There's nothing left in the GOP to salvage. Literally nothing. (The obvious solution is to guillotine the billioniares, which is the classic trolley problem. People are dying, today. If billionaires don't treat people like humans, why should anyone else treat billionaires any different?
Also, ballpark numbers the 2.5% mortality rate when you have enough ventilators becomes 5% when you don't, which would be somewhere north of 15 million people in the USA. (The 20 million cell phone cancellations aren't the only evidence china is hugely downplaying its coronavirus deaths.) If that doesn't cause wholesale structural change, what WOULD? (I hope the american medical association is replaced after all this. I explained my dislike for them last month. Elizabeth Warren's come out for at least half-assed basic income, but it's hard to be satisfied with crumbs.)
In cheerier news, this guy is good. (He talked about autonomous driving 18 months ago. Oil is still tanking.)
I cc'd Linus Torvalds in an email last night because Rich's superh maintainership does not appear to include actually submitting patches upstream. Poking him to ack a patch means he posts a message to the linux-sh mailing list saying "ack". He does NOT submit a pull request to Linus, apparently others do that. (Admittedly when I was Linux Documentation maintainer I didn't have a tree Linus pulled from either, and submitted it through... Randy Dunlap I think? But that was because due to the procedures at the time I needed to get a gpg key signed in-person at a Linux conference. This was a couple years after the kernel.org breakin when they were furiously locking barn doors.)
Alas, said cc: does not appear to have resulted in a checkin to Linus's tree. Going by the checkins from yesterday I think I missed him by about 15 minutes, and he's not gonna do any more today. Oh well, I can use a toolchain with an older binutils version to build the binaries this release.
Back to toysh. The new TT.vars list has index entries for all accessible variables, including globals. Globals are still stored in environ and the way you free those is via xsetenv(), so the "inherited from exec vs malloced" tracking is still done by the existing lib/env.c code.
But the setvar() plumbing I did months ago takes a flags argument, one of which is whether it should take the memory you feed it or strdup() its own copy. The other flags are all status flags: is it readonly, magic, global, etc. I'm not sure setvar() is the right API to change those, because you should NEVER turn a non-magic into a magic (after shell init), readonly variables veto being updated, and globals should already be in TT.vars except during init and export? Having the flags API brings up "ok, so when you DO change them what happens" and it's a minefield of "don't do that" and "this should never happen".
That said, setvar() like findvar() returns the struct sh_vars pointer for the new entry, and if that's never null you can just setvar(blah)->flags = newflags (or |= flag). The one time I might want it to be null is if you update a readonly, but then I'd need to check to avoid segfaults and I dowanna. (Mostly because the checks would be of the "should never happen" type, ala calls during init creating the initial round of magic and readonly variables.)
The GOP is using the pandemic as cover to outright steal native people's land (due to a personal grudge). (Can we impeach him again? Yes I know the confederate christians remain racist. This is another reason the 90% top tax rate is important: the rich are assholes because they don't need to be nice.)
Meanwhile, I am so tired of Bernie's profound lack of effectiveness. He's been a professional politician for 40 years and he still can't make a decent case of his own policies.
If your house catches fire, you call the fire department. You don't worry about the bill. If someone breaks into your house you call the police. You don't worry about the bill. The point of medicare for all is even when you have to call an ambulance you don't have to worry about the bill.
This is why we pay taxes. Every kid gets 12 years of full time school their parents don't pay any extra for (and even if you don't have kids you WERE one). You can drive to work and the grocery store on roads that are already paid for, and you don't put coins into every stoplight and streetlight you pass to keep the electricity on. A functioning country has shared infrastructure, including people to run it. Doctors should not be different than teachers, firefighters, and police. It would be INSANE to buy fire insurance or police insurance that only let you use approved providers in-network which you have to identify via phone tree. Giant corporations profiting off the work of teachers and police and firefighters (while understaffing them to the point they have to work 90 hours a week with individual shifts lasting 24 consecutive hours) would be DEEPLY WRONG.
How is this HARD? If you grew up in an abusive environment, you may not realize he's not supposed to get drunk and do that to you, but once you figure it out a light bulb should go off. This is not normal. It needs to stop. The people defending it are monsters.
Finally heard back from ELC that the one and only talk proposal I submitted (Building and Booting Linux in a single 250 line shell script) has been turned down. (Well, it's been "waitlisted" and their form email is very apologetic about the volume of applications and so on.) This is why I submit 4 proposals when I'm serious; I halfway expected to be in Tokyo during this. Now I expect it not to happen. (Texas Linuxfest sent me their event cancellation email earlier today, it's been bumped to 2021. The Linux Foundation holds these events for profit, and isn't willing to let go of the money yet.)
Ok, redoing the variable logic to track state (all the "declare" flags). The functions that access the local variable state directly are: setvar getvarbylen zapvar run_subshell subshell_setup unset_main export_main. So that's a get, set, and delete function, an export and import function, and then the unset and export builtin commands.
But _indirectly_, findvar does (TT.locals is passed as an argument, so it cares about the format of the array it's traversing). That function traverses both the local and global lists using the same code, but the local variable format is changing (to include flags) so now they need different code. It's only called 4 times, 2 for locals and 2 for globals, and is just a wrapper around a for loop, so not a big loss to inline it at the call sites.
Hmmm, if I'm flagging SOME globals in the new TT.vars list (replacing TT.locals: change the format, rename the variable), possibly I should have all of them there so I don't have to search both lists? If sets and unsets always through through getvar/setvar/zapvar after shell init, then the string can just point to the environ entry.
Heh, "SECONDS=12345 bash -c 'echo $SECONDS; sleep 1; echo $SECONDS'" uses the inherited SECONDS value to init, but do the same for $RANDOM and it doesn't. Why isn't bash consistent? LINENO and GROUPS also ignore it, the only one that seems to care is seconds. (But you can assign RANDOM at runtime and it matters, I.E. re-seeds the sequence. Is this a security thing or just an oversight?)
Ya think? Go HEB! Thoughts and prayers. Of course. This should end well.
In case you were worried the stimulus might cause inflation.
How Covid-19 infects the lungs, and why some people are more vulnerable. (Which is different from why some countries are more vulnerable.)
I'm not sure which part of this to be most concerned about. (Leaning towards THE TRACKING. People have their phones on a beach.)
A reminder that society is something people voluntarily do, and capitalism is something we collectively choose to produce each day. If one day we all decide not to, then it simply doesn't happen. (That observation was in David Graeber's Bullshit Jobs book, but it isn't really a remotely new one.)
So the $2.5 trillion bill only spends $250 billion on checks to individuals, 1/10 the total. 90% of it is NOT checks to individuals. They could have sent everybody checks each month for a YEAR with what they're wasting here, but no. They needed 1400 pages of reporting on greenhouse gas emissions (but not fixing them), $32 billion to passenger airlines (the same amount they spent on stock buybacks over the past 5 years), and they gave Steve Mnuchin a slush fund to "loan" to his pet corporations (at zero percent interest forever, I'm guessing) that's TWICE as went directly in checks to indivduals. And, as everyone keeps pointing out, $25 million for the JFK center for the performing arts, because the democrats couldn't help themselves.
What is this nonsense about "unemployment benefits"? I've never ONCE qualified for unemployment in my ENTIRE CAREER. Sure it would be nice but half the medical gofundmes I've asked Fade to send money to (I know too much about how the sausage is made to ever be comfortable entering a credit card number into a website) involve people losing their jobs with never a mention of unemployment. Do these septuagenarian assholes think people still get pensions too? This does nothing for anyone in the gig economy (your lyft driver has no rides, part time hourly worker gets no hours this week at three different jobs), it's a Boomer-only-benefit.
So Fuzzy gets nothing because she can't file her taxes this year or last year because the social security office has her birthday wrong, so the IRS won't accept her return. She didn't see fixing it as a priority because she made less than the federal poverty line last year, so owes nothing. She started _trying_ to fix near the start of the month when the social security office assured us it would be open again on friday. The social security office is now permanently closed and can't handle a birthday change over the phone, and she can't log in to the website unless she can guess how they got the birthday wrong (including what year).
Meanwhile, the checks are the full amount up to $75k and nothing above $99k, so if they're going by last year's taxes when I was in a Milwaukee efficiency apartment working at Johnson Controls (boring but lucrative, I bailed out SO many friends who were in tight spots, at least three of which involved sending them 4 figure checks because their car was totaled) then Fade and I get nothing, and by this year's taxes when I'm back at SEI working from home and earning what they can afford to pay me (it just about pays the bills each month), Fade and I would get the full amount. (Again, you can just give EVERYBODY the checks and then TAX THE RICH. I happily pay 5x as much taxes in years I make more money than in years I make less money. That's how it works.)
So a very tiny amount of this stimulus package MIGHT go to SOME people in need, but leaves people I know out, and the rest is corporate welfare and Boomer Benefits, leaving everyone I actually know still screwed. Great. Just great. UBI is UNIVERSAL. That's THE POINT. STOP WITH THE MEANS TESTING. BUTTGEIG LOST.
The republicans cannot disappoint me. The entire festering plutocratic party is pure unmitigated evil and needs to go the way of the Whigs and Federalists before it. They are completely unsalvageable, there is nothing whatsoever to save. But the democrats are VERY MUCH disappointing me, and they need a hard retirement cutoff at 65 where you get a gold watch and can't be a legislator anymore. You can work as a staffer, be a lobbyist, fine. But not house, senate, judge, or president. (If you qualify to be president at 35, you get a thirty year window. That should be enough. Our youngest presidents include JFK, Bill Clinton, Teddy Roosevelt, and Barack Obama. Our oldest two were Ronald Reagan and the current clown. FDR was 51 and Lincoln 52 when they took office. George Washington left office 10 days after his 65th birthday.)
Meanwhile, I'm told Canada is sending people $2000 a month until this is over and Scotland might make it permanent, Ireland nationalized its healthcare system, and everyone else is starting to notice some obvious truths. (And AirBNB needs to be stopped.)
It turns out OPEC basically fell apart last year. Solar continues to kill fossil fuels in solid-liquid-gas order.
Interesting point that you don't need "hoarding" when a 10% increase (from people eating out less) will crash just-in-time supply chains. (Which is also what happened to toilet paper. If the machines were going 24/7 before this, they can't step up production.)
Ok, the problem with the sh4 build turned out to be triggered by the binutils update back in January, just like the problem with m68k and s390x was triggered by the kernel header change back in December. Rich never noticed (or regression tested) either. Wheee.
There's a two part kernel patch that might make it into 5.6, which would build with the new binutils. But for the moment I can specify the non-broken binutils version in the mcm Makefile just like I'm doing for the kernel headers, and build a non-broken toolchain to make root with.
I've poked Rich (who is sick, hopefully not coronavirus) and here's hoping he can get those two patches upstream before sunday's 5.6 kernel release. I'm holding the toybox release until Monday to see how that plays out. If not, I build the make root binaries with 5.5 and the tweaked toolchain. (I'm not posting the toolchain binaries becaue GPLv3, but thalheim might. I should poke him once I know.)
Meanwhile, if I'm delaying the release until monday anyway maybe I can take one more stab at getting toysh to run the init script? (Adding "export" triggered a redo of the variable infrastructure, which is ugly however I look at it, because array_add() elegant-ish-ly maintains an array of char *. I can have an array of structs that array_add() doesn't understand, I can have two arrays (one of flags, one of variables) that have to stay in sync, I can have in-band signalling in the char string (which would mean I can't use the existing global key=value strings inherited from the environment)... It's not _hard_, I just need to pick an approach from a menu of unpalatable options.
It is difficult to applaud the democrats for using this crisis to forgive student debt while the republicans are using it to outlaw abortion. JUST SEND PEOPLE THE UBI CHECKS ALREADY YOU BOOMER ASSHOLES! Stop it with all this unrelated wrangling to promote your existing agendas! (Pass seperate bills! You agreed on checks to individuals, you should have passed a clean bill with JUST checks to individuals the day after the White House agreed with Romney on that. Broken clock, twice a day, let's go. It could have been one page, not one thousand, four hundred and four pages, and it could ALL have gone into checks to individuals rather than only 20% of that $2.5 trillion.)
Seriously, HEB is doing "day before thanksgiving" grocery sales every day and giving its employees hazard pay. Dollar General is hiring 50k people to meet demand. If "the economy" is collapsing it's because most of "the economy" is COMPLETELY FICTITIOUS. If the "businesses" going out of business are NOT keeping people alive, why are they a priority now? Yes, I'm sad Lucifer Season 5 has halted production, but we can wait. If the owners and employees of small businesses like The Omelettry and Toy Joy down the street get the same checks as everyone else, then you HAVE helped those small businesses. Maybe not enough, but it's a START.
People have also been pointing out that cruise ships which register in Bahrain to avoid US taxes should ask them for the bailout. And DON'T bail out airlines that spent $36 billion on stock buybacks over the past 5 years rather than build ANY cash reserves. Only the 1% will be able to use them after October anyway. (The TSA needs to be abolished just like ICE does.) We can afford to lose a couple airlines (which is nothing new, remember American, Continental, TWA...?), and whoever buys the planes and hires the mechanics is unlikely to do a WORSE job than united or boeing (pick your article). We have plenty of spare airplanes of the old fossil fuel kind, and what we NEED is to switch at least the short haul ones to electricity (which might be the one place hydrogen fuel cells don't suck, who knows).
Part of the need for airplanes goes away if we get self-driving cars widely deployed (which would happen so much faster if Uber and Tesla would stop trying to "help" here and just let Waymo get on with it in a regulatory environment NOT poisoned by dangerous morons needing to be reigned in from killing people. At this point it looks like we'll just let other countries do it and then import the results as a passive consumer). Eventually self-driving cars can do trips to other cities ala U-haul. If I have to leave for the airport hours before my flight, a car that picks me up at my door gets me to my destination in Houston faster than an airplane can. At 70 mph on interstates you've gone 200 miles (Austin to Dallas) before the plane takes off, and the breakeven point is probably more like 4 hours (Los Vegas to Los Angeles; this is why "tour buses" are a thing for musicians and such).
That's an awful lot of short haul trips, and the self-driving car is one uninterrupted block of reading/watching/working/nap time where you can recline your seat more than 5 degrees. Heck, once the batteries and safety standards are up to it, people comfortable sleeping belted into a reclined seat could leave Austin at 10pm and arrive in Memphis before 8am. Once the infrastructure scales up there's no reason national driving wouldn't be flat rate just like VOIP doesn't charge for "long distance calls". The actual costs are neglibible if the electricity comes from solar and the vehicles last a million miles each. (The electric motors and car bodies already do and the batteries should soon, right now the tires are the weak point.) Yeah, national door-to-door flat rate is probably 50 years off, and it would be slower, but faster isn't always the sustainable business model. The point is bailing out today's airlines without even demanding equity is not something we HAVE to do, it's merely defending the past. Which of course septuagenarians can't help doing.
Right now I care about checks to individuals, the rest of "the economy" can go hang. (The bits that belong to a billionaire can go guillotine.)
Alright, think I figured out how to handle labeling globals. Only the ones with attributes (which is not a common case) need to be moved into the locals array, and I can use the standard "delete out of global array" plumbing to do it because I copy and allocate the new version with the extra data when the attribute gets added. Those would then be "export to globals at runtime" but the test is quick (just flags, not a strcmp).
I could even keep them in the globals and just have a blank "NAME=" entry in the locals storing the flags. I should probably do something similar with magic variables. For globals I could keep a counter of how many such annotated globals there are so I don't have to search the locals to export globals when there's no reason to, which I'm torn on. (On the one hand it's fiddly, on the other this is _the_ hot path. But we already go through variable expansion and stuff. Hmmm...)
Still reading about oil. Here's a smart guy who was saying the right things 11 days ago (accurately predicting, as opposed to the dinosaurs insisting the meteor is just a fad). So let's see if he's said anything recently... yes, he has a twitter account, and... yup, going to zero. Here's another guy who seems to have the right idea... and he also has interesting tweets, especially the inside baseball soap opera stuff. (It's a pity I can't reliably play podcasts at 2x speed the way I can youtube videos.
Sigh. I wanna go "yes, toybox has this, look at xabspath" but it would be impolite to do that on the busybox mailing list. (I mostly don't post at all, largely because I check up maybe twice a month and the conversations are usually way stale.)
I want to get a toybox release out that can have "make root" binaries for each target, meaning I can post a cpio.gz initramfs for each target that boots to a shell prompt, which is the main reason I've been trying to get toysh to the point it runs the mkroot init script first instead of just tying off what I've got. But I suspect the variable subsystem redesign puts it out of scope unless I can come up with something clever this weekend.
Still, I've got the compiler build fixed and now I'm testing the targets, and sh4 isn't booting? I run qemu and get an almost immediate exit with no output. Hmmm.
Back up to the previous kernel release: no change. Kernel before that: no change. Ok, the kernel version, build script, and possibly QEMU build have all changed since the last time this was known to work, so I need to reestablish a baseline. Clean clone of aboriginal linux, ./build.sh sh4" and run _that_... and it boots! So QEMU is ok. And that gives me a kernel to try to boot the cpio.gz with and... it's the new kernel. Ok, most LIKELY what happened is the kernel config changed and it hasn't got a serial port enabled. So did the kernel version advance or did the build script produce a different config output? Hmmm, that kernel (with the same config) doesn't build a working version with the new toolchain. The aboriginal toolchain is ANCIENT, ummm... build with the old mcm-buildall.sh out of the external mkroot and musl-cross-make checked out from a year ago and... yes, baseline along new path reestablished. Ok, walking forward... toolchain builds take a long time.
Last week I started studying the oil price war between Russia and Saudi Arabia. This week I'm following the collapse of the oil market. Some of the more useful coverage is from Saudi Arabia's neighbor Al Jazeera.
The price of oil fell 2/3 recently. It was $60/barrel In February and yesterday it (briefly) hit $18. Demand is down due to coronavirus' impact on the global economy, and production is UP due to a price war between Saudi Arabia and Russia that started last week (more or less the end of the OPEC price-fixing cartel). Analysts think the combination may drive oil prices literally to zero.
Saudi Arabia needs to sell oil at $84/barrel to balance its state budget. Five years ago Russia needed the same, but it recently made signifcant budget cuts (noticeably reducing Putin's popularity) and now only needs oil at $42/barrel to balance its own budget. (This is assuming global consumption remains fixed and each country maintains its market share. Yes oil prices going down slightly increases consumption, but not enough to matter here. People still spend less money on oil when the price is lower. You don't spend twice as long driving because gas is cheaper, your commute stays the same.)
Last month oil was halfway between those two figures, so Saudi Arabia pushed for production cuts to raise the price and Russia refused (arguing the US fracking industry would just make up the difference, but mostly just not needing a higher price to make ends meet). Saudi Arabia's leader MBS (who like Putin murdered his way to the top even before ordering Kashoggi's execution) declared economic war on Russia, increasing Saudi oil output in a simple "he defied me I must punish him" knee-jerk response. MBS did this just as the Coronavirus became a global pandemic, so everybody started self-quarrantining and stopped commuting (let alone traveling long distances) meaning production increased just as demand collapsed, which is why the price of oil has dropped by 2/3 already.
Just like with Trump everybody's seeing faces in clouds in this strategy, and projecting chess master moves onto random thrashing. Both leaders are oligarchs, which means they're bullies who inevitably become surrounded by yes men (by process of elimination). They're more concerned with appearance than achievement because their power rests entirely on the perception of their power (defy me and I will make you regret it, that is why you must obey), which is a feedback loop that goes sour quickly. (If anyone ever defies you and gets away with it, the emperor has no pants.) Analysts' fan theories about deeper reasons aside, neither one can admit a mistake and back down any more than Trump can: they would look weak, which would make them _be_ weak.
Putin and MBS each have about half a trillion in foreign currency reserves which they're spending down, in theory to outlast the other guy, in practice probably in hopes of driving at least third parties out of the market. But at what point is venezuela _not_ going to sell oil if it can make a profit doing so? (They may stop for a bit, but they'd start up again as soon as there's money in it, because they need the money and have few other immediate options.) Both oligarchs are publicly hoping their oil war will at least bankrupt the north american oil producers, but their governments are bailing them out, and Exxon buying up small companies doesn't mean those fields would lie dormant for long.
So all the producers are trying to outlast each other by pumping MORE. The less oil brings in per barrel, the more barrels you must sell to pay the bills. Even if the price falls so low it costs more to pump than you get, those costs are borne by a bank and the cash from the sales goes into your pocket NOW. Drilling the well is a sunk cost, you PUMP to pay it back.
This excess production is filling up all the oil storage in the world, tanks and ships and caves and pipelines. The US stragegic petroleum reserve is 112 days from filling up. (It can store 685k barrels per day to a capacity of 77m barrels.) China's strategic petroleum reserve _started_ full as far as anyone can tell. (The first Al Jazeera report above said China was turning back tankers "due to coronavirus", but with their economy idled and their SPR full why would they buy oil? No matter how cheap, where would the PUT it?) And when the US SPR fills up, that's when analysits think the price of oil may fall to zero. If there's nowhere to put it, you can't sell it at ANY price.
Even if the economy recovers, there isn't an easy recovery from this for the oil producers, because outside of SPR all that storage is finance bros buying to sell it at a higher price later, and unloading those positions is going to compete with any price _rise_. (Especially if it's been a while and they give up and sell rather than waiting for some target number, since renting storage costs money...)
Analysts who don't understand exponential curves insist this is somehow bad news for solar, but it's vehicle costs, not fuel costs, that have been holding back electric cars. (Tesla made electric charging _free_ for its first decade or so, and it's still cheaper than oil for fueling cars even at the new lower prices. And gets cheaper every year.) This curve from 2016 predicted the $30k electric car accurately, and places the $20k electric car in 2022 and $10k in 2026. If the average price of a new fossil fuel car doesn't come down from $36k, buying one stops making sense long before oil prices could recover, no matter how cheap the fuel is. (I've written about this before, and probably the most damning link from that is the loss of institutional memory in oil refining. They're not investing in R&D anymore, no point.)
Which gets us back to the whole "electric transportation as a service displaces vehicle traffic on US highways", and switching trains too (diesel-electric is already electric, maybe you need 4x as many cars to hold the batteries as hold the diesel but the train's already 50 cars long anyway). And THAT leads right into the oil supply chain becoming unprofitable. When the cost to pump, refine, and deliver gasoline to a gas station is higher than the sale price, gas stations close. The end retailer's profit margins are already razor thin.
Energy is 1/6 of the global economy but is concentrated into a small number of hands. That's why of the 10 largest companies in the world, numbers 2, 3, 4, 6, 7, and 8 are oil companies. (#5, China state grid, is electricity. They're pushing for Solar and batteries as much as anything.) But even if there's still demand for diesel for international flights, container ships crossing the ocean, and making plastic and pharmaceuticals, without Beverly Hillbillies levels of profits it's not a big enough industry to let idiots control governments anymore. And that's the point where climate change lawsuits come home to roost.
My next question is if solar is killing fossil fuels in solid/liquid/gas order is what happens to gas now? So far it's lost in the noise...
Of course she had a plan for that.
So the literal nazis are saying "checks for everybody", and the democrats have turned that into something that wouldn't help anyone I personally know. Fscking _Mnuchin_ is to the left of the DNC on this one. Unbelievable. Howard Dean is 71. Maxine Waters is 81. Biden is 77. We're all volunteering for martial law to fight off the Boomer Doomer (the same way taking off your shoes at airports was "voluntary" after the shoe bomber until suddenly it wasn't) and the geezers are STILL trying to drive. I am not happy about this.
Still working out how to make a variable global and active at the same time (ala "export RANDOM"). If you "export RANDOM; unset RANDOM; echo $RANDOM" it prints nothing, which means in unset_main() the unset magic part has to fall through to unset global/local because it CAN exist more than once and gotta catch 'em all or you won't get mewtwo.
A rough edge in toysh is that the local and global variable blocks are updated by different infrastructure with a different allocation stride. (What "stride" means here is that the easy way to know when you need to realloc() an array you're appending to is and it with a power of 2 mask, and when it's all zeroes add the stride size, ala if (!(size&(stride-1))) array = realloc(array, (size+stride)*sizeof(*array)); .)
In toysh, TT.locals is updated by array_add() with an allocation stride of 32. The exported globals live in "environ" which xsetenv() updates with an allocation stride of 256. Which means an xsetenv() update can fall off the end of an array_add() array because it assumes enough memory was allocated to get to the next multiple of 256, and the other one only extended it to the next 32..
I wrote lib/env.c to address the classic environment variable memory leak problem, and it did that, but it was designed to work on a single array with a single "inherited variable, do not free" counter. So I genericized it a little, letting you call it on an arbitrary array with an arbitrary counter of "special" entries at the start. But that counter doesn't track how many entries there are, it tracks how many entries were inherited from the environment and thus shouldn't be freed. While the TT.locals counter is how many read-only entries there are which should error out if you try to assign them. (You can unset them, but not overwrite them without unsetting them.)
The array_add() logic is natural to use in toysh, which implies I should do all the variable manipulation locally in toysh. But the env.c logic is useful for things like tar which set and clear environment variables for each file of an arbitrarily long input, so leaking each time (via the normal libc functions) could exhaust memory on small systems or in pathological cases. There's a USE for both. I'd like to unify them, but the assumptions still don't match. Which says I should dismantle the env plumbing some more and try to cleave out a layer that matches both sets of assumptions (and either uses a coherent stride or updates both sides with the same plumbing).
The reason for the shifting assumptions is new use cases coming in. I've tackled shell local, global, magic, and readonly variables. (Magic is like synthetic filesystems: the value is calculated every time you read it, ala $RANDOM or $SECONDS.) I have NOT yet dealt with integer, nameref, indexed or associative array, upper or lower case mapping, or functions.
Darn it, now I see why bash has a single attribute annotated variable table and performs exports at exec time. The darn attributes are combinatorial. You can export magic variables to be global and they remain magic, what other combinations can... Really, bash? REALLY?
$ readonly SECONDS $ echo $SECONDS 8 $ echo $SECONDS 9 $ SECONDS=42 $ echo $SECONDS 44 $ echo $SECONDS 46 $ declare -p | grep SECONDS declare -ir SECONDS="46"
You can set the readonly attribute on a magic variable and it _remembers_ it, but ignores it. (Same for RANDOM, assigning a number to that re-seeds it so you get a repeatable series of numbers afterwards. And yes, "readonly PATH" is enforced. And reported by declare -p.)
So this implies I have TT.locals stick a byte at the start of NAME to store the flags, but I want to keep startup fast so #!/bin/bash scripts have minimal starting latency, and copying arbitrary environment data (possibly megabytes of it) into a different format is a potential latency spike. I suppose I could have TT.locals be an array of struct {long;char *} pairs, where the -i flag means the char * is actually another long. The problem is, if I populate the char * with the "NAME=VALUE" string out of environ, I need one of the flags dedicated to saying "inherited, do not free"...
And I've already planned to use pre-digested functions to avoid re-parsing it over and over. So "function" isn't an attribute of a variable, and in fact:
$ potato() { echo hello; } $ potato=42 $ echo $potato 42 $ potato hello
So we _can't_ have a unified single table. Locals, functions, and globals are logically distinct. (And magic has to be its own table too.) And I haven't yet opened the array variable can(s) of worms. Hmmm.
What I _want_ is the first byte of locals to be flags (to avoid a wrapper struct storing the flags and a pointer to the "name=value" string) but also to NOT have to copy globals (to avoid the startup-time hit of copying arbitrary amount of environment space). How do I handle readonly globals then?
People are going to be studying the climate impact of the coronavirus lockdowns for years. And then when the wheels come off the climate, we're probably going to have to do them again. Meanwhile the new cold war continues, with the GOP being our fifth column.
The first two error messages when a mkroot image tries to boot its init script with toysh are failure to exec "export" and "!", both of which are shell builtins. Of the two export is easier to do because of the "! isn't a good function name" issue. (Gotta either find a main_name() to glue it to or just hardwire it into the run_function() path as a special case.)
So I wrote an export, and redid some of the variable infrastructure along the way (most loops were going s=='_' || !ispunct() to determine how long a variable name is, but one was doing isalnum() instead of !ispunct, and BOTH are wrong because !isspace. Really it's s>' ' && (s=='_' || !ispunct(s)) which allows utf8 variable names, and no it doesn't end early because of utf8 whitespace or punctuation, but I'm ok with that).
Except... bash has very different environment variable behavior than I've designed.
$ export RANDOM $ echo $RANDOM 31896 $ echo $RANDOM 2222 $ echo $RANDOM 3083 $ env | grep RANDOM RANDOM=3083 $ env | grep RANDOM RANDOM=3083 $ env | grep RANDOM RANDOM=3083 $ echo $RANDOM 18437 $ env | grep RANDOM RANDOM=3083
So it DOES have separate local and global lists, but it defers copying variables from the local list to the global list to launch time (instead of doing it _in_ export), and then won't re-copy them if they're already there? (Export is both deferred _and_ persistent?)
I just did the move in export (and I try never to have an equivalent variable on both lists), but I haven't handled active (or readonly) variables at all yet. This was me going "so what does it do with exported active variables" and trying one out to experimentally determine the behavior...
I don't really _want_ to copy this bash behavior? I am AWARE of it now, but I think I'll put it in the "wait until somebody complains" bucket because it implies more infrastructure than can possibly be a good idea.
The larger design question is how a global variable remains active, and I was thinking "it probably doesn't" for the same reason "cp /proc/self/stat ." isn't going to update after the cp. But that's not what bash is doing, and thus I have to find a way to not break existing scripts.
I've currently got a char *env[] with counters for both locals and globals, and the counter is "how many entries at the start are magic". For globals it's "how many were inherited from environ and thus should not be freed", and for locals there's a readonly counter and a magic counter after that. But I've ALSO been thinking of switching the arrays to be sorted so they binary search, except that penalizes insert. Probably the right thing to do is have an envc and localc and start searching from the _end_ each time, so you get natural move-to-front behavior and recently set variables are the ones you search for first, which is also gonna be what's in CPU cache. But again, make it WORK first, THEN benchmark, THEN optimize...
I did not get on my plane to Japan this morning, instead the trip's rescheduled for the end of April. I don't THINK I have coronavirus? I think I have a mild case of the flu, but I am coughing and short of breath and had a nonzero chance of being stuck in chicago and not allowed on the flight to vancouver. (Yes, it was Austin -> Narita but there were two transfers along the way, one of which is through Canada's semi-sealed border, and the flight there departs from the airport being held up to exemplify "long lines".) Whatever I've got it's been building for about 3 days, and I'm not concentrating at anywhere near capacity right now. (I have all the symptoms of coronavirus _except_ the fever, and they're not intense enough.)
So I work from home. Right now I'm building a raspberry pi 2 buildroot defconfig to see what's in its' root filesystem, so I have a baseline for what we should put in a new Turtle board root filesystem.
I finally made a good current-ish set of toolchains for all the targets, using current musl-cross-make. I backed gcc off to 8.3.0 and switched to the full Linux headers instead of the weird stripped-down ones that don't support m68k or s390x. (I told Rich about this a while back, but he doesn't seem to have committed a change to mcm. Oh well.)
I then built all the targets (scripts/cross.sh all make root) with toysh switched on in the config despite being in pending, and 19 targets built a toybox binary! (This is my new procedure for creating release binaries, which is why getting all this working was tied into getting the next release out.)
This means 3 targets failed to build, but they're armv7r (which has never quite worked, it's nommu armv7 and I need to change the config to static PIE or something, you can't do regular ELF nommu) and x32 (which has always been a bit weird). And powerpc64le didn't build a kernel, but I don't think I ever gave it a kernel config anyway.
The CDC says to cancel gatherings of 50 or more people for the next 8 weeks. Airplanes for international flights hold something like 450 people. The first transfer of the flight Jeff wants me to take tomorrow is through Chicago O'Hare. Right.
Fuzzy was hired to sanitize the fencing masks at her club over the break, and she's been trying to get clorox wipes ever since. I thought I'd go to HEB when it opened this morning (they're now closing from 8pm to 8am each day to restock), and... nope. No clorox wipes. Half their shelves are still empty even after 12 hours closed. I expect their warehouses have run dry of rather a lot of stuff. (Last week I was upset they had trouble keeping cans of milk tea in stock in the intergalactic foods aisle. They've got plenty of that now. Bit of a monkey's paw solution, though.) I went to Target to buy more shoes and pants (Tokyo hasn't got either in my size) and they didn't have wipes either. Nor did the walgreens on the walk back.
Has anybody pointed out that "everybody's panic buying so much that grocery stores and target and stuff can't keep anything in stock and the lines to their registers are fifty people long" is coinciding with "the economy is collapsing because economic demand is down"? The ONLY way both statements could be true is if the economy is COMPLETELY FICTITIOUS. The stuff that people actually need to survive is such a tiny part of "the economy" that it doesn't even REGISTER to policy makers. This is why we can totally do basic income, because all the rest of "the economy" is a game billionaires play to keep score. (Hence David Graeber's book, which his publisher tacked "A Theory" onto because they were scared to say it might be true and needed weasel words to sleep at night.)
Lovely article about economics. And there's another bill trying to outlaw encryption using the "some people do horrible things and that's why we must have cameras installed in everyone's retinas" argument. If the thing someone somewhere did is bad enough, that's why your house must be federally bugged just like East Germany. Not buying it? Ok, here's a WORSE thing someone once did, your big brother installer will be there tuesday. (Guillotine the billionaires already.)
Ok, the toysh $() parsing logic starts roughly line 640 of sh.c, and calls skip_quote() which is not working on (). And it fundamentally CAN'T work on $((a)|b) so I need to replace skip_quote() with parse_word, as mentioned yesterday... ok, did that.
And now I hit the fact that the TEST that was failing is "echo $(<input)" which... makes no sense? As in I can implement it but what is BASH doing here, exactly? The child's stdin is redirected. What does that have to do with OUTPUT: <input on a line by itself does not output the file "input". Bash accepts a space between the ( and the < but "echo $(X=Y <input)" doesn't output anything, nor does "echo $(<input X=y)" nor "echo $(<>input)". This is totally a special-purpose hack bash added. So the question is where to stick it to duplicate their horrible special case's logic... Sigh, seriously: this bash hack is ONLY for $(), not even "cat <(<input)" works.
Feeling under the weather today. Occasional cough. Very slight sore throat. Maybe shortness of breath or maybe imagining it? It's probably pollen (it's raining outside), but it's really easy to psych yourself out right now.
So the next toysh test that's failing is "echo $(<filename)" which I put in because it's a horrible thing bash does. But the _way_ it's failing is "syntax error: bad )" which means the $(blah) parsing is failing, and... yeah, I need to re-unify the quote traversal, I just hoped I could defer that a bit.
The problem is that parse_word() has plumbing to figure out that $((abc) | d) is NOT a $((math) but is a $( ( subshell ) ), which can only be done retroactively: it's when the quote count goes negative in (( context without ending with )). And no, you don't parse the contents:
$ echo $((echo hello)) bash: echo hello: syntax error in expression (error token is "hello")
It's the decoupled terminal parentheses that do it.
So I implemented that logic in parse_word(), but haven't re-implemented it in skip_quote(). Instead I want to remove skip_quote() and just call parse_word(), but I need a way to signal to parse_word() that it should return whenever it's NOT in a quote context. (Right now it continues to the end of word, I need it to continue to the end of character or quote.)
Meanwhile, I want to test my new shell against the mkroot init script, but building "make root" needs a cross compiler for each target, which reminds me I left off trying to update the toolchain builds where musl-cross-make had switched to a new gcc version that no longer understands --with-float=vfp for the arm targets, and the insane gcc docs now say that I have to micromanage -mfpu=vfpv3-d16 vs neon vs vfpv4-d16 vs neon-vfpvr vs neon-fp-armv8 and I dunno what I _need_?
The armv5l target is running in qemu's -M versatilepb, so I looked in the qemu source code that it's initializing "arm926" which can have an arbitrary FPU as a coprocessor. Grrr. (In theory the kernel can intercept attempts to do VFP and do its own floating point for it but I was pretty sure QEMU was doing this? There's proper hard float with a coprocessor (fastest), there's the kernel faking hard float (slower), and there's software float where the compiler inserts function calls to use integer math instead (slowest). I want the binaries I build to use hardware float on real hardware, because that's the common and fastest case. My kernel config is setting CONFIG_VFP, which doesn't say what TYPE, I don't THINK the intercept-and-emulate plumbing is enabled in the kernels I built for qemu?
Ok, it looks like armv5t is going to have vfpv2, and of course different insane gcc docs mention the older VFP types the previous insane gcc docs didn't. What's current for which gcc release? Who knows? (This project isn't being replaced by llvm fast enough.)
Anyway, reading gcc's configure plumbing in the source, it looks like what it recognizes for --with-float on gcc/config.gcc line 3845 are "hard", "soft", and "softfp". So let's try "hard" and see if it just does the right thing since it has ONE OPTION for armv5tl...
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU cc1: note: self-tests are not enabled in this build
NO IT DOES NOT! If you're going to use hard float, it's vfpv2! THAT IS YOUR ONLY OPTION. I SUPPLIED THE ARGUMENT BECAUSE THE PROCESSOR DOES _NOT_ LACK AN FPU! WHAT ELSE COULD YOU POSSIBLY THINK I MEANT HERE?
Ok, try adding the +fp to --with-arch... nope, unrecognized. But -march is a RUNTIME option not a CONFIGURE time option. How do I cram this information into GCC's stupid configure system... Ok, "armv5l:eabihf:--with-arch=armv5t --with-fpu=vfpv2 --with-float=hard".
Dear LLVM developers: get a move on please. GCC is not dying fast enough.
I wrote a longish email reply I might as well cut and paste here. I get tired of repeating myself, but "nobody knows what you've done" remains true. (I.E. you can give the same talk ten times and STILL most people won't have heard it.)
> but, yeah, the list of stuff you've worked on covers just about
> everything!
I keep saying "I break everything". Nobody takes me seriously, but:
https://landley.livejournal.com/55895.html
https://lists.linuxcontainers.org/pipermail/lxc-devel/2011-January/001615.html
http://lkml.iu.edu/hypermail/linux/kernel/0503.3/1756.html
http://lkml.iu.edu/hypermail/linux/kernel/0407.2/0637.html
http://lkml.iu.edu/hypermail/linux/kernel/0207.2/1182.html
http://lkml.iu.edu/hypermail/linux/kernel/0104.1/1008.html
http://lkml.iu.edu/hypermail/linux/kernel/0105.0/0045.html
Seriously, I'm doing CPU design now. I'm having to study the guts of USB plumbing because we're trying to implement it in FPGA so we can make a chip out of it. (There's a problem that Kintex is fast enough to do 100baseT and maybe USB2 if we push, but gigE and USB3 both clock faster than the FPGA can cope with, so how do you TEST your design before sending it to a fab shuttle, which is 70k? I mean yeah, you can simulate it (entirely in software at 1% real speed), but you can't plug real devices into the simulation...)
> i didn't know you'd worked for parallels until i saw your
> old email address in the 9p thread you linked to.
Specifically I worked for OpenVZ (which Parallels acquired) who were chipping off pieces of their lightweight virtualization solution and rewriting them to get past Linus into the vanilla kernel, where it became known as "containers". (Kir Kolyshkin was there from the beginning, it was invented by a Russian bank back in 1999 to try to secure Linux to do banking transactions on, where it was known as the "bean counters" patch, and then spun out as a separate company...)
There's all sorts of stuff on my old livejournal about that, starting with https://landley.livejournal.com/42214.html and pretty much every post from there through https://landley.livejournal.com/57036.html was about the tech I was working on. I occasionally posted a todo list du jour, ala https://landley.livejournal.com/56696.html
In THEORY my main job on that contract was to containerize network filesystems (such as this) but I suspect the most _useful_ thing I did for them was run their booth at Scale in 2011 (with Kir Kolyshkin) where I think I think I did rather a lot to popularize the concept of containers (something nobody knew about in 2010, they were a russian company with _zero_ competent US marketing people). If you've heard the phrase "chroot on steroids" that's was me. I put together a quick 15 second pitch that turned into a 60 second pitch when I fished somebody from the crowd, and then handed them over to Kir to do a live demo of "this x11 session with animated screensaver is live-migrating from machine to machine, see that 1/3 of a second pause there? Now it's running from _this_ box... and yes with multipath you can plug it into two switches so you can literally swap out the hardware under it with the program still running..."
All this led to "the cloud" a couple years later. There's a _reason_ I was poking Google about using containers years ago. And why I've wanted to do a toybox "container" command. (And have toybox implement criu, although both are post-1.0 material because I have a reasonable idea of the _scope_.) Still:
The _plumbing's_ not hard. Modulo criu, but then again for a while the most "viral" random email message I'd written that everybody cited was these two:
http://lkml.iu.edu/hypermail/linux/kernel/0206.2/0835.html
http://lkml.iu.edu/hypermail/linux/kernel/0206.2/1244.html
(Yes, I was thinking about that stuff in 2002. I am weird. At least since I wrote that they've implemented ways to ACCESS all that stuff, although the definition of all is a moving target.)
Rob
Well of course. (Now do Warren. Me, I'm still waiting out the boomers.)
Nope, HEB could not keep up. They restocked overnight, but it's all gone again.
Got my taxes filed, which was the last thing keeping me here. My flight back to Tokyo is now booked, scheduled to leave 6am tuesday morning and take 3 different planes to get to Narita. Here's hoping the remaining wheels don't come off between now and then...
I got eval and exec implemented, including making "eval x=y" work properly.
I keep accidentally testing the host "sh" instead of "bash", and wasting time wondering how an obvious annoying bug (like "sh /usr/bin" silently returns immediately with error code 0 even though it's a DIRECTORY) never got noticed, and then figuring out later "oh, that was the Defective Annoying SHell doing that, which nobody uses if they can avoid it. Bash doesn't get that wrong".)
The problem is my command is "sh" and the host command is "bash", and I keep taking the ./ off the front and letting it search the $PATH for the "host version", which is right for every other comand and wrong here. Sigh, I should just redirect the host /bin/sh symlink to point to bash like most people do, but I _don't_ do that to make sure my scripts say #!/bin/bash instead of accidentally saying #!/bin/sh and breaking for other people because of Ubuntu's old mistake.
I'm grinding through the tests/sh.test entries I've already added and fixing them up as I go. I've got most of the infrastructure they use in already. (I was adding tests for stuff I was working on as I figured out what behavior it _should_ have in various corner cases.)
The Google Fiber guys came and installed it this morning. I haven't noticed particularly improved throughput, but the latency is way down. Pages are _snappy_ about loading.
Yesterday the Resident gave a speech which so effectively reassured the nation that everyone started panic buying. HEB's shelves have steadily emptied all day, despite double the usual staff deployed restocking. (It's a 24 hour grocery store, so it has 3 shifts to pull from. It looks like 2 of the 3 shifts are here right now earning time and a half. Their supply chain is going "kaching".)
It's almost midnight and Fuzzy and I just watched a pallet of toilet paper have a police escort from the back of the store to the shelves. They're completely out of canned soup, had literally one box of white rice, and half the slots for meat, cheese, cereal, and bread are empty. Fuzzy says the only time she's seen the bacon that depleted was superbowl. Doesn't mean they're exactly _out_ of anything (except hand sanitizer, there's a nationwide shortage). It's the kind of privation where you have to get box soup instead of canned, have to buy _brown_ rice, and "they only had one package of my favorite ramen left, otherwise I'd have to get the spicy flavor". They're completely out of big jugs of white vinegar, you'd have to get a small bottle of fancy vinegar if you can't wait until morning.
Meanwhile there are maybe 50 people FRANTICALLY RESTOCKING while this is going on. I wouldn't be surprised if it's all back in a few hours (to be depleted again when people wake up, of course). I assume the truck drivers are similarly getting serious overtime. And there's still plenty of fruits and vegetables. (But no 10 pound bags of cheap potatoes, you have to get the 5 pound bags or buy one of the slightly more expensive varieties. The donuts and brownies and cakes and pies in the bakery are largely intact. Half the slots for cheap shredded cheese are empty, but on the other side of the store some of the Vegetable and Cheese trays have 50% off clearance stickers on 'em because they expire tomorrow.)
This isn't panic, this is nervousness. Nobody's been told what to DO, and 100 years of capitalist propaganda says the answer to any problem is to buy and/or sell stuff. Something must be done, this is something, therefore we must do it, at least until an adult shows up.
Replying to a mailing list posting, I went on a tangent and edited most of it out again, so I cut and pasted it here instead:
I dunno about minimalism, but I'm trying to get toys/pending/sh.c in under 3500 lines. I expected command line editing/history plumbing to live in lib/editline.c so not count against that total, but that was before vi.c was taken, sharing zero code with any editing plumbing I would do, so we'll see...
That's already 3.5 times my _normal_ high water mark for toybox commands. Yes sed.c is over budget by 80 lines but it's another big and complicated one (with a lot of help text so the actual C code doesn't start until line 172). And yeah, I could cheat and say without comment lines and blank lines it's under 800:
sed -e '/[ \t]*\/\/ /d' -e '/^$/d' toys/*/sed.c | wc 778 3670 27470But that's cheating: WITH sufficient comments and blank lines, and a header block with good help text, most commands should be under 1000 lines of C. I expanded the budget for sh, and what I have so far of toys/pending/sh.c is 2400 lines, maybe a hundred of which are debug code, so I've got a thousand and change left in that budget.
According to wc my 10 biggest commands so far are:
483 2011 14522 toys/posix/patch.c 502 1803 13764 toys/posix/grep.c 524 1955 15732 toys/posix/cp.c 550 2033 17399 toys/net/ifconfig.c 559 2228 17528 toys/posix/ls.c 714 3030 23657 toys/posix/find.c 723 3269 23349 toys/other/bzcat.c 956 3618 29559 toys/posix/tar.c 1080 4857 34893 toys/posix/sed.c 1936 8574 65015 toys/posix/ps.cAnd yes ps is weird and waaaay over budget. It's actually 5 different commands glued together sharing infrastructure (ps, top, iotop, pkill, pgrep), I should figure out how to move the common infrastructure to lib/ps.c but it's really hard to draw the line between "generic" and "specific" here. (The second table at the start has default ps display lengths in it, is that an attribute of the /proc fields or is that an attribute of ps and top's default formatting? There's help text in the table. I made ps and top accept the same -o and -O field names, which are almost always the names it displays, and then the other three share the same plumbing and thus the same names. In theory this means you could pkill based on CPU utilization percentage, although that would require it to do the 2 pass top thing and I haven't hooked that up there yet, the utilization is calculated based on "ticks since last reading" so needs 2 readings a bit apart to work...)
Basically I have a "1000 lines upper limit for a C file" rule of thumb that I've made exceptions for toys/*/{sed,ps.sh}.c and for lib/{lib,xwrap}.c.
If minimalism here means "intentionally having less functionality", then yes dash is minimalist. My sh binary is currently 61k on x86, /bin/dash is 117k in devuan, so assuming I'm 2/3 through mine may indeed wind up being as big as dash, but I'm trying to include more functionality.
I haven't looked at dash's source (and don't intend to while writing a differently licensed alternative) but I went over to the "statistics" link on the left on the toybox website and searched for dash in black duck's archive and they say it's 13.5k lines of code. If you added ALL of toybox's lib/*.c (~5700 lines), that's a little over 9000 lines for toysh.
(Now maybe a lot of what black duck is seeing in dash is build plumbing. If you wc kconfig/* and kconfig/lxdialog/* that's 18k lines right there, which is a build time tool I've been meaning to replace which only updates a single .config file of keyword=value lines, which is currently 375 lines line.)
Actually Jury Dutied today. It was a civil suit, so what was at issue was whether one party should pay another party four figures. (We awarded a slightly lower four figures.)
I paid for a ride "share" both ways (not the "hour and a half with two transfers" bus, but the actual "fuzzy has an app and I made puppy eyes at her", and it's totally not a share if neither person would have gone from point A to point B without me paying them to do so, so that's a TERRIBLE name for it, but that's what Ride Austin calls it, so...) Because of that, I actually have energy left to go out and do some programming today! Woo! (Still sunburned from yesterday, but that was my fault.)
I redid the NOFORK launch plumbing so things like "eval" and "unset" can reach out and touch the shell state. My first stab at it was just to swap out TT.arg and sh_run("\"$@\""); but you can "eval x=5" and that won't work here. I need to factor out the plumbing to glue the command line together (because 'eval echo -n \" hello \" | wc' should say one 7 char word).
But at the moment, I'm shuffling stuff around to try to avoid function prototypes... and there's a loop: sh_run() calls run_function() which calls expand_redir() which calls expand_arg() which calls expand_arg_nobrace() which calls pipe_subshell() which calls run_subshell() which calls sh_run(). Fundamentally the problem is nesting "$($($($($($($blah))))))" -- it's kind of hard to do that non-recursively. And the current code doesn't. (Which means on nommu you can blow the stack doing that, and... I can put in a check I suppose?)
Sigh. For now, leave ONE function prototype.
Thought jury duty was today, so paid for a ride way down to south austin... and tuesday is _not_ the 11th. It's tomorrow. (Sigh, I made a note "fly back to Tokyo Tuesday the 11th" back when I left Japan, and although the flight back was delayed by a combination of jury duty and coronavirus, I didn't confirm that tusday IS the 11th.)
Rather than paying for a return trip, since I had the time back I went "I can walk, I don't get enough exercise..." and forgot that even when the temperature is nice (March! Spring!) in Texas sunburn is a thing. Totally fried when I got home, crashed in bed.
Woke up when my phone went off... with an automated reminder that I have jury duty tomorrow. Thanks. Lovely.
Got zero programming done today.
I finally got the IFS plumbing redone and checked in (and merged into the calling function's loop rather than as a seperate function), and now I'm grinding through "make test_sh" to try to get at least the converted part of the test backlog to pass, and I've hit the tests that want exec and eval. Both are shell commands (so NOFORK), but they run shell snippets in the current context (with access to all the local variables and such) so they need access to the shell's GLOBALS block. So I kind of need a nofork variant that doesn't re-parse arguments, which is tricky. (Or more likely I need a union at the start of the globals block with the various NOFORK commands' arguments.)
Hmmm... this means NOFORK doesn't blank the GLOBALS block (outside the argument union). There are only two NOFORK commands outside of sh.c itself (test and true, or at least the [ and : aliases for them since NOFORK also means "don't create show this in the command list symlinks are created from"), and neither has arguments. So that's probably ok?
In theory I fly back to Japan in a little over a week. (Plane ticket isn't booked yet but the flights are at like 30% occupancy so there should be something cheap.) I'm nervous not because of coronavirus, but because I have to get an apartment working for a company that's still funded month to month.
But at least Tokyo doesn't have bedside financial counseling in its hospitals. You only find that in the USA where the religious loons who founded the place (shakers, quakers, puritans) found money as their new god a few years later, and are happy to literally kill the country's own citizens en masse for profit. (The Boomers consider this normal. We look down on china having erased Tianamen Square from its history, meanwhile we're commiting slow genocide to increase the holdings of billionaires.)
I've mostly worked through my recent confusion about some weird bash word splitting corner cases, which turn out to be what happens why you apply the existing rules in a nested fashion. Now I have to redo my $IFS whitespace traversal logic, because I found yet another bug.
I have a function in toysh called split_add() which handles IFS word splitting and adding arguments to arg.v[] when parsing a command line. It takes way too many aguments (currently split_add(arg, delete, before, new, after, quote, offset)), and really should be inlined in the one function that ever calls it, but that function calls it from multiple places and it's not obvious how/where to work it into the big parsing loop.
(For example: "IFS=3;chicken(){ return 3;}; chicken;echo 3$?3" outputs "3 3", yes $? is an expansion that needs to go through IFS splitting. If it went at the start of the loop we'd have to continue and resume from variable state for things like "$@" that need to loop through the current enclosing argv context.)
The "arg" and "delete" arguments are the output: struct sh_arg has arg.c and arg.v[] members and there's an add_arg() function that automatically reallocs arg.v as we append stuff to it. The "delete" linked list is because arg.v[] mixes malloc() and non-malloc() contexts, as in some of these things are fresh allocations (due to variable expansion and such) that need to be freed when we're done with them, and some are the existing unmodified strings we got out of the input that should NOT be freed when this command exits. Since "not modified" is the common case, doing a strdup() on each one just to add it to argv[] is silly, so I add the allocations to a list we can traverse and free when we dispose of the arg.v. (Possibly the delete should move into struct sh_arg, but it hasn't yet.)
What split_add() does is take 3 spans of text: before, new and after, Ala "before${NEW}after". The "new" span is the one that just came from a variable or $(subshell) or some such and needs to be checked for $IFS word breaks. The "before" text has already been expanded as much as it's going to and gets glued the the first word. The "after" is what's left over, and gets glued to the end of the last word. "quote" says whether or not we're currently in a quoted context: we add 1 for every (unescaped/unquoted) double quote we see and 2 for every (unescaped/unquoted) single quote. This means if the bottom bit is set we're in double quote context but should still parse variables (but not split words), and if the bottom bit isn't set we _previously_ had quotes that have since closed (single quote context figures out how much to skip immediately, then loops back around without falling through to this logic), which we need to know because ""$X should add an empty argument even when X isn't set.
But the added "after" data still needs to be parsed (it may have more variables and such in it) so we need to know how MUCH of that last word is already parsed and how much is the copied over "after" data (because if $X resolves to $Y we don't parse it _again_, at least not here, and X=\"; echo "$X"; should not get confused by $X having a quote _in_ it. So we store the length of what's _already_ resolve in offset.
Hmmm, the current "after" string is only needed for allocation length. The parsing never looks at the output (it traverses the input exclusively) and the default behavior of the resolver loop (when it's not a special character) is to assign the next character of input to the next character of output. So we don't even need to copy the data here, it's just convenient to let xmprintf() do so because that allocates the right amount of output size. But all we NEED is enough data to reserve space to copy the remaining literal data into when there are no more escapes. So it doesn't actually need to be a string, just a length...
(I'm having flashbacks to the sed performance optimizations where we changed the "copy before/during/after to a new string each time" into in-place modification. I'm wondering if I should do that here, because it would be faster. But at the _moment_, it's premature optimization. Everybody goes "dash is faster than bash" but I haven't benched anything yet and this is small and simple enough code it should be easy to do this kind of optimization later.)
The last time I updated my old Three Waves writeup was in 2011, when I was trying to explain how Google's Alphabet was an attempt to convert itself to stage 3. I spent five days (1 2 3 4 5) giving the basic framework. (Although it trailed off before explaining that Alphabet was about Google fishing individual business units out of its melting pot and transplanting them into a third wave context, now cleanly separated with their roots untangled from each other, because the original mess was potbound and couldn't scale. I even did a talk for Flourish on it, which was recorded but never posted.)
I've referenced it a few times since, and I still want to shout out when it comes up that "yes, certification is important to bureaucracies because delegation of risk", but you need the theoretical framework to understand WHY that's the case.
(And you can't understand modern kernel development culture at ALL until you understand the hobbyist->employee->bureaucrat progression. And that the original disruptive technology insight was about explaining bureaucrat->hobbyist jumps where last year's trees are replaced by sprouting seeds. The old saying "it's the dead wood that holds up the tree" is true but physically _can't_ last last forever. Which is why our political situation is going to keep getting worse until the Boomers die, but once they do there's a lot fewer people left who think the existing system with billionaires _not_ being guillotined makes any sense at all, let alone "is a good idea".)
The unexplained whitespace split from yesterday is because the echo =$i= wasn't quoted. Insert Homer Simpson exclamation here.
And there it is. AOC endorsing not-Warren has given us Biden. (Warren understood her opponents and knew how to hurt them. Bernie hasn't got a clue how they work, and Biden wants to make friends with them.) No, I don't see a major difference between the remaining 78 year old white men whose names begin with B. Are either going to restore humanities education instead of diverting its remaining funding to STEM? No? I'm out until November.
When Glacier National Park was founded it had about 150 glaciers. By 2015 it only had 26 still big enough to qualify as glaciers (>0.1 square kilometers), because the park had lost 40% of its ice over the past 50 years. But hey, at least we're finding new islands around antarctica now that it's melting an inch a day.
I don't understand bash's behavior here:
$ IFS=x $ chicken() { for i in "$@"; do echo =$i=; done;} $ chicken one abc dxf ghi =one= =abc= =d f= =ghi=
It gets replaced with a space, but does NOT split? What is the intention here? Did busybox ash implement this? Let's see... busybox ash -c 'IFS=x; chicken() { for i in "$*$*"; do echo =$i=; done;}; chicken one abc dxf ghi' produced... =one abc d f ghione abc d f ghi= so yes, they do that too.
That's unpleasant. Right, $@ and $* work the same way when unquoted, and work SIMILARLY when quoted except $@ flushes word breaks and $* just appends a space to the existing argument. But both of them are doing the stupid space thing for IFS matches, and then doing a whitespace-is-magic split after replacing with spaces if it's not quoted.
Hmmm. The bash man page says quoted "$*" separates with the first character of IFS... And I'm doing utf8 for that, which is a variable length allocation _and_ variable length consumed out of the input string, but hopefully the existing plumbing I wrote can be made to do that.
I don't understand the argument flushing logic here:
$ func() { bash -c 'IFS=x; for i in $@; do echo =$i=; done' blah "$@"; } $ func one "" two =one= == =two= $ func one "" =one= $ func "" two == =two= $ func "" "" ==
Unquoted $@ is retaining the empty argument only if it's followed by another argument? (Even if THAT argument is empty?)
The Bernie Bros have joined Mitch McConnell in urging the "nevertheless she persisted" lady to stop. Bernie continues to perform his function of blocking a more qualified woman while himself losing. Sigh, I held my nose and voted for Hillary when she lost in 2016, I can hold my nose and vote for Biden when he loses in November. I did my part and voted for the candidate I _want_ in the primary, now it's tactical voting 'against' all the way I guess. (But I'm glad I sent her that $100 last week. I got to do something while it still mattered.)
Dear Bash: Seriously? SERIOUSLY?
$ for i > in one two three > do echo $i; > done one two three $ for i; in one two three; do echo $i; done bash: syntax error near unexpected token `in'
Be CONSISTENT! (This is like "echo {a..z..-3}" producing "a d g j m p s v y" isn't it? When the implementation is the standard, every weird bug it happens to do is part of the spec.)
Grrr. Anyway, the problem du jour is that toysh is trying to exec "in one two three" each time through the loop, and the problem I hit BEFORE that is the "for" parsing thing (which I'm not doing right either but would LIKE to get right because ; and newline are equivalent). Ok, how does the plumbing I implemented here work again? When you hit "for" or "while" it expects "do", but you can have different things before the "do", so it cheats by adding an extra stage identifier after the NULL terminator. A "while" or "until" starts with "do\0B" which means you can have arbitary command(s) before the do (as with "if"), but a "for" or "select" starts with "do\0A", which means it expects a variable name and either an "in", a "(())", or nothing before the "do", and once it's seen an "in" it transitions to "do\0C" which means "read rest of this line next line must start with do"... except the transition to C currently happens when it sees the "i", at which point you could get an "in" _or_ a "do" next (but not ((;;)) because that's instead of the variable name). And it can be with or without a newline: "sh -c 'for i do echo $i; next' one two three" should print "two\nthree\n" (because the one because $0, which turns out to be the same logic as #!/shell/script/arguments so it makes a certain amount of sense).
And a semicolon is logically equivalent to a newline, but for some reason bash allows multiple newlines but not multiple semicolons. And bash isn't allowing _one_ semicolon here, but IS allowing a newline. Sigh.
Fade broke down and got minnesota voting registration so she could vote in a primary. (In theory as a college student she can keep her Texas registration, but after the fiasco with never getting her an absentee ballot and then Frontier cancelling her flight last time, I'm not surprised. Seems Texas once again failed to distribute vote-by-mail ballots to non-republicans.)
I've reached the point where I no longer see a difference between Bernie and Biden. Neither of them has had a new thought in 40 years, both would turn 80 in office, and both are all talk without the ability to pass any legislation. Bernie's role continues to be to prevent a more qualified woman from winning, and Biden's brain's already melting from the strain of the campaign trail. (It's not "gaffes", it's senility.) Both are currently as old as Ronald "I don't remember" Ragan was when he LEFT office.)
I'll vote for a potted plant to keep the GOP out of office, and as far as I can tell a potted plant would be equally effective at legislating as either of them. The real threat to the status quo is warren, and the system has quite effectively mobilized against her to the point people are already abandoning their first choice with 95% of the votes still uncast.
I'm tired of voting against. Guillotine the billionaires already.
I bisected the musl-cross-make breakage to the stupid out-of-tree headers being introduced. Commit before that builds m68k and s390x, that one doesn't. (Remember, "git COMMIT^1" is the commit before that commit. In theory it's "left branch", in practice if it's not a merge it's "previous commit". For merge commits I just git show and cut and paste a commit number, but MOSTLY what I do is "git log --no-merges" and then look at the actual interesting commits, because if anything non-janitorial ever goes into a merge commit somebody screwed up. The toybox repo history doesn't HAVE merge commits, that's one of the nice things about "git am". It applies a patch to top of tree, with attached metadata crediting the author properly in their own words.)
Now I'm doing an all-target build to see what ELSE this might fix (such as the various broken arm targets), but that's kinda slow on this laptop.
I owe three closing parentheses from the blog entry on the 27th, so: )))
Tomorrow is "super tuesday", I.E. the official voting day for Texas. I early votinged the weekend before last, and the last day of early voting was the 29th, when the polling place at Fiesta (with like 10 machines) had a line wrapping around the store to the produce section. I'd thought of maybe doing some of the phone bank stuff for Elizabeth Warren since I'm in town, but I've _received_ multiple calls and texts from them already, so presumably they have more volunteers than people to call.
Why is "early voting" and "your official polling place" in different places? Look, it's not really early voting, it's _voting_. The polling place was open for 2 weeks. Last day was the 29th. Now it's LATE voting. It's make-up voting for people who missed the normal voting that was open all day every day (including weekends) for weeks. The marketing on this is just WEIRD.
For some reason the musl-cross-make build for m68k and s390x isn't
installing the kernel headers, so anything that tries to #include
Trying to bisect where Rich introduced this breakage, but it keeps downloading 100 megabyte kernel header tarballs through my slow phone connection? Ah, it's because of a stupid commit where he started using an external kernel headers package again and oh goddess do we really have to repeat this mistake yet again? Seriously, I fought in this war (and had to repeat myself there). I fixed the upstream headers generation for PRECISELY THIS REASON. If you want to remove cruft from the userspace ones, push a patch or maintain a local sed invocation but DON'T PACKAGE UP YOUR OWN HEADERS DU JOUR THAT PREVENT YOU FROM UPGRADING. This is INSANITY. We have BEEN THERE, and LEARNED THIS LESSON, and...
This is why we have nazis again, isn't it? Those who cut history out of the curriculum because STEM STEM UBER ALLES NOTHING BUT STEM are doomed to repeat it.
Seeing a lot of speculation that Bloomberg paid Pete "means testing" Buttgeig to drop out, which makes no sense to me? But then his entire run makes no sense to me. I'm also hearing that Pete's voters' second choice is Warren, so I'm hoping she gets a boost. This does now mean that EVERY front-runner is at least 70 years old, so our next president is pretty much guaranteed to be a septuagenarian. I blame the Boomers for the entire slate of the white males beginning with B.
The df and realpath commands were using libc realpath(), which is the same thing as readlink -f I.E. xabspath(arg, 0), and it saves ~300 bytes on a static musl build to _not_ suck in the extra function. It also means I can (eventually) add realpath -e and -m and such, which nobody's asked for yet (presumably because readlink exists).
Elliott pointed me at an article that says nice things about 0BSD. The word is spreading.
A big GOP donor just bought twitter. Not missing my account quite so much today.
I noticed that several different articles on wikipedia[citation needed] are linking to an old blog entry here (even if they can't get the URL right, kinda needs the #anchor to be useful), and thus I committed the minor sin of fixing things in an old blog entry. (Just "stray end paragraph tag in the middle of a paragraph", "malformed URL tag" and such.) A lot of the URLs it points to have gone down, I should probably fish them out of archive.org or point to the mirrors I made on my history page over the years, but... not meddling with the historical record.
Still, if I was extending that article today I'd point out that the 6-bit vs 8-bit wars were about memory being so expensive that squeezing 6 text characters vs 8 text characters out of every 48 bits of storage (a 25% savings) was a big deal. And when the cost of the extra 2 bits stopped being a big deal, the power of 2 logic (that DIDN'T make you choose between supporting capitalization or punctuation, but not both) won out.
It's always interesting that I'm explicitly not "notable" enough to have a wikipedia page (I've been told this), but I'm mentioned on (and even cited by) over a dozen pages on that site. Oh well. There's a reason I call wikipedia[citation needed] by its full name so often. And I guess I'm used to being scrubbed from stuff. Note how the penguicon page carefully avoids mentioning me, except for linking to my old history writeabout about it in the references. I love how in the media section (dumping liquid nitrogen into the swimming pool), Howard is named but I'm "Attendees". (Not only am I anonymous, there's more than one of me!) There's a reason I haven't been back in a dozen years.
*shrug* The important thing is that the work gets done, not who does it.
I was trying to figure out if wchar_t can be unsigned (don't _think_ so?) so I grepped /usr/include and it's unsigned short in curses.h and unsigned long in X11/Xlib.h (which is the same size on 32 bit but NOT the same size on 64 bit), but neither of those are STANDARD header, they're expansion packages. So I checked musl, and it's a mess: it #defines _NEED_wchar_t in more than one place, which means it's pulling it out of a C compiler internal header. (Why?)
So devuan has gcc headers installed at the easy-to-remember /usr/lib/gcc/x86_64-linux-gnu/6/include (thanks EVER so much), and being gcc from the gnu/dammit project run by the Free Stallman Foundation it of course does "stddef.h:typedef __WCHAR_TYPE__ wchar_t;" BECAUSE REASONS, and that of course is "#define __WCHAR_TYPE__ int" at which point I want to punch the gcc developers in the face. (Must be Thursday.)
So that's three definitions of wchar_t, three different types, and the one we're using is the only one that's SIGNED.
I'm think I want to just rip all uses of wchar_t out of toybox (specs be damned) and just have it use "unsigned". I did a deep dive into this crap already, found out that EVERYTHING WAS BROKEN (musl and bionic are now fixed because I know the maintainers, gnu-libc can go hang), and the largest valid utf8 sequence is 0x10ffff (a million and change unicode code points) so short is too small but "unsigned" (defaults to int) is plenty.
Seriously, any type with _t on the end is windows brain damage and there's SOMETHING wrong with it, it may just be subtle enough you won't get bit by it until it's annoying to rip back out. LP64 is a good standard. Use that. (It would be nice if "long long" was defined as EXACTLY 64 bits rather than "at least 64 bits" though. Also, it would be nice if the unix.org pages on this still existed. Once upon a time refspecs.freestandards.org tried t collect and mirror stuff like this, but then they merged with OSDL to form the voltron of bureaucracy that is the Linux Foundation, and while they've still got an equivalent page I think it was last usefully updated 15 years ago? When the Linux Foundation "updated" the Linux Standard Base to 5.0 they broke backwards compatibility and distros refused to go along.)
If Google or somebody ever wanted to give me money so I didn't have to spend the majority of my time and energy on $DAYJOB I might try to put together my own mirror of useful standard material (the linux foundation one doesn't even have c99 or the real posix site (they use a stupid "sign up/pay us for access" one, which seems to have gone down), or the Linux man pages. And maybe I could even integrate it or update it into new specs. (It's kind of what I did for 6 months back in 2006 with the kernel docs page, but I hadn't even finished triaging the problem space when the Linux Foundation pulled the plug. (Yes, I applied to OSDL pre-merger, and wound up working the contract for the Linux Foundation post-merger. I got to see the sausage being made, and was not a fan.)
Sigh. When I put up my patreon page I was thinking maybe I could grow that into "I do open source full time", but... explaining the 8 gazillion things I want to DO is a full time job. Hmmm.
Look, we've been over this The reason Frodo couldn't take an Eagle to Mt. Doom is the Eye of Sauron could immediately spot the Ring whenever it had line of sight, and the Nazgul had flying mounts (I.E. "Black Wings"). They were fine when they had mountain ranges between them and it, and Gandalf could take the Eagles into Mordor to sing Hotel California as soon as the ring was destroyed, but _until_ then flying an eagle through Mordor meant Hello Nazgul. (One of the less popular Sanrio lines.) Plus any suspicion they meant to _destroy_ the ring rather than _use_ it would result in a troop of orcs being stationed on Mt. Doom. That's why Aragorn was marching around being a big distraction, and when Sam and Frodo made it in they went and marched on the gates of Mordor to pull aggro.
Seriously, J.R.R. Tolkein was in the trenches in World War I and wrote Lord of the Rings DURING World War II. His son Christopher was in the RAF, and J.R.R. himself both trained as a cryptographer and served as an air raid warden. Sam Gamgee's description of the moon had the same moon phase as the date Tolkein wrote the scene because tracking moon phase and stargazing was part of an air raid warden's job, especially after October 1940 when the Luftwaffe switched to mostly night attacks. Tolkein had sheets of moon phase and such he had to memorize. Yes Tolkein the war veteran, not-quite-spy, and air raid warden understood the importance of air power, and also the importance of radar.
Great, Android's browser changed its rendering plumbing again and now this blog only goes halfway across the screen on my phone. Bravo, guys. It's raw HTML text with no stylesheet or anything, and you're rendering it INSANELY.
I know it's not some strange tag I sneaked into a recent blog entry because it's doing it for 2018 and such, which USED to render right. Google's code changed, my html page did not. (And in fact Android 10 wasn't doing this when I upgraded to it, it's a chrome update since then that changed how rendering works. Bra, flipping vo. Golf claps everyone. Golf claps.)
The bash man page says, under command substitution, that "$(cat file) can be replaced by the equivalent but faster $(< file)", which is just... great. You can't "< file" by itself from the command line, so this is an implementation detail bubbling up to the surface, and I may have to special case it. (Dowanna special case it. Grrr.)
Huh, the 50 pound baggage weight restriction is actually an OSHA thing restricting how much one baggage handler should be expected to lift. I did not know that. (Hey, I'd tweet these if twitter hadn't gone funny. I'm told the next service I should look at is snapchat, which doesn't do this.)
Gee, ya THINK? (I did a writeup on this earlier this month.)
I need to add a "!" command to toysh as one of the builtins, but that can't use the normal NEWTOY() plumbing because !_main() can't be a function, and while I can feed any name to OLDTOY() as an alias for another command (which is how "true" is also ":"), the problem is there's no existing command to attach "!" to and I don't want to pollute the namespace with "not" or such that isn't an existing command. (There may be a "not" out there and if I don't search $PATH for it I broke somebody's script.)
You can ALMOST use OLDTOY() to call an arbitrary function because this is the implementation in main.c:
#define NEWTOY(name, opts, flags) {#name, name##_main, OPTSTR_##name, flags}, #define OLDTOY(name, oldname, flags) \ {#name, oldname##_main, OPTSTR_##oldname, flags},
... and nothing enforces oldname##_main being an existing NEWTOY(). The problem is OPTSTR_##oldname has to exist, and that DOES come from the NEWTOY() list (via mkflags.c creating generated/flags.h). In this case it should be a macro defined to NULL. I suppose I could add it to toys.h or something?
Redoing the global plumbing for this seems overkill. I could special case check for "!" in run_command() but I'd rather not? I suppose I could teach "false" to be a "!" alias? Awkward place to put it but not _that_ awkward. (Of course normal false is defined as ignoring its arguments, so it has to check for the "!" name. And I should make it check for CFG_TOYSH so it can all compile out when building false standalone. And if I do that... there's no shared code, so there's no real reason to put it there. Sigh.)
Might as well nail it to one of the existing sh.c builtins like "source", which already has to have a "." alias. At least then it's local to sh.c.
I've managed to wrench myself onto a day schedule today... at the cost of being really, really irritable.
I have no idea why the Judoon sing the One Punch Man theme song.
A reminder that ICE is entirely about racism and serves literally no other purpose.
I came up with a third way to do the patch fuzz support which is of course retroactively obvious: use toybuf[] as an array of long to record the line numbers at which fuzz lines were hit. This avoids the constant malloc/free of the linked list approach (since fuzz happens and gets undone for every line that _doesn't_ match, traversing through the patch hunk for as many lines of fuzz as we allow), and avoids the hunk size limit of the bitmap approach (even though 32k is a lot, it's still a limit). This way the limit is the number of allowed fuzz lines (times 2, because context lines are symmetrical, although my fuzz approach just allows X lines to mismatch and doesn't care _where_, any line starting with space in the patch hunk is equivalent as far as my fuzz implementation is concerned. I don't think the other approach lets interstitial context lines in the middle of a hunk fuzz? (Dunno, haven't tried it, but the man page describes silly baked-in assumptions.)
So anyway, this new approach would work up to "patch -F 512" (on 64 bit systems and 1024 on 32 bit) which isn't really a limiting factor.
Hmmm, the change is a bit intrusive and fiddly, and I really want more test patches to run through it. (This was one of the advatages of aboriginal linux, it had buckets of cruft that tested lots of corner cases. Although mkroot is a much cleaner design, it doesn't apply _any_ patches to packages, so I don't wind up naturally dumping a bunch of real-world data on my tools here. Honestly, you only test _fuzz_ by getting it _wrong_. It's hard to get it wrong on purpose in the full variety of ways nature manages by default.)
It works with the patch Elliott sent to the list that sent me down this rathole, but that just has a single fuzz line right at the start. I should test multiple fuzz lines, before and after, including interstitial context. But eh, check it in first, doesn't seem to cause a regression at least.
Remember, the reason we don't have an NHS in the USA is the American Medical Association (basically a medieval-style Doctor's Guild) killed Harry Truman's proposal for one in 1946. Since then the AMA has worked dilligently to raise doctors salaries by creating an artificial doctor shortage (leading to the rise of "nurse practitioners" to fill a little of the gap), and today the AMA is still lobbying against medicare for all. We don't allow human organ sales because "your body has a black market value around half a million dollars if properly butchered" is not a world we want to live in (although I'm happy with libertarians living in it; turnabout is fair play). Allowing a profit motive to intrude into other parts of healthcare is also bad.
Blah, way too many todo items piling up. I'm trying to cycle back to finishing the current toysh checkin, haven't finished the patch fuzz stuff yet, haven't checked in the mkroot and toolchain build changes I was doing on the plane, and I got interrupted from all _that_ by a use after free in config2help.c that I can't reproduce but hits somebody (intermittently!) on macos. And someone else is having a problem with rm I can't reproduce. Jeff of course has a half-dozen things I should be working on for $DAYJOB but I'm flaking until monday.
Tried to take a brief nap round 3pm, woke up at 9. Sigh. For some reason, I can get back on a day schedule easily in Tokyo, but here when I get on a night schedule it's really sticky.
Still recovering, but I broke down and had caffeine today to try to force my schedule back to Austin from Tokyo. (It didn't work, but I keep trying.)
One of the toybox release blocker bugs I've got is that patch "fuzz" support is broken; it applies the patch hunk when it gets a match, including the original context lines, which were _not_ the context lines when matched with fuzz. (So it reverts the context to the version that was in the patch.)
In trying to fix this, I had to re-read my patch code, and... it's a bit more "clever" than I like. I was fresh off busybox when I did that, and the balance is too far towards small instead of simple. But the other problem is the main patch applying loop does the initialization code twice, and I'm looking to add something to the initialization, and it offends my aesthetic sensibilities to have to do the same thing in two places. (Single Point of Truth and all that.)
My first guess is to use toybuf as a bitfield, which means we can't use fuzz on a hunk longer than 32768 lines long, but I'm ok with that? The other obvious alternative is to keep a linked list of the fuzz mismatch lines so you can drop them in at the appropriate place in the new hunk; if I do a new dlist structure I can trivially add a field.
Which is related to my longstanding want to replace struct double_list, which right now has a single char * data member and means 90% of the uses of the dlist functions require typecasting the pointer to void * because other than patch everything else mostly uses a structure with different contents, that just has its first two members be *next and *prev pointers. (If *next is the first member, it's a valid singly linked list. If *next and *prev are the first two members, it's a valid doubly linked list. If consecutive members are the same type the compiler can't insert padding between them, so typecast to struct double_list and the first two members must be valid.)
The obvious new approach is to have struct dlist { char *next, *prev; }; and then have the first member of other structures be a "struct dlist dl;" so you can "dlist_add(&blah->dl, new);" with no typecast. (A pointer to a structure is equal to a pointer to the first member of the structure, there can't be padding before the first member in C99.) There's code that does "blah->prev->data" and that wouldn't work with a struct *dlist that's only the prev/next pointers, but there would still _be_ an encapsulating structure you can typecast to.
What I'd really like to get away from the problem where some functions take a dlist * and some take a dlist ** (the pop and push functions that may change the list head, and thus need to be able to write to the pointer you give them, thus needing pointer-to-pointer). If you're typecasting, it's easy to feed a single pointer to a pointer-to-pointer and vice versa, and the compiler won't catch it because typecasting. But then you get an instant segfault when you do that so it's easy to spot at runtime, which is how I've gotten away with it so far. (But it's ugly.)
Anyway, this is all a tangent from doing the actual fuzz fix, which is how you can tell I'm tired. That and my new "char * plus line number members" doubly linked list is "struct fuzzymandias", my names always get weird when I'm tired. (It's the same reason as the tabsplosion, I'm not cleaning up after myself to look "adult" as fast as I'm making the mess.)
I spent today mostly sleeping. Having no caffeine since Japan finally caught up with me. (Plus all the travel.)
Back in Japan I listened to a nice audio interview with Mark Blyth, which I added to the big playlist. If I was still doing anything like convention organizing, I'd try to do an event flying in him, David Graeber, Clay Shirky, Sarah Taber, and Tony Seba. Just letting them bounce off each other in different combinations for 2 days would pretty much be a full schedule if you ask me.
Huh. I've preferred female doctors for years but I didn't know there were actual studies saying you're less likely to die with a female doctor.
Onna plane.
Flight back to the states today, flight to Austin tomorrow. I get a day in minneapolis, in theory to see Fade and my sister and the niecephews, in practice probably sleeping a lot.
Yesterday we took a train past the airport to a different hotel (in yokohama, or possibly in 1967 judging by the hotel's decor), so we could have a morning meeting with chip fab people (without getting up at 6am to take the long train ride then), and today we took a train _back_ to the airport for the flight. But first we hung out in "Kawasaki" for a few hours, which was odd because that was also the name of a co-worker a couple years back.
Closing tabs: This is a really good thread. And this is perfectly normal, nothing to see, move along. Once again Boomers lament what a disaster it would be if young people did what Boomers have been consistently telling them to do. (Guys, Japan spent 20 years trying to dig out of this exact problem. Germany can only manage by exporting its problems to other countries.) Also, Justice Ginsberg is too old. (I strongly suspect Bloomberg's policy announcement to let old people die to control healthcare costs is laser-focused from Evil Billionaire Think Tank Du Jour to appeal to millenials and younger. He assumes senile Boomers are gonna vote nazi anyway, teaching an old Boomer new tricks is not a viable electoral strategy, you've gotta shout 'em down. He's still wrong (on this and so many other things), and even if he wasn't I still refuse to support a billionaire's decision to literally buy the presidency.)
I had to add a bug workaround to mkroot because distclean gets confused by cp -sfR and nobody on linux-kernel seems to care. Oh well. (Is that still where you report bugs? There was an lwn article about changes in kernel communication mechanisms but it was paywalled and I never went back to read it after the paywall expired. Speaking of paywalls and working around them, David Graeber's Against Economics was a good article back in December, and given the arguments it makes it being behind a paywall after the first month is officially ironic. Luckily archive.org has it.)
Meanwhile I sent Rich a bug report yesterday (his "cowpatch" script was being confused by ,1 being optional in patches), and today he emailed me that he'd fixed it. So there are still people responding to bug reports. they're just not on linux-kernel.
Finally implementing the "set CONFIG_EXPERT, then switch OFF other config symbols" plumbing in scripts/mkroot.sh. Taking out CONFIG_VT makes the /dev directory a LOT easier to understand (which was the initial motivation for doing this: the symbol is selectable but they WON'T LET ME because they know better than I do what I'm trying to accomplish. Grrr).
Next I'm going "you know, I've wanted to have the option to disable CONFIG_BLOCK for ages. The linux kernel is a giant bloated MESS, my "fairly close to allnoconfig" build creates a 2.7 megabyte _compressed_ bzImage from a 14.6 megabyte vmlinux file (which strips to 13.6), meaning running an x86-64 kernel in 4 megs of ram seems unlikely.
Not Buttigieg. Not Biden. Not Bloomberg. And by the time you get to Bernie... being asked to choose between FOUR WHITE DUDES BEGINNING WITH B means something is systemically WRONG.
Bernie would be 79 years old by election day, and would turn 80 his first year in office. He's never built a coalition in his life, and in his 30 years in congress only 7 bills he sponsored ever became law.
Let's look at this 30 years of legislative achievement, shall we? Three of his bills didn't do anything: two named post offices, and a third declared March 4, 1991 to be "Vermont Bicentennial day". That leaves four that MIGHT have done something.
The most useful-seeming of Bernie's bills slightly expanded a national forest in his home state of Vermont back in his first year in office by such a trivial amount the Wikipedia page on that park doesn't even mention the new area. Except his actual bill died but another bill did the same thing, so it's counted as "passed" in the above list.
Another of Bernie's bills granted the consent of congress to existing Vermont legislation negotiating water use quotas with New Hampshire. Not so much a bill as a rubber stamp for an existing bill, and once again Bernie's bill died and instead congress passed Vermont senator Patrick Leahy's bill doing the same thing. But "Bernie proposed a bill" and "congress eventually did that thing" is all it takes to get a win here, and it was a thing that probably should not have NOT happened, so yay?
The other two bills Bernie got passed were about the military, except they weren't really his bills. It's nice that in 2013 Bernie cosponsored veterans legislation with Mitch McConnell (amending existing legislation in a way the bill didn't even bother to summarize) but that wasn't really _his_ bill, it just let Mitch put out a press release about bipartisanship that didn't even mention Sanders by name. And in 2013 Bernie introduced a veterans disability cost of living adjustment, which again was an excuse for multiple republicans to put out press releases about bipartisanship without mentioning Sanders by name.
The timing of Bernie's 7 bills is also interesting: he passed two in his first session of congress (the 102nd), a total of two more over the next 7 sessions (his "me too" to Patrick Lehy's water use bill was in the 104th and he named a post office in the 109th, but got nothing in the 103rd, 105th, 106th, 107th, 108th, 110th, and 111th). And then Bernie got THREE in the 113th, right before he spent most of 2015 and 2016 running for president. This included both of his "this is actually a republican military bill he's letting them call bipartisan", plus one of his bills naming a post office.
It's a bit hard to for me get excited about this legislative record.
Meanwhile, Elizabeth Warren chaired the congressional oversight panel in the 2008 bailout back as a Harvard Law Professor, and was so outraged she got the consumer protection credit bureau created the next year, and only became a senator when republicans wouldn't let her run the new bureau. And SINCE then she's gotten nine bills she sponsored enacted. That means Bernie got 7 in 29 years, and Warren got 9 in 7 years. Yes half of the bills Warren's gotten passed are also fluff, but half of hers _aren't_, and keep in mind half her tenure in the Senate has been under the current kleptocratic administration (Nevertheless, She Persisted).
Bernie Sanders first ran for Senate in 1972. He is a career politician who has never been remotely effective at the job he's held for 30 years, and NPR's piece titled "Bernie Sanders has stuck to the same message for 40 years" came out 5 years ago.
Warren is 8 years younger than Bernie, left a tenured position as a Harvard Law Professor within the past decade to become a Senator because there were specific things she wanted to accomplish, and she is VERY good at doing her job.
Bernie, Buttgeig, and Bloomberg would be ACTIVELY HARMFUL. (Maybe not as much as the current clown, but that's damning with faint praise.) Bernie has been all talk and no action for longer than I've been alive, and his supporters main argument for him is that he "inspires people". I.E. we need a left-leaning charismatic white male septuagenarian blowhard to counteract the OTHER side's charismatic white male septauagenarian blowhard. Bernie's gotten nothing done in the past half century, but in a way that's admirable because... he's an old white male who graduated from a private college in 1964?
Warren gets things done. She has a plan for that, and nevertheless she persisted. I don't want a figurehead, I want Elizabeth Warren to become president of the united states. For once this isn't a vote against, but a vote _for_. It's not a tactical choice, it's who I want to see run the country.
Huh, I knew London's economy was primarily based on money laundering but I didn't know that the majority of its import/export trade was ALSO just money laundering in disguise.
In the US the financial industry caused the 2008 financial crisis and they're still at it but the UK doesn't seem to have much else left in its economy? Brexit was apparently a scheme by billionaires to avoid the EU's crackdown on corporate tax avoidance, which puts the UK in a bad spot now they've thrown away their veto power of the EU's blacklisting of their tax havens. (All the people saying we can't afford basic income should watch the video in that first link about how lots of people and giant machines dig up thousands of tons of ore to refine out traces of metal, transport it halfway across the world through an elaborate trading network, just to bury it underground again elsewhere. The gold serves no actual purpose, nobody eats it or builds with it or even uses it for trade -- money lives in computers these days. It just gives the people _permission_ to literally move mountains. IT IS A SOCIAL CONSTRUCT. Our modern religion.)
Today I got an email from someone who stumbled across an old blog post and asked:
> My main question is if it is still not possible to set a different limit > than 50% of total RAM for rootfs in initramfs after you introduced tmpfs > as rootfs.
To which I replied:
Dunno. I've stopped trying to engage with the linux kernel mailing list because reasons. I tried again a couple months ago, but it didn't end well.
At runtime you can do something like "mount -o remount,size=60%" but that doesn't help if your initramfs.cpio.gz goes over quota.
Adding a way to address that has been on my todo list forever, but... lkml. I did recently note that the "init has no stdin/stdout when initramfs.cpio.gz didn't have a /dev/console" problem seems to have been fixed in newer kernels? That's nice. Only took 3 years after I reported it.
Speaking of which, I'm trying to force myself to submit talk proposals to ELC, and I just... don't want to? It's in my hometown, I don't have to pay to travel there or for lodging (modulo the whole "will I still be there or have to fly back from Tokyo" thing), but... sigh. I should submit a redo of my 2017 "simplest possible linux system" talk. The description I wrote up for that talk said:
Building the simplest possible Linux system
This tutorial walks you through building and booting the simplest possible Linux system, first under QEMU and then on real hardware. We cover kernel configuration and building, native vs cross compiling, initramfs creation (and other root filesystem options), installing and booting, the init process and system bringup, running an app, adding an example server (sshd), and finally we'll add a native toolchain to compile "hello world" on the target.
And... it didn't, really. As mentioned before, I was SOOOOO jetlagged I didn't manage to edit my notes into a coherent order, and got through maybe half my material in a disappointingly disorganized fashion. (Behold my incoherence.)
I suppose I could just resubmit that description, but A) I'm not sure how to say "give me another shot at this" without badmouthing my own talk, B) it's not what I've been doing recently? What have I been doing recently. Let's see...
Building and booting Linux in a 250 line shell script.Here is a 250 line shell script that builds a working Linux system from source: https://github.com/landley/toybox/blob/master/scripts/mkroot.sh
The script uses only two source packages: the linux kernel itself and toybox (android's command line utilities, which android uses to compile itself). The script creates a one line wrapper to boot the new system to a shell prompt under QEMU on each of a dozen supported architectures.
For comparison, Linux From Scratch 9.0 is a 368 page PDF that requires downloading 86 packages to build the base system according to the instructions. This talk explains the difference between the two, and the work underway to be able to download and build Linux From Scratch at the mkroot shell prompt.
Eh, it's _true_ but the LFS snark would be much more effective if I was already at the "and it builds LFS under itself" point, which needs an awk implementation and promoting several things out of pending. Plus lex and yacc now thanks to the kernel guys deciding kconfig needed to be turing complete and have the ability to "rm -rf ~" because why not? I think the new shell's 2/3 of the way done, but can't rule out Tom Cargill's ninety-ninety rule.
Anyway, I submitted that talk proposal. When I actually want to go to a conference I generally submit 4 talk proposals and let them pick the one they like, but in this case I could barely manage the enthusiasm (sarcasm?) for one. I'm up for doing the work, yes. But jumping through Linux Foundation hoops to convey old news is a janitorial task, and when I have to fill out forms to convince a committee to give me permission to do so? Wheee.
I should just do youtube videos, but I seem to have a preemptive Cheese Sandwich Problem. In _theory_ the videos I need to produce are something other people could eventually someday care about, but right now they don't, because I haven't done them yet.
I have said for YEARS that you don't get waterproof by plugging the holes in a collander. Insert obligatory Antoine de Saint-Exupery quote here.
Meanwhile, the reason for the Clue quote in today's checkin (other than Mrs White being apropos for "My Little IFS: Whitespace is Magic") is that it's a huge pain to figure out WHY it's doing that in that test, and it's basically internal implementation details bubbling up to the surface (and REQUIRING other implementations to work that way).
IFS is the shell Internal Field Separator, which I've never used but has been there forever and is in posix so I have to support it. It's the list of characters (yes I'm supporting UTF8) that separate words for certain kinds of shell parsing, and is completely ignored for others. It kicks in after variable resolution, in backtick output, and a bunch of other places. (But of course NOT for breaking command line options into words when running commands.)
IFS works like this:
$ IFS=x; A=xabcxx; for i in $A; do echo =$i=; done == =abc= ==
Yes $A added zero length arguments without quotes. Welcome to IFS.
When IFS isn't set, it's equivalent to " \t\n", and whitespace characters are MAGIC. I don't mean "the shell is resolving the \t and \n here even though it doesn't anywhere else" (although that's true), I mean whitespace IFS characters accept RUNS of characters as word separators, and it's ANY whitespace character in the list. (So if you say IFS="\t\n" it'll accept \t\n\n\t\n\t as a single run of whitespace, but the first actual space character in there will stop it and be treated as a literal. Yes I'm teaching it to accept the non-blank UTF8 whitespace from Nanny Oggham although I'm not adding it to the default 3 just yet).)
And this "runs" thing does _not_ add blank entries, although other parts of the variable resolution logic can:
$ unset IFS; A=" abc def "; for i in ""$A""; do echo =$i=; done == =abc= =def= ==
But note that """"$A"" doesn't have _two_ empty arguments at the front, it's the transition from "quoted context" to "unquoted context" that flushes a zero length entry. And in fact:
$ A=" abc def "; for i in ""x""$A""; do echo =$i=; done =x= =abc= =def= ==
The "we previously saw quoted material" status is flushed by the separator splitting/commiting the argument, the whitespace run elimination won't proceed into previous material before the variable being expanded, and the previous material (despite being zero length) has a "seen quote" status attached, so is committed as an argument.
Except sometimes, there's a "do not split the argument" status, in which case they're glued together with a space. The most obvious one is when the argument is in double quotes, although there are others:
$ IFS=x; X="onextwoxxthree"; y=$X; echo $Y one two three
So here's where it gets weird:
$ cc() { echo =$*=; for i in $*; do echo -$i-; done;}; cc "" "" = =
Here's the test that explains what the heck was happening there:
$ cc() { echo ="$*"=; for i in =$*=; do echo -$i-; done;}; cc "" "" = = -=- -=- $ cc "" == -==-
The =$*= wasn't expanding to "= =", it was expanding to "=" "=" as two arguments. "$*" by itself is expanding to a single space because the quoted empty argument is flushed, a space is added after it, and the next quoted empty argument is flushed.
The annoying/inconsistent part is no output without the flush:
$ cc() { for i in $*; do echo -$i-; done;}; cc "" "" "" "" "" $ cc() { echo =$1$2=;}; cc "" ""
So it really _looks_ like the next test after my "Flames" comment should produce == instead of = =, but it's introducing a _split_ not a space, then the = gets flushed because it's _not_ empty, where an unquoted empty string would be discarded.
I'm making it work, I'm just not happy about it.
I have a japanese residence card, good for 5 years. Picked it up today. I no longer need to carry my passport around with me, the card covers it. (I need to get and register a residence address to be fully in the system, though. I.E. a tokyo apartment.)
ELC's call for papers deadline is today. Their submission form now has an "is this a technical talk yes/no" question. That's a succinct summary of what the Linux Foundation has done to ELC right there. (Alas, I expected this back when the Linux Foundation took over.) Oh well, I should apply anyway...
There's a fairly good battery tech explainer buried in this video, but of course it's wrapped up in the energy/transportation version of "Microsoft is buying up all this technology, let's explain it as if they're inventing it rather than scouring the world of competition and using their existing financial resources to take and take and take". Anyway, that video links to a previous video about another innovative company/technology that just got slurped up by the Big Money. (I kinda doubt the average tenure of their employees being 14 years is likely to continue under the new regime.) I do not consider the ability to throw money at a problem to be laudable, especially when "because you're a billionaire we'll extend you unlimited credit if you overextend yourself" kicks in. The rich can't run OUT of money.
Meanwhile, antarctica is currently room temperature. (You know all that polar ice? Yeah, about that...) And as far as I can tell australia's fires only subsided because there's nothing left to burn.
The coresemi.io domain seems to have expired at midnight eastern (so around 2pm here) and Jeff immediately renewed it, and they charged his card ($75 which is an insane amount for a year of a domain name), but then the domain didn't renew, and when 8am eastern rolled around and people got into the .io office (Indian Ocean, so of course they're on the east coast of the USA) they demanded they demanded an additional $350. Jeff explained that the .io domain is what the bitcoin guys insist upon (you're not a _real_ blockchain without an .io domain), and thus the whole thing has turned into a scam to bilk people. Great. (We can move to another domain, but not with our contact email down. Sort of a catch-22 there.) Personally, I think this is why challenging credit card transactions as fraudulent was invented.
The cat. Her name was George. Sigh. It's not _surprising_ George died. She was a 17 years old and
had health problems for many years (special diet to avoid kidney crystals,
daily heart pills, twice daily thyroid pills, a special cream to
rub on the persistent rash covering half her belly, and they were
monitoring her liver function). She was perpetually
overweight before the thyroid thing and always profoundly sedentary. (This
is the cat who would open a cabinet, crawl in, close the door behind her, and
voluntarily sit there in the dark for hours.) She's been eating grass
and barfing at every opportunity for a year. But still. Cat. Fuzzy is kinda shook up about it, George has hung out
on her bed more or less 24/7 for years now. See "sedentary", above.
Fade did a very nice eulogy.
I still haven't got my twitter account back. It's good to know "Ok, Boomer" is still torquing off the Boomers.
(Speaking of which, I'm told Bubblegum Crisis is a classic anime about boomers
going insane and being fought with heavy artillery, and I should definitely
watch it sometime.) Wrestling with $IFS. It's kind of terrible. (Whitespace is magic.)
I'm going through the bash man page trying to find a case where parameter
expansion and quote removal don't go together, and I found one:
"case word in pattern)" doesn't say quote removal is done for pattern.
But I tried case x in "A") and the quotes were removed. I still hate $IFS, but I now have a much more informed hatred of $IFS.
(It's the shell Internal Field Separator. Yes, you can split words based
on something other than runs of whitespace. No, "IFS=abc command" doesn't
work to change it just for a single command. As in it changes the variable
for the child process AFTER the command's arguments get parsed using the
old value of $IFS. I'm very tempted to change that for toysh, but that
would probably break some existing script somewhere.
Also, I have a todo item for adding array support to
let IFS be an array variable in which case it's not JUST characters but
strings it breaks on. Doing that would fix up the magic whitespace thing
where runs of whitespace
get removed _and_ leading matched whitespace in the separator takes out
empty previous arguments so they don't get added to argc[], but
non-whitespace separators only match a single character _and_ it adds
zero-length arguments to argc[] (like "" does) when it's the first thing
or two of them happen in a row. See "still hate $IFS", above. I was supposed to fly back today, but my visa isn't ready yet (current
estimate is Friday), especially since today is "National Foundation Day"
(Japan's version of July 4, except their 1776 is 660BC) so the person
processing the visa wasn't in today anyway. (And she doesn't work Mondays.) We pushed the hotel back a week, and got another week of hotel. On the
bright side, this flight we managed to arrange a day layover in Minneapolis
so I can see Fade and my sister and the niecephews. Did you know that buying a seat on the Linux Foundation Board of Directors
costs $500k per year? They don't phrase it like that, of course, they say that
buys you "platinum membership", and then later say all Platinum members
get a board seat. But that's literally what companies
do when they buy those. The current board is literally
described
by company. I proposed introducing two members of the j-core community who've been
mailing me off list to each other, and Jeff's immediate response
was "No! No no no, don't do that..." without further explanation. This neatly
summarizes J-core community management to date. I have a local patch to rip fork() out of musl for nommu builds
(something Rich will never accept), and this breaks the fixincludes
build in gcc 8.3 because it hasn't been regression tested in forever.
It's easy enough to fix (change one fork() to vfork() and add
--enable-twoprocess to GCC_CONFIG_FOR_TARGET right after --enable-fdpic.
(Honestly, --enable-fdpic should do it itself, but that would be getting
a patch upstream into gcc which would involve signing copyright
assignment paperwork which ain't happening.) I submitted the --enable-fdpic
to Rich so I'm not patching musl-cross-make in mcm-buildall.sh, and he
rejected it because fixincludes builds for him and as he
complained on his blog fixincludes
is terrible and shouldn't exist.
(I agree it's terrible, but if you rm -rf fixincludes in the gcc source
before running ./configure (which works for the same reason extracting
binutils and a dozen other packages into the gcc directory and building them
all as one package works; there's a zillion references to sub-packages
in the gcc makefile but they're all guarded with "maybe" plumbing that skips
them if they don't exist), then the headers don't get copied at _all_ and
the resulting toolchain has no gcc headers and doesn't work. Sigh.
Possibly the fix is rm -rf fixincludes but then having a small script
cp -a some directory?) I stripped down a shell function that was testing command line argument
parsing to turn it into an sh -c invocation that would test the same argument
parsing in a different context, and I left a trailing ;} in the -c string
(left over from the function), and I accidentally ran the Defective
Annoying Shell instead of bash, and _that's_ why it didn't notice the error: I was staring at that when I noticed, going "there's no way bash is
getting that wrong", and indeed bash spots it just fine: Dash continues to be crap, but we knew this. (Yes, for some reason the first non-option argument to sh with -c
becomes $0. Posix!) Ok, following up, here's an analysis of what toybox does
and doesn't replace out of Linux From Scratch, using
LFS 9.0 chapter 6. (Before I start, may I just say that the existence of libasprintf is a damning indictment of everything C++ has ever tried to
do or be in its entire history. Most people aren't learning C anymore because the C++
people scream up and down if you do, but the ONLY thing wrong with C is
that C++ exists, and C++ is
very
bad
language a lot of people have
stockholm syndrome about.) Here are the packages toybox plans to provide complete-ish replacements
for, with pending commands in square brackets, and notes about what we _don't_
implement. (Each "see also" note means this package also installs shared
libraries. Toybox probably
_can_ provide equivalents for a lot of these libraries, but why?) Commentary: toybox init doesn't do runlevels, man and vim are just the
relevant commands without the piles of strange overgrowth, and if you want
to call a toybox binary by another name you can create a symlink to a
symlink. If somebody really wants to argue for "gzexe" or similar, be
my guest, but there's a lot of obsolete crap in shadow, coreutils,
util-linux... I have no idea why LFS is installing inetutils instead of net-tools
(which contains arp route ifconfig mii-tool nameif netstat and rarp that
toybox does or might implement, and plipconfig slattach that it probably won't.) Packages toybox plans to provide partial replacements for, as in some of
our binaries provide replacements but there are other useful binaries this
package provides that toybox does not (generally out of scope for the
project): Toybox should decompress multiple formats, but the only compressor
we're providing is deflate (gzip/zlib).
The problem with e2fsprogs is I haven't got a good handle on ext4 yet.
The "qcc" reference is because someday I'd like to glue
QEMU's Tiny Code Generator to Fabrice Bellard's old Tiny C Compiler
and make a multicall binary that does cc/ld/as (then use the
LLVM C Backend
to compile LLVM itself to C for use as a modern replacement for
cfront).
Until then things like objdump -d
(requiring target-specific disassembly for an unbounded number of architectures)
are out of scope for toybox. (This means drawing the line somewhere between
architecture-specific support in file and strace, and including a full
assembler for each architecture.) The list of LFS chapter 6 packages toybox does NOT replace is:
linux-api-headers man-pages glibc
zlib readline gmp mpfr mpc gcc pkg-config ncurses acl libcap
psmisc iana-etc libtool gdbm gperf expat perl XML::Parser
intltool autoconf automake gettext libelf libffi openssl
python ninja meson check groff grub libpipeline texinfo. That said, we implement our own zlib and readline replacements, and
presumably _could_ export them as library bindings. Plus we provide
our own version of a bunch of section 1 man pages.
Possibly libcap and acl are interesting? The kbd package has over a dozen commands, we only implement chvt. The
iproute2 package implements over a dozen commands, there's an "ip" in
pending but I'm not a fan (ifconfig and route and such should be extended
to work properly). We don't implement eudev, but I wrote busybox mdev
way back when (which replaces it) and plan to do a new one for toybox
as soon as I work out what subset is needed given devtmpfs. Oh good grief, you know a thing is coming and then when it does people
invent endless justifications
why the real reason we all knew years ago can't possibly be why it's
happening now. We knew years ago exactly why hospitals in republican-controlled
areas were becoming insolvent and closing. It's because GOP legislators
sabotaged them, preferring to see their constitutents die en masse
(which ironically serves their political goals) than
Obamacare succeed. The backstory is that in the 1980's hospitals could refuse to treat people who couldn't pay,
who would then literally die on the sidewalk outside the emergency room,
and it turned into a big scandal. In response congress
passed a law
(which even Reagan was forced to sign because the PR disaster was _that_bad_),
requiring emergency rooms to at least _stabilize_ somebody before
discharging them, and to pay for it the federal government gave hundreds of
millions of dollars of subsidies to hospitals. (GOP loons in the pay of
billionaires, who are trying to destroy the government so we collapse back into
feudalism and they can be kings, insist this is an "unfunded mandate" because
the subsidies are not directly tied to the mandate. I.E. they don't waste
money tracking each patient given care and working out how much that
should cost, but just periodically cut them a large check.) 25 years later Obamacare redirected those subsidies to medicaid expansion,
which the hospitals didn't mind because they still got the money through a
different channel... except GOP legislators went to the supreme court to
block the medicaid expansions in their states. The problem is, the subsidies
didn't come back when they did this. If they refused to receive
the same money through the new channel, their state's hospitals just didn't
get that money at all anymore. Which turned it _into_ an unfunded mandate
in those states. This left hospitals in a bind: they're still
required to treat anyone who shows up at the ER
(which is now a LOT more people if nobody has insurance, so they only go
at the last minute when the alternative is dying), but the federal payments
they were getting for this went away in GOP-controlled areas. Hospitals have compensated by randomly
gouging everyone who _does_ pay them, but it's a drowning
victim climbing on top of nearby swimmers and
dragging them down.
(And this is aside from the way the American Medical Association decided
in 1970 to raise doctors' salaries by creating an artificial doctor shortage and they've
kept up
the pressure ever since,
constantly warning of a
glut of physicians.)February 13, 2020
February 12, 2020
February 11, 2020
February 10, 2020
$ sh -c 'for i in a"$@"b;do echo =$i=;done;}' 123 456 789
=a456=
=789b=
$ bash -c 'for i in a"$@"b;do echo =$i=;done;}' 123 456 789
123: -c: line 0: syntax error near unexpected token `}'
123: -c: line 0: `for i in a"$@"b;do echo =$i=;done;}'
February 9, 2020
February 8, 2020
So a video about why hospitals are closing that ignores the reason we've known about for most of a decade now is kinda stupid. (This kind of blind spot is not new but still annoying. Employers in the USA offered health insurance during World War II to work around the wartime salary caps when trying to hire "Rosie the Riveter" away from their competitors while all the able-bodied men were deployed overseas, that's where the USA got its tradition of employer-provided health insurance other countries don't have. How can that video talk about the rise of health insurance at the 3 minute mark without mentioning that?!? Yes years later Reagan allowed HMOs to buy up all their competitors and corner the market, in healthcare as with everything else, but the rest of the world had National Health Services decades before that. In civilized countries the ambulance is like the fire truck, it doesn't refuse to come if you don't have the right employer-provided insurance, nor does it provide you with a giant bill afterwards. The libertarian loons insisting that everyone's lungs should be coin-operated because allowing air to be free would be morally wrong are literally profiting off the pain of others. After all, didn't Jesus charge the lepers 30 pieces of silver each?)
Me, I'm still waiting for the Boomers to die. Our entire trajectory towards becoming a nazi autocracy is 100% the Boomers' fault, and the only thing likely to fix it their collective death. The collapse of the healthcare system can only bring the LD50 of the Boomers closer. (Half of all Boomers in the US were born before 1955, the actuarial tables put the average lifespan at 79, meaning half of them should be dead by the end of 2034. Until then, they'll get increasingly deranged vanishing into racist-grandpa off-my-lawn kids-these days caricature. And use anyone punching _back_ as retroactive justification why they were so horrible in the first place.)
It's ironic that automating away all the jobs is even putting stock traders out of business. The billionaires financializing everything create zero real jobs, it's BS jobs or nothing.
It occurred to me recently that bitcoin is basically horse racing. Some people created a betting channel and got people excited about it, and it's a zero-sum game but they skim off a tiny amount of the money going through it. Ten years ago it was online poker, but when that got outlawed it was replaced by day-trading cryptocurrency.
The ballooning of billionaire assets started with Reagan cutting the top tax rate from 70% at the start of his presidency to 28% by the end of it. If you get a graph of the assets of the 1% and the national debt, the two graphs literally mirror each other, it's the same money. But they quickly ran out of places to PUT all that money (without losing value each year to inflation); there's no investment that can absorb the sheer dollar volume the US government is printing. (Yes they're printing it, when the Treasury Department sells bonds to the Federal Reserve, the fed is buying them with newly printed money, that's how the federal government has funded its operations since Reagan stopped taxing billionaires: by printing money.
So several things happened. First civilians (now rebranded "consumers") were all issued credit cards at double digit interest rates, so billionaires could act as loan sharks to the entire US population. Second banks lobbied to lower capital requirements meaning they could loan out more money than they actually had (adding money to your account is just editing a number in a computer; if you then transfer that money to another account within the same back, no money ever leaves the bank. And if it does, the bank can borrow unlimited amounts of money basically for free from the federal reserve which again prints the stuff so can never run out. (In this case creates it electronically, there's a lot more "money" in the world than cash in circulation). Which meant money became a completely fictitious quantity that any bank could create on a whim, and if there was a run on the bank ala Mary Poppins the federal reserve's official money printing capacity would bail it out. (Assuming they hadn't donated twice as much to democrats as republicans and then had a crisis while republicans were in office, which is what happened to Lehman Brothers. The GOP has used its turn as referee to hurt the teams it doesn't like since Richard Nixon sabotaged the vietnam peace talks to prevent Johnson's reelection, and then Reagan did it again with the Iranian hostage crisis to undermine carter's reelection. The Democrats still trying to be impartial are Charlie Brown kicking the football.)
Third, the banks invented new categories of assets called "deriviatives" which are bets on bets. A derivative is a claim against another asset, with a dollar value attached. The classic old types were insurance policies (If future thing happens I get money, but if it doesn't I don't), which expanded to things like "put options" and "call options" (paying money now for the right to buy or sell a stock at a certain price on a future date, meaning an insurance policy against the price going up or going down. If the stock doubles and you have the right to buy it at the old price a year from now, you can sell that right to somebody else today for the price difference times the number of shares it's good for... except the price might change again before then so there's bidding up and down based on guesses about the future). But then in the 1980's the invention of "mortgage bonds" (which were described in the book Liar's Poker which I once wrote a review of) kicked off a revolution in derivatives: they could be made from _anything_. Soon they were creating derivatives of derivatives, which acted as places for billionaires to park money. (It's the same general principle as the art market where what things are worth are literally what rich people say they're worth, and then you can get an insurance policy from a bank to give you that much cash back if they _stop_ being worth that much.)
So the message from the 650 billionaires who own the USA is that we can't possibly afford basic income, but they can just assert a banana duct-taped to a wall is worth 6 figures and suddenly it is. Because they're rich, and the rest of us aren't, so there. They have money _because_ they have money, it's not even compound interest at this point it's a patent of nobility. If something happens to their assets they get a multi-trillion dollar bailout from the printing presses, at the same time as they literally commit bulk fraud against the debtors who weren't bailed out (the robo-signing scandal was that when the banks packaged up the loans into mortgage bonds they threw away the actual legal documents they were legally required to keep if they ever wanted to forclose, and then when they did want to forclose they literally forged new ones and hired random interns to sign them, so that when people sued the interns would take the fall). And then the people who committed that fraud took over the government and got put in charge of regulating their own behavior.
This is why the guillotine was invented, but it still seems like everyone's waiting for the Boomers to die of old age before we get to tackle climate change, student debt, the healthcare system...
Taught mcm-buildall.sh to apply the patch I came up with to build a proper
nommu toolchain for sh2eb (removing the broken fork() that lies to compile
time probes for nommu). The #ifdefs
I added are checking for SH_FDPIC because that's the symbol that was set
in the toolchain that I wanted to build; making this properly generic would
involve testing dozens of #ifdef symbols (per-arch FDPIC and binflt)
which is why everybody just checks for the presence of fork(). Also added a #define __MUSL__ to the patch in features.h while I was at it.
(I didn't revert the rest of my disagreements because I've already
worked
around most of it, but that was just low-hanging fruit.) The downside is nobody's regression tested building a native nommu
toolchain, and fixincludes is broken. (It's broken with Rich's failing fork
stub too, but it's build break vs runtime failure that gets ignored.
Either way it doesn't actually _work_, but the other failure's
harder to notice because it compiles a malfunctioning executable.) Ooh, toysh edge case and legitimate behavior difference from bash: The difference is that /proc/self/stat is opened by the toysh parent
process _before_ the fork and inherited by the child, but in bash the
fork() happens first and then the child does the opening (and
associated error handling if the file doesn't exist). So the awk in bash
is seeing the PID of the bash instance that called -c, and the awk in
toysh is seeing the PID of the host shell that did the echo $$ before
calling toysh. And I think this is a legitimate difference and I'm ok with it?
The reason I did it that way in toysh is to support nommu, which bash doesn't
care about. I don't want to do any more than necessary between the
vfork() and exec, so I moved all that work into the parent process
before vfork(), and wrote code to clean it up again afterwards. It
complicates signal handling a bit, but I'm pretty sure I know
how to handle all that and it's kind of how I'd need to do it anyway.
(The signal handlers have to return and
the callers check global status variables they set anyway to get the
resource allocation and freeing right, siglongjmp()
out of signal handlers is a pile of resource leaks waiting to happen.) The downside is I was trying to use this to say "what PID is this process"
to show that { } and ( ) were behaving differently. I think I still can,
but it's a bit awkward getting the comparison value since "readlink /proc/self"
gives you the PID of the child process that exec()ed readlink and then
exited again? I suppose I can "(exec echo one; echo two)" and compare that
with { }. There's also "(exit 1); echo $?" once I implement $? support. Look, not
Biden, ok? Quote from that 30 year old video:
"The voters are going to have to decide if [Joe Biden] is dishonest or dumb".
David Graeber was right
about the burned out old centrists
insisting that selling out
was actually "growing up" when it wasn't, it was
just cognitive dissonance. You can't fix anything by appealing to
Boomers,
they have
become
the problem and you can only counter them until they die of old
age. I'm working on a musl patch to make it work on nommu (chopping
out the broken fork() that always returns -ENODICE but whose presence
prevents programs from autodetecting nommu systems so they can vfork()
instead), and I wondered what it would take to make bionic more nommu friendly,
so I had to do the magic "repo" dance again. (repo pull? No. repo update?
No...) Wound up looking up the
instructions
again (repo sink like a rock, got it) and downloading a fresh copy, and the page
says I can do -j but the repo command I just downloaded says unrecognized
option. Years ago I watched the first movie of Jar Jar Abrams' Star Trek reboot
in theatres, but didn't bother to go see any of the later movies because
it was full of sound and fury signifying nothing. It was passable generic space
opera, but not particularly memorable and wasn't particularly Star Trek
either. Jar Jar Abrams later did a Star Wars reboot, which I saw the first one
of in theatres, and didn't bother to go see the next one because... meh?
Rey was interesting, but the rest of the movie wasn't really. The elements
of the original they brought back just served to _undermine_ all the new
characters. The whole "death star but more" concept was simultaneously
repetitive and silly. (No more orbiting the rebel base, instant kill of
everything everywhere without moving! That'll show 'em.) Han's return was like
"Indiana Jones and the Crystal Skull". Leia had like 3 lines and stayed
home rather than adventuring (and apparently had done so for decades while
ex-General Han had gone back into the low-rent smuggling business but
that character dynamic was never investigated in any way), Luke was a
McGuffin not a character (a non-speaking role!), 3PO/R2 were just fanservice.
As with the Abrams Star Trek half the decisions
ONLY made sense as a nostalgia vehicle aping better movies.
(And judging by China, the new
films don't seem to work at all without the nostalgia, or at least no
better than the vast majority of the DCEU; lots of advertising gets a
certain number of butts in seats but not repeat viewings or positive
word of mouth.) When The Last Jedi came out, I was annoyed that Disney went full-on
monopoly leverage
exploitation against theatres everywhere so thought I'd at least wait
out the opening weekend... and then never bothered to see it. I remembered
seeing the Phantom Meanace in theatres, being disappointed, and then hearing
how much worse the next one was and not seeing it. I thought I might
watch it on video, but then Avengers Infinity War
pissed me off
and I swore off everything disney (which was getting a
bit big for
comfort anyway, and see also the monopoly leverage thing). But I heard good things about The Last Jedi. As with the Star Trek
reboot, when
Abrams wanders off and hands the reins over to someone else the result
can be good. And that one was available on
Netflix to watch on my phone, so I thought maybe I'd watch it sometime
and see the sequel in theatres (but again, no rush if it was contractually
obligated to be in theatres for at least a month)... but then for the
third one Jar Jar Abrams was back in direct charge, and they cued up the
Game of Thrones people to make the sequels to _that_ one right as those guys
faceplanted, and I thought I'd wait to see what people thought of it... And it
was
apparently
outright
nonsensical
DCEU
levels
of
bad, so I wound
up not seeing it at all. But it took me a while to confirm that, because there'd been such a huge
misogynist blowback against the second movie (from both gamergators and
russian trolls, and in fact if you watch all the
above playlist youtube's algorithm goes to dark anti-feminist places).
But apparently as with
James Gunn
Disney's executives fell for the trolling and "Rise of Skywalker" was
the _result_. The dumb of this new one is _because_ they repudiated the previous movie
that pissed off all the right-wing loons. (And of course the loons
are blaming Kathleen Kennedy instead of Jar Jar Abrams. Sigh.)February 6, 2020
February 5, 2020
$ echo $$; bash -c "echo \$\$; awk '{print \$4}' < /proc/self/stat"
8191
8238
8238
$ echo $$; toysh -c "echo \$\$; awk '{print \$4}' < /proc/self/stat"
8191
8244
8191
February 4, 2020
February 3, 2020
Ha! Changed the page title to 2020 and it's only February.
Remember, George W. Bush's TSA is completely useless, which is not news and never was.
So I'm trying to work out how toysh should handle subshells. A nommu system needs to make the subshell decisions earlier in the parsing, because it has to gather up a todo item and pass it to a subshell through a pipe instead of doing it and then forking after the fact, but that's not a big difference?
The real question is what _is_ a subshell. Obviously (commands; in; parentheses) are explicitly a subshell, but command | pipelines are implicitly in a subshell... except it hasn't got a _shell_, exactly? Bash doesn't fork a child bash that manages those child processes, they're just child processes. Except the child processes can be large chunks of shell function, as in the common "cat | while read i; do stuff; done" pattern where the while body is its own process. (The variables it sets don't persist after the pipeline.)
Ok, here's what happens there:
$ bash -c 'echo hello | while read i; do echo $$; ps; done' 12512 PID TTY TIME CMD 12316 pts/120 00:00:00 bash 12512 pts/120 00:00:00 bash 12514 pts/120 00:00:00 bash 12515 pts/120 00:00:00 ps
The 12316 process is the original shell in the terminal tab, 12512 is the shell I launch with -c, and the 12514 is the child shell it runs to do the while loop (reading the output of the echo on stdin, presumably the echo is 12513).
The fiddly bit is that there are _two_ function execution contexts, parsed and unparsed. Escapes like $(blah) and <(blah) are parsed as a form of quotes, and give you an unparsed string. I taught run_subshell(str) to pass that along to a vforked nommu child process through a pipe. But run_function() takes a struct sh_pipeline pointer which contains parsed pipeline segments, which the code did a lot of work to get. Turning them back into a string isn't that hard (it hasn't dequoted them, it's just a question of putting a space between each one, adding the semicolons back when there isn't another terminator... and you've gotta put here documents back. Ok, there's some work). But it's unnecessary work in the common case of "we have fork", where the child inherits the parent's memory with a copy of the processed structures.
Two codepaths means one codepath won't get as much testing, but I don't want to penalize the common case either. (It's the tail seek vs readall problem all over again...)
It's my birthday again. I'm old. Being a bit melancholly, as birthdays away from home tend to. I was looking forward to spending 6 months in Japan, but a 5 year visa is a commitment. I don't _know_ anybody here, and I don't know how to _meet_ anybody here?
If I was selling the house in Texas it would make more sense to move here longer term, but I'm still waiting out the cats (which may live another 4 years), and it _is_ an appreciating asset in a city 400 feet above sea level with a reasonable water supply surrounded by viable farmland. (The climate's hot but solar panels and air conditioning work very well together.) I was thinking about this in 1996 but the rest of the world seems to have caught up (especially after hurricanes Katrina and Harvey where it basically _happened_ already, albeit mostly not in a permanent way yet).
Speaking of the environment, methane emissions from animals continue not to be as bad as people with anti-animal agendas insist. (You don't even need the new stuff from that thread; the half-life of methane in earth's atmosphere is 7 years. It oxidizes. Earth used to BE a methane-ammonia atmopshere before oxygen generating bacteria changed it 2 billion years ago.) Raising cows takes literally a thousand times less water per acre than crops for human consumption. Also, cattle love kudzu and it's good for them. Goats, of course, will overgraze the kudzu and kill it given a chance. (It's what goats do.) Rich white guys spray pesticides instead of bringing in goats because they have no idea what they're doing, and every time they rediscover that goats find a wide range of invasive species tasty it's like this big revelation...
But of course, admitting brown people know anything is anathema to racists.
Well of course the GOP has disappeared up its own ass, what did we expect as the Boomers went senile? It's not that the politicans have no shame and are thus immune to most of the checks and balances stopping the "tyrrany of the majority" (MLK or Gandhi wouldn't have done very well doing peaceful protest against Hitler or Stalin), it's that their voting base isn't abandoning them for doing so. (Yes, hacked electronic voting, voter suppression, and gerrymandering magnify their vote, but there has to BE a vote to magnify.)
The GOP has succumbed completely to cognitive dissonance, but the real disappointment is that younger voters haven't sufficiently counterbalanced Racist Grandpa. The Boomers cut funding to education as soon as they personally were done with it (pulling the ladder up after them), so everybody stopped teaching the humanities, resulting in a populace with less humanity. If you don't teach voters civics, history, literature, or even "social studies" anymore, and instead focus on all STEM all the time, why would you NOT get nazi scientists?
Remember how after World War II everybody was fighting over whether it was ethical to use medical advances that came from experimenting on people in concentration camps? Or did we want to use Verhner Von Braun to beat the Russians (who captured the OTHER half of the V2 rocket design team) to the moon? Being a nazi didn't stop evil mad science, turns out fascism can be GREAT for that sort of thing. And thus you get agricultural monocultures patented by Monsanto, antibiotic resistant everything, global warming, facial recognition everywhere...
Science and the humanities serve different purposes, and removing one entirely from the curriculum was really bad for society. It would be nice if people started figuring that out soon.
A recruiter emailed me a thinly disguised "would you like to work for microsoft", and the answer is still no.
Endless fun shell corner cases!
$ walrus=42 $ readonly walrus $ walrus=7 bash: walrus: readonly variable $ echo $? 1 $ walrus=7 echo hello bash: walrus: readonly variable hello $ echo $? 0
I think instead of giving setvar a return type, I just have it complain and set toys.exitval?
I really really really should call the senate lizards but I just haven't got the emotional energy right now. (Fade and Fuzzy don't because they never do.) It doesn't help that the times of day their offices are open is either right when I get up or right before I'm going to bed here in Tokyo.
Today's utter weirdness is a gcc bug. I upgraded dropbear from the 2016 release to the 2019 release, and it went boing. I narrowed it down, and Jeff narrowed it down further, and eventually we got to:
$ cat > blah.c << EOF void fg(int *); int get_response(int a) { int b; if (a) fg(&b); return 0; } EOF $ sh2eb-linux-muslfdpic-gcc -c -O -fstack-protector-strong blah.c blah.c: In function 'get_response': blah.c:7:1: error: unable to find a register to spill in class 'R0_REGS' } ^ blah.c:7:1: error: this is the insn: (insn 28 45 44 4 (set (reg/f:SI 2 r2 [172]) (mem/u/c:SI (plus:SI (reg/f:SI 1 r1 [173]) (reg:SI 8 r8 [166])) [0 S4 A32])) "blah.c":7 188 {movsi_i} (expr_list:REG_DEAD (reg/f:SI 1 r1 [173]) (nil))) blah.c:7: confused by earlier errors, bailing out
Which is exactly the sort of thing you want to see gcc doing. Luckily it seems to be a bad interaction between the stack protector and the optimizer, so removing the stack protector (it's a nommu system, what exactly is it gonna do) is the fix.
Yes, exactly. But say this on twitter and they take your account away.
Ok, there's a missing design chunk in toysh and it's a generic quote traversal strategy. I just did utterly half-assed variable expansion to make the two failing "make test_sh" tests pass, but it doesn't do quote removal and it turns out you can't do that as a separate pass at the end because X='"abc"'; echo $abc prints the quotes, but just plain echo "$abc" doesn't, and you need to know what was or wasn't in a variable (already resolved) in order to handle that. There's similar active/inactive logic for wildcard expansion and word splitting (which someday needs to care about $IFS but I have literally never used that feature of any shell that I am aware of).
So I need to do quote traversal as part of variable resolution. I'm reasonably certain no shell context does variable expansion _without_ quote removal, but there's at least one that does quote removal without variable expansion (the here document EOF word has different meanings depending on how it's quoted, and yes you can E"O"F), and that's why they have separate suppression flags.
The first quote removal logic I wrote is in parse_word(), and that's got all the bells and whistles: it can decollate $(( into nested parentheses instead of a math operator, it does everything I could think of to get continuations right and as far as I know it does. It prompts for the next line (or doesn't) as correctly as I could come up with tests for. Unfortunately, it doesn't do anything ELSE. It's not designed to call from other contexts to advance past quote types that the current parsing context should ignore. And that's why I wrote a separate skip_quote() when I was doing brace expansion, because {abc","def} isn't a brace expansion, it's a partially quoted literal string, and there I needed the next unquoted character.
And now I'm frowning at "$((echo $((1+2))thingy) | tr h x)" and going "um...". For ((math)) I handled this so it's broken down into tokens, but $(()) vs $() are two types of quoting, and quoted blocks are a single word. Hmmm. I think I need to feed it back through parse_word() again, minus the leading $...
Strings in a single set of double quotes still get variables expanded inside them. Strings in any _other_ quoting context won't, but each of those contexts get parsed by pretty much exactly the code I'm writing now. single and double quotes get dropped. `subshell` and $(subshell) get evaluated (and the second can nest with any of the other contexts occurring within it, but you basically don't care here because you chop out the appropriate chunk and run_sh() it, except that needs to take a _length_ (unless I want to teach the plumbing that sometimes an unbalanced end parentheses ends a parse context without being an error?) and I need to teach it to report back syntax errors, but not regular errors:
$ echo $(if true) bash: command substitution: line 2: syntax error near unexpected token `)' bash: command substitution: line 2: `if true)' $ echo $? 1 $ echo $(false) $ echo $? 0
My notes say I still need to do parameter/variable expansion (which includes a couple dozen $$ and $RANDOM magic variables), Ineed to do $(command) (which is also `backquote`), I need to do $((math)) (a can of worms I haven't opened yet; I've written a two-stack math parser but it was a while ago), I need to do word splitting (screw $IFS), and I need to do pathglob (which is a funny name for wildcards, but eh; and yes that also does word splitting, but then again so does "$@" and someday I need to open the array variable can of worms but not yet).
Oh, and $[ ] is an obsolete synonym for $(( )), and ${} has a dozen or so different things you can parse internally. I believe the full set of quoting contexts that need to be handled is ${ $(( $( $[ $' ` " ' but that's only because I left myself a note earlier.
Oh wow, I've been approved for a 5 year residence card. (I expected 6 months. I don't quite know how to respond to that.)
Still another week or two of paperwork to do, and they took my passport to do it. Luckily I brought my previous passport with me, which is expired (and has holes punched in it) but is better than nothing until I get the current one back.
Twitter continues to be bad at being twitter.
Saw an article on yet another tiny python implementation, a competitor to micropython. I winced a bit at the "python 3.0" part but read on until I got to the "GPLv3" part, at which point I closed the tab. Nope, do not care.
Up until way too late last night going down toysh ratholes. Found that 2>&1 wasn't working and fixed it. The output from "ls" is happening WAY later than I thought it would, but it turns out the x86-64 build of toybox is using real fork() for xpopen, not vfork(). (Which I knew, but had forgotten was the case here. I think I had vfork forced on in the config but every time I "mv root root2" and then rebuild without remembering to move it back, I get a blank .config and don't always remember to put everything back...)
Today's kernel debugging timesink: it turns out init_task isn't PID 1, it's PID 0. So comparing its /proc/self/exe entry (in theory init_task.mm->exe_file) with current->mm->exe_file to only print out diagnostic info about toybox processes (same executable as rdinit=/bin/sh) didn't work, because task.mm is NULL. (Not that it would have been much of a filter on a toybox initramfs, but still. Eh, it's got each PID in the debug lines I'm printing out, I just wanted to cut down on the pages and pages of noise.)
The OTHER timesink is that when I finally drilled down to what was going on, yes I totally could have found this with userspace printf(). The reason CLOEXEC wasn't triggering is IT DIDN'T EXEC. (Sigh.) On a system with mmu, xpopen() calls fork, and if we haven't used too much stack it will recurse instead of re-execing itself. Since strace is reporting both fork() and vfork() as clone() for some reason (it's a different syscall number!) it LOOKED like it was doing vfork(). What I should have done is stick a printf() at the start of main() in main.c to see when actualy reentry was happening. (Which I eventually did...)
Also, printf(), dprintf(), and printk() all deciding to randomly delay output so it gets produced out of order? Thanks bunches. I had to stick a getpid() into every single line I printed (LIVE, not stored in a variable) to even ATTEMPT to sort that out, and even within a process it wasn't showing me things in _order_. Grrr. (Also stuck in sleep(1) in more than one place to get parent/child interlacing down to a dull roar. And I'm tempted to move "writing my own strace for toybox" up a bit on the todo list, so at least I'd have one with predictable behavior.)
That said I still want to support <(blah) on a system using fork, so the code needs a bit more cleanup before I can check it in. But at least now I know what was going on.
Closing tabs, lots of old links I never blogged about or catalogued anywhere...
I saw a puff piece on sunrun (seriously, "what was your childhood like?" and "how do you lead?"), but eh at least it's not that Musk guy, so I looked up their website and tried to price a solar system from them, and two different tabs refused to give me ANY information without first collecting my address, name, email, blood type, nudes, and the best times to bother me forever endlessly amen, and THEN if a credit check deems me worthy get back to me with a dedicated hard sale team refusing to take no for an answer. (They do not have a catalog, they have a Sales Pipeline Data Collection Engine, and have lost my interest.)
I'm largely insulated from impeachment here in Tokyo. Instead everybody's freaking out about the coronavirus. (Which apparently the states are doing too. It's reached the Uighr concentration camps in East Turkistan, where china has a million people forcibly held in racist detention facilities, which is a terrible idea for many, many reasons.)
One of the people I used to follow on twitter noticed I haven't been posting, and sent me a "checking in" DM, which I apparently still get forwarded via email but can't reply to. I can't find an email address for her, so asked Fade to reply with a pointer to one of my blog entries about it.
It looks like twitter changed its stylesheet again. Now when you look at an individual user's feed you have to scroll down past their header intro blob (which used to be a sidebar), then their pinned tweet, then you get four recent tweets, then an advertisement for people you don't follow, then the rest of their tweets are below that. Because chopping up the feed is apparently what twitter thinks people want? (Or they're trying to punish people reading individual feeds without being logged in? I know it won't show the with_replies page without a login anymore, because I tried.)
*shrug* Oh well. I miss the people, but not the service. Twitter was never important, it merely connected me to other users who were coincidentally on the service.
(Huh, and I just remembered I can search for @landley in the twitter search bar to see if anybody poked me and yes they have. Hmmm. I should figure out a way to reply. (And I would appear not to be the only person searching for old tweets. Plus people linking to my talks.)
Originally when we scheduled this trip I was going to fly on from here to prepare our linuxconf talk, then fly to australia, give the talk and demonstrate the new round of turtle board prototypes, then come back here to help Jeff finish the open source VHDL turtle device support and upload it to github to prepare for getting the Turtle boards on crowdsupply (including finishing the hdmi bitmap stuff we started in canada last year), and maybe visit singapore or taiwan depending on how other people's schedules worked out, then go back home after a month, and THEN do visa stuff (which would involve a trip from Austin to the Japanese consulate in Houston, probably via greyhound)...
But that's not what happened. The trip to australia fell through, the trips to singapore and taiwan never happened because we're _still_ waiting to hear details of other people's schedules (Jeff might go to Singapore by himself after I head back, but nobody wants to get too near china until the beer virus settles down)... And when we got here Andrew suggested a different way to apply for a visa, and now I don't think I can leave until the visa thing is either approved or denied?
I also can't commit anything to closed source repos from here, because that would be "working on a tourist visa", which is not allowed. (Following Jeff around while he buys a humidifier has never been part of my job description, it's helping a friend move.) But I've done open source programming on a hobbyist basis for many years now, while working dayjobs at a dozen unrelated companies, and I don't go anywhere without my personal laptop.
We put a J-core repo on github last year, and what's there works, but it's a fork that isn't unified with the Turtle board development (let alone J32) so... cleanup time! The ICE40 Turtle repo on github forked off the old hg cpu repo at commit 734, and the turtle boards are running hg 763 (which is pretty much j2 tip; there isn't a branch, but really should be. I'm not sure which commit the second open source tarball on j-core.org was relative to, but it's probably somewhere between those two). Then the J32 tip is hg 813 in the same (sadly mercurial) repo. And that's just the cpu repo, there's a dozen others for things like the DRAM controller and I/O devices and so on, but for ICE40 what we did was fork the CPU repo and stick just that in the tiny FPGA, with a couple raw I/O lines that can drive LEDs and such routed out so you can see it do its thing. Jeff hooked it up to calculator keys and a little calculator display, but that's yet another repo and I've never had a copy of that code or hardware.
So I'm trying to turn the open source branch from github into a patch stack we can forward port to the Turtle branch, and have a unified repo again. Alas, this means rebasing the github repo, which probably means uploading a new repo entirely. Currently it just means reading stuff and trying to understand what we did so we can clean it up and publish it at some point.
A TTY was never a typewriter, it was a teletype.
Fun history: the Intel 4004 was commissioned in October of 1969 for Busicomm. That was the first microprocessor (not the first _processor_, the univac went on commercial sale in 1950, but it was the first single chip implementation of a processor instead of a motherboard full of components wired together).
But the 4004 is a historical curiosity, it was a 4-bit processor barely powerful enough to run a calculator. The first 8-bit processor was the Intel 8008, and it was commissioned two months later in a meeting with Victor Poor of Computer Terminals Corporation. As d Ted Hoff said, "they were building what they sometimes referred to as 'glass Teletypes,' computer terminals that used a cathode-ray tube instead of paper to, you know, present the information."
The first 8 bit microprocessor was comissioned for a paperless tty device (not a typewriter) the same year PDP-7 Unix was created. Given that Unix didn't escape Bell labs until the mid 70's (the paper describing it was written in 1973, the ACM talk was delivered in 1974, and Bill Joy took his year off to teach at Berkeley training the students who would create and maintain BSD starting in the fall semester of 1975), the only reason people hooked up old ASR-33 teletypes and so on to Unix machines is they were available cheap on the secondhand market. Bill Joy wrote vi in 1975 to take advantage of "glass tty"'s ability to move the cursor around. (Cursor keys weren't standardized yet so he made a modal editor that used normal letter keys to navigate, and even though cursor and function keys ARE standard now, vi is sadly still a Tardis console without the "telepathic labelling of all the controls" part. (Which explains why the fifth doctor never remapped them, the head injury from falling off the Pharos project tower clearly left his next incarnation telepathically blind, couldn't even recognize the Master face to face. I suspect the celery is a gallifreyan equivalent of the dark glasses and big white cane, letting other members of his culture know he's down a sense. Yeah, "contact" scene in the five doctors but the other incarnations were doing the heavy lifting, shortly after breaking him out of mind control.))
Anyway, as far as I can tellTTY just means "bidirectional pipe plus cursor position and ability to signal attached processes". It's somewhere between "ZIP code no longer stands for Zone Improvement Plan" and "Wi-Fi never actually meant anything in the first place". (Nobody expands ABC, NBC, or CBS anymore either.)
So I'm doing ./sh -c 'awk '"'"'{print $4}'"'"' /proc/self/stat ; cat <(/bin/echo hello)' (as you do) and for some reason, fd 5 is losing CLOEXEC. I've looked at strace -f and there's no obvious REASON it's losing CLOEXEC. The syscall succeeds, and if any later syscall anything else is removing it I'm not spotting an obvious candidate. Then after the vfork() the filehandle is still there in the child, so we can never close all the input sides of the pipe, so the output side of the pipe never returns EOF, so the call to cat never exits. Test hangs until you hit ctrl-c.
I fired up mkroot and reproduced this under qemu, which has _so_ many rough edges (the most _annoying_ of which is needing to type "reset" after every qemu run because otherwise the cursor goes up one line in the xterm every time I cursor back in command line history. This is because QEMU is switching the DECAWM attribute off, and I had to teach reset to switch it back on last year.)
Anyway, I've got a cycle of make ARCH=x86 CROSS_COMPILE=~/musl-cross-make/ccc/x86_64-linux-musl-cross/bin/x86_64-linux-musl- -j $(nproc) to rebuild the kernel and qemu-system-x86_64 -nographic -no-reboot -m 256 -kernel arch/x86/boot/bzImage -initrd ../x86_64/x86_64-linux-musl-root.cpio.gz -append "panic=1 HOST=x86_64 console=ttyS0 rdinit=/bin/sh" to boot the virtual system, followed by pasting in the above command line to run the test. Then in the kernel arch/x86/entry/common.c function do_syscall_64() I added printk(KERN_ERR "call %d %lu %lx\n", (int)task_tgid_vnr(current), nr, *(rcu_dereference_check_fdtable(current->files, current->files->fdt)->close_on_exec)); to print out the pid, syscall number, and first 32 close-on-exec bits (including fd 5) every time it makes a syscall. (Again, as you do.)
And it looks like what's happening is a later call to popen() is removing cloexec from the filehandles returned by the previous call to popen(). What the...? I can't be reading that right...
Trying to get the next chunk of toysh checked in and... I've narrowed it down to a place where fcntl(pipes[1], F_SETFD, FD_CLOEXEC) is being ignored (the child vfork()ed after that still has the filehandle in pipes[1], which in this case is 5). According to strace the fcntl happens and returns 0, and the right arguments go into it, but the child still has the filehandle anyway.
I tried pipe2() instead of fcntl() (which requires prototyping the libc function myself because I refuse glibc's insane stallman-worship #define for LINUX SYSTEM CALLS) and that didn't fix it.
But if I dup2(5, 12345); and then close(5) and assign pipes[1] = 12345... then everything works. And I have NO IDEA WHY. There's no other filehandle the child could have gotten that end of the pipe from to dup2() it back down via misguided unredirect() plumbing (I dup'd the other end but not this end), the clone() (which is how strace reports vfork) is happening _after_ the fcntl... how do you screw this up? I'm not seeing dubious stuff in strace(), although so much is going on (4 processes working at cross-purposes) that it's hard to spot.
This is "stick printk() calls into the kernel" level of WTF, which means I need to reproduce this under qemu (which means a current kernel and musl instead of devuan's kernel and glibc).
Hmmm...
The discussion starting around 18:15 here seems to think that the value of battery walls is to arbitrage electricity from the grid, buying it during cheap times and selling it back to the grid when it's most expensive. That makes no sense at all to me.
First of all, the grid guys can install solar too. Solar has been the cheapest way to add power capacity since 2016, and in 2018 installing new solar became cheaper than running existing coal plants. The downside of solar is it produces a bell curve of power each day, and because artificial lighting shifted everybody's waking hours into the evening back in the "whale oil and gas lamp" days of the 1800's, this gives us the duck curve as the sun goes down while everybody gets home and starts cooking dinner.
Municipal interest in batteries has primarily been about compensating for the duck curve. Extra solar is cheap, and they've been hitting curtailment for years (without storage generation has to match demand, over-generation means you unplug the solar panels and waste the electricity). But if you can stick the extra in batteries and then feed it into the grid in the evenings and overnight, solving the duck curve is just a question of installing enough batteries. Or, since curtailment doesn't actually cost you anything and solar gets cheaper every year, you could just install more solar and if you can't use it all at peak, what have you lost? Solar you don't install is curtailed 100% of the time, being able to use _any_ of its output still puts you ahead.
This means electricity being most expensive in the middle of the day is an artifact of old thinking. The middle of the day is when they're GIVING electricity away, and before the law caught up to allow curtailment they briefly had to pay to dispose of it. So your "energy arbitrage" opportunity, once grid operators catch up to that reality, would mostly be filling your own batteries up during the day and selling them back to the grid at night. And why is that interesting when the utility can just do it themselves by buying their own batteries? The current curve is that batteries get 50% cheaper every 3 years.
With solar panel prices continuing to fall too, batteries are the bottleneck now, not panels. Municipalities can trivially double their solar panel installations at any time, and there's no shortage of land to put it on. Powering the entire US would take 17.5k square miles of solar panels, but that's not actually much space. The US has 3.5k square miles of just golf courses (and some people think golf courses are about enough space). Austin's been sticking solar farms a few miles outside of town for a decade now, but that may not be necessary: there's a LOT of space for rooftop solar. The US has 314 cities above 100k people, and adding up their land area (column 7: square miles in 2016) gives 29,351 square miles, almost 12k _MORE_ than 17.5k, making it entirely plausible that rooftops (and down the sides of skyscrapers) could provide all the electricity we currently use even without trying to make roads and such participate. (To check the math, the list of the 150 largest US cities, minus the alaska entries, the square miles of land area (column 4) adds up to 25.2k square miles, still almost 7k extra just downtown in big cities.
Meanwhile, when I did the math last year I found that a grid tie costs an average of $62.50/month to _NOT_ give you any power, that's just your share of grid maintenance costs. If you have a big enough home battery wall and never feed anything back into the grid (again, extra solar's cheap and curtailment doesn't _cost_ you anything) the grid tie is a gratuitous $750 annual bill, and that's not just a US issue.
If you have your own local battery, being filled from your own solar panels, the main effect is to reduce your dependence on the grid. It might make sense to have ties to your neighbors, maybe wire the whole block together, but a $62.50 monthly insurance payment to pipe in electricity from the other side of town? 99% of the time you wouldn't be using it, just paying for it. It makes more sense to have a $500 backup generator kick in if your batteries go below 10%.
Yes cheap out-of-town solar farms still make sense for electric self-driving app-summonable fleet vehicles, with a self-driving 18 wheeler driving out to the farm to swap a container of dead batteries for a contianer of charged ones -- don't unpack the batteries, plug in the whole _container_ and let them charge in there, it's just wiring and cooling. Then in the city robot arms swap out the batteries and unpack/pack the battery containers. No humans involved anywhere except in security and maintenance of the robots.
But I think the big thing people underestimate (and I didn't hammer on hard enough last time I ruminated about this) is that S-curves don't stop at 100%. Going from 1%-10% is the same as going from 10%-100%, which is the same as going from 100% to 1000%. That link I posted above about people just now realizing curtailment isn't a bad thing (all the solar you DON'T build is curtailed full-time, so being unable to use some of the output at peak is no reason not to install more ever-cheaper solar if you can ever use _any_ of it: the output that comes at a time you CAN use still displaces more coal/oil/gas and is _free_ once installed)...
Of course our energy distribution grid isn't NEARLY ready to pipe a 10x increase in peak daily energy production through cities (you'd need superconductors or solid 10 foot thick copper crossbars, and either emit utterly impractical magnetism). But if you put variable manufacturing out in the boonies and have it do lossy things like "smelt aluminum" or "make jet fuel from air and water using electricity" to consume electricity that would have gone into curtailment, on a start-and-stop "as the energy is available" basis... so what if they're only running 10% of the day? Variable manufacturing's gonna be a thing. If you can't store it, throw it into lossy processes that do SOMETHING with it.
Keep in mind growing crops via photosynthesis is only 11% efficient (half of the 25% modern solar cells give), and then human digestion is about 25% efficient (and we can't even digest cellulose)... but obviously it's still worth doing. If we can take excess would-be-curtailed electricity and make gasoline or kerosene from air, retaining 10% of the original energy? That keeps airplanes and container ships and space flight going even after the oil companies' own reports about global warming from the 1980's turn into a giant smorgasbord for lawyers the way the tobacco companies did. Affordances vanish as the percentage of the populating using them fall below criticial levels. Water troughs, hitching posts, and livery stables vanished from cities as horse ridership declined. Outlawing carbon mining is probably inevitable by the time half the Boomers die (2034 according to the actuarial tables).
There may be an arbitrage market to suck up everyone's excess peak generation, if we can work out the transportation part, but if we continue to pay 1/6 of our economy for energy but get 10x as much, that means the price per watt falls to 1/10 it is now. If it's easy to stick factories 20 miles out of town where space for the sun to hit is cheap, I'm not sure how much exporting from the city is worth? (Plus air conditioners and heat pumps will suck up a lot downtown as the climate continues to go deeply weird.) Once you get used to curtailment, using the extra is nice, but how profitable is it really? (Dunno...)
Jeff got most of the GPS correlators up and running on turtle, but it turns out if you just grab the high bit of the nanosecond time counter to have a quick and dirty once-per-second clock signal, the correlators reset on BOTH edges, and thus zero out their millisecond counters _twice_ per second. (It's hard to get the VHDL tools to let you act on both rising and falling clock edges because clock signals have magic routing in the tools, but when you're already clocked and testing != to last time? That it'll do twice, yeah.)
I see it's that time of year again. "How can leaving the freezer door open melt the ice in the trays when it's so much colder standing in front of a freezer with the door open!"
We broke the polar vortex, so the cold is no longer staying at the poles, instead it's leaking down here. It should not be down here, the cold should stay up there, that's why the ice is melting. Any extra snow down here won't last the summer. Meanwhile, we're having hurricanes in scotland in the middle of winter and this is such a regular occurrence it's no longer newsworthy.
We've started work on GPS on Turtle. Jeff added the correlators to the Turtle build and wired them up to the GPS Hat... which didn't work. We asked for a new schematic for the turtle hats from Martin, apparently the one we have isn't the final version. (The connector was reversed, so his original layout stomped some ground pins. Martin's great at circuit design in boards, but has a bit of I/O dyslexia when it comes to interfacing with the outside world.)
Meanwhile, there's a tcxo (thermally stabilized clock) on the turtle hat, this time with a temperature sensing diode instead of a heater, so it can adjust to temperature changes rather than trying to prevent them (this approach eats _way_ less power and is pretty much what we _have_ to do if we're ever to make it work on ice40 from a coin cell). Unfortunately Martin write down the part number for us so we can't look up how to program it, and it's under the metal shield so we can't look at the chip without destroying one of our 5 GPS hat prototypes. Hmmm...
Woke up with my eye bleeding this morning. (Or at least I noticed it was in the mirror while waiting for the elevator down to the lobby at the hotel.) Hoping that I cut it on my fingernail or something without noticing in the shower, rather than something blood pressure related.
I also noticed the linuxconf.au talk slot we couldn't make went past. Told jeff "I assume this means we're never doing that video version of our talk" (which we offered to send them instead of attending, and to which never replied), and he got mad. (While I'm presumably right on substance, he dislikes me being "defeatist". What I meant was, are we going to prioritize doing it in the absence of a pressing deadline that we already got distracted by more pressing concerns from and allowed to go past, or are we going to have it be a "thing we should do" and it still be such 2 years from now because there's _always_ pressing concerns du jour that we're doing instead? Because I know me, and in the absence of an externally imposed deadline, that's usually what happens.)
Meanwhile, I'm kind of proud of today's commit:
mkroot.sh | 501 +++++++++++--------------------------------------- 1 file changed, 115 insertions(+), 386 deletions(-)
I admit the KCONF= lines being longer than 80 chars is cheating when talking about line count, but it's awkward to break them? I still need to do the "switch off CONFIG_EXPERT and disable these symbols" config category, which would make it 3. (Global symbols, arch symbols, and symbols to disable on second pass.)
Bisecting musl-cross-make to see where Rich broke it. 9b8fcbc4cada works but 38e52db8358c (current) does not... ok, last one that builds is 629189831f61, it's b5b4d47c48b2 that broke it: "update defaults to gcc 8.3.0, binutils 2.32". Updating _both_ at the same time, great. So what broke it was updating gcc from 6.x to 8.x, skipping 7.x entirely. (I dowanna bisect the gcc repository. I really, really don't. It's gnu. That makes it bad.)
Jeff poked me into installing "Signal" for work. It requires a phone number to access, and it's so secure it publishes everyone's phone number to everyone else you ever talk to (including group chats). It has pop-ups prompting you to set a config setting that isn't then available in settings. The second text I ever sent had a full-screen popup about changing security numbers (more or less the ssh "adding host key" message, only far more confusing and a MODAL POPUP)...
On the whole, Signal strikes me as having the same user-friendly polish and user interface fit into its problem space as git and "the gimp". But between Signal, Slack, Line, Skype, talky.io, Wechat, freenode, texting, and phone calls, I'm sure we can figure out how to communicate somehow. (I miss twitter.)
Fixed some more shell stuff and I'm trying to boot mkroot with toysh, and it's segfaulting running the init script. (Failing I'm not surprised by, but _segfaulting_ it shouldn't be doing.) First I had to fix the "init has no stdin/stdout/stderr" problem, which is why I sent a patch to fix it back in 2017, but gave up trying to deal with the kernel clique after 3 resubmits, and as far as I know they never did fix it. I just stuck this quick hack at the start of toysh for now:
if (getpid() == 1) { sh_run("/bin/mount -t devtmpfs /dev /dev"); dup(dup(open("/dev/console", O_RDWR))); }
Wearing the wrist brace Fade got me. It itches, but my mildly sprained left wrist keeps twinging and I think it's trying to turn into RSI with all the typing I do. (It's in the wrong _place_ to be carpal tunnel, but it has high hopes. I guess these days that would be high hopes.)
More shopping for the tiny new office. We got a humidifier, a handheld whiteboard, a shelf, and a _second_ router. (Jeff reimagined the first one with openwrt, so of course it's now a brick. He says it's because he usually usses ddwrt, which doesn't support any hardware we can find in stores. I convinced him we're already behind a NAT here, so our second layer of NAT isn't really providing significant security, and we expect to outgrow this office this year anyway.)
We have an office! It's a "hello office" which is a Japanese company that rents out office space on the model of Public Storage units, only instead of an 8x10 concrete space behind a garage door, roughly the same amount of space in a corridor of similar doors, each with a little nameplate, in a building with 4 floors of this stuff; the first floor is a Curves gym and the basement is the G-19 subway station. The room has 4 desks, industrial carpet, flourescent lighting, an electrical outlet, and an ethernet jack with gigabit download speed (haven't benched the upload speed yet).
Of course we wasted hours trying to associate with the wifi until we figured out it's a "bring your own router" situation. (The orientation pamphlet didn't say.)
Also met with a lawyer who started filing the Visa Paperwork to get me permission to stay longer than 90 days/year.
Four bottles of milk tea (and a maple milk tea at Excelsior in Akihabra) was probably a bit more caffeine than I should have in a day, but it's SO GOOD.
I'm terrible about dating blog entries in Tokyo because I keep my laptop set to tokyo time, and it currently insists it's 5 PM on the 8th when it's 8 am on the 9th here. This was less of an issue when my blog entries were uploaded months behind where I was writing it, and I was mostly writing down "what _did_ I do on tuesday?" (check email, check twitter, slack, line, freenode backscroll, git log...) But now that I at least _intend_ to upload them after I complete each one (ok, currently hung up on finishing the Jan 3 entry because I left myself another "writeup this topic by integrating these 11 ideas into a coherent synthesis" and that's _WORK_...)
Anyway, it's morning in Tokyo. Ronald Regan is still dead. The TV is playing Japanese children's programming, on the theory I'm more likely to pick up snippets of that than the news. (And it's less likely to mention the GOP's _current_ Bastion of Senility, who is lashing out at the staff of his nursing home demanding to know who stole his teeth because he forgot where he put them so obviously they were stolen. Except this involves Iran, which was totally pacified when he took office.)
A duck/robot is singing a (surprisingly upbeat) chiptune song about having a pixelated picture of a broken heart on its chest. And now it's playing drums in a band where a purple/pink squid is on electric guitar and... (I think that's a dog costume?) is on bass. And now the person in the dog costume and... I don't know what the yellow blob with the helmet is supposed to be... are doing some kind of sports commentary. And now it's switched from people in mascot costumes to crayon drawing animation.
I believe I've completed the curly bracket expansion, or at least it's passing all my tests. Somewhere along the way I screwed up an allocation tracking and something's getting freed when it shouldn't, so "echo hello" is now barfing half the time saying it can't exec a string of line noise. (Washed through variable expansion and then freed before use I expect.) But that shouldn't be too hard to track down, and I bypassed the bracket expansion (which is a wrapper function at the start of variable resolution so that's easy to do) and that didn't fix it, so it was something else I did recently and didn't immediately notice (because use-after-free sometimes works, I should switch on a page poisoner) so it doesn't stop me from checking this in to pending.
The flight across the international dateline ate a day, so as far as I'm concerned January 8 started at 4pm in the airport Tully's (a coffee shop chain here). I caught an airport shuttle at 2:30 am and flew for SO LONG it's now the afternoon of the following day.
I'm very tired.
In airport. The ironic part is I had to stop binging "That time I got reincarnated as a slime" because my flight to Japan was taking off. (Crunchycrunch does not let you download episodes, and does not work in Japan at all due to region locked licenses.)
Despite much sleep dep, I got some debugging done on the flight. There are so many corner cases in curly bracket expansions, and I'm not 100% certain I'm testing them all yet. I've tried to be systematic about it, but keep hitting new weird ones. Wound up checking in a commit that's like 2/3 debug printfs by weight, but it's progress. (It passes TWO of the tests before segfaulting on the third.)
Called the doctor up in minnesota about my blood pressure medication not being refilled after a week, and they won't give me any more until I get my kidneys tested. (Because 20 years of caffeine being a stronger diuretic than the stuff they gave me clearly had no effect, but_this_ might.) And they're ok with me being off the blood pressure meds until I get that done, even though I explained I fly to Japan tomorrow for a month, and have already been off the pills since 3 days after I requested the refill a week ago, so they've basically taken me off blood pressure medication for the forseeable future, and they seem to be ok with that. (Oh well, if the medical professional doesn't care I guess that's ok then...)
John Rogers (the guy behind Leverage) linked to an excellent thread about money laundering, but I seriously think the Boomers dying is the only way the strangehold will break: a group of people who _already_ have single digit life expectancy aren't gonna be dissuaded by their decisions dooming us all. (And yes, that's a good photo.)
Scheduled to fly to Japan first thing in the morning, shuttle picking me up at 2:30 am. Trying to get toysh to a good stopping point. Debugging the bracket logic. There's a debugging failure mode I can get into where there's so many dprintf(2, "blah %p\n", varname); that you can't easily follow the _code_ anymore, but I don't want to remove any because as soon as I've answered _this_ question I want the context for the next run...
Two days to Japan flight. Racing to get toybox usable. Still wrestling with brace expansion.
Ok, there's 8 kinds of string segments you can output in brace expansion:
// span from start to { // span from { to } // span from { to { // span from } to } // span from } to { // span from , to { // span from } to , // span from } to end
Keeping in mind that other expansions haven't happened yet, ala "A= ABC=123; echo $A{BC,''}" outputs "123", we're just outputting literal string segments to the next stage of expansion. Except start->{ and ,->{ and {->{ are basically the same thing, and the same for the trailing three. Hmmm... [3 hours of staring at code before I remember to blog about it]. As always, I go through dozens of culdesacs where I go "wait, but this implies this and that means..." until I come up with something simple looking by process of elimination. It's somewhere between a jigsaw puzzle and untangling a small gordian knot.
The bash man page says there are 7 types of expansion, but there are actually 8 if you add quote expansion. And the problem is the order of operations they give, "brace expansion; tilde expansion, parameter and variable expansion, arithmetic expansion, and command substitution (done in a left-to-right fashion); word splitting; and pathname expansion" does not _include_ quote expansion, and it... sort of goes in multiple places?
$ echo {~,~root}/pwd /home/landley/pwd /root/pwd $ echo \{~,~root}/pwd {~,~root}/pwd $ echo ""{~,~root}/pwd ~/pwd ~root/pwd
The quotes affect {brace,expansion} but aren't _consumed_ before brace expansion, which implies they have to be parsed more than once, which I'd _really_ like to avoid. (My sh.c is 1796 lines and some of that's fluff that goes away when I'm done. I'm trying to keep the whole mess under 3000 if I can, 3500 if necessary.) Ah, I see it says quotes are removed at the end, but have been PARSED multiple times earlier, which means multiple passes over the string which seems gratuitous? Ok, that's how _they_ did it. Can I do better?
Grrr, this logic kinda wants to be a recursive call and I'm trying hard to do it with loops. But braces nest so it would need a stack.
Sigh, I have to care about $IFS. I hate $IFS. It's SUCH a hack.
I'm treating process substitution as a redirection, meaning "abc<(echo)def" does not become "abc/dev/fd/63def" because WHAT IS THE POINT OF DOING THAT? (Ok, if you've mounted devtmpfs someplace strange then MAYBE you'd want a prefix, but it would still have a hardwired /dev/ under that. And lots of stuff uses /dev/null and friends without caring, not much point special casing that.)
So, parsing {brace,expansion}, the easy thing to do is parse all the way through to the end and then iterate through each segment allocating a new extent a copying the relevant contents into it. I was doing an array of offset, length, and index (for traversing), but said array kind of wants a hardwired length and there isn't inherently a limit on how many of these you can have in an argument. Plus not every { results in one of these extends, you need a { with matching } _and_ a comma in between. With no comma, you leave {contents} with the curly brackets in the result. Or if there's no closing curly brackets, "echo {A,B,C" prints {A,B,C as-is. So if there _is_ a limit, it can get hung up on "echo {}{}{}{}{}{}{}{}{}..." exhausting said limit. (Yeah, unlikely, but not the right thing to do.)
Nope, better approach: make a struct, assemble a linked list of that struct, and pop completed candidates off onto a second list as they're completed, or dispose of them if there was no comma before they ended. (Which can get silly: {{{{A,B},C}D},E}
Part of the reason I used to get so far behind on blog entries is I would leave myself notes like this:
New david graeber talk, seems related to Mark whatsisface talk, and the australia guy (rutger bregman?). previous link, stitch together argument
Which means NOTHING to anyone but me. The new talk makes a bunch of good points I should make notes about (which means rewatching it), I put together a playlist of Mark Blyth talks (which I'm sure I tweeted about, but it seems to fall in the gap between the backscroll twitter shows and the last archive I downloaded before they screwed up the format so it was no longer CSV of the actual useful data but instead horrible bloated json you need some sort of tool to parse anything out of). I also tweeted about Rutger Bregman who is an eloquent proponent of basic income who I used to follow on twitter.
And I forget quite _which_ argument I found so compelling at the time, because I haven't rewatched the talk yet. I've combined Blyth's and Graeber's observations into a story before, and I've done my own research to show that 70% of the population was subsistence farmers 200 years ago and now it seriously looks like less than 10% of the population does ANYTHING related to actual human survival. Seriously, that link has numbers: if 90% of the population stopped working entirely the main impact is we might be less entertained (although AO3 fanfic, podcasts, and whatever would replace youtube if capitalism stopped strangling it could probably take over from Disney pretty smoothly).
I've written here before about how Graeber's BS Jobs argument is understated because he focuses on the 1/3 of people who say their jobs are _entirely_ useless, not the people who have 2 hours of real work each 40 hour week, or the dozens of support workers (HR, payroll, cafeteria, janitors, building maintenance, tech support...) every investment banker is propped up by, filling all the floors of the skyscraper below the penthouse by doing useful work in _service_ of some kind of financial scam.
So I left myself work to do. Again. My todo list runneth over: the more work I do, the more work is left to do.
I should do a toybox release before flying to japan. This means I should do it on the 6th because I have to leave for the airport something like 3am on the 7th.
I added MAYFORK to pwd, which replies on $PWD being set for -L to work right, which means I'm teaching the toysh "cd" builtin to set pwd, which means I'm implementing -L and -P and so on, which turns out to be a bit of infrastructure with fallout.
Converting "help" to work as a builtin too. Running it with no arguments should list the "usage:" lines of all the builtins, which is more new plumbing. (For one thing, "determine if you're running as a builtin", which is a new high optflag to go along with NODASH.
I should do a FAQ entry writeup that you can't build or test the standalone "help" or "install" through "make", you have to "scripts/single.sh help" and "scripts/test.sh help". (Flat namespace, and those have other meanings.)
Why is "help -au" showing "true" and "test" at the start of the alphabetical list (out of order)? It can't be "that's where all the NOHELP commands go" because sed and false are in alphabetical order. (Sed has to handle its own --help so it can say "this is not gnu sed 9.0" for lying to autoconf when it asks stupid questions.) Yes, I'm aware that show_help() is inefficient when showing a list of help text in order, probably I should do something with a callback. (The help strings are static to lib/help.c and the code parsing them is all localized there, because then I can gzip the help text at some point. For now I'm going "help text display is not something that needs performance optimization"...)
Next problem with cd expansion: the code I wrote assumes tilde expansion is implemented. Hmmm, how crappy can tilde expansion be? What does bash do for 'echo ""~landley'? Answer: it's a literal ~landley, not a path. Ok then, it's a prefix. Ended by : and / as far as I can tell. (Because / is a path segment and : can't be in a /etc/passwd format username field. Presumably \n terminates too, but that's kind of already covered. :)
I implemented the first actual variable expansion type, which means I'm adding the first allocation to the delete list... and double free dump. Which is misleading because what _actually_ happened is I was creating a struct double_list and then traversing it as a (singly linked) arg_list, using "prev" as "data", and freeing the wrong pointer. (Because I have a dlist_add() function so it's easy to create a doubly linked list, but singly linked lists I do by hand and in this case it's 4 steps, borderline "eh that should have a function"...)
I should probably have struct double_list be a structure with _just_ the prev and next pointers, and then have it be the first member of other structures. That would avoid all the typecasting I'm doing whenever I use those functions. (It's easy to use C in an object oriented manner, I just don't bother half the time because unnecessary layering is a variant of infrastructure in search of a user.) But the switchover is an intrusive change and my tree is not clean right now...
Speaking of all this environment variable fiddling, using the getenv/setenv stuff I've already got is actually wrong here, because it searches through the list each time. So it would search through the list doing lots of strncmp to find if it's an external variable, then search _again_ to set it if it is, otherwise search through the local list. Given how hot path variable resolution is, I kinda want that optimized...
Twenty years of copyright breakage unblocks today. Yay!
Tickets to Japan are booked, redeye flight on the 7th. Trying to get toysh to a good stopping point...