skysight-inc/HackerNews huggingface dataset:
UNIX pipeline data is mostly raw strings. To do anything non-trivial, you have to know the format of the previous pipeline item and have a parser for it. It would be amusing to have a system where all commands output JSON, so that pipelined programs can process the previous input. Then you could have

ls | sort --key=modification_time | mc

For display, you'd have a convention that if there's a "text" field in the JSON, that's what's displayed in the console window. Otherwise you see the raw JSON. So "ls" would output an array of JSON records with all the usual fields, but if you just wrote

ls

the user would see a list of file names.

You could have "format" and "select" programs:

ls | select --exclude="owner=root" | sort --key=modification_time | format
--fields=name,modification_time,size

This would be quite powerful and would allow the creation of complex, functional pipelines.
The end result is basically equivalent to SQL, but it's functional!
I have been using vagrant to spin up boxes on various cloud providers. The important thing is to remember to turn them off when you are done! I guess it would be possible to create a script to spin up boxes for each single job but I have not figured that out yet.
It's not a point on the implentation being incorrect. I honestly don't know if you read any of this - somehow I doubt that more and more.

The original point was: Apple uses fair mutexes by default, and that slows down any algorithm not needing that feature. Your point was: But it is still correct, and yes it is. But it's also still slow, and anyone pointing that out is as much in the right as you are when you refer to correctness.

