skysight-inc/HackerNews huggingface dataset:
So, couple facts about this SSG's design that nobody will ever read:

1. It's hyper-efficient with how it reloads modules, to do the absolutely least amount of work necessary. If a file hasn't changed, it's not touched. If a .ts/.tsx file hasn't changed and nothing depends on it, its exports aren't touched. If it hasn't changed but something has that depend son it, it's function isn't recompiled, only its exports are re-exported by re-running it.

2. Everything in src/ is normal, but everything under site/ is loaded by src/ and compiled via sucrase, and run in its own runtime. This is what allows the psuedo module system above to be so efficient. It's also what makes the JSX feature so simple and yet fast.

3. The JSX syntax essentially compiles down to an object like {tag:string, attrs:object, children:any[]}, which can be manipulated at runtime. This allows for script/style/link hoisting and de-duplicating, which means you can put a css link in a component that's used multiple times in the site, but only loaded in the HTML once, and pulled up into the head element. It's turned into a string by walking the tree and adding to an array and joining it when done. I think it can be improved. For a while it was in the site/ runtime but I saw no benefit to that.

4. Import just uses require under the hood, and importing any file claims a dependency on it which reloads your file whenever the depended-upon file changes, whether the one you're importing is a normal ts/tsx module or a resource file (css, js, jpg, etc).

5. Importing a file tree returns a list of every file under that tree recursively, including future dependencies. So if you `import files from './images/';` then it will reload the file containing this import not only when a file changes in ./images/foo/bar/ but also when one is added or removed from it. This is really helpful in reloading when e.g. new data files are added. And the fact that it returns a flat list of "absolute" file paths (relative to site/) makes it easy to operate on and filter through.

6. When you import a static resource (jpg, css, etc), it returns {path:string, content:Buffer} as well as claiming a dependency on it, so that you can e.g. use the path in a href, or examine its buffer and do something with it, etc. Eventually I want to reintroduce the concept of dynamically generated routes, e.g. given a font dir, you can currently use the Font component, but it genereates a script tag; it'd be better if it introduced a link tag that can be cached by the browser.

7. Components with this are super cool and easy to use, but there's a lot of low-hanging fruit. I'm in no rush to see what kind of things I can do with it, but it's already picking up speed in the past few weeks. One of my next challenges for myself is figuring out how to use the dynamic static resource concept in point 6 to generate unique IDs for pseudo-scoped-css, similar to what react styled-components and all them did.
> You might as well do a regular check for if the gyroscope is spinning, and if not return an error.

I mean yea, it'd be great if programs propagated every possible error state or violated invariant possible up the stack. I don't see that happening any time soon, nor that being worth the effort. When was the last time you checked and propagated allocation failure? I'm guessing not in a long time, unless you're working with a runtime where allocation failure is explicitly handled as part of normal program progression (like the `alloc` libc family) and where you expect to run into memory limits.

Granted, exceptions are a good deal easier to handle "invisibly", but those have notably been absent from this discussion except in the case where they are unhandled as an assert might trigger.
>It's too boring.

I see what you did there.
> valid end state most of the time

I disagree. Don't assume "most humans" are anything like Silicon Valley startup developers. Most developers out there in the wild would definitely struggle to solve problems like this.

For example, a common criticism of AI-generated code is the risk of introducing vulnerabilities.

I just sat in a meeting for an hour, literally begging several developers to stop writing code vulnerable to SQL injection! They just couldn't understand what I was even talking about. They kept trying to use various ineffective hacky workarounds ("silver bullets") because they just didn't grok the the problem.

I've found GPT 4 outperforms median humans.
Interpreting your question the best I can:

There are usually patterns that you match the code you're reading to. For example, the simple pattern of int f(int x, int y, int len, int *z);

