skysight-inc/HackerNews huggingface dataset:
Great list. It's important to understand when to use each one of these. Identify your bottleneck, through the use of profilers. Execution time is largely based on memory bus blocking I/O and not the CPU calculations, so if you start with writing SIMD, you're not going to get anywhere.

Accessing data on the stack instead of the heap is the #1 saver of execution time, in my experience. But your bottlenecks might be different. Locally scoped value-type variables are generally on the stack. Object-scoped and static fields and properties are on the heap.

Writes to local variables seem to be faster than reads, IIRC.
The fastest operators seem to be the bitwise instructions, IIRC.
If running in 32-bit mode, try to work with 32-bit integers. If running in 64-bit mode, try to work with 64-bit integers.

Here's an example of a major, major improvement in performance

for(int x = 0; x < this.Width; x++)

{

for(int y = 0; y < this.Height; y++) { foo = bar; }

}

Much faster version (due to storing a copy of Width and Height on the stack instead of the heap):

int width = this.Width;

int height = this.Height;

for(int x = 0; x < width; x++)

{

for(int y = 0; y < height; y++) { foo = bar; }

}

My comment here describes roughly the approach I used to take advantage of stack-allocated memory (before Span<T> was available). https://news.ycombinator.com/item?id=15136627
Yeah, me too. It's more than just the comments in this case though.

> Here's a 15yo uncontrolled epidemiological study of acne, that blames everything on diet, go forth and treat your own skin conditions!

The paper is more restrained than that, but that's not how people interpret it. Problem solved. Eat like a Bantu.

Science would use this as bearing for a hypothesis to do an single-factor studies.
That man must be an interesting sample for the research of human physiology.
"turmeric lattes" :)

My kitchen medicine for running nose, soar throat is hot milk with turmeric. Works for me most of the times.
Doing things in your head is like accessing L1 cache and not hitting RAM or disk.
Not too long ago last year, there was a HN submission regarding Australian police bringing down a pedophile forum on the dark web. I made the comment that in the future AI can be used to generate fake inappropriate child pornographic content to lure out the perpetrators, so that the agents don’t have to feel guilty about sharing real abused materials. My comment sparked a number of interesting points and the most memorable one was whether AI-generated child porn will be illegal or not.

But more so is the fake content itself. We have the technology to manipulate lips movement in a video to sync with a script. So we can totally fake a conversation/speech. So can body movements in the future - whole porn video is entirely a work of software.

https://news.ycombinator.com/item?id=15426361
How can working with a startup mentality helps your DevOps career
There is lots of scifi that trys to run with a concept, and runs out of runway. Stranger in a strange land is that kind of thing.

I remember a book - forgot the name about a ressurrection attempt of a dead female CEO with psychology. It really tryied, and failed miserably, as it got stuck in the swampf of pseudo science that is psychology.
A lot of people here on HN agree that Tether is shady. Honest question: If that is so, why is it trading so stably around 1 USDT / USD?
there are tons of potential pitfalls and a combination of
experimental limitations

you provided some, which are at least partially addressed by the study design. (I don't think it's your point, but let me agree that "the scientist can cheat" is always true).

poor academic incentives,

this is addressed because it is double-blind

insufficient statistical and scientific training

this is (partially) addressed by peer review, and the availability of the data. you can't make this general criticism of the paper at hand: find the place where the design or statistics used were in error.

I think it’s bad science, that will one day
retrospectively be viewed as invalid scientific method.

that's a claim without any evidence to back it p.

I think the way to combat this is to avoid studies
that solely attempt to demonstrate an effect, but to
complement that part of an investigation with additional
studies that demonstrate a plausible explanation. This
reduces the risk of false positives and increases our
confidence in the result.

If you have a double-blind, placebo-controlled, randomized clinical trial then what can the mechanism possibly add? Is an effective medication less effective because we don't understand how it works? If you want an amazing example, read about the mechanism of action of general anesthesia: we have many ideas about how it works, but nobody really knows. Nobody gets caught up by this when their appendix ruptures. I hope, for your sake, that you will lower your standards in the event that you need surgery.

