skysight-inc/HackerNews huggingface dataset:
Like this?

auto it = std::find(begin(replicas), end(replicas), my_ip);
return (end(replicas) == it ? -1 : std::distance(begin(replicas), it));

Yeah, i'll go with that.
These are excellent.

I don't use Python that often so something like this is perfect to refresh each time and to avoid doing anything unidiomatic.

'Learn X in Y' is also a useful site for this sort of thing.
The primary weapon of the tank is not the cannon - it is the machine gun. Like, the point of a tank is not to blow up other tanks, the point is to be immune to small arms fire, go places, and suppress or destroy enemy ground forces.
Recently I've come across the tpm (Tmux Plugin Manager), available at [0].

Happy with it, even though I'm only using two plugins: tmux-sensible (better defaults) and a theme-pack [1].

[0] - https://github.com/tmux-plugins/tpm

[1] - https://github.com/jimeh/tmux-themepack
>Few children live within a mile of their school here

Is that really true? 80% of Americans live within large metro areas rather than rural areas.
I'm nominally a software engineer, but what I really do is form proper questions. Coding is just how the answers to those questions are written down, and sometimes how they are answered. But my cost is a drop in the bucket compared to the things I work on.

If you're doing software and said software is not strategic and it's not tactical, then it's nothing but cost and you're a target.

And to be fair, programming as a career got oversold between 1990 and 2000. At least my experience in the 1980s was that instructors were careful to signal the downside of it as an activity. Adam Curtis documentaries are pretty careful to express skepticism about technocratic Utopianism and I don't think he's wrong.

I lacked the resources ( and probably the talent, frankly ) to obtain a PhD in applied mathematics but I knew that's what I should have striven for. It's still true, probably.
In the same way as you upgrade library you can just upgrade your software...
It's recompiling only the functions that have changed. The code to build and persist the dependency graph has already landed.

https://github.com/rust-lang/rfcs/blob/master/text/1298-incr...
I apologise for being excited about something that interests me.
I just picked one comment to reply to, but the problem was across all of them. The above one is also too 'strong', to use your word, in a personal way.

I sympathize with the emotion behind it, but when you weaponize it like that and direct it at somebody, you break the bonds of community here—which are so weak to begin with, that protecting them has to be everyone's priority.

Thanks for responding so nicely.
I wasn't involved in that specific implementation decision, so can't say.

Speculating personally, it was probably just something that happened for speed/ease - as opposed to trying to get an apparently abandoned repo rolling again.

We did make optimizely/chef-druid open and public though, and while I'm not with Optimizely any more, I'm sure the good folk there would be more than happy to merge back into the original repo if anyone was still maintaining it and wanted that to happen.
The author's first mention of this issue is "choose your playlist" (which already assumes it's an operative concept). Then she goes on to say:

> If you’re a runner who likes the quiet and solitude of
> running, then pick a bucolic path and go run. But many
> people like

This makes it all about what you like - i.e. an aesthetic issue. Nowhere does she suggest that what you like should be balanced against what's safe or considerate of others. Hence my objection.
The current iteration of Windows 10 tries to abstract away hardware under a higher level "Windows" layer and mostly get rid of variation between windows for embedded, mobile, and Intel platforms. With the new Bash/Ubuntu feature, I think Windows is moving on to abstract away the operating system.

My wild-ass prediction for a Microsoft Linux distribution is one in which Microsoft Windows replaces X-windows. Wayland is already trying to do this because of the perceived security vulnerabilities of X-windows' architecture. In a limited sense, this is sort of an old idea when it comes to nix: there were paid GUI products for layering on top of nix thirty years ago, e.g. Open Look and Motif.
Very overly simplified, but yes. Thankfully my team will be showing the significantly smarter compiler in the coming months. It is primarily for our own architecture that is both VLIW and requires full software management of the memory, but a lot of the techniques we have developed can improve compilers in a general sense. We have also built all of our work within/around LLVM, so our optimizations that occur on the LLVMIR can potentially be applied to other backends, and our backend optimizations make very performant VLIW scheduling actually real.
I don't feel 'good' while running until several kms in. And definitely not the first few times after not running for a while. Give yourself a chance.
From a security-analyst perspective, using the owner's fingerprints adversely was fairly anticipated.
Why the US won't pay for good public transportation
It doesn't matter much for his test, because the compiler won't optimize it, but one can simplify the loop to only go from 2...n/2+1 e.g. change the line to:

for(int a=2; a<n/2+1; a++)

That would be the obvious optimization, since 2 is your smallest factor, a factor can't be larger than half your number. In actuallity, knowing a little math gives you that if a factor is > the square root of n, there's a factor smaller than that. So:

for(int a=2; a<sqrt(n)+1; a++)
Might be easiest to think of your privacy as a currency similar to $. The real cost is 800. They can offer you $600 and 200 in privacy, or they could offer you $800, which people would throw a fit over and not buy. This is also not entirely accurate because the raw price is a one-time purchase, while privacy is hard to upper bound and can even become more valuable later on.

Facebook operates on this extreme: it's completely "free" to use, except you have to count your privacy, which in fact turns out to be quite valuable currency. And unfortunately I think we've established several times that at least for social media or even web or apps in general that the other extreme of "pay us more of your normal$ and less of your privacy$" doesn't work well at all.

So it looks like you can't have a "monitor for your face and that's it" because human psychology.
I never said Microsoft would only support their Linux. Just that it would be an option and that some businesses would be interested in it.

I am assuming you believe Microsoft will not be venturing into the world of building their own Linux distribution?
So long as we're all obsessed with job security, technological progress will slow to a crawl.

I know a few people who've successfully outsourced things, mainly factory work. But they designed their process around outsourcing to capture part of the subsidy offered for it. Those who tried to offshore existing systems weren't so lucky. I've read of cases where it's worked out, though.
What did it take to fo that in Java? When I tried Java on a Pent3, it took a few seconds to compile. The BASIC and Wirth languages could do tens of thousands of lines a second on same machine. Then they consistently ran faster than Java.

The only elephant in the room is the bloated, insecure platform sitting on many servers. Competition showed one could do much more with less CPU, memory, or money invested in tooling itself.
Better understood now - thanks for clearing that up.
> Maybe distros like Debian are more stability/security oriented than feature oriented. New version of software often contain new features that it may introduce new bugs.

New versions of software also fix old stability and security bugs.

If software became more secure with age, then the older your version of gnome screensaver, the more secure it would be ( https://www.jwz.org/blog/2015/04/i-told-you-so-again/ ).
I do advocate landing on the fore/mid foot. But after arguing about it for several years I actually did some studying and found about 98% of distance runners are heel-strikers. So you shouldn't worry that much about it. But if landing on the fore/mid foot comes natural to you, you definitely should keep doing it unless you have problems with your achilles.
I take journalist perspectives on technology trends as an anti-signal. They usually don't know what they're talking about, which is why they are journalists rather than technologists.
Nice idea but Bitcoin is no good except as a proof of concept. I have to be able to use Paypal to make this practical.
Because statically linking everything has several negative consequences:

* increased storage space
* increased memory usage
* increased downtime for updates (since more files have
to be updated)
* increased bandwidth usage (total size of download
for update)
* potentially increased security risks

In short, trading off all of the above to simply avoid proper release engineering and simplified dependency management is the wrong answer.

Our systems need less downtime and better security; not the opposite, which is what static linking brings.

That's why Solaris, as an example, does not provide static archives for almost any of the components that are provided, especially libc.
"Build your code with more than one compiler" was good advice 20 years ago, and is still good advice today :-)
supremely fun article & utter bullshit.

part of the optimization constraints for biological brains is to keep behavior flexible across generations.

Also, DNA >> cells >> brain structures can't be the most efficient way to encode behavior. (my proof: it absolutely can't, that would be insane).

