skysight-inc/HackerNews huggingface dataset:
I wan't to ask in all seriousness, or in all ignorance—I don't mind, so please take your pick—why generics are so important. Let's say, in the first case, you have an NSArray in Objective-C. The object in the array is of type id. Now, in the second case, you have an NSArray, but you've declared that it will only hold types of NSString. Why is the second any better?

I ask, because the only way I could see it being better is if you're taking that array—that data structure—and passing it all over the program and using it everywhere. (Note to the literal-minded: this is hyperbole.) If that's what you're doing, that's not Object-Oriented Programming.

If you're instead doing real OOP, you're designing an object that will perform a clearly circumscribed bit of work for you by responding to a set of messages. The NSArray may live inside that object—in other words, the object is composed in part by using an NSArray—but that array is hidden from the rest of the program.

Generics are no big whoop-di-do in that case, because there is no client-programmer that has to worry about them; or, to put it another way, you—the original programmer—only have to worry about that NSArray with respect to the programming of that one object. In that case, the data type the array holds is not a big deal to keep track of.

So, again—seriously—what is so great about generics? The whole point of Objective-C, originally, was that it was late-binding—which, if you ask Alan Kay, was the point of OOP in the first place. If you're worrying about types all over the place, you're doing something wrong, no?
It's 3) To keep small states from being overwhelmed by large states. Assumes that loyalty and identity are primarily to a state (e.g Virginian) rather than to the country (American). Furthermore, causes undo emphasis on swing states, which are primarily based on how much urban/rural area falls within the state borders.

It's similar to the idea that each that each state gets the same number of senators. There's a balance between state governance and federal governance, such that you can live in a state more attuned to your preferences. Regardless of your political ideals, this plays out in your favor (I guarantee it, unless you're oddly attracted to the simultaneously bland and chaotic politics of the federal).

As for the claim of undue emphasis on swing states, I'd say then it's working as expected by even allowing swing states to have a chance against California. So I guess we come to our fundamental disagreement: should the majority always be able to railroad all dissenters? The Founding Fathers thought about the same question and figured, no, the majority is not always to be trusted.

To give just a bit more context still, I'm vehemently opposed to Trump for a number of reasons, but by no means see the Democratic party as putting up many good candidates. I just can't stand by their platform on many things. But my point is that while I would have liked, say, Rubio as president, the majority of Republicans selected Trump. The majority did something I really disliked.

The Electoral College is there to have some kind of counterbalance to oppressive majority. Whether it's truly effective is a matter for another, more detailed debate. All I asked in my original comment is that people not dismiss it as ill-thought-out, unfair or archaic without giving it some thought.

Edit in response to your edit: obviously I'm not disingenuously writing some alternative argument. I wrote this before your edit.
Uncivil and unsubstantive comments will get you banned here. If you'd please review https://news.ycombinator.com/newsguidelines.html and use HN as intended, we'd appreciate it.
The Schengen Area is not in any sense a nation. Look at the definition of the word nation: "a large aggregate of people united by common descent, history, culture, or language, inhabiting a particular country or territory". The Schengen Area checks off people and territory but nothing else.

It doesn't even have a shared government to try to make it fit if you are trying to use "nation" as a synonym for "country". Most of the countries are part of the EU, but Iceland, Liechtenstein, Norway, and Switzerland are part of the Schengen Area but not the EU.
ILM is involved, as is Pixar. Just a guess ~ the press release may have been edited for brevity (like this comment).
Yes, but not all states.

https://en.m.wikipedia.org/wiki/Interstate_Voter_Registratio...
I have been involved in the development of this platform since the early days. I'll be happy to answer any question related to it!
I worked with this stuff for a while and I guess the main realization is that every layer of your stack, down to the hardware, is often as hacky and duct-tape-like as the web is.
I'm certainly guilty of this. The code I wrote for my undergrad thesis over many sleepless nights was easily the worst code I've ever written and was too ashamed to release it. Since then, I've realized that there were fundamental bugs in the pseudocode I included in the paper that were not present in the original source. There are plenty of bugs in the source, but none too major. Effectively, the whole paper is garbage beyond the thinking behind it, but the source that (mostly) works is unreleased.

I would love to revisit it and correct things, but I've since moved on to the point where it would be difficult or impossible in many ways.
Looks appalling on mobile, which seems like a wasted opportunity given that's one of the platforms one might want to use this on.
I'd give it roughly the same chance that I give the heads sitting in cryogenic storage being brought back to life: 0.
Just to clarify: above code ending with `#%s` (`%s` being placeholder of the content written after the bookmark's keyword) does not work when pasted into URL in this form; if you want to try it, delete `%s` before pasting or substitute it with desired content (e.g.`<marquee>...`). (Too late to edit, sorry.)
Sorry cop
Teachers have to live somewhere too.
Weil es in einem internationalen Forum nicht hilfreich ist..
10-15 years ago, if you asked me what would get your SAAS shop owned up, I'd have said an overlooked SQL injection vulnerability.

5-10 years ago, I'd have said credential stuffing in your accidentally-exposed admin app.

Today, without question: it's AWS misconfiguration or credential leaking.
did you scrap Original links contents ?
Nope. I still found many ways to crash my objective C apps while using ARC. Because Swift is memory safe I no longer have to give up days or weeks of my life tracking down obscure bugs caused by overwriting memory I should not have.
If you're referring to provisional ballots, those precincts generally require the person to return to the board of elections within 10 days and provide some form of ID.

If you're referring to a normal ballot, I've not seen anywhere that doesn't require some proof of residence and identity, like a very recent bank statement matching the registered address for that voter.

For that to be an issue, someone would have to:

1) Obtain a recent bank statement for a registered voter

2) Show up, in person, at the correct polling location

