skysight-inc/HackerNews huggingface dataset:
I've been using a fork of schemats for a while, it is a great tool.

We quickly figured that using the table definitions as our app layer models wouldn't cut it, notably to handle polymorphism and non ideal (sic) table design.

We decided to "hand write" (mostly codegen) the types we use in the business logic and have a translation layer between those and the interfaces generated by schemats. For simple tables the mapping is 1:1, but for complicated tables we centralize type checks and defensive assertions there. For polymorphism it would look like this:

CREATE TYPE invoice_line_type AS ENUM('product', 'shipment');

CREATE TABLE invoice_lines AS (
id SERIAL PRIMARY KEY,
type invoice_line_type NOT NULL,
product_id INT REFERENCES products(id),
shipment_id INT REFERENCES shipments(id),
amount NUMERIC NOT NULL,
CHECK (CASE WHEN type = 'product' THEN product_id IS NOT NULL ELSE TRUE END),
CHECK (CASE WHEN type = 'shipment' THEN shipment_id IS NOT NULL ELSE TRUE END)
);

The translation layer:

import { invoice_lines, invoice_line_type } from 'src/schema'

export type ProductInvoiceLine = {
id: number
type: invoice_line_type.product
product_id: number
amount: number
}

export type ShipmentInvoiceLine = {
id: number
type: invoice_line_type.shipment
shipment_id: number
amount: number
}

export const parse = (row: invoice_lines): ProductInvoiceLine | ShipmentInvoiceLine => {
const base = {
id: row.id,
amount: row.amount,
}

switch (row.type) {
case invoice_line_type.product:
return {
...base,
type: invoice_line_type.product,
product_id: ensureNumber(row.product_id),
}
case invoice_line_type.shipment:
return {
...base,
type: invoice_line_type.shipment,
shipment_id: ensureNumber(row.shipment_id),
}
}
}
>if you organize a 5k run with cash prizes, are you "creating inequity" for the people who can't run?

Yes.

>Does this mean we should make it unlawful to organize events that promote sports, because some part of population can't take part in it?

No.

>If an application makes it easier for 99% of the people to vaccinate but does not make it easier for 1%, does it mean the application is bad?

>Does existence of the application make it more difficult for the blind to vaccinate?

Creating a solution that satisfies the majority will reduce the demand to create any solution including one that the blind can use on their own. 99% being satisfied does not mean the 1% will not complain since it is one of the most effective means of pressuring for a solution that makes it easier for that 1% to vaccinate. 1% of the US is MILLIONS of people. Also since vision issues correlate to age, and age correlates to susceptibility to COVID, it's a particularly BAD for these particular millions to have hurdles to overcome regarding access.

>Waiting for perfect solutions when a solution is needed is best way to paralyze any organization and have no solution at all.

It's downright trivial for a government to require a baseline of accessibility for a website and there was more than a year and a half of lead time in this scenario with an insanely large budhet. We're not talking about a website shoved out the door 2 weeks after the pandemic was announced to help the public made by a guy in his basement. This is a website where accessibility was always a paramount concern, it honestly wouldn't matter a whit if the site was clunky, ugly, made with the latest frameworks, etc, but it was REALLY important that it was accessible given lack of accessibility has a body count attached to it.

Those disability advocates need to watch their tongue though and respect how great of a job these web developers did! Frankly they owe them their lives. They should
be kneeling in gratitude and recognize that an ADA non-complaint website they can't use should be recognized as a success. All those laws they protested to get so this wouldn't happen can and should be ignored, and as this thread says, we can just add accessibility down the road.
My point is that for codes like this, the issue is not vectorization.

Just evaluating the special functions exp and sqrt is taking 90% of the time. You can evaluate these special functions in parallel, but that is about it.
I think it was Scott Adams that had the discussion about being the best at one thing, vs being (very) good at more than one thing, and in that nexus you can shine.

I too very much enjoyed your writing style - have you considered going into technical writing of some description? For sure, I would read a lot more documentation/articles/blogs/howots if they were actually engaging reads...
Yes but you can configure the kernel to ignore that, and by default it does.

