skysight-inc/HackerNews huggingface dataset:
>> I'm sure that the limited access to grown up news coverage and respectful debate lies at the core of our difficulties, everything else that's an issue stems from the lack of good quality information and an unengaged populace.

This goes to parenthepobia also.

I understand not everyone in the UK is a raging xenophobe, and I'm sorry if my comment lumps everyone together with those guys.

But the truth is that the UK society has indulged in this sort of attitude for a long time. Like you say, ZenoArrow, the mainstream press is constantly banging on that drum and people don't just tolerate it, they actively support it. Some challenge it, sure- but the Sun is still the paper with the highest circulation and the Mail is the second.

And now there's a referendum. It's not just a few people in the pub being a bit rude after a couple of pints. The country is officially thinking of embracing its isolationist tendencies.

I know there's good people in the UK- in fact, regardless of their love for populist rhetoric I think the majority of Brits are decent folk and I owe the country a big part of my own culture if you like. But it seems in this issue, somehow, the nasty ones have won and they'll have their way. And that's because nobody else stepped in to stop them. That's political apathy, as you say.

So maybe a Brexit will be a bit of a wake up call, or make people think again about stuff. Probably not, but in any case I really believe what I said: if this is what the majority really-really wants, they should have it.

I'm sorry the rest of you must suffer it also.
Reference counting time is proportional to data structure sizes on deletion.

You can get a "stop the world" effect with a cascade set of references reaching zero.
Any questions on how this works?
I'm not sure how this disputes what I say about a scanning garbage collector. The number of live objects is proportional to the amount of total memory allocated.

I don't consider dead objects, where the memory is not longer used and free to be allocated, to be part of the allocated memory.
I don't want to be "that guy", but anecdote is among the least trusted forms of evidence.
I don't like how the author fusses about someone else who was arguable also similarly being abused by the TSA:

"Behind me, I could hear a woman making a big scene because her “flight [was] at 4:15,” and her gigantic bag was clearly never going to fit on the airplane. She claimed multiple times that “the lady” told her she could bring it through security."
There is a lot of data on this topic.

This is a good starting place: http://www.amazon.com/Garbage-Collection-Algorithms-Automati...
Temporary work around - get a TSA compliant laptop bag. Yes, it means doing something different to accommodate them, but in the longer term it saves you this pain.

And convince the TSA to do what we do at Indian airports:

plinkplonk 9 minutes ago

How this works in India.
When you put your laptop in a bin, the security person puts one of two identical tags (pieces of plastic with identical numbers on them) into the bin, on top of your computer and gives you the other one.
When you finish your patdown/metal detector etc screening and want to take your computer back, you give the security person at the other end of the line your tag, she looks around for the bin with the identical tag, and hands you the contents of the bin and takes your tag back.
Not foolproof/fraudproof, but it seems to work in practice.
reply
People generally do what they want to do, but they base their decisions on incomplete information on what they are going to get. Lots of crap wouldn't get its clicks if it didn't appear to be something it isn't.
> Who gives a shit?

I do. That's probably why I won't be running an effective business any time soon. Being nice and not fucking people over doesn't get you far in highly competitive markets.

I strongly second what 'nitrogen wrote[0]. This is very much about ethics.

> Is it ethical for a shop to advertise its products in the shop windows when the people running the shop know that there are higher quality products available in a competitors store?

In my opinion, no. Basically, if you know your product is shit, you are morally obliged to make it better or find something else to sell; lying to people to make them buy your stuff instead of something objectively better is fucking them over for your own gain.

Think about it the next time you find yourself on the receiving end of such businessmen.

[0] - https://news.ycombinator.com/item?id=11759628
What the Money Folks Are Saying
You know, this is a great example. Let me continue the kitchen analogy.

Those of us born in the West are lead to think that being stuck in the kitchen sucks. That people stuck in the kitchen will suffer and/or be in a constant state of revolt and unhappiness. I know thats how I thought before I left (whether I realized it or not). Consequently we think that America is quite far from being stuck in the kitchen because things don't look remotely close to what we imagine being stuck looks like.

