skysight-inc/HackerNews huggingface dataset:
This is awesome! I remember playing with Hasura (which uses Postgres) a few years ago. Hasura is great but one of the things I really wanted was JSON schema validation at a database level so I could keep all the "raw" types together if that makes sense. I was then, and do now, do public-facing schema validation but that doesn't necessarily validate how it's going to be persisted into the database so being able to have that closer to the database level now is great.
This would work. For-profit replication labs could be part of it, but the market would have to be regulated such that:

- any university receiving public funding must participate in mandatory replication

- some % of any grant would be reserved for replication

- replication labs would be licensed/accredited, subject to government inspections

- labs would not be able to choose who replicates their work

- replication labs would be rewarded for the work, not for the outcome
No, I'm pretty sure it makes more sense to measure deaths per capita. If poor urban planning made people's commutes 2x longer, would it suddenly be half as bad for someone to die?
I don't know any rust but the error description[1] only talks about borrowing mutable from an immutable, which to me seems like an obvious error. However the compiler complains about the reverse condition. Again, I don't know any rust, so it's not clear why that's an error.

So is it a documentation bug or a compiler bug?

[1]: https://doc.rust-lang.org/stable/error-index.html#E0502
Note this study points to the importance of continuing with handwashing routines, which reduce the transmission of a wide variety of infectious diseases.

> "We detected B. cereus, a foodborne pathogen, on the outer-side of masks in 5% of the participants (Fig. 4c), suggesting that B. cereus might adhere to the face masks through hands from feces. Intensive handwashing is recommended, since handwashing is effective in reducing the incidence of diarrhea."
Long-covid can happen to anyone. Not just a flu.
Has anyone talked about Linux compatibility of these GPUs ?
Good luck and enjoy!

I truly believe that parenting has made me a better employee/worker/person. It’s taught me patience, the importance of saying no (and continuing to say no), empathy (and how correct or challenge someone even when I’m deeply empathetic with them), improved my public speaking (treat those bedtime book readings as performances!), and importantly how to simplify explanations for a young child.

Parenting is wonderful, joyful, and challenging experience in and of itself, but it can and does integrate with the other parts of your life. Although perhaps not porting an OS to a VM hypervisor…
https://news.ycombinator.com/item?id=31795445
An individual should be able to do that, not talking about app wise blocking someone.
Was about to mention this. If I recall correctly, the 2d-sphere index rounds geospatial coordinates to 5 decimals. Very occasionally, I found it would distort polygon geometries just enough to cause them to become invalid (e.g. overlapping geometries), which causes the index build to fail.

In my recent experience working with collections containing million of documents, each containing a geoJSON-style polygon/multipolygon representing a property (i.e. a block of land), I found invalid geometries to occur for about 1 document in 1 million. For a while, I suspected the data-vendor was the cause, however it became more puzzling when other geospatial software confirmed they were valid. Eventually we traced the issue to the 2d-sphere index.

A very clever workaround was suggested by a colleague of mine, inspired by [1]. It preserved the original geometries. In each document, we added a new field containing the geometry's extent. A 2d-sphere index was then built on the extent field instead of the original geometry field. Invalid geometries were no longer an issue since we were dealing with much simpler geometries that were substantially larger than the max precision of the index.

When running geoIntersects queries on our collection of millions of documents, we did so in 2 steps (aggregation queries):

1. GeoIntersects on the extent field (uses the index).

2. On the result set from the last step, perform geoIntersects on the original geometry field (operates on a much smaller set of records compared to querying the collection directly)

[1] https://www.mongodb.com/docs/manual/tutorial/create-queries-...
Sex lives of the pygmy seahorses – a hidden, miniature marvel
Maybe not sending people to jail for doing drugs is a good idea, regardless of the outcomes.
Likewise in 1973, the Symbolics Lisp Machines had scrollbars in both X and Y axes for any window that needed them.
And what proof do we have to prove that? I suspect they do the same things to GSuite accounts.
Reservoir sampling is really cool - a slightly optimized version (algorithm L) let's you skip over every record that will not be sampled and it is still pretty simple. If your records are fixed size this can be an awesome speedup.

