skysight-inc/HackerNews huggingface dataset:
CUDA is a language that specifically targets NVIDIA GPUs. OpenCL is a general-purpose framework for heterogenous compute tasks. You could be running against a FPGA, a DSP, or even a manycore CPU like Knight's Landing. It's definitely tied less tightly to the hardware, and that's really my main objection to it too. But from AMD's perspective it's an abstract framework, and they are providing stub functions for others to implement.

What you are looking at is largely just code to compile a kernel and launch it on the device, basically a makefile in C. You can really just ignore most of the boilerplate until you need to modify it.

"Hello World" is not a particularly meaningful program on a device with no console or LEDs to blink - why don't you try something simple like summing every number from 1 to N? Or, a Monte-Carlo simulator to calculate Pi? Easy to code, easy to verify...

CUDA is also quite verbose if you are playing by all the rules. You are still supposed to specify your target device, verify your capabilities, free your buffers, check your async return values, etc - and if you don't then you will get weird behavior down the road until you figure out what's going on. OpenCL might try to helpfully ignore misbehavior too, I don't know for sure.

Personally I find both CUDA and OpenCL to be quite verbose and when I write for them I use a library like Thrust or Bolt, which takes most of the boilerplate out of it and feel much like writing C++ STL code. It also allows you to work efficiently at a much higher level, and then come through after-the-fact and optimize the parts that are actually slowing you down. It also provides stuff like automatic occupancy tuning and so on. You can trivially switch between Thrust and native kernels by using raw_pointer, so it's great for sorts, scans, etc that "glue" things together. Use it like you would Python, bearing in mind that round trips to host memory are slow (but perhaps not fatally so!)

http://docs.nvidia.com/cuda/thrust/

http://developer.amd.com/tools-and-sdks/opencl-zone/bolt-c-t...

One useful trick is that you can write your CUDA functions inside a Thrust functor which iterates your data elements. So you can use a count_iterator which represents the index of the data element(s) or grid processing element in question, and then you write a functor which uses the counter value to load a data element from a pointer stored inside the functor, and does some work on it. This gives you a "kernel simulator" as an intermediate step between array-wide functional programming and native __device__ functions.