Let me tell you what's truly scary about China: the censorship, authoritarian rule, all the "stuck in the kitchen things" are a lot more palatable than we are lead to believe. The Americans have a cartoonish view of authoritarianism so-much-so that we will not recognize it on our own shores. That terrifies me and that's why I left my comment. I wish I had the words to explain this better.

I can't change China. Even if it was democratic I don't and shouldn't have a voice here. It is not my country. China belongs to the Chinese people, not to me. What I can say is that I don't want to see America copying China with respect to civil liberties.
Sort of. The green area is not nearly as dramatically different as the xy diagram makes it seem, while the red and blue areas will appear more different in the u'v' diagram. (Of course, chromaticity diagrams in general aren’t a perfect tool.) The “Gah” is directed at Wikipedia, not at you.

You can see some u'v' diagrams alongside spectral power distribution charts of specific real-world displays in http://cias.rit.edu/media/uploads/faculty-f-projects/1304/do...
Terms and conditions word by word
Premium Virtual Reality Viewers, Awesome Build
Yeah. Combine that with the fact that protesters are thrown in jail willy nilly and the above comment still stands
I think you need more than just fetch-and-add.

Think about this:

assign(value)
{
root.ref = value;
}

needs to be expanded out into:

assign(value)
{
if (value)
inc_ref(value)
tmp = value
atomic_swap(&root.ref, &tmp)
if (tmp && dec_ref(tmp) == 0)
free(tmp)
}

If you don't use an atomic swap, you race with other threads trying to assign to the same location. You can't decrement the destination before incrementing the source because they could be equal. You can't make the logic conditional on equality because it races.

You have a harder time with this:

a.b.c = value

You need to inc-ref each step in the chain, keeping them in temporaries, to ensure they don't get dec-refed out from underneath you on another thread.
In my conclusion I mention why there are no benchmarks, it's nearly impossible to construct a realistic comparison between the two techniques.

When I cosnider tracing GC my primary arguments against it have nothing to do with performance at all, yet it often comes up as an argument against my position. This article is attempting to address that critique, by saying I doubt you could compare the two directly.
Press Release Fireman Invents Cutting Edge Wearable Technology
The World's First Charge-free, Open and Closed-loop NFC Payment Wristband Secure Entry and Emergency Contact Information Wristband heralding from Sarasota Firefighter and Business Owner.

Troy Pittman, Sarasota, Florida, has developed the first wristband that combines contactless payments (via NFC, Near Field Communication), emergency contact information, mass transit payment and key fob technology into one slick, stylish, battery-less, self charging, 100 % waterproof wristband. Not only revolutionary in the world of wearable technology, VieTagz even offers a great color selection.

The global wearables market is expected to reach a value of 19 billion U.S. dollars by 2018, VieTagz is already heading the game.

