Better HN
topnewbestaskshowjobs
Log inSign up

cornstalks

2,813 karma · joined Oct 20, 2014 (12y ago) · 478 submissions

Submissions

comment 1w ago · link · parent

About 10 years. It was closer to 9 but surprisingly the utility company recently decreased rates, increasing my payback period a bit.

I generate about 23 MWh/year. Of that, I directly consume about 15 MWh (including to/from batteries). I still need to draw 1.5-2 MWh from the grid per year to cover cloudy days or summer nights when my A/C still runs a ton after sunset.

My annual electricity bill is now about $185, but a bit over $150 of that is fixed account fees. We have net metering but the way it works about 10% of the energy consumed from the grid is considered non-creditable, hence I still have to pay about $35 for that 1.5-2 MWh I pull from the grid.

comment 1w ago · link · parent

Yes, there are definitely other use cases that Zig doesn't support (which some may view as a good or bad thing). I just wanted to respond to the comment about basic SIMD since the example was U8x32 and operator+, which Zig can do.

comment 1w ago · link · parent

You can do a+b in Zig with SIMD vectors. No operator overloading required

comment 1w ago · link · parent

Yes. Someday I plan on setting up a blog and going through the entire process and sharing my site plans and everything. I tracked every little item I purchased and made tons of notes.

comment 1w ago · link · parent

I bought 40 solar panels 2 years ago from Santan Solar that came out to about $130 including shipping and tax. These were 450 W panels. Looks like they now have 400 W panels for $145 + shipping/tax.

I know you didn't ask for it, but in case it's helpful to anyone, here's what I spent (this was all DIY installed):

- $4200 for solar panels (I only kept 33 of the panels and resold the other 7, so this is my net cost).

- $4850 for EG4 18KPV inverter.

- $6800 for 2x EG4 14.3 kWh indoor batteries + conduit boxes.

- $1900 for EG4 GridBOSS.

- $1700 for Tigo optimizers (TS4-A-O + CCA + TAP).

- $825 for permitting.

- $2575 to redo some siding on my house because I hard to replace my meter box and main panel.

- $4000 for wire, conduit, junction boxes, PV DC disconnect, AC disconnect, meter box, main service panel, etc.

- $3200 for racking and roof stuff.

- $2000 for misc things, tools, etc.

Net (including 30% tax credit and 2% credit card cash back), I spent $21,228.47 for everything.

comment 1mo ago · link · parent

Is this the first Apple device to list VP9 in its tech specs? https://www.apple.com/apple-tv-4k/specs/

comment 2mo ago · link · parent

TFA implies the issue is land owners won’t allow it:

> But beavers can only thrive if landowners allow them to.

comment 3mo ago · link · parent

I’d love to see how that compares to zmij: https://github.com/dtolnay/dtoa-benchmark

comment 3mo ago · link · parent

As far as I know HTTP 1.0 doesn't have a standards-track RFC (HTTP 1.1 and later do). JSON and HTTPS do indeed have standards-track RFCs, but I stand by my original wording that their first informational RFCs were "extremely important."

comment 3mo ago · link · parent

> which notably is not seeking recommendation status!

I don’t have a dog in this fight, but some extremely important RFCs are only on the “informational” track. RFCs 1945 (HTTP 1.0), 4627 (JSON), 2818 (HTTPS), etc.

comment 4mo ago · link · parent

This is an advertisement, but it's one of the few I actually enjoy watching, and it suggests a track is "2500 times smaller than a human hair" which puts an upper bound on the size of a bit: https://www.youtube.com/watch?v=ZXs_9OXRnQo

This doesn't answer your question but your question made me think of this and I thought I'd share for anyone else.

comment 4mo ago · link · parent

How would you do it, then? Sandboxing a project's build.zig via Wasm (and the various dependencies's build.zig files) seems like a great improvement to me and is how I would personally try to sandbox the build process.

