skysight-inc/HackerNews huggingface dataset:
> How are you missing the simple fact that most women get the cancerous strains from men?

This is exactly the problem. How do you plan to convince men to get vaccinated to prevent a cancer that affects women?

> Moralistic arguments are what keep us from mass-vaccinating against HPV-strains.

This is not a moralistic argument; I made no argument about what is right or wrong. What keeps that from happening is that many people who would need to do so would get little benefit. It's a positive externality.

> Literally 2019 and arguing on the internet for abstinence only?

I didn't argue for it, but there's nothing wrong with it. What's bad about that approach? It's 100% effective at preventing the spread of disease. Literally 2019 and we have super-STDs because people won't stop sleeping around. From the CDC: "Gonorrhea has progressively developed resistance to the antibiotic drugs prescribed to treat it." [0] Show me another approach that will work. Vaccine? Oh wait, we don't have one for that, and our antibiotics don't work. It's for good reason that society used to shun this sort of behavior. Promiscuous people are causing a serious public health issue because they are too lazy to keep it in their pants.

[0] https://www.cdc.gov/std/gonorrhea/arg/default.htm
Not quite. Not all ISAs are equivalent and not all llvm backends are equivalent. Rust depends on a few features that are typically not found in embedded systems, like multiple return registers. I wouldn’t even call ARM an embedded ISA anymore.
The Itch of My PTSD
I thought IRC didn’t have message history either? I’m not saying Slack is good for open-source communities, but it seems like “not having history” would be the status quo.
Didn't ask for a raise right away. In general the company liked me a lot; so a few months earlier I had asked for and already obtained a +19% raise, and during perf review a few months later I got another +7% raise.
C++ programmers need to be converted. C programmers just need sympathy.
Firefox as well: https://addons.mozilla.org/en-US/firefox/addon/recipe-filter...
>> single CPU with hundreds of cores would be really useful

Not with the current memory bus. If your algorithm is written properly it's very likely already memory bound. Adding more cores is only going to worsen the performance in that case.
No, but the follow up article is called Stop Memcpying Structures. And the follow up to that Stop Memcmping Structures. :)
The Complete Guide to Effective Reading
Also, you don't want to breathe it; xenon is an anesthetic gas and will put you to sleep.
It went from hilarious to dangerous,when democracy in the country itself is under threat.
My understanding is that Intel is doing OK with smaller die size 10nm (Cannon Lake-U / Ice Lake-U) for Ultrabooks. But for bigger dies such as HEDT or server CPUs, the Ice Lake SP is still pretty much in the air with Intel's vague timeline of "sooner than expected end of 2020" claim.
My chat logs are just plain text under ~/.weechat/logs and I search them using rip-grep. Works really fast. I am guessing a nicer interface like IRCCloud or TheLounge can work like Slack for searching, file/snippet hosting etc in a more approachable manner.
That may or may not be, but what certainly is true is that Intel's public messaging about 10nm production has been much less accurate than that of SemiAccurate.
You are right in theory, but I have yet to come upon a compiler that will use something other than zero for null.
New? Using epoxy to make batteries hard to replace and other tweaks to make other unreliable parts hard to replace. Popular recent choices are keyboards and backlights.
What are the odds that Apple's app store policies end in an antitrust suit? IANAL but it seems plausible.
Sending structures that include padding or that you don’t know the exact layout of over the network is another thing you shouldn’t do, period.

Code doing that may break with a compiler change or a compilation flag change on one end of the connection, even if you can guarantee both ends use the same CPU.
Thanks so much, Rick - really appreciate that!
Thanks for this. What a sensationalistic title.
> Abstinence is absurd, regressive, arcane, etc, and doesn't belong in 2019 nor does it work on 2019.

Why do you call it these things? Your opinion is not a source. I think both of us can agree it is 100% effective with respect to disease prevention. We're running into antibiotic-resistant STDs because people won't stop sleeping around. From the CDC: "Gonorrhea has progressively developed resistance to the antibiotic drugs prescribed to treat it." [0]

> cervical cancer is just 2 of the 14 strains of cancer causing HPV that we know of.

