skysight-inc/HackerNews huggingface dataset:
Introduced Vite into our React project but it's still an experimental development option due to some rough edges.

Our project has thousands of SCSS and source files(nearly 10k).

The motivating factors were 5-12 minute startup times for CRA depending on the power of the developers workstations, and equally burdensome builds requiring now over 8GB of Node heap to complete without hitting OOM events.

Really, really convinced this style of tooling is the future however here are some issues we are running into:

* 4s full page refreshes

Much slower that when Webpack finally gets going. If I'm working on something that may require lots full-page loads I'll opt for CRA.

This is in part to do with the sheer number of source files. Part AFAIK they aren't using a strategy such as a Merkel tree to keep track of which import chains are actually invalid and instead re-request every file every reload.

Part is SCSS which is a super, major PITA performance wise on a project of this size. Vite doesn't yet support embedded SCSS, and embedded SCSS doesn't support process reuse so it may not even work well with this dev server strategy.

* HMR objects

Editing certain(mostly non-component) code will cause duplicate class names to be created: MyClass2, MyClass3, and etc. Vite seems to use a different strategy than Webpack which, I believe, use proxy objects.. In any case these can cause "instance of" and other failures that trip people up and send them on wild bug chases.

* Weird optimization requirements

In your project's src importing from folder index files is considered harmful to Vite performance.

When importing from node_modules NOT IMPORTING from the base index is considered harmful to performance!? It will not optimize deep import deps automatically(pre-bundle and browser cache them).

=========

Even though I'm convinced this is the direction of dev tooling I'm not sure Vite will be the winner here. I can't help but feel entire server should be written in a language such as Go, and a better incremental build and delivery strategy needs to be in place. A strategy so that the browser only needs to request the files that have changed while going to cache directly for everything else. Otherwise very large projects will continue to be problematic.

Yeah, lazy loading components but that's not always desirable particularly in single page "apps".
There already several hacks around speed of light in physics:

Space itself expands faster than C. How is this possible? Well it doesn't count if the space itself is expanding

Wormholes have been theorized by Einstein among others and allow FTL travel. How is this possible? Well you dont travel faster than light inside the wormhole only if you count the distance the long way

Tachyons are particles that travel faster than light. How is this possible? Well you can travel faster than light but you cannot accelerate to a speed faster than C (sure..)
I developed a configuration format which is similar to, and a superset of, the JSON format. It's not new - it dates from well before its first announcement in 2008 - and has the following aims:

* Allow a hierarchical configuration scheme with support for key-value mappings and lists.

* Support cross-references between one part of the configuration and another.

* Provide a string interpolation facility to easily build up configuration values from other configuration values.

* Provide the ability to compose configurations (using include and merge facilities).

* Provide the ability to access real application objects safely, where supported by the platform.

* Be completely declarative.

It's similar to newer formats such as JSON5, HJSON, HOCON and similar but offers a number of features [0] which they don't, as indicated by the above list. It's not intended to occupy the niche where you find things like Cue, Jsonnet, Dhall and similar.

It was just never especially publicised when first implemented for use in Python projects, but it now also has implementations for the JVM, .NET, Go, Rust, D, JavaScript [1], Ruby and Elixir (all BSD-3-Clause licensed) and it would be great to get feedback on the project from the HN community.

[0]: https://docs.red-dove.com/cfg/intro.html - description of features and comparison with other similar systems

[1]: https://docs.red-dove.com/cfg/playground.html - uses the JS implementation to create an interactive playground
I hope only financial ruin for everyone involved in a crypto mining operation using fossil fuel. For fuck's sake, the world is burning.
Except that it is in your title, so clearly is it not just a blanket removal. There must be some logic checking whether it materially adds value to the title, and removes it if not. Even if that logic is simply checking for spaces and you got around it with quotes, that is some level of thought put into it. This seems in line with the general vibe of HN and its moderation. I can see that yes, there may be some exceptions where the word would be appropriate, but that is the edge case - automating the more general rule seems reasonable to me.
Local testing doesn't tend to work outside the small scale. Even if you use containers for everything you'll run into edges where a local development machine can't accurately test a production-like environment. Deploying to production without testing in that environment is just tragedy waiting to happen.