The additional studies could take the form (for example)
of deliberately intervening such that the effect should
be manipulated by the intervention in a predictable and
measurable way. Essentially, come at the hypothesis “from
another angle”.

If you have a properly designed and executed randomized, double blind, placebo controlled trial, then you have measured the effect of the intervention, and only the intervention. You can repeat it in order to gain confidence, but you have to decide when the diminishing returns of "more confidence" are not worth your study dollar. And for curcurmin, which is cheap and has low side effects... it's probably not that far away.

edit: fixed formatting
Lots of existing apps, including some that handle payment information, rely on window.opener to provide a seamless experience when using pop-ups or iframes from a different domain.

In an ideal world, these apps would have been rewritten a long time ago using more modern techniques. In reality, browsers bend over backwards to maintain backward compatibility with existing apps.
Implementing conditional conformances alone removed a lot of duplicate code from the standard library. I always like to think that the amount of gyb[^1] files in the source code is a good indicator of how far Swift is in its development.

[1]: gyb, a template processor, is a workaround for features that the standard library needs, but that are not (completely) implemented yet.
I'm very sorry to see this. We need investment in programming language and environments – and right now there is pretty much zero of it. No, new programming concepts and tools will not pay of immediately but in the long term they can be incredible efficiency multipliers, empowering pros to do more work in less time and non-pros to be programming in the first place. As long as no one is interested in funding this kind of research & development we stay where we are today.
What does "be with us" mean in the case of methane?
Sending files using IPFS as a service
It isn't that the more experienced ones wear drysuits, it is that they are diving in colder water, which requires more experience + a dry suit.
Blacklist SPEC_CTRL on early Spectre v2 microcodes
I suspect the recent Kodak blockchain adoption might be connected with this use case. Not specifically, but with respect to getting into the technology and acquiring IP and expertise.
Due to water being a way better conductor of heat than air you lose heat up to 75% faster than in air. Even 30°C warm water can therefore quickly lead to hypothermia if unprotected. Ever seen scuba instructors in warm countries? While their customers would often submerge in nothing but a swimsuit the instructors would often wear 6mm full body wetsuits due to longer exposure. And yet a lot of them are shivering in the evenings.
Facebook’s least favorite Austrian can now press privacy suit in Vienna
I think it is more likely that he was in a wetsuit... Dry suits aren't measured in thickness since the purpose is to just keep the water out, as opposed to providing insulation like a wetsuit. Most divers wear a wetsuit unless they are in particularly cold water.
Discussed earlier today:

https://news.ycombinator.com/item?id=16226495
One of many factors. Movies and other fiction are no doubt the most powerful force communicating that expectation that young men should act like race car drivers.
Delegation at Work: Everyday mistakes, and how to avoid them
As long as you keep the original this should be fine. If anyone needs proof just show them.
The New Zealand dollar is brutal right now (USD1 = NZD1.35) so it's not going to be much of a discount.
They could do it in an industrial park, where that is your only option.
How do you develop immunity then? Might be wise to have limited exposure as a kind of "vaccine"?
Dunno about python (but then again it's a dynamic language...), and it's been an endless discussion for c++ AFAIK.

Other than that it's actually rather common in statically typed languages (except Go ;P). From the top of my head e.g. Java, C#, Typescript, Kotlin, Rust, Haskell all offer constraints for generics.
Also be sure to check this out https://gist.github.com/jboner/2841832
Notably the L1/L2 cache vs the main memory reference
I remember reading "The Innovators" by Walter Isaacson, and the story of Sir TimBL and how he invented the WWW. At one point, TimBL says that Data Structures aren't efficient, and today's kids just superficially know the upper layers of the software stack, and don't know what really goes on at the transistor level. He also says that the limits of computing are only limited by your imagination.

Now I realize it actually runs in the family.
It’s not urgent, but when the time comes I will be. Don’t shift priorities on my account though.
completely true.

the problem is that efficacy studies (like I want) are not that exciting to report. as a result, the lay press reports only mechanism studies (because their readers like to be "wowed" and think about things, like the poster I originally replied to).

that wouldn't matter at all, but we all get sick. and when a person gets sick with this mentality that they need to understand the mechanism, then they start overthinking the treatments that are available today, drawing all kinds of spurious conclusions, and making medical decisions that are unjustified at best and harmful at worst. and in my experience, the smarter the patient is, the more willing (and insistent) they are to take this approach (witness Steve Jobs). This is absolutely not the patient being "dumb" or stubborn: it's completely understandable given how they understand science. But it hurts them, which no physician likes to see.

let's note how incredible it is that we are having this conversation in the setting of some incredibly expert scientists (albeit in other fields). it really shows how hard science can be to understand sometimes.
I find it so funny people are so fixed on bounds checking. A minimal run time environment is good. It's easier to port and runs faster. Further, there are more issues than bounds checking.

Also a big part of it is companies don't really pay for quality software. They just care about software that works mostly made to cost. I don't see rust reducing this cost much except. First, one still has to interact with hardware, that does not fit rust's/zig's/(insert safe language) run time model. Secondly, soon as you start interacting with software out side of that model same issues apply.
If you are a parent with a school-aged child, and you want to fix a deficiency you perceive in calculus education, it's easier to get strong at calculus and teach your child yourself than it is to reform the education establishment.
I am the only remote person at my work. Sometimes I feel there's too much going on on Slack at the same time, and I haven't had any issues getting the information I need in a long time. There's always exceptions. Even though we've hit a few bumps in the road before we got to where we are now, I think it can work even for a 'traditional' company like ours (as long as you obsess about procedures and keeping things documented and in writing, which we've always done).
I read that as pushers

Jobs didn’t let his own kids use an iPad, Tim Cook discouraged his nephew... these people know exactly what this tech is designed to do.
Oh that's awesome! I've been pre-processing and generating separate embedding files.
Thanks! Your example is pretty interesting. Any reason why this is the case? In both cases, it is just accessing a memory location to read the value.
Are there compiler optimization heuristics at play here? E.g., for the local variable compiler knows that its value is not changing during the loop execution, so it can be pushed to register for faster access.
> The practical guidance in situations like this is that you should avoid drinking for the first day; this will trigger hormone changes that make your body start conserving water. After that, aim to scrounge up half a liter per day

Hmm, anyone heard of that before?
To me it seems like he wants a Macbook Pro or similar, but with more RAM.

I also recommend these Dells.
We still use them pretty exclusively for our large projects. Their higher prices are still massively offset by not hiring a sysops team.

They have, however, put a big focus on their enterprise customers recently which has irritated me. That said, even after a few years, we still love them. They're leaders in PaaS, nobody else does as well as they do.
I just wonder how does official data of this kind emerge if not based on any studies.
CLR vs. JVM: How the Battle Between .NET and Java Extends to the VM-Level
Yeah, agreed, although I consider once a week to be high...
Most popular programming languages of 2017 with 2018 predictions
> Also from the abstract: "In some cases, black defendants are substantially more likely than white defendants to be incorrectly classified as high risk."

I did see that in the abstract, but then the only follow-up in the actual body of the paper was:

"...among defendants who ultimately
did not reoffend, blacks were more than twice as likely as whites to be labeled as risky."

Which is simply restating the premise in a roundabout fashion - i.e. that those with criminal records (etc) are more likely to reoffend, and black defendants are more likely to have criminal records. It's a bit of a long bow to draw to say the classification was "incorrect" post-hoc because "those from the risky group who did not reoffend were initially labelled as high risk".

> The point is that an AI is a black box that may not explicitly use race but since it's using a variety of criteria rather opaquely, it may effectively, indirectly, use race, the neighborhood someone lives in, their social status or all sorts of things that aren't fair based on "your personal circumstances should determine whether you are considered a risk".

I believe it's a straightforward logistic regression, which is about as objective as you can be. It's not "AI", it's not opaque and it's not indirect. It's a simple calculation of the relative odds of recidivism based on factors such as criminal history, employment, and so on.

Given that adjusting for race makes no difference to the model output, it is literally the most colour-blind approach you could take.

The authors, on the other hand, would have you treat two people differently purely on the basis of respective race.

Now obviously there are historical/legacy social issues at play, not to mention the broader question of what's "best" to eliminate disadvantage. But I suspect not many people will agree with the authors' that this would be "fair".

If I were pushing their line of thinking, I would be researching whether this type of "positive" discrimination actually reduces the race gap long-term.

That's ultimately the only thing that matters, and in my mind, it's a much easier sell to say "this isn't fair, but it's what we need to do to reduce the criminal overrepresentation and disadvantage that exist because of our history with slavery".
You get to use a disabled iPad for a short while.
Am I right in thinking that statistical power is the true positive rate, so a test that always rejected the null hypothesis (whether correctly or incorrectly) would have the highest possible statistical power?
Argentina. I have worked with multiple developers from Argentina and I have only had positive experiences. They are much lower cost the American devs, but just as good quality.

They also live in a North American-friendly timezone, which makes it easy for them to work business hours.
Urgh. Why do stuff like this on a newly designed language? I mean, that sounds like javascript from ten years ago, and I didn't think anyone would like to go back there.
If you make shouts meaningless you make screams of help meaningless
The major obstacle right now is C extension, which I think Sulong [1] is suppose to solve.

It seems right now, TruffleRuby 99% of Ruby code without much problem. C Extension may be the key to wide spread adoption.

[1] https://github.com/graalvm/sulong
I think you've misunderstood the comment you were replying to.

I think they mean that the bacteria will not reach room temperature (20℃), but will get just warm enough to thaw out (1℃ or 2℃).

The reason they could die is probably not heat, but lack of anything to eat.
I believe I described communication as paramount.
JavaScript Pivot table library for data visualization and analysis. Free to use
If by "fundamentally" you mean "devoid of any practicalities that may affect the actual task of doing it", I agree.

However, there may ''also'' exist tools that help in the fundamental task. In the example of writing a novel, professional writers use spreadsheets that help them keep track of the general picture, and follow the details of each character, scene and plotline. It doesn't help with the task of being creative and artistry, but hell if they don't help the writer keep track of every detail that's important to the final result.
Only if you are in the first world and even then if you are some subgroup of people.

I know of and read about people commuting suicide or being killed because their honor was harmed.

This is not meh for many billions of people.
Protocol Handler Vulnerability Fix
> As the number of people independently asked approaches infinity, the error approaches 0.

Only if people are an unbiased estimator!!
Burger King releases net-neutrality prank video
For free download? No. Should I be able to scrape them? Yes.
Thanks for the clarification.

I would still see this as an instance of unnecessary complexity in the Git workflow - mostly the workflow for submitting, but not just that.

Of course, one could also argue that this is by design. Still, I don't see why a lightweight client that is feasible for the web would not also be feasible for the command line.

For example, it would be great to be able to have a checkout with reduced history. You could reduce in time and/or space, i.e. just a subtree and/or just the last 3 months. Even a distributed VCS doesn't need all history and all files as long as it has the relevant checksums.
If you really truly got absolutely nothing from that, I suggest you perhaps read it again, more slowly, and try to evoke your mind's eye. Maybe try reading one of his books; it's difficult to get into the right mindset from just an excerpt like that.

I read a lot of H.P. Lovecraft some 25 years ago, and I still have vivid imagined visual memories of the “unspeakable ancient horrors” described. Given this background, I find it strange that someone would get, or see, “absolutely nothing”.

I'd say H.P. Lovecraft is the literary equivalent of H.R. Giger. Different sub-genre of fiction, of course, but they've both contributed a similarly unique genre-defining take on things.
It’s not crystal clear anymore that USD is the only backing, this Bitfinex employee comment suggests it could be other cryptocurrencies (without expanding on mechanics) https://mobile.twitter.com/Bitfinexed/status/935333097377329...
The growing danger of great-power conflict
> Policing in America is racist. So anything that takes arrests into account (prior arrests, recidivism, etc.) will be in error as well.

Quite possibly - and if that were the case, it's certainly something to be addressed. As a non-American, I can't really comment.

But the paper doesn't really deal with that. It's saying that society should tolerate higher rates of recidivism amongst one racial group in the name of fairness.

I do understand the authors' thesis - I'm just saying that "fair" is a very subjective concept. I don't think many people will agree with the authors' definition.
It depend - if it’s executive decision making many hours after playing an immersive game - people figure out what’s fantasy and what is not.

I suspect that if it’s 2 seconds after pulling off a VR headset after being in a photorealistic world which had no forced errors then people would be very confused.
Maybe "simulate" is the wrong word, then. Especially accurate simulation. Plotting to shop groceries is not a simulation. You create a model of the problem and roughly base your solution on that. The model is based on a very large number of assumptions and a great deal of ignorance of the entirety of the process it represents.

You can relatively accurately predict that when you press "OK", the dialog will close. You can maybe assume and envision a future where calling "closeDialogBox(box)" will close the dialog box. Maybe the lines in it that which simply call "box->close()" and return "STATUS_OK" can be assumed to do what you think it will do. The underlying machine code, too. The CPU, sure.

In the end the whole system is beyond your control and is subject to random input like cosmic rays flipping bits, power outages, leaking caps. Before that you have the operating system, the compiler, the overall codebase, perhaps more likely sources of mental model mismatches. I certainly wouldn't draw the line of "accurate simulation" at the source code base.

IMO one of our strengths as humans is that we can easily create these simplified models based on rough probabilities founded on previous experience, "gut feelings" and weighing risks and go great lengths without accurate simulation.
72 days straight means without sleep?
They all moved over to find the next adventure.
What kind of nonsense is that?
Fast food is extremely expensive compared to cooking.
https://www.impactbnd.com/blog/manipulation-matrix-are-you-i...

So Zuck is no longer an Entertainer, his a Dealer right now.
If I were to start such service today how should I do it? Is SEO the only way?
Now if I google "temporary email", top results rarely changes
> What device level do you speak of?

iOS devices literally have a hardware security module called the SEP that controls access to sensitive information such as Health data.

> Where does one backup the said data off the device, as is normal with all devices today.

You set a password for this data when you back it up, and the data is encrypted with that password.
Maybe there is a remove.js framework to remove UI elements.
Except it is used as a distribution list. It’s not the same as groups.google.com
I hope that we see some analysis done on this subject in the near future, because the rising uncertainty regarding current public-key tech is starting to get difficult for certain businesses.
How to Do an Instagram Audit (+Instant IG Audit Tool to Use)
> I trust my doctors and Belgium if something should happen, Apple should back off.

Just curious, what makes you put your trust in doctors instead of Apple? What's stopping your doctors from leaking your health data as well?
> A dedicated instance (VPS) with 2.5GB of RAM will set you back $250/month, while a similar EC2 instance will cost <$75/month.

To get actually more data on this, I’ll show a direct comparison – that same instance (Heroku Dyno Performance M) would cost you at

Heroku $250/month
GCP $24.27/month
AWS LightSail $20/month
DO $10/month
VULTR $10/month
Linode $10/month
OVH $3.80/month
Hetzner $3.67/month
Scaleway $3.26/month

(Disclaimer: some of the services may differ in price due to different exchange rates and different taxation)