skysight-inc/HackerNews huggingface dataset:
This is why your choice of threshold matters. Your strategy should be to choose a threshold randomly from any distribution that is non-zero everywhere (such as a normal distribution), then choose a hand uniformly at random.

Choosing zero as a threshold deterministically does not work for all choices that Alice can make because, as you say, for some choices such as (10,20) it gives you exactly 50% chance to win. But as long as there is always a non-zero chance that you chose a threshold between Alice's numbers, then there is a > 50% chance that you win the game.
I'm not saying I disagree, but still: why not?

More than one person I know is in a relationship with someone from a 'poorer' country and both parties seem to be pretty happy with the outcome. And wasn't just men who were from the richer countries either.
Shhh. Don't give their development team ideas ;)
You actually describe my day job pretty accurately. SAP based legacy systems where everything from system variables to customer codebase is this weird mix of English and German. Strict project guidelines and code review sessions can only catch part of this mess before it's rolled into production.

We have junior devs come and go that simply look problems up online, because they are able to translate their questions into proper English, that the senior German-only devs would spend days trying to work out by themselves. Or they somehow find the same solutions online but can't make sense of what Google Translate spits out for them. It's equally hilarious and sad to see a junior dev being used as a seniors LetMeGoogleThatForYou.
But it's not just Communism, it's Russia itself. I see it even today among some members of our national Communist Party (which was historically Stalinist). They not only irrationally¹ defended the USSR, as they transferred that to current Russia and Putin. It truly boggles the mind.

And they are not Russians, or particularly care about the land or the people, it's a support of the Russian nation specifically.

¹ By irrationally, I mean what Orwell describes - defending actions they would never defend in other countries and ignoring inconvenient facts
Perhaps assoc_in or update_in from the Toolz library fits this?

https://toolz.readthedocs.io/en/latest/api.html#toolz.dictto...
https://toolz.readthedocs.io/en/latest/api.html#toolz.dictto...
Looking for a Angel
Hello my name is Dante Harrell and i just found this website, and i hope someone here can help me find the companie or super angel to help make my idea a reality.

I have been holding a idea that i alone came up with back in college at eastern washington university. Back in 2001-current my idea wasnt possible, the technology wasnt there yet, on top of not having a clue on how or were to start, let alone someone to guide me, or to talk to about my idea to point me in the right direction.

Its 2018, and With the way technology is evolving and the new halographic cell phone projected to come out this summer by red, i now know the time is right, the time is now. Now is the time for new innovated world changing ideas.

My idea is a halographic program that will change the health care industry as well as all other industries that needs a closer look to assist, proform, and suceed at a higher percenage sucess rate, which will not only change us as individuals, but the whole world as we know it.

I look forward to response
Thank you
Also his total and complete inability to admit he was 100% wrong about large screened phones being successful is painful.

Gruber/Apple is never wrong - but sometimes reality realigns.
I don't know how general that is but I remember reading a book about something that happened maybe in the 1950s, 1960s Soviet Union. Geologists explored a remote area, and they were ambushed by a human-killing bear. He hid in the bushes next to the path they took to get water, the sound of the bottles the person sent to get water carried told the bear someone was coming. They lost several people. If only I could remember the title... the main story line was about the bear, the background story for why they were there was that they followed stories of hallucinations and found mercury, a valuable resource at the time (today I'd be more scared of the mercury than the bear).
If you want a good visual version, The Brick Testament is a fun starting point: http://www.thebricktestament.com/
Hm no. As much as engineers like data-driven decisions, there are other considerations that go in choices which are very hard if not plain impossible to mathematise.

So you introduce AI in the decisional process. You just shifting the problem from one field to another, but be sure that the extend of the problem will be of the same magnitude if not bigger due to the added complexity.
More specifically, I think it's needed to be efficient.

Sure you can get things done in some other languages and become good at it, but being used to read source code written for an english speaking audience, read english docs and browse english Q&A sites and forums makes a huge difference from my own experience.
I remember having conversations with people when I was younger talking about what language you think in. I found the question confusing, as I just...don't. Words only come in to play when I'm communicating with someone else, like writing this post. Otherwise it is concepts or images.

When discussing this to the others, I have consistently gotten either completely baffled expressions as a reply, or people know exactly what I am talking about, and are equally surprised that it is even something worth mentioning.

What surprises me most out of all of this is how little this seemingly very different cognitive approach appears to affect our day-to-day ability to communicate with one another.
I picked C over C++ in an quasi-embedded environment given we would have a team with highly variable C/C++ skills.

I was worried people would get too fancy with C++. Probably it would have been fine if we would have taken away most of the language.

It turns out the problem with C in that setting was that good C code seems to require a lot of ceremony and conventions for things like error handling and modularity.