For example, way back in the day, to get more life out of my laptop during college, I configured the kernel to only write to disk once an hour or when the buffer filled up. That effectively meant I was only writing to disk once per hour when I shut down to change classes.

The modern linux kernel doesn't actually write to disk when fsync is called. It buffers the writes in a cache. Also, the SSD itself has a cache.

There are lots of abstractions between SQLite and the disk.
I don’t think he knows about second moon!
The world doesn't need more people.

People will talk all day about adopting a pet, but adopting a child is off the table.

There are already millions of children on this planet that desperately need parents, your biological desire to procreate shouldn't supersede that.
My intuition is that anything with a really eccentric orbit (10s to 10s of thousands of AU) has more of a chance of passing through many gravitational fields that change its orbit.
It’s not about animal rights - it’s about human responsibility.
Show HN: I curated a database of 200 business strategies/case studies
Those programs don’t affect cost based decisions for people not eligible. WIC for instance can’t be had over 185% of poverty line, which is $49025 for a family of four. (That’s $185%, the poverty line is lower)
On this topic: for anyone generally concerned about their heavy metal levels, hit the sauna & sweat'em out.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3312275/
Ουκρανια – Αυστρια, προγνωστικα στοιχηματος Euro 2020
Η Ουκρανία θα αντιμετωπίσει την Αυστρία στον τρίτο όμιλο του Euro 2020 την Δευτέρα. Οι δύο εθνικές ομάδες κατευθύνονται στο επίπεδο βαθμών στην συνάντηση με τρεις βαθμούς αφού και οι δύο νίκησαν τη Βόρεια Μακεδονία και έχασαν από την Ολλανδία στους δύο πρώτους αγώνες τους, οπότε μια ισοπαλία θα τις έβλεπε σχεδόν σίγουρα και τις δύο να προχωρήσουν στην επόμενη φάση των νοκ-άουτ. Μην αργούμε άλλο, με τα σημερινά Ουκρανια – Αυστρια προγνωστικα στοιχημα Euro 2020
I’m intrigued but is this a staffing service? Do candidates or companies pay for your services?
The issue is mostly that a humanoid robot is a horribly inefficient way to fight someone. Sure it's uncanny, but you'd have a lot more luck (and save a lot of money/R&D) if you just taped some plastic explosive onto a quadcopter.
Did you try https://github.com/Mic92/nix-ld or https://nixos.org/manual/nixpkgs/unstable/#setup-hook-autopa... ?
> was the one who bought it from Birkin

Birkin is not a company/brand, Hermes is the brand that sells these bags.

So no offense to you, but if you don't even know that I'm guessing you're not very up to date on the fashion world in general, and on how authenticity/counterfeit prevention is handled in that space. And your opinion on whether NFTs make that more difficult or easier to handle is probably just an off the cuff guess.
Life's better when you put on your Keynesian hat. Productivity went up faster than population in the rich counties, and we all loss leverage with our employers as there wasn't enough work to go around.

Now, if populations fall, there will be enough work again, and there will be a need to automate (maintaining the same standard of living is nice and uncreative) which will make more meaningful work for us programmers (the "productivity industry").
> ”Our

Good to know, I guess...
> China's one-child policy was a success.

Tell that to lots of unmarried men with no prospects.
> for a 3d graphics demo

Presumably if you’re using WebGL for 3D graphics, it’s for something visual that can’t be seen by the blind, in which case you could have an alternative (or quite literally an “alt” tag) text version accompanying it.

I know you picked that example arbitrarily. But the GP’s point about “extra work to render them inaccessible” is, by and large, true. HTML by default is accessible.
Curcumin (logevida type), for me, seems to reduce brain fog when it arises.
I've done work with big banks too and share your sentiment.

In fairness some of the challenges I've observed are a result of integrating diverse systems inherited in corporate takeovers.
e.g. Imagine unencrypted text files being the "lowest common denominator" to propogate account credentials. I always insist gaps like that are immediately ripped out and fortified, which is usually more a challenge of surfacing the risk to the right exec to get budget to re-engage an obscure vendor to rewrite some component nobody there understands anymore. As a consultant I think I sometimes have an easier time being heard than regular ops admins.
I’d say the higher birth rates in US are due to religion and poverty. I also wonder how many immigrants continue living like in 2nd/3rd world country.
Unfortunately yes: https://news.stanford.edu/2019/09/24/lead-found-turmeric/

