skysight-inc/HackerNews huggingface dataset:
Once I randomly discovered Astro, I couldn't go back.

I love that you can even drop in Svelte and React blocks right next to each other, so you basically the power of all the advanced frameworks, and the choice to pare it down to a barebones html static site
We've got frames and iframes...
People with lower incomes do spend larger a portion of their money on things that incur sales tax.

Higher income people spend more of their money on investments and other assets.
Id would be nice to update the cost per minute each time a person is added or removed, instesd of showing a $0.0 until the meeting starts.
Ask HN: What should I learn/do in high school?
I've followed the typical path of do well in school and take hard classes but also interning at a local startup, but lately they've been leaving me feeling uninspired and lacking self-agency (I've been following standards set by my parents/teachers). I'm relatively strong in cs/engineering (leading a school robotics team). It might just be teen rebellion, but I'd like to leverage it to do something with my life.

Looking for any advice. Thanks.
What do you mean crashed cars from people who didn't make it? The sign is basically a "minimum speed 40 mph" sign routinely seen on the interstates but with a bit more teeth. The sides of highways aren't usually lined with crashed cars (except occasionally when winter gets feisty).
... or just let the compiler do that for you.
Astro is my favorite tool for static sites these days. It's wonderful.
FFmpeg's filter DSL is so good that I get annoyed if I ever have to fall back to command line switches.
Yea this was made for a younger kid, so in a few years he’ll grow out of it and probably want real nice gear on a regular metal rig. No need to overdo it! DD is nice but it’s still way more expensive than an entry level offering.
Who cares? If a helicopter could reach the summit, I would take a helicopter. More people should drive to the north pole, too.
If motive matters, none of these people have killed anybody.
The American consumers do have other options — other American companies. Who are all held to a higher standard than foreign companies due to sharing a regulatory environment.

So the price may go up, but it will eventually tend toward the natural floor, even if higher than before, taking into account the externalities that were ignored with foreign widgets such as poor working conditions and environmental disregard that happens in certain other countries.
Personal websites can be down a few days a month without a problem.
Maybe one day there will be compilers that can choose what to optimize based on their aesthetic judgement of the code.

I could see that as a novel feedback mechanism for software engineers.

As it stands, I'm glad they design optimizations abstractly, even if that means code I don't like gets the benefits
> drivers getting frustrated while waiting for timed red lights to change at completely quiet intersections

There's a red light I run - frequently - in the mornings going to work. I stop. If the cross traffic has a green light, I stay stopped. When the light provides a protected green arrow for left turns for traffic going the opposite way, I'll run it if no cars are visible coming toward me. It would be better as a simple four-way stop, but our city traffic engineer is a self-important idiot who refuses to take even a suggestion from people who drive the area daily. I discovered this during a prolonged power outage that took down a route that I pretty much had to use to leave my neighborhood at the time. Outside of rush hour, the intersection functioned much better as a four-way stop than as a signalled intersection. But that was inappropriate for two arterials (one of them really is, but the other is only one at commuting times, and at off-hours neither is especially busy).
I've been maintaining my personal website as plain HTML for five years now. I must say, I quite like this method. There's no substitute for practice when it comes to maintaining your skills at editing HTML and CSS.

Yes, you must copy and paste content and not having layout page is annoying at times. But the overhead of just doing it yourself is surprisingly small in terms of the time commitment.

Typically, I'll draft a post in MS Word then open the git repo for my site, hosted on github pages, duplicate and rename the template.html page that includes the CSS, footer, and header for my site and then copy my content into it. When I'm happy with everything, I'll make my commit and then a minute later it's live at my custom domain. Seeing that it takes only 11KBs and 26ms to load my landing page strangely delightful.
Mishima: A Life in Four Chapters – Paul Schrader's Generally Unseen Masterpiece
It'll also give you different results based on logically-irrelevant numbers that might appear elsewhere in the collaborative fiction document.
OT: I really want to see marquee tag have native UI scrolling via CSS property. The many websites that use this horizontal scrolling layout with JS makes me want to cry.
I was planning on building this but never got around to it. After getting this set up its perfectly fine for my needs. Is there a way we can pay for it or at least tip you? I know the servers aren't crazy expensive but I'd love to support the work and hope it sticks around a while!
As far as I'm aware it's missing the consensus part. If I run a program that's not supposed to touch the filesystem in any way, and it does, SELinux doesn't suggest a way for me to circulate this new knowledge among other users of this program--except through its maintainer or that of my Linux distro. And maintainer diligence is over-relied-on as it is.

Ideally this sort of thing would work just as well on bits for which there was no clear maintainer. Like if SETI turned up a signal which we can chmod +x and run, we could use it to crowd source an understanding of what it does.

A way to hash a file and ask:

> What is known about these bits?

If it's a popular program and yet none of your peers have seen that hash, maybe you should subject it to more scrutiny than if there's widespread consensus about it (it may have been tampered with).
Ah, I hadn't broadened my search terms enough to find that. Thanks!
Trust Your Gut in Hiring? Bake 10k Cheesecakes First
Every pastry chef can spot a perfect cheesecake at a glance: the smoothness of the surface, the slight jiggle, the warm glow at the edges. Not because they read recipe books but because they have crafted thousands. They have seen every possible variation, every mistake, every near-miss, and every success. Expert chefs also know that the true test of a cheesecake isn’t in how it looks but in that first bite. What I realized is that hiring expertise follows the exact same path. We’re all just learning to taste the cheesecake and choose the best one.
The depending on purity is doing a lot of heavy lifting here, to the point where I would say it's misleading. I don't know the price for xenon off the top of my head, but for a comparison with nitrous oxide, food grade is generally between 99% and 99.9% pure. If you want medical grade, the threshold is 99.99% pure or better, depending on what you're doing. Those additional nines are what drive the price up, plus the fact that someone signed off on it with their name. Food grade is cheap, medical is expensive. No one is going to go up Everest with anything below medical.
People really take Adam Smith way too seriously. He lived at a time when the economy was made up of independent artisans not people working for large multinational corporations. If markets were really so good at regulating themselves why were any government standards necessary at all?

The reality is, every product has an asymmetry of information, and the more complex it is, the higher the asymmetry. And you can’t determine the quality of a product until you buy it. And determining quality takes time, which is a limited resource.

> the business will rightly fail

In reality, what stops bad behavior is regulation because in reality, people do not have infinite time and infinite information to assess each thing they consume.
The process is implied and extremely obvious: interview domestic candidates in good faith before interviewing foreign candidates.

There is little explanation for you not to understand this besides intentional obtuseness.
I'm quite surprised that it wasn't recognized by scalar evolution, a common optimization pass to detect induction variables and their relations to other variables. Of course that requires the compiler to reason about `i % 2 == 0` or `(i & 1) == 0` first, but modern compilers do have tons of patterns recognized by that pass...
The north pole is interesting, because everyone who raced to reach it the first time was using the most cutting edge stuff they had, right?

I wonder how you'd do that experience now?
It is not reasonable to compared the chartered companies of the 18th century, which were state-sponsored entities, to commercial enterprise today. The target of the American Revolution was the British government, not capitalism.
(Chiming in because other people replying to you kept on the "iframe-like" part of the argument)

Or serializing `<template>`s without needing JS. Like in lists (`<ol>`, `<ul>`, `<dl>`...). All in all `<template>`s are a nice thing to have, and I do use them a lot (like in my own portfolio), but it feels really lacking without JS.
You could use HTMX.org ;)
Inhaling Xenon gas is known to be a psychoactive experience, which I only learned about on the show Hamilton’s Pharmacopoeia. He claims the atomic structure of Xenon, by pure chance, fits nicely into one of the psychoactive receptors in the brain.