Distributed signing of artifacts is only effective if you've got fully reproducible builds. If you don't, because almost no one does because it is a huge effort, then all you have is attestation. If a broken/malicious artifact gets deployed the damage gets done and you only know who to blame afterwards.

Local tests are useful for not knowingly committing broken code insofar as your tests can determine. Outside of that a full test suite run by a beefy cluster with ready access to assets and network resources is better suited to test for deployment.
When I was a kid, all elevators had an elevator operators. You entered, he closed an outer gate on the hole in the wall and then an inner gate. He then asked you the floor. He then pulled a cable that moved the car up/down, and stopped at your floor - often jockeying a little up/down to level the floor within ~~ an inch.
Then came push button elevators with automatic levelling and inner/outer door operation. So you push the button, elevator comes/door opens and you enter and the operator ask you what floor - WTF?. Yes, the operators union in cahoots with elevator installers unions saw the writing on the wall. Buildings were shorter, but few wanted to trudge up/down 10-20 floors. Deliveries carried as most freight elevators worked the old way. These strikes for an un-needed job went on for a while and landlords often gave in and wages went to 5 times the prior wage as you were over a barrel and your pants were down, and in the overall rent of space = small potatoes.
Eventually it became so egregious that new buildings who never had operators were able to get pickets limited for places that never had a union to 2 information pickets who could not block access at all.
Bear in mind these were safety elevators, with dual safety brakes so the doom and gloom of elevators full of screaming people falling 20+ floors that were featured by the info pickets. The walking public saw it as BS and ignored them and in time they went away.
We can easily have fully automatic subway trains. All you need are doors on the platform side to mate with doors on the car side and a controlled set of rails and you could do it. In fact many airport monorails do this now.
So, safe robot cars? This may be technically possible now - if you have zero people operated cars who can screw it all up. I have never been on Munk's Boring system in Las Vegas. A video that uses a car and driver is on youtube. https://www.youtube.com/watch?v=djfYafWFWtk&ab_channel=CNET
This needs to be changen to 10-12 passenger trollies - in time driverless, Tesla should make these trolley as there is a HUGE market for them in controlled right of way.
As we sit random mixed human/robo are prey to erratic humans. An asphalt path on a route like the BART (Bay Area Rapid Transit) is good as long as thuggery was dealt with. Any system will fail if wild humans can screw it up - we see wild humans (AKA homeless) in many cities. This is a complex drug/crime linked 'wild' system that has resisted control. It costs too much in wages to have paid drivers for the masses - they can not afford what the wealthy can.
It’s amazingly fast, cant recommend it enough.
Engineers create world’s first carbon-neutral cement out of algae
Where did you get that information?
It shows on the docs how to decode ‘a: null’ with the schema so I’m missing the part where you can’t use null.
An interesting take on progress. Still, I remember hand tuning config.sys and autoexec.bat to get games to run. Actions that, while they wouldn't affect the other files on the computer, could still result in a computer that would not boot.
As TFA notes:

There will always be reasons to build native applications. It's quicker to innovate platform APIs when you don’t have to go through standardization and browser implementation. Exposing new "bedrock" APIs can be done more quickly. As Jeremy aptly summed up, "The price we pay for that incredible cross-platform reach is that features on the web will always be lagging behind."
Initial analysis of the Starlink router gen2
There are some insights/comparisons in speed and memory usage in the Frida 14.0 [0] release notes, when they switched from Duktape to QuickJS. Overall, QuickJS seems to be slightly more performant and requires about a fifth of the memory usage for the runtime.

[0]: https://frida.re/news/2020/10/28/frida-14-0-released/
What does enforcement of law look like to you? As in, how do we concretely deploy police resources and use them to improve public welfare?