First there was Apple Pay, but with VieTagz, you don't even need the phone.
Features of VieTagz:
• NFC based communication (means contactless, wireless and battery-less for true freedom and mobility)
• Visa® and MasterCard® compatible payments offering true utility.
• Compatible with US banking debit and credit
• Supports open and close loop payments for maximum versatility
• Proprietary “Surf-locked” setup data exchange means the VieTagz bands are 100% Waterproof with no penetrable surfaces
• Language based interface (emergency contact information is delivered to the first responder’s phone’s native language.

• Constructed of TPV, a flexible, durable and hypoallergenic material
• Sleek design in a variety of active-lifestyle colors
• Protected with the latest generation of Secure Encryption Elements to aid in Fraud Protection and Identity Theft
Secure access made available anywhere in the world via the browser and mobile browser based VieTagz management platform
• Energy harvesting technology – no battery required (yes that’s right, no batteries)
VieTagz can be reached via http://bit.ly/1QU8cIW ,by calling 941.650.5941,or email at tpittman@vietagz.com
So in summary: it's great because it makes more money.

The implication that this leads to a better movie offering is dubious. Would you say better movies are coming out now than 10/20 years ago? Even if more movies are coming (which I would find very easy to believe), I doubt (as in: I'd need to see some evidence) it's a consequence of digital distribution rights.

The tomato example is also bogus. Yes it's inefficient if this restriction does not have a raison d'être. But (completely) free markets do not magically create a societal optimal.
Another thing is the usual issue that tends to get omitted, how GC enabled languages like Modula-3, Oberon(-2), D among others, do allow for a finer control of the GC.

In Modula-3, I can either fully rely on the GC, do safe global and stack allocations, or if really needed make use of manual memory management in unsafe modules.

So it is not as all allocations need to be on the GC heap, in GC enabled languages.
What you wrote is a very twisted rationalization of screwing people on purpose. Sure, if you create several things and watch which ones people like more, you can say that those people do what they want. But when you start purposefully designing tricks to e.g. advertise you have information, and then sell them ads and bullshit, you're doing active harm to people. It's not subjective at all.
My guess is that the person who took it was acting with an accomplice, possible the one who caused the distraction.

They would make an exchange in a place where there are no cameras.

The person who took it would have a story ready in case she was challenged.

As for the TSA - they want to pretend that the incident never happened, because it would make them them look bad.
> Individuals take responsibility for themselves. Countries can too

Sure. Controlling the influence of Western ideas seems to be exactly they way they're doing it. Reasonable IMO.
Very sad welcome because somehow working in advertisement industry is considered a respectable occupation in 2016. The cognitive dissonance of the society is sometimes mind-boggling.
You don't have to clean up everything at once - it's possible to put items on a queue to be cleaned up when refcounts hit zero, and you can then control at what rate the queue is emptied.
The only commercial alternative is OS X so you end up with vendor lock-in either way.
Especially since it's a blatant security lapse: Put something through the x-ray, leave it there, as the staff is used to things waiting around for a while, and then walk away as quickly as possible before the bomb you left in it [1] blows up the checkpoint and everyone waiting. They're providing a convenient way of dropping off explosives and leaving them that reduces the chance of a guard noticing you intentionally leaving something behind and reacting.

Then again, we know very well by know that these checks does not have much to do with actual security.

[1] I have no reason to believe they'd react to a bomb with sufficient urgency to stop anyone from walking off. I've left bottles of liquid in many times (by accident), and they don't usually notice. They have noticed my sons game console (was bringing it with us to his grandparents and didn't think to take it out of the carry-on), but it's not like they reacted with any urgency - they just put it aside and waited for us to come over and point at it before dealing with it.
Apparently there are many shades of 'free'

The UK scored 24 out of 100, 0 being the most free.
> Reference counting time is proportional to data structure sizes on deletion.

The actual garbage collection in all collectors is proportional to the amount of data that needs to be deleted. There are plenty of implementations of refcounting where the data is pushed into a freelist or cleaned up deferred.
There is a good chance that the person who took the laptop was acting with an accomplice, and that the woman making the scene was involved.
I wouldn't put much weight on GitHub language stats because there's a lot of duplication, and people check in libraries and tooling (usually JS, it seems) that overwhelm whatever language they're actually using.
To be fair, MacBook Pros pretty much all look the same on the outside. She probabaly just thought it was hers, stuffed it in her bag, and went to catch her flight.
But if you have both atomic primitives available, why would you ever do that?

Keyword is atomic. Fetch-and-add returns you the previous value atomically.

-------

Edit:

This (below) is obviously a buggy reference counting algorithm.

-------

In freeing (decrementing reference count) thread A, if it was 1 before (returned value) and A added -1, the object can be freed.

Because the operation is atomic, only one of two things can happen:

1) Another reference adding thread B increments it before A decreases it. So A doesn't see 1, thus won't free the object.

2) B increments it after A decremented it. So B gets zero and knows the object is invalid. (Edit: Oops, a bug: after B increments refcount, when thread C tries to do same, it would get 1 and conclude the object is valid!)

