skysight-inc/HackerNews huggingface dataset:
> In both cases you end up with an object that has an instance of an author and a post.

But you don't; not even close.

The first one is a has-a relationship; the object contains two references (`author` and `posts`), which presumably point to an instance of the Author class and a collection of instances of the Post class (or whatever). This is composition.

The second is an is-a relationship; the object has the properties of the author and post objects copied over the top of it. There is now only one object (not three), and if we're lucky, it implements the interface contracts of both the Author class and the Post class.

Consider if Author has a title field that contains their preferred prefix (Mr, Ms, Mrs, Dr), and Post has a title field that contains the subject line.

With the first approach, we could do `foo.author.title` or `foo.posts[0].title`, using our references to the underlying Author or Post instances.

With the second approach, we can do `foo.title` or...`foo.title`. Whups. We have no references, there is no underlying Author or Post instances; there's just a single object which is trying to inherit the behaviour of both the Author and the Post class, and failing.

It's not a horrible way of implementing multiple inheritance in JS, but it's still inheritance. And in it's single inheritance form (`Object.assign({}, author)`) it's yields an identical result to normal prototypal inheritance or the class keyword.

Edit: This becomes even clearer when you start to flesh out the examples. Eg, https://jsbin.com/kigewonepe/1/edit?js,console