3) Commit a felony by lying to the poll workers and voting illegally

4) Hope nobody who knows the real person hears them claim to be that person

5) Hope the person doesn't show up and try to vote
Building a full stack React and Express site using Flow
As all things should be.
So I take it you won't be in on their ICO presale?
No, you don't understand my question. My question is: is there some legal basis for the idea that a corporation serves as a liability "buffer" for the actions of its employees?
Didn’t most of the deaths come from famine, not the one child policy?
That refers to civil liability --- in fact, mostly to contract liability, since tort claims sort of automatically "pierce".
I have helped people upgrade 16.04, and we have encountered some bugs.

I used to run Ubuntu, but I see less and less reasons to do so these days. It's too complex and brittle. I can't understand it, and many of its components either deviate significantly from upstream due to excessive patching or they are non-standard things.

If I want to run a simple imperative distribution, where everything is understandable and packages follow upstream, I run Arch. I used to run Slackware, but the number of dependencies has grown exponentially. So dependency resolution is needed, and Arch follows Slackware ethos very closely. With the introduction of systemd, it provides vanilla packages and almost nothing else. It's literally what you get when you turn Linux from Scratch into a binary distribution.

For most things, I'm going a step further, and I run a functional distribution. NixOS is great, and GuixSD shows some promise. Functional-ness brings a lot of peace of mind. I love having declarative and reproducible setups.

Interestingly, the only two distributions where I have had zero problems setting up Keras and PyTorch are both Arch and NixOS.

Choose your way. Either imperative and very simple (Arch, Void) or functional (NixOS, GuixSD). I think there are a lot less advantages running regular distros (Ubuntu, Fedora).
Wes Bos' series is nice if you're looking for something a little more long-form/hand-holdy. I have the same problem and was working through it earlier today. Comes with exercise files for each newly introduced concept. You have to provide your email.
https://cssgrid.io/
Please don't do flamewars on HN and for heaven's sake not nitpicky pedantic ones.

https://news.ycombinator.com/newsguidelines.html
Spot on regarding cars parked on public property. Think how much space there would be for cycle lanes and lanes for anything else like scooters if we got rid of all the car storage.
I’d imagine they ruled out an alien source simply because any astronomical phenomenon could be produced by aliens. Thinking about that for anything slightly unusual is just burdensome cognitive overhead.