Is the answer basically "officers only use force against individuals who are actively committing violence against them at that same very moment and otherwise just exist and don't engage with any particular person more or less than any other"?
CGNAT itself is a enormous risk. It's WAAAAAAAAAAAAAAY more complex and unstable than v6.
FOMO?
1. Hackers: Heroes of the computer revolution.

2. Kernighan & Ritchie C (I learn/interpret either something new about C or marvel the art of precise writing)

3. Harry Potter series
Aphelion 2022: Earth will be farthest from the sun on the Fourth of July
Those metals are very stable and usually don’t take part in reactions as reactants, and are usually catalysts, as you already mentioned. Meaning, they let the reactants form intermediates that wouldn’t form without the catalyst. Eg by donating an electron that is given back when the reaction is complete.

If the catalyst were not stable, it would become a reactant and be consumed quickly.
Is adding an OH to CH4 energetically equivalent for each successive OH added? Or at least close enough for the difference not to matter?
I don't think that's what OP is saying. To me, it reads like, "I'd love to know what this is, but based on the linked document and others within near proximity - I can't" which means the link requires that OP has knowledge of the frontend build world - which I will tell you is niche and disparate or that there is a big unsaid problem in this space that is non-obvious to anyone outside of it.

Curiously, both are true. Give OP some slack.
Credit needs to be easier for small business formation, not sneakers. This is predatory lending through and through dresses up as I don’t know what but it preys on the people with the least financial literacy.
Bourbaki
Not necessarily bankrupt but at a point where they’d have to cut their losses by losing staff. But company B was going to be fully bankrupt before 6 months without company A stepping in.

Companies make these decisions all the time, particularly in industries whose products are hit driven and then tail off.
Your intuition that it's not that complicated is correct. For example,

""Breathing in long, he discerns, 'I am breathing in long'; or breathing out long, he discerns, 'I am breathing out long.' Or breathing in short, he discerns, 'I am breathing in short'; or breathing out short, he discerns, 'I am breathing out short.' "

https://accesstoinsight.org/tipitaka/mn/mn.010.than.html

Do you do that already with every breath? Great!

I think you are saying you are naturally aware of everything your body does and thinks as it is happening. You use your "third eye", the eye in your brain that looks at yourself as you do what you do, noting everything that is happening. Your mind doesn't attach to what it sees or thinks, but remains ready at all times to notice the next thought, the next breath, the next footstep in the present as it is happening.

Am I understanding what you're saying correctly?
The app works great for getting you to an intermediate level, which is all it claims to do.
I've switched between IPv4 and IPv6 and Google's search results are practically equally bad after switching between either. Unless you're behind CGNAT, I suppose.

I've noticed that many IPv6 address blocks have more up to date location information from parties like Maxmind.
I just use esbuild. If your use case is simple enough, it’s totally fine.
Worse is when the examples throw out some of the parameters or returned variables! Like a Python function that returns a tuple should never have an underscore in documentation.
Self driving cars and trucks are inefficient and much more can be achieved with public transportation like trains, trams, buses, etc.

The inherent problem is that these are marketing gimmicks permitted by our current technological development, but it doesn't mean they are useful. All the questions this technology poses are solved in one sweep with effective and comfortable public transportation.
> So far, not a single user mentioned IPv6.

That's because they don't know your website exists.
We use microsoft TTS, was trying to figure out if they can give time ranges for beeping out words.. didn't see it. Holy grail would be just generating audio files to listen to, no front end at all. :)
I'd be keen to hear from philosophers who actually think about this stuff for a living, but, at a gut level, it seems to me that privacy is not equally good across all information sharing situations.

Or maybe a better way to say it: a lack of privacy is not equally bad across all information sharing situations.

> It’s a losing battle…

In the fullest generality, this is probably true. But that doesn't mean there are not particular domains, particular communities, particular situations, in which insisting upon privacy protections is not the right thing to do.

