skysight-inc/HackerNews huggingface dataset:
> Have you seen the amount of subsidies that exist for Ag?

Yeah, you're right. I think agriculture historically (and in many nations) has been one of the more powerful special-interest groups and has gotten lots of legislation passed on their behalf. As Catch-22 has it:

His specialty was alfalfa, and he made a good thing out of not growing any. The government paid him well for every bushel of alfalfa he did not grow. The more alfalfa he did not grow, the more money the government gave him, and he spent every penny he didn’t earn on new land to increase the amount of alfalfa he did not produce. Major Major’s father worked without rest at not growing alfalfa. On long winter evenings he remained indoors and did not mend harness, and he sprang out of bed at the crack of noon every day just to make certain that the chores would not be done. He invested in land wisely and soon was not growing more alfalfa than any other man in the county.

Still, in spite of the distortions to the market, my impression is that it's still a functioning market, the barriers to entry are not very high, there's sufficient competition, and we are not in any danger of shortages. (Finding healthy food at a decent price may be another matter...)
You can absolutely cause a pointer to dangle without heap allocation. Pointers can point to the stack too. You also have stuff like iterator invalidation, which is sort of a special case of a dangling pointer.
It can, sure, but having coding conventions is essential, which those frameworks/linters help to enforce.

But we've been doing projects with millions of pages way before React :)

Checkout Wikipedia, which, by the way, uses jQuery, of course. And PHP.

>Also, what‘s bad about typescript?

It tries to turn the very dynamic JavaScript into something it will never be and no amount of contortion can hide it. Unless it stops being a superset of JavaScript in the future, but I don't see that coming.
long list = bad

never heard of it = bad

can't pronounce it = bad

thinking = brain hurt
You can’t be banned or have your posts deleted. Thats absolute free speech.
The outcome sounds more of a learned response to risk vs reward when compared to that seen in humans.
I suddenly crave an apple.
Ok? I think all the large cities should do this. If there is a huge influx then so be it. At least my region has plenty of money and space.
It's very interesting to see that the veganism debate will be settled not by anyone actually winning the argument, but by innovation once again obviating an unnecessary debate.

Humans can fundamentally do anything! Dream big.
Any idea how much storage it has? I would think it'd have to be TBs to store all these images, logs, and other data for years while making sure they have enough memory so that they're not limited and if the rover stays there for longer than intended.
Steve Jobs leased a new car every 6 months for decades, wonder if it harmed his health/was linked to his cancer at all: https://www.autoweek.com/car-life/but-wait-theres-more/a1704...
What's difficult about it?
Show HN: A C++ Trainable DCNN Library for Semantic Segmentation
> “we still need to farm grains for feed, more than we would have to otherwise. Reducing animal agriculture will have a positive impact on wildlife, reducing deforestation, etc.”

Uh, where do you think Vegan friendly foods are grown? Do you realize that the earth must be cultivated to grow the vast majority of these foods? Do you think farmers of these foods take kindly to crop damage from wild animals?

Beef cattle do not require farmed grain, in fact many graze only beef farms exist and the practice continues to gain popularity.

I respect your choice to be Vegan, please respect my choice to reject lab grown goop.
Dependabot doesn’t work well for a Fortune 50 company or any company with a large micro services pattern because app sec teams are small. It’s really hard to provide oversight or even counsel a development team if you have no centralized view into whats happening across your organization. That’s one problem but there are others like not keeping updated to the latest versions of languages and frameworks.

Snyk like most security tools lacks perspective that takes business and how product teams work into consideration. I’ve heard good things about their container security tools but their appsec stuff doesnt appear to be worth it (they demoed for us recently). We don’t need yet another tool that offers up vulns in isolation of business context. A high vulnerability is not high if compensating controls and application value aren’t considered. That’s great your tool can be yet something else that bugs my devs come deploy time. Want to be worth it? Snyk should focus on moving security left into sprint planning. If not, then they are fundamentally selling the same tools as Veracode and Synopsys.
I would love to be able to search math and scientific literature. Do you all support LaTex?
I don't think that's the cause. The reason developers only build luxury housing is because:

