skysight-inc/HackerNews huggingface dataset:
Show HN: Million Lint – ESLint for Performance
Hey HN! Founder of Million – We’re building a tool to that helps fix slow React code. Here is a quick demo: https://youtu.be/k-5jWgpRqlQ

Fixing web performance issues is hard. Every developer knows this experience: we insert console.log everywhere, catch some promising leads, but nothing happens before "time runs out." Eventually, the slow/buggy code never gets fixed, problems pile up on a backlog, and our end users are hurt.

We started Million to fix this. A VSCode extension that identifies slow code and suggests fixes (like ESLint, for performance!) The website is here: https://million.dev/blog/lint

I realized this was a problem when I tried to write an optimizing compiler for React in high school (src: https://github.com/aidenybai/million). It garnered a lot of interest (14K+ stars) and usage, but it didn't solve all user problems.

Traditionally, devtools either hinge on full static analysis OR runtime profiling. We found success in a mixture of the two with dynamic analysis. During compilation, we inject instrumentation where it's necessary. Here is an example:

function App({ start }) {
Million.capture({ start }); // inject
const [count, setCount] = Million.capture(useState)(start); // inject

useEffect(
() => {
console.log("double: ", count * 2);
},
Million.capture([count]), // inject
);

return Million.capture( // inject
<Button onClick={() => setCount(count + 1)}>{count}</Button>,
);
}

From there, the runtime collects this info and feeds it back into VSCode. This is a great experience! Instead of switching around windows and trying to interpret flamegraphs, you can just see it inline with your code.

We are still in the very early days of experimentation! Million Lints focuses on solving unnecessary re-renders right now, and will move on to handling slow-downs arising from the React ecosystem: state managers, animations, bundle sizes, waterfalls, etc. Our eventual goal is to create a toolchain which keeps your whole web infrastructure fast, automatically - frontend to backend.

In the next few weeks, we're planning to open source (MIT) the Million Lint compiler and the VSCode extension.

To earn a living, we will charge a subscription model for customized linting. We believe this aligns our incentives with yours: we only make money when we make your app faster.

We'd love to know your thoughts – happy to answer :)
> The other problem USA has is poor education and lack of well separated waste streams. I’ve personally experienced ridiculous “wishcycling” from my extended family in the US where they just throw whatever they want to feel good about throwing away in the recycling bin without looking up what should go in there.

In normal economy, the key to success is specialization. Instead of training each worker on each task, we divide work into chunks, and have t different workers specialize in different work. This increases efficiency tremendously.

However, since most of recycling is based on positive emotions, shaming, and wishful thinking, and not sound economic principles, it shouldn’t be surprising that instead of centralizing sorting work to make it more efficient, we demand that society wastes a lot of collective time, to offload the cost sorting onto regular people (with great inefficiency), and to shame them into getting a feeling of stake in the whole process.

Imagine what would the rest of the economy look like if it used similar model. You’d go to grocery store and waste time picking through produce to find fresh, undamaged fruits and vegetables, because the store can’t bothered to pre-sort it. You would manually add additives after filling up your car, because the gas stations only sell regular gas and can’t be bothered to premix and offer the premium. You’d go to a restaurant, and your waiter would tell you what ingredients you need to bring to get the meal cooked (by the waiter himself).

People shouldn’t need to sort recyclables by category,
How to make learning addictive with gamification
state should be an enum, really
The analogy I used back when I managed a team was that our workload was like a funnel. You need some amount of overhead to balance the pressure and keep things flowing. If you put too much in the funnel, things backup and spill. It's faster to leave that little gap than it is to try to use the absolute maximum volume.
It's not an all or nothing situation you can put an AI agent in front of real agents, if the AI agent is able to answer the customers question you do not need to escalate to a real human. That could allow 10 humans to now do the job of say 20. Did AI replace those 10 jobs, I'd argue yes.
The huge increase in service has been that they let you sit on the other side of the wall, basically. Instead of telling a DMV employee what they need to hear to fill out the little computer form, now they allow you to fill out the same form, on the web, and unpaid, too!
Ditto here but only recently. Currently working all the plastic I can put of my food prep workflow. Insidious situation we find ourselves in.
They have never asked me for any of my three accounts. And one I paid with credit card the two other with bank wire.
According to Wikipedia, Gibson did see Blade Runner and even rewrote substantial parts of Neuromancer due to that.

https://web.archive.org/web/20070926221513/http://www.willia...
GRC non-sense like this is really the cornerstone of cybersecurity. It seems like dumb boxchecking but these domains are the tools that we use to define, measure and most importantly sell security to management / main IT / users. The technical side is more sexy but then you discover that wack-a-moling the hot sploit of the week didn't really build your posture beyond the low hanging fruit.
Bad news for the wheel I guess
Nope.

Failure to maximize returns is not losing money.
Amazon and others already claim they use AI to handle customer support and marketing copy (https://www.aboutamazon.com/news/innovation-at-amazon/how-am...). Air Canada got burned when an AI chatbot made a mistake (https://news.ycombinator.com/item?id=39378235). Legal firms have been fined for hallucinated precedent citations (https://news.ycombinator.com/item?id=39491510).

The technology is clearly flawed. Regardless, a lower cost option (AI) is replacing a higher priced option (human labor). Ten years ago these tasks would have been handled by human employees or specialists.

There is certainly a history of this in the corporate world, when expensive union labor in Detroit is replaced by lower cost workers in Mississippi, manufacturing experts are forced to train their replacements in lower-cost countries, or entire engineering and customer service departments are shifted overseas.
Not being familiar with NZ jargon like "overseas experience", I was expecting a very different report from the title...

Something about user experience and developing latency-tolerant web browsing practices due to being on a far-flung WAN connection. ;-)
My entire point is that both desktops can be appreciated for what they are. I can use KDE or GNOME, I just prefer GNOME. I would never call KDE unusable, because it works just fine for those who like it.

People who go around saying they "can't use GNOME" because it's "not customizable" without ever even trying would be the ones that are not appreciating all desktops, like an adult.
Do I get it right? 1nm process? Thats a width of 5 Calcium atoms? This is going to end badly...
> I dunno if anyone will build an AGI in my lifetime, but I am confident that the task would remain beyond reach without the functions offered by today’s generative models.

This. LLMs are not the path to AGI. At best they’re one of many ingredients.
The only thing I've seen that even gets close to working is physically going to the office in person but hell finding what or where that is.

And you can't even do that with Social Security anymore.

If it is something you could be legally liable for, I'd at least send a certified letter to whatever address you can find, so that if it becomes a problem later you can at least show you tried.
Really happy to see that WayPipe has moved from a cute demo to a real tool. It's an absolutely insane implementation and I love it. If X.org hadn't made it a first-class feature there's no way we would have invented it today.
The point is that we as collective taxpayers don't want to overpay for government services. And that point is a good one.
I would agree that the cinematographic qualities of each movies are debatable, but the old David Lynch one will always be vastly superior for the single fact that Toto's (and Brian Eno) soundtrack is 3.7 thousand times better (give or take) than the uninspired bland soup that Hans Zimmer has been serving.
First of all, thank you! Updated the title ;)

