skysight-inc/HackerNews huggingface dataset:
Ask HN: Tutorial of the C Interface of R
I'm optimizing on an R library, whose critical part is expected to be rewritten in C/C++, but the problem is I don't really know C++, even though I have some decent experience with C and Java. I don't have a lot of time for this task, and teaching myself how to write C++ with RCpp would be too time consuming and I suspect if it would finally pay off.

Just asking if there is a tutorial more comprehensive than [1], which seems a little too concise.

[1]: http://adv-r.had.co.nz/C-interface.html
It’s just taking a materialist view of the world. E.g., a Marxist would argue our culture is shaped by the prevailing mode of production. Anarchists would also say that any hierarchical structures are imaginary. It’s not really nihilistic, it’s just a different way of seeing how we got to where we are in humans’ cultural evolution.

Instead of thinking that culture just popped out of our heads, it’s thinking that culture is mostly if not entirely tied to events happening in the real world.
No I'm not. Care to elaborate?
which countries/cities are you talking about? i didn't make that experience in germany for example.
...and without data it seems clueless to be castigating folks for using the tools we have now, to accomplish goals we have now.

If our current antibiotics are becoming less useful, then create new one. There's nothing magic about the ones we're using now. They were just the first ones we came across. Like VHS vs Betamax. Lets get on with it.
Public perception of suicide is highly skewed, particularly because many journalists refuse to report cases to deter imitators, unless it cannot be avoided.

While I understand the noble reasons behind it, I do raise an eyebrow considering the fact it can be convenient for a malfunctioning society to sweep it failings under the rug that way.

On the other hand, I do feel slightly patronized, as if I weren't able to handle the "truth"...
So this outrage is in the Netherlands. Security cameras may not be pointed by businesses at public space (which we have a lot of unlike the US). The local government itself may place cameras though but private parties, what kind of nightmare situation is that?

And in public or private space when there are cameras there needs to be signs everywhere to warn and inform you.

So in the Netherlands at least.. Google recording a conversation with someone who doesn't know Google is recording is definitely illegal.

The question is: will they prosecute? Then it becomes a geopolitical question because we are a small country with a disproportionate number of Google datacenters.

So to summarize:

- This is definitely illegal in the Netherlands

- There is no consent of others participating and you really do need that

- Fine print is not consent: consent of terms and conditions requires a majority (determined by polling or common sense of a judge) of users to be aware and knowledgeable what they consented to.

- there won't be prosecution by the Dutch public prosecutor.

- there will be a lobby for the EU to buttrape Google but it may use different reasons or context
I don't know if carbon will win or not. Right now, carbon is in a race with renewable energy sources (wind, solar, + storage), and their costs are plummeting while fossil gets more and more expensive. We're already at the tipping point where it's cheaper to build out wind/solar than to build fossil power plants, and it's much cheaper to fuel a car with electricity than gasoline over its lifetime.

The population thing is already on a trajectory toward leveling. The main cause of population growth now isn't birth rate, but rather increased lifespans of those born two or three generations ago. If we convert to a renewable energy base before population levels off, we win.
Toyota Moves into Silicon
My colleague doesn't use the dock anymore because it is nothing but a glorified USB-C power adapter combined with an input for the HDMI signal.

However, due to Nintendo messing up the USB-C standard, this is dangerous and can brick the system! Otherwise, what would work is a USB-C dongle that transmits enough juice to the Switch (but not too much!), has an HDMI input to get the signal to the TV and voila, portability solved.

But no, Nintendo basically ensured that this is Russian roulette which can end up bricking your system.
I'd take screaming fan over throttling
How is that possible when animal agriculture only accounts for ~3% of greenhouse emissions? Even if you take into account the entire agriculture sector it's only 9%.

Let's not use this as a grandstand for pushing political agendas. There are much larger contributors that can be addressed. It just dilutes the entire climate change message by pushing a vegan agenda.

