skysight-inc/HackerNews huggingface dataset:
> number 1 issue I find myself having when switching from C++ to C is missing RAII

That's because you've become complacent; you've gotten used to the false comfort of destructors. C++ destructors promise that you can ignore object destruction in business logic, and that's a false promise.

Assume you have a function that already has a correct traditional (cascading gotos, or arrow pattern) exit path / error path. Assume that you have the (awkward) defer-based implementation of the same function. Assume you need to insert a new construction step somewhere in the middle. In the defer-based implementation, you insert both the new action and its matching "defer" in the same spot.In the traditional implementation, you locate the existent construction steps between which you insert the new construction step; you locate the corresponding existent destruction steps (which are in reverse order), and insert the new destruction step between them. The thinking process is more or less the same, but the result differs: without defer, your resultant source code shows what will actually happen on the exit path, and in precisely what order, and you can read it.

I think defer is awful.
Bird-inspired drone uses legs to walk and jump into the air
Git HTTP transport protocol documentation (2013)
Safety and schedule. I've never had a safety issue with taking commuter rail into Boston but taking it home from an evening event is basically a non-starter given how seldom it runs and how much longer it will take relative to driving even if I catch my train.
US politics has devolved to the point where the government can no longer promote basic public health measures and we all suffer for it. It’s a fucking tragedy.
If I’m ever feeling too peaceful or content, I’ll ask Siri something. In the blink of an eye, I’m enraged and cursing.
Depends on the place I'd think. I almost exclusively use Apple Maps except for when I need data about a business. On the other hand Google has also sent me to wrong places a few times, sent me to a closed road etc.
While I'm sure congestion pricing will have a positive impact on traffic, I'd wait a little while longer to draw any conclusions, considering (1) the data is from a single day (2) lots of people aren't back from holiday travel and (3) there's a winter storm across the country and a decent amount of snow fell in Jersey/New York today, discouraging driving.
> what do you do as the feds?

I don't know exactly how Federalism works in Canada but the answer is their jobs. If that doesn't entail stepping in to provincial business, they shouldn't do anything.

There doesn't always have to be something done.
> U.S. Capitol Police officer Harry Dunn says that while it’s been two years since rioters attacked the building on Jan. 6, his memories of that day remain fresh and painful. Dunn was outside on the west side of the Capitol, trying to hold the line with other officers, when the sheer number of right-wing rioters began to overwhelm them. Then it was a battle, all day long. “It was a horrific experience, one of the worst days of my life,” Dunn said in an interview with WTOP. “A lot of times, throughout the day, our thoughts were just on survival.”

https://wtop.com/dc/2023/01/capitol-police-officer-on-jan-6-...
In practice the entire government has been propped up by a leftist coalition between the Liberals and NDPs, in recent years, so functionally I think they have done just fine.

In fact, in a first-past-the-post system with a minority government you often end up giving disproportionate power to the third place party, in terms of the popular vote (in this case the NDP) because they hold up the government and can make significant demands in doing so. This has been absolutely borne out in Canada.
One big flaw in Go-style `defer` is that error handling and scoping are an afterthought, and it's disappointing to see this is not improved upon in this proposal (at least as I understand the proposal).

I do think this matters in practice. If I have a `func whatever() error` IME it's a common to accidentally do something like `defer whatever()` without catching handling the error. To work around that you'd need to do something like the following.

var err error
defer func() {
err = whatever()
}

For me personally: ugh. I understand the "received wisdom" is to just structure your code differently. I don't think that's reasonable, because cleanup code is often complicated, often can fail, and is generally vastly less well-tested/exercised. YMMV, my experience is that, because of these things, the dispose-path bugs tend to be disproportionately bad. Error handling facilities that treat the dispose path as by-default not worth insuring are IMO setting users up to have a very bad time later.