https://m.imdb.com/title/tt14099126/?ref_=ttep_ep_3

https://boingboing.net/2021/11/25/hamilton-morris-experience...
Industrialists gonna industrialize I guess. There’s an innate human demand to conquer nature, and an innate desire for others to make the things people want more achievable. We’d need a massive change in society to do anything else.
mRNA based vaccines also aren't gene therapy. Your DNA isn't being modified, that isn't how they work.

There isn't much point in replying to trolls like @whatwhaaaaat who claim the COVID-19 mRNA vaccines "don't even work". It's just willful ignorance at this point.
One modern approach would be Caddy Server's templates, using Golang templating:

https://caddyserver.com/docs/modules/http.handlers.templates

The "include" function should do the job:

{{include "path/to/file.html"}}
Great question! If i understood you correctly, you’re asking about creating a `Vec` of state machines and operating on them. With the type-state pattern, this can be tricky because each state is a distinct type (`Light<Off>` and `Light<On>`), and `Vec` requires all elements to have the same type.

To directly manage a `Vec` of state machines, you’d need dynamic dispatch (e.g., `Box<dyn ...>`), but as you mentioned, dynamic dispatch can be a giant pain in the ass.

Instead of directly managing a `Vec` of state machines (`Vec<Light<Box<dyn ...>>>`), my approach is to work with a dynamic collection of raw data (e.g., `Vec<DbData>`) and reconstruct state machines on the fly using the `to_machine` method generated by `#[validators]`.