If B is allowed to allocate the object again (invalid state, refcount == 0), careful synchronization needs to be done remove any races with A's deallocation.
Look for someone who works with a lab that does neurotransmitter testing.

If you're not psychotic, but plainly depressed, the question is basically if you need your serotonine or your dopamine/noradrenaline boosted. A blood test can tell you that.

Other than that:

. Go outside every single morning. A study in a german hospital showed that 20 minutes of daily exposure to daylight can reduce meds by 30%.

. Go running for 15 minutes every single day. I say 15 minutes because it's supposed to become an easy "no-brainer" ritual.

. Keep a diary in which, every single day, you make a list about strictly only the positive things that happened that day.
Yes, I have found this to be very practical, but unfortunately they don't do this at all airports.
It's not a SPARC, it's an ARC. It's a very different processor.
> Luckily, I am meticulous about encryption and about backing up, so I don’t think I lost any data nor gave anyone else access.

What is the OP's setup (and what are some alternatives), that he is so sure this was the case?
Interesting, i think there is a telk to have here. Because Phoenix is not Rail. No part is forced. Everything is modular. Maybe there is a need to put an emphasis on that more on the main guides.

Because in the end, the only "mandatory" part of Phoenix are Cowboy, an Endpoint. And that is all. If you use Channels only, you do not need a Router.
> Let me tell you what's truly scary about China: the censorship, authoritarian rule, all the "stuck in the kitchen things" are a lot more palatable than we are lead to believe

China is livable for people so long as they do not criticize the government.

People who do so are often thrown in prison indefinitely without trial, and only released if they sign a form saying they will never protest again.
Remembered but not understood, the past can tempt us to new mistakes. The memories of Munich have impaired the judgment of American leaders in a number of instances over the last seventy years, it seems to me.
The state of DevOps in 2016
Link to the actual report: https://freedomhouse.org/report/freedom-net/freedom-net-2015

Let's not kid ourselves, though. The US scored 19 and UK scored 24 (on the scale of 0-100, 0 being most free)

Censorship is alive and well in the West.
Pipelines is free during beta [1]. The post-beta pricing has not been announced.

[1] https://confluence.atlassian.com/display/BITBUCKET/Bitbucket...
you bloody pirate!
http://www.intel.com/content/www/us/en/architecture-and-tech... I believe.
>> I find it completely unimaginable that you would be forcibly removed.

The only reason I'm allowed to live and work in the UK is that I'm an EU citizen. If there's a Brexit (or a Grexit for that matter) I'll have to get a working Visa, or possibly apply for a residency.

Neither is certain, and I'll be at the mercy of whoever examines my application. That's not a good place to be. And I'm worried that in a post-Brexit Britain, people will feel justified to act on xenophobic sentiment.