Now, I can already hear folks chiming in about network effects: how am I going to talk privately with community X if community X is already using Goobook? And I agree: this is why the trend is a losing battle.

In kevq's scenario, _maybe_ in the case of a table tennis league private communications are not terribly important (not my call). Maybe it _is_ a little more important that the local community group uses something private, but still not gravely important - but perhaps worth bringing up to that community. Maybe enough people will agree with you, maybe not. But if you stick with the community, even under the surveillance of facebook, then maybe by next year even more people will agree with you. And maybe the year after that people will feel right about switching.

These processes of engagement are important, but changing people's minds, and helping folks to see the value of privacy, for the individual as well as for society at large, is a long slow process. But the more credit you have in a group, the more people will take your arguments and concerns seriously. So, if kevq reads these comments, just stick with it and don't expect folks to change overnight. (I'm sure you don't)

Same goes for the rest of you who feel frustrated. Just remember to pick your priorities (some privacy scenarios are more important than others), and try not to think of it as a fight with those around you. It is a fight with FB, Google, etc, not with your friends and neighbors.
Wow, two and a half years without missing a day is impressive. Kudos to you for having that rigor, and to Duolingo for whatever about their design allowed you to engage so consistently.

Do you have a sense of what kept you going? And what about Duolingo helped?
China attack not imminent, but US watching closely, says Gen Milley
Perhaps you should speak to a disinterested lawyer not connected to the case with relevant expertise. If you can't find one through Google I believe you can contact the state bar and asked to be referred.

When talking to the other lawyer make it clear you want to hire him for a consult or for advice, that you want to lay out what's happening now, have him do some research, and get back to you with an opinion. Ask how much it will cost and, if reasonable, do that.
It doesnt really matter how much they pay for cloud as long as its less than what they get from Google for the image spam/pollution.
Underground dining
I have a substantial spreadsheet (20+ sheets) that tracks all my financial life: net worth over time, expenses, taxable lots positions and loss harvesting opportunities, RSU vesting, investment returns, projected passive income and 1040 tax approximations, ideal portfolio allocations and rebalance thresholds, taxable equivalent yields for municipal bonds, safe withdrawal rates approximations, buy vs rent calculations under different tax regimes and interest rates, …

I built that incrementally over 10+ years out of necessity. No other tool I ever tried (Mint, Personal Capital, ...) has been as reliable, flexible, transparent and thorough.

I currently keep it manually updated once every month or two (and clearly use formulas such as GOOGLEFINANCE() as much as possible), it takes about 10mins to iterate over all the sheets and align them with the transactions of my various bank/brokerage accounts, so I can get the latest snapshot of my finances, and once a year I do a more thorough check to make sure nothing is missed and all numbers match to the penny. I find that time investment extremely well worth it. In a weird way, knowing that I'll have to eventually manually report any transaction on my sheet serves as a deterrent to not generate too much activity on my brokerage accounts, which is almost always better than the alternatives :-)

One day I might decide to convert it to a little SaaS and see if anyone would pay money for it. Probably not but it would be a fun exercise so I could add automatic scraping of bank/financial accounts.
I guess I should have been more clear, as I'm not talking about microservices, but an architecture I implemented before that hype.

It was to partition the app into at least the primary segments that did different functions and had different behaviors, system resource load profiles, etc., and then mandate that those all run on separate machines (this was before everything was cloud-based), and that the relationship to entities was not 1:1. Defined clean interfaces up front. The primary goal was to be able to scale very rapidly for any big customer and/or upon discovering a scalability issue by temporarily throwing hardware at the problem, and secondarily to allow teams to rev different portions of the system on different schedules.