and you immediately think "oh ok, they're doing something with x and y, and z is the out parameter. The fn is also likely going to allocate". Usually it matches what you see in the function body and it's all good. In (hopefully) rare cases you view it with such a lens and something doesn't make sense and you have to scrutinise the code for what it's actually doing. This is all without variable names. Proper variable names makes it much more straightforward to read e.g calling the function vec_add
> The Best MP3 Encoder is LAME

The best open source MP3 encoder, which still makes LAME very important. If you need the absolute best MP3 encoder, ABX testing against Fraunhofer’s encoder tells the tale.
Is Postgres Partitioning That Hard? An Introduction to Hypertables
Rodless pneumatic have a long history of being headaches. Having to seal the slot with leather, wax, and tallow didn't help. Here's how a modern one works.[1]

There's a famous example of a large rodless cylinder application - the launch system for the V-1 "buzz bomb" of WWII. It didn't have enough engine power to take off without help, so it was launched from a ramp, propelled by a piston in a tube much like the atmospheric railways. Power came from steam, created by the reaction of hydrogen peroxide and potassium permanganate, a very volatile combination. The V-1 itself just ran on low-octane gasoline.

During WWII, some V-1 buzz bombs crashed in England without detonating, and were analyzed and duplicated in the US, as the "Loon". But the Allies didn't have access to a launch ramp (those being in enemy territory at the time) so they didn't know how the launch system worked. Amusingly, that was a good thing. A new launch system had to be invented. The result was a solid fuel booster for rocket-assisted takeoff. This allowed a much more effective launch setup, with a short takeoff rail instead of a huge fixed concrete ramp clearly visible from the air.

Aircraft carrier steam catapults are rodless piston steam systems. Same principle.[2] Some of the same headaches.

[1] https://www.parker.com/content/dam/Parker-com/Literature/Lit...

[2] https://navalmarinearchive.com/research/ims/steam_cat_2.jpg
The complexity of an implementation is a different thing than the complexity of a design, and each determines things like how frequently it needs maintenance or how difficult it is to use. As usual, the devil's in the details.

You can make something that has complexity without making it complicated or expensive to maintain. Take cars for example. There are many cars today that have a barrage of complex features, yet don't have costly maintenance bills and aren't difficult to use. That's because they have been engineered purposefully to reduce that complexity, and because the people that make them are masters of their craft, trying to create a premium product. Materials engineers, structural engineers, sound engineers, mechanical engineers, and more, all work toward the best design possible, to implement the most functionality with the minimum number of defects. They can tell you how likely it is for the paint to begin chipping on a new tailgate due to potential contamination in an alloy. And they'll use that knowledge to make it less likely that you'll have to take your car in for repair.

The software world today - especially where customers are an afterthought (such as backend software) - does not make attempts to improve its design or implementation to reduce the need for repairs. Instead they just "manage" it for you, doing constant maintenance on the constantly breaking vehicle they drive for you, while charging you a subscription fee. (the auto industry noticed how profitable this is, and is now doing the same wherever it can)

K8s is a great example of terrible design and half-assed implementation. It was not designed to be easy to install, configure, operate, upgrade, or maintain. It was designed the way a company designs software for its own internal use: start with some "opinions" that are more about inflated intellectual ego than practicality, throw some shit together that "basically works", and keep introducing breaking changes so it can never be operated continuously without requiring constant reworking and changing how it's run.

If a car were produced like this, nobody would buy it. But it's handed out "for free", so we all just accept it and end up driving this janky-ass school bus that constantly needs its components changed while the bus is running. But you can't ask a regular person to change the parts on a bus mid-cross-country-tour, so you have to hire a mechanic to sit there on the bus. It doesn't have to be that way, it just is because the people who made that bus don't give a shit about hiring a mechanic, they have 10,000 mechanics already.
Spotify's AI Voice Translation
Lifestyle inflation is why people don’t feel so much wealthier than their grandparents, but housing isn’t the economic drain it seems like because so much of its value doesn’t require resources to create. It’s mostly redistribution of income from workers to other people and as such it gets into politics.