"The main type of cancer linked to HPV infection is cervical cancer. Virtually all cases of cervical cancer are caused by HPV." [1] Yes there are risks of other cancer, but they are very small unless you are gay.

[0] https://www.cdc.gov/std/gonorrhea/arg/default.htm

[1] https://www.cancerresearchuk.org/about-cancer/causes-of-canc...
Source: Boeing whistleblowers report 737 MAX problems to FAA
I'm not in London, or even England. AFAIK, it's relatively straightforward to get a taxi license anywhere in the UK but London.
The cynical viewpoint says the fine is there for 'revenue generation' purposes.
Very neat list. If I had the know-how I would do 2 things to Postgres to make some of these items more useful:

- Foreign key support for inherited tables (i.e. a foreign key referencing a table with inheritance, the other way round works just fine). Table inheritance is super useful but lack of full foreign key support means we have to give up on some integrity (or replace them with hand-written constraints).

- Bloom indexes on arrays and bigint (int8) types - would make it feasible to (almost) 'index all things' when working mostly with numeric data.
What school?
Nope it doesn't:

//GCC: -O0
//MSVC: /Od
#include <memory.h>
#include <stdio.h>
struct S { unsigned char x; int y; };
int f(int f) { S a; memset(&a, f, sizeof(a)); unsigned char y[2]; memcpy(&y, &a, sizeof(y)); return y[1]; }
int g() { S a = { 1, 2 }; unsigned char y[2]; memcpy(&y, &a, sizeof(y)); return y[1]; }
int main(int argc, char *argv[]) { f(0xDD); printf("%#x\n", g()); f(0xFF); printf("%#x\n", g()); }

It definitely seems like the author didn't realize this fact, or I'd have expected it to be addressed in the article.
Ugh. I've worked for, and with, people like this. Never again. It's clear from this article that he still has no idea why he "failed". Apparently his failure was too many ideas, and yet later on in the article he says they failed because execution slowed. Finally he admits it was magic lost, ie. he has no idea.

The best solution he comes up with amounts to better planning and "Decide where to focus limited resources." Duh.

This guy is ernest, but clueless. If you meet someone like this, run for the hills. They should not be in charge of anything apart from the excel spreadsheet in front of them.
Am I the only one who finds this

int yes=1;
setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof (yes)) ;

much cleaner than this

setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &(int) {1}, sizeof(int));

?
Oh sorry, my fault. The second link should be

https://bin.disroot.org/?56f3dcb618240df0#x3StRGZZgSzM0UJ0BK...
There were a few old free implementations which misbehaved when given null. Maybe they are all gone now, but there was a reason to do it.
Where did she get that game for ipad for free?
Did you mean this as a joke? I can't find a follow-up article (this one was written today).
What is physical intuition when you deal with quantum mechanics? Griffiths is a perfectly fine book, and if you want to go deeper perhaps Sukurai.
How did you deal with lack of allocation errors?

In my mind, what would make rust a fanatic kernel language is tracking allocators with types at the compiler level like it does for Send and Sync.
This is only kinda true. It's illegal for companies to fund the election campaigns of candidates above a certain dollar amount -- unless it's done the right way.

Our system appears quite corrupt when it comes to bribery. That there are so many legal ways to do it (and not call it bribery) only underscores that.
...are there any remaining architectures where NULL is not zero?

The examples listed here are all historical:

http://c-faq.com/null/machexamp.html
> They're not really that complex.

Once again: is this an opinion, or a fact? As stated, it sounds like a fact.

> And you kind find all sorts of apologetics for the viewpoint...

"Apologetics" sounds like a rhetorical "proof" that any and all viewpoints presented in the book are wrong. Is this so?

> but there's a reason it's not reading material in an academic setting.

There are many reasons why many different pieces of literature are not reading material in an academic setting. Is this fact sufficient evidence to conclude (and tell others) that the ideas are wrong? Or would it be more proper to state an opinion that they are wrong, with some supporting evidence or other actually substantiated opinions (of which there is plenty on Rand).

