Better HN
topnewbestaskshowjobs
Log inSign up

ncruces

2,596 karma · joined May 25, 2023 (3y ago) · 1,144 submissions

https://github.com/ncruces
Submissions

comment 1d ago · link · parent

Strong agree here. There's a latitude band where DST actually makes sense.

Basically, in those places, shifting a single hour captures most of the useful difference between winter and summer: moving 1h of the 2 or 3h of extra morning light over to the afternoon. The contiguous US is mostly in that sweet spot (Southern Europe and Mediterranean too).

Further south it makes no sense, and further north it's just noise: the clock changes happen at a time of year when days are growing or shrinking by more than 30 min/week.

comment 5d ago · link · parent

In Portugal: in a liquidation, they may loose first preference for back pay.

Back pay first, then social security, then taxes, then secured/privileged/unsecured/subordinated credits.

comment 5d ago · link · parent

Filesystems can be much slower than SQLite for many (think millions of) small files.

They also mention considering this in the post.

comment 1w ago · link · parent

He repeatedly mislead board members regarding the nature of these relationships while questioned specifically about them.

That's all the misconduct there needs to be. It's also why you don't do this shit: so you don't have to lie about it when it matters.

Otherwise, what's the point of even having a board?

comment 1w ago · link · parent

Power was fully restored in Portugal by 22:22 UTC on April 28: https://eepublicdownloads.blob.core.windows.net/public-cdn-c...

I'm not trying to win a pissing match, just trying to counter the very common miserabilist notion that Portugal did worse than Spain.

This specific problem was (1) caused in Spain, (2) fixed faster in Portugal, and (3) with little external help.

Portugal could've been the cause, and could've done better, for sure.

But it's just not balanced to write "In Portugal it didn't go that well" as a response to "It went remarkably well [in Spain]." Makes it sound much worse than it actually was.

comment 1w ago · link · parent

Me neither. Maybe that's why. :)

comment 1w ago · link · parent

It actually was better than in Spain. Large portions of Spain were left without power for almost 24h, despite the help from France (initially) and Morocco (later).

Portugal was able to recover in 12h (still a lot) without any external assistance.

comment 1w ago · link · parent

You misunderstand my point: not bad, because I was expecting worse.

comment 1w ago · link · parent

Not bad: 2 in 3 are actual discounts, 90% don't leave you worse off.

comment 1w ago · link · parent

The margin is too narrow to contain it.

comment 1w ago · link · parent

I'm in the process of adding a few of these to my Go SQLite driver.

https://pkg.go.dev/github.com/ncruces/go-sqlite3/ext/approx

They work as window functions, and they also support creating roll-up tables, e.g. you have a table storing a sketch of daily active users and can use that to get weekly and monthly active users.

Same for quantiles (e.g. median and tail latencies) and next up top-K (e.g. most popular content, highest spenders, etc).

comment 1w ago · link · parent

We could even use `ssh -X` to send it over SSH if that flag is otherwise unused.

comment 1w ago · link · parent

A century? Since 1926? The FAA was created in 1958.

comment 1w ago · link · parent

There's billions of women in the world. A small minority can still be lots.

comment 2w ago · link · parent

CL (change list) is Google speak for a PR [1].

So, likely: Gemini Flash, Argon, Carbon [2]; and Claude Opus [3]. Maybe more.

https://google.github.io/eng-practices/review/developer/cl-d...

https://blog.google/innovation-and-ai/models-and-research/ge...

https://www.businessinsider.com/google-finally-lets-all-engi...

The models are great, but the experience resonates. It really depends on what you're doing, and ultimately, how much you care. A 10k LoC PR that feels “tacked on” should help you guess the size of the code base.

So do you care about getting 10k LoC to review, in a 1M LoC code base? How about 3 such PRs? How about reviewing another half a dozen, from colleagues? And doing that 2 or 3 times a week?

comment 2w ago · link · parent

> I can recognize within seconds if a PR is an easy merge or a 5 minute phone call.

I'm glad you can.

Even before agents, I'm pulled to work on at least a couple different projects a year, the successful ones with teams of 10s of people working on them. If I stay longer than a couple of months, I eventually become the expert on some of the things I did, so I get pulled years later to review something I haven't touched in ages, which has changed requirements, and grown a bunch of dependents.

That was the reality of working on a team with hundreds of people and dozens of related products.

Now agents are helping people increase complexity and velocity N-fold.

You can call it a problem in the coal mine, but there's no going back. GitHub simply has no choice but to handle this new scale.

comment 2w ago · link · parent

This makes sense. It's not a second factor if all elements live on a possibly compromised device.

comment 2w ago · link · parent

Ironically Go has(d) json.Number which almost no one used, so it got dropped from v2: https://pkg.go.dev/encoding/json#Number

You can still use it though, and I built my tiny decimal library around it: https://github.com/ncruces/decimal

comment 3w ago · link · parent

I dunno about holes, but…

SQLite has gone into a frenzy of bug fixing this past year, changing long stable processes to ease things up: opening a specific report channel just for these kinds of bugs, adding features to Fossil to help manage things on their end (and that's just the visible stuff).

And with all that, the latest release has unfortunately been the buggiest I've experienced so far.

I skipped the .0 because of a crash, and only released .1 after giving up waiting for a .2 that never came, with a patch to fix a serious performance regression.

I spent a month supposedly shipping old bugs no one had a problem with, rather than shipping new bugs that instantly crashed things or caused measurable regressions.

That's on a software with stellar testing, and a good engineering team known to favour stability over the new shiny.

comment 3w ago · link · parent

I have a digital Casio with an analog display. It's solar, so it never needs to be charged. It sets itself to the correct time, and date, across DST and timezone changes.

It doesn't have the mechanical beauty of an automatic with a perpetual calendar, but is otherwise better in every way that matters, and it is just as pretty.

comment 3w ago · link · parent

People who are already using it (both internally and/or select partners) can speak more freely about it if it's announced.

This is especially true around earnings, not necessarily for some sinister reason, other than it's material information that can influence the market.

comment 3w ago · link · parent

I personally found balancing weight balanced trees pretty straightforward: https://yoichihirai.com/bst.pdf

What I like about immutable treaps is that, if you using hashing rather than randomness, you can achieve O(1) equality for entire trees.

Unfortunately, my current language of choice makes hash consing too slow.

comment 3w ago · link · parent

And much better for not going into needless detail.

In fact, a problem with LLMs is that they consistently write more than I want to read.

comment 3w ago · link · parent

But then you increase the risk of (suspected) sabotage disrupting the Dutch railway network. Which obviously is better than an deadly accident, but...

comment 1mo ago · link · parent

Dead people not removed from the registry?

comment 1mo ago · link · parent

80h ago everyone was advising everyone else to take all their websites immediately down.

Now it's only worth it to hack a website that's asking to be hacked if the prize is $15k.

comment 1mo ago · link · parent

Did they ask Claude "don't cheat" this time round?

comment 1mo ago · link · parent

Ongoing draft: https://github.com/ncruces/go-sqlite3/pull/438
12345
39