skysight-inc/HackerNews huggingface dataset:
I personally would want code like this flagged by static analysis. I would fix the code by not calling free in the second 'if' body if needfree was already false (just like the call at the end of the function is guarded).
I'm not against replacing old systems, but this has to happen in incremental steps.

This way, if an implementation path doesn't worth the effort, just drop it and don't spend dozens of months with a full rewrite and realizing that you are spending a week to implement a CRUD for a simple entity. It's even worse when devs are new to the project and have no knowledge of the domain; I've been burned by this, never again.

At the end of the day, we are not in the research field, we are payed to fix business problems, to deliver something that brings a business value. Yeah, it's nice to write some really complex software that would make the system a lot more optimized, but we have to deliver it before our bosses are getting tired of excuses and pull the plug. Learned that the hard way.
A disgrace.
I understand what you're saying but in this economic climate (of a massive layoffs) you won't even have to pay a "decent wage".

A deflationary crisis is not supportive of high wages. Not in the least.
A tool like this could be sound but incomplete. E.g. return true, false, or idunno.
The flowers, however, are overrepresented in most satistics of production and export measured by value - there's a world of difference in the harvest value from an acre of wheat and an acre of roses.
The link to the course is in the article, but I will post it here too: https://www.coursera.org/learn/the-science-of-well-being .
> Hopefully this may incentivize people to be a bit more self-sufficient

This has nothing to do with "people". Securing the food supply is a matter of national security, which is why such a shortage of labour should have never been allowed to even happen. The correct way to go about this would have been subsidized pay for local farmhands, a directive that a given / high percentage of food crop must be preserved at any cost and regulation that subsidies that already go to agriculture do not go into profits but actually trickle down.
I think at this point it's clear that either China was quite successful in stopping the spread, relative to some other countries, or there is/was a huge coverup. If you assume that the latter is too paranoid, and acknowledge that they have a head start on learning how to handle things, then it seems like you can't expect other "experts" to be on an equal footing.

That of course doesn't mean the specific source I read was accurate. But I think people are prejudiced in the US and maybe other western countries in thinking that we're automatically just as competent as people with extra weeks of experience, who apparently did what we are unable to do.

It's terrifying to me when people say, oh, the US only has 5 deaths per million, so we're doing pretty well. As if something went "click" in their brains and the exponential increase in cases and deaths just is going to stop tomorrow. It's not the facts that scare me, it's (what appears to me) the matter of fact delusional outlook.
It takes 1-bit to store the state “nothing” vs “something” — so it’s a question of information content — whether or not it is perceivable information is what we traditionally use to delineate existence vs. non existence.
> it should be opt-in, not opt-out

Sure, it would be nice if no company ever shared data with any other company, but that does not track in this case.

People signing up for an Apple branded Goldman Sachs credit card shouldn't be surprised or affronted by the fact Goldman Sachs gets anonymised data from Apple.

Why the hell anyone would sign up for this crap is beyond me. But it's not a reason to drag Apple into the context of a thread about a company guilty of basic privacy failures -- sending personal data to a 3rd party social network the user has no connection to.

Please also understand what 'anonymised' means, it means _not reversible_ i.e. you _cannot_ tell who the user is.
Let's start with copper doorhandles and bed-frames.

Far better tested and understood.
> You say your compiler accepts all programs which are memory safe, and rejects all that aren't.

It does it by implementing O/B rules, which force changes in the way one writes code. This may sidestep the goldbach conjecture, which I don't understand.
Not sure where it originated but I love this saying:

> In theory, theory and reality are the same.

> In reality, they're different.
Though that was actually during the last crisis like this one (financial crisis of 2008).

https://www.businessinsider.com/teslas-history-of-crisis-201...
It is possible that the compiler simply rejects any definition of a function that has a use after free, which would both uphold the compiler's claim and also not prove or disprove the goldbach conjecture.
Earlier, WHO tested canines to see if they could contract the virus. After extensive quarantine and testing, WHO determined the dogs could not carry the virus and released them back to their owners.

That's right, WHO let the dogs out.