Though this article says it is specific to Bangladesh.
Really? How does that accomplish more than proving the build is a fixed point? An attacker may well be aware of the fixed point combinator after all.

Edit: I think that tone may have come off as snarky, but I meant it as an honest question. If any expert can answer I'd really appreciate it.
How many autonomous armed robots does the US currently use?
How would you deal with people living in one tax locale and working/shopping in another?

Taxing real property to fund improvements and services adjacent to that property makes the most logical sense. I don't buy the argument that people on fixed income are somehow hurt by this. If someone on a fixed income owns a giant house and can't pay property tax on it, that implies they need to liquidate that property or rent it out to pay for the improvements around that property that support its value. Thanks to federalism, Americans actually have a choice of different places to live that tax property at different rates with correspondingly different levels of local services, so people are free to own in states with very low property tax in places that don't have much in the way of improvements.
Multiple reasons.

For example, I know both C and Rust but still use C for my embedded projects. I am waiting until tool chains and documentation are more mature.
The site doesn’t really tell me much. Is this a service I have to pay for? A membership? Do you only accept a certain type of applicant profile?
The submission is specifically about a google play app being auto pushed, so being on an iphone would certainly protect you from it :)
https://www.vox.com/policy-and-politics/2019/1/23/18183091/t... (Elizabeth Warren’s book, The Two-Income Trap, explained)

> Warren’s central argument in the book is that this rise in household income was almost entirely driven by the increase in the number of two-earner families. And adding income by adding a second worker, she argues, has very different economic implications than rising pay for a single worker. In practice, the book says, the increasing ubiquity of two-earner households leaves families in more precarious financial circumstances with more brittle budgets that were more prone to tip over into insolvency if a problem cropped up.

> The “two-income trap,” as described by Warren, really consists of three partially separate phenomena that have arisen as families have come to rely on two working adults to make ends meet:

> The addition of a second earner means, in practice, a big increase in household fixed expenses for things like child care and commuting.

> Much of the money that American second earners bring in has been gobbled up, in practice, by zero-sum competition for educational opportunities expressed as either skyrocketed prices for houses in good school districts or escalating tuition at public universities.