(* S has items to sample, R will contain the result )

ReservoirSample(S[1..n], R[1..k])

// fill the reservoir array
for i = 1 to k
R[i] := S[i]

(* random() generates a uniform (0,1) random number *)
W := exp(log(random())/k)

while i <= n
i := i + floor(log(random())/log(1-W)) + 1
if i <= n
(* replace a random item of the reservoir with item i *)
R[randomInteger(1,k)] := S[i] // random index between 1 and k, inclusive
W := W * exp(log(random())/k)

https://en.m.wikipedia.org/wiki/Reservoir_sampling
My suggestion would be to learn all the stuff from this course, using fast.ai library, and then gradually move towards PyTorch.

fast.ai is a fantastic educational resource and a great way to approach solving problems. But the library itself is lacking, and if you are an experienced programmer, when building real-life projects, you will be frustrated with fast.ai library.

The goal, IMO, should be learn from Jeremy Howard, s great instructor, communicator; learn his attitude, and then move to PyTorch (keeping the attitude, the knowledge, and the lessons with you.)
There’s a continent with tons of immunocompromised people with no masking and very limited public health resources that seems to be doing okay. I’d be thrilled with the outcomes they’re getting, actually.
Performance degrades when you get many hash collisions, which will happen if you have a lot of points clumped together in space.

Sparsity is fine.

For points you expect to be unevenly distributed the more advanced spatial partitioning data structures (kd tree, BVH) perform better.
> e.g. wearing of ties by gentlemen is NOT optional

This doesn’t feel so old fashioned to me. Just good sense.
That's probably also why Apple's USB adapters all look the same, even if they aren't. You can only tell by looking at the actual connector.
Dunno, the first season had a weird mashup of Mad Men and Breaking Bad, a little, with Joe being a slick talker Don Draper and Gordon being frustrated scientific genius Walter White (which was exacerbated when they also gave him a disease). Also Joe wasn't gay, he was bisexual.

The seasons with Mutiny were a real treat, great hacker startup energy and a really fun exploration into the new tech frontiers that were opening up at the time. The overall story did end up weird, but it's one of those shows where you're free to just view the characters as vehicles into a compelling world.
Indeed, COVID has devastated the Alzheimer’s Community.

The COVID response however has devastated the young, robbing children of socialization. Not to mention how it’s impacted young adults with inflation and lack of in person networking. The collateral damage is immense and will take many years to shake out still.

The avg age of death from COVID is higher than your life expectancy. The biggest factor in having “long COVID” is a prior history of anxiety disorders.
See also related story and discussion from 6 days ago:

"Google Chromebook outlawed in Danish public schools"

https://news.ycombinator.com/item?id=32142927

(77 points, 73 comments)
Thanks for the reality check. It is so easy to take the product of our science for granted.
Well, I obviously don’t mean to blame the victims here. Sorry if you or anyone took it that way. Obviously it’s tragic when anyone has a bad time or dies from this. To be more clear, my ire is directed at public health officials who would do a lot of good by simply encouraging more physical activity and for other political leaders who don’t use their power to advocate for infrastructure changes in the US that get people to be more physically mobile (more mass transit, and so on).
The ToS.
Do weekend days count as part of vacation?
I said it in my sibling comment above, but to be clear, I was well aware you almost certainly knew Cyclone’s general age. I don’t want you to think I was implying or hinting anything near taking or denying credit.
Good point. It's here:

Hertz paid Accenture $32M for a website that never went live (2019) - https://news.ycombinator.com/item?id=32184183 - July 2022 (290 comments)
Yes but these big systems consulting companies always over-promise. Once they win the project, they shift immediately to "managing expectations."
GitHub and Azure are both Microsoft.

