skysight-inc/HackerNews huggingface dataset:
To understand unsafe code you need to understand what's safe code and pointers first.

Basically, safe code is automatically managed to get rid of memory leaks [0], dangling pointers [1], null pointer dereferencing [2], race conditions [3], and many other memory management bugs.

You don't encounter any of these in JavaScript because it's a managed language, meaning there's a garbage collector [4] that looks after all your memory allocations.

Contrary to the managed languages, C & C++ are unsafe and "native" (meaning that they're very close to the hardware level) - it's a wild land where you manage memory manually yourself. If you miss a single deallocation, you're left with a memory leak. If you deallocate a memory region twice, you have a double free situation [5]. So you have to be very cautious when writing code in C & C++. There are many techniques to make it easier (e.g. smart pointers [6]), but not all developers use them.

Rust takes the middle ground: it combines safety with unsafety by using a know-how affine type system with a borrow checker, which allows values/variables to have only one owner. This system has properties of both managed and unmanaged code. "Unsafe" code in the context of Rust means that you consciously turn off the borrow checker, leaving on your own and managing memory deallocations manually, as in C. That makes it possible to interface your Rust code with the native code, at the cost of making you prone to all errors and bugs that are listed above. So it's a good thing to minimize usage of unsafe code, to allow the Rust compiler to check your code for safety.

[0] https://en.wikipedia.org/wiki/Memory_leak

[1] https://en.wikipedia.org/wiki/Dangling_pointer

[2] https://en.wikipedia.org/wiki/Null_pointer#Dereferencing

[3] https://en.wikipedia.org/wiki/Race_condition

[4] https://en.wikipedia.org/wiki/Garbage_collection_(computer_s...

[5] http://stackoverflow.com/questions/21057393/what-does-double...

[6] https://en.wikipedia.org/wiki/Smart_pointer
> Similarly is there a term for mutually interbreedable but distinct `species'?

It's species or subspecies. Animal classification has always been a little bit fuzzy and has some legacy cruft laying around. Like wolves, coyotes, and dogs are distinct animals with different behaviors but are definitely capable of interbreeding.

https://en.wikipedia.org/wiki/Species

https://en.wikipedia.org/wiki/Subspecies

For domestic animals, we have the noun breed, as in breed of dog.
Shadertoy: You write a program that is executed once for every pixel on the screen and produces the pixel's color.

This: You write a program that is executed once for every vertex (the number of which you specify) and produces the vertex's position and color. Vertices are then drawn to the screen using the primitive type you specify: With points, each vertex results in a point (a small square, really); with triangles, three vertexes result in a triangle and so on.
Browsing from Europe, I can see the first page but whatever I click I get the empty result? Does it work in the US?
> This is not wikipedia.

This is Hacker News. I actually expect higher standards of this place.

> I fail to understand how exactly it is news: party friends are not true friends, drug friends are not true friends, facebook contacts are not true friends either.

You seem to believe that "Facebook network" and "real life network" are distinct networks. They're not. Usually there are only few points when they don't overlap - because in reality, you have one social network and Facebook is a convenient tool to manage it. So yes, I if I get into an accident or get thrown into a jail I expect a lot of my Facebook friends, who are also real-life friends, to show up. Hell, I expect many more to come than without Facebook, because there really is no other widespread way of keeping many people updated about each other's day-to-day life.

> And I phrased mine to show that your counter argument works both ways, except facebook is preventing outside people from getting in touch with inside people, not the other way around.

I accept that it works both ways. In most discussions, people actually bring up only the side from your counter, completely forgetting about the one I wanted to remind OP about.

> You may have confused a few concept here, data that is public can also be sensitive, see social engineering.

Part of the problem of social engineering is that people treat "public but sensitive data" as anything but public. If I know your birthday or address or bank account number, it doesn't prove anything about my relationship to you. People who ignore it end up becoming victims of social engineering attacks. I think it's a part of basic security training to make them understand that this data is to be assumed public knowledge.

> a random innocent example: girl has crush on boy, stalks his facebook for birth date, find out his astrology sign, renounces for astrocompatibility bs. Boy unknowingly missed opportunity to explore bases.

Well, so what? Things like these happen all the time with any random things. She may have overheard his birth date in a conversation. Or maybe he put a fake date and she thought it's true and gave up even though both were astrocompatibile and believed in the BS. It's easy to invent such examples to prove just about any point.
At first I thought there couldn't be a solution, since both robots always do the same thing. You can imagine the "duh!" in my head after seeing the comments here…
1. DA's do not drop cases after the defendant refuses a plea bargain, it is so rare as to be effectively nonexistent. Not only that, defense attorneys almost always advise their clients to take the plea bargain because they too know the chances at trial are effectively nil (and because public defenders have far smaller budgets than prosecutors). So to reject a plea bargain the defendant will also almost always be going against the advice of counsel.

And even if there was no possibly of conviction at trial, then how is it just to try to jail the accused anyway with a bluff and threat? Presumably the DA alone has decided the defendant is guilty but believes the trial system is broken so has taken it on himself to try to incarcerate the accused.

Yet all other western nations have far greater restrictions on plea bargains, the UK disallows plea bargains all together. Yet their societies have not collapsed nor become overrun with violent crime.

2. The DNA testing of death row inmates is indeed biased but not in direction you imagine. Many states simply do not allow DNA tests of convicted persons solely because it would reopen too many cases. Likewise is is also necessarily limited to those for which DNA evidence exists.

But even if the aclu testing were 100% biased toward exoneration and even if every single innocent person has now been exonerated by it, both of which are impossibly unlikely, it still means at least 17 innocent people were on death row. Even at that rate there is a far higher percentage of innocent people on death row than citizens murdered in the street. By orders of magnitude.

Even if it were just 17, it means there were more innocent Americans on death row than have died in terrorist attacks this entire decade. If we know there are terrorists in the world then we should at least be aware there is something wrong with parts of the trail system.

4.>if the prosecutor would only let you plea to the charge/punishment he thinks you'd get at trial no ones would ever plead out!

This is why it is done not why it is a good thing to do. We would never justify torture on the grounds it gets more defendants to plead out. So the question is, where is the line of too much coercion and is it currently crossed. I'd suggest where one draws that line is influenced buy whether you're already convinced every accused person is guilty and all the expense of trials is really just a waste of money.
I just started this. :)
Sorry, I don't subscribe to fanon.
Rust has a particular meaning of 'unsafe': https://doc.rust-lang.org/book/unsafe.html There are just 3 things it allows you to do, but that's all it takes to get the necessary bits of potential-foot-shooting bits out of C/C++. One simple use case for dereferencing a raw pointer is if you're working with an embedded system. You know (through specs) that address 0x00b1 in memory corresponds to a physical button press on the development board, so you write a loop that continuously dereferences this address and does something based on whether the dereferenced value is 0 (pressed) or 1 (unpressed). As far as the source level is concerned, you're just dereferencing a magic address pointing at who knows what value over and over again and never changing that value either. "Unsafe" tells the compiler that you know what you're doing. (And sometimes even in C/C++ you'll need the 'volatile' keyword to keep their compilers from optimizing the dereference to only happen once out of the loop.)
How can you seriously answer "SSH and VPS" as apps for development ON the Chrombook? They run on there, but you are not doing development on the machine.

It's like driving a little remote control car to the shops and claiming that you went. You didn't.

I could walk into a library and use a terminal there to type code in, but I'm not doing development on that machine - it's just a dumb terminal.

Now I understand the fact that you can remotely connect somewhere else to do work, but the advent of the microcomputer has meant that you shouldn't need to do that. Power usage for the earth will not be great if everyone runs a device that needs power locally, over a network system that needs powered routers, to a computer remotely that needs power just so you can type code in.

That really doesn't make sense.
Apple Has Come Second to This App in Introducing Speaking Pictures: VoxWeb
Count me in. I'm shooting you an e-mail.
Flagged because link attached to article points to a potential malware site (redirected from tcl.tk).
Cranky Hololens Review: Demo Experience and Hardware
BT Sport Ultra HD – 21st Century Broadcasting
What is this? Is it even possible to build physical Turing Machines?
Researchers show that memories reside in specific brain cells (2012)
Yeah, but that's only because teXitoi's and Joshua Landau's improvements to many Rust benchmarks are still open on the tracker. And it's still using 1.3 (Ok, 1.4 only came out yesterday). Note that this is not meant as an indictment of the maintainer, who is indeed working very hard to keep the site usable, accurate and useful.
What's unlikely is that you'll ever try to understand what it is that I'm saying when I talk about language design goals.
I wonder what the android experience is like in VS? I had to do android studio stuff at uni about 7 months ago and it was awful.
That interview question seems related to the "how to detect loops in a potentially infinite list" question which I was asked at least once.
Why is it that as soon as you talk about software in science, the term "codes" gets used when all software-industry people would say "code" or "programs"?

Example from the article:

We had three codes to review, they were written in IDL [...]

That is clearly talking about programs to review, but uses "codes" as if it is synonymous with "program". So annoying!

Is it just me, or is this usage very typical of the scientific community?
That's still more than twice as long as the current largest module, and now you need to add caches to the system. (To be clear, I'm not involved in Oberon's design, I'm just explaining the reasoning as I understand it.)
Sadly I am also an increasingly disappointed Android user. I have been with Android since the TMobile G1 and with the lack of security updates, the changing of what's acceptable in the UI every year at I/O (sometimes contradicting what they said the previous year), and the apparent lack of direction I too am ditching all my Android devices and going to the iPhone. Looked a Blackberry Leap but it doesn't properly support video conferencing apps for my entire family (FaceTime + Hangouts + Skype).

It's disappointing. I saw a Chromebook used by a "normal" person for the first time this week. He loved it.
The only benefit for me was the fact you could run Linux in some sense on it, and it was cheap and stealable without too much sadness!

But this merging of browser-OS and insecure Android has signed the death warrant on my devices. Goodbye Samsung and Sony.
Right now this is effectively an app program for cell/tissue cultures -- it's somewhat oversold, but as an MIT project spin-off there are signs that at least some thought has gone into it. It's a long way from being as general purpose as even a cheap home 3D printer, though.

Expect a media firestorm of panic over "Frankenstein teens in basement bacterial gene hack horror" about 15 minutes after this hits the regular news cycle, because unfortunately there's no sign that the folks behind the glossy kickstarter have thought about how the panicky public at large will receive this.

When it dies down? High schools will fall on this with shrieks of glee/suspensions and witch hunts (depending on the attitude of the headteachers and board).
We may be waiting forever... time to ditch it for a loss
This line is priceless: “Do you know what the major cause of homelessness is in this country?” Newman asked. “It’s the lack of affordable housing."
Really? So you're saying the reason homeless people don't have houses is because they can't afford them? Thanks for that clarification.
Please don't take it personally; I want to comment on a generic phenomenon.

I don't and I appreciate your reply. The amount of years wasn't a penis-measuring contest, it was to add context to the rest of my statement. The subtext was with time your attachment to the thing lessens. I can see that my statement follows a formula that regularly appears in response to popular topics.

> People vastly underestimate the power of their real social network

Facebook is as real as any other social network.

I feel like this was the most important part of what I was trying to say - Don't underestimate human needs or desires. Don't underestimate the power of real friendship. This is what humans have used for a long time. If someone wants to see you, they will. If someone likes you, they'll like you whether you're on MyFace or only accessible by phone. Facebook is only a recent phenomenon, yet people act like they're severing a limb if they don't participate on it.

But! You make a good point and force me to add a caveat: Facebook did add value because I became good friends with people through weak initial bonds. Because of its ease of use, its casualness and how noncommittal you can be with people over it. It helped me produce some valuable relationships which now happen outside of it. It was a catalyst of sorts. But only for a very narrow selection of friends and later in life.

One of the most pathetic things people do on-line is putting a fake birthday into Facebook (and before that, into the IMs they were using), to see who actually remembers the real date.

I don't know anyone like that. They'd be culled from my circle if that's the kind of bullshit they pulled.
THE 5 BEST DRESSED HORROR MOVIE VILLAINS
TalkTalk hack: Police arrest second teen
Samsung? You sure? How about my Samsung P605 stuck in the past with no announcement or roadmap for updates?

Just like the Motorola before it, and the Sony before that, and the HTC before that. It's getting tiresome.
Over the last five years, the UK has had more well publicized incidents of people having their laptops seized (2) or destroyed at the insistence of GCHQ (1) than terror attacks causing bodily harm (2).

Both of the terror attacks in question were stabbings of individual victims (Mohammed Saleem and Lee Rigby). Both were killed.

So in fact, assuming conditions remain as they've been for the last five years (and for several years before that), one appears to be at least as likely to have ones laptop seized than getting harmed in a terror attack. On the other hand, the harm of the latter is still clearly worse, given that both victims were murdered.

There were also 3 bombing attempts (all by the same far right extremist - Pavlo Lapshyn - trying to kill muslims, but spectacularly failing because nobody were present when his bombs went off).

A further two planned attacks never happend (one involved a plan to bomb an EDL rally, but the would-be terrorists arrived to late and left without doing anything; one involved plans that were never attempted set into life at the time the people in question were arrested). The calibre of would-be terrorists in the UK thankfully seem to be rather low.
Biggest Climate Threat You Never Heard of Is Stronger Than CO2
The second one. It's very depressing. Particularly as I voted to leave the UK last year. The democracy is a smoke screen. The government and the establishment are morally bankrupt. Journalists openly write/boast about colluding with politicians to advance certain agendas. Honestly I just find the fact that the country voted these people in a complete embarrassment.
Oh common stop putting words in my mouth ...

When a specie is invasive and dangerous you thin it by removing the ones that are too close to human habitat, that's it.
Hmm, what I was thinking of as the in-progress desktop client is just a Chrome extension: https://github.com/WhisperSystems/TextSecure-Browser. I hope there's more to come. :\
What Happened to Bitcoin?
The same could be said about startups.
Agree. I took a non-STEM education then transitioned into coding and after many years I now find myself writing proposals, task specifications, and research reports. I increasingly conduct independent reviews of documents other people have written - not just the quality of the English, but primarily whether they expose us as a business to technical or commercial risk because they are confused or misleading.

And after many late nights fixing documents just before their due dates, I've developed some basic guidelines that aim to increase clarity, including:
* Not using multiple distinct terms for the same thing in different parts of the document
* making responsibilities clear - especially in multi-party contracts! E.g saying "X will do Y" rather than "Y will be done"
* Not expecting the reader to guess what the writer means (e.g. by saying "there will be an impact")
* Not using 'this' after a discussion that references multiple distinct things.

The results might not look like the sort of literature I enjoy reading outside work, but they have much more clarity!
Check out the text and shapes/extrude examples at http://threejs.org/examples/
Not the same thing but somewhat related. Some European countries have fines for e.g. traffic offences that are proportional to you income for the year the offence is committed in. I think that this works quite well in terms of meaning that rich and poor have the same disincentive not to speed.
Introducing react-pacomo: Automatic namespacing for className, build-system free
I've worked on memory and performance optimizations on algorithms written in Java by scientists, and I'd definitely agree - code review is really needed. Some things are better handled while the design of the algorithm is taking place.
> . So you have to be very cautious when writing code in C & C++. There are many techniques to make it easier (e.g. smart pointers [6]), but not all developers use them.

Not everyone has security as a requirement. Some people jsut want to write something that is both fast, predicable. Most banks don't make any security demands of internal applications because they are not accessible to the internet. At which point safety is just a way to slow you do.
Wow, this didn't just crash the Tab, it didn't just kill my Browser. This completely crashed OS X to the point that command + option + escape didn't even work, and I had to do a hard restart.

I really wanna see, but I'm scared to try again...
I'm certainly not advocating killing everything that moves and I certainly agree that there are too many humans on earth. I have no solution for that except stop making babies.

However when there are dangerous animals around humans I will certainly not blame someone for protecting his / her family, especially in the case of an invasive specie like the coywolf that is not in danger of extinction.
The infinite tape requirement is a bit difficult to fulfill, but that's true of the silicon implementations as well.
> It's quite likely because we don't want natural predators to get used to the taste of human flesh.

What do you suggest to dispose of human cadavers other than burying them because other methods like incineration and the likes are not as economic as the former method?
Great suggestion, thanks!
I added (state-dependent) mouse-over tooltips for all buttons.
Is it the use of "code" instead of "program", or the use of code as a countable noun rather than uncountable which you find jarring?

The author is a native Spanish speaker, and I've seen fluent but non-native speakers of English make similar confusions concerning other mass nouns and irregular plurals.

So could you be more specific by pointing to how a native English speaker uses it in a scientific software context?
Realtime ClojureScript
Right now I am again convinced that there is no problem, but I have gone back and forth between it makes sense and it makes no sense a couple of times. I probably never looked at it with enough rigour and got things overlooked or confused. But thanks for your effort and I will also read through "Mach's principle and a relativistic theory of gravitation" which I came across yesterday during this discussion, maybe I will finally reach a state of lasting non-confusion.
What we need is better education, teaching critical thinking, and scepticism. If more people had the skills needed to look at a newspaper report and see that it's fabricated nonsense then no one would buy that newspaper, incentivising them to report on reality instead.

Sadly, politicians quite like the ability to manipulate the public via their friends in the press, and very few of them are going to campaign for making that less effective.
The illusion of choice. These papers do run many stories that are anti-government true.

But for certain issues they line up behind the government. The Snowden files story was initially fully covered only by the Guardian -- who have since had a change of Editor after their offices were raided by the security services and equipment smashed. There has been (until now) almost no coverage that the government wants to pass the snoopers charter soon. There is no coverage that the 'emergency' DRIP bill from last year is due for renewal before Christmas. Due to the way that DRIP was rammed through Parliament last year in defiance of normal procedure my MP promised me a robust debate before the renewal. It looks like it will go through without so much as whisper.

EDITED as the telegraph currently has a front page article on the snoopers charter on its website. I hope that there is time for people to lobby their MPs (which is what killed it off last time).
I always forget that three.js is a thing. That's totally what I should start with, otherwise I'll be here forever. Thanks.
Seems perfect on Firefox/Win7 though (even on full screen) :)
> (and those digitized today will probably look like crap on our 8k TVs of the future).

For the purpose of watching it and enjoying the story it is telling, does it need to get any better? I mean, our ears and eyes are not getting better generations on generations.
Working with Codekit and Git
What happened before Facebook? Did dying people get "erased from history" and did everyone just pretend they never existed?

You don't need a Facebook page for people to know you existed.
https://firstlook.org/theintercept/2014/07/14/manipulating-o...

Unfortunately they will be on this site as well and although the mods work hard on detecting voting rings and shills I doubt that they'll be able to detect state level work.
Can you elaborate what happens to the films after it has been digitized?