1. Land zoned for more than a single-family home or just a few units is relatively scarce and thus expensive.

2. The planning process is ridiculously long, which means:

2a) They need to pay property taxes on the unimproved land for much longer without any income, and

2b) Investors expect a certain % return per year, so a longer amount of time between the investment and sale means you need higher prices.

3. Nearly every development project faces lawsuits from NIMBYs, and lawyers are expensive.

Remove rent control and we'd still have the same situation with new development.
I don't know how fancy these optimizations are, but it is optimized.

* Tris are sorted by whether they are static (level geometry) or dynamic (moving platforms). So only dynamic tris need to be reinitialized every frame.

* Tris are further sorted into which cells they touch. A cell is a spatial partition of a level. So collision detection only needs to check against tris in your current cell.

* Tris are further sorted into walls, floors, and ceilings (depending on their normal). The find_wall_collisions, find_floor_collisions, etc. functions are each optimized for that particular kind of tri.

* Tris extend their hitbox along a coordinate axis (the up axis for floors/ceilings, the one closest to their normal for walls), instead of along the normal itself. This is cheaper to test, since you can just project down along that axis and it becomes a point-in-tri test in 2D.
One of the obvious constraints is that for science reasons they transmit each image in a lossless format, so we're up against the limits of what a lossless image compressor can do.

If there were a future mission's requirement to send back lossy images first, and CPU power was significant, something like AVIF or JPEG-XL would likely be a candidate.

https://netflixtechblog.com/avif-for-next-generation-image-c...

ICER appears to be what they're using now for lossless: https://en.wikipedia.org/wiki/ICER
Naively, I'd doubt that. There are all kinds of error correcting codes to deal with that and you'd end up with a substantial increase in effective bandwidth (with the compression). There may be error correction built in to the protocol itself already.
> I can only imagine NFTs would go over

The recent thread about Nyan Cat's NFT sale is an indicator: https://news.ycombinator.com/item?id=26196027

From the comments: "The comments in this thread resemble comments dismissing BTC in 2011/2012"

Welp, you were right!
Debut of X (1984)
It's the coconut oil. Coconut oil smells terrible when cooked, like burning rust.
SerenityOS Whole System Profiling
It's not merely that.

That for-loops work by assignment rather than creating a new scope, or that if-conditions do not create a new scope for their arms is most unusual.

Not only does it not teach programmers to properly reason about scope, but it results into subtle bugs that are easy to miss. Consider the following:

list = []
for x in iterator:
list.append(lambda y: some_code_that_closes_over(x))

This almost certainly does not behave as the programmer intended, for the for-loop does not create a new scope, so all iterations of the loop share the same scope, and thus every closure that closes over `x` handles the same `x`, which will have the value that `x` had at the last loop, thus effectively mutating the closure after appending it to the list, so that the list will only contain effectively identical closures.

The proper way do it is by using the fact that functions do create a scope:

list = []
def loop_function(x):
list.append(lambda y: some_code_that_coses_over(x))
for x in iterator:
loop_function(x)

Certainly code that looks quite hackey to work around the lack of normal, expected block scoping.
He's literally the CTO. The buck stops with him. If the procedure's a mess, guess whose fault it is?
> So, where the structure of regular crystals repeats in space, in time crystals it repeats in space and time.

Does that mean anything that behaves like a wave is a form of time crystal? For example ocean currents moving in unison causes all atoms in that wave to follow a very specific pattern similar to what is described in the article.
Nuggets are debatable. McD's burger patties are just beef and salt though.
International Womens Day, 2021
Brian Acton and Jan Koum weren’t exceptions either. WhatsApp had some hilariously bad vulnerabilities. Like no authentication on their APIs and trusting the client.

https://www.mathyvanhoef.com/2012/05/whatsapp-considered-ins...

