Better HN
topnewbestaskshowjobs
Log inSign up

guerrilla

9,807 karma · joined Aug 10, 2013 (13y ago) · 5,135 submissions

Submissions

comment 5y ago · link · parent

Well, first of all the UNIX/POSIX API is a C API, so that question doesn't make much sense. On top of that, there have been no competitive systems programming languages until recently (and certainly none that weren't written in C), so that wouldn't have been worth it. Also, it wasn't really an idea per se: C is just the native language and lingua franca of UNIX and that's just how UNIX developed organically.

comment 5y ago · link · parent

The explanation for why it's useful is at the bottom of the page, but it wasn't necessary before glibc got behind and before Linux started adding things that glibc would probably never implement*. Generally, on UNIX-like systems, the C library isn't just the C library but also exposes the UNIX/POSIX API which is just a set of wrappers around calling into the kernel (done with software interrupt 0x80 on x86 Linux.)

* Remember that glibc is part of the GNU project and is meant to be portable beyond Linux, especially to Hurd. It might not make sense for them to implement interfaces that wouldn't work or would require significant work to emulate on Hurd, the BSDs and Solaris.

3303.

liblinux: Architecture-independent access to Linux system calls(github.com ↗)

153 points · by guerrilla · 5y ago · 75 comments

comment 5y ago · link · parent

I am so impressed by those photos. Those are stunning and so perfectly relevant.

3305.

Introduction to and History of Microcode and Microprogramming (2019)(people.cs.clemson.edu ↗)

2 points · by guerrilla · 5y ago · discuss

comment 5y ago · link · parent

> or without understanding the underlying tech and implications

or environmental implications. And apparently legal implications as of yesterday [1]

1. https://twitter.com/renatoram/status/1457675589150777352?s=2...

3307.

Intel 4004 50th Anniversary Project(4004.com ↗)

2 points · by guerrilla · 5y ago · discuss

comment 5y ago · link · parent

Fair enough. I think the original Datapoint design for what became the 8008 was even entirely serial, including the memory. I guess I should have said it would have been exceptionally more annoying. It's hard enough to get a computer out of it. So it'd be impossible in the sense that they wouldn't have met the goal of getting that relatively easy kit out of it and there wouldn't have been any PC.

comment 5y ago · link · parent

I believe the point he was making was that they were/are the US's proxy wrt. foreign policy. Not being able to fly there is congruent with "does not carry even one American soldier." The thing about proxies is that you're not always in complete control of them but the benefits often far outweigh the costs. You can confirm both of those conditions by looking at a lot of parts of the Syrian Civil War.

comment 5y ago · link · parent

The 8086's microcode has been disassembled (and is mostly documented) by the way [1]

1. https://www.reenigne.org/blog/8086-microcode-disassembled/

comment 5y ago · link · parent

I think it would have been impossible otherwise. It's still annoying with the multiplexed address and data pins in the DIP-40: you have to demultiplex them with latches and transcievers. And don't forget the 8088 (used in the PC) couldn't do data in one clock due to the 8-bit data bus (386SX was similar in the next step up.) Pretty cool for us that the 8086/8 are breadboardable though.

comment 5y ago · link · parent

Less true today, but historically:

“Israel is the largest American aircraft carrier in the world that cannot be sunk, does not carry even one American soldier, and is located in a critical region for American national security.” — Alexander Haig (former Secretary of State under Reagan and four-star general.)

Today they have a lot of common economic interests and trade, similar to a European country.

comment 5y ago · link · parent

This is part of a series [1] by the way. I really liked the one about the latches [2] and the die shrink photos are pretty cool. We always hear about it but here you get to see it. [3]

1. http://www.righto.com/search/label/8086 (Click Older Posts at the bottom to make sure you see all of them)

2. http://www.righto.com/2020/08/latches-inside-reverse-enginee...

3. http://www.righto.com/2020/06/die-shrink-how-intel-scaled-do...

3314.

A look at the die of the 8086 processor (2020)(righto.com ↗)

217 points · by guerrilla · 5y ago · 37 comments

3315.

Latches inside: Reverse-engineering the Intel 8086's instruction register(righto.com ↗)

3 points · by guerrilla · 5y ago · discuss

comment 5y ago · link · parent

No, the person is replying to themselves. That's how you create threads. There is a UI mechanic to make it trivial as well but it's only been around for a couple of years.

It's the same as how threaded email and news clients work but there's one small difference: the display will prioritize the originator over other people who are also replying.

comment 5y ago · link · parent

So, this seems like a potential positive feedback loop if Telegram were ever to matter much. Are other platforms like this? If Facebook and Google both did this, it seems like we'd end up with an economy that we don't want (assuming they matter as much as I think they do.)

comment 5y ago · link · parent

Yeah, tagging really seems like the job of a file manager (and indexer) rather than a file system. That seems like an easy way to get everything we want without rewriting billions of lines of code that deal with hierarchies.

comment 5y ago · link · parent

From the Description: "Alex Blewitt presents the microarchitecture of modern CPUs, showing how misaligned data can cause cache line false sharing, how branch prediction works and when it fails, and how to read CPU specific performance monitoring counters and use that in conjunction with tools like perf and toplev to discover where bottlenecks in CPU heavy code live."

Transcript: https://www.infoq.com/presentations/microarchitecture-modern...

3320.

Understanding CPU Microarchitecture to Increase Performance (2020) [video](youtube.com ↗)

4 points · by guerrilla · 5y ago · 1 comment

comment 5y ago · link · parent

I don't think I understand your problem well enough, but just in case, would using dlopen with gcc or LLVM instead help?

3322.

Ted Hoff Inventor of the Microprocessor: History, Insights, Predictions [video](youtube.com ↗)

2 points · by guerrilla · 5y ago · 1 comment

comment 5y ago · link · parent

I highly recommend this video if you're overwhelmed by how modern microarchitectures work. This is a joint lecture recorded in 1993 by the the John Crawford who was the project manager and Donald Alpert who was responsible for the technical definition and quantification as well as Beatrice Fu (a compiler expert whose role in the project I don't know.) I thought it was a nice overview from a time when things were just starting to get interesting but were still comprehensible by a lay programmer.

I had no idea the Pentium had a 64-bit data bus. Also interesting to see how simple branch prediction started out. I'd like to learn a bit more about that at some point.

3324.

Intel's Pentium Processor (John Crawford, Donald Alpert and Beatrice Fu) [video](youtube.com ↗)

3 points · by guerrilla · 5y ago · 1 comment

comment 5y ago · link · parent

Somewhat disappointing to see 32.1% still for non-physical minds despite everything else.

3326.

How does a game engine work? an overview (2016)(haroldserrano.com ↗)

164 points · by guerrilla · 5y ago · 116 comments

comment 5y ago · link · parent

No, that's wrong. If you actually look at the graph and my comment, you'll see that consumption did not in fact increase much at all in that time and slightly decreased recently.

comment 5y ago · link · parent

Nothing has changed about the actual output of hydro power since the 80s. It wasn't growing to begin with, so it's definitely not a cause of very recent price increases.

comment 5y ago · link · parent

Your comment on hydro isn't relevant since hydro output hasn't actually changed[1], meanwhile wind production has overall replaced nuclear. Total production has increased slightly while total domestic consumption has decreased slightly. So basically it comes down to increased exports and variability of wind.

1. https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/El...

comment 5y ago · link · parent

Oh thanks for that first one! That's so neat and such a pretty board too.
1
110111112
172