(Downvote as you must. It was worth it.)
Ask HN: Why don't we teach everyone how to code? Now is a great time
We are all in isolation with ample time on our hands. It would make me insanely happy to teach some impoverished youngster how to code. Is there a platform for this? If not why don't we make one? Khan Academy and coursera are not quite the same because there is no teacher.
This is a very "pets" perspective. I'm more of a cattle guy.
Do you know if TL;DR exists in RSS feed form so I can go listen to the old episodes in a podcast player?
Encountered lot of traffic. Was fixed within the hour.
As someone who wears glasses, I can use the optical viewfinder on my Nikon D850 without specs but need my glasses to use liveview, e.g. when shooting video. The D850 lets you set the viewfinder close to the prescription of your glasses.
I can only argue back that the state of AT&T was such that it was such a massively profitable entity that exuded such power in terms of resources that what you are describing would not have been unique to AT&T had a less monopolistic situation arisen. The technologies that AT&T advanced, while notable, are far from impossible to have emerged had other entities had a fair share of the resources that AT&T monopolized.

To say AT&T should not have been broken-up due to its achievements is akin to say that Mussolini should have stayed in power because "he made the trains run on time". Yes, maybe, but at what other, hidden costs?
Duplicate of https://news.ycombinator.com/item?id=22713244 , which is also currently on the front page.
> Surely your software cannot decide that...

The D implementation would reject such code. The DFA assumes all control paths are executed. For example,

if (c) free(p);
*p = 3;

is rejected as use-after-free.

if (c) free(p);
if (!c) *p = 3;

is also rejected as use-after-free. If the DFA is done properly, you will not be able to trick it.
IIRC there's a lot of futures trading in food just because of this issue - so that you can get market equilibrium and price setting done beforehand, not between harvest and delivery as the food is spoiling.
Both siblings name the books that I would most likely to recommend. Also, Steve Call's "The Deal of the Century" and "Telephone: The First Hundred Years," John Brooks. The latter is a 1976 book which was commissioned by AT&T as a corporate history. As a result it is both outdated and paints a rather rosy picture[1], but I think that's part of what makes that book rather interesting - it's sort of AT&T's best version of itself at the peak of its dominance.

[1] for what it's worth, John Brooks engages right in the introduction with the conflict of a history funded by its subjects, and the book was researched and written independently
Overripe fruits don’t sell in Tehran market, but you can do other things with them. So instead of two weeks to pick, you have maybe four, depending on the fruit.
My cat plays with the rats and mice she catches before she kills them to eat. Even then she rarely eats all of the animal. Brains seem to be her preference since she eats the heads and leaves most of the rest on the porch. Some of the small animals she catches escape because she gets bored or distracted when someone comes out the door to see what all the commotion is about.

With that said, you're right, it doesn't make any sense that a rat would live long enough to catch anything in an encounter with a cat.
There is no sense in comparing per-capita deaths this early in the pandemic, especially when the spread of the virus in the US trails a few weeks behind that in Europe. Talk to me in a few months. Furthermore, per-capita figures are meaningless when comparing areas of substantially different population size and density (e.g. Austria, Switzerland) to the US. _I_ do not see how a "rational and objective analysis" like yours can ignore these basic mitigating factors when making such comparisons.
The World’s Largest Artwork
Chattanooga’s municipally-owned telecoms provider (EPB) is charging $57.99 for 300mbs [0], while I get 500mbs for $39.99 in my area from a non-city owned company [1]

[0] https://epb.com/home-store/internet
[1] https://frontier.com/offer/experiencefios-c
> This is why D uses DFA to catch 100% of the positives with 0% negatives.