https://www.mathyvanhoef.com/2012/07/whatsapp-follow-up-unau...
This is what I don't understand about companies planting trees to offset their fossil fuel CO2. Our problems are heavily caused by carbon being dug out of the ground and released. A tree just means that the carbon will be released at a later date
That link is old. There are similar measurements for modern devices available on many review websites. This link does identify the correct metric that people seem to respond to when they feel a phone is "faster".
Only if you bury it in toppings.
Show HN: I created a search engine
I have written a search engine that works just like google but 100x safer and with no trackers, right now my database has over 3,238,313 rows of data yet is under 1/2 of a GB. It is under construction at https://sturtz.cf it is written in PHP and MySQL. I wrote it to get my family off of Google and never thought it would go any where ever. But I working at it and here I am, growing by over 1 million links a day. You can find the Source at https://git.sturtz.cf Thank you for reading this. :)
The Crawler works but finding the URL with: (https://git.sturtz.cf/Sturtz_Network/sturtz-search-public/sr...)

if (mbsubstr($element->href, 0, 2) == "//") {
$element->href = $urlparts['scheme'].":".$element->href;
}
if (mbsubstr($element->href, 0, 1) == "/") {
$element->href = $base_url.$element->href;
}
if (mbsubstr($element->href, 0, 2) == "./") {
$element->href = substr($element->href, 2);
}
if (mbsubstr($element->href, 0, 5) != "http:"
&& mbsubstr($element->href, 0, 6) != "https:"
) {
$element->href = $base_url.$url_path.$element->href;
}

which looks for the href tag and will send the spider there to crawl it
then it puts it into the database by some INSERT SQL commands: (https://git.sturtz.cf/Sturtz_Network/sturtz-search-public/sr...)

if ($md5sum == '') {
$stmt = $db->prepare(
"INSERT INTO `".$mysql_table_prefix
."links` (site_id, url, title, description, fulltxt, "
."indexdate, size, md5sum, level) VALUES ( ? , ? , ? ,"
." ? , ? , CURDATE(), ? , ? , ? )"
);
You can find a working version at https://sturtz.cf
Im Back with Another Banger
India promises Tesla lowest production costs to relocate
I want to see that little helicopter fly! I scoured the site and as yet can't find any images of it, when I thought they were going to take mutual selfies -- heli of the rover and vice versa.
Compression can also include backup/padding/parity data to correct for errors and transmission losses.
> combined with no tolerance for bad behavior

People are terminated for a single hot-under-the-collar comment?
Wouldn't it be great if there was a proof of work mechanism that took time, but very little energy?

I think there will be a low power processor that can perform unique instructions that are expensive to simulate on CPUs and GPUs, but is amenable to hashing, and is not too expensive to buy. My guess is something neuromorphic.

The first mWpowcoin could then be born.

I do see a downside that people will have to buy a special chip that has little general utility, but from the rise of ASICs that must be ok.

I know proof of stake exists, but clearly it isn't as popular. People like mining?
Trust No One: Joe McCarthy and the Politics of Fear – Blog
Why would it need to continue to store things after successful receipt on Earth?
Having direct control over this type of thing is important when updating the fields of a persistent data structure. I've had to deal with mistake before, where the original developer thought the layout matched what they specified, but the actual layout that got persisted didn't match. For compatibility, the broken layout stuck around forever, and special rules were required to detect this.
I admire your efforts to clean. But unfortunately it’s pointless. There are entire million and billion population countries that treat oceans as waste baskets, simply because they don’t know better.

I’ve talked to fishermen in rural Thailand and they don’t have waste collection. So they take their trash every day and just dump it in the middle of the ocean somewhere. They didn’t understand why that was a problem when I discussed it with them.
It’s easy to be armchair sql injection expert and point fingers.

I can guarantee that any system that you’ve worked on has numerous OWASP security bugs. You’ve probably looked at the bugs countless times and never noticed it.

Every software engineer of all levels has overlooked obvious sql injection bugs in their code base. Most likely you’ve added to the bug list.

Software bugs are simple part of any development effort. All major companies, Microsoft, Google, Facebook, etc. has very simple bugs like this in their systems.

That’s why they pay out bug bounties, it’s cheaper for them to add the bug and have some random security researcher find the bugs for them.
National Guard at Capitol hospitalized: metal shavings, feathers found in meals
Japanese billionaire seeks 8 volunteers for SpaceX flight around the moon
Well gee, in this framework it seems like there is no way for anyone to ever be negligent or liable for anything they do, no matter how ill-considered.
Hah! Too great. Ok, so no good code in startups.
Every time the discussion of time crystal comes up, a simple analogy can explain what it is.

Regular crystal has repeatable structure in space, i.e. its lattice is the same shape over and over again across in space.

Time crystal is the kind of material that has repeatable structure across time, at the lowest energy state. It just means it changes its shape periodically over time.

An example of that is quartz crystal vibration where its structure bends and unbends over time. Quartz bending and unbending (vibration) is due to the piezoelectric effect when an external electric force is applied. The external force requirement disqualifies it as a time crystal.

The "at the lowest energy state" requirement means time crystal can "vibrate" by itself without external force applied. "Vibrate" is used loosely here. It could be the nuclear-spin flipped periodically, or some other structural changes that need no outside influence.
cars will actually work without tarmac. I tried explaining this to a guy with a merc g wagen and he also didn't believe me.
Network marketing industry – The 2020 Story
server-side blazor does similar.
The only solution is the spread of information and education. That's the only thing that will help. We must reach all people and present them with the evidence on environmental degradation. The planet is ours to protect and cherish, and I'm confident this is an achievable goal if we act fast. By advocating for access to internet and education at global scale! Starting with our homes.
This is a video presenting ten milestone images that revealed what we've learned about Mars after decades of exploration prior to the landing of Perseverance [1]. It's nice to see the evolution of image resolutions of the Red Planet.

[1]https://www.youtube.com/watch?v=e1eFMzO3iPc
esbuild is a "bundler" and can replace webpack/rollup, but you still need to use yarn/npm to install all dependencies exactly the same as you do now. If your concern is primarily security-driven, esbuild is not to the topic. This applies to all other bundlers like Snowpack and Vite etc.

As for migrating to Deno: you probably will not be able to do this because most NPM packages will not run in Deno out of the box. Your build pipeline almost certainly relies on libraries like gulp/sass/globby, and those projects will need to be ported first (or made compatible by their authors).
Any interesting books worth checking out? Does anyone have recommendations?
I must be vague, but my friend works at a fast food chain's corporate office and said that their strategy team was the one pushing for alternative meats for supply chain alternatives more than dietary preferences.
Microsoft Fixes Exchange Server Zero-Days Exploited in Active Attacks
The Australian system is using the land in that way because the land isn't good for much else. If Australia wasn't largely arid or desert then I suspect we'd have a far higher population and much intensive land use.
Email is Good – A site about email productivity
Personally, I don't understand why they need to call it meat or vegetarian butcher while it isn't. I understand it's accepted by the EU courts but it feels odd.

I typically order my vegan meals/recipes from Riverford (https://www.riverford.co.uk) and Abel and Cole which are nice but I do think I need to swap it out occasionally with some vegetarian meals. I do think they could have some more mashes in their recipe collection
Any good desktop wallpapers out of this?
How so? (Did you write it?)
Right, but the point is that either Gab had normal, reasonable safeguards in place (for the reasons you point out) and their CTO bypassed them creating a very serious security hole, or they didn’t have the safeguards in the first place meaning their internal processes are poorly set up and controlled.

What’s important here is that the CTO is ultimately responsible for the failure either way. That’s the point of the article and it’s why the article is valid (even if you don’t like it for some reason): the engineering buck stops at the CTO, especially so if they personally create a bug that exfiltrates all of the company user data, regardless of how they managed to screw it up.
My imagination has a pretty big range for 'rural Thailand', do they have a safe way to dispose of it inland? Subsistence folks, to the extent that it might apply here, get a pass from me.
Proliferate, a Dev Community App for Pair Programming, Debugging, and Questions
I thought the answer would be laser hair removal for rich people like this guy.
The point of keeping the climate stable is to _prevent_ biomass loss.
Do you think JK Rowling was not a real example? Or that she deserved it?
Ask HN: What are you better at now than you imagined yourself to be as a kid?
For me, it's being able to negotiate with people. I was a complete pushover as a kid, and I never thought I'd be a quarter-competent negotiator nowadays.
Yes yes, I know, it’s trite to point out that boondoggle of a project.

Except…NASA apparently spent all of $80 million on a helicopter that will work on Mars. One has to wonder what the military-industrial complex could accomplish with a bit of financial discipline and oversight.
> accusing your opponents of anthropomorphizing because of concern about non-human suffering is a ridiculous response.

No, it's actually incredibly reasonable. Anthropomorphizing is the process of imparting human qualities onto non-human things, like animals. This is literally the exact thing that anyone who says we need to alleviate their suffering by not eating them is doing.

> Finally, one can work to alleviate the suffering of both humans and non-humans

Sure, I am 100% in favour of that, as long as they still end up neatly packaged in a store for a price that everyone can afford. As it stands it's already becoming more expensive than it should be, necessitating further logistics and efficiency improvements.

If it ends up being the case that people who make less money can no longer afford meat, then you've simply moved the suffering from animals onto people, which should elicit serious pushback. After all, we're responsible for the existence of these breeds of animals in agriculturally-significant numbers; in short, we made them. They're ours to eat. Prioritizing the anthropomorphized feelings of animals above the nutrition of the economically marginalized is a typically bourgeois conceit. The poor can just eat cake (or in this case, bugs) instead, right?
https://www.nytimes.com/by/donald-g-mcneil-jr

It's not that he's a right wing hero, it's more that his firing is ammunition against The New York Times.
https://en.m.wikipedia.org/wiki/Mechanically_separated_meat

“Meat”
Both of the suggestions lead to overly brief and harder to read one liners, imo.

Explicit if [].. is more readable.

Chaining commands with && is better just accomplished by running `set -e` which you should be doing at the start of your script anyway.

And of course both of these are getting pretty close to the "if you have to Google what this bash syntax does, just write your script in Python" rule.
I actually think this is a legitimate concern. Here's my rationalization: Plants probably don't have a sense of individuality. Personally, I wouldn't care about eating parts of an animal that grew back (like eggs or milk). Plants seem to be no different.
Thanks for the detail explanation. Good to know different platforms have different approach to it.
Yeah most management books (See: Radical Candor) say that executive’s should own up to their mistakes publicly and receive public criticism so that it makes it easier for subordinates to give criticism and even receive it themselves privately.

On another note, how do we know that the new CTO of Gab didn’t just do this on purpose so that there would be a breach?
It doesn’t say anything like that. I guess you missed the part about him being a facebook employee. Go ahead, say facebook hires low quality engineers...
Do you find it strange that an article about methane does not mention what percentage of the greenhouse gas effect that methane accounts for? I'd ask everyone to read this article, write down what percentage you think methane accounts for and then read the wikipedia page on greenhouse gasses.

This is to say nothing other than that more nuance is needed when discussing the environment. It is important to reduce our emissions.

https://en.wikipedia.org/wiki/Greenhouse_effect#Greenhouse_g...
https://en.wikipedia.org/wiki/Methane_emissions#List_of_emis...
I'll say this clearly: Assembly AI is the hands down best speech to text transcription service on price, quality, speed and support. Hands down. It more than pays for itself time and time again.

If we were free, then I might have this concern, but our average customer value is far beyond the cost to transcribe.

Actually this is insanely cheap, especially given how much they are regularly improving. Amazon costs over $1.25, RevAI costs over $2/hour, and Google Speech to Text is over $2.15/hour.

We have a shared Slack channel with their team and I can't convey how incredible they have been. Literally the moment we have a question, we get instant responses.

Also our users will not poor transcripts. Every word that needs correcting is time/money lost for them, so our goal is to give them the highest quality transcripts.

We want to focus on our key value prop. Transcription is not one of them. We focus on user experience, design options, and speed.
Microsoft Power Fx – A low-code general purpose programming language
slightly more HD version: https://pbs.twimg.com/media/CBPMy1DUMAAgvRP.jpg