The article is saying it would take the max output of the 3 gorges dam in china to simulate a single human brain on a computer, but that the brain itself runs on 20 watts.

Instead of simulating, transpile.
Let's talk about Linux on laptops: am I the only one perennially debating between Debian and Ubuntu?

I love Debian, but Ubuntu seems to have better support.

What do you guys think?
BPF (formally eBPF) provides the programmable tracing capabilities that Linux previously lacked. Things like custom latency histograms. It works with other built in features: kprobes, uprobes, tracepoints, etc.

So yes, BPF is becoming the standard and the future. It made it into the kernel (well, the enhancements needed for tracing did; BPF has been around for a long time as just a packet filter). In other words, BPF won. bcc is likely the future, but we'll see other front ends as well (eg, ply).
Learning is a Paradox
Is there a deep meaning to this new provocative cartoon?
Tmuxomatic: completely different tmux session manager
That Coke paragraph isn't from Facebook, it's the article's author speculating.
Perhaps. I'll admit most of my "evidence" is anecdotal, and I've read the studies about giving free money to tribes in Kenya and the Cherokee and how it greatly elevated them in general, although both studies come with serious caveats. My concern is what a long-term infusion would do, and I'm not aware of any research that's even approached that.

Give someone who was desperately poor more money and sure it will elevate them, for a time, in large part IMO because they are aware the infusion is temporary and they try to make the most of it (whatever that means to them). Make the infusion constant enough to be taken for granted, and IMO there's be a lot less drive to be productive. When you have food, water, shelter, reasonable comfort and entertainment, what's the drive?

Sure some will be motivated by personal passion, fascination, sense of exploration, etc just as they are today. In fact that probably describes most of the posters on this board, and I'd argue that more likely projective argument here is that the AVERAGE person would care about things like art, charity, science, even power and popularity. I don't know where you went to school, and I'm certain this varies from culture to culture, but in my experience the vast majority of students below the post-grad level are in school for two reasons: 1. Someone told them to go and 2. They want a job with a snowball's chance in hell of earning decent money. Those strongly motivated by something other than necessity are few and far between.
There are lots of virtual worlds. There, Second Life, etc. None have become really successful, but they continue to work. Second Life supports the Oculus development unit, although not the production product. (The production Oculus is locked down; only apps from Facebook's store or with Facebook-issued "Oculus keys" will run.)
Debian does not have a logstash or logstash-web package. When complaining about "their repos" did you mean elastic.co's repos?
But soft tissues, tendons, ligaments, bone density...
that takes years to acclimate.

Is this the reason for so-called "old guy strength"?
Well, Google Chrome isn't made from actual chrome either ;)

And while certainly VR goggles may eventually share the same fate as 3D TV, I don't think the comparison is valid (other than they both involve stereoscopy).

It's a very different thing when sub-millimetre head tracking is involved, and when the virtual interocular distance is fixed to what a person's actual distance is. When everything appears to be the correct size and fixed in space, it crosses a significant perceptual threshold. I don't know if you've ever put on modern VR goggles, but there's no way I'd put it in the same category as 3D TV; in fact I don't think I'd put it in the same category as anything else I've experienced either.

And so I don't think you can take the lessons learned from people's willingness to wear glasses for a low-incremental-value 3D TV experience when the VR goggles have a markedly different offering - it's certainly plausable to me (though far from certain) that VR's value is high enough that people will be willing to put up with glasses.
How I wrote this blog post
If you're Firefox user go to 'about:config' and set 'media.autoplay.enabled' to false
The comments at these links should explain:

https://hn.algolia.com/?sort=byDate&prefix&page=0&dateRange=...

https://hn.algolia.com/?sort=byDate&prefix&page=0&dateRange=...

https://hn.algolia.com/?sort=byDate&prefix&page=0&dateRange=...

https://news.ycombinator.com/item?id=10223645

https://news.ycombinator.com/newsfaq.html
Considerations for “Freemium”
I both agree and disagree with you. It's certainly possible to write an engine by jury-rigging stuff you find online/in books around, but that will not lead you far. Modern graphics approach is not even possible anymore with elementary knowledge of trigonometry. You can't do anything complex if you don't have, at least, a basic grasp of calculus. It is just not possible anymore. And, on top of that, you have to be able to parse modern research in graphics in order to understand what is going on and why and then implement that. Most of modern rendering approaches lie on the shoulders of this great paper: https://graphics.stanford.edu/papers/veach_thesis/thesis.pdf but they have since built upon that. You have to keep at it, new stuff is always brought to light, and you have to know both how and why. It's a task that needs special attention, a lot of it, and you still have a game to write - which is a large task in itself. So, my takeaway is that it's great to outsource that large of a task to Unreal/Cryengine/Unity/whatever and concentrate on game design and mechanics itself. Unless, you enjoy writing graphics engines/renderers (I wrote a couple over the years, and used in production. I wouldn't do that again.). Other thing is if you want to do something special, not possible with what's available - streamlining performance for certain cases, some special technique, etc.