For example if we have a graph data structure and we are visiting it and freeing nodes, how can your static analysis know that nodes will not be visited twice by my logic and freed twice?
Woofff..wof..wooof
I found that one pretty compelling to listen to, although it didn’t have the significance of their investigative pieces.
They disassemble, the atoms find lower energy states.
You might want it flagged-- I would--, but it would still be a false positive if it did so (assuming the constants didn't result in a double-free). :)
> the goldbach conjecture, which I don't understand

Clearly.
Among other things, it offends me that this runs in a preinstall script.
This is a fair counterpoint, as there may indeed have been a contraction in Serif’s ambitions for the product. But there’s ample evience that Affinity Designer has fallen short of Serif’s own expectations: A 2014 post on the official Affinity product forum laid out a public roadmap for the 1.x cycle, including such Illustrator staples as mesh warping, blends, gradient mesh fills, and more. Some of the original roadmap was indeed implemented, such as the critical feature of artboards. But as the originally-promised “two years of free updates” stretched into more than four, the majority went unaddressed.

The thread has since been deleted.
The meme that coal plants emit more radioactivity than nuclear power plants originated with this Scientific American article [1] (linked somewhere else in this thread too). The article has the title "Coal Ash Is More Radioactive Than Nuclear Waste". The comparison is obviously preposterous, nuclear waste is probably trillions of times more radioactive than coal ash. When SA realized the mistake they added an explanation just at the end of the article that states

"As a general clarification, ounce for ounce, coal ash released from a power plant delivers more radiation than nuclear waste shielded via water or dry cask storage." (emphasis mine)

By adding the qualification "shielded" the comparison becomes meaningless. Brazil nuts, bananas, beer, carrot juice and drinking water [2] all release more radiation than shielded nuclear waste.

Nowhere in the SA article they compare coal ash with Chernobyl of Fukushima.

[1] https://www.scientificamerican.com/article/coal-ash-is-more-...

[2] https://www.thoughtco.com/common-naturally-radioactive-foods...
>Your statement contradicts the article

The article itself contradicts the article
CORONA.film: An investigative 90 min. documentary on the coronavirus
Towards an ImageNet Moment for Speech-to-Text
I'm not running out to get any sort of UV lamp now but I am mildly interested in a thing I heard about that works with forced air ducting in a home AC/heating system. Not sure if it would help with allergies.
I thought part two of their post was just going to be another example of the classic beginner dev hubris.

"I'll rewrite it in a week!"
I remember learning that there is not a single famine in history that's not "wo/man-made" even including the little ice age period. In the sense, the resources and material to grow food was always there. It was always either a logistical, economical, or political issue that creates famine. Not sure how true this is since our world population has increased significantly.
Am I the only getting massive CPU Fan spin just visiting the website? On latest MacOS 10.15.4 Safari 13.1
> I noticed that Rust simplified this problem by simplifying the language :-)

That's a bit of an open-ended qualifier. Would you say that is a positive simplification (an increase in elegance) or one that has a trade-off in reducing its expressive power?
While the range of directional trenching is limited, requiring regular access points, the bigger issue is setup. Surveys and tests need to be done to determine if the area is suitable for directional trenching, and it only works well in certain circumstances. It's definitely heavily used in telecom installation but not a panacea.

Microtrenching is extremely simple and fast, but so far I don't know that anyone has nailed durability. Google's Louisville install used microtrenching and was an absolute debacle with the sealant constantly failing and the cables ending up laying on the surface of the pavement. Google ended up shutting down service in Louisville and the cost of repairing the failed microtrenching may have been a big reason why. Certainly get them a lot of bad press and ill will from their customer base.
I would argue that main reason for adaptation of microservices is to actually prolong development time (moar dollars) and make devops as convoluted as possible to safeguard data. Or foolishness.
I was given several options. In some classes, I would be allowed to read fiction or otherwise zone out, but in other classes, I would simply be handed harder and harder versions of the material. I was handed 6th grade math workbooks in 3rd grade, and I was rewarded for good spelling with longer and harder word lists. I think that increasing the challenge, and not just catering to boredom, is an important part of the public-education part of handling the precocious.
Covid-19: How the Pandemic Will End
In-Memory compute would be useful for garbage collection. Compare also with this article: https://people.eecs.berkeley.edu/~krste/papers/maas-isca18-h... (note: one of the article authors is Krste Asanovic, who is on the RISC-V chairman of the board).
The Jedi Packet Trick takes over the Deathstar (2010) [pdf]
Time for led bulbs that also contain uvc light, perhaps with a battery so that you can clean a room after you turn of the light.
The URL doesn’t match the actual URL. This is really just a marketing piece for Cloudflare and I’m not sure why it’s particularly front page worthy. The misleading URL should be changed.