While we're fixing up the error handling, I really think it's not an accident that "`defer` in a loop does not terminate in the loop, but at the end of the function" is such a frequent misunderstanding. Yes the docs are clear, but all languages spend a lot of time training you on lexical scoping, and lexically-defined disposal lifetimes (e.g., C#'s `using` or Python's `with`) are a natural extension of that training. Those implementations to varying degrees have the same error handling problem, but with some effort I really think a better world is possible, and I don't think we have to expand this to full-on RAII to provide such semantics.
You can have homework for practice. That is obviously very useful. What I mean is that any unsupervised work will stop counting towards final grades.
> Invisible jumps are very bad

Agreed; they're terrible. Implicit sucks, explicit rules.
Elon is so nuts I can’t decide of this is a joke or something he actually did.

Crazy times we live in.
Im French, my anecdotal opinion is the same as the Canadian parent comment: they block and destroy, propose nothing realistic and end up pissing everyone off. I vote Macron as a result.
This is what we do. The kids don't get unlimited access to TV, but rather curated access to educational material, but we limit tv altogether on weekdays and they only get ipads at the restaurant. On the weekends they can watch a few fun movies in the afternoon.
Totally agree, 'dude with a newsletter and an email address' is very underrated.
Not sure why you think OLTP doesn’t also do complex joins. In a properly normalized schema, you’ll likely have many.

But yes, OLAP is of course its own beast, and most DBs are suited for one or the other.
Several EU cities have experimented with making public transport free, and people seem to really enjoy it.

Also, as you so eloquently put it, it isn't clear that the cost for issuing and checking tickets is covered by the income from the tickets, and there are reasons why MTA tickets cannot be priced at the actual cost to cover the ticket compliance infrastructure -- with a nice analogy to the cost of parking vs value of parking real estate. What justifies the subsidy for on-street parking?
> cleanup in every single failure case

you're only tempted to clean up [fully] in every single failure case if you don't know how to implement cascading gotos or the arrow pattern.
It doesn't help even if I paste the code in sometimes.
I do want to clarify a few points, on the project page it does provide the following information:

> Distributed Transactions: TiDB uses a two-phase commit protocol to ensure ACID compliance, providing strong consistency. Transactions span multiple nodes, and TiDB's distributed nature ensures data correctness even in the presence of network partitions or node failures.

> High Availability: Built-in Raft consensus protocol ensures reliability and automated failover. Data is stored in multiple replicas, and transactions are committed only after writing to the majority of replicas, guaranteeing strong consistency and availability, even if some replicas fail. Geographic placement of replicas can be configured for different disaster tolerance levels.

See https://github.com/pingcap/tidb?tab=readme-ov-file#key-featu...

Correctness has been a focus for a long time for TiDB, including working on passing Jepsen Tests back in 2019, see https://www.pingcap.com/blog/tidb-passes-jepsen-test-for-sna... and https://jepsen.io/analyses/tidb-2.1.7

Disclosure: Employee of PingCAP the company behind TiDB
fallacy fallacy. The pie is not fixed, but does not necessarily grow >1:1 when people are added.
TPUs are used internally for products and research and also sold as a service thru Google Cloud. The list of TPU customers is pretty long. But Google could the product entirely internal and still reap plenty of benefit.
You’ve peaked. The rest is just the same story in reverse.
I agree, the police should've resigned if they failed to do their job. Call in the military.
every one of them has warts and insane shit
Just to be clear, you're talking about ones where they've tried to shrink a one-lane-circle down too far?
When I was a kid I noticed that if I laid on my side for a bit, the colors in one eye would be significantly red shifted.

I also noticed that closing your eyes for a while on a perfectly clear day, you could notice the blue tint on everything outside.

You also lose color vision when oxygen deprived (hypoxia). As oxygen returns, it returns beginning in the center of your fovia and expands outward like a jagged, slightly asymmetric ripple, color returning with it.
Living in the suburbs is perfectly fine; I think a perfectly virtuous outcome here would be that people keep living in the suburbs if they wish, but have adequately funded suburban rail and bus transit into the city.

An important piece of context is that NYC has some of the US's best suburban transit, including three different suburban rail systems (NJT, MNRR, LIRR) and one non-subway interurban rapid transit system (PATH).
A 43% increase in federal jobs sounds big until you realize it’s ~110,000 positions over 9 years. For this to be the ‘majority of industry growth,’ Canada would need to have added just ~200,000 jobs in total since 2015. That’s laughably off—Canada typically adds hundreds of thousands of jobs annually. For context, Canada’s employment grew by ~2.7M jobs between 2015[1] and the end of 2024[2]. Federal job growth is a drop in that bucket, not the bucket itself.

[1] https://www.statista.com/statistics/437730/employment-in-can...
[2] https://www150.statcan.gc.ca/n1/daily-quotidien/241206/dq241...
You need an additional 'Elite' tier for sales people or they are going to start whining about needing Macbooks.
just a reminder that you are the product.

Sorry to read this, it is frustrating to see our own face in feeds targeted at us. No clue who thought that would be a win.
There are like 400 housing developments in NYC for lower income folks. Saying that lower income folks don't drive in NYC is bananas.
Sure we can. There's one on either side of the car in front of me.
the link wasn't to CBC when I posted, but I'm sure they have OKMs about clicks and time on page.
I applaud you for taking time to acknowledge the basic humanity of the situation.

Calling that low value is unfortunately on-brand for this crowd.
Quit at lvl 30. It was actually very satisfying to enjoy the quiet after the experience.
I can't find that first paragraph, and it seems that readme file was last modified 3 months ago, though you're using quotes, so perhaps you are paraphrasing?

The first paragraph I find under Key Features is:

Distributed Transactions: TiDB uses a two-phase commit protocol to ensure ACID compliance, providing strong consistency. Transactions span multiple nodes, and TiDB's distributed nature ensures data correctness even in the presence of network partitions or node failures.

It claims to ensure correctness in the presence of partitions, not availability, so I don't think that's a claim that CAP is wrong? I would expect it to be unavailable if it can't provide a consistent response.

I don't know about memory management. It seems go may not be used for the storage layer, but in any case, it wouldn't be the first attempt at a DB on a garbage collected runtime. I can think of at least Cassandra on the jvm and CockroachDB also on Go. I do prefer that DBs do their own memory management (as well as storage) but this is not as unique as it used to be though.
De gustibus, but after taking a look personally I think it's pretty good. It's typed to the extent allowed by js, sections are clearly delineated, and if you collapse all the functions you can get a quick overview of every section. I personaly would use a different naming convention, but still their functions look reasonably named.
If you want JS-lesness and HATEOASnes then maybe if we had an automatic way to go from structured data to HTML... :)
There is a lot of money to be made in selling hope. Sadly, most of it goes to charlatans.