comment 5mo ago · link · parent

A PhD is a Doctor of Philosophy, so unless that PhD has been invalidated he is in fact a doctor. I don't know his personal preferences so perhaps he doesn't like to be referred to as a doctor (based solely on what you're saying). But there was nothing factually incorrect about the poster saying "Dr. Hipp."

comment 5mo ago · link · parent

He earned a PhD…

comment 5mo ago · link · parent

x265 is an encoder, not a decoder. Also, being open source doesn't matter here: an open source library, even with a patent grant, doesn't give you a license to someone else's patents.

comment 5mo ago · link · parent

Some programmers will write more efficient code. At my $dayjob (one of the big tech companies) we're already planning a major goal next year of optimizing server code to reduce RAM requirements, and this is directly in response to the crunch.

In practice I expect most optimizations will come from "stop doing stupid stuff" and not "use fancy advanced algorithms." But that's a cynical perspective so don't be cynical like me.

comment 5mo ago · link · parent

> Reducing radiation from CT scans is a noble cause on its own

Is it? Linear No Threshold has largely been rejected at this point. https://jnm.snmjournals.org/content/early/2024/06/21/jnumed....

comment 5mo ago · link · parent

> like landmines

Boy do I have news for you about the use of landmines in the Ukraine war…

comment 5mo ago · link · parent

The most difficult part is acquiring the necessary domain specific knowledge, including what your AHJ changed from the national codes. But yes, once you know everything it’s all pretty straightforward stuff.

comment 5mo ago · link · parent

No, you also need to calculate the voltage drop over your distance to show to minimum wire sizing, and the voltage and power levels at the ASHRAE minimum temperature, the current level at 156.25% over the wiring at the ASHRAE max temperature to compute the temperature adjusted resistance and show that your wiring meets minimum spec, etc.

It’s not too hard to actually do the computations. But there is a ton to learn. I installed my own 14.85 kW system last year, with batteries, and I spent hundreds of hours just researching everything. I know I went overkill, but the hardest part of the project was just getting up to speed on all the requirements to meet code.

Someday I’ll write up my entire experience and share my site plan I used for permitting in the hopes it will help someone else. But doing solar right is a nontrivial investment for a newbie (like me).

comment 5mo ago · link · parent

No, I’m saying that it’s how I like to tinker. Others have their own ways of tinkering that are just as valid!

I personally think the optimization challenge is fun. I like digging in to low level stuff, reviewing the assembly dumps and processor pipeline architectures. I fail or give up most of the time, but I enjoy learning in the process.

I’m just trying to show how Zig fits my tinkering well, since you said you can’t see how Zig would ever be a good fit for tinkering. I’m not saying it’s a good fit for all forms of tinkering.

comment 5mo ago · link · parent

When I want to tinker it’s usually because I want to make something faster than anyone else has done. Does that help illustrate why some might prefer to tinker in Zig, and why your definition of tinker seems a little narrow?

comment 5mo ago · link · parent

It allows you to fill in padding in a buffer. For example, all data in a buffer will be interpreted by a downstream system, and someone pre-calculated the size of that buffer. Rather than encode everything twice (once to figure out the exact size needed, and a second time to actually populate the buffer) the buffer size was calculated using foreknowledge of how many values would be written to that buffer and then just pessimistically assuming all of them are max-size so writing will never fail. Another situation is when you're rewriting part of an already-encoded file. If you want to change a bit of payload then using padding bytes gives you more flexibility so you can do that without having to do any memcpy into a new buffer.

It's uncommon but I've definitely seen it done (with media containers like Matroska, not actually LEB128) in extremely high-throughput systems that can't spare any cycles.

comment 7mo ago · link · parent

SQLite is arguably the most widely deployed database in the world. It also has its roots in government/defense contracting so it was built with navigating that kind of red tape in mind.

Most OSS projects simply don’t have that kind of weight or discipline to follow SQLite’s footsteps.

comment 7mo ago · link · parent

PGBackRest was sponsored by some specific organizations, but not owned by them, and PGBackRest was not their product.

SQLite is in a whole different league when it comes to funding, corporate support, etc. There are commercial contracts directly tied to its ongoing support and development. As far as I understand SQLite is Hwaci’s bread and butter.

comment 7mo ago · link · parent

SQLite doesn’t depend on donations. They have a consortium, sell licenses (it is open source but some companies like the explicit CYA), sell support contracts, sell an aviation-grade test harness, and sell extensions.

Of course there is always the risk it goes out of business like any other company, but it’s not funded like your typical small open source project and doesn’t even allow open contributions (not necessarily a bad thing IMO but it’s just a totally different type of project).

comment 7mo ago · link · parent

I’ve done it multiple times without much effort. Or skill. Really it was a skill issue and I tried things that I thought would work but apparently don’t.

I screwed up jj a few times while picking it up, but jj’s undo command made that trivial to go back and try again. With git? I know a lot of things can be undone but I can never remember how to do it!

comment 7mo ago · link · parent

If you're already super comfortable in git, it's not. I'm saying this as someone who recently converted from git to jj and never wants to go back.

You also don't have to follow what the GP said. I never say `jj describe` before writing code. I write the code then just say `jj commit -m "Foo stuff"`, just like I would in git.

The bigger difference I've noticed is:

1. Switching between changesets just feels more natural than git ever did. If I just run `jj` it shows me my tree of commits (think of it like showing you git's branches + their commits), and if I want to edit the code in one of them I just say `jj edit xyz`, or if I want to create a new commit on top of another one and branch it off in a new direction, I just say `jj new xyz`. It took a little bit for my brain to "get" jj and how it works because I was so used to git's branches, but I'm really enjoying the mental model.

2. `jj undo`. This alone is enough to convert me. I screwed something up when trying to sync something and had a bunch of conflicts I really didn't want to resolve and I knew could have been avoided if I did things differently, but my screwup was several operations ago! So I ran `jj undo`. And ran it again. And again. And again. And then I was back to my clean state several stages ago before I screwed up, despite having made several changes and operations since then. With git? Yeah I could have gotten it fixed and gone back. But every time I've had to do something like that in git, I'm only 25% confident I'm doing it right and I'm not screwing things up further.

3. Rebasing. When I would try to sync git to an upstream GitHub repo that used rebasing for PRs, I would always get merge conflicts. This was because I stack my changes on top of each other, but only merge in one at a time. Resyncing means my PR got a new commit hash, even though none of the code changed, and now git couldn't figure out how to merge this new unknown commit with my tree, even though it was the same commit I had locally, just a different hash. With jj? I never get merge conflicts anymore from that.

Overall the developer experience is just more enjoyable for me. I can't say jj's flow is fundamentally and objectively better than git's flow with branches, but personally and subjectively, I like it better.

comment 8mo ago · link · parent

Given the pause in hostilities announced today it certainly looks like insider knowledge: https://truthsocial.com/@realDonaldTrump/posts/1162782323629...

comment 8mo ago · link · parent

Anecdote time! I had Codex GPT 5.4 xhigh generate a Rust proc macro. It's pretty straightforward: use sqlparser to parse a SQL statement and extract the column names of any row-producing queries.

It generated an implementation that worked well, but I hated the ~480 lines of code. The structure and flow was just... weird. It was hard to follow and I was seriously bugged by it.

So I asked it to reimplement it with some simplifications I gave it. It dutifully executed, producing a result >600 lines long. The flow was simpler and easier to follow, but still seemed excessive for the task at hand.

So I rolled up my sleeves and started deleting code and making changes manually. A little bit later, I had it down to <230 lines with a flow that was extremely easy to read and understand.

So yeah, I can totally see many SWE-bench-passing PRs being functionally correct but still terrible code that I would not accept.

12345
16