HN Guidelines: “ Please submit the canonical URL.”
Remote: Yes

Technologies: Java, Spring Boot, Python, PHP, HTML, CSS, JavaScript, Web Components, Angular, Jenkins, Docker, MongoDB, MySQL, Elastic Search, Logstash, Kibana, Redis, Apache Kafka, Linux, Apache, Git, JIRA, Confluence.

Resume / CV / Portfolio: available upon request

Email: vaggdan[at]protonmail.com

Since 2014, I am offering custom Mobile, Software, and Web Application development consulting in order to build world-class applications, tailored to your needs, that is built with love.

Would you like to have a chat? Hit me up @ vaggdan[at]protonmail.com
Ready, Fire, Aim by Michael Masterson is a good read. I got this and read through it. Teaches how to prioritise sales over everything else. If You want to listen to his talk;
https://www.youtube.com/watch?v=RvVSVe57gV0

Moral of the story, its way important to start selling even before You write a line of code!. Sounds totally non-intuitive but without actual sales, how will Your MVP be funded.
In this language, there's very few multi-line expressions. However, for your specific case: yes, I would consider that two statements.

1 -
1

would be one: putting a binary operator by itself in one line would cause the parser to keep looking.
Datadog figured it out. It's pretty great. Obviously it doesn't see everything, but it's a very useful signal. Their anomaly correlation is even cooler.
A similar circuit is in every plasma cutter.[1] For the same reason; you need a high voltage pulse to ionize the working gas (usually air) and start the arc.

[1] https://guelphweddingshop.blogspot.com/
No, postfix increment returns an rvalue, so it can’t be applied twice. (jk)
> I recall being told why modern military don't use high calibre rifles anymore (303 or 762): because a lower calibre tends to wound the enemy, which means that 2 or more enemy soldiers are needed to help their comrade out

This is a retroactive justification, and it was never an official one - boot camp stories, more or less.

All it takes to disprove it is to look at the history of M16, since that was the platform that introduced the first small-impulse infantry rifle cartridge, 5.56mm. It was originally developed as the outcome of Project SALVO research, which concluded that two close hits with a small-caliber round are significantly deadlier than a single hit with a (then-standard) large rifle round - and therefore the new weapon should be capable of controlled, accurate burst fire. Then, early M16 tests showed that even a single 5.56 bullet would routinely do more damage than then-standard 7.62 NATO ball ammo, because it would fragment due to higher velocities, producing massive tearing - the early reports are practically gushing about this. In comparison, 7.62 ball, and similar WW2-era rounds, would just produce a straight, narrow wound channel.

The other aspect is logistics. You can make fragmenting 7.62 ammo, after all, and it's deadlier still. But lighter ammo means that soldiers can carry a lot more. And most shots are fired in modern warfare for suppression purposes; all else being equal, the side that can suppress its opponents for longer - and thus outmaneuver them - wins. Thus, more lethal but heavier ammo comes with a considerable overhead.
Framing this on my blog
I believe this messes up the redirect to the paywall but is still a valid URL for the browser
Seems unlikely, the operations would probably just be consolidated with another agribusiness company. "Farmers" are something of an anachronism in most of the agricultural supply chain.
Yet another Prometheus/time-series backend project.

And yet again, it would be far better to just export the data from Prometheus into a distributed columnstore data warehouse like Clickhouse, MemSQL, Vertica (or other alternatives). This gives you fast SQL analysis across massive datasets, real-time updates regardless of ordering, and unlimited metadata, cardinality and overall flexibility.

Prometheus is good at scraping and metrics collection, but it's a terrible storage system.
Here is the URL from Apple’s directory but you can probably also find it somewhere on WNYC’s site.

https://podcasts.apple.com/us/podcast/tldr/id709617583
Are there distros that have these 'fixes' built in? Alpine Linux?
Selected Excerpts:

"PCI-to-PCI transfers are not marshalled by the OS
o PCI-to-PCI between the NIC and the GPU"

[...]

"a PCI card has DMA over the whole RAM
o we can play in memory and the OS shall never know"

[...]

References

"Broadcom firmware development kit: http://www.broadcom.com/products/communications_processors_d... [Not currently online, use Wayback Machine or Google keyword search]

Papers by John Heasman (ACPI, BIOS and PCI rootkits):
http://www.nextgenss.com/research/papers/ [Not currently online, use Wayback Machine or Google keyword search]

Implementing_And_Detecting_A_PCI_Rootkit.pdf
Network Interface Firmware Back Door with Tigon2, eEye Industry Newsletter, 25th April 2007,
http://www.eeye.com/html/resources/newsletters/vice/VI200704... [Not currently online, use Wayback Machine or Google keyword search]

A. Singh, Mac OS X Internals, Addison-Wesley, 2006,
http://osxbook.com/book/bonus/chapter4/efiprogramming/

Rowan Atkinson, “Blackadder”, BBC TV series."

Author's Twitter: https://twitter.com/cynicalsecurity

(My thoughts: Future Hardware/OS Designers should seriously think about these and related issues...)
I mentioned it as another way of solving the problem. Which way you prefer is a matter of professional taste, something I'd really prefer not diverging into in this thread.
Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. You can get a very respectable average speed out of the postal service.

Latency is an oft-neglected metric. You can browse the web on a satellite internet connection with a 200ms ping, but it's anywhere from bad to unusable for a lot of other applications.
Is it the seasonal changes in UV that make flu and similar viruses less transmissible during the summer months? Maybe it has nothing to do with temperature as some have suggested.
As far as I understand, we are talking about flux - per area at specified distance, not luminosity. I did recalculate flux for 0.5 m.
It still takes 4hrs for copper to kill coronavirus. Why not both?
It's been on the road map for at least two and a half years, so that's not very convincing: https://web.archive.org/web/20170708101602/https://prometheu...

Curious to know why you don't think accurate reporting and backfilling aren't related. In my experience, they absolutely are -- mostly during disaster scenarios, where that information is more critical than any other time.
Can someone please explain the context on this?
You're assuming malice over incompetence.

Having heard mainly "nothing but guff" justifications for microservices in non-enormous orgs, I think (as usual, and some law I forget dictates) the latter is more likely.
AT&T can put those under the ground. They are ugly. And they take up already limited sidewalk space in many areas.
Yubikey-style is dead in the water since you can't back them up or exfiltrate the key. It will never appeal to more than a handful of users willing to jump through those hoops.

Just needing to have every hardware key on hand to register with each new service is so bad I thought I was misunderstanding the UI. I never used them again.

The hoops might be worth it for a critical service that holds your $millions. But hardware keys are never going to compete on the 99% of services that people use, from the trivia app on their phone to Uber.
Show HN: Corona Tycoon – a Covid-19 drugwars browser remake
Ok. And if you call into non-D code, like C or assembly?

I think this is just moving potential problem under rug, which is best it can do, given Rice Theorem
You write the software in such a way that instead of just reading and writing registers or memory you exercise some set of functions. In normal operation you pass the driver a set of real functions that read and write real registers. In testing you pass functions that do other things. This makes it quite easy to exercise the features of the hardware that are rarely seen in the wild. For example most IO adapters and NICs have some kind of signal that they are overheating. Most Linux drivers simply ignore or malfunction when these conditions are raised, because the author of the driver never got a chance to manually exercise that feature.

This is basic design for unit testing but it's impossible in Linux because Linux lacks a zero-cost abstraction that would let you mock out a device. C only has costly abstractions such as tables of function pointers.
Yeah, I got a E27 socket wall plug with wireless control. I assume it should be possible to get a remotely controlled lamp with reflector to make a spotlight out of it.
The Power of Data in a Pandemic
Is capturing even a thing in Istanbul? AFAIK they maintain a very friendly relationship between humans and cats.