Both worked great, and it wasn't long before we were taking major customers away from competitors because they had scalability issues and we didn't. I'm in R&D and manufacturing now, but see no reason that this approach of fundamental modularity should not be relevant. Heck, I find high modularity to be a good approach relevant to designing industrial processes, or just setting up a shop... just keep everybody's fingers in their own pies, make the organization implement the best architecture, not make your architecture implement your org chart.
I mean, I can’t see any market value or practical use for magical rings that change colours and play sounds.
> A little surprised that a new ISP created in 2021 wouldn't have IPv6 support as one of their launch features.

Worse, they had it and turned it off at some point!
Did you double check the math?
People who've learned a Lisp family language offer our hopes and prayers that people using these configuration languages don't miss a comma, space, newline, or optional quote. :)

((name "Ford Prefect")
(age 42)
(possessions "Towel"))

(:name "Ford Prefect"
:age 42
:possessions ("Towel"))

(countries "GB" "IE" "FR" "DE" "NO")

(countries gb ie fr de no) ; if country codes are identifiers in a DSL

((first-name "Christopher")
(surname "Null"))

(:first-name "Christopher"
:surname "Null")
OK, I misunderstood there. Running the code, which generates 15 images, on a standard GPU Colab environment takes about 2 minutes. It may be possible to submit a single batch of text summaries to the DALL-E mini model, which would improve performance a good deal.
You're incorrect. Other car safety systems do in fact do that as well, where they'll analyze object momentum towards the vehicle.

Some high end cars even adjust their suspension and body angle to minimize damage https://youtu.be/1ZSinXkJBMU
Nice post, but I believe that function g (with the infinite loop) is UB in C++, as it’s required that infinite loops that never break must have side-effects.
If you start on a day, time it until you stop and count it for both days. What's the downside of someone starting at 11:59 and reading 6 minutes to game it?

Also, days are like 48 hours long from the first timezone to the last timezone.
Thanks for the feedback!

The 3Ps model comes from Gilmore's 1991 book Manhood in the Making: Cultural Concepts of Masculinity. It's a dense read and very well researched. The 3Ps comes out of the studies on male honor and that culture and how they are all linked together. Very few societies do not have male honor cultures. And yes, not all males participate in their honor culture, but as a consequence they are not considered 'real men' in their culture. The culture of men in Texas very much has the 3Ps defining a 'real man'.

https://www.amazon.com/Manhood-Making-Cultural-Concepts-Masc...

As for asking OP to change, welp, yeah. I mean, she's literally asking HN what she needs to change to get a man to settle with her.

I don't see why they would be abusive at all. The Protector role is the literal opposite of that. A 'real man' protects his family and loved ones, he does not harm them. This is in part why wife-beaters and child abusers are so reviled in the culture and courts of Texas.

Hopefully the book will be a good summer read for you. Thanks again!
The 1917 edition of Encyclopedia Brittanica.
Microsoft gives partners power to change privs on customer systems without perm
I've been searching for weather apps on Android since Apple acquired DarkSky, and eventually settled on Yr. Would recommend them.
If you're interested in answering the question "How, from their peak at around 1870, did this insanely wealthy and powerful group come to lose so much of their wealth and power over the next fifty years", I recommend _The Decline and Fall of the British Aristocracy_ by David Cannadine. Personally, I find the book's explanation more compelling than the "the London Season was cancelled for three years so rich people stopped marrying each other" explanation.
Hard to get a feel for if that will ever land.
Whether the project is FOSS or not is irrelevant. They're seeking distribution and in order to further distribute a project needs to be able to cleanly communicate why it deserves more distribution. Ironically, based on your comment, FOSS products are generally very good at this. What OP provided was criticism, and FOSS needs and welcomes criticism to stay strong and relevant. If OP was opening a GitHub issue and berating the maintainers I would agree with you.

tldr: "They don't get paid" is not an escape hatch for genuine, level-headed criticism, and criticism is important for FOSS to stay strong and relevant.
Fuck the internet in its' current state indeed.
If you preferred Dark Sky before then what do you have against WeatherKit? Isn't it basically a repackaged Dark Sky for half the price?