The human psyche is a fascinating mess.
Perhaps the current obsession will just go the way of heavy drinking or smoking? Ie the population will eventually develop some partial immunity to the allure, but it won't even go away completely.
Except that it has a happy ending, which is so rare in real world situations involving politics and power.
They do quite a lot of interesting things, but often either through acquisitions or by collecting up a whole load of specialists when somebody else closes an office. You also find some interesting stuff being done in the UK and the EU because salaries aren’t as high over here.
Note that a gimped version of congestion pricing was actually implemented, putting it closer to being an annoyance more than an actual deterrence.

Originally it was meant to be $15, but was ultimately lowered to $9.
TiDB is running core banking services too.

I think people’s idea of scale and operating at scale is limited to their experience.

You can get MySQL to run at any scale, look at Meta and Shopify. Operational complexity at that scale is a different story.

Distributed databases reduce a lot of the operational complexity. To take one example:

Try a DDL on a 5 TB table in any replicated MySQL topology of choice and compare it with TiDB’s Distributed execution framework.
> Does C really need this?

No.

> Do languages need to grow in this way?

No.

> The overriding virtue of C is simplicity.

It's no longer simple, especially not with the C11 memory model (which got retrofitted from C++11, and is totally incomprehensible without reading multiple hundreds of pages of PhD dissertations); however, gratuitously complicating C shouldn't be done.
I really don't see a difference between upsell and 3rd party ads.
I stopped using Evernote (was a paying subscriber) because I got annoyed by constantly having ads for their other services shoved in my face.
If I remember my first mp3 player correctly, it had 16MB onboard + a 16MB smartmedia flash card (and uploading was via PIO parallel, and the software would occupy the whole system until finished), I needed to experiment with my comfort level between low bitrate and a worthwhile amount of songs. I must have ended up around 46-64kbps.