Well that and the giant ball of suck associated with long commutes, but I am kind of hoping there’s going to be more pushback on that due to people working from home during COVID. Even those who still needed to go in had vastly less traffic.
Leave your work in a way that it is easy to get started. Make schedules for anything routine. Decide what has to suffer from lack of attention, and put it out of your mind. You can only manage so many projects.
Yea I can see how you could know. The problem is.. a tool like this has the awesome and can say "oh yes I checked all those this random APK is definitely the one you wanted"

Thats what F-Droid and Google store (and the apple store) do: they stand their assets as "if we lied, you know where to find us" regarding the provenance of what they pass. They do of course, also routinely (ok not Apple mostly) pass apps which do heinous bad things, because it turns out there's only so much automated tests can find.

As you observe, sometimes the promise is hollow. (F-Droid)
The problem with css is that it's a horrible design language, terrible from a developer perspective, and abysmal from a performance perspective both on the network-side, server and client side. In-fact it would be difficult to come up with a standard for transmitting information, layout and style specifications over the Internet in a worse and less efficient way.

Most web-pages size is 1MB or more while the text is usually 1-2Kb. That means we have roughly 1000x spent on styling/layout in relation to content. I wrote a post about this back in 2006, still true. https://gregraiz.com/graiz/2006/09/25/ten-reasons-why-css-su...
> We found that running 2 full white images did a good enough job, without disrupting the experience too much

Some devices actually clear by outputting the invert of the image. Maybe this will be faster
What are your favorite benefits you have negotiated other than salary/equity?
I'm wrapping up an interview process and expecting an offer shortly. I think they will come in close to my desired range, so I'm interested in out-of-the-box benefits I might not ever have thought to ask for.

The role (and the company) is already remote (my strong preference) with "unlimited" PTO, and I'm short on creative ideas!
Yeah, Ryzen usually performs best with faster RAM, but finding good speed on ECC sticks is generally tricky. It makes sense to get x3d version of CPU if you are planning to build a system and squeeze more out of it.
The common wisdom on HN is that Toyota missed the boat on evs but I don’t think the boat will really set sail for another 7-10 years. Sure there are some evs out there and the market segment is growing but the charger network isn’t there. The charger standard will probably looks like it will finally converge in 2-3 years but good availability of ev chargers across the country will take at least 7 years. So Toyota has time to build and buy more mature tech without burning crazy new tech dollars.
probably, or if they aren’t directly criminals they’re probably facilitating criminals. but if you were very particular about it you could in theory set up in a country which doesn’t have treaties with any of the countries in which the victims operate.
I requested data be deleted from a data broker and live in Arizona:

> We are in receipt of your request dated September 12, 2023. You are submitting a request from a jurisdiction that does not currently provide data rights.
Washington Post slashing 240 jobs
The Places That Sam Bankman-Fried Left Behind
If this attack takes only 20,000 machines to orchestrate, how is it the "largest DDoS attack to date"? It was to my understanding that some botnets and organizations have placed far more than 20,000 machines under their control before or currently. Could you explain a bit better?
This was an enjoyable light read. A window into solving a programming problem outside my day to day work, easy enough to follow, with a couple of fun concepts like "psychoacoustic model".

Thank you for sharing.
Fewer new programmers are learning or being taught C. And fewer mid-career programmers are choosing it as a language to learn.

Of course any competent programmer can pick up most languages. But projects written in a language that's in decline still have a harder time attracting developers (look at anything written in COBOL or Perl or TCL): it's less good for their CV than a more popular language, and the level of support in tooling and the library ecosystem tends to be worse, which means you spend more time working on the scaffolding and less time doing interesting work. And frankly C is already a language where you spend a lot of time on ceremony and bookkeeping and relatively little on the essence of the problem.
I’ve found that I’m far more relaxed when I’m really well-rehearsed.
The fault is at least 150 miles from Seattle proper, the city will not receive the full brunt of the earthquake. Tsunamis are strongly mitigated by the geography of Puget Sound — the biggest tsunami threat is actually the Seattle fault.