Why?

1. You don’t need to store state machines directly in a collection.

2. The `to_machine` method dynamically reconstructs the appropriate state machine from raw data at runtime.

3.You still retain `Statum`’s compile-time guarantees for state transitions once the machine is reconstructed.

Here’s what i mean:

use statum::{machine, state, validators};

#[state]
pub enum LightState {
Off,
On,
}

#[machine]
pub struct LightMachine<S: LightState> {
name: String,
}

impl LightMachine<Off> {
pub fn switch_on(self) -> LightMachine<On> {
self.transition()
}
}

impl LightMachine<On> {
pub fn switch_off(self) -> LightMachine<Off> {
self.transition()
}
}

// Represents dynamic data
#[derive(Clone)]
pub struct DbData {
id: String,
state: String,
}

#[validators(state = LightState, machine = LightMachine)]
impl DbData {
fn is_off(&self) -> Result<(), statum::Error> {
if self.state == "off" {
Ok(())
} else {
Err(statum::Error::InvalidState)
}
}

fn is_on(&self) -> Result<(), statum::Error> {
if self.state == "on" {
Ok(())
} else {
Err(statum::Error::InvalidState)
}
}
}

fn main() {
// raw data collection
let db_data = vec![
DbData {
id: "1".to_owned(),
state: "off".to_owned(),
},
DbData {
id: "2".to_owned(),
state: "on".to_owned(),
},
];

// do stuff with vec

// dynamically reconstruct and operate on state machines
for data in db_data {
let machine = data
.to_machine("Light".to_owned()) // Pass shared data here
.unwrap(); // Handle errors if needed

match machine {
LightMachineState::Off(light) => handle_off_light(light),
LightMachineState::On(light) => handle_on_light(light),
}
}
}

fn handle_off_light(light: LightMachine<Off>) {
println!("Turning light on: {}", light.name);
}

fn handle_on_light(light: LightMachine<On>) {
println!("Turning light offf: {}", light.name);
}

This approach is kind of indirect but it solves the underlying need: operating on many state machines dynamically without sacrificing `Statum`’s type safety.

Did this address your question? If so, I’ll add it to the README—this is a great point worth documenting!
Who is "we"? What is your role in this issue?
We don’t know!
i been attempting to create passive income streams, cure diseases, expose the simulation get rich
But firing people for performance is framed as the person is bad/stupid/incompetent. The problem with the 5% quota is that it doesn’t necessarily mean you get rid of 5% bad fits. It often results in arbitrary top down push to fire x number of people in the org, which then translates to people with most political prowess keep their jobs and their headcounts while competent people get gaslighted, overworked and eventually fired because of moving goalposts. These people get put on PIP and eventually fired, often by telling them they are bad/incompetent and criticizing them excessively and pulling apart every single thing they do. Some people don’t care about this treatment, but others often face severe physical and mental health problems due to the excessive stress that is put on them.
I’m… not sure we agree on that.
I tend to agree. I also think both sides need to learn to better appreciate the other.