https://www.epa.gov/ghgemissions/sources-greenhouse-gas-emis...
Poor people can't afford vehicles. Poor people currently use the bus. These people would benefit from a tax & rebate scheme.
Are you solving the right problems?
> There have been some stories in HN about opting out of face recognition as well

Easiest way to do that is to wear a niqab or burka.
> Once you std::move an object and pass it to someone who takes an rvalue-reference, your local object may very well end up in an invalid state.

As far as I remember, move constructors/assignments must leave the moved-from object in a valid state - just that the standard doesn't say anything about what that state is for standard classes.

Also, I have seen code where some kind of "result" can be moved from an object and then re-generated from scratch with different inputs. In that case it was perfectly valid to use it after move. But that's nitpicking, anyways.
What Roku do you have? My family has a somewhat-ancient Roku 3 and it supports Google Casting, as does my Roku TV. It's a huge feature for me.
Yes indeed, it's a cost issue.
Typically when you want to fire people for financial reason you need to start talking with unions, explain them the situation, decide how many people you need to fire and how big the severance package should be.

On the other hand if an employee resigns, it's free.

For a time, big French corporations were known for their aggressive methods, putting employees in empty rooms with no computers and no work to do to "force" them to resign.
The Central America Suicide Shower
There are two big things right now on my list of things I will never use: closed remotely operated home assistants with cameras or microphones that are not physically switched, and Facebook Libra.
JPL has a studio that has produced a few art+science pieces, including the exoplanet travel posters.

Its website is: https://www.jpl.nasa.gov/thestudio/. They've made a few pieces that are around the JPL campus, and some which have traveled. Some are described in this article: https://www.theguardian.com/science/2016/aug/07/nasa-secret-...

The POC is Dan Goods, who is a graduate of Art Center College of Design. The Deep Space Network sculpture described in the article is on his vimeo: https://vimeo.com/93420747
...no, but it bears remembering that many cities in Europe were effectively bulldozed by two world wars, not to mention centuries of smaller wars.

Just because you can raze entire cities, displace their populations, and embark on "clean slate" urban planning projects doesn't mean you should. That's the civil engineering equivalent of rewriting the entire codebase from scratch.
Show HN: Locomotion – Easier stop motion movies
So the Switch cannot... switch anymore?

Not criticizing this system but that got really nonsensical with the naming pretty fast.
I don’t think that’s quite right. Light travels about one foot in a nanosecond. Unless the signal was directly overhead, the distance differential would surely be at least several feet, and thus the time differential comfortably more than a billionth of a second. Maybe they meant a millionth.
The problem with this is that "Chicken Little" is probably not an adventurous person, but rather a poor person. This makes privacy another privilege that can be bought. This devolves into another way to exploit poorer people.
Genuinely interested, not assuming/implying I'm right - why?

I think just insisting on JS is, for most applications, the best thing for the most people. If the app is such that it has maximum availability as one of its top goals (government public service, public infrastructure, bill paying etc) I completely get it, but otherwise I'm just not convinced that not requiring JS is somehow inherently good.

If you'll allow a pretty weak analogy, it's almost like refusing to use a car and insisting upon using a horse and cart. You may have your own good reasons for doing that, and that's completely fine, you are free to make that choice, but you absolutely should expect the modern roads not to cater to you, and to be very often inconvenienced. Indeed, you shouldn't really expect society to spend lots of tax money catering to your choice and designing all roads, junctions, etc with it in mind, beyond the very minimum level so you can at least use the most important roads.
Thanks, I didn't realize that the password was re-sent for every request to the site.
It's worrying that for some cases you have to put a lot of effort into "obscuring" code and destroy readability to comply with the rules just because the C's semantics is not obvious and its type system weak and dated.

A good language for cryptography engineering should at least somehow allow the programmer to annotate/type variables containing secret data and functions as constant-time so that the programmer can concentrate on implementing the cryptography logic while the compiler warns on correctness issues or security violations.
> how did we create