By contrast, the San Andreas fault literally runs through the middle of the Bay Area.
Awesome supposedly because it enables different opinions on whatever philosophical aisle you find yourself in.

“CSS gives you options. Use it or don’t”.

Unless you have cross browser bugs, or legacy rules, or whatever.
> After The Pirate Bay and other famous public sites went down, there has been a proliferation of private trackers. These private trackers have high quality stuff. To get an invite, some of the trackers need references and also do personal interviews etc.

Or alternatively pay, ideally in Bitcoin... after nearly 2 decades of watching Japanese Kickboxing/MMA etc... I found a spot that delivers most of those events (plus way more than I care to watch) and its everything I ever wanted out of a service and gladly renew every year--though I'm incentivized to seed as long as possible in order to decrease membership costs, but I'm usually the last to DL so my ratio suffers since it's pretty niche.

It's like these promotions don't want our money, and go out of their way to make it difficult for non-Japanese platforms tpo show them legally in other markets, so instead we pay a team to curate the recording in various formats (720/1080) and upload it next day or two.

When I was younger half the fun was staying up late, chatting with people from all corners of the World on forums PBP and reacting to a knockout or decision and seeing the sun come up with fights still on the card left and deciding if I can make it to school/work etc... but sadly those days are over and my version of convenience(s) comes from watching something at my leisure at sane hours days/weeks/months later in order to not mess up my sleep cycle these days (I pay a lot more for that by comparison).

To quote one of these die-hards on the forums:

> If I'm the only dude in the PBP on NYE I'm going to have a meltdown. Should be an interesting read when it happens, anyway.
No, only a tiny minority of PC games run on the JVM. The vast majority are native and not running on any kind of VM. Even with the Unity engine the games are natively compiled.
That’s great! I hope small uses of AI like this work to make us more efficient, but that doesn’t sound exactly like a societal breakthrough, to be able to sell stuff better. I’m looking for AI that can do things other than make capitalism more efficient at parting people from their money.

(Yes, I’m a negative asshole. I should probably be more open minded.)
Nice tech.

An office with a door.
How to Stop Junk Mail (2022)
Vibrating a piston at low frequencies isn't hard, but getting it to move enough air is very hard. You're right that "big enough" with "enough power" could solve that problem, but the mechanics of a conventional driver result in unavoidable output roll-off as you go lower, whereas the fan/rotary solution won't roll off because it has essentially infinite excursion - it just keeps blowing in the required direction at the required pressure level for any low-enough frequency, even fractions of Hz.

Re: custom electronics - my understanding is that the electronics just need to handle very low frequencies (in part by being able to sustain enough current without fading), which would also be true for a conventional subwoofer system trying to operate at those frequencies.

I remember reading about this thing a long time ago and wondering how close I could get with a DIY solution. It would probably sound terrible but it would be fascinating as an transducer learning platform.
I tried the same setup on 3.5, but flat out told it “that’s not right” and got and apology, but it didn’t budge:

> I apologize for any confusion. There are indeed 12 inches in a foot. If you have a different question or need further clarification, please feel free to ask.
What happens if you get a CA po box, or use a vpn?
Just goes to show the immense power israel holds over the US. Even the president was unwilling to publicly acknowledge this. So much for being our greatest ally.
What's the point comparing individual samples to an average?
I know, survivor bias, but still: some people built some things to really last back then.
Except that CSS explicitly avoids having a solver, so you can't refer to that size anywhere, and if you want to do anything besides the trivial "flow the content until it ends", you can't.