Similar to how cosmologists aren’t satisfied with “god did it” as an explanation. :)
Which means you have to be in a stable living situation.
Please stop doing political and ideological flamewar on Hacker News.
It's surreal to watch Musk throw away his reputation and success so quickly and casually. Then again, a lot of things have seemed pretty surreal lately. Welcome to the brave new world of post-reality.
Hey all, I didn't have long so this doesn't work on mobile and it has very limited functionality (shows the plain text of articles on the front page of HN).

I wanted something that

a) loads fast (articles are pre-downloaded and parsed every 10 minutes so that I can serve up only static text)

b) emphasises text (CSS shamelessly stolen from [0])

There are a ton of other HN readers out there, so would love to hear if this is a look/feel that others might be interested in using. The text is pretty buggy for some sources (article extraction is a really hard problem) but in the morning when I have a few minutes I like to spend them reading text instead of closing tracking cookie overlays :)

[0] https://perfectmotherfuckingwebsite.com/
Upsolve (https://upsolve.org) | New York City | Founding Software Engineer (React/Node/Postgres) | Full-Time

Upsolve is an award-winning nonprofit technology startup that helps low-income Americans get a fresh start after financial shocks. We do this through the first software platform that automates Chapter 7 bankruptcy.

At Upsolve, you’ll help more clients in one month than most nonprofits help in several years. We’re supported by the top funders in our space. This includes the Chan Zuckerberg Initiative, ex-Google CEO Eric Schmidt, the Robin Hood Foundation, and the U.S. Government.

I'm the CEO/Co-Founder and would love to hear from you. Drop me a line at rohan@upsolve.org.
Friendly fox genomes help us understand the genetics of behavior
anti-social behavior is mostly manifest as a gaming addiction ¯\_(ツ)_/¯
That feels like about three layers too low.

Pretty much my entire feeling on AWS's UX every time I want to do something simple
Or maybe worse: flaws are discovered in the system and they don't change in response. That's the slow moving ship of government IT.
If the admin app were not exposed, wouldn’t credential stuffing work just as well on the VPN interface?
You don't know who has been downvoting or flagging, and making insinuations about this is explicitly against the HN guidelines. Trotting out someone's given name in that confrontational way is also a cheap bit of incivility. If you continue to break the site guidelines, we will eventually ban you, so please https://news.ycombinator.com/newsguidelines.html and follow the rules from now on, regardless of how you feel about Google, China, or any other topic.
China's total fertility rate is already well below replacement level

I hadn't heard about this, but a quick DDG shows it's true.

"Census data for 2000 produced an estimated TFR of 1.22 children per woman (for the year November 1999 through October 2000"

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2849170/

Unfortunately the article is from 2009, and a lot has happened in China in the last decade. I'd like to see some updated studies, if anyone has a linky.
Thanks for the response! This is great, makes it pretty much a better version of mpi. Could you add this to the documentation, or if its already there maybe a link on the main doc page about running on a cluster?
The same way human ballot counter is an attack vector. And indeed, they are compromised in places with rigged elections.
sometimes they do a "soft" censor and just push them down the search result list so that any casual user would never see them... but they also do some hard censoring.
Swift is a really approachable language, it’s core features are simple and the code is very readable. You can write any app without having to use generics, extensions, protocols, more esoteric enum features, etc, etc.

But once you learn to use the more advanced features, your code just gets easier to write and maintain. I enjoy that I can pickup new language features in Swift one at a time, figuring out where each adds its best value, and occasionally refactoring to take advantage as part of my ongoing efforts to minimize code debt.
After painfully looking for a grid system for a while, we decided to ditch bootstrap and the idea of a using a css-library and to simply use styled-components, some defined breakpoint strings and flexbox and couldn't be happier.
The linked article shows the number of "quiverfull" people is less than a rounding error: 0.0025%.

So, not so much a "movement" as a reality TV show.
People have said it here already, but I will repeat it again. Systems (actually habits!), not goals, are the solution.

You need to derive pleasure from sticking to a habit and making continuous improvements. Arbitrary and concrete goals might be hard to achieve. But if you stick to habits, good things will happen™. Good things that are hard to plan. E.g. you will not get the girl you want, but you will get another great girl, possibly a better one!

Sticking to goals brings very short-lived pleasure, whereas habit rewards are continuous and long-lasting.

To form habits, try https://www.tinyhabits.com/. In a nutshell, this is a continuous improvement framework for habits.
That reads like an indication that you don't want to use HN as intended, so I've banned the account. If you don't want to be banned, you're welcome to email hn@ycombinator.com and give us reason to believe that you'll follow the rules in the future.
As long as literally nobody moves back to where they started, otherwise everybody involved gets locked up for the aforementioned years and years.
Angry People Think They’re Smarter Than They Are
This is in my opinion, a solved problem. Us Brits have numerous rules around how paper ballots are marked & counted, for example - https://www.theguardian.com/politics/2015/may/06/vote-with-a...

The fact is, in any election, you only get a few people marking papers like this. At the final local counts, the total spoiled, unmarked, etc. ballot counts are read out as separate totals. Very rarely is this total a number that has any affect on the overall outcome. Average rejection rate of ballot papers is around 0.28%. In those rare instances where it's that close to matter, there would be recounts & additional checks against those spoiled ballots.

As a side note, it baffles me that any country would ever not have simple paper ballots with pens/pencils. Pens are safest IMO & pencils should probably be discouraged, I don't personally agree with the (generally historic) reasons for pencils being preferred.
Interesting quote about the targeted lifespan of consumer electronics products.

> Semiconductor devices age over time, we all know that, but what is often not well understood are the mechanisms for aging or the limits that will cause a chip to fail,” says Stephen Crosher, CEO for Moortec. “In addition, there is bound to be a requirement for a minimum lifetime of a device, which will depend on the application. This could be 2 or 3 years for a consumer device, and up to 10 years for telecommunications devices. ..."

Considering the price for devices with chips of even moderate complexity, 2-3 years is shockingly low.
All it will take is a couple of wars to restore the balance. That's how it has always been historically.
That's a theoretical problem. And one that doesn't scale. You wouldn't be able to realistically intimidate 10,000 people and watch each one drop their ballot into a box.

In practice I don't think there are even fringe accusations of it being a problem.

> Having monitored physical polling stations where people vote in secret removes this opportunity

It reduces, but does not remove, the opportunity. https://en.wikipedia.org/wiki/New_Black_Panther_Party_voter_...
As an embedded engineer I can’t agree that C “has problems” because it treats you like a big boy with your big boy pants on. :)
Which famine are you referring to? The last major famine in China, as far as I know, was in the 1950s/60s during their Great Leap Forward.
A "one child policy" is pretty obviously below replacement level.
Quite new to Product Hunt myself but I believe you can publish/launch the product yourself or for more impact, you can reach out to some of the top hunters to see if they want to collaborate.
>"After all, without trade secrets and IP, a business has nothing to stand out from the crowd."