Is Microsoft freezing hiring, or is it just those two products?
Case in point: https://news.ycombinator.com/item?id=31023201
Id agree but LTT has been very critical of intel and at some point intel was literally the butt of the joke on the channel for how abysmal their performance and thermals were. Even the previous video right before this one on the Arc GPUs was basically a huge call out, which was obviously taken seriously by intel as they have explicitly addressed/fixed the issues that were raised in that video. This is basically the best case scenario you can get as a customer, as far as commercial relationships go. It's so much more constructive for everyone involved to allow intel to also "respond" to the criticism by showing how they improved things.

( It also goes to show the type of influence LTT can have when they bother to send actual engineers to showcase and prove those improvements. That's something they probably wouldnt have bothered with if they knew LTT was just going to parrot the corporate line if they showered him with enough money.)
Use the idea[1] at work to make large NP-complete problems more tractable by breaking the problem up into disjoint subsets.

[1] doesn't implement the inverse-ackermann algorithm but still implemented as union/find.
Hockey. I always wanted to try it, but never lived near an ice rink till one opened up down the street. I’m having a lot of fun, although still can barely control myself, let alone the puck.

I’m also spending some quality time with software and enterprise architecture books, working on some container oriented side projects, and somewhat surprisingly learning the Microsoft Power Platform, as my team keeps catching requests that are a good fit for a low code solution.
The Perils of Pessimism, Why Anxious Nations Are Dangerous Nations
From what I hear 1. No headers (you can use headers to import C functions. None needed for other zig functions). 2. defer 3. Comptime
The Guardian has some absurdly left-leaning articles. Like, I’m fairly far left, but I eventually unsubscribed from the Guardian because it was just comical.
https://archive.ph/LZUUR
It's bread and circuses. I think the few in power are panicking. They know things went too far and the people are fed up. It may be too little too late.
What a great example of how a series of reasonable decisions can add up to something unreasonable when you scale up the inputs. This line is my favorite: “there was an open task for a few years to address it (T73412), and so I did it.”

This situation reminds me a little bit of trying to work with very large images in ImageMagick, like 60k x 60k resolution. A simple resize was taking 6 hours on my mac 10 years ago, due to IM trying to allocate the whole image at once and then swapping non-stop. And then I discovered that the Graphics Magick fork did streamed resizing, and did the task in a couple of minutes. It’s a small and relatively easy change, but someone had to prioritize handling large inputs first. This is one reason software is hard for me; every time I need to process large inputs I wish I had written a streaming mechanism, but every time I start a project I decide to do the easy thing first and wait until I critically need streaming. Maybe it’s the right thing to do to avoid over-engineering, but this comes up often enough that I’m usually in a mild state of frustration about something being under-developed.
This thread has over 600 comments. If you want to read them all, you need to click "X more comments" at the bottom of each page, or like this:

https://news.ycombinator.com/item?id=32179563&p=2

https://news.ycombinator.com/item?id=32179563&p=3

I just mention this because for a thread this large, it is unusually good. (And yes, we're still going to solve this paging business and then there won't be any more of these annoying notices.)
The problem of inflation has been solved before. It is a monetary phenomenon, period. It was solved by Paul Volcker turning the screws, mercilessly, until it went away.

I can understand the desire to treat it as brand-new, never been seen before. After all, maybe you weren't even around the last time this was a problem.
I feel like I stuck my foot in my mouth with my comment, but separate from that…

This is an interesting perspective, I can’t think of a reason you would be incorrect, but I know I have some default intuition that likeness is most often used to imply derivedness. Also, that’s a great way to phrase what you meant.
The union-find data structure / algorithm is useful and a lot of fun.

The goal is a data structure where you can perform operations like "a and b are in the same set", "b and c are in the same set" and then get answers to questions like "are a and c in the same set?" (yes, in this example.)

The implementation starts out pretty obvious - a tree where every element either points at itself or some thing it was merged with. To check if two elements are in the same set, check if they have the same parent. Without analyzing it, it sounds like you'll average findRoot() performance of O(log(n)), worst-case O(n).

There are a couple of simple optimizations you can do to this structure, the type of things that seem like they shouldn't end up affecting asymptotic runtime all that much. The first is that, whenever you find a root, you can re-parent all the nodes you visited on the way to that root, so they'll all be quicker to look up next time. The other is that you keep track of the size of sets, and always make the larger set be the parent of the smaller.

And neither of those actually do anything impressive alone, but if you use both, the algorithm suddenly becomes incredibly fast, with the slowest-growing (non-constant) complexity I've ever heard of: O(the inverse of the Ackermann function(n)). Or, for any reasonable N, O(4 or less).
I'm looking at the L14 model, I don't exactly need "spectacular" just "Intel graphics": https://www.lenovo.com/au/en/p/laptops/thinkpad/thinkpadl/th...

EDIT: Man, reviews for that and the Gen 3 just really aren't great in terms of Linux support.
you can use standard library unlike other langauages golang has built in support for db[1], timer to schedule tasks[2], emails[3], templates[4] etc. and your application would be fairly upgrade proof.
If you insist on using framework you can use echo or gofiber. There is also pockebase.io it uses echo internally but comes with user management etc. built in.

[1] https://pkg.go.dev/database/sql
[2] https://pkg.go.dev/time
[3] https://pkg.go.dev/net/smtp
[4] https://pkg.go.dev/text/template
[3]
Last year I could buy a whole chicken for roasting for about $10. Now they are $17 or so. 70% increase. Beef the same. Pork hasn't jumped as much for some reason. Ground turkey is about the most affordable meat I can find right now, but when you cook it you can see that it has a lot of water in it.
> Using those numbers suggests that 10k of those suicides quoted above were specifically attributable to military service (and 20k would be "baseline civilian risk of suicide").

This would be the case if probability of joining the military was independent of the risk factors for suicide, which I seriously doubt.

Not disagreeing with the point at large, just that the statistical analysis would be even more complicated, at least finding similar demographics between the two populations
Fractional Cascading. A simple and very cool way to speed up searching for the same key in multiple lists. Instead of K binary searches taking time Klog(N), you can do it in log(N) time without using asymptomatically more space.

https://en.m.wikipedia.org/wiki/Fractional_cascading

I wrote a simple demo in Rust a while back to help myself learn the language.

https://github.com/mgraczyk/fractional_cascading

I also think pairing heaps are neat.
Worth noting that up to a point, removing obstructions makes roads more dangerous. When the street is a complex environment with many obstructions, trees, and/or points of conflict, people drive slow because it feels dangerous to go fast and are therefore less likely to kill or maim.

The most dangerous roadways are what Strong Towns (article source) refers to as a stroad, which are characterized by many, wide lanes, with frequent turnoffs and other points of conflict. They make drivers feel safe, and so they go fast (regardless of speed limit) and kill people. There is a lot more nuance there that is valuable to learn about, but at the moment, it is really difficult to build safe streets, and even fix unsafe streets, in North America.
I forgot about Aerospike. They basically built a NAND optimized key, value store right? I remember reading about how they used the FTL and thinking they were pretty clever. I cant for the life of me find the article now. I think they were really big in the ad tech space? Is that still the case?
Within its statistical boundaries, the scientific method is absolutely trustworthy. Humans though? Not so much.
Thanks for pointing this out. At the very least, there are conflicting attitudes. Comment will be edited to reflect that. Initial reply made a valid point.
The humble array but with a twist for accessing its indices in a hardware multiplexer way with 'shift left' and 'or' bitwise operations.

/* Bits: selected, hovered */
const colors = [
grey, // 00
green, // 01
blueA, // 10
blueB // 11
]
const color = colors[selected << 1 | hovered]

https://blog.uidrafter.com/bitwise-table-lookup
I provided the sources in previously in the thread here.

https://news.ycombinator.com/item?id=32129721

To address more directly the point you referenced directly.

The study is discussed here

https://www.usnews.com/news/politics/articles/2022-02-24/a-q...

But if you want to skip the analysis and go to the meat of it, it's here.

https://www.prri.org/research/the-persistence-of-qanon-in-th...

16% of Republicans completely or mostly agree the government media and financial worlds are controlled by a global network of Satan worshiping pedos who run a global sex trafficking operation

22% completely or mostly agree that a storm is coming that will sweep away the elites in power and restore the rightful leaders.

18% completely or mostly agree that things are so far off track that American patriots may need to use violence to save our country.

From the second source

> To assess overall belief in QAnon, PRRI created a composite measure from these three questions and identified the following three groups:

QAnon believers: Respondents who completely or mostly agreed with these statements.
QAnon doubters: Respondents who mostly disagreed with these statements.
QAnon rejecters: Respondents who completely disagreed with all three statements.

> Across the year, one in four Republicans (25%), compared to 14% of independents (14%) and 9% of Democrats identify as QAnon believers. Nearly half of Republicans (47%) who most trust far-right news outlets like One America News Network or Newsmax are QAnon believers
I don’t want to come off as mean spirited here, it’s not meant as criticism. But when the article is full of “Japan this, Japan that”, and then you even include an experiment involving natto, it’s funny because it comes off as stereotypical.
Well, that’s according to the PMI. Finding the link will simply lower my level of happiness for the day, but you should be able to Google it (sorry).

The thing is that as far as I can tell, “success” is measured post-hoc, so all sorts of shenanigans might have taken place in order to determine that a project was “successful”. Having worked with my fair share of corporate project leaders, I’m quite certain that the actual number of failed projects would be much higher if measured by the original criteria used to justify the project in the first place.
There are quite a few treatments and theories of cause. No need for alleged full cure.
I have to disagree with you. The site went from a basement project look-and-feel to something much more slick and credible. I'm with you right up until the point where people are paying for TinyPilot out of the business account; then the brand credibility really matters.
This, very sadly. But this alternative-facts mindset about Musk seems to run deep, and be all too common. One of my friends is a career engineer / engineering consultant...who simply refuses to admit that there is anything even a bit special about Elan Musk, or how he took SpaceX from founding the company to their current routine Falcon 9 capabilities and operations. Somehow, in his worldview, everything that happened along that road was government subsidies, other people's work, "trivial to do", or just plain denial.
Firefox+uBlock is enough to make it readable on Android
If you or your wife look at the past and current price of lettuce in the local store and then use that to make the conclusion that the purchasing power of the US Dollar has decreased 47%, then I don't know what to tell you.

Your cost of living may have increased, but I do not understand how you can conclude an increase in inflation from living your daily life.
What do you mean by saying heap allocation? Do you mean syscall or libc? Zig has a extremely explicit requirement for any allocation. You can have a preallocated region of memory in the allocator for recursion and only move the needle for each “heap allocation”.
I had something similar specifically with google mail. I use multiple google accounts. I had to be very careful about switching tabs or clicking anything while switching google accounts, or I would find that it would not switch and I'd be stuck back in the account I was already in. I haven't noticed it in a while so perhaps they fixed it.
more like 1983
Better job? How many people have died due to nuclear energy accidents? If you consider deaths per megawatt, or most any other standard, the nuclear agencies are doing a fantastic job. How low does the risk have to be?

The relative risk of nuclear to coal is unbelievably low yet there is still this irrational ability to weigh risk/reward benefits correctly.
Working from home damages our eyes. Here’s how you can protect your vision
Yeah that's why many C++ folks are continually trying to improve memory safety too.

Here's one of the efforts in this direction (for anyone who hasn't seen it): https://www.chromium.org/Home/chromium-security/memory-safet...
ArchiveTeam File Format Wiki
Sorry, I meant pizza hut there. I think dominos is still mostly inhouse (though the $5-10 delivery fee sucks and "is not a tip")
This is it. Moving to Framework. MB-Air is great, but the soldered in SSD / memory is a deal killer for me (.. except for the occasional need to build iOS apps, which even a used MBP can take care !)
.. will put my /home in the expandable drive so I can simple unplug it and move it to my desktop .. 1513.00 with 1x16GB + 500GB Nvme + 1TB expandable .. can easily add another 16GB to it later ..