I hope that Zig (https://ziglang.org) will become a viable alternative in that space. It's quite a small language, more comparable to C than to C++ or Rust. It's meant to result in similar LLVM bitcode as well-written C, while being highly compatible with C and and giving you some extra safety guarantess over C as well.
> points free style will be a daily desire

Not...really.
Yes, he really does seem to just mean fanatical adherents to an ideology, which may or may not be associated with a physical nation. He is certainly using the term "nationalism" in a non-standard way. But I think he did it because he was trying to point out the similarities between traditional nationalism and ideologues of all stripes.
Thank you.

As a user, how (other than asking here) was I supposed to convince myself of the identity binding between “snapcrafters” and the GitHub org and to convince myself that trust in the correspondence between snapcraft.yaml and what I get when I install a snap is rooted in Canonical’s build service and not in trusting an individual uploader not injecting different binaries?
Krav Maga https://en.m.wikipedia.org/wiki/Krav_Maga
Neat and impressive. Its bit difficult to estimate the scale from the video, anyone venture a guess how big this thing is?

It's interesting that even the balance spring appears to be printed, I would not have guessed that to be feasible. In watches custom speciality alloys are used to get the performance needed, and afaik it is also one of the bigger contributors to the accuracy of the whole movement.

Which brings to the big question, how well does this tourbillion actually perform? I get that it probably is intended as a show piece rather than practical timekeeping, but still it would be nice for understanding the state of 3d printing.

Beyond accuracy other interesting "metrics" would be friction/energy efficiency and longevity.
This is true, obviously very true in his time. I think it is inevitable though, one becomes a symbol of the other.

Were the east european liberals of the 70s & 80s not obsessed with America? Cowboys, rockstars, blue jeans, holywood gangsters...
Regarding DR, have you actually tried rebuilding your entire infrastructure? Do you do that regularly as you add more playbooks?

If not, I'd say that your DR is more of a wishful-DR that real DR. Not bashing on you, it's just that we're all prone to believe that everything will work but most of the times it doesn't because <reasons>.
That's one business model (e.g. Ferrari, Porsche, Lambourgini, Wedgewood, Breitling, ...), actually increasing supply is another (too many brands to name). I would argue that the brands that increase supply while lowering costs are the ones that do far more good in the world. But if you want to make money, certainly restricting supply can work.

Of course pretending you're one of the restricting supply businesses while in fact increasing supply (ie. Apple) beats both business models by an incredible margin.

And then there is the business model of enforcing your own position by having government goons (rules or actual goons) drive out the competition, which certainly restricts supply (Verizon/AT&T, Suez, Electrabel, Atos Worldline, Total, Shell, Exxon Mobil, Glencore, Gazprom, ING, AXA, BNP Paribas, ... and then there's this tiny little thing called "China")

There's certainly a place for all of these.
How about "enough room to sit comfortable if you have long legs" and then on top "I can work on my laptop".
It certainly isn't out of reach to get a fairly close speed to GMP implementation-wise if you are willing to optimize the low-level loops in assembly. I think the simple cases are rather straight-forward to reach parity but once you start needing to optimize your algorithm thresholds, it requires much more testing to find the optimal values [1].

It is also easy to overlook how well optimized GMP is across a wide range of less common architectures and chips and I wouldn't be surprised if my particular implementation lost a bit of ground on other architectures like ARM (would be a good thing to test).

[1] https://gmplib.org/devel/thres/
Thanks for the reply. Doesn't happen every day someone answers your sorrows with a two liner. I don't really see at what points it is checking for my pressed keys.
I just was able to try your snippet. Unfortunately I do not get it to work - I just end up with lines like `ls: no such file or directory`.
They went on an founded a startup called Tribogenics, raised a total of about $20M over the years (among others from Nikon and Founders Fund), They worked on developing lower cost portable XRF scanners, but apparently went out of business earlier this year. From what I've heard the tech didn't work quite as well as they had hoped and their market fit wasn't that great.
Essentially yes. It's the same in C99, too.

There's a bit of nuance here though. The function that the author chose to reimplement provides the platform-specific implementation of a function that's actually specified as part of CMSIS (https://developer.arm.com/embedded/cmsis). Its portability across cores and MCUs is not much of an issue, and you're usually tied to the compilers in this sort of projects, too. So it's not necessarily a bad idea from a purely technical standpoint.

That being said:

- No one who writes embedded software for a living expects to see bitfields in their source tree. In fact, there are standards that this code would break (e.g. in CERT C: https://wiki.sei.cmu.edu/confluence/display/c/EXP11-C.+Do+no... ), so it wouldn't even get well through code review. It's a bad idea to surprise your coworkers :-).

- Implementation-defined behaviour can sometimes be surprising and non-uniform. More often than not, the distinction between "bug" and "implementation-specific" is very blurry, and the corner cases are very hard to catch. You may think you're OK because your code doesn't need to be portable and it works fine on your device, but then it turns out the memory alignment of bit fields varies with field size because of course it does.

- Precisely because of their infrequent use, the implementation of bit fields is one of the things that vendors often get wrong in early versions of a toolchain. At best, it's just a matter of inefficient access. At worst, it's bugs. And if you think that can't possibly go wrong, let me tell you about that time when an early version of msp430-gcc translated access to volatile variables into a NOP.

(Disclaimer: that was a long time ago, on an early port. The MSP430 port of GCC is actually very solid.)

So basically, just don't. Don't. There are well-known idioms for bit access. They are not readable as in "someone who knows English can read those programs just fine" but it takes like two minutes to understand those idioms. They are very readable, as in "anyone who's ever made a LED blink understands them". Yes, it's domain-specific knowledge, but you're already twiddling bits on tiny machines in a language that's not English. You're already full of domain-specific knowledge.

Edit: ah -- just to make sure this doesn't get interpreted the wrong way. IMHO, C++ in embedded systems is not a bad idea. I don't use it because I've never worked on a project where I needed it, and therefore I never got the chance to be proficient with it. But I've seen solid, reliable devices running (what, to my untrained eye, seemed like) very clean, debugable C++ code.

Also, "embedded" refers primarily to purpose, not platform capabilities. There are plenty of embedded platforms running on eight-core Xeons and state-of-the-art DSPs and whatnot. It's not all tiny MCUs with 4K of RAM and no MMU.
Ask HN: C++ career advice
I am currently working as support programmer for a product, mostly solving latent bugs and issues. I work in C/C++ mostly and i am struck in this job. I am beginner in C++. I am working on imporving my skills in C++. I need some help choosing a domain i can concentrate on. There are so many fields i can concentrate on, such as graphics, high performance computing, systems programming etc. i would like to know how to get started, what are pros and cons of each field, which one to choose, finding job opportunities etc. Thanks.
What if it's self correcting?

1. Comp has crap / no website

1. robot can't automatically make booking

1. Comp gets annoyed with robot callers

1. Comp sorts out a decent booking system

1. robots don't need to call anymore.
What on earth is %G even for? In what situation would that _ever_ be useful?
You're assuming the code is the most important part of producing software.

Frequently it's the communication within the team, the documentation and the third-parties you will deal with.

You can be a rockstar on your own without English. You can't be a team player and expect to do well without English. That was my point.
> the act of "forgetting" is the act of destroying the decryption keys

I'm not sure cryto-shredding is a legit method to "delete consumer data"
I've been a client for multiple years and have taken heavy losses on the loans I have handed out
Because otherwise... we might be somewhat annoyed? What terrible events do you see happening that require laws with such urgency?
I think both had their good points at times. Anyway, the debate shows a man different than the one described in the article. That's why I posted it
What security guarantees cannot be hold by container technologies such as LXC, cgroups, namespaces and docker?
I think he was.

I think he was also trying to piggy-back. To the British of 1945, "Nationalism" meant Germany, Japan, Italy and their other recent enemies. Everyone knew they were irrational, destructive fanatics. I think he was warning of similar in British politics.
So many frameworks try to be smart about timzones and user settings. Showing local time to users is fine, but please don't touch my UTC time that's actually stored in the dbase.
Will Google record calls or metadata? More importantly, to alleviate concerns, will they indicate what their data policy is during a call?
Beer for cryptos? Finally
AI in Sudoku
Interesting to watch tech trying to negative feedback itself :)
> First Rust needs to reach C++'s tooling maturity on embedded space.

Yeah and that's soon. Anyone starting an embedded project in C++ is making a grave mistake.

> Mbed

Those guys make a bad mistake and will pay for it.
> So, wtf does Orwell mean when he says "nationalism". It's not like patriotism, but is like Trotskyism? I think he just means fanatics. Ideologists that care more about winning arguments and wars then morals & greater goods supposedly furthered by ideologies.

Orwell defined what he was meaning exactly, in the second paragraph...

> By ‘patriotism’ I mean devotion to a particular place and a particular way of life, which one believes to be the best in the world but has no wish to force on other people. Patriotism is of its nature defensive, both militarily and culturally. Nationalism, on the other hand, is inseparable from the desire for power. The abiding purpose of every nationalist is to secure more power and more prestige, not for himself but for the nation or other unit in which he has chosen to sink his own individuality.

The sentences I quoted above resonate with me today, here in Scotland, pertaining to the Scottish National Party and especially with their rather foaming-at-the-mouth Nationalism. To see their behaviour - despite the 2014 Independence referendum in which the people of Scotland voted against breaking away from the United Kingdom - is to behold exactly the kind of irrational and in my view outright dangerous form of nationalism Orwell is writing about.

I consider myself a Scottish patriot, not a nationalist. I also consider myself a British patriot, not a nationalist, and it is for those reasons that I voted against Scotland becoming independent, breaking away from the UK, and it is also the reason why in my opinion the quicker the SNP lose their minority government in the Scottish parliament - they are being propped up by a handful of Scottish Greens who themselves demonstrate a propensity towards Communistic ideals hiding behind a thin veneer of "green" - the better.
"RTFM" used to be a valid critique, and it's my immediate response to this article.

But maybe I'm wrong. The M keeps getting bigger, and our reading time keeps getting more fractured. Maybe it's okay to just throw code out without knowing what it does.

Or maybe management/engineering culture need to be clear on the external costs of slapdash development and discourage breaking things fast.
Can somebody help me understand why Gruber's opinions even matter, in particular, this piece? There's absolutely zero information in this article, zero citations to backup his claims other than good 'ole FUD. I don't think these articles belong on HN. Somebody, please correct me if I'm wrong.
This tech might work well dealing with Emergency Service calls, to filter out inappropriate calls and only pass on genuine emergencies to the human operator related the required service.
From reading the headline, I assumed Google was providing some useful service where chrome or Google voice or some other Google medium would warn hapless human when they ended up in conversation with an AI pretending to be human.

But no! Google itself IS said evil AI. But hey, it's ok, don't worry, it will come with a built in warning!

Things like this make me think that big tech has really lost the plot. You'd think in the current climate that Google would be keeping their heads down, staying away from things that are creepy, unsettling and potentially providing evildoers with another way to maliciously influence people.

But no... because ads.
Read the actual research paper?
I wonder if it makes sense to implement resource controls for websites so that users can define how many CPU cycles are allowed at the maximum which give web developers incentives to write less resource-hungry web apps.
You can clone with submodules in one command: https://stackoverflow.com/questions/3796927/how-to-git-clone...

But I agree, maybe it should be turned on by default.
No question,hands down: Proust. He wrote his novels over a hundred years ago, in a vastly different world that we line in now, but over-and-over again, he totally nails and dissects human experience.

The first 30 or so pages of Swan's Way is about a child waking up in his room. He shows that something so benign and ordinary is anything but, it includes countless memories, senses, instincts, and emotions. Technologists should take note.
C++ in embedded. Lord god no

Note so sure, maybe depends on what 'embedded' exactly means to you. I mean, years ago I was working on some TI C6x series DSPs and needed a circular buffer. Hadn't one in C, did have a templated one in C++. Didn't think twice: if the compiler would swallow it, and it did, why would I go through the hassle of doing the work again in C possibly beeding different implementations for different type or a bunch of rather ugly void* stuff? Everything worked out. So for that particual case, C++ in embedded, god yes, as it meant: less development time, reuse existing implementation both for float and int types, etc. And that's +10 years ago so I'd imagine there's now more compilers which would do it.
I'd personally just prepare a small VirtualBox image with everything required to build the code, and release that instead.
My cynical read of this is that it's an attack on Facebook. Google has a giant attention platform in YouTube, but Facebook and Instagram are attention platforms. I think YouTube will decline a bit as a result of this, but the rest of Google - and the data collection of Android are untouched. If people become less addicted to their phones, they're still going to have their phone when they go to restaurants and take photos of things on their phones, they're just not going to post about it on Facebook or Instagram or Snapchat or Twitter. Google will still know everything they do now, they'll still be the default photos experience and search experience and maps experience for Android, you'll just spend less time in attention apps like YouTube and Facebook.

The real genius is that it fits Apple's brand really well, way better than Google's. If they can make this a serious digital wellness campaign, I could easily see Apple joining in. It won't affect their bottom line and it'll make them look good. And with that, both mobile platforms and ~all of Facebook's user base get nudges to become less addicted to and pay less attention to Facebook.
I want this rule: software updates, however small, shall not be installed without X hours of testing by a government institution.
It's called balance. They made it an official notion and released a few things. It's a tangible effort. I give them a bit (a bit) of trust regarding the wisdom needed to make a good "business".

I don't subscribe to the responsibility shift. Unless they make their notification and metrics bogus, hard to notice etc it's a good measure. And yes, let's make user "responsible" or IMO.. in control. The system informs me, I decide. You see this as a trick to get away with murder, personally I don't.

Also, unless they decide to retire from business I don't see how Google can improve the life of their users.
I would think this violates at minimum the 4th Amendment
If you've been following the Markdown debacle closely[1], this is classic Gruber.

[1] https://blog.codinghorror.com/standard-markdown-is-now-commo...
Google is just optimizing, instead of trying to attract the most eyeballs, they are trying to attract the most eyeballs without you realizing that you are being attracted.
Most cryptos are faster than any type of wire transfer except card payments.