Monthly Archives: June 2021

Massachusetts health notifications app installed without users’ knowledge

Source: Hacker News

Article note: Two different stories (the other being about smart thermostats being automatically remotely turned up in Huston because the Texas grid is a bad joke: https://www.ksdk.com/article/news/remote-thermostat-adjustment-texas-energy-shortage/285-5acf2bc5-54b7-4160-bffe-1f9a5ef4362a ) that are probably about unintended consequences of clicking through innocuous-sounding opt-in things on IoS devices today, and generally about letting third parties fuck with your devices unattended. ...We probably need a regulatory framework around that. One better than the one the various large incumbents will push for.
Comments
Posted in News | Leave a comment

Honey, I shrunk the Arduino core! #Arduino #Programming

Source: adafruit industries blog

Article note: Very cool. Arduino is already relatively low-overhead on size and performance compared to a lot of the rapid-prototyping environments (Lookin' at you micropython, I've seen 500x performance hits relative to C there), but it's nice to see the lower layers get better, particularly since improving the underlying tooling makes everything built on top of it better.

Nerd Ralph blogs about shrinking the Arduino core for ATmega168 and 328 MCUs at 4 to 16 MHz:

One of my gripes about the Arduino AVR core is that it is not an example of efficient embedded programming.  One of the foundations of C++ is zero-overhead abstractions, yet the Arduino core has a very significant overhead.  The Arduino basic blink example compiles to almost 1kB, with most of that space taken up by code that is never used.  Rewriting the AVR core is a task I’m not ready to tackle, but after writing picoCore, I realized I could use many of the same optimization techniques in an Arduino library.  The result is ArduinoShrink, a library that can dramatically reduce the compiled size of Arduino projects.  In this post, I’ll explain some of the techniques I used to achieve the coding trifecta of faster, better, and smaller.

The Arduino core is actually a static library that is linked with the project code.  As Eli explains in this post on static linking, libraries like libc usually have only one function per .o in order to avoid linking in unnecessary code.  The Arduino doesn’t use that kind of modular approach, however by making use of gcc’s “-ffunction-sections” option, it does mitigate the amount of code bloat due to the non-modular approach.

With ArduinoShrink, I wrote more modular, self-contained code.  For example, the Arduino delay() function calls micros(), which relies on the 32-bit timer0 interrupt overflow counter.  I simplified the delay function so that it only needs the 8-bit timer value.  If the user code never calls micros() or millis(), the timer0 ISR code never gets linked in.  By using a more efficient algorithm and writing the code in AVR assembler, I reduced the size of the delay function to 12 instructions taking 24 bytes of flash.

See the post here and ArduinoShrink on GitHub.

Posted in News | Leave a comment

Amazon suspends popular electronics manufacturer for buying reviews

Source: The Verge - All Posts

Article note: Huh, TaoTronics, like RavPower has been a super reliable brand (I love their color-temperature-adjustable lamp heads), but they certainly do do the offer-to-get-compensated-for-reviews thing, so presumably Amazon is coming down on that behavior.
Comments
Posted in News | Leave a comment

A bare metal physical implementation of WASM. That’s right, a WebAssembly CPU

Source: Hacker News

Article note: I was really hoping for HDL code, but this appears to be several year old webshit in webshit that never actually moved toward hardware.
Comments
Posted in News | Leave a comment

DOJ inspector general to probe secret subpoenas of Democrats during Trump administration

Source: The Week: Most Recent Home Page Posts

Article note: This should be the _end_ of humoring 'lawful intercept' bullshit. Legally and technologically enable strong E2E encryption for everyone.

DOJ inspector general to probe secret subpoenas of Democrats during Trump administration

Posted in News | Leave a comment

Chrome abandons ‘simplified domain experiment’ in omnibar

Source: Hacker News

Article note: Good. At least they dropped it when it became clear it was not just obscuring and confusing, but also useless. "UX" "design" "innovations" like that are usually much harder to kill.
Comments
Posted in News | Leave a comment

‘Metal Slug Tactics’ resurrects a classic ’90s franchise

Source: Engadget

Article note: Metal Slug x Final Fantasy Tactics? This is intriguing.

Metal Slug, a mainstay SNK action franchise, is back... in tactical RPG form!

Posted in News | Leave a comment

The Surveilled Student

Source: Hacker News

Article note: So many thoughts. At least it's making students actively privacy-conscious. There is a real problem with blatant fucking cheating. Mandating spyware on student-owned devices and AI woo is not a valid solution, the tools are bad and side-effect laden enough to not actually solve the problem, tend to have detrimental effects on the good actors while still being easily cheated past, which is not acceptable. Some defensive exam design helps. Vary your exams from semester to semester, pull questions from pools so the students' forms are different, run short assessments on short windows to prevent closing the chegg loop... these things are _some_ work but usually not an enormous amount, though I realize a lot of tenure-track professors understand the whole "As long as the university doesn't lose a court case as a result of my teaching, no one cares" incentive structure and would like to avoid even that minimal work and run the same course for a decade and/or buy course packet from Mcgraw Hill that 8 other schools are using and the whole of is posted on the internet for students to cheat from). ... the classes I work on are planning to revert to paper exams ASAP, it's a much cleaner solution even though grading is more work.
Comments
Posted in News | Leave a comment

Utilities should be dumber

Source: The Week: Most Recent Home Page Posts

Article note: As much as I don't like agreeing with Hawley, "Battlestar Galactia rules" is really a pretty good model for essential infrastructure.

Utilities should be dumber

Posted in News | Leave a comment

Replit used legal threats to kill my open-source project

Source: Hacker News

Article note: Some startup dbags managed to raise $20 in VC money to put a thin proprietary web-frontend veneer over a bunch of open source programming tools and rentseek off of it (which is, frankly, a minor variation on how most of the tech start-up scene seems to work these days). Then one of their former interns built an all-open-source similar veneer in a couple afternoons. Then their CEO threatened him, and made passive aggressive social media posts about 'copycats' and 'innovation.' Looks like even the HN startup-douche circlejerk isn't buying this one.
Comments
Posted in News | Leave a comment