One other benefit, apart from outsourcing, is that there's now a large pool of people using the same system. So, you're not working in isolation anymore and you can ask for help when you get stuck - and stuck you will get.
Is there a good explanation as to why tmux forces all viewers to view the exact same content? I very frequently want to see different windows (or whatever the terminology is) on different connections. Screen for example allowed that by default.

(I do know that you can do some complicated scheme of multiple-layers of indirection, but really why can't this just work by default?)
California's proposed crypto backdoor bill turns into a tax on secure devices
The metro areas include a great deal of sprawl where the schools (and even the drugstores) are separated from residential subdivisions by several miles of fast roads with no sidewalks or bike lanes.

Look for the percentage who actually live in the cities, vs. the metro areas.
May I suggest this book http://www.matthewbcrawford.com/new-page-1-1-2/ ? It deals with that topic but the outlook is quite different.
Or maybe we needed to scale to some point with the Turing model for the Church model to assert itself and prove its merits in comparison.

It's a bit more thrilling to think of it that way, as a matter of scale. When space and time resources are scarce, thinking of the computer as a big piece of RAM that we mutate in-place makes the most sense. As we push upwards and outwards into enough resources and a bigger need for parallelism, it suddenly makes more sense to switch perspectives and reason in terms of binding and substitution.
Thank you for your reply. A lot of people are mentioning that they added an SSD. Can I ask why this is so popular? Is the benefit purely disk read/write speed?
Oh yeah, depending on which one, its a bit slow on the BSD side also. I was just looking at why you wouldn't back port bug fixes as a matter of policy, but I'll take your comment as truth although it seems the conversation in the thread is a bit odd on that point. Thanks.
I ported test into java. C++ version runs 16.05s on my computer, Java is bit faster 14.58

https://gist.github.com/jankotek/8fcb8205dbe1b8d131cdac2cc23...
There's something to it, though. For one, creating consumer surplus for others is almost inarguably good moral math, for another, it's often a base layer for satisfaction with your life. It's nice to have an "I did that" moment now and again.

The problem comes in when it's work of low integrity, phony work, make work.

All things being equal, you'll nearly never convince me that simply owning things is morally superior to labor.
The same thing could happen with docker, too.
I wonder, are there bots trawling HN that up or downvote based on keywords or sentiment analysis? Or maybe people acting as such?

The other explanation for a five second response time could be that your comment just happened to have its downvote button right where a reader on a phone likes to swipe to scroll.

---

As to the comment itself, I would like to see more discussion of the "really real" motives for ongoing non-war armed invasions, because all the stated motivations are clearly inane.
s/Bermondsy/Bermondsey and I think it should be cheaper than Canada Water
(Sorry, forgot password to my old account.)

Orphan warnings tell you that you defined an instance in the wrong place.

Things you don't receive warnings for:

- Defining the same instance twice.
- Having code which uses both instances.

Those two should be hard compiler errors, because they break data structures at runtime and make code behave incorrectly.

Sorry, orphan warnings are multiple magnitudes of escalation levels away from what should happen and are focused on something different (code hygiene vs. THIS-CODE-IS-WRONG-AND-BROKEN-AND-WILL-CORRUPT-SHIT-AT-RUNTIME-I-WILL-FAIL-TO-COMPILE-THIS).
mosh only supports reattaching from the originally started client - no attaching from different machines, no resuming sessions after reboots, etc. Also no splits, and no scrollback.

It's also extremely slow. Fullscreen terminals on my 30" display are borderline unusable with mosh.
I agree, except that I think you need more than a grain of salt with this piece. My take on it after 20 years in the business is that there is a sort of hard cap on the percentage of the population that will be able to, or interested in, creating programs using the current technology for interfacing with and instructing computers. Some future development will almost certainly completely upend this whole economic network, because the economic opportunity is huge, but I feel that is still quite a ways off from any sort of production application.
You misread the page. The table of top salaries contains separate rows for each year between 2004 and 2014. I can't figure out how to show only a single year, but it would be about 25 people making over $1M/yr (since most of those rows are since 2010).

I don't see what being not-for-profit has to do with salary caps. But the whole reason that the head coach is paid so much is that the football team is being run as a for-profit enterprise, which is a seemingly rational thing for the university to do, yet I think it makes sense to restrict universities from distracting themselves with that sort of enterprise related to their purpose.
I should add that Linux has two tracing front ends built in: ftrace and perf_events. And perf_events is building BPF support (see lkml). bcc is another front end for BPF. If this is confusing, I should categorize them like this:

back end technologies: ftrace, kprobes, uprobes, tracepoints, BPF

front ends: ftrace, perf_events, bcc

ftrace is hard to categorize: it is a collection of both back end and front end capabilities (although the front end is /sys). Also, it's being renamed to just "trace".
From the video it appears that a WIMP interface tethered to open surfaces, like a wall, is up & running.
She talks about it like Apple was doing this because of incompetence but I believe it is due to malice. Apple doesn't make any money if people keep using their old iBads so it is in their best interest to repair them badly.
And it would be better to move the sqrt(n) calculation outside of the loop (I guess that any decent compiler would make this simple optimisation anyway)
Sure, it's publicly known; related keyword is "eyewash" - just Google it with "CIA" and your find info on it from a number of sources, including the Washington Post.
What "key strategic objectives" are you talking about?

The elimination of Al Quaida in particular?

The US presiding over a series of failed states throughout the world where they endless hunt for terrorists seems like an insane plan - but a plan which seems to be shaping up as the objective of US policy.

The appearance of ISIS etc within the areas devastated by US intervention is entirely logical. Both ISIS and Al Qaida were forces armed by the US with the aim of destroying earlier enemies. It's depressing to even have to outline the pattern here.
Globally means everywhere on earth, not just China.
People see what they want to see. Work in a few ... dying companies and the truth comes out. As they say, when the tide goes out, you can then see who's wearing a bathing suit.
The current version of Zawinski is very old.
> No other operating system but Linux (and possibly some
> BSDs) does this to the extent that the distro model does.

I am not sure this is the case. What other operating systems except Linux and the BSDs offer users a choice for which XYZ should be used? Is the window manager functionality in Windows Vista not provided by a specific version of that software component? I think the version of OpenSSH in OSX is tied to the version of OSX? You don't recognize this in non-Linux+BSDs because you don't have a choice, you use whatever version of XYZ comes with your OS.

> Even the unstable branch is routinely multiple versions
> behind on software.

Respectfully, I think this is a bit of an exaggeration. Maybe this is true for esoteric packages but I am curious to hear why you think this. Unstable has the latest Xscreensaver at the moment. There was a one day lag between the release of 5.34 and a packaged version for unstable.
Cyber war comes to the suburbs