spreading the mosquito species in all sort of vehicles. Killing birds, spiders, bats, fishes and everything except pokemons

> or contribute to the mosquito problem?

Having babies. Lots and lots of human babies full of delicious blood. More humans than ever, mean more mosquito restaurants than ever.
Show HN: A Better API Specification
Perhaps Harkness could be modified to be less expensive to implement.

I had one truly good math class during my secondary education, and the way the teacher conducted things sounds a lot like this. Small groups, sitting around a table, talking about the subject. The overall class size was much larger, of course. So what we had was a class subdivided into smaller groups, with the teacher circulating among the tables, spending maybe 10 minutes at a time at each one.

I suspect the real problem with this approach, at least from an American perspective, is that it's not easy enough to instrument for data collection. You can't measure "mastery", so instead you measure performance on multiple-choice questions. And then you tie funding to goals related to those tests. . . at which point, no matter what you _want_ the teacher's job to be, what they're really being paid to do is train kids to regurgitate information on multiple-choice tests.

I'm a professional data scientist, and, ironically, being one has resulted in me becoming a deep skeptic of the movement toward data-driven everything. "Data" is understood to be quantitative data, and not everything can be studied quantitatively, so it leads to people habitually deciding, intentionally or not, for better or for worse, to re-frame all their activities in ways that make them easier to quantify and micro-quantify.

To take another example, there's a whole lot of well-established research out there indicating what the best way to pick up a second language is. And you'll never see any of this knowledge being applied to language learning classes in American public schools, because its implications about how we should teach second languages are almost universally incompatible with the teachers' mandate to always be quantifying.
I came here to say the same. :) I can attest that this works. I've checked these codes on several cards along with speed and full rewrite/compare tests, to verify capacity and A1 rating.

Never had an issue.
I would expect that a telecoms employee who was doing similar work on quality etc to be quite securely vetted.

If I was doing now what I did back in the day For BT / Dialcom (I had root on the UK's main ADMD) I would probably have to pass DV vetting (TS in USA terms)
I think the charges need to be accelerating, not just moving, to emit radiation. Whether or not something is emitting radiation ought to be invariant to the motion of the observer.
If you build it or find it, let me know. I want to move there too.
It breaks down, IMO, for any non-circular definition of merit any time you have unequal distribution of wealth, even if the unequal distribution itself is due to prior merit. Inheritance is a dramatic example, but not the whole problem.

There's a reason I said “...at least, that's what the proponents of capitalism have always said.” I'm not actually endorsing the viewpoint as correct.
5) Understand ML; concerned - "Why do other people in the ML industry think it's OK to use and store peoples data in without informed consent (which are only those in group 3, and group 1+2 don't have informed consent)"
The problem of meaning is actually a central theme.
That's your call. I couldn't have been clearer that this applies to my understanding of the majority view within the UK. If those people aren't part of your audience then knock yourself out.
Good to know they still support MariaDB, then.
But whose machine monitoring, security, and use habits almost definitely do not match the requirements Googmazon would require for its own employees. These vendors, time and time again, end up being the weak spots in companies' and governments' handling of sensitive information.
Fb’s David Marcus Assures Congress That Libra Will Cooperate
anyway to just flood the microphone channel with spurious training data 24/7?
Well, it depends on who your users are and the regulatory requirements you are operating within.

A US college or university site can be sued for lack of Section 508 compliace.

So, it goes beyond development costs to legal risk of lack of compliance.

OTOH, a site selling cars probably does not need to worry about potential car-buyers using screen-readers.
Google’s 4k-Word Privacy Policy Is a History of the Internet
Clean Code – With JavaScript
I find this reasonable; you wouldn't sue the manufacturer of a recording device if someone made a secret recording with it. I do think this means that the smartphone owner is liable, and should be fined or jailed.
> We HOPE drivers will drive less if the carbon tax hits their pocket book, but there is no guarantee.

