HN user

termie

280 karma
Posts4
Comments51
View on HN

I've been working on a micro Linux distro for a couple of months now. User mode is just a single static binary (and a few files to support confidential microVM containers). The initramfs is such an interesting feature, the kernel knows how to unpack cpio archives and just magically drops you into a tmpfs and executes /init. You can have multiple concatenated cpio archives, and each can be compressed, and they all just overlay in sequence. There's an elegance to the design. I also had to write some code to unpack them and learned more than I wanted to.

Stupid Unix Tricks 7 years ago

ProxyJump was added in OpenSSH 7.3 so systems from a few years ago might not support it. It does the same thing as ProxyCommand with -W %h:%p but you can’t set custom options for the jump connection with ProxyJump.

Yes, the kernel will map virtual to physical however it sees fit, no guarantees there (at least not in user-space via glibc). Realloc will always return a virtually contiguous slice or NULL if it can’t. And you’re right, obviously all those potential subordinate mallocs would be inefficient. :) In this contrived FizzBuzz example case, you could pretty easily do the math and just malloc it all in one go at the start of the function. Fizz and Buzz are the same size, you would just need to add up the iota lengths and the trailing \0. If you take an arg for N (1..N) then stack allocations are not going to work. You need to statically declare their size.

Someone has to make a business case to get the chargers on the street. There are questions like who owns the sidewalk, how to route sufficient power there, capital outlay for digging up the street and getting the charger there. All those costs and up and the revenue for a given charger is capped. People might pay a premium over the the cost of electricity, but how much? And they have to compete with free charging in many cases.

The throughput is amazing. The screenshot shows 28,375 MB/s — the capital B typically indicates Bytes whereas a lowercase b indicates bits, so your Gb/s translation is a little confusing. The latency is still much higher than main memory or Optane, but that might be fine for many applications.

..by the Republican majority House of Representatives. It can be roughly equated to being charged with a crime. The Senate held a trial and voted for acquittal and therefore no action was taken. Two thirds of the Senate must vote to remove a President from office.

This is promising, but for dedicated high-performance I/O I am much more interested in how the SPDK is progressing. Avoiding syscalls is great, but without any benchmarks I wonder about the benefits over mmap and vectorizing. You still have to contend with locking, interrupts, copying, and ring 0 abstraction impedence.

[1] https://spdk.io

Curious to know if they block Google’s DNS servers as well. That 1.x space was a RIPE research segment, so it’s possible that some internal AT&T group was using it with the assumption it would not be publicly routable and got bit. I was enjoying the shorthand ping of 1.1 for my router at home until Cloudflare took it over. Needless to say, if that was the case for AT&T, their ‘fix’ is not at all acceptable.

Tesla Semi 9 years ago

Still kinda giddy about the Roadster, too. Guilty — can’t get enough of Elon’s disruption (personal life aside) —- sue me or grab the pitchforks.. i’ll serve you lemonade. :)

Tesla Semi 9 years ago

If the math works there — could now or over time — then once L5 hits imagine the possibilities. L5 trucks towing broken L5 trucks with a third taking the cargo. I missed the video, but I’d bet huge that needed tech is probably prototyped already, at least in the elonoggin. Well done Elon!

The reserved instance pricing model is really poorly implemented. You have to commit to an instance class and a region, and if you need to change you can, but there is some secondary market. When compared to a sustained use model, it is a disaster. Managing all that in a large org is a real pain in the ass.

I wonder if you could make a big drill out of hundreds of hot swappable high torque Tesla motors that were intelligently geared and well mounted. Hot swapping battery packs from the underside of a car via automation was demonstrated years back by Tesla so learnings there could be used. Tesla uses a bunch of widely available 18650s for their packs and benefit from that same modularity, and I imagine big cost savings there for a drill that size even with a great deal of breakage in the array of motors.

"The Step Functions free tier includes 4,000 free state transitions per month." .. "$0.025 per 1,000 state transitions thereafter"

So Amazon has created a new calling convention, where conditional logic now also requires a context switch and JSON serialization. Then they charge you for the call .. $tdcall?

This will certainly have some useful applications, maybe someone will build an inexpensive data processing pipeline on top of it. Having seen many visual workflow tools through the years, most are simplifying complex underlying process, but these step functions and state transitions are modeling basic internal control flow with complex abstractions and little benefit other than retries with backoff.

The pure functional immutable nature of the data flow is ideally nice but tainted by the JSON. The parallelism is interesting, but it seems bolted on instead of a more powerful central part of the design.

You are correct. I assumed MS Office put it there, not even considering that Comic Sans would be on OSX by default. Hah! It's an even more sublime statement now, as only the untainted free distributions out there don't see it.. and it's also directed at web hipsters, but the result there appears to be unintentionally ironic.

Your refactor is wrong. You've reversed the ternary and removed the socket() return check. The consolation prize is that you've reinforced the issue of lack of clarity in the code.