Note how obj2 has a `fullName` method (which only Author's do), because it is an author. Except note that it returns the wrong string when you run it, because obj is also a post. Where obj1 works correctly because it has an author and it has a post, without trying to be either of them. Composition over inheritance, just like the Gang of Four said. :)
Maybe because the newer ones are different and you don't identify them as such?

Old:

https://lasrecetasdecasa.files.wordpress.com/2012/10/ollapre...

New:

https://www.worten.es/i/10acef2d003a99a785ece3ca0a0281ef4dd9...
Neither bacteria or corn are animals, and bacteria isn't even part of the Eukarya domain, it's something else entirely.

I was pretty specific about saying animals in my post. Why animals? Because we are known to mourn the death of other animals.
Show HN: How to Make a Simple App in Python
I think the Japanese get more out of what they spend/sacrifice for their government than the US. That's not to imply anything approaching perfection either.
The rejection notice is very clear:

> This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app behavior or call SPI, based on the contents of the downloaded script.

Uber can write a "foo for a day" feature, that downloads some strings and some images from the Uber website, but doesn't actually add any functionality.

Same with any mobile game that has periodic events. You just write code to implement a generic event, write data to describe the event (name, graphics, level data), and do an update when you think of a different kind of event.
I think that wording with the "exception" is from the OSX developer program. As far as I can remember, the iOS info sheet has always been taxative with no exceptions about executable code. Of course all wordings allow Apple to start rejecting a previous approved app if they feel the code/scripts the app is now downloading are in violation.

The explanation in the rollout.io site about why they are fine is intentionally deceptive. They have the guts to link to a document that says "An Application may not download or install executable code." and then quote more friendly excerpts in the hopes that you won't read the actual doc. I can't imagine why Apple has let this go on for so long.
I took the commenter to mean getting work done. Like, your long commute isn't made up by the fact you can sit and code on the train ... because odds are you can't sit. I actually now live outside Boston and good luck getting a seat on the commuter rail to do real work, unless you live far out on an early stop.
Why Did Life Move to Land? For the View
Hi! Thanks for the update.

I love the language but have not followed it closely in a while - what's the current story on compiling F# to native applications?
Google definitely forbids self-updating apps on Google Play. But I'm not sure how well this is enforced.
The License FAQ covers question #2: https://code.facebook.com/pages/850928938376556

Does termination of the additional patent grant in the Facebook BSD+Patents license cause the copyright license to also terminate?

No.
I get motion sickness, and have a hyper-sensitive sense of smell.. I'd rather be in my car enjoying music and/or taking calls. Also, I happen to like about a half hour or so of driving, as it is enough distraction to let work thoughts fall away.
This is the perfect example of Silicon Valley hubris: farming animals is bewildering and barbaric, so obviously this New Thing™ that didn't even exist two years ago will totally replace what humans have been doing for the past ten thousand years.
Where do you live? I started a new job a year ago and took my time looking. I spent a good 6 months interviewing at probably 20+ places and none of those places had a lame tech interview... None of them. They were small to mid-sized companies all over the country (I was considering remote work as well). So I think you are overstating it a bit.
Also it helps get you through proxies.
Chris Leary, a compiler engineer at Google gave a talk about XLA at the recent Tensorflow Dev Summit:

https://www.youtube.com/watch?v=kAOanJczHA0
No. It's not. I've seen multiple documentaries about this (Best Evidence, etc), and was totally convinced. But the stories don't really add up. And too many people would have to currently be complicit (decades later!) for this to be successful. People don't really hold together that long on something like this.
Presumably because many private APIs are used behind the scenes by public APIs and the security model must allow applications to run them.
vDSO maintainer here.

There are patches floating around to support vDSO timing on Xen.

But isn't AWS moving away from Xen or are they just moving away from Xen PV?
Is the video format documented somewhere, or are you keeping that proprietary?
Because some of these APIs are useful in an enterprise app setting that aren't distributed via the App Store. Like Disney applications on their turnstile devices at Disney World.
> or that they're selecting for qualities they personally think are important

But that explains one or a few failed interviews. Once it becomes a consistent trend you have to start looking at the common denominator.
I remember somethin similar with spagetti bolognesa, but it wasn't the pot fault, but a friend that mistakenly thought it was already cold enough. She had some burns and instead of a feast, the guests had to become an emergency cleaning squad.

Fortunately the dessert was saved: a condensed milk can also made in the pot into delicious toffee.
You can accomplish some crazy stuff with hot code loading: use private APIs, get around privacy restrictions. In theory, there are a lot of guys reasons for Apple to prohibit this.
From this....

https://www.youtube.com/watch?v=_CXXVFPO6f0

"Firebase Remote Config allows you to change the look-and-feel of your app, gradually roll out features, run A/B tests, and deliver customized content to certain users, all from the cloud without needing to publish a new version of your app."
Willingness to generalize an entire group seems far more deserving of a black mark.
I don't make mistakes though
A command takes a series of arguments, stdin/out/err pipes and returns an error code on completion.

time prefixes a pipeline ( the most basic case being a single command without a pipe into another ), a command block { ... } a subshell block ( ... ), a for statement, an if statement, just whatever really.

This "time" would output how long "a" took to run:

/usr/bin/time a b c | { d e ; f g ; } | h i ;

This "time" outputs how long the pipeline "a", "d", "f", and "h" took to run:

time a b c | { d e ; f g ; } | h i ;

This is a syntax error:

/usr/bin/time { d e ; f g ; }

This returns how long the command group takes to run:

time { d e ; f g ; }

Further examples:

$ time sleep 10 | sleep 1 ;

real	0m10.073s
user	0m0.000s
sys	0m0.000s
$ time sleep 1 | sleep 10 ;

real	0m10.003s
user	0m0.000s
sys	0m0.000s
$ /usr/bin/time sleep 10 | sleep 1 ;
0.00user 0.00system 0:10.00elapsed 0%CPU (0avgtext+0avgdata 1796maxresident)k
0inputs+0outputs (0major+80minor)pagefaults 0swaps
$
$ /usr/bin/time sleep 1 | sleep 10 ;
0.00user 0.00system 0:01.00elapsed 0%CPU (0avgtext+0avgdata 1808maxresident)k
0inputs+0outputs (0major+82minor)pagefaults 0swaps

Note the two /usr/bin/time's output their timing information as soon as the first command is done, but the pipeline doesn't return until both commands have exited.

> hope this rant helps in some way
You aren't supposed to call private APIs in your code, but your app is definitely making private API calls all the time since the libraries provided by the platform are running in-process.
Alarming distraction – are entrepreneurs discouraged in Australia
a version of scheme from 2013

https://drive.google.com/open?id=0B6u0pARskZtQNExpdjhfQ0dIbX...

it is a very good exercise to implement a scheme interpreter and LR parser. I have done so many times since 2007 in many different programming languages. It is a very worthwhile exercise that involves variables levels of resistance and some difficult work. The wikipedia article on LR parsers is very helpful.

Why do people train for competitions? There is such a thing as being best at the world at this stuff, but only in the imagination. There is no real "top gun" prize because you don't want these hot shots going insane with jealousy. It's just an idea. Programming languages help you compete without competing.

In the future, people won't create programming languages because the math will have caught up to handle them. As it is, codebreaking math and classified math are holding this back. I think this will change as soon as people get serious about automatic translation of mathematics textbooks such as the Springer-Verlag series (undergraduate and graduate).
Having used F#, I find Rust to be much closer to following the "right path". F# may have mode some good choices initially, but it strays back and forth between intuitive and straight-up senseless regularly. It lacks most of the elegance in other MLs and lacks much of what makes C# usable with its own feature set, rather choosing to create a weird concoction of the two styles with little thought behind it.
Won't go too far to say all Uber employees are sexist bigots, but I do, after all these media exposure, now have a images they have a strong feel-good bro culture
Why You Need to Visit Kitchen Showrooms in Auckland
The other commenter is right. The government can deny a clearance for more or less any reason they choose. With that being said I did laugh and read the news articles anyway. Never caused me any problems but who knows maybe this comment will.
Why does this support JIT but not AOT for NVIDIA GPUs?
One way I could see is talking about it abstractly --either examining breeds of an animal or imagine being an alien from outer space and talking about the different aspects. Although, admittedly in either case it may be an imperfect instrument because for example one can see how one kind of cat may be better at some thing (mouse catching) than others --but still, we can ask why if we wanted what's best for all cats, would we prefer one kind of cat over another.

It's probably the same for religion. Use thought experiments rather than talking about things directly which could hurt someone who is not prepared to have an open discussion.
Does this mean all Cordova apps may be banned?
One of my best short sells besides 2009 short selling, was twitter. My money was allocated else where so I couldn't get in on the Snap fun. However this was pretty predictable outcome.
IKEA has talent to split simple things into 10x times more pieces than needed.

As a result - basic, simple things comes with 10-20 pages manuals on how to put them together.

Now they invent an easier way to put them together.

COME UP WITH LESS PIECES, DUMMIES! PRE-ASSEMBLE STUFF WHERE POSSIBLE.

DON'T SPLIT THINGS INTO TINY PIECES!
Every large city has car rental places by the airport. That is where they are. It doesn't signify. I'm sure there are people who wouldn't like to visit your home town either.
Putin Critic Xenophobic Conspiracy Theories Drowns US Discourse Helps Trum
My bad, it scales as O(n). I figured it out lol
If you just google something like 'per-axle weight to the fourth power' you find lots of sources.
I'm biased, as I work in civil service.

Frankly, the reality is often coming from the bureaucracy. We all chuckle about government absurdity, but many of the true experts in these areas are in these bureaucracies, and get silenced when their work conflicts with the narrative the political administration wants. As costs have grown in healthcare, public safety and other areas, other functions get starved of attention.

I will guarantee you that in all of these cases, people who know what they were talking about were advising about these issues or unable to do their jobs due to de-funding... especially when republicans have had their fingers in things.

We lost a lot when the postwar and 1960s generation aged out of the workforce. The folks in charge of government agencies in the 1960-2000 timeframe were better educated and more competent. The politicians, even the machine people, had a better fundamental respect for what government did and does.

I'll tell you from an anecdotal perspective that the people in my state who inspect dams and bridges give a shit about their jobs and are not complacent. I know a few people in each category. They have a frustrating job, but do it well.
I can get foo.author.title and foo.post.title no problem using Object.assign:

Object.assign({}, { author: author }, { post: post });

Can you give a better example of where a reference to an instance is any different than copying an instance?

EDIT: I fixed your example. https://jsbin.com/zamuqoropa/1/edit?js,console

EDIT 2: In fact, my Object.assign does exactly the same thing as your example of composition. And

console.log(obj1.author === obj2.author);

produces 'true'.

https://jsbin.com/vafudizumo/1/edit?js,console

Either you're doing composition wrong, or I'm not doing inheritance like you are claiming.
It's 2017, weren't we all supposed to be living on soylent by now?
https://www.spamhaus.org/consumer/definition/
Google is acquiring Kaggle
>Quick coding tests can be gamed also.

How (assuming its in person)?
Preventing it in a technical way is far from easy: If your app calls public API X, which as part of its implementation calls private API Y, your compiler only needs a declaration of Y to output the function call / ObjC message send. Nothing in the language prevents it, and the code is executed natively unlike Java.
I don't see the problem with this, considering the methane output and grain requirements. (Note my family use to run a large cattle fa in Australia, I can see how this would effect them. )
Author Says Hitler Was 'Blitzed' on Cocaine and Opiates During the War
Build a Wikipedia search engine using RxJS
The chances of the CIA getting interested in what you do with your time is very small but the leak does shed light on some strong exploits AND tools, and it might be farfetched to say this, but if Wikileaks got their hands on those details, then someone else besides them possibly has them too. If the CIA has the ability to make those tools by utilizing unknown exploits then the chances of someone else being able to do the same are almost certain, the best recourse is to call on the CIA to share the exploits with the public or at least the developers so that they can get them fixed.

This is huge especially for corporate espionage, consider the possibility of a Russian/Chinese state-linked company spying on American companies to get an advantage, another example would be Russian O&G companies planting bad designs in order to cause disasters like the Deepwater Horizon oil spill to make other companies look bad.
To be honest, I think the fact that they're used by so many big players is the reason that Apple is requiring removal in future updates rather than outright removing for ToS violations.
A topical "special day" feature could easily be defined as a downloadable content blob with zero executable or interpreted code. They probably have a set of special event templates already coded into the application which can then be themed with a few images, colours and text strings.
Finding the Oasis in the Android Desert
Always this "memorizing algorithms" strawman. If you can't code basic list/tree/graph algorithms on the fly then there are serious holes in your programming ability. This has nothing to do with memorization.
> Not quite; vdso is a general syscall-wrapper mechanism.

It's not. On 32-bit x86, it sort of is, but that's just because the 32-bit x86 fast syscall mechanism isn't really compatible with inline syscalls. Linux (and presumably most other kernels) provides a wrapper function that means "do a syscall". It's only accelerated insofar as it uses a faster hardware mechanism. It has nothing to do with fast timing.

On x86_64, there is no such mechanism.

> It's true that dynamically linked programs can use the ELF loader. But the ELF loader needed special changes to support VDSOs. And so did gdb. And this approach doesn't help statically linked programs much.

That's because the glibc ELF loader is a piece of, ahem, is baroque and overcomplicated. And there's no reason whatsoever that vDSO usage needs to be integrated with the dynamic linker at all.

I wrote a CC0-licensed standalone vDSO parser here:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux....

It's 269 lines of code, including lots of comments, and it works in static binaries just fine. Go's runtime (which is static!) uses a vDSO loader based on it. I agree that a static table would be slightly simpler, but the tooling for debugging the vDSO is a heck of a lot simpler with the ELF approach.
It starts of strong, then you realize that a comparison is being drawn between a decades-long conspiracy circulated by the largest talk show personality in the country, with Tweets and blog posts with 13K shares. There isn't much of an equivalence to be drawn here, however desperately the author seems to want there to be one.
It seems like you're knowledgeable on this subject. Could you explain the '8 year' approval process and what that means? I was recently reading some information that suggested that the FDA approval process is more like 8-10 months. I couldn't find the source that I read, but here is one similar:

https://www.pharmacist.com/article/trump-calls-fda-slow-and-...
Meanwhile, how much money has the USA pumped into Iraq's Mosul Dam?
Do major tech companies ever consider randomly pulling an employee from another department not well known and subjecting them to the interview process as a QA sanity check?
Did you read that article? Do you understand the context it's coming from? This article is a call to grass-feed cows, not stop having cows.

Humans can process grains just fine. Humans can't process grass, cows can. Cows have four stomachs. Do you? It's way more efficient (perhaps counter-intuitively) for livestock to eat the grass, then turn it into meat, then be killed and have us eat the meat, than it is for us to eat the grass directly. When you eat a salad, and you poop, you'll find a lot of the salad in your poop. That's because you don't have four stomachs. If you had four stomachs, you'd be better at eating grass.
This is rather out of date. Everything works quite similarly, but the kernel code is very different these days.
I suggested advanced kitchen devices.

OK, so if someone is taking it seriously, let me specify a little, since I've been thinking of it for some time: a rice cooker that uses vapour.

I often cook rice in the pressure pot. It takes something like 5 minutes to warm the pot, 4 minutes of cooking and a few minutes more for releasing vapour until I can open it again.

It would be nice to have a device that:

1. Wash the rice with cold water first.
2. Makes vapour in a few seconds holding the pressure.
3. Automatically stops when the rice is cooked.
4. Finally releases vapour.
5. Bonus point if it cleans itself.

Just that, plain boiled rice in five minutes, instead of 10-15.
I think that's a fair assessment.
I love that term "Shakespearean code" — beautiful exploitation of the language, that when analysed deeply is amazing, but on the surface is just really fucking horrible to read.
If it makes you feel any better, I just watched half of the Ninth Ward yell themselves hoarse at the Army Corps of Engineers at a community meeting over the planned expansion of the Industrial Canal (for MR-GO traffic (rolls eyes))
http://www.newyorker.com/magazine/2017/01/02/a-bigger-proble...
It's either me or them on the road so I don't see how it's making anything any worse.
I think you're over-reacting. It's just a discussion (powerpoint?)

I would consider it negligent if no-one in the CIA was asking these questions.

[edit:grammar/clarification]
Cyberfox and its future direction
(note: I'm a chef of a fine dining restaurant, so take this how you will).

Telling people to change won't work. But at the same time, people in my position(available to influence flavours of a region), should do our part in not restricting ourselves to animal products.

This I have seen happen over the past 10 years, the amount of reduced meat or no meat items on my menus has increased, as well as doing more to use sustainable products.

On a side note about these types of foods: don't look at the bottom of the restaurant chains to see the future trends. They will only cater to the safe bets(huge cheap steaks and battery style farming practices), due to their low margins.

It took me a long time to get to a position where - as the head chef - I could experiment with a large portion of my menu being more land friendly(which for me is reduced meat based portions, higher quality locally sourced ingredients and more renewable products).
As they say be careful what you wish for, you might get it. A lot of people these days have been raised with propaganda about freedom of speech and other goodness. Which were just rhetorical phrases that meant little. When they mean much I am not sure you're going to like the results. Intellectual freedom means the freedom to tell the truth, but also your own truth as well as the truth of your group. All of these various partial truths don't always agree and might not be good from a utilitarian perspective. Not to mention all the spectrum of lies.
The Man Who Almost Never Succeeded (2012)
ghacks.net coverage: https://www.ghacks.net/2017/03/07/cyberfox-proclaims-death-o...

slashdot coverage: https://news.slashdot.org/story/17/03/07/2157257/cyberfox-de...
If you provided an embeddable iframe widget that I could put on my own site, and intercept the file changes to do my own rendering, something like:

<script src="http://scrimba.com/widget.js">
scrimbaWidget(".my-container", "sc-ri-mbaID", function onFileChanged(name, source, output) {
persistToMyBackend(name, source)
output.innerHTML = renderFromMyServer(name)
})
</script>

... this would be a very interesting platform play. You would be providing essentially the audio, text capture, and synchronization, but I could keep doing my app hosting. Not having to store audio or deal with browser incompatibilities around recording and playback would be worth some money to me.

Like Filestack for screen recording.
Slavery does exist but in 1st world countries people do look at it with bewilderment even though it is still around in some places.