Gasoline costs twice as much in India as the US, and the average income is far less. People drive a lot less, use public transport, build more densely, and purchase more economical vehicles - small cars, motorcycles, scooters. Liquefied natural gas (LNG) kits are very popular even on passenger cars (LNG being cheaper).

An SUV is virtually unheard of as a family car (unless you're a powerful politician, movie star, or other bigwig) and even a full-size sedan marks you out as rich. I've never seen a pickup truck being driven for passenger transportation.

Why do you think prices don't change behaviors? It's a pretty fundamental facet of human behavior.

> It's like changing the interest rate and hoping the economy will improve.

Don't central banks do exactly that? They cut rates in recessions (to promote spending) and increase them in boom times (to tamp down inflation).
Make Your Own GitHub
Or maybe a heavyweight one. I note that the clang annotations refer to "typestate", which was a mechanism that existed in primordial Rust, but which was dropped because it was unnecessarily complicated:

http://pcwalton.github.io/2012/12/26/typestate-is-dead.html

Although to be fair, clang's version is a highly limited particular case of typestate, with one axis of state with three values, rather than a general heavyweight typestate mechanism.
It's an intuition or speculation at this point. The only major evidence we have is that a logarithmic graph of information vs time in evolution seems to cut off abruptly at the age of the Earth, suggesting that the process started before Earth if a constant rate is assumed.

https://dailygalaxy.com/2018/09/moores-law-life-is-older-tha...

This is definitely not conclusive as it could also mean that some other process with a different rate or probability structure started life. You can't always just do a regression and draw a line and assume that it holds for all time, as many startups discover. ;)

We also know that organic molecules are ubiquitous in the universe, so there's that too.
24% sounds really high when I think of the global economy built on oil, gas, coal, plastics, rubber, etc.
In the Python world, Django Rest Framework does this (and a lot more!). The out-of-box getting started experience is not as smooth though, as you need to define serializers and views objects too. Of course, they're probably going to be useful for more later.
I'm no expert in this area, but as far as I'm aware object detection at the level required for self-driving vehicles is far from a "solved problem" (and requires significantly lower error rates than a "Hello World" project…).
Google’s 4k-Word Privacy Policy Is a Secret History of the Internet
Can I use a PiHole or equivalent after turning on DNS-over-HTTPS?
I am pretty sure there is a famous quote along the lines of "It is hard to make a man understand something when his private jet trips depend on him not understanding it" :)
>what the person is like outside of the professional skills and experience

Not relevant as long as they are professional and capable at work. Just sounds like a (poor) justification for illegal discrimination.

>Maybe contributes to open source projects?

If you want to know this try asking "do you contribute to open source projects?" instead.

>It's undeniable the chemistry between team members is an important factor.

Sounds like an proxy for illegal discrimination. "Oh, our teams chemistry is important so we don't want to hire an older person/woman/Mormon/mother/Indian/recent immigrant/double amputee because they are too different and would mess up the team chemistry." Even if this isn't intentional its the end result.

I'll tell you what's important for team chemistry - respect and professionalism in a work setting, good work performance, and good work ethic. Not their life ambitions, what type of literature they read or what type of hobbies they have. I've only worked in incredibly diverse teams and it's not a problem for "team chemistry." However, I would think working with someone who could only work with people they are friends with WOULD be a problem, a big problem.

But, really, could you actually honestly defend this position in court if you had to? Doubtful. I'm a childless woman at the age where most conversations about vague future life plans are actually inquiries about childbearing.

But, really, what's an example of a "wrong" answer to this question? Are you really going to say "Oh, she's boring outside of work, lets not hire her?" How silly.

I know a guy (not a coworker of mine) who literally does absolutely nothing outside of work except sleep, play video games, exercise, cook and clean, and very occasionally grabs a beer with me. He rarely leaves the house except to go to work. He's got the most boring life ever but he's gotten several promotions over the course of the first couple years of his career.
It started out as scanned books 10? years ago before Google bought them up.
Steve Jobs “cast spells” to save Apple
No "America" didn't decide that. The geography of America dictated how America evolved to become a car preferring nation of sprawling cities.

