skysight-inc/HackerNews huggingface dataset:
You can't evaluate readability without knowing the conventions that a system is working with. (That means knowing something about the people as well, btw.)

In this system, 'rks' communicates something that 'ranks' does not: that this is a local variable denoting a collection, and that it is a collection of the things that 'rk' denotes one of. So actually it adds quite a bit to readability.

If I were going to edit that code to make it more readable, the one change I'd consider is using 'r' (or maybe 'n', because these are integers) instead of 'rk'. One can argue either way whether the k adds information or just noise.
GDPR is a boon to large tech. The more complicated the compliance the bigger the advantage for large firms.
You know who else might spot gendered, exclusionary language better than colleagues? A woman.
I totally agree the prelude is full of cruft and needs to be scraped and redone fully. But the data structures libraries are all really good and if we could just pull in the succinct and unordered stuff, it's gone some of the best data structures a standard library can ask for.
https://news.ycombinator.com/item?id=17912980

17+ points
I think what has happened is that post war we have defined success as having it better than our parents. Which isn't necessarily incorrect, though ways of measuring that can be. Starting in the '80s people have been making a lot of money in things like real estate and the stock market, while the price of access to opportunities like education and job markets have increased. If you weren't part of the former group, you have essentially been left behind.

At the same time wealth, or inequity, isn't something a lot of people talk about openly. So you are left either accepting your place in the world or you can pretend that you have success by going into debt and hoping for the best. That is that the market continues to be on your side. Some people might even think this is the normal thing to do, not realizing other people have family wealth. Some people realize what is going on, but thinks that it is worth trying anyway. Or they could be those people with family wealth.
There's some irony in posting this here, given this is a user-generated site and all, but I'd love to see all the safe-harbor provisions be seriously rethought. It would wreck the tech industry, but save the internet by decentralizing it, and kill off cesspools where idiots wreck society while profiteering scum become billionaires amid the carnage.
The way to make loans to family and friends is straightforward. Make a small loan. If they pay it back, then loan larger amounts.

If they don't pay it back, you have the perfect excuse to never loan them any more.
Yay for an ethics component! Albeit, I have a strong feeling it'll be treated as a (for lack of a better term) BS class since the audience this caters to isn't necessarily those interested in academia but are more likely to do this track b/c it'll be more beneficial for jobs.
> Nothing in that article makes me more worried about a Chinese company being potentially compromised than I am worried about a US company being potentially compromised.

I think that this is a terribly naive assumption. Privacy is cheap if not meaningless in China. The government can request access to server private keys and it often does. Anyone that has tried to deploy a service in China knows that it is an absolute security nightmare because of the security allowances you have to make for the government.
I figured, and to be honest it's not that big of a deal. I swear it used to be much worse when the collapsing comments first came out, but as I made that comment I realized that I actually had trouble triggering it.

Either way, it's a minor annoyance on an otherwise fantastic site!
Agreed. I suppose if it passes, it's going to be another application of John Gilmore's excellent "The Net interprets censorship as damage and routes around it".
It sounds like you weren't using the real DMCA takedown notice procedure. If you sent Youtube's designated agent a proper takedown notice with all the information required by law (which you certainly should have been able to do correctly on the first try), then three months of non-response or heel-dragging from Youtube would give you an open and shut case for suing Youtube directly for the copyright damages.

On the other hand, the 45 seconds of stolen material you refer to sounds like you may be going after uses that may fall under fair use, in which case you should absolutely expect to have a fight on your hands, though only after going through the DMCA takedown notice and counter-notice dance.
dont you need some form of looping/iteration/recursion?
In theory Flow has a stronger inference engine than TypeScript, which means it's more suited to incremental adoption.

TypeScript is based on an AST; which means it's inferences are limited. For example it requires you to type the parameters to a function. If the return type is derived from untyped parameters then TypeScript falls back to typing the return type as 'any'.

Flow maps the flow (hence the name) of types throughout an application, which means that it can derive the signature of a function based on the types that are passed into it. That should mean that it's a little easier to add to an existing project.

Here's an example of Flow finding an error without any type annotations: https://flow.org/try/#0PTAEAEDMBsHsHcBQBjWA7AzgF1AQwCb4BMoAv...

And TypeScript missing the same error: http://www.typescriptlang.org/play/#src=const%20add2%20%3D%2....
Poll: How old is your current smartphone?
Find the entry which most closely matches how old your current smartphone is. By 'how old' I prefer: how long it has been since the specific model was released for sale; and not: how long you have owned it.
0 months
4 years or more
Let them be skeptics. We should welcome the ugly questions, identify better answers and seek to advance them.
If you aren't incurring losses, it means you are throwing away potential income by growing too slowly, and inviting competitors to take up the slack.

In case of a market or tech hiccup, you might find yourself without "sufficient cash flow", and collapse, but that would be the investors' problem. The investors are assumed to be able to absorb the loss and disappointment without undue discomfort, and so they are. Risk to your dreams takes last place.
This seems similar to CRTC programming rules in Canada which apply to cable. Also it may shed some light on Netflix developing relationships with the government in Canada.
Backstage Capital offers $100K to diverse startups for four-city accelerator
To be fair, some of them predate the STL
Please correct me if I'm wrong but I did read these articles back when the vote was up a few months ago and my interpretation was not that it is a requirement to have an automated evaluation system.

Sure youtube will of course implement an automated system but my point is that if you setup your own Peertube instance you can still screen content and let users report possible copyrighted content to you for manual screening.

So small scale, self-hosted or themed instances will still be possible but they will have to moderate their content and they will have to act on received copyright violation reports.

The author seems to be pointing out that small players cannot compete with Youtube because Youtube will have the means for automated large scale content screening.

Well small players can do it manually. It will only work up until a certain level but it still enables people to host small themed instances of peertube for example.
There were also things like Michelson's harmonic analyzer:

https://www.asme.org/engineering-topics/articles/technology-...
Oh damn! I'm coining Web 6.0 just to be safe.
Well they are a user and not the programmer so they may not have that option.
You are right, I've been looking into EU taxes and the Netherlands, which was dead last in the list above, has a nice 30% tax cuts for expats.

The EU seems to tax quite heavily compared to the US, and also the salaries are also quite lower there too, I checked the cost of living in some EU cities compared to Austin and the salaries are not great.

I am only looking into Europe because the immigration system there seems to be much better than the US, otherwise the US would be much better option.

In a related note Teachers salaries don't seem that different.
All corporations that spent money on compliance, their customers, their employees, etc. It's becoming very annoying to see proponents of the legislation act like it only impacts one type of tech company. That is willful ignorance.

Oh, and I understand that some don't realize it, but some of us out here running and working for companies affected by these rulings are people too. I wish everyone would stop pretending who they hoped would be affected and see who actually are so we can move from politics to reality.
The data in the "Lost in Place" report that the first point references seems questionable. I spot-checked a couple municipalities I had firsthand experience with (Boston, San Francisco, and San Jose). The worst "fallen star" census tract was the Boston Harbor Islands, which ostensibly has gone from 9% poverty to 82% poverty over the last 40 years. However, this is largely because most existing private uses for the islands have been discontinued, such that the largest complex on them is a sewage treatment plant on Deer Island and a homeless shelter & public services complex on Long Island. When most of a census tract of 1500 becomes a national park and the only thing left is public housing for the homeless, of course the poverty rate is going up.

Similarly, the only "fallen star" in San Francisco was the area around SFSU. If most of the population in a census tract consists of college students without an income, of course the poverty rate is going up. That isn't actually reflective of poverty as we know it, though, because it just so happens those districts include people who are spending hundreds of thousands for a credential that will hopefully let them earn more in the future, and isn't reflective of their lifetime earning potential.

Makes me wonder how many of the other "fallen star" neighborhoods the report references consists of colleges, prisons, or other social services.
No the screaming was about politicians who required the Post Office to fund it's pensions, then went and used that fact to claim the Post Office is mismanaged and we should outsource that basic function.
Tesla does. But builds most of their parts in house. And even outsourced parts may wind up inside of the part you need to replace, and therefore you're still bottlenecked on Tesla.
This is how centralization and sweeping censorship/fascism seems to work in the new modern era we live in. Govt bodies react to pressing problems by increasing regulatory footprint so much that only companies like Facebook, Google/YouTube, Twitter, could possibly comply with. At the same time, these companies are at increasing pressure both from frequent public outrages to politicians to do something about users and types of content shared on their network. It’s easy to dismiss how these companies comply with regulatory bodies and react to public pressure to ban certain types of content and users so long as it is possible to create alternative networks. With stuff like this, it’s not so far fetched to imagine it increasingly difficult to launch platforms similar to YouTube and Facebook/Twitter, if not prohibitive without special deals and partnerships with major media companies. We need a new internet
I think we all know what to be called investment. Building highway, high speed train, subway, are all investments, which are called win-win, for local people, they got the better public transit, and for Chinese developers, they got the profit.
torrent trackers don't database content, they index it
I had a dream of wanting to start a company one day and was interested in a more holistic understanding of the business side of things. I thought that it would add some credibility when speaking with business types but also uncover ideas to base the company on.
> then move somewhere cheaper and older before the home or the home's surroundings deteriorate

sure, if you know exactly when this will happen. but if you know, other people probably know, and they won't pay as much for your house.
Awesome. I love stories where hard work pays off. Hats off to this family.
Couldn't agree more, sometimes too long makes things so much worse. I don't know why this is more common in Java code bases, but I've definitely seen function calls that take 6+ lines (have to maintain that 80 column limit) due to horrible naming. By the time I finish reading that, I've already forgotten what the base class is even called.

However, I've also seen large classes with members like "stN" for "set N". WTF is N, and why can't we just type set, that one char doesn't save anybody any time at all. Or nested loops with i & j reversed, just to make it especially painful.
These clickbaity, overdramatic headlines are getting kind of tiring.
Sounds close to what Berkeley AI and Robotics lab is developing with model agnostic meta-learning. pytorch implementation here:

https://github.com/tristandeleu/pytorch-maml-rl

And demo where robotic arm learns to navigate a simple task after watching a single video of human doing same ;)

https://bair.berkeley.edu/blog/2018/06/28/daml/
What does a marketer do on a daily basis?

Edit: Removed "Is it different than advertising?"
Or better still, use the HTML elements whose sole purpose is to display nested content: <UL> and <LI>
We're thinking about this issue right this very moment. Kids are 8 and 10, and in afternoon out-of-school care for 1.5-2 hours two days a week. Thinking for next year we will just let them take themselves home.
Is there any significant competitor to youtube in the American market?

This is not the reason for lack of innovation. If that was the case, China would have not moved up the ranks with a legal environment that makes this law look like nothing.
The reason why nobody competes with youtube is because youtube is big because of platform and network effects, so the distribution of users basically looks like a power law distribution.

The only way to compete is actually to move towards a closed internet. Shut Youtube down in Europe and build a national champion that provides the same service.
It's fine to defend the open internet, but it's got nothing to do with innovation. Europe lacks in this regard for very different reasons, among them non-existent of VC funding and no concentrated knowledge networks. Europe has no Silicon Valley. The Silicon (semi-conductor) part of that name being vital.
That sentence could be my definition of a "boring, unpleasant life"; I would rather do almost anything else. It's great if it works for you, but different people are very different indeed...
Life is good. But technology is morally neutral: it can be used for good or ill.

It's a simple fact that only technology could possibly prevent the next big meteor strike, the next ice age, the next local supernova, etc.

If people feel greedy or jaded or wretched or guilty (or think that all their fellow humans are) I think this is a sign that they need to choose a genuinely important problem to work on. And to have fun working on it -- perhaps with the occasional mango/beach holiday thrown in!
Jix – A better way to Git on the command line
Really? Then you aren't using it at all. The impact it's had on my life is that companies have to tell me what they're doing with my data. If I say no, they have to refrain from using it, they can't just say "well tough luck, we have it now". If I give my email for a contest, they can't keep spamming me with crap. If I tell them to forget I exist, they have to do it. If I want to see what Facebook knows about me, it has to tell me everything.

As someone who runs dozens of side-projects with thousands of users, I didn't even have to change anything. All it took was to not be shitty to begin with.
Last year I finally, after over a decade, 100% deleted my personal account omn Facebook. I just got so fed up with it all. The service had this sour yet addicting pull over my online experiences - a pull I grew to despise.

I had found myself either hiding or unfriending folks I'd been friends or acquaintances with over 25 years ago. People I no longer had anything in common with, yet had re-connected on Facebook because we could. Seeing some of their posts, however, became a total pool of swirling toxicity.

So I finally just deleted it. I used to "take breaks" and simply disconnect it for months at a time. But I'd never gone full nuclear option until last year.

At first I had these weird feelings of - I assume - withdrawal. They lasted intensely for 2-3 days where I'd experience something with my kids and think, "Man, that would have been a photo I would have loved sharing." After about two weeks all of those thoughts drifted away. By week three, they were utterly gone. I don't miss it one bit. I'd relearned to experience life normally and not feel the need to put it out there. I still take a lot of pics; I just email them to my mom now.

Now that being said, I did create an "anonymous" Facebook account for one single use: Groups.

I'm deep into the retro-computing/gaming scene (especially Commodore) so I created a moniker that has nothing to do with me personally. This allows me to maintain my privacy and sanity while being able to stay "in the know" around these niche topics.

I never post any personal articles, photos, etc. It's just for Groups. And at least from that standpoint, I've found it very useful. None of the content (for the most part) is ever objectionable nor even controversial. It's the new Forum, basically.
It’s counterproductive to label all regulations as if they’re the same.

Antitrust laws and consumer protections are very different from something like this designed to maximize profits for record labels and publishing companies in character and effect on the world at large. Some regulations are essential to a functional society, while others, like this, are disastrous and serve only to reinforce monopolistic strangleholds.
Now that it's no longer full of people who think like John Gilmore, I'm not convinced it does any more.
"It seems the latest plan for the Chicago pensions is to issue $10bn in bonds with the assumption this will earn more in the fund than interest they will pay on the bonds.
"

What could go wrong here? Seems like a 100% bullet proof plan!
That's just out-of-scope of the tool in question (Mastodon). Any tool is helpless against Human control. If that is the case the I think I know what you mean by "not meaningfully decentralized".

BUT, if we can at least break the monopoly of FB and Twitter into at least a hexapoly, then that has still meaning. The internet's design allowed for many to use it meaningfully decentralized for many years.

Also, BitTorrent got lots of gov't regulation, but I can still use it since I'm outside the west. And rutrackerDOTorg is so good. I think that is meaningful.

The long-term solution for this Human problem -I believe is to for employees to own corporations. Gov't is corruptible by private companies that is run by modern feudal lords called Executives. The larger the domain of these companies, the more influence it can do to the Gov't. And we have now reach a point in history that these Modern Feudal Lords has acquired all their competitions (Oracle, Disney, that rich dirty old man who owns all new corporations, Bezos, etc.) and is ready to reincarnate Hitler but with orange skin.

And by employees owning corporations. I mean 1-person-1-vote, instead of 1-share-1-vote. Managers and CEOs can still exist, but is not permanent. Employee-owners can recall them anytime, and they can agree for a quarterly or semi-annual evaluation. Employee-owners also decide how much to pay Managers and CEOs, how to use the profit. You may ask if this company can survive? This has been done in large scale by Mondragon, a corporation and federation of worker cooperatives based in the Basque region of Spain. Not perfect but it has done good progress.
I was merely pointing out troubleshooting steps, not suggesting you take that as a solution to the issue. As I said, it‘s been worked on and latest nightly seems to improve that situation a bit.
Ask HN: What do to with crypto miner?
Last year at the height of the crypto craze I spent about $6,000 building an ethereum miner. Now that crypto is lower than when I built it, and the summer heat combined with the heat from the miner is making my office nearly uninhabitable, I'm wondering if I should convert the miner to a rig for ML, a gaming rig, or disassemble it and sell the parts. The miner has 6 RX-580s and 2 GTX-1070s, an i5, a decent motherboard, a 1350W power supply, and a 8GB of RAM. I'm curious if anyone in the HN community has suggestions, or stories about similar scenarios. All serious replies will be considered and are appreciated.

Thanks folks!
Would you be willing to chat about approved vendors? I can't find your email, but here's mine: derrick@amass.ai

My team did some work for the KS04 special election last year, and now we've developed a service for political campaigns. But traction.. maybe we're getting screwed by this approved vendors thing.
> there is no evidence to suggest that more than a few percent of people can become a computer programmer

Source?
That's because those things are flooded with competitors and margins don't scale nearly as well as pure tech. Every time I walk through my local farmers market I see a new brand of Kumbucha or Flat Tummy Tea.

But, there is competition everywhere, and it gets fiercer by the day. So pick something you're truly interested in and roll with it until the wheels fall off. That's really your only chance ( if you have one at all ).
Worth looking at the 40% rule for SaaS: https://www.feld.com/archives/2015/02/rule-40-healthy-saas-c...

The rule states that a "sane" target for annual growth rate + profit margin is 40%. At a 100% YoY growth rate and -33% profit margins, Elastic is sitting at 70% -- making it pretty solid!
I agree epub are painful when you have complicated layouts like tables and code listings.. it's just how the format is.

My book was a non-fiction novel, so that made life much easier, I only had some tricky image layouts to deal with.
I believe that Google has good intentions behind pushing AMP. They want websites to load faster. Everyone wants that. I especially hate those bloated news websites. But AMP is a wrong solution for the problem. If Google wants to make web pages faster, it can more heavily penalise slow and heavy pages in search.

I used to host my website using WordPress with a lot of plugins. It was incredibly slow and unreliable. Eventually I decided to replace it with my own custom solution developed from scratch. We had blog, forum and payments on the website. It took just a couple of months of evenings and weekend work to complete the project. I'm very happy with the result [1]. It works 10x to 100x faster and it's much more flexible. My point is that people shouldn't be afraid of replacing their existing bloated system with something new and better. I was afraid that it would be impossible to replicate WordPress and plugins functionality that I needed, or it would take too much time and effort, but I was wrong. I'm glad I made the move.

[1] https://www.traccar.org/
>is there a case against building within the AMP HTML and JS spec?

Yes, you shouldn't need javascript for basic functionality like images.
Please don't cross into personal swipes like that.

https://news.ycombinator.com/newsguidelines.html
Wow. I lived in west Indiana in the late 90s, remember Carmel as the 'new In place'. Looks like they're headed for trouble.

Bummer. Hope city planners are taking note.
AMP is a practice in anti-competitive moat building that net-neutrality enforcement would obviate.
To reiterate my earlier comment: 'everyone apart from the insane'