So yeah, if you want to have any elaborate design, you can't just let the box be sized by its content.
That New Yorker article goes viral every few years - it's a well written piece and spins a great yarn, but there's some significant hyperbole and it's sources don't quite back up the claims. Yes, a 9.x will be devastating. No, everything west of i-5 will not be toast.
It's irritating that companies do the bare minimum required by law instead of doing the right thing.
The orphan tsunami of 1700-Japanese clues to a parent earthquake in N. America
I wasn't disagreeing with the larger point, I was nitpicking the details;)
Blammo's best seller!
Freshwater availability is a big factor that swings in the PNW's favor.
eBay posts are littered with typos, though. How well does eBay do at filtering out Xaiomi, Xoiami or Xiaoim phones?
Although AI has various variations, the recent AI boom is referring to what is called generative AI such as ChatGPT.
From what I can find, "track use" isn't in the law, but rather a matter of enforcement discretion.

"The Clean Air Act does not contemplate removing emissions controls from an EPA-certified motor vehicle in order to convert it into a competition vehicle. As a matter of enforcement discretion, the EPA’s longstanding practice has been not to take enforcement action against vehicle owners for removing or defeating the emission controls of their EPA-certified motor vehicles, so long as they can show the vehicles are used solely for competition events and no longer driven on public roads."

https://www.autoweek.com/news/industry-news/a36482793/sema-e...
> Why does this article claim that attestation is unlikely?

Facebook is still going to want me on their websites even if I’m running Firefox. Most websites people visit will not do any chrome WEI attestation. Likely exceptions are sites which handle any legal, financial, or health-related data. Not credit cards. I doubt most Google properties will use WEI.

They still want to slurp up all my juicy Firefox usage data and I bet they think a lot of such users will drop their services like a rock if it meant otherwise dropping their browser.
If the vast majority of games were on the JVM, then the vast majority of games would run on Linux or Mac without Proton or Wine, wouldn't they?

That is not the case. Minecraft is probably the only major game that runs on the JVM.
Kusion v0.9.0: A Dev-Centric DevOps Tool to Deliver Intentions to K8s and Clouds
Decision Diagrams: Overcoming Replication and Fragmentation in Decision Trees
4umi: My site is my castle
Link to the actual Microsoft page: https://learn.microsoft.com/en-us/windows/whats-new/deprecat...
One of the first things I ever pirated was some mp3 library for vb6 (well...I also pirated vb6). I built an mp3 player called 3pm, so clever. It had a userbase of me and maybe 2 friends.

It had AOL chat coms. Ha.
It is the proof, on unregistered sticks that's the job of your software, so it does the bit flip correction.
Does employer have to tell if they're spying on you through your work computer?
Adult heart cells (cardiac muscle) don't regenerate. Once they're gone, they're gone.
CSS makes the common things that nearly everyone wants to do unnecessarily hard.
>To a professional, those applications are toys, easily made and take little effort.

I acknowledged that much. Nothing the AI produce will be a masterpiece, but it is serviceable. The alternative is hiring a contractor or getting an intern and spend more money trying to get a slightly better result, in rare cases, might be worse. Not many places are willing to pay that extra cost.

> They don’t know how to code and thus cannot know if that code is correct.

A bit elitist there. These are still highly educated scientists. They might not know how to code, but to say they can't evaluate the output of the code is a bit much. You might not know how to edit the genes in a fish but you can tell if the fish is glowing or not, right?
As you say, however the measure of a successful business is simply profit, while the measure of a good government is far more nuanced but usually something along the lines of "how well the people in the nation are faring."

Therefore, it makes sense that we order our society such that businesses are subservient to governments, and governments priorities are first and foremost the needs of people, regardless of any additional cost to businesses.
Cascade is cool until you don’t want global things
The British Isles and Japanese Archipelago: A Comparison of Environmental Basics
The solution to your problem is simply more passkeys.

I am not being sarcastic - which ever service your authenticating to make sure you have passkeys from at least 2 different devices so you do not lock yourself out.

If you don't fit into this multi device assumption, passkeys are not going to work well for you. There will not be a standard for transfer / recovery.
Stainless steel concrete reinforcement [video]