Better HN
topnewbestaskshowjobs
Log inSign up

eichin

1,605 karma · joined Feb 2, 2012 (14y ago) · 697 submissions

Submissions

comment 1w ago · link · parent

For later hardware like the TRS-80, the BASIC interpreter had an escape hatch: PEEK(addr), POKE addr, value, and USR1(). Basically you could read and write single bytes to RAM, and there was a magic 2-byte value which was a branch address that calling USR1() would jump into. So you could bootstrap some simple tooling that way. (I'd been writing hex machine code before I got any hardware, just pencil and graph paper, so it wasn't a big step to go from that to stuffing bytes into memory.) Of course there were tools available but actually paying for them was enough of a challenge that a lot of bootstrapping got done entirely anti-economically :-) (Once floppy drives and disk operating systems were a thing, you'd usually have a simple debugger where you could just type hex digits in, and load register values directly - so if you wanted to read raw disk sectors, you'd drop CD 75 46 18 FB somewhere, R DE track/sector, R HL where to read, R BC 0001 and then single step the code and it would read a single sector.)

(Note that while a lot of this was unjustifiable even then - my first real paying job in computers was down a step, working on a Z80-modded IMSAI so while most code was on 8" floppies, doing machine code in binary on toggle switches "just to fix something quick" was a legitimate skill :-)

comment 1w ago · link · parent

"we" being him (ie. not the reporter) because he's part of the executive branch; that's the limit of the authority of the executive order, after all...

comment 2w ago · link · parent

The Pentagon has six zipcodes and they're divided up by floor.

(My standard example used to be the World Trade Center, which had two - not one for each tower, but one for the state government offices and one for everything else.)

comment 2w ago · link · parent

Unless they're part of the executive branch that order doesn't apply. (Which is kind of too bad, under the "if it actually works it gets a name and isn't AI anymore" rules we need a new name... but This Isn't It.)

comment 2w ago · link · parent

Heh, flashbacks to Adero - a y2k-ish startup to do "the Akamai thing" but with XSLT running on our edge nodes, so you could have sophisticated personalization while the upstream site had hugely cacheable snippets. (One of our reference examples was a sports news site where you specified your interests and got a custom "newspaper" - assembled in our edge servers, not your browser.)

(I suspect if you had a catalog of "ways your startup can choose badly" for that era, we hit a lot of them. My top 3 were "attempt to do server balancing with a day's worth of latency data, using a perl script that took more than 24 hours to run and sometimes failed entirely", "Having a 20 person IT department to manage an outlook server for a 100 person company", and "Offering a senior engineer a VP position with firing authority to fix the outlook problem" :-)

comment 3w ago · link · parent

For a lot of places, handling this kind of incident response was "eating your vegetables" preparation that has just in the last couple of months turned into "for me it was Tuesday"...

comment 3w ago · link · parent

Grammatik ran in 64K of RAM on a Z80 running CP/M. (The binary included a Forth interpreter so there was a lot of straight up code compaction.) So yeah, you could catch a lot of common English-language infelicities in a startlingly resource constrained environment... in 1983. Certainly a lot more than typos.

(The reason I remember this bright and shiny data point is I spent a week or three reverse engineering it and getting access to the inner interpreter; the office staff actually used it, though.)

comment 3w ago · link · parent

As far as I can tell, the reason for the lack of companies is that they've made it impossible to monetize "software for other people" and apparently vast swathes of what used to need management are now "I can just build the parts of that I care about, it doesn't have to be good enough to ship to anyone else." (This horrifies me, though there is a silver lining: the value of the "idea guys" has also gone to zero :-)

comment 3w ago · link · parent

So negative that the first I heard about this was with the title "New York Times adds glue to its Cooking App. Users aren't thrilled" (presumably from someone who read the niemanlab article before I did)

comment 4w ago · link · parent

At first glance I almost misread this as a different C crime, since the declarations aren't in scope... uint8_t dhm_p[2048]; and uint8_t *dhm_p = (...)malloc(2048); both make dhm_p a reasonable pointer to 2k bytes of storage and are totally suitable for that argument, but sizeof the first one is 2048 and sizeof the second one is 4 (or more likely 8 these days, but this is specifically code from an embedded web server so I can say 4 :-)

But no, the actual problem was so much less subtle.

comment 4w ago · link · parent

Nice thing about this one is that we have the implementation details right in the article:

    mbedtls_ssl_conf_dh_param_bin(conf, dhm_p, sizeof(dhm_g), dhm_g, sizeof(dhm_g));
The first sizeof(dhm_g) should have been sizeof(dhm_p). So, do you attribute this to a simple typo (hard to catch at a glance due to similar letter shapes), "single letter variable names are bad" but the wikipedia page on DH also calls them p and g - it takes a little digging to get that "root" and "modulus" would have been better names, but maybe having them directly match the most common form of the equation would have made them easier to review...

Or do you just add it to the list of C crimes, that "passing storage length and pointer" is maybe the worst possible way to return written-to storage from a function :-)

comment 4w ago · link · parent

https://www.birds.cornell.edu/home/the-magic-of-merlin/ for background, but I've always been floored by how well "make spectrogram plots and then use image recognition techniques on them" works, it feels like something you'd invent as a technobabble special effect in a scifi movie :-)

comment 4w ago · link · parent

Same - it gets the ludicrous reach by having a small sensor (and OK but not miraculous lenses) but it turns out that most birdwatching is done in bright sunlight, which makes up for the optical limitations. (I also find it's easier to look for birds naked-eye first - even with mild corrective lenses, vastly more field of view and more effective motion-detecting reflexes - rather than trying to scan with the tiny field of view of the camera. But part of that was noticing the feeling of "levelling up" when I first started bird watching specifically :-)

comment 4w ago · link · parent

There were a bunch of high performance computing efforts from the 1990s and on where, if you could work out that you'd need 5 years of "today's" compute, you should obviously hang on to the money for 4 years, then spend it on the correspondingly improved hardware and finish the job in a under a year. I've been considering building a box to run OLMO (one of the only models with training data "that you wouldn't have to defend in court" as far as I can tell?) and even with Sam Altman's supply chain attack, stalling for bigger hardware still seems like the right path...

comment 1mo ago · link · parent

Also, that particular product was disappointing compared to everything else they made - there was a full split keyboard, a half keyboard (about the size of the iGesture pad but had at least 5-finger multi touch as well as being combined keyboards and touchpads - the same "win" as the thinkpad or j-mouse, you can do gestural stuff without your hands leaving the keyboard.) Still had a lot of learning curve but they had broad sweeping gestures for open/close file and the like - though the one really odd one that I remember was "touch all four corners simultaneously" which would cause the keyboard to "type" about 80 characters of product and firmware version and "mode" information. (At the time all of the gestural mapping was in the keyboard itself, no drivers needed - and you could toggle some of the general "editing" gestures among windows/mac/emacs/vi presets.)

comment 1mo ago · link · parent

The emphasis on using optimus leg parts for actuators is interesting, given that they're also still under development...

comment 1mo ago · link · parent

(Ah, the youtube "designer interview" says around 1700kg (the first-gen was 1300kg; formula one has a minimum weight of 800kg.)

comment 1mo ago · link · parent

If you want that, Terrafugia has been around for a while - but you still need to drive it to an airport to deply the wings and take off. (Flies for rather more than 3.5 seconds, too :-)

comment 1mo ago · link · parent

Didn't F1 cars briefly have downforce fans (basically suction fans underneath the car) until it was ruled out of spec? Basically a "reverse hovercraft" trick, normally used for handling, but "turned up to 11" here.

comment 1mo ago · link · parent

The page talks about a bunch of weight reduction tech, but I didn't see an actual final weight for the Rocket model? Given that it can support itself with "downforce" (and no thrusters, and apparently not much momentum?) at the top of the loop it's got to be pretty light...

comment 1mo ago · link · parent

The joke "God is Real (unless declared integer)" is definitely fortran-specific, though :-)

comment 1mo ago · link · parent

Heh, I used that TRS-80 (microsoft!) Fortran in high school - wrote a library for propagating error bounds and significant figures through calculations, for chemistry lab reports. (Could probably have done it in BASIC too, but I suspect I was looking for an excuse to use fortran for something :-)

comment 1mo ago · link · parent

One of the educational parts of this is that the phrase "supply chain attack" evokes image of Mission Impossible nonsense, whereas this was "just buy the reseller"...

comment 1mo ago · link · parent

... this sounds like the "use random password, discard it, always log in via the email-recovery path" approach, applied to the physical world :-)

comment 1mo ago · link · parent

One of the british car youtubers had some episodes on a place doing EV-converted 2CVs (with other upgrades so it wasn't purely minimal) - would be interesting to see it benchmarked against this, if it ever makes it out of concept phase...

comment 1mo ago · link · parent

Yeah, we had "always use long options in scripts as self-documentation" in a style guide at my last place. (Sure they were often less familiar - "we don't expect you to know, we expect you to learn" was also developer guidance. Though I think we had one or two exceptions listed, I don't remember them off the top of my head...)

comment 1mo ago · link · parent

mmm, I don't know if you'd call it clean but I have a late-1990s ceiling fan with a feature they called "fan flick" - turn it on, it comes on at the last selected speed. Want to change the speed? flick the power switch (toggle it quickly) and it changes by one notch. It's tedious, and you only get to change it one direction until it wraps around - but no wireless, no additional wiring, just "short power interruption" as a signal...

comment 1mo ago · link · parent

A quick look found https://archive.debian.org/debian/dists/Debian-0.93R6/source... and https://archive.debian.org/debian/dists/buzz/main/source/bas... but nothing earlier. (Amusingly the nearby diff says the sources came from "prep.ai.mit.edu:/pub/gnu/fileutils-3.12.tar.gz" in the "haven't heard that name in a long time" vein...)

comment 1mo ago · link · parent

mmm, in my circles commenting (at a higher level than the code, I think obviously? and yeah, comment maintenance is non-trivial) was valuable, but also "if the comments and the code disagree, treat both as wrong".

comment 1mo ago · link · parent

Reminds me of https://en.wikipedia.org/wiki/QAMA_Calculator - a calculator that won't reveal the precise answer until you supply an estimate (physical hardware in 2014, I think the current version is an app.) The website makes claims about the pedagogic value, but I didn't see any actual citations at https://qama.world/the-science/ just "everyone knows" kind of things... but if they had research supporting it that would probably inform your approach?
12345
24