> So no, there is absolutely no benefit

A confident declaration of victory while ignoring the actual point and content of your rhetorical adversary's argument is another effective (psychologically persuasive) debate tactic that is employed to great success in the modern world across a variety of communication mediums. Again, see the last presidential election in the United States.
You could use pglogical[1][2] and sync to an updatable view - it ought to be faster and it should be easier to maintain (the updatable view would act as an abstraction layer).

[1] https://www.2ndquadrant.com/en/resources/pglogical/
[2] https://github.com/2ndQuadrant/pglogical
NOTIFY and LISTEN appeals a lot but my understanding is LISTEN needs to be on the same connection, which isn’t realistic with connection pooling etc? Anyone got any experience with this feature?
Yeah, I had kind of assumed they were advocating putting $140k in the bank and living off the $60k.
Functions As A Service! It has worked great from the few implementations I have seen.
It seems to me that these techniques only hurt the security of the user if they're used without the user's knowledge. As long as the apps are very clear about what they do to the phone and its traffic, and the user is fine with that, I don't see what business of Apple it is to disallow it.

Let's face it, Apple also has deep control over people's iPhones. Is that a security threat, or is it something that users choose by buying Apple?

It is absolutely anti-competitive. I think it's time for an anti-trust case against the way Apple abuses their control over the app store.
You can easily see if someone is active or not. Most clients even tell you that the user is away.

The other problem you describe is related to it being an open standard. If you had a custom slack client or server you also would not be able to make assumptions about how it works on the remote end.
You're probably not serious, but why waste time and complexity copying structure elements into a buffer (which likely needs to be memset/bzero'd!), if you can just directly use the struct, all consistent with the standard?

C is not a very high-level language. Apart from where undefined behavior is called out, you can and should assume how data is represented on a low level. It was made for writing operating systems and their kernels after all, where interfacing in a bit-accurate way is common.
That article is glorious, thank you for posting!
I think the volume is even more than that.
“XENON1T uses 3.2 t of ultra-pure liquid xenon (LXe), of which 2t are within the sensitive volume of the time projection chamber (TPC)”

