skysight-inc/HackerNews huggingface dataset:
I agree with many of your points, but on that specific example code you pointed to which I have never used or looked at before, I find it plenty readable if you know how to read it. That doesn’t mean I find it “obvious” if you have never been trained on how to read those signatures or come from another language that does not support these concepts.

Here is how I read this in case it helps anyone

Def zip[A, B](a: ⇒ F[A], b: ⇒ F[B]): F[(A, B)]

F[Something] is a “container type” or a type constructor, a type that is parameterized by another type, for example F[Int] could be List[Int] or Future[Int].

The method zip has two parameters, one a by name reference to something of type F[A] and the other a by name reference to something of type F[B] and returns an F of the pair of input types (A, B)

Looks like this deals with three total types, a container type F that must be the same for input param a, input param b, and the result.

I know nothing about F other than the fact that it contains another type. I know nothing about A and nothing about B which means I can’t be looking them up somewhere or using defaults, so the only way I could possibly return an F[(A, B)] is if I combined the two inputs.

Also, code written in this style is meant to follow the substitution principle, so I’ll think through a couple of substitutions to see how this method could be useful to me.

For:
F = List, A = Int, B = String

Def zip[Int, String](a: => List[Int], b: => List[String]): List[(Int, String)]

Since I can’t invent new members of list and the two members of the list may be different lengths, this must return a list whose length is the minimum of a.length and b.length containing and int -> string mapping. Handy.

F = Future, A = User, B = LastLoginDate

Def zip[User, LastLoginDate](a: => Future[User], b: => Future[LastLoginDate]): Future[(User, LastLoginDate)]

This can only return me a User if they have logged in at least once. The fact that it is two Futures makes me think I am probably querying two remote servers for this information and that I can’t resolve the new Future until both of the input Futures have resolved. By the time this Future is ready I will have a User with their last login date or the Future will fail.

F = Option, A = IpAddress, B = Port

Def zip[IpAddress, Port](a: => Option[IpAddress], b: => Option[Port]): Option[(IpAddress, Port)]

I may have an IpAddress, I may have a Port, either return to me both the IpAddress and the Port, or neither.
This one is really easy to map out as their are only 4 possible code paths

Some(IpAddress), Some(Port) => Some(IpAddress, Port)
Some(IpAddress), None => None
None, Some(Port) => None
None, None => None

I agree some documentation explaining this would be nice, but there is considerable information I can pull from this signature.
when I see people who don't use a mouse with additional buttons for things like navigate forward and backward in terminal and IDES, I also question them.
Web developer here. The MacBook Air is fast enough for me, so I am very much interested in thinner, lighter, and non-performance related features (Touch Bar and Touch ID) in the Pro lineup.
True, that's an interesting question. I'd guess it might follow the rules for writing a will, so you'd have to be 16, and even then a court might override it for the parents.
>How does someone being a hollow earther hurt you? How does your sister believing in crystals impact you?

It doesn't hurt me, but those beliefs hurt society.

People have died of otherwise curable or treatable disease because they trusted homeopathy or religion over science. Flat earthers might have laudable goals in encouraging people to question their assumptions about the validity of science, but they do so by discrediting science altogether, and encouraging others to do the same.

If you can accept that "the establishment" has hidden the fact that the earth is flat since the dawn of time, then it's easier to believe things like "vaccines are really population control" or "Jews did 9/11".

>People should be kinder to each other and should jump down peoples throat a bit less, that stuff is what makes the world fun.

Putting up with self-delusion because it makes the world more fun isn't kindness.
> Aren't those all features described exactly for the "niche developer/macrumors posters"?!