Without people getting shit done with the tools we’ve built, there would be no demand for better tools and no need to write them.

Without better tools, the things we can get done are limited. Better tooling is an exponent to our productivity. The things we can accomplish today would have been nearly unimaginable nearly thirty years ago.
Sorry if I was sloppy with my wording, instruction issuance is what I meant :)

I thought that warps weren't issued instructions unless they were ready to execute (ie had all the data they needed to execute the next instruction), and that therefore it was a best practice, in most (not all) cases to have more threads per block than the SM can execute at once so that the warp scheduler can issue instructions to one warp while another waits on a memory read. Is that not true?
Thanks, it's tough being a small publisher. Many of our competitors use a ton of ads, which screws with ad rates, and we use the usual off-the-shelf tools, but people still get mad that we have any ads. It's exciting.
For those of us with a black and white remarkable like RM2 could you add a setting to set all text to black including links? The blue washes out to gray.

Also setting the journal prompts to black would be wonderful - they are hard to see unlike the articles.
If you don't collect the data, there isn't an identifiable problem. I used to work at this place overseas. We got a new director, had spent time in America learning great things, open office, flat structure, door is always open blah blah blah. That lasted maybe a month. It didn't take long for our managers to basically say 'For the love of god just keep your opinions to yourselves or we'll all get fired'. Hello, you hired us for our technical expertise and we're just sitting here telling you you're making bad choices based on zero data and zero consideration for our stakeholders and how prepared they are to deal with your bad choices but yeah we're the problem.
The Scaling Paradox
A complete list would be long and get into private things I don't talk about
It worked for me. The one negative side effect was a bit of arrogance, which I actively worked on in college. It was also crucial to figure out that some kids were better than me, and it was better to hang around them.

There was also an "everybody has problems" support group at school that they kept encouraging us to join, but I said nah, I don't have problems. Most of the kids in that group ended up with depression.
Sadly, this isn't fool-proof. Domains can go up for auction or backorder on a registrar, and they won't update the registration date if the domain is purchased this way since the registrar can consider this a transfer. It's a signal, for sure, but it will miss cases. It will also miss transfers sometimes, depending on the registrar.
There's usually two - one suspended above the stop line, and one lower, on a pole on the side of the road, usually around eye level. This way both the driver in the front and drivers in the back get a clear view.

This is not a hypothetical "if", pretty much every country in Europe has traffic lights set up like this. Just take a look at Lisbon or Amsterdam in street view to see what I mean.
AI Realist Predictions for the Future
Dupe (38 points, 2 days ago, 15 comments) https://news.ycombinator.com/item?id=42677491

Related JPMorgan Workers Ponder Union in Wake of Return-to-Office Mandate (154 points, 1 day ago, 196 comments) https://news.ycombinator.com/item?id=42688159
Just a thought: watching a parent leave to have a cigarette outside or something, from a child's perspective, isn't hugely damaging. The kid can't understand addiction nor lung cancer (and so on), so the kid's perception of "smoking = bad" is mostly only on how the kid themself feels.

With a phone, the kid can fell ignored, unheard, unengaged with the addicted parent for hours at a time, every single day.

Maybe kids will grow up thinking "hey, I don't wanna be a phone zombie like my daddy was," or something.
Accessible? Meaning it's available for purchase if you have the money? Or actually affordable?

(first quack)
"For example, in 2022–23, the average total cost of attendance for first-time, full-time undergraduate students living on campus at 4-year degree-granting institutions was higher at private nonprofit institutions ($58,600) than at private for-profit institutions ($33,600) and public institutions ($27,100).4"

https://nces.ed.gov/fastfacts/display.asp?id=76

Or, if the requirement of a college degree for high school level work suggests, an expensive barrier for employment?

(random quack on the topic I could find)
https://www.vox.com/policy/23628627/degree-inflation-college...