Apple then introducing an out-of-standard solution (os_unfair_lock) for that (which is the exact duplication you talk about) is also just as suboptimal and worthy of criticism, since it torpedoes the whole reason for the existence of the standard (i.e. you still get #ifdefs or unnecessary abstractions all over the place). And - as I said - I get that no-one would ever want to change an implemented default behavior in their OS, but that doesn't make the situation any better.

Something similar happened in Microsoft's C++11-implementation of std::regex: The library uses strongly recursive function calls and might even cause stack overflows on various (not all that complicated) patterns in some scenarios. That doesn't make the implementation not correct (every regex implementation has its limits, and it never produces invalid results), but it makes it a hell of a lot less usable for non-trivial problems.

So, you can harp on on the correctness thing as long as you want, but you might consider not ignoring valid arguments before throwing words like BS around. "This implementation might be better" is not BS. Aggressively misinterpreting statements can be, though.
Do you have "Instant sign-in" turned on for that profile? I've never had an issue with that.
Perhaps adding to the confusion, an unrelated science writer with a similar name, writing on some similar topics: https://en.wikipedia.org/wiki/Mark_Ridley_(zoologist)
I have heard rumblings about this from a few old salty dogs, but I never heard such a detailed explanation of what actually happened with Twitter + developers.

While this API does seem exciting, I'm way more hesitant to create anything given the company's history.
I40C: Making scholarly citation data freely available
On one hand, I agree with you that linking to the documentation of another library, in another language, isn't very helpful. On the other hand, it's an open-source project. It has to start somewhere, and referencing the original docs is better than nothing. If you've looked at a variety of libraries along these lines and found them lacking, perhaps you're an ideal person to contribute better docs to this project.
I personally don't want a clone of Reddit when it's open in the next tab.
If you owned an older iPhone, Apple may owe you money
I have a home workstation because I do a lot of work from home. Working from a laptop is a sub-par experience because of the form factor. Right now, I'm using a Dell XPS 15 laptop at home, but it's docked to a desktop keyboard and mouse, and a 40" 4K TV I use as a monitor. Prior to the laptop (which I almost never move, bit like that I can if needed take with me), I had a desktop at the same desk. So, right how I'msort of hybrid, but prior to that I had a desktop at home (and a separate, older laptop that I almost never used).

As for "most people", it's important to consider different types of situations, such as families in which there might be a shared computer, or a desktop in the room of one or more children because it's sometimes more economical.
A lot of it is technology stack dependent, unfortunately.

Option 1 can be implemented when using an ORM with decent support for something like Active Record scopes, with LINQ you could have a method on your model that returns a pre-filtered IQueyrable, with JPA you'd use the criteria API. If you're doing hand written SQL then have fun adding it to all of your queries or using some query builder to add the security filters. Either way, this approach is prone to human error.

Option 2 is a little simpler, assuming you understand the RLS functionality of your database. At the start of your HTTP request before you touch the database you SET ROLE to your tenant or user (you'll have to write some code to create these database users), and in some hook that is called when a connection is returned to your pool you'll RESET ROLE.

Personally, I've had a hard time finding anything decent on handling security in multi-tenant applications or where security goes beyond simple ownership checks. Maybe I'll get around to writing a series of articles on my blog someday.
The Evil New Toy Fad That Must Be Destroyed
I really like it - very fast. I note the Compose Tweet FAB is another step towards a bland, Google Material user experience.
This is awesome, thanks for sharing.
English has survived over a millenia and multiple attempts to remove it. English is a great language and pound for pound much better than JS will ever be.
You'll never get the same performance for the same cost on PC. They showed forza horizon 3 running at 60 FPS/4k on the scorpio, in a stress test with wheather effect + the maximum amount of cars on screen, while only using 66% of the available GPU power. And that was on a version of forza that was not even yet optimized for the scorpio, all they did was spend 2 day updating the engine to run on scorpio.
I'm not sure how much the scorpio will cost, but the NVidia 1070 struggle at running forza horizon 3 at 4k at over 50 fps. Getting anything more than a 1070 will likely cost you close to the price of the scorpio just for the GPU.

Specs to specs, PC would seem like a good deal for the price, but with all the optimization that goes into tweaking consoles to make them perform better on games, its rarely the case for a PC to outperform a console for the same price. For example, they announced a hardware implementation of DX12 into scorpio, which isn't available on PC yet. We don't know how much this will affect performance, but its the kind of things that plays in favor of consoles.
> > Really, barbaric?

> Yes. Think of it in terms of a larger picture. Most men are spending the better part of their lives making the top 1% rich. That's what a 9-5 day job is.

It sounds spiteful to object (in principle) to your labor making someone else richer. If an employer is doing something specifically oppressive, then sure, that's a problem.

But you need money to live. Either work for some company or assume the risk and stress and uncertainty of starting your own. Or find some other way of scrounging up resources and be solely responsible for it. Working for a company has tradeoffs but it provides stability. I find the tradeoffs reasonable. The smarter you are or the harder you work, the fewer compromises you'll have to make.

> awakened at 6:30 a.m. by an alarm clock, leap out of bed, dress, force-feed, shit, piss, brush teeth and hair, and fight traffic

Very dramatic, but these are all either orthogonal to work, can be controlled, or are biological imperatives.
I like IRC still. For example, the science based channels in freenode.net is pretty good. #biology, ##physics and ##math. Might not be the worst of ideas for a mod to make one for us :s (provided they already have an IRC client going, it wouldn't be too much added hassle).
I will once again link to xoxos VST plugins (my fanboyism is showing):

http://www.xoxos.net/vst/vst.html#models

Scroll down to the "virtual machine" plugin. It's closed source but there is a PDF that explains how it works, with a nice signal flow graph. You can also get a very good idea of the underlying algorithm by playing around with the parameters.

Also, since someone else is asking about generating squeaking tire sounds, xoxos also has a "friction" VST that does this. There's no audio demo so I made a quick one that emulates tire squeaking:

http://007ee821dfb24ea1133d-f5304285da51469c5fdbbb05c1bdfa60...

Edit: and while I'm at it, here's another engine sound demo using "virtual machine" (less interesting than the one on his website, but I put a bit of reverb/ambience on it to make it more realistic):

http://007ee821dfb24ea1133d-f5304285da51469c5fdbbb05c1bdfa60...
As a dev of an unrelated lib who cares about making good documentation this is a really valuable comment; I'm guilty of doing this partially for example in https://github.com/franciscop/drive-db where I link to MongoDB platform for the more advanced selectors.

In my experience good documentation takes around 3x-5x of the time of writing the code (excluding tests and tutorials), so while I hate seeing libraries without a decent documentation I totally understand it.

Edit: also it is in alpha, where writing documentation many times backfires you and you have to remove large pieces of it wasting your time.
Comcast is going to start selling wireless phone service
I wonder why if Google aims to hire generalists, then why do they go after so many PhDs, who, by definition, are specialists?
I've got an invite with just a one-paragraph description of my business and a landing page. But later I started to think that if don't know yet if I will be able to turn a profit from this business then I shouldn't commit myself to incorporating a business in US.

To be frank, I was under the illusion that Stripe Atlas would facilitate things much more than they do. There's too much bureaucracy to be faced even after Atlas.
The SF Tech Crawl (TONIGHT)
The equivalent to a bootstrap node is the pub to which you used an invite code to connect to when joining the network (unless you connect to the network in a different way, like by being followed by someone else on your LAN). When you use an invite code, you publish a message with the pub's address on your feed. When peers replicate your feed, they see those messages, and thereby find out about new pubs to connect to.
That is an unfortunate limitation of the Twitter API for 3rd party clients. I've heard that the new way threads are presented on the Twitter website is also terrible.
because quite frankly it's a change of kernel from linux god kernel to a mach type kernel, the android api on top does not change and in fact is the same android api
Alternative outcomes of WW1 represent some of the most interesting "What if?"s of the history of the 20th century.

It's a fascinating conflict to read about, since it seemingly could have gone either way up to nearly the end of the war. Compare that to WW2, where by late 1942 I think it was more or less clear that the axis powers would not be winning on the offensive, and it became more of a question of how absolute the end would be (armistice vs surrender).

WW1 also lacks as clear of a "good" vs. "bad" narrative as the WW2 has, which makes it complex, and complex history is typically more interesting to me.

Obligatory shout out to Dan Carlin's Hardcore History podcast. It's not a perfect academic take on the topics he covers, but he weaves a good story.
Works on my 6 year old Celeron.
Show HN: Break up any API's latency into component latencies
Source? What are these perks like? Also, teachers are paid in highly variable ways depending on state, school district, and union (if any). Saying that teachers get paid higher than average should be expected, considering they are usually required to have a bachelor's degree, pass many rounds of background checks continually, and (in many districts) must continue taking classes and gain education (similar to a nurse).
This is just basic manners like your mother taught you.

It is kind of sad that so much "social" advice on the internet consists of stuff people should have learned by the time they turned 12 years of age.

In any case, I am glad the OP is making an effort in favor of gentility.
FCC Issues Amateur Radio Service Rules for 630 Meters and 2,200 Meters
Lyft Raises $500M
https://docs.meshwith.me

The technology is here, the only thing left is to make people actually use it…
Twitter co-founder Ev Williams is selling 30% of his stock for personal reasons
Nobody ever went to jail because a software defect made their tax filing late. Don't be ridiculous. It's this sort of over-aggrandizement of IT's supposed responsibility that is the cause of the problem. IT acts like they are a thin, red line single-handedly holding compliance and hackers at bay. The god complex needs to end.
> "A simple pen" is a nice example, but the real interesting question is what to do about common goods like natural resources and land.

A pen is made out of natural resources.

> The more we shift to an economy where people "own" things via debt and rent, it really becomes a matter of best bids.

No, a rent is just a transfer of right of use but not right of ownership. Once you have stable property rights you can actually make renting practical, and that opens many more options. It does not fundamentally change the system.

> edit: It's also interesting to keep in mind that the original distribution of land wasn't equal. So much of libertarianism is predicated on ideals like "homesteading", but in practice most parcels of land were unequally distributed from the very beginning. This was never corrected, and continues to reverberate.

Nobody ever said that life was fair, certainty not the classical liberals. No system can go back in time and fix all the morally wrong thing to establish a perfect system and then role history forward. This is not Kafka DB.

The argument is that the best societies establish a property rights system and based on that develop further. That's the best we can do. If there are identifiable rights violation that we can 'fix' then this should of course be done. The issue of course explode in complexity with time.
Raced motocross growing up. Those are some of the happiest memories I have from 6 - 17.

College and then city life meant retiring from that hobby but my new guilty pleasure is downhill mountain biking (Whistler is one of the coolest places on the planet) and BMX dirt jumps.

I remember getting a piece of advice to do what made you happy as a kid. It worked ;-)
> I am not sure how you would twist personal development and remaining up to date with "do more of their job outside of work for free".

Well, unless you're doing personal development at work during the 40 hours (or so) that you're required to be there, then you're probably not getting paid for it. I mean, I'm willing to tinker on my own, but you can be a good developer without doing it (you can also be a bad developer in spite of doing that).

> Would you rather go to a doctor who is passionate about their work and constantly devoting personal time to remain up to date on the latest research, drugs, studies, techniques and technology?

I want to go to a reasonably friendly, competent doctor. I really don't care how passionate they are about being a doctor, because I don't view passion as a proxy for quality (because it isn't).

> I'd pick option #1 every time. Same with engineers.

So my friend is a brilliant chemical engineer, and yet she doesn't sit around designing plants at home on the weekends. No, she hangs out with friends, sings in a choir, watches TV shows, travels, etc. I don't particularly understand the tech industry's fetish with eating, sleeping, and breathing code, and it's a damn shame that we're pushing away really fantastic nine-to-five developers.

> Look, if you are not interested in remaining current, that's OK. Just don't expect to have access to the same opportunities. It's as simple as that.

So it turns out that most software isn't created in Silicon Valley, and more money is made by crufty old Java and Perl enterprise systems than the next sexy JavaScript framework (which is probably just a poor rehash of a computer science concept Alan Kay developed in the '60s).

> Wow. Not sure how you made the jump to harassment there. Gender has nothing to do with it.

Gender has nothing to do with it if you don't experience the kind of issues that women in the workplace face, sure. If you're a man, you're not particularly affected by issues that affect women.
> I've been to enough Baptist and Lutheran churches to feel justified in disagreement.

The largest Baptist (Southern Baptist Convention) and Lutheran (both ELCA and Missouri Synod) denominations absolutely reject it. Baptist and Lutheran are broad traditions, not unitary denominations, and there are certainly minor groups that identify with those traditions that preach either the particular beliefs of the modern "prosperity gospel" or other things that fit within the broader ambit of prosperity theology.

> The Presbyterians (including our president) feel much the same way.

Presbyterianism is a branch of Calvinism, and it's unsurprising that the Calvinist doctrine of the visible elect would be more influential there than in other branches of Protestantism (or non-Protestant Christianity.)
Introduction to partial application (screencast)
HBM (and HBM2) is still too expensive. Consoles optimize for cost effectiveness, and often usually the hardware at a loss.
> I'm not sure how what I mean for 'us' is difficult to grasp. Human societies?

I think the idea they're getting at is that collective preference isn't always well defined / well-define-able.

You're aware of Condorcet's paradox, right?

(Generally, one expects a person's preferences to be transitive, I.e. , if you prefer a to b, and you prefer b to c, then it is generally expected that you will prefer a to c. However, if you have a collection of people, all of whom satisfy that property, and have the group vote on what the "group preference" is between each pair of options, the "preferences of the group" will not always satisfy the property.)

This, along with a number of similar things, seem to suggest that maybe, at least sometimes, there is no "group preference". That the group cannot be treated as if it is an individual with coherent preferences.

So, if "we" can't always be treated as an individual who has coherent preferences, then maybe there's no coherent way in which "we" prefer something else to what the lawnmower does, in some cases.

Now, maybe in many practical cases, this isn't an issue. Idk. I mean, it certainly seems like humanity would "collectively prefer" not to be destroyed by nuclear war, or tortured to death, or whatever. Maybe even for most important things. I think the question would then be "in which cases are societies 'collective preferences' well defined, such that there is an achievable outcome which is 'collectively preferred' to what the market outcome would be?". This seems like an important question to me.

Another thing I find relevant is the VCG mechanism for social choice.
I'm sure the author's conclusions have some merit, but the reduction in traffic likely also has a lot do with the fact that a lot of parents who would otherwise be working during the day are instead staying home with their kids.
SEEKING WORK - Manchester UK or remote

Freelance mobile developer based in the north of England. I’m experienced, reliable and flexible. I have a usability focus, developing native iOS and Android apps using standard technologies. I can also work on back-end tech or employ serverless architectures such as Firebase. Lots of experience with AWS and Google Cloud.

- 7 years iOS on Objective C and Swift

- 4 years Android

- 3 years Java Spring

- 5 years C++

LinkedIn: https://www.linkedin.com/in/garethreese/

CV: http://cv.gazreese.com

Email: gazreese+whoishiring@gmail.com
What all HN readers know and need is a good balance of humourous as well as serious content. Humor is not easy. We should cut humor-aspirers some slack and never vote while angry.
I'd think of it from the inverse perspective. If they weren't continuing to be funded, with the preponderance of opinion pieces on their questionable unit economics, then we'd certainly have a negative effect on overall fundraising sentiment.
Truly, when it is time for the user of an application to load it with content, then is not the best time to download the application itself. Think of all this 'web app' period as just a great big experiment. One day soon, only content will flow when content is needed. It will be standardized so that everyone can see all the items for sale that match his/her filters, and not just 'this one website' list of articles for sale, along with a download of the entire unique application needed to view this one particular store. Water flows downhill, and the 'web app' days are numbered.
And video games. This is a good price for high quality sound coverage.
Uber said to use “sophisticated” software to defraud drivers, passengers
As the author of the post, I just wanted to say that I'll be online for the next few hours and I'm happy to answer questions about my post on this thread here.
I was talking about the ability to use thin layers over top of broad learning. If neural networks are a realistic analogy at all, I think it fits. The roots of all this ML stuff is not straight from linear algebra even though much of the math is.
No, why would I be annoyed about the history of the founding of the west? I am very very familiar with it.

I'm only annoyed that people have been stating that same old statistic which hasn't been true for at least a decade.

41% is never a majority. https://simple.wikipedia.org/wiki/Majority
Denmark Proves We Don't Need the FCC
Under this definition Luanda would make a great candidate. The most expensive city in the world, ahead of Hong Kong, Zurich, and Singapore on Mercer's Cost of Living ranking. A two bedroom apartment will cost on average $6,800 per month, while the GDP per head is just $7,700 per year. It is also on track to become a megacity by 2030, full of glittering spires of glass and steel.
It is odd that 2 stroke street bikes died out here in the US back in the 60s, but off roads have continued until pretty recently...
"Alone among the former belligerent nations, the United States observes a holiday on the anniversary of the Armistice" - Canada has Remembrance day on November 11th.
> It's inconsistent to credit Uber with positive outcomes and not negative ones.

The world is not so black and white my friend. Uber is most definitely credited with both negative and positive outcomes; however, 'an Uber driver is accused of a crime' is not a good example, as such an accusation does not reflect on Uber anymore than you being accused of committing a crime reflects on your employer, assuming you work for a large company. If, however, there was an example that read 'Uber drivers commit crimes on the job at a statistically significant rate compared to taxis, Lyft, etc.,' then we have a means to blame the platform itself.

Or in the case of the sexual harassment allegations, if this is a systemic problem at high levels of leadership, then that's a major, blameworthy issue.
Wild to see Hayek on hacker news