There will also probably be many other things that change- for instance, as an EU citizen I was eligible for a tuition fee loan for my university degree (I'm still repaying it) and I paid less for my Masters than overseas students. So there may be financial consequences also.
It is well-known that the amortized cost of naive reference counting is considerably higher than that of a modern tracing garbage collector (regardless of whether you also support cycle collection). It is also well-known that non-naive RC-based approaches generally make it easier to achieve lower pause times (though cycle collection may throw a spanner in the works).

Attempts to bring amortized RC performance up to par with tracing GCs [1] generally require an underlying machinery that is just as complicated as that of a tracing GC; you will typically rely on stack scanning to implement deferred reference counting or non-trivial compiler optimizations with the goal to eliminate or reduce the overhead of local pointer assignments and you may still be left with a more expensive write barrier, so you may also have to gun for a hybrid approach.

Advantages of naive RC are that it is easier to add to an existing language without extensive compiler/runtime support (assuming you don't need cycle detection) and that it can more easily coexist with other approaches to memory management; amortized cost is not one of them.

[1] Such as https://www.cs.purdue.edu/homes/hosking/690M/urc-oopsla-2003...
The codebase can easily get big enough to miss it transmitting your credentials if you don't spend hours looking at it. Even in a 100 line script you can overlook a well hidden request, especially if it's extra data included in an existing request.
I can't help but get smug by the fact that I can't watch a Volkswagen ad in germany because it's blocked by GEMA on youtube.
CCIX Accelerator Consortium
That is a fair point, however, in that case, there would be a computer left over on the belt, that the author would've seen when he got out of the scanner.

On a side note: do people not keep their laptops in sleeves (even when in backpacks)?
I have to agree here. Its a good thing that Django doesn't have the kind of overwhelming power that Rails has in the community, which is pretty awesome! There's a lot of diversity, like flask, pyramid and others; although Django does have a large part of the pie.
There’s a lot of personification and anthropomorphism of technology in this piece that distracts. Use the best tool for the job.
Works means "is technically feasible".

It doesn't matter if you think it's a good idea or not: the ruling class in China thinks it is. And any government who thinks it's a good idea in the future knows it's technically possible based on China's example.
As ridiculous as that was I can't blame the politicians for that kind of absurdity. The media would eat them alive if they weren't shown to be 'active' and god forbid something happens again and nothing had changed.

It's a sad situation, modern democracy and twitter have merged into a flurry of overactivity and fake outrage.
This is because the Firefox preference is useless - it only disables the clipboard events, but not the clipboard access from any other event. So the demo simply hooks the keydown event instead. Have a look at the source, it's really quite straightforward.

What browsers really should have are a standard "Ask & Whitelist" dialog for all of these security critical features[1]. It seems Firefox even used to have this feature, but it and the corresponding addon have long since crumbled to dust[2].

Unfortunately browsers are no longer controlled by hackers who think about all the implications of a feature, but by corporations who think about money, and us hackers have to spend inordinate amounts of time trying to play security whack-a-mole, or be forced to give up and use our browsers like sheep, the way the corporations want us to.

[1] There's many more, including utterly ridiculous stuff such as telling websites the battery charge status of your device (and if your charger is plugged in): https://gist.github.com/haasn/69e19fc2fe0e25f3cff5

[2] http://kb.mozillazine.org/Granting_JavaScript_access_to_the_...
That works well for music. Music services don't have to ask permission, they just have to declare what they broadcast and pay the rights. As a results services like Spotify have almost all albums from all artists (at least the major one).

Why can't we fix the law so movies can work the same?
That survey compiled results from those who replied to a Docker marketing email. The numbers are, near as makes no difference, pure fiction.
Google Data Studio 360
Yeah, I started to copy through a text box (usually the Windows Run (Win+R) box, which isn't exactly safe now that I think of it...) to strip formatting some time ago. It's pretty much necessary whenever you want to paste anything into GMail web interface. The web is getting more ridiculous every day...
Making Cockroaches Fly High
Years pass but I still prefer languages with reference counting over languages with proper GC.

Main reasons for me:

- Reference counting is deterministic (barring refcnt loops, which can usually be avoided by a careful programmer). Each run of the program will allocate/free memory in _exactly_ the same way.

- No latency spikes. "When GC kicks in, the latency must raise"

- This means it's way easier to understand the performance characteristics of code.

Having that in mind, there are couple of problems with refcnt:

- Cache spill. Increasing/decreasing a counter values in random places in memory kills cache. I remember one time I separated the "string object" data structure in python away from the immutable (!) string value (python has usually C struct object followed in memory by value blob). The python program suddenly went _way_ faster - immutable (readonly) string values in memory were close to each other, mutated refcnts were close to another. Everyone was happier

- When dealing with large data (binary blobs), refcnt programming languages have a tendency to copy over needed data. Copying over is in many cases slower.

In general I'd say it's the last point that is critical. The big question is less of "refcnt" vs "gc", but how to deal with binary blobs. "Copy over" pattern (C style) and newer version: "slices" (golang style) VS "proper GC" style of trying to guess how may pointers point to a blob.
Interesting, I wonder if they always planned to launch their beta today or whether it got expedited after Gitlab's announcements over the last couple of days.