You can say luxury sports cars are "accessible" if you want to finance a $150,000 car. And effectively that's what many (most? all?) college degrees are: luxury sports cars.
Well, I guess it depends upon what you're trying to prove. Are you as tough as Reinhold Messner? Do it without O2. Are you rich enough to get your body to 29,032'? Do this.
And that's fine, because you've _already crossed the line_ and therefore you can (and should) go through. You're no longer running a red light at this point, since it's behind you, you're just crossing the intersection like normal.
Did he reinvent a static-site generator? Markdown, pandoc, makefile... Sounds like a job for hugo/eleventy/jekyll/whatever.
> Yes, you must copy and paste content

Many people who maintain their own sites in vanilla web technologies tend to create reusable functions to handle this for them. It can generate headers and the like dynamically so you don't have to change it on every single page. Though that does kill the "no javascript required" aspect a lot of people like

Of course you could simply add a build step to your pure HTML site instead!
Yep, I thought ChatGPT was trained on Github but it's generated precisely 0 correct .nix files for me to date.
> So the price may go up

No, the prices will go up. As you said, the cost goes up due to better working conditions, wages, etc...

> The American consumers do have other options — other American companies

Yes, but all of American companies will never go below whatever the Chinese widget costs unless tariffs go away.
This doesn't seem like so much a difference of opinion as of fact; when an insurer denies someone coverage, they aren't motivated to kill that person, nor is that their intent. Like health insurance administrators in every system in the world, they're required to make decisions about who gets what, and that implies that some people won't get what they want. In fact, by the logic you're using, administrators in the NHS are far more culpable than US insurers, since they issue categorical denials they know with certainty are going to result in preventable deaths; an insurer can at least tell themselves they're conditioning coverage situationally and based on effectiveness. Would you like some specific examples?

I think this "health care" "murder" thing is just a really bad analogy and people should stop using it.
Its the the first time someone has reinvented a static site generator...

Looks around sheepishly
> engineers mused over whether there was anything to be done top stop a torrent of enemy missiles falling across the nation. These superweapons seemed to promise destruction on an overbearing scale, threatening the very existence of human civilization itself.

THEY STILL DO!!!!

This is what drives me nuts about our politics: so many people seem to think we can flirt with the sort of nationalism (1) that led us into WWI and WWII. But, friends, that road leads to your death in every direction. Mutually Assured Destruction is still a thing. Nuclear peace only works as long as all parties persistently work toward de-escalation, which can be measured by adherence to consensus and norms. Nationalism is antithetical to that posture. The iconoclast leaders of national populism are rooted in rulebreaking. They also tend to embrace strong foreign policy talk as a short term bolster to domestic support, again, antithetical to de-escalation.

(1) https://en.wikipedia.org/wiki/Nationalism
> For me it a simple curiosity, I need to work on recovering from ~1.5 years taking care of an ill family member. Maybe then it is worth a thought but for me

Hypoxic training would be detrimental to an untrained athlete. Restricting your oxygen intake would reduce the volume and duration of exercise you could tolerate, which would slow your progress.

So please don't use a hypoxic training mask. It would do the opposite of what you want to achieve.

Even within athletes the benefits of hypoxic training for general performance are questionable once you get away from people with a vested interest in pushing it (like the person interviewed in your podcast).
It all depends on their peer group and their nature. I have one who doesn’t even like to be photographed. That one I have no problem with - there’s no way she’s posting stuff about herself. Also, I’ve told her stuff on the web lasts for ever. She doesn’t do social media but only private iMessage groups with friends.

The younger sister is a “social butterfly” and wants to create “a lot of content”. Luckily she’s in a school program that keeps her real busy. So we haven’t had to deal with it yet.

In short, kids understand when you tell them and more importantly you yourself keep off these apps. If you’re on there all the time, there is no way you’re convincing your child to not be on.
Uh… sure that’s an oversimplified reduction. We were specifically discussing advertising within the context of Google and online advertising.

It’s not even debated that advertising as it exists with Google, for the sake of profit at all costs is a net-negative in society.

It’s not the same as putting a sign by the road.