Except that GoDaddy has a massive, massive brand with millions invested in marketing over years of business. Its success is hardly down to trade secrets or juicy AWS discounts...
Don't you have a similar deterrent for being an illegal immigrant in the first place?
What?? No! Really? I had no idea... I always pointed it out to visitors. Sorta sad! But I guess time moves on.

I wonder how many people in 60 years will remember some of the major tech companies of today. Already Sun microsystems is fading from memory... How long does Google, Facebook, Apple and Amazon have?
Ask HN: Why don't we start our own political party?
Something Is Rotten in the Waldorf School at Moraine Farm
Yeah that's definitely the case. I tend to use it as a minimal foundation and build on top.

I haven't used Tachyons but like Tailwind. My problem with utility-first frameworks is that I prefer to do my styling in Sass than by adding loads of classes to elements in the template.

Both are valid approaches though and I can see why people prefer both.
Habits. Actually Habits >>> Discipline >>> Motivation.

Developing good habits means I can use the small amount of willpower everyone has per day on making some improvements or working on extra-hard tasks while still doing many additional things that take little effort since they are habits already.

I run continuous improvement tasks every now and then, and I have designed some key habits to live a fulfilling life, which I'm evolving slowly.

I use a simple task management system that looks like a kanban board, plus an inbox and a calendar. The key here is to control flow and keep it easy to maintain.
"After all, without trade secrets and IP, a business has nothing to stand out from the crowd."

I'm not sure if that's meant to be sarcastic or serious.
They were both caused by the same inhuman ideology enforced by a madman.
It really sounds like you worship these kinds of companies and the people who work there. Hopefully it’s not too personal, but the grass might not be greener on the other side. I grew up in a relatively wealthy family, with extended family coming from poorer backgrounds - and they were just as happy as us. At the end of the day it’s up to you if course, I’d just recommend reflecting on what about those companies/people truly is aspirational besides hot “job prospects.”
Yes, and the famine was due to Mao's farming policies, Deep plowing, etc. It was also in the 1950's and 60's (not 1985), and the generally accepted death count is 15-30 million, not 100 million.

Lot's of misinformation in the parent comments
In safari, the address bar doesn't allow JS by default. You can turn it on via the Develop menu, but when you have that menu on, you could also just use the snippet editor that's in there ;-)
SpaceX’s 2018 Crew Dragon launch debut imminent
Since forever.

https://www.tsa.gov/blog/2013/04/09/tsa-travel-tips-tuesday-...
This is why most well-known speed test sites are useless, in that they are carefully gamed by the ISPs, so that they show you only the maximum speed you could reasonably achieve to their highly localized high speed network. It tells you little or nothing about what you could get to anywhere else.

The dslreports speed test is pretty good, and the one from fast.com should give you a pretty accurate picture of what you could see from the Netflix infrastructure.

Beyond that, you need to run your own CLI tools and be in control of both ends.
A framework is useful especially if you’re not a visual designer. Most will make some basic decisions for you about relative sizing and spacing, and also help maintain visual consistency.
The paper is pretty coy about what they mean by "network", "congestion" and "latency". It doesn't just apply to computer networking -- the original motivating example for this kind of model was road network traffic, and it also applies to things like choosing which bus to take to work with some "overcrowding discomfort" function.

This research could motivate how self-driving taxis are routed through a city. The Braess network example shows that cooperative routing could decrease everyone's travel times simultaneously compared to the "everyone takes the shortest path given traffic" Nash equilibrium (called "Wardrop equilibrium" in the continuous network flow domain.)
No, because the people whose credentials tend to get stuffed in these examples tend not to be the people who use the VPN. Like, it happens, but "tier 2 support" is the victim I'm usually thinking about here.
Developer productivity is far less determined by how fast you can write code, than by how many bugs you create, and how hard it is to fix them. The vast majority of time is spent debugging and maintaining code.

And I feel like I can write in Swift nearly as fast as Objective C. Objective C was always so baroque, when I define a method or variable and declare the exact same thing in a header file? Properties syntax?

I actually switched when Swift 1.0 came out (just after writing a twenty thousand line simulation engine in Objective C). It was so lightly baked I was starting to regret my decision for a couple months until version 1.2 released, only then could I ship my app commercially. Since then every release has only gotten better, and the rough edges are entirely gone. The only thing I miss from Objective C is compile time, and now just barely given how much faster the compiles have gotten.
I played with Factor when it was new and never managed to advance to a stage where I wouldn't have to come back and fix stack corruption. And then again, and again, even for simple pieces of code. YMMV.
Except the numbers of human counters increases linearly with the number of ballots cast. And the counting generally happens in a room with several people from multiple counting the same subtotals.

So no, not the same as human ballot counters at all.