Yes, and, trust me, most developers I know who got newer MBPs are pretty happy with theirs. I know I am and I hope I get one of these newer ones next week. 6 cores and 32 gigs of DDR4 make a lot of a difference. The vi users make jokes about the Esc key, of course (but I'm into Emacs, so no problem for me). One company I know of offered the "classic" model for those who wanted to have it and nobody took the offer.

Among developers, the 10% troublesome to 90% happy rate seems to be present.

I, personally, have different priorities and have no problem with thicker laptops. My next personal one will probably be a maxed out Lenovo or Dell XPS, since they are cheaper than Macs at the cost of features I don't really need (high-fidelity screen, for instance).
I find it odd that "so many" reports are related to a grain of sand. I get a lot of dirt in my keyboards, but never sand. But maybe that's because I don't use a laptop on a beach or construction site?

A grain of salt (ahem) would be much more believable.
I may be mistaken, but I think universities are publishing more than enough papers on the subject. The actual problem is that implementing and operating this kind of things is costly.
Stealing what is essentially 26 GPS receivers which also phone home, doesn’t seem to be particularly smart.
> ways that will help us further enhance how we serve customers

Further enhance? Why?
> I believe this is a case of a disparity between who they say their products are for (power users), and who they are actually for (people who want to think of themselves as power users).

That's true for most gaming rigs and high-end Windows laptops ;-)
Learn morse with Google (desktop / android)
Libertarians are the new advocates for small government.

Libertarians = Arch Linux (lean, mean, minimal)

Everybody else = Windows or Mac (i.e. huge operating system that tries to protect users from everything under the sun)
> IPsec is extremely difficult to use correctly, or even at all.

No, it's not.

Some IPsec implementations are kludgy and lack proper granularity/control over their configurations. It is also very flexible, so you can of course misconfigure it to the point where the whole setup becomes a royal clusterf#ck, but doesn't mean it is "extremely difficult to use correctly". It works really well for a wide range of common scenarios, each of which is not that hard to configure once one knows what they are doing.
I agree. I typically come in at about 9:15am, leave anywhere from 7pm-8pm, and it's not because I'm some great worker. It's because I need to finish up the sprint and too much crap is happening around the office.

I don't know that I wouldn't work late even if I had a private office, but I do think that I'd be able to accomplish more.
It does seem plausible that requiring an in-person team to switch to IM and other electronic communication would be more difficult than starting out remote.

I work on accessibility for people with disabilities, and I'm blind myself (well, legally blind), so I think a lot about including people with disabilities. It seems to me that working with people with some kinds of disabilities, e.g. deafness or a severe speech impediment, would be akin to forcing an in-person team to switch to IM. (I have no direct experience working with people with those disabilities, so I'm happy to be educated.) So I speculate that starting out remote would also make the team more inclusive in this area.
Using Redux-Actions – Why and How?
Lightning Networks: A Force Multiplier in Bitcoin’s War for Dominance
My experience with WSL has unfortunately been different to yours.

I tried running Docker on it, which was a disaster. WSL doesn't seem to fully implement things that Docker or other Linux apps require. Various network things seem to be half working or absent.

I don't want to start an argument with you on this, I'm glad your experience has been different to mine. I've started using WSL as a simple shell to access a Fedora VM running under Hyper-V.
This article is a bit meandering. Most of these are not really scale-specific issues, or are but in a roundabout way.

Here's (imo) the most obvious reasons.

Political Power- We used to complain about Rupert Murdoch's power. Media and journalism are a leg of democracy, so having a corporate oligopoly controlling it was worrying. Zuck's influence is way bigger. There have already been a handful of revolutions that started on FB, a dozen attempts at revolutions, full scale coups and thousands of elections where fb played a bigger role than any past media company. They didn't even notice this until it was Trump and/or stuff FB-ers cared about personally.

(1) This is too much power. (2) FB are pretending this has nothing to do with them. They don't care about journalistic integrity, or feel it applies to them. They let anyone with a credit card sign up and run political ads. extremely irresponsible, at best.

Monopoly - Thiel put it best, startups are about monopoly-or-bust. Uber wants to be the only ride app. YouTube the only free video site. FB the only networking app.

The pattern is often: Innovate. Win. Then milk it with ads and spying and/or stop innovating. YouTube for example, it's nowhere near as good as it could be, but why bother.