The car is the perfect combination of flexibility, scale, speed, utility and so on.

Sprawls are a byproduct of what the car made possible, they where not created to promote the car they where created because the car made it possible and gave a number of benefits for the individual families.
Prev gen mbp was 2013-2015. The one before that was 2009-2012. This one is 2016-2019. I'd say we are due for a redesign any day now. Hopefully we drop this butterfly experiment and return to good old fashioned scissor keys and ports for pros.
Yea most states also have a pretty clear "if the device is obvious" law. It's also why businesses put up "smile you are on camera" signs, especially if their camera isn't immediately recognizable.
That's pretty funny, because doing some sort of electronic wizardry with a stove and a cast iron skillet is one of the other things that crossed my mind in that brief moment of confusion.

And it is totally something I could see Woz doing. :-D
Yes that’s true. But: with another device like a phone it is optional to turn a voice assistant on. Not so with a device with the sole purpose of being a voice assistant.
Stencil – Toolchain for Building Reusable, Scalable Design Systems
It's pretty simple actually. Think of energy as a closed loop system down here on earth. Now imagine the amount of energy it takes to: Grow the feed to feed the animals, butcher and transport the meat/dairy in refrigerated vehicles, store/prepare/cook the meat, etc. The impact is much greater than the "cow farts" that are released into the atmosphere, despite methane actually being a much more potent greenhouse gas than carbon dioxide (which I'm not sure if they account for in the report).

The energy, of course, has to come from somewhere. Typically it comes from coal or gasoline.
Did this happen in other countries too? There are varying degrees, but cars are king the world over. I’m suspicious of the idea that it was due to laws or government.
Don't need a billionaire, just need a kickstarter or indiegogo to make that happen.
Perhaps the future of software isn't "rewrite everything in Rust", but instead we end up annotating existing C/C++ with borrow checking information. This would be similar to how there is a push in JavaScript to add TypeScript annotations everywhere. It gives you the flexibility of the existing language and ecosystem while still allowing you to use new techniques in programming languages.
If a layman did the experiment on his garage, it would be completely (and insistently) ignored by the scientific community for many reasons (most of them good ones).
Show HN: I built a UWP app to control TP-Link smart plugs
I spent the last few weeks building a UWP app for Windows 10 that finally made it into the Windows Store. The biggest challenge was that UWP seems to have limitations with the .net version for UWP has a different API, particularly around the UDPClient API.

Shameless plug, it's available here https://www.microsoft.com/store/apps/9PCD9X9M1P5C

Any ideas on what additional features you would like to see? I want to implement an energy monitoring report for those plugs that support it. If anyone has advice about a good free report generator compatible with UWP I'm all ears.

Thanks!
framing climate change as something that can be feasibly solved by individual consumer behaviors is basically a psyop by the corporations that are actually responsible for climate change.

being vegan is cool, and i support anyone who does it, but calling it the "single best thing" is not honest IMO.
Video and audio can have different laws. In my state, video recording in my home or business is legal, but if I record audio, I need 2 party consent.
std::move is lower level than that. It is a primitive that you can use to implement whatever lifecycle semantics you want.

To see what I mean, in the examples in the article, the author has to tell the compiler all sorts of things that are hard to infer. For example, the object comes into being in the “unconsumed” state (what if I instantiate it with a nullptr? Can I even do that?), and a prerequisite to dereferencing it is that it is “unconsumed”.

It is plausible that there would someday be a set(foo&&) method that had “unconsumed, consumed, unknown” as a prerequisite, and always brought the type into the “unconsumed” state.

In practice, you shouldn’t be spraying these annotations all over a code base. They should be in library methods that are reused frequently, so that you get a lot of static analysis benefit from a small number of manual annotations.