> Last, while the addition of the second earner has not brought in much gain, it has created an increase in downside risk by eliminating an implicit insurance policy that families used to rely on.
Our Politicians Are Losing Their Grip on Reality
It's not like autism is a bacteria or a virus. It's a syndrome. Syndromes are just a grouping of a bunch of symptoms, in the case of autism, a bunch of disorders (things that aren't normal.)
Give me the hardware and I will find you an application for it! Sure, 128bit CPUs make no sense for the current applications, but if our history shows us anything, is that people max out the hardware with something new as soon as it appears. Part of the solution is using the previous generation's computers to create data and algorithms for the next generation's.
Note that dwarf planet Ceres, which orbits the sun at ~3 AU, is larger (⌀ = 939 km) than this one (⌀ = 100–200 km). There are ~25 other known asteroids with diameters over 200 km in the asteroid belt (https://en.wikipedia.org/wiki/List_of_exceptional_asteroids#...).
It's not a good situation because they all require fairly large sacrifices, but there are alternatives to paid childcare. I work with a developer who's taking care of a 1 and 3-year-old during working hours because the pandemic caused his and many other daycares in in our area to close and there's simply no availability right now anywhere else. He's absent a lot during the day, but he makes it to all the important meetings and spends a significant amount of time working in the evening after his wife comes home from her job, so overall puts in the same amount of work as before. He has no life whatsoever outside of working and taking care of his kids, but no outside care involved.

They are looking really hard for available daycare.
It might be worth adding "February 25, 2021" to the title. There's been a lot of complaining about the rollout in the US, but it mostly stopped when everyone who wanted a vaccine got one, and it became clear the US did one of the best jobs at getting people vaccinated after Israel and the UAE. If the people in this article couldn't call their doctors in May and get an appointment, they might have a point, but prioritizing getting people vaccinated and not worrying about details is part of why the US did such a good job. That, and securing contracts of lots of doses.
As a designer on HN. The top 5 matches didn’t resonate as they were obviously developers who nerded out about code. My most relatable characteristic was some of our comments are heavily downvoted. :)
> The PS5 does hardware decompression, so games by default are now going to be compressed.

If that really is cause and effect, that's a bit disappointing. For any game that isn't assuming you have an ultra-fast SSD, normal CPU decompression can handle things quite well. Such a hard nudge shouldn't have been necessary.
> If there’s actually best-practices here that help that we’re not already doing...

Unless you have a leadership that recognizes the time sink on-call generates, all the best practices in the world are not going to help. This goes back to leadership culture. If they aren't in the trenches taking the same rotations with the on-call staff and at least simply staying up with them when the calls come in, then they will need metrics they believe to understand the deleterious effects of excessive on-call. This doesn't even begin to touch upon excessive on-call environments strongly signalling ignored technical and/or product debt that drags down new feature implementation and innovation. Leadership that truly comprehends this will allocate significant (20-25%) of time to addressing it, and push back on feature demands.

If you get to that point, then 80% of your struggle is over. Once you have leadership backing bringing the necessary time and resources to bear, reducing on-call is mostly lots of bookkeeping and documentation to identify trends and commonalities to prioritize and fix. A lot of the specific implementation details depend upon what you have available to leverage; ideally put someone in the PM role of tracking details for weekly stand-ups who is a relentless detailed note-taker and follow-upper.
Unfortunately, no, although I didn't do a very exhaustive search.
> I'm grateful to the nixos team for being beating a trail thru the jungle here. Retrofitting reproducibility onto a big software project that grew without it, is hard work.

Actually, it's Debian guys who pushed reproducible build hard in the early days. They upstreamed necessary changes and also spread the concept itself. This is a two-decade long community effort.

In turn, NixOS is mostly just wrapping those projects with their own tooling, literally a cherry on the top. NixOS is disproportionately credited here.
If you don't mind my asking, what kind of income are you talking about if you are not gonna be in a lower tax bracket in retirement?

Different question since you seem not to like tax deferral. What makes you not like tax deferral and compounding on the extra ~25% of dividends you keep?

I can't do much about when I'll die. I do advocate for 'living now' btw. If you can do that 'trip around the world' now or put money into a pension fund, do it now. Don't wait, have kids and tell yourself you'll do it when you retire. That day may never come or you might not be up to it any longer for various reasons.
"We use AI and a team of sales experts to apply to hundreds of jobs and send tailored messages to hiring managers on your behalf"

Your AI helps creating tailored messages and their AI reads such messages to weed out bad candidates. A real time gan
> The business should do what it needs to maximize profit

It’s a good thing this has never had unintended negative consequences.
It’s a survey that asks you your name, what kind of job you want, how much you want to make, and whether you have more or less than one year available for your job search. Then it says someone will get back to you.
I frankly disagree that antiinflammatory drugs having "long term costs". I'd be very interested if you have a paper to back that claim up. A couple decades ago it was common for rheumatic patients to end up in wheelchairs. Today that's very uncommon. I agree that most antirheumatic drugs, and most drugs in general, treat the symptoms rather than provide an outright cure. But that's enough to drastically reduce disease severity and increase quality of life. Actual cures might be ideal but we are far from there research-wise - at least for most rheumatic conditions.
I would say declining worker power drove women to the workplace, and elite strains of feminism were the cover not cause.

If it was just feminism we should have seen a 20 hour work week to compensate.
> not being available at all hours like websites

Hah! Back when this was written, it wasn't like websites were available at all hours (the vaccine rush crashed some) or had open time slots to book.
Custom dropdowns are the worst offenders. Most annoy keyboard users too and many are completely inaccessible.

Replicating the accessibility and keyboard functionality built into a basic <select> tag is really hard. I wish developers would just use the plain <select> or just make it a text entry field instead.
So, how long until someone does something that rasegan doesn’t like and the everything gets wiped again?

I am betting less than a year.
Did you take it with something like piperine to enhance absorption?
lol you can’t. Try digitizing government inefficiency first that’s at least more achievable.
Bringing a large celestial body close to Earth would be just as smart as trying to let the aliens know that we are here. (The humanity may not be able to survive either one.)
I doubt the Chinese are going to use their navy to cut off China>US trade. It’s true it might cost us Taiwan, but a 90% cut in US military spending would be a massive boon for the economy.

Though even a 90% cut would still allow for a truly US frightening military so it’s hard to quantify.
For assistants and advocates the website does have a section listing alternate methods of obtaining help; including via TTY and normal phone lines; as well as email.

The CDC's website provides additional information which others might also recall from the announced launch of the website:

https://www.cdc.gov/vaccines/covid-19/reporting/vaccinefinde...

"Find a COVID-19 Vaccine: Search vaccines.gov, text your ZIP code to 438829, or call 1-800-232-0233 to find locations near you."

"""
Get Help

Get answers to questions or help finding a vaccine near you. Help is available in English, Spanish, and many other languages.
1-800-232-0233
TTY 1-888-720-7489

Disability Information and Access Line (DIAL):
1-888-677-1199
DIAL@n4a.org
"""
It is cheap though, and easy too. A basic form with standard HTML controls and appropriate labels is perfectly accessible with very little effort.

It takes effort to program custom dropdowns and other form elements and mangle a website into tag soup.
The data concurs. When education goes up and religion goes down, fertility rates decline [1].

With regards to immigrants, children of immigrants rapidly align to fertility rates in their host country (at least in the US) [2].

[1] https://bmcpublichealth.biomedcentral.com/articles/10.1186/s...

[2] https://cis.org/Report/Immigrant-and-NativeBorn-Fertility-20...
Sounds almost like that if we (putting the hard hat on and hiding under the table) find a way to exclude one parent from workforce, things will get back to normal.
Linux kernel scaling limitations it’s not your machine, it’s your code
Hm, this seems like a lower level set of tools that can be composed into something a bit more user-friendly (one of my personal complaints with Nix as well, despite being a big fan of the concept and overall execution. Nothing too steep that can't be learned eventually, but the curve exists). I'm wondering if there would be an audience for a higher level abstraction on top of Nix, or if one already exists.
Nuclear would do it. Essentially use the dwarf planet itself as reaction mass, accelerating it with either nuclear thermal propulsion or a nuclear powered mass driver.

Highly impractical, and would take centuries to slow it down enough.
“Land 10 interviews in a month with 0 effort” gives me pause, because even though “the grind” of getting a new job is annoying, there’s an understanding that results take effort. This tagline reads more like a scam for me and I go into it with that first impression.
I’m surprised people are only noticing this on Big Sur, since I’ve been seeing this as early as Mojave using a 1kHz ‘gaming’ mouse. (It may have happened in even earlier versions of the OS and is just getting progressively worse on every new macOS release…)

I suspect this is at least part of the reason why some people have mysterious performance problems with VirtualBox on macOS[0]—at least, it’s how I first noticed the problem. (I’m sure VirtualBox has some other issue going on too, since its event queue gets backed up so badly that even keyboard events become delayed. Life gets interesting when the delays are so long that the guest OS key repeat is triggered!)

Does anyone know of some small utility that adjusts mouse polling rates to at least mitigate the issue? The official Logitech software to do this is 476MB, 5 kernel extensions, and a launch daemon, which is a bit much just to send a USB command.

[0] https://www.virtualbox.org/ticket/16436
Time to get rid of patents. Only useful to trolls and other anti-competitive elements
How many? Like zero.

Big storms happen all the time. They’ll knock out a few power stations or shake up GPS and communications.

The Carrington level events are far more rare. We had a near miss in 2012. That would’ve been very exciting.
I’m really not trying to be too snarky, but with the labor market as it is in 2021, 10 interviews in a month is achievable by merely possessing a pulse. What am I missing?
The quest to slow ageing through drug discovery