As soon as I had the funds I quickly moved onto a variety of CD/HDD based players, although I've only recently bought (and modded) an iPod - there's definitely reasons they were so popular. I can appreciate why they went to the common platform with the phone and were later phased out entirely, but as a task-dedicated non-smart device they would be last-man-standing.
Nice, these are all solid and I appreciate it!
For reference, Harper was PM in 2010.
Often it's abstraction leakage. Prime and Core coukd be coming from different outsourced design teams. TX and GX could be different base design within same OEM. Or supplieed through same middlemen hence carrying same brands. Or each of groups meet certain internal criteria. Whatever.

Customers prefer segmentation by end result rather than by implementation details, and so corporate marketing divisions sometimes try that and group products by features it offers, but that often drive-by ruins product quality.
AMD Introduces Versal RF Series Adaptive SoCs with Direct RF-Sampling Converters
They've always been lower, but it was always 20%ish lower. Now it's like 50%.

And in the meantime, housing prices have gone up exponentially. Housing in greater Toronto is more expensive than the Bay Area, but the compensation is far far lower.

I'm not one to blame Trudeau personally, or even immigration per se. I think there's a multitude of factors. But it's best not to deny the situation, which is that in the last few years there's been... problems... in the Canadian SWE labour market.
The most successful people I know absolutely are glued to their phones. They're networking and messaging and reading and planning on their phones.

But from the outside it looks very similar to candy crush. . .
A lot of people don't soak overnight or know how to use pressure cookers and assume cans are the secret to tender, delicious legumes.
In Canada, we have the inherent right to assemble as granted by the Canadian Charter of Rights and Freedoms; therefore, I don’t need permission, which is discretionary.

Permits in this context represent authorization that establishes procedures for exercising this right on property administered by government, which ensure things like public safety without infringing on any rights or freedoms of the protestors or other citizens.
This one isn't. It's a relatively short support structure, not a battlement.

There are cinderblock a cinderblock wall and numerous chin-link (and razor-wire-topped) fences in the area, which do control airport access. Those would likely not have proved fatal to the aircraft to any similar extent however.
TiKV the Core Storage scalable component is a CNCF graduated projected. PingCAP cannot change the license even if it wanted to.
Sure, but the previous iterations (like Strix in the non-halo form) and similar AMD laptop chips are popular with numerous SFFs from the likes of ASUS, ASRock, Gigabyte, Beelink, Minisforum, GMKtex, Lenovo, and many others.

I've heard similar rumors of similar SFFs from framework, system76, and similar VARs.

The Strix Halo does seem pretty compelling for those that want less volume, power, and money than a discrete GPU. I'd love a small SFF with either 128GB ram (some parts will have the ram in the package)) or two CUDIMM slots.

Generally SFFs use laptop parts, but tend to be out a few months later than the equivalent laptops.

I expect similar with the Strix Halo/AI Max.
Are AI nodels' weights protected databases?
Location: Columbus Ohio
Remote: yes
Willing to relocate: no
Technologies: android (kotlin)
Résumé/CV: eltonkola.com
Email: eltonkola@gmail.com
For a concrete example of carrot and stick - check out ridership numbers for the 49 after the Van Ness BRT project finished. 49 ridership is more than completely recovered at 140% of pre-pandemic numbers. In comparison, the 38 and 38R didn't get their dedicated bus lane out in the Richmond and ridership numbers are still nowhere near pre-pandemic. Make the bus fast and frequent and people will take it.

https://www.sfmta.com/reports/average-daily-muni-boardings-r...
Paper:

https://www.sciencedirect.com/science/article/pii/S004724842...
How close do you have to be for it to be 95dB?
The GP is incorrect, but using the absolute number of housing developments in NYC is also misleading (since NYC has lots of middle-income housing developments too).

On average, personal drivers on NYC roads skew towards wealthier and suburban, whereas city dwellers of all demographics broadly ride the subway and other mass transit. Congestion pricing will certainly represent a cost for poorer New Yorkers, but it will disproportionately be shouldered by wealthier demographics that are often on the road by choice (e.g. choosing to commute by car from Long Island because the city has inadvertently subsidized doing so with free parking.)
Naming doesn't have anything to do with the number of functions. They section things off in the file, so if you prefer things split into multiple files I can understand, but it's a personal perference in something this size
It's not the quantity / size of pie. It's the fact that the Canadian labour market has explicit "escape valves" for "skilled labour is too expensive" built in as a policy plank in the form of the LMIA and TFW process.

They are tools that "industry" lobbied for expansion of, and got. Have persisted through both Conservative and Liberal governments for decades, but was expanded markedly under both Harper and (especially) Trudeau.
Bad timing on the charts before and after. Coming back off holidays, delayed flights, and in the middle of massive snowstorms. The constant data is flawed and results irrelavant. You need to wait until the spring/summer and compare windows of time to previous years.
Going from no congestion pricing to some congestion pricing is the biggest barrier, and that was overcome. Increasing it from here is going to be a lot easier, especially if residents realize the positive effects.
LLM Observability and Monitoring
Or it could be argued that more people want to take the bus but it’s too slow to be practical due to car gridlock.
They are fairly rare. They are the least printed bill [1] and aren't included in a typical cash register, so just randomly stumbling upon one in the wild is a pretty rare. Sometimes people think they are fake because they've never seen one before. The only reliable way to get them is to specially request them from a bank or order them from the government. Also, because of the novelty, people tend to collect them, at least informally, so they don't tend to circulate much either.

[1] https://www.bep.gov/currency/production-figures/annual-produ...
Oh damn, how could I forget RCT!!!

Yes, all x86 Assembly except for certain Windows drivers in C I believe.

Monumental task!
I like congestion pricing because it keeps poor people off the road so the middle can commute faster

/sarcasm
And hopefully is punished as such. Too many false claims and YouTube should just block them.
i don't mind a lot of functions in a single file:

https://htmx.org/essays/codin-dirty/#i-prefer-to-minimize-cl...
Russell Ackoff's lectures are always a great listen, and worth relistening to each year. If I recall correctly he used to work at Bell Labs...

A starting point: https://youtu.be/yGN5DBpW93g
Thanks for the paper! I wasn't aware of it but it's very much what I wanted to say. The bit about Turing's other test involving chess was particularly interesting.
Maybe it's a combination of my Framework's 2256x1504 resolution and the 2x scaling I'm using, but some web pages' "dick bars" cover a full third of the screen - it's infuriating. It makes sites like Rachel's doubly refreshing (1).

1: And Hacker News!
I've built https://golfcourse.wiki with heavy use of htmx.

Yes, my site appears a bit clunky (this is intentional), but as a solo, full stack developer working on a personal project, I wanted things to be stipped down and focus on having a solid backend and significant tests.

Htmx is perfect for this.

Is it elegant? Yes and no. Is it ideal? No. But what it does very well is let me focus on the code I'm writing (python/flask), without having to put three different hats on (frontend, backend, and interactive js), and it lets me code in the language I love (python) without forcing me into a gigantic javascript platform I don't actually want to be in.

I'm not getting paid for this, and I won't actually spend my time coding if I'm not excited about the way I'm working. Htmx let's me code the way I want to code and that's why I'm a big fan.
If you know you know, and clearly plenty of people who read my original comment do.

Judging from your other comments, you're either wilfully ignorant or actively dishonest, can't tell which, and frankly don't care either way. All I know is it'd be a complete waste of time to try to convince you.