This also provides a great place for indirection so you can easily swap between a GPU backend and Thrust's OpenMP CPU backend.
BMW to Let Car Owners Rent Out Vehicles Like `Airbnb on Wheels'
Well if Bob knows that they know, what does he have to lose by confirming what is abundantly obvious?

I have a 9 year old kid at home who demonstrably both can think that sort of stuff up, and WOULD if he had anything to gain from doing so. (As far as I know, he reserves that kind of behavior for tricking people in online games...)
I'm not sure what are the exact conditions for the Tesla OS to be overridden by other internal systems, 50 km/h was just a placeholder value for "lower speeds".
I avoid going over 80, and try to keep lines even shorter, around 60 is when I start trying to break the line.

I very often put separate function arguments on separate lines.

I'm also always frustrated at the syntax of most non-Lisp languages and how difficult it can be to break lines sensibly. (Infix operators, the ternary operator, JSX, period syntax for property access, etc).

I like to use large fonts because they help me focus. And I also like to sometimes be split screen with a browser on my laptop, so "everyone has a widescreen" is irrelevant for me.

Narrow code when composed nicely still allows widescreen coders to use splitting along the vertical axis, but long lines are difficult for me to deal with with my (perhaps idiosyncratic) ways.
Privacy should be the default.
Nice but I don't see anything for the -WRTs (dd-wrt, openwrt etc.)
No limits. I believe in dividing code into multiple lines naturally without regard to how many horizontal characters a few lines of code will end up getting to.
Ask HN: What do you do when 50%+ of your time is fighting your will to quit
I've been struggling lately, I suppose this is what many would term 'burn out', with spending half of my work day resisting the urge to just get up and walk out or submit my two week notice. It makes it extremely difficult to focus and get things done and acts like a distraction multiplier. I'm starting to think maybe I should see a psychologist.

Any feedback, blunt or brutal, sympathetic or encouraging, is greatly appreciated.

Thank you.
there are of the shelf players supporting the EME (see above), thus you can just use one of them. It makes actually sense to seperate the player from the decoding (MSE), as the browser manufacturers might not be able to provide a good implementation of streaming formats. We saw this already with poor implementations of streaming formats/players on TV-sets, so it's good to have specialized and good working player vendors/projects.
Not on my computer: https://github.com/StevenBlack/hosts
Not if your rail isn't grade separated. You can just as easily build grade-separated for buses or, even easier, have bus-only lanes.
Another interpretation of the same data is that GAAP is so bad at representing a company's operations that both investors and firms choose to not make decisions off the statements. I don't know of any company who, internally, lives and dies by GAAP reporting. Sophisticated investors know this.
I generally try to aim for 80, but have 120 as my "hard" limit. In find it a good place to have two files open side by side and still have a little bit left over for editor UI stuff.
There is are checklists[0] to determine contractor vs employee, which vary slightly from location to location, but maintain roughly the same ideas. Companies like Uber want the upsides of having employees classed as contractors, but not the downsides. They should be forced to pick one or the other, rather than trying to straddle the line.

[0]: http://art.mt.gov/artists/IRS_20pt_Checklist_%20Independent_...
Always tell a story and do not be afraid to squash commits
It's on my PC.
Oral History of Dan'l Lewin
We're definitely not positioning this as a datastore or database. I only mentioned IMDB because it's the website that's closest to what we do.

"I am also not sure people are passionate enough to actually edit stuff about some random tech guy or even some software"

TheyMadeThat has more than 'tech guys' and software. We have cars and mid-century modern furniture as well, and technically we can store data on books, music, and anything else that people are passionate about. We're pretty sure there are people obsessed with those things as well movies.
At the very least, answer this: What are the nodes and edges in your graph? What information is associated to them?
I remember switching from Fink and Macports because most of the time both of them would break or break something important.
never underestimate people's principled paranoia rofl
I'm not sure how this is "needed" just because it is possible. Setting up a small headless git server takes 2 minutes without sharing your code with every intelligence agency on the planet.
Is there another standard model that is better at representing the company (either from a company or investors perspective)?
It's worth noting that AIP's functionality requires you to trust Google -- the data is received by them, but their design specifies that they mask it before it's processed or stored.
To my knowledge, the Nordic countries and Switzerland have criminalized hate speech, including speech that might be found insulting by one of several protected classes.

In the U.S., hate speech is legal unless it will immediately lead to violence or a criminal act--the so-called "fighting words".

So, distasteful as hateful speech is, there is an example of how the U.S. protects a free society.
Life in most places has improved dramatically - literacy, healthcare and life expectancy, human rights, access to food... Nearly nobody is living lives that are "fundamentally as bad as they were 40 years ago".

There are literally millions of people worldwide, who are healthy, or married, or well nourished, or spending more time with their families, for whom it could not have been possible 40 years ago. I don't think that warrants a flippant, self-righteous attitude.
Excited to see this! The site hadnt been usable for quite some time now.
No, "Dude, you rule" is definitely gender-neutral by now.
>is a package management tool

This. The reasons they articulate for suddenly deciding on performing this data collection, and for doing it via GA are laughable. I am sufficiently annoyed at this because of the generation of yet another outbound data stream from my system, but the fact that in all likelihood the project will do nothing with this data really annoys me. There is zero need for this in a package system.
> a secondary reason to a vague theory of Orwellian mind control

A look at parent's username makes it clear why the Kafkaesque reason takes precedence.
That is a much more useful example program, thank you.

The problem is that the "canonical example" pretty much remains what I showed. And what's bad about that example isn't simple length but the way that the creation and manipulation of kernels and threads remains entirely opaque (in contrast to your example I think).
>One has to wonder what the rationale for all of this is -- what are they afraid of? If they are suddenly left to their own devices, are these people going to starve to death? Has no-one ever been faced with the prospect of having to find a new job?

Practically. A little perspective on Japanese culture might help to answer this question.

The Japanese value company loyalty, tradition, and conformity. They have more than 21,000 companies that are more than a hundred years old. [0] From a 'pure market' perspective, most of these companies should have given way to market forces, yes, but Japan is deeply averse to what that entails for individual workers.

[0]https://www.tofugu.com/japan/oldest-businesses-in-japan/
When developers happen to be doing user support on the mailing list/forum/whatever you use, the importance of writing quality technical doc becomes more readily apparent to them.

The volume of questions diminishes as the doc improves, they become more interesting, and you can get the simple ones out of the way by sending a link without remorse because you know it does contain exactly what the user was looking for.

Of course it takes a little while for this to really engage, you'll need to kick a few people in the bottom to get past the initial investment, but in my experience it definitely works.
As in, people want privacy at the expense of volunteer time.

Simple solution: Charge people for using Homebrew who don't want to send analytics in, fund Homebrew development with those funds. Otherwise, its an external cost being foisted on the volunteers by developers who want privacy at the cost of additional volunteer time.

EDIT: The tone of this thread is the exact problem with open source projects and participation. "I want a say, but I'm not willing to contribute in any way except use your tool you're providing for free." Sad, but expected.
Definitions vary, but I once wrote these notes for the definition in a security policy. It is probably more broad than what some people would write.

Malware
-------
- Any software that actively attempts to do any of the following:
- Do harm to the system, applications or data
- Deliberately weakens system security
- By changing system or user security settings
- Contains or installs backdoors
- Downloads updates as executables
- Use executables to wrap otherwise readable data
- Expects higher or more privileges than is needed by it's function.
- Circumvent the wishes or intention of the user
- Makes it self the default application for file-types that already have an application assigned to them
- Inserts itself into other applications against the users expectation (eg. as a plugin)
- Uses the privileges of other applications to circumvent system policy
- Hide its activity from inspection
- Anti-debugging, and other rootkit like behaviour
- Use "dark patterns" to trick the user into performing or agreeing to some action
- Installs toolbars, etc.
- Compromise the privacy of the user
- Phones home, access data irrelevant to it's function
- Resists removal
In the least abrasive way possible – If you're a self-described 'noob', I feel like investigating router exploits is going to be more confusing than anything. Embedded devices can be quite different from what you're used to.

With that out of the way – the Usage section of the README is pretty approachable and about as straightforward as router testing gets: https://github.com/reverse-shell/routersploit#usage
Says the company that offers the service? There's traces , ips, etc. everywhere, not impossible to correlate...
Flex and Bison in C++
Homebrew maintainer here. Remember that we didn’t put these analytics in place to get rich or get free beer at the local pub. Screwing up the stats won’t help anyone.

We currently don’t have any overview of our userbase; we don’t even know how many people use Homebrew. More importantly, Homebrew currently only bottles the default options but we know some people use some options that cause the formulae to build from source. If tomorrow we see that e.g. `brew install foo --with-bar` is run by hundreds of people everyday we could start bottling it and saving time to everyone. But right now that’s completely dark; the only insights we have about the usage is people opening issues/PRs.
Depends on what exact policies you're talking about really. Marijuana prohibition especially has been majority-unpopular for a long time, and legalization majority-popular for anywhere from 4-7 years now, depending on the polls you use.

Other drugs are definitely more controversial.
They send more than that, have you checked out the code? Every time you do an install Google gets to know about it: https://github.com/Homebrew/brew/blob/acc9a7ca8554bc2413dee2...

Maybe this is sufficiently private, maybe not. I'm not a security expert.

Maybe GA's fingerprinting heuristics are advanced enough to know that because user 1034324234 installed spacemacs at 4:01 and I visited the spacemacs documentation at 4:01 that there's a decent chance I'm user 1034324234.

Decent enough to see if the pattern happens again. After a few rounds of this, it's close enough to serve me ads based on user 1034324234's install patterns.

:shrug: doesn't sound crazy to me.
It really depends on what type of startup you are trying to create. If you are trying to create a high risk, high reward startup with million dollar cashouts (a potential 'unicorn'), then yes, you need a lot of capital.

If your plan is to create a sustainable small business, with a small number of employees and a reasonable but consistent rate of return, then you don't need a ton of capital.
"Hello World" is not a particularly meaningful program on a device with no console or LEDs to blink - why don't you try something simple like summing every number from 1 to N? Easy to code, easy to verify...

I'm not trying to run "hello world", I'm looking at the easily accessible OpenCl code and seeing "hello world" as the most common example program.
Or so they claim.
Violence is trending downward, in the US and worldwide.

Racism, sexism and homophobia are also trending downward, at least in the US (we just barely legalized same-sex marriage, a significant step forward).

Concerns about these things have spiked the last few years, but that doesn't mean that these problems have spiked.

And having products that solve my problems isn't just materialism, it does matter - It matters that I have products that save me time and let me focus on more important things. It matters that I have better products. It matters that my child is safer than 40 years ago from better playgrounds. It matters that my son's mom has an app that can send me her location with a tap of a button when she's having a seizure. It matters that I can take cheap online courses to improve my career. It even matters that I have more music in my car, because that makes me happier.

Edit: Adding this because it's awesome: http://www.gapminder.org/world/#$majorMode=chart$is;shi=t;ly...
Stripe: Bring Your Own Team
How did you determine this?

Comparing the list at CVEDetails.com [1] [2] would seem to support this at first blush, but this is because the iOS list contains Safari and WebKit vulnerabilities, while the Android one does not include Chrome, Blink, or WebBrowser/WebKit vulnerabilities.

If you include Chrome [3] they look to be about even.

[1] http://www.cvedetails.com/product/19997/Google-Android.html?...

[2] http://www.cvedetails.com/product/15556/Apple-Iphone-Os.html...

[3] http://www.cvedetails.com/product/15031/Google-Chrome.html?v...
Just to add, I've felt this same way for a while now. Not with work, but just life in general.

It's hard enough fighting the world to survive when you're fighting against yourself too. There's a very strong pull to just "giving up" to resist. Luckily I guess I just have too strong of a self-preservation instinct.

I've been considering the same thing as you though. Just giving my notice, moving away somewhere new and starting fresh. Maybe go back to school for something, start my own business, make new friends. I've even been considering just going on a short vacation somewhere by myself to just "clan out" my cache and temporary files. (IT joke there I guess.)

Seeing a psychologist sounds like a good idea. Sadly there aren't any good ones where I live, which is just another reason to move.

So that's at least my take on this. For me it seems that just up and going, and starting somewhat over feels like my best option.
Sure, though adding in note is a kind of signaling -- a social mechanism that helps teams come together. If someone is working as a contractor, is relatively isolated from the team, then there probably won't be a need or even a desire for the contractor to add notes to the client's management system, for the sake of signaling to the in-house development team. On the other hand, some sort of notes tend to make many non-technical clients feel better and be on top of things. (And some people are confused by signaling; a good communicator would be able to suss that out).
DRM is a huge problem. A huge problem for legitimate users who purchased their media from legitimate sources. It's a huge problem for content creators as it pushes consumers who would otherwise have purchased media to pirating it because pirating is the easier path. The only people DRM doesn't hurt is pirates.
I'm curious whether big companies like Google or Facebook have a standard project management process or software used by all teams. I work at Mozilla and every team is doing their own thing, which can make collaboration difficult. We have Bugzilla bugs, GitHub issues, wikis, Mana (Confluence's wiki), Google Docs and spreadsheets, Trello, Smartsheets, Aha, and JIRA. Even when people agree there is a problem, no team wants to be the one to change their process.. :)
LittleSnitch also makes you totally paranoid about how almost every piece of software is spying on you without explicit consent.

Also, Microsoft really needs to clean up their domain usage, because it takes 999 permission rules to run Office.
As I see more applications try and hit remote ad servers, I feel even better that I'm blocking all of these ad servers with my /etc/hosts file using https://github.com/StevenBlack/hosts. The update will be a no-op from my machine.
As a meta-note, your comments are coming across in a very hostile way, in case you didn't intend them that way.

In an open source project, the best expectation is to play by the rules of the existing project and try to integrate your changes in the way that works well with it. There's no One True Open Source way - there are a lot of projects, each with their own cultures.

What Google's done is take an internally developed thingy and transition it to LLVM. That's a pretty non-trivial effort for any company. I don't see why having it be open source has any requirement for a dump of the internal version. Earlier commenters noted already that a large fraction of the code is already present in LLVM and has been streaming in for some time now, so -- why the hostility?

Collectively, I don't think "our" (the wider community) goal is necessarily to have a bunch of junk forks out there that can't be compiled or used. Working, thoughtfully contributed code is much more likely to be widely used and have a big impact, and that's a standard we should be happy if companies meet. LLVM isn't a quick hack project - it's a foundational bit of tech that millions of people depend on directly or indirectly, and that millions of people benefit from improvements to.
Google does not use GA data unless the webmaster chooses to share it with them.

I'm not sure if they use it to improve their ad products, but I wouldn't be surprised if the answer is no.
But software is much more complicated. If I put aftermarket suspension in, it's pretty unlikely that it will significantly screw up my brakes. But with software, it's a lot harder to say what affects what, especially considering how many cars have a single computer that handles both critical and non-critical tasks. A media player mod could very well screw up the brakes by hogging system resources or crashing the computer. If my insurance refuses to pay out after a crash on account of that, do I have to prove my mods to be safe?

NB: I have almost no idea how liability and insurance works in the US.
You need to do some travelin'! Your perception of mentally questionable people taking public transportation may well apply in the USA, but in other countries it's simply not the case.

In big Russian cities it is way more convenient, cheaper, quick, and as pointed out -- mentally relaxing -- to take a tram or subway than to drive your car in the insane traffic. The clientele on said public transport are, for the most part, friendly, and you will see men scrambling to help old ladies or women with strollers onboard.
It's a legitimate question, but keep in mind: There's no real evidence that investors are "falling for this", in any meaningful sense.
You know some people mod the engine on their car, right? Or swap the transmission? Changing the software is hardly the most significant modification owners do to their cars, at least for non-self-driving cars ;)
Introduction of autopilot has reduced plane accidents dramatically, yet every time one fails it's a huge thing, thousands of planes get recalled and people get fired over bad code.

People disproportionally care about things we think we should control. Like that fire of a Tesla that happened some time ago - people didn't care that all in all, statistically, electric cars are a LOT less likely to catch fire than regular ones, but media wouldn't shut up about it for weeks, highlighting how dangerous it is to drive around with a huge battery pack(even though it's nonsense).
If an automatic car has an accident, it will be a huge deal as well - because people will expect computers to be flawless, and if they make a mistake they will want the head of whoever made the computer.
I believe we live in an extraordinary period in history. By that I mean a unique period that didn't happen before and that won't likely happen again after it has ended. We're able to make so much stuff because we're burning energy at an unsustainable rate to do so, in the form of fossil fuels, much faster than we could manage realistically with renewables alone. This will come to an end eventually, either by collective suicide via destruction of our own ecosystem, or voluntarily once we realize that we need to seriously lower our greenhouse gas emissions to survive.