From the paper linked above.
https://arxiv.org/pdf/1904.11002.pdf
I also have a 15+ years old set of mail servers and I host mail domains for 10ish friends and family. In fact, I once wrote how to set this up (http://flurdy.com/docs/postfix)

I no longer use Gmail myself but half of my users relay some aliases to their main Gmail account. No problems with that, except my servers continuously get rate limited by Google:

Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/?p=UnsolicitedRateLimitError to 421 4.7.0 review our Bulk Email Senders Guidelines.

I have the normal anti-spam features set up (SPF, DKIM, DMARC, Postgrey, Spamassassin, etc) so most spam gets rejected but not all. But several of my users have very common English names as their aliases that are already guessed and added to many spam databases.

This leads to family phoning me all the time to say my server is broken when it is just Google throttling everyone's emails. I frequently have to check Postfix queues and clear some obvious spam or just pointless Facebook update emails which seems to be the majority... (Yes your email admin can read your email...)

The only way to improve is to constantly remind my family to not sign up to all crap, use not so common aliases, and try to keep tightening my anti-spam configurations. But we really are not talking about a lot of emails. Probably less than a hundred per day spread across 5-ish end accounts of which 95% is probably legit. Yet Google is treating me as some totally open relay. (╯°□°)╯︵ ┻━┻
Global Measles Vaccination Trends
> I have always found the blaming of lobbyists odd

I think most people consider lobbying a serious problem because of the power discrepancy involved. You and I can't effectively lobby. The entities that can tend to be the ones who are already inordinately powerful. The result is that lobbying overall tends to disenfranchise ordinary citizens. It is inherently corrosive to our system of government.
How to find beta testers for your product
Are there any apps where people sign up to be beta testers? I'm trying to find good beta testers for my app. I can't pay them much, maybe $5-10 Amazon eGift card.
That will never happen on current or future platforms, and is not a big concern. Or perhaps it'd be better to say that if it ever does happen on a future platform, then a few memset calls are going to be the least of your problems when porting legacy C code to that platform.

However, what has bitten me is memsetting structures that I later turn into full-fledged classes in C++. Oops, there went the VMT.

Designated initializers are very nice, as is the ability (in C++) to provide initial-value assignments that run before the constructor.
I use logical replication with a modified version of Debezium (https://debezium.io) - I prefer it to NOTIFY/LISTEN as it means I can have my consumers completely decoupled.
It's implied, but this site doesn't have a byline on posts, or a publication date. It's very annoying.
Characters sets: A bad idea since the bronze age
> Sending structures that include padding or that you don’t know the exact layout of over the network is another thing you shouldn’t do, period.

What if you do know the exact layout and it happens to have a gap between fields?
My C++ is rusty (no pun intended), but if your code also has to compile as C++, I think this will work instead of memset:

struct addrinfo hints = {0};

If C++ requires

struct addrinfo hints = {};

instead, you could create a macro, and write

struct addrinfo hints = ALL_ZEROES;
> it's possible for the assertion to fail, since NULL it not guaranteed to be represented in memory by a zero bytes.

Technically correct (which is of course the best kind of correct) but you'd be hard pressed to find a system in 2019 where NULL != (void*)0. The most recent machines with non-zero NULL in the C FAQ entry on the matter (http://c-faq.com/null/machexamp.html) date back to the mid '90s.
Well this is more from an architect manager. Trying to manage offshore and internal tech stacks is always difficult. Out source work via FAAS user stories.
Everytime I return to Clockwork Orange I like to read it out loud to myself in the voice of an adult reading a bedtime story to their kid. I would love to hear an audio book done in that style. A little bit of the ultraviolence to go with my milk and cookies.
Network; TCP or something
Changing compiler or flags won't change structs, unless you do something crazy. If it did, you couldn't link C libraries compiled with one compiler with programs compiled on another.

You can't be sure you can send such structures to different OSes or CPUs however.
NSec – a modern cryptographic library for .Net Core based on libsodium
Apple has an App Store, they want to take unfair advantage by limiting competition.
Third party have an App Store, they want to take advantage by using dark UI and other unethical practices.
Every approach has its own advantages and disadvantages. No one is doing you a favor by providing you services, they want to earn money in return and usually more than the worth of services they put in. Choose which devil you want to liv with
There is an attribute that lets you specify alignment per-struct, which means you will know the exact layout.
Compiler exists in theory != supported
For microwave ovens / water: You have cause and effect reversed. You believe water has an absorption peak at 2.4GHz because microwave ovens use it, not the other way around. In reality, microwave ovens use 2.4GHz because it's legally available (ISM band) and water has a wide absorption spectrum in GHz area (the exact peak shifts wildly with temperature[1]. 2.4GHz is _far_ from optimal). Microwave ovens also contain kilowatt output in a small chamber using RF reflective walls (necessary for the standing waves to develop). Contrast this with the inverse square law for cell towers.

For air: The 60GHz allows reduced cell size. This makes it more realistic for you to opt out of receiving everyone else's emissions (by walking away). Also, air is not not "fundamental to biological life" (anaerobic organisms exist). More seriously, at 60GHz and above skin penetration is very, very shallow.

Active denial systems use a slightly higher frequency (95GHz) and much higher radiated power (30kW-2.5 MW says Wikipedia).

The social aspects of IOT have as much to do with 5G as with, say, smartphones in general. That's just anti-tech. It can be discussed, but it's not an interesting argument in the context of whether 5G is harmful.

You are making emotional arguments that are not grounded in technical arguments.

[1] Please refer to the chart in https://en.wikipedia.org/wiki/Electromagnetic_absorption_by_...
Personally, give me apps that don't use MDM and flout the clearly stated "rules of the garden" over having five different versions of WhatsApp, four of which are stuffed with malware.
Ask HN: How do you handle talking to your manager after missing a promotion?
I have been with my company for a few years. Over the past year or so, there's been a huge management change.

We had been a small agile team and have grown like crazy with a bunch of new processes and managers added into the mix. I recently learned that I was not given a promotion due to reasons outside of my technical ability or developer velocity. During my previous reviews leading up to this, there was never any indication that those reasons would hold me back and I specifically talk to my manager a few months ago telling them I want to get to the next level, and they told me they didn't see any reason why I wouldn't.

The new management that came in are making a huge push for diversity and most of the promotions were diverse co-workers, which is great.

But now I'm not sure what direction to go in? It's obvious to me that I'm not respected at the company. I'm not a 10x developer. I'm not diverse. My big skill is that I can get features working and I volunteer to work on hard problems that have no clear solutions.

I still like my company and I do enjoy working with my co-workers.

I'm planning on talking to my manager about what I can do better, but its really obvious to me now that my company just sees me as just a worker cog that is probably a dime a dozen.

I'm not 100% sure how to handle the talk with my manager and how do I make myself more indispensable from here on out?
A spam filter can't whitelist government email. My personal SpamAssassin filters out spam from government servers all the time. The latest was from somewhere in Quebec.

You'd think the various governments would put more effort into computer security. They appear not to care, though.
It's the first time that I hear about Rust on medical devices. Sounds really interesting! I'm glad to hear that my blog was useful to you!

> I have been trying to hack at the utest crate and get on-device integration tests running again for quite some time... good to know there is movement on the custom test runner front :)

The custom test framework feature of Rust was silently introduced in https://github.com/rust-lang/rust/pull/53410 and I didn't know that it even existed a month ago. But it works really well and seems like a good solution for your problem.
What was the reasoning?
As a programmer my experience is that I get "depressed" if I do not get out and exercise every single day. I get angry at other people or at things like clients or taxes or whatever. I start getting lazy at stuff to do.

Just getting out for 30-40 every day minutes and sleeping and eating well does wonders for me. I get energized and life becomes full of opportunities, I see the bright side of people...

I am almost certain that is the circulation of the lymphatic system. For people working in front of a computer for hours a day it is very important.

Spain(most of it) is sunny most of the year and it is rare when I could not exercise outside, but in central Europe I notice it a lot with the dark winter.
If you only use super simple structures maybe. It is quite common to zero out a structure and use only parts of it. It is also quite common to have to pragmatically fill in the structure.
If the theories about Norsemen crossing to North America are true, then I don't see it being too farfetched that the Romans could have done it too.
>you have apparently been here long enough to know that that kind of response is unacceptable here.

Clearly; sometimes people are insufferable though, and I'd rather let them know then carry anything into my actual life.

>you are choosing to interpret that series of events differently than i did. i see it like this: ...

And how does that disagree with my statement that he didn't know there was a last chapter until later? He may have never started the screenplay if he'd read the original since it completely changes the story. It's like Raymond Carver edited by Gordon Lish vs. not.
My only problem with Kubrick's take on the book was Alex and his droogs never felt like teenagers to me ... when I read the book I'm seeing fifteen year olds, boys, not men ... which makes things even harsher. (ie City of God)
My favourite trick with designated initialisers is using them with array indices and enums, e.g.

enum color {RED, GREEN, BLUE};
char *color_name[] = {
[RED] = "Red",
[GREEN] = "Green",
[BLUE] = "Blue"
};

printf("%s",color_name[RED]);

This means you don't have to ensure ordering is the same between the enum and the array, which can be a pain for more complex tables. It's a shame C++ doesn't support this, more details: https://eli.thegreenplace.net/2011/02/15/array-initializatio...
Are the two of you using the same answer to the question "Does a X% chance of 2 events (in given interval) contribute X% or 2X% to the chance of seeing one event?"? That is, do you mean [time for a 50% chance of seeing ≥1 decay] or [time to see, on average, 0.5 decays].
Yes. The previous comments were about checksums, which SHA256 is not.
Ways of Hearing
> and a separate firmware update where it refuses to disengage cruise control.

Wow, that's a bad one.
Améliorer la confidentialité de Firefox
> Things that are bad for Microsoft are bad for the citizens of Washington.

Corporate lobbyists like to say things like that, but it isn't always true.
De L'intérêt D'un VPN