See, this is my problem when I start to think about stuff. I always take it from the most complicated angle. I didn't look at it as Bluetooth headphones that record stuff directly.
I think Apple just wanted their own Game of Thrones flagship, and on paper, Foundation seems like it should be that (epic scale, big ideas). But honestly, it needs a more subdued treatment: mostly talking heads in rooms, and an anthology that jumps forward decades with each episode, rotating characters as necessary.

Blockbuster narratives need heroes, which works directly at cross-purposes to the long-term systemic thinking that defines the books. There was probably never a scenario where the high price of buying the rights could match up with the size of audience for a more faithful adaptation. (And rightly or wrongly, non-book-readers seem broadly positive on the series.)
Never knew that shortcut, useful!
It may be common, but that doesn't mean it's warranted. Logical fallacies, for example, are also common (so are spelling and grammar mistakes), and yet personally I prefer to commit them less often rather than more often. You think the quotation is a fairly accurate depiction of the sentiment expressed by another person. I don't think that. In fact, I think the opposite. One way to settle the matter would be to ask the person.

What do you say, doctorpangloss? Do you think this is a fairly accurate depiction of the sentiment you were expressing?

"this is wrong, but I'm not gonna explain why"

I doubt this person will respond, of course (they're not obliged to).
How does that work with states like IL being massively in debt due to overspending and pensions?
Not if you "used" the services you want a refund for. And I have, for sure. I had a long discussion with a rep and she said if I canceled I might not get a refund and I'd be out of luck.
> I kind of flipped out, and was motivated to finish this blog piece, when I saw this: “UK government wants to use AI to cut civil service jobs: Yes, you read that right.” The idea — to have citizen input processed and responded to by an LLM —

That's not what the article says, it's about processing responses not responding to people. I don't think there's anything about responding to citizens.

And it also doesn't say LLM it says AI.
Step outside the HN bubble my friend

https://www.statista.com/statistics/346167/facebook-global-d...
404 on the imgur
As taxpayers, we most certainly do collectively pay for government services.
I always thought the Arabic references in Dune, and also the desert planet that produces the fuel by which commerce operates, was a downright obvious social commentary on oil and the geopolitics at the time the book was published

Honestly I always thought the metaphor was borderline heavy handed, to the point that I never continued reading after the first book because the metaphor was boring to me

Now I feel positively gaslit. Did I imagine all this?
That’s simply not possible. How do define a vulnerability? That’s all context dependent. It could be something as subtle as skipping an auth check if a magic string is part of the payload.

The main benefit of reusing software packages is that you don’t want to spend the effort of writing/reviewing all the internals of the component.

At some point, to trust an abstraction blindly, you need to instead follow reputation. Who has authority to say what is reputable or not is the difficult dilemma.

As seen with CVE authorities lately, it’s not easy. As much as they undermine their own authority by declaring everything as a CVE, vice versa, declaring every org in GitHub as “Verified” may eventually be easy for scammers to get as well.

Back in the days, just having an SSL certificate on your web site was a big stamp of trust. Now everybody has it and it doesn’t mean anything.
I've been daily driving KDE/Wayland/Nvidia for about a year and it's perfectly usable. There are odd bugs every now and then, but nothing that's a show stopper.
Corporations are owned by people. Should people not be allowed to combine together to petition the government together?
Checkout Quod Libet. Better than foobar, which I used through wine for ages. It's just about the only GTK app on my KDE boxen and I gladly make the exception.
This is fine to say, but how many dead or permanently maimed kids before you think playgrounds should be neutered?

I mean, it's just a number right? So how many kids does a playground need to kill every year before you'd say "oh, maybe we should nerf the monkey bars"?

Time-and-time again is see the masses have zero idea how many people are getting killed regularly until the stats are put in front of them. We assume it's small, but often non-negligible, like the fact that there are 11 drowning deaths every single day: https://www.cdc.gov/drowning/facts/index.html
This is incredible news...and might also be the death knell to the Cybertruck (traditional pick-up vs antialiased 3D polygon)
That's the www not the internet, which is much larger and more flexible than the www. We pay internet services providers for access to the internet. The so-called "tech" companies, backed by advertisers and marketers, are "web service providers" providing access to "websites" and in some cases the greater www. Generally, no one pays for these "services". There is no additional charge on top of what we pay to ISPs. (But there are plenty of exceptions where people do pay additional fees on topof what they pay for internet access. This is quite shocking considering the majority of www users do not pay anything.)

Hence if the www sucks, the internet offers the potential to use/create something better. Without the internet there is no web. But without the web, there is still an internet.
Heck yeah, this is awesome.

Any chance of some kind of social features? I want to control my data, but I also do want to be able to share my fitness stats & journey with a specific self-selected group of people: friends, running club mates, etc

Thank you for making this!
> Get out the chainsaw and rip out everything that’s not absolutely required to provide the features your company/open source project is advertising and selling

Except every legacy C++ codebase I've worked on is decades old. Just enumerating the different "features" is a fool's errand. Because of reshuffling and process changes, even marketing doesn't have a complete list of our "features". And even it there was a complete list of features, we have too many customers that rely on spacebar heating[0] to just remove code that we think doesn't map to a feature.

That's if we can even tease apart which bits of code map to a feature. It's not like we only added brand new code for each feature. We also relied on and modified existing code. The only code that's "safe" to remove is dead code, and sometimes that's not as dead as you might think.

Even if we had a list of features and even if code mapped cleanly to features, the idea of removing all code not related to "features your company is advertising or selling" is absurd. Sometimes a feature is so widely used that you don't advertise it anymore. It's just there. Should Microsoft remove boldface text from Word because they're not actively advertising it?

The only way this makes sense is if the author and I have wildly different ideas about what "legacy" means.

[0] https://xkcd.com/1172/
For who? Certainly not for the person paying.
MediaWiki Transclusion
I'm not sure I have strong feelings about it, but here are a few thoughts:

1. I think a more universal content aggregation / discovery tool would be beneficial for many people. Google might be the analog that comes to mind. This makes me wonder how such an aggregator/search tool would operate in a decentralized way. Would each user/node be responsible for maintaining its own index? My question to you is how does this differ from current centralized aggregators and search tools?

2. Regarding distribution vs. publication: its an interesting point that you could separate the two, but I personally believe this benefit would be moot for most people since they would be unlikely to self-publish content. My view is that most individuals will continue to use centralized services, regardless of the underlying protocol, due to a combination of convenience, ease, and cost. Like you identified, unless there is some critical mass of people self-publing and self-distributing, I'm not sure I see a tangible benefit here.

Also, mea culpa, I sometimes forget that the author might read my response and perhaps my language in my initial post was too strong, I hope I did not offend.
How good is AI refactoring the code? Haven’t tried it yet, but… as someone who has need to work on tons of legacy in the past… looks interesting!
I sense a trap, but i'll bite – APIs and schemas and other logical data models can be remixed, at least in principle. Physical data models (i.e. coupled to storage layout) are too low level to be useful, all you can do is load them back into into their originating app.
I found this to be a really interesting article, both in the general "just because someone owns a majority of the company the board is not required to just do what they say because they represent the interests of all stockholders", but also a few other points - I assumed Musk owned much more of Tesla as a result of his stealing it from the actual founders, and even now we still don't know what Altman did/did not do that resulted in the absurd OpenAI train wreck a few weeks back.
Can I see your paper template?

What if you want to graph tonnage?
As I said, a sovereign state. (Though I did edit that clarification so you might have missed it).
Wayland WIP: staging: add color management protocol
Tim writes a post about a "Money Bubble". There is now an alternative form of money that anyone can buy through their 401k if you believe there is a money bubble. He dismisses?(or doesn't even consider it?) since it uses a blockchain, because that's a dirty word in the cloud/SaaS tech circles. sigh
> Plasma 6 is likely to be a little bit rough around the edges for a while, and users might want to review known issues before deciding to upgrade.

https://bugs.kde.org/buglist.cgi?bug_severity=critical&bug_s...

This one caught my eye:

https://bugs.kde.org/show_bug.cgi?id=480122

SUMMARY

If the screen is turn off and then the pc goes to sleep (only possible if the lid is closed because trying to use a shortcut to sleep cause pc screen to turn on), on lid open the screen is black and the pc is unusable (require a reboot).
But there were also people who criticized black female actors playing white male roles from the book, and that's not a valid critique if the gender and skin color isn't a necessary part of the role.
I'd be very excited if KDE can be the first usable Linux on mobile (usable = with my $banking_app, $messenger_app, etc.). If anyone were to pull it off it'd be KDE.
Is anybody using it?

There's this switch called WaylandEnable in my gdm3 config file, but I have to keep it false to stay out of trouble.
Most often I just start using the language without reading/watching tutorials.

And I often contribute to open source projects which I use, that use a language I've never used, and it worked quite well so far.

a) you can take a look what tooling they use

b) by looking at the existing code and trying to find the bug I often find interesting things that may be helpful for my contribution

c) most open source maintainers give reviews and may aid you with some parts of your code, and are often quite helpful when you are puzzled by their build steps or CI pipeline

Otherwise you could just go on GitHub and filter the top stared repositories that use the language and take a gander at their tooling and their code

And some languages like rust have good documentation for the tooling, common libraries used, and tutorials that are more advanced than crrating a hello world
Heh, I think the last few years Windows has copied KDE, not the other way around.

I say this as someone who has used the latest versions of KDE and Windows until around the release of Windows 11 (but I have seen that too).
"With the rapidly approaching inception

Of artificial intelligence
Humanity may well set the stage

For its own demise
Once the exponential rate of intelligence

Reaches critical mass
There will be no turning back
And all of mankind will be exterminated

The human race, who, for centuries

Have looked to the stars for answers

Have always questioned

Whether or not God exists

He does now"
Sway is an i3-compatible Wayland compositor
This would a great candidate for https://wails.io/. I've been building a lot of utility desktop apps and the static binary is around 9mb (uses the system webview).
Yes, exactly like how a sewing machine helped replace sewers. One person can do the job of 2.
When the valuation is something like "it looks like it's assuming they'll continue to sell $X billion a year" it can be reasonablish.

When the valuation requires "they will continue to grow sales X% a year" is when it quickly becomes impossible, and for a much smaller X than you might realize.
That's why I asked what the bar was? If Google is writing shitty C++ even with the world's eyes on their code base, who is doing it right? No one writing anything sufficiently complicated that's for sure.
Drinking with Agatha Christie
We use some AI for the first level of customer support. It can provide standard answers to common questions and help with routine action requests, but it is backed up by human operators for anything more complex and customers can opt out of the AI whenever they want. From customer surveys, they tend to like using the AI for simple things because it is faster and they get what they need. The like that they can get a human when they need too. If you aren't providing a human fallback, you aren't doing it right.
Wayland: Displaylink Support
What else are investors going to do, sell stocks and buy bonds?
Pray show me the accounting for how that works...

Edit: here's my offer for the UK case: https://www.ucl.ac.uk/bartlett/public-purpose/publications/2...

If you want to argue something that directly contradicts that analysis, I await with anticipation.
Court orders maker of Pegasus spyware to hand over code to WhatsApp
I Wrote What? Google's AI-Powered Libel Machine
Using Gemini, a former Rolling Stone editor discovers his involvement in past scandals.
That not only depends on preference, but also on hardware. When only using laptop display, most of my windows are full screen. However, when using a 32 inch 4K display, I prefer my windows smaller, often having multiple windows side by side, sometimes tiled.
It's used unironically/noncomedically as a final banjo lick in many bluegrass picking songs (the article does mention this). I heard it first there and I've always assumed it originated from American folk music. Interesting that it's quite a bit older/more general.
Wlroots: A modular Wayland compositor library
I accidentally a word.

> I do object to calling them fictional languages.
wow, there. Lets not get crazy there. It's plenty enough to support multiple package managers, but what you are considering is just too much!