HN user

diffuse_l

792 karma
Posts29
Comments72
View on HN
www.os2museum.com 3y ago

Undefined Isn't Unpredictable

diffuse_l
1pts0
www.os2museum.com 3y ago

Does (E)IP Wrap Around in 16-bit Segments?

diffuse_l
14pts1
www.youtube.com 3y ago

Area 5150 IBM PC Demo

diffuse_l
7pts0
yawn.io 4y ago

Pangrammatic Autograms (2019)

diffuse_l
17pts1
icode4.coffee 5y ago

Fixing Rendering Bugs in Dead Rising PC

diffuse_l
1pts0
retrocomputing.stackexchange.com 5y ago

Why does trying to break into the NT 3.1 kernel reboot my 486DX4 machine?

diffuse_l
2pts1
rev.ng 5y ago

PageBuster: Stealthily dump all the code ever executed

diffuse_l
3pts0
lock.cmpxchg8b.com 5y ago

Lotus 1-2-3 arbitrary resolution

diffuse_l
520pts123
scarybeastsecurity.blogspot.com 5y ago

Reverse engineering a forgotten 1970s Intel dual core beast: 8271, a new ISA

diffuse_l
3pts1
threadreaderapp.com 5y ago

Uber App Size Origins

diffuse_l
7pts0
www.filfre.net 5y ago

Ethics in Strategy Gaming, Part 2: Colonization

diffuse_l
1pts0
www.os2museum.com 5y ago

Every Bit Matters

diffuse_l
1pts0
www.os2museum.com 5y ago

Percussive Maintenance

diffuse_l
2pts0
www.vogons.org 5y ago

Using a real VGA video card from PCem emulator

diffuse_l
2pts1
www.os2museum.com 5y ago

Not MSX Either

diffuse_l
2pts0
arstechnica.com 5y ago

Former Facebook manager: “We took a page from Big Tobacco’s playbook”

diffuse_l
3pts0
arstechnica.com 5y ago

What Tesla will put in its new batteries

diffuse_l
10pts2
arstechnica.com 5y ago

Tesla plans to make batteries cheap enough for a $25,000 car

diffuse_l
8pts2
www.os2museum.com 5y ago

Really Atari ST?

diffuse_l
110pts91
www.os2museum.com 5y ago

Really Atari ST?

diffuse_l
1pts0
www.agner.org 5y ago

Surprising new feature in AMD Ryzen 3000

diffuse_l
411pts148
ling.re 6y ago

Hardware Breakpoints and Exceptions on Windows

diffuse_l
1pts0
googleprojectzero.blogspot.com 6y ago

Mitigations are attack surface, too

diffuse_l
1pts0
www.filfre.net 6y ago

The Deal of the Century (Or, the Alliance of Losers)

diffuse_l
3pts0
www.os2museum.com 6y ago

More Fun with ISA DMA

diffuse_l
2pts0
blog.athrunen.dev 6y ago

Learning hardware programming as a software engineer

diffuse_l
324pts46
aosabook.org 6y ago

Parsing XML at the Speed of Light

diffuse_l
1pts0
yawn.io 6y ago

Pangrammatic Autograms (2019)

diffuse_l
2pts0
gamozolabs.github.io 7y ago

Vectorized Emulation: Hardware accelerated taint tracking

diffuse_l
3pts0
Claude Fable 5 1 month ago

Seems like weekly allowance got reset back to 0%, pretty usual when they deploy new models.

For short strings (probably most of them) - use a byte for the length (at the string/symbol definition site, alongside the offset) (adds 1 byte * symbols, use high bit if necessary to add bytes for longer strings). You need the offset into the table anyway. It isn't strictly better, but it isn't strictly worse, and it gives you the option to reuse sub-strings.

Nothing prevents you from using a shared pool of strings that don't have null terminator. It can even be more efficient, since you don't have the null byte to handle at string end. Depending on the maximum string length you want to support, it doesn't even have to take more space.

Complete assembly. Wouldn't call it trivial, but not super hard either. I wouldn't dream of doing this without the complete assembly, not worth the hassle. You run the risk of ruining something, but for me the reasoning was that worst case I'd still have a conputer I can attach to an external monitor. Replacement itself is mostly removing screws and cables carefully - followed the ifixit guide.

Had a similar issue - some of the display was garbled for more than a year. Had a replacement screen from aliexpress lying around that cost 126$ two and half years ago, got to do the replacement a few weeks ago, as the kid needed a laptop for school. Turns out the replacement screen resolution was not the same as the original, but it still works fine, took ~1 hour for the replacement.

So for me it did make sense to repair - it costs less than a new laptop, at least

XML is a cheap DSL 4 months ago

That's if you parse the into a DOM and work on that. If you use SAX parsing, it makes it much better regarding the memory footprint.

But of course, working with SAX parsing is yet another, very different, bag of snakes.

I still hope that json parsing had the same support for stream processing as XML (I know that there are existing solutions for that, but it's much less common than in the XML world)

Some minor nitpicks, but hey, we're counting registers, it's already quite nitpicky :)

Add far as I van remember, you can't access the high/low 8 bits of si, di, sp. ip isn't accessible directly at all.

The ancestry of x86 can actually be traced back to 8 bit cpus - the high/low bits of registers are remenants of an even older arch - but I'm not sure about that from the top of my head.

I think most of the "weird" choices mentioned there boil down to limitations that seem absurd right now, but were real constraints - x87 stack can probably traced back to exposing minimal interface to the host processor - 1 register instead of 8 can save quite a few data line - although a multiplexer can probably solve this - so just a wild guess. MMX probably reused the register file of x87 to save die space.

It was pretty clear towards the middle of the piece that an ai was involved writing this piece, which was unfortunate, since it distracted me so much from the subject that I couldn't complete reading it...

It's more than that. They have an unlimited license to arm designs, and can change them as they see fit, since they were an early investors (or something along those lines). Other manufacturers can't get these terms, or if they can, it will be prohibtly expensive

I tried to repair a macbook air, and did manage to tear the microphone cable, because I didn't notice the connector :|

Like you said, you need to be careful, but you better be prepared to pay dearly (or manage without) for your mistakes...

This reminds me that I once worked in one city, and attended university in another city.

At some point, there were train lines works that lasted for a few years, which meant that almost any train ride was delayed. You got a ticket back for half an hour delay, and two for a full hour.

In addition, my workplace paid me a set amount of money to cover ttain travel expenses for each work day.

I think that for most of my studies I effectively didn't pay for train travel, and had time to work while on the train.

You did have to wait in line to get the ticket after the train ride, and the train officer wasn't too happy about giving out tickets, bit it usually worked...