Data - data gets different qualities as it grows. A lot of the creepiness of targeted ads have more to do with how many people's data they have, not how much data they have about you. It locks in monopolies. It's also the newest category of "IP," which is (imo, but not gonna support it here) a current and future driver of wealth disparity.

We're now (definitely in Europe) in a period where the public/legislators are very keen on regulating. This will likely lock these monopolies further into place. 4 out of 5 times, regulation is incumbent friendly.
It's not just laptops. You could get an entry-level Power Mac G4 in 2003, or Power Mac G5 in 2004, for $1499 (~$2000 in today's dollars). Today the Mac Pro starts at $2999.

The cost of entry to the Apple world has gone down, but the cost of entry to the Apple pro world has gone up.
The thing is, I don't see how crypto helps solve any of those issues you enumerated.

I did specifically mention that regardless of whether you try to take crypto or USD, if your goal is to immediately convert into bolivares for survival spending, neither is easy or simple, since the government presumably wants to seize any USD it can get its hands on (the extortionate 'official' conversion rate just being a particular method of doing so).

> But at least the barrier of entry for crypto currency is much lower right now that the difficulty of getting an overseas bank account.

I don't see how that is the case, unless you have a specific example? Sure, you can get a crypto account and perhaps get someone to pay you, but you can equally well get a PayPal account denominated in USD, if you didn't already have a foreign bank account.

Neither of those can directly translate into bolivares, but at least the PayPal account can be be easily used to buy physical goods and perhaps get them into the country if you can bypass or bribe your way through customs.
Personally, I'm fairly certain that this stuff does matter, but that a successful company will inevitably backslide to the corporate mean. The things that initially made it successful will be lost. Anything not an immediate disaster from management's perspective (open offices) will creep in. It might be decades before people realize the company was running off inertia, though.
Yeah, but as soon as they connect to apple for registration/updates/etc they could (theoretically) be blocked again.
"Just wear headphones" is the "Just hit delete" of the new millennium.
Updated Blockchain Glossary – 46 Definitions
Pet peeve: shunned from Internet, not web.
It will be sorted out when we get WebAssembly with direct access to WebGL.
Facebook paid $88M this year to build out its Seattle area Oculus hub
I don’t quite grasp your question but when you setup an instance, the hosting provider can provide you the SSH fingerprint of the server for you to check the first connection
I'm not claiming that it's age-related, but that it's generational. The people who are going into programming these days are not the same type of people who went into it a generation ago. In the 80s, these people would have gone into a different career field.
Newspapers were run by the OG ugly disgusting nerds.
This kinda reminds me of the argument made in Ken Burns Vietnam that the brass tried to "measure success" of the war by body count and that created a perverse incentive to manufacture body count. And by argument I don't mean the series as a whole but it was a thought brought up in one or more of the episodes.
Honestly I was very impressed that he immediately went out trying to solve the problem and put his money where his mouth is. I wish more people were like that. His biggest problem was that he was on the opposite side of the Earth and he doesn't have Thunderbird 2 to deliver it in time, nor did he have much chance to get input from the actual rescuers as to what they actually needed.

The world would be a much better place if more billionaires were like him and Bill Gates.
Ask HN: Staring in 2010, each year what is your favorite startup?
I wonder in X year I wish I would have started Y company. What is interesting about this question is as the year gets closer to the present the company is harder to determine. Which company would you have found each year starting in 2010, to the present?
it doesn't have to be an endless hierarchy of people looking over one another. For example, we could watch the people that watch us.
The one benefit of open floor plans, in my experience, is that I get to look out the window. Cubicles cut down on the amount of natural light that can infiltrate the room.

...orrrrr I could work from home, which I do 2 days per week, and it's very nice. No distractions, "private office", all the natural light I want, good food.
Do you speak on behalf of all "developers?" The 2016 revision is Apple's fastest-selling iteration of the MBP.

I notice you don't quote two paragraphs right before that:

> The butterfly keyboard design Apple introduced in 2016 has been divisive. Some people really like it, claiming it has fast travel and a sturdy, responsive feel to it. Others feel it's uncomfortable to type on. We haven't seen a keyboard this polarizing in a long time; it's a point of passionate disagreement even among Ars Technica reviews staff.

The reaction is mixed, even among people who compare laptops to each other for a living. But you make it sound like anybody who knows what they're doing would prefer the old model.
>That’s an insult to the concept of justice.

Agreed. Unfortunately our justice system has been turned into a legal system. Legalities are more important than justice and it's sickening.
> Be prepared with details, but if he/she doesn't ask for them, don't provide any.

Also be prepared with solutions. Any decent manager or product owner is going to ask things like: "What's a realistic timeline?" or "What could be cut to get closer to the timeline?"

It would worry me more if they didn't ask details. In my experience that means they sent you on a fools errand expecting you to fail and take the heat for it.
It's not like saying that. This is literally Google donating money to charity. That's the definition of being charitable.

Even so, many would agree that Facebook and Google are charitable for giving their products away for free even if they extract value from them in other ways.
PHEV vehicules are great, except you get the complexity of both engines, for the price of both.

Electric cars have an order of magnitude less moving parts, barely any maintenance to do on them (no need to change the brakes, no oil, no filter on the engine...)

I can see why PHEV are appealing right now, but they are not a good long term decision.
Not just "eavesdrop on workers". Also "eavesdrop on customers". The patent itself tells us:

"the sound sensors can capture sounds resulting from guests talking while waiting in line at a terminal or any other sounds resulting from the presence of guest ... the sound sensors can capture audio of conversations between guests and an employee stationed at the terminal. The system can process the audio of the conversations to determine whether the employee stationed at the terminal is greeting guests."

http://pdfpiw.uspto.gov/.piw?docid=10020004&SectionNum=1&IDK...
Too late, just got a refurbished 2015 model instead. Looks like a step in the right direction, but quite how Apple justify those prices for the hard drive upgrades is beyond me!
Look up the history of "political machines", "yellow journalism", "fascism". Democracy has always been corrupted because people are inherently not very good.
I'd buy a BMW 330e over a Tesla any day. I think much more realistic at this stage of the tech curve. (to be clear I'm not going to buy either) (To be clearer I can't afford either)
That's why its important not to believe what customers and product managers say what features they want. I have had a ton of occasions where it turned out that what they really wanted was totally different from what the devs were told.
I'm always surprised that comparisons like this with AWS miss the fundamental philosophical approach of the cloud offerings.

AWS is "infrastructure as a service". Hosts, network switches, load balancers - things that historically cost an arm and a leg, but they could virtualize. Add some elasticity and auto scaling, and you've got the foundation to build anything else on top.

The hyper-specificity of SQS vs Kinesis, for example, comes out of the same philosophy: Provide the infrastructure, and let customers figure out what to build on top of it.

Google, meanwhile, started with AppEngine - run your apps in the cloud without concern for the hardware. AWS's equivalent is Elastic Bean Stalk - more than one layer of abstraction higher than the default offerings.
gotta love npm community . here's the summary:

1. someone compromises eslint to scan for other npm credentials and upload them.

2. the code has a bug that fails in some conditions.

3. this probably ran in several devs/CI systems and stole tons of credentials

4. the thread is about pinning the unaffected older version on all other high profile packages

5. people start to suggest fixes for the payload exec'ing code from an http request.

in the end, attackers now have hundreds of credentials for less visible projects, and even a fix for their code. I'd say attackers are writting this off as a huge success.

npm should proactively revoke everyone's token now!
Sandboxed by default is the best design decision of deno.

Using URLs for import is another one. npm as a company has too much power and responsibilities that is really unnecessary. We're downloading from a URL anyways. package.json and npm makes it look like everything has to be hosted there
Doesn't matter. Google Analytics was used to steal ethereum seeds too (as the 'referer' also I believe). Its common to use analytics as exfiltration services -- the traffic is not as suspicious and usually https.
These are pretty cool and we actually have them in our office, I see my current company on your list of companies using them.

Unfortunately, team culture takes precedence over neat tools. It's just a common thing on my team to do take calls at your desk.
I don't think that's a fair assessment. Quite a few people in this thread do not share the same values that you do, even the more fundamental ones like patriotism.
Back to School – Walmart.com
> but you're right, there doesn't seem to be a demand for this

You mean outside the entire advertising industry? Now you might argue that advertising companies are more focused on selling ads to clients than optimizing the ad experience for victims, but it's an entire sector of the economy focused on exploiting the poor decision-making abilities of humans.
Not any form, but this particular form, that is, regulating the forms and contents of communication, is what moves a society closer to totalitarianism. The more regulated newspapers are, the harder it is to publish a fringe opinion, the less free a society is.

If we replace newspapers with other media, especially more peer-to-peer media like Facebook or Twitter, the effect only gets more pronounced. Look at Turkey or Russia for examples.
Umm, no, more like humans are a lot more like other animals than we care to admit.

We have some oppossums ND raccoons that constantly try to break in to our chicken coop. If successful, they will, without fail, kill every single chicken they can get their hands on. They'll only be able to eat one or so. But they will kill all of them. Either out of greed or just for the fun of it.
has anyone written intelliJ plugins that deal with the debugger? I have an interesting idea wrt to this, but writing an IntelliJ plugin has so far been extremely painful. If anyone out there is interested send me a message and let's chat
Ten things I learned about venture capital in twenty-four years of trying
This is why I do all of my development in VMs now. I can’t abandon Node, because that’s the current trend in web development, so i just try to avoid the most common viruses that don’t include a VM-breakout zero day.
But do we have an authoritative and empirical source indicating a meaningful increase in keyboard hardware problems?

Apple has that information, and they've decided it's a big enough problem to issue a repair program and adjust the keyboard in the new version:

https://www.apple.com/support/keyboard-service-program-for-m...

So, in answer to your question, yes we do have an authoritative source - Apple.
Oh that's neat, thanks for the tip.
Mini-grids could be a boon to poor people in Africa and Asia
>This is literally Google donating money to charity.

I specifically said "product" donations.

>Even so, many would agree that Facebook and Google are charitable for giving their products away for free

And they would be ignorant of the value of their information, attention spans, and technology in general. Many such people would also agree that "if you have nothing to hide you have nothing to worry about"
It's a mess, I wish I didn't have to associate with the whole ecosystem. I much prefer package managers where you specify an explicit version that you depend on, and have to handle updates yourself - people tell me npm does this now, but I haven't yet seen it work the way I expect it ought to.

Of course that kind of a scheme is much more manageable when dependencies are fewer, chunkier, and slower moving. NPM-land, where running npm install downloads half of the internet for a little web page project, is too far gone beyond the pale.
if we're measuring energy usage, then doesn't streaming video pretty much dwarf all other internet traffic?

Probably. But just because plastic bags dwarf plastic straws as an environmental problem doesn't mean we can't address both.
Holocaust only needed personal data because of the weird racism. You don't need personal data if you want to just invent "communist" or "counter-revolutionary" victims to persecute or to murder everyone with a different nose shape from the group in power.
Automating cookery: The rise of the robochef
Supermassive black hole is a cosmic ray source
No, grab-ass is like horseplay. It's unneeded, juvenile physical activities. Think tag, keep-away, or nerf gun fights, things like that.

Uncommon but not rare term where I grew up.
WebAssembly is not "simple to work with", especially when it comes to analyzing non-trivial, large, optimized programs. The tool [1] generates a one-by-one equivalence of wasm instructions to C code. I guess you could qualify that as a "decompiler", but real decompilers - the ones used for malware analysis such as JEB or IDA - are optimizing decompilers that provide an output of higher level (eg more legible) than the input disassembly/binary.