skysight-inc/HackerNews huggingface dataset:
In practice, scoping becomes an issue because "err" sneaks in everywhere.

For example, consider:

foo, err := getFoo()

Now your scope has an "err" and you open yourself to logic errors such as:

foo, err := getFoo()
... do stuff ...
if errr := makeBug(); errr != nil {
return err
}

Spot the (heh) error? It's caused by ":=" allowing variables to be reassigned.

You can avoid this dangerous pollution, but it's super ugly:

var foo *Foo
if f, err := getFoo(); err == nil {
foo = f
} else {
return err
}

(You have to have the return in the second branch, otherwise "go vet" will complain. Sigh.)

I have lots of these, and they're not helped by the fact that Go has no type-level mechanism to guard against the misuse of multiple-return values. That is, in the above, either "foo" or "err" are usually set, and if "err" is set, it means "foo" isn't. But the type system doesn't prevent you from accidentally ignoring "err" and using "foo", or vice versus. This gets even worse if the func returns a (non-pointer) struct as its value.

The fact that Go allows shadowing (exacerbated by the convention of using "err" as every single error variable) and promotes the reuse of variables (e.g. the above ":=", or declaring "err" outside a loop) also means it's super easy to assign the wrong thing.

All of the above are my single biggest source of bugs during development. That, and how accidentally using nil/zero values, including the damnable nil map/slice cases.

"go vet" (whose shadowing check is disabled by default (!)) and the various linters only go some ways towards helping here. The errcheck linter (which you can enable through gometalinter) is absolutely essential.
So there is an implicit promise that no work requiring focus will be expected to be done at one's desk then?
The right name for "linux" is GNU/Linux. Initially Linux was just a kernel, with lots of free software from FSF. You can donate to FSF at https://www.fsf.org/about/ways-to-donate/
If you aren't checking errors more than once every 30 lines you probably aren't doing it right.
WebSocket. ELB adds latency and is harder to debug.
Football players are good comparison. If they don't play well, they are just cut and not paid anything. No "golden parachutes" for poor performance.
Betteridge's Law strikes again [0].

You could replace that entire post with "No. Unlike baseball."

Not that the post wasn't interesting, of course. To me, it leads to the inevitable conclusion that we need to record failures as well as wins in order to get accurate data on management decisions.

0: https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headline...
I use Fastmail and I like it but this is extremely disturbing. I appreciate you being relatively candid with us, but it doesn’t change the fact that you allowed a customer’s account to be compromised by the most basic attack out there.

Complexity and vulnerability go hand-in-hand. A product providing a critical service like email should be opt-in to any form of recovery not requiring pure secrets provided directly by the user (or provided to an already logged-in user for this specific purpose). Failing that, there should at least be an opt-out for such dangerous recovery methods.

I’m going to watch this thread and your blog for a while, and I hope you can provide some real assurances for security-minded technical folks like me for whom email really is the “keys to the kingdom”. Failing that, I may have to look for another email provider.
$200K?

"On May 22, 2010, the yellow stamp was auctioned once again by David Feldman in Geneva, Switzerland. It sold "for at least the $2.3 million price [that] it set a record for in 1996"." https://en.wikipedia.org/wiki/Treskilling_Yellow
The Cryptocurrency Index Funds Are Starting
> On an ARM system, it is forbidden to enable Custom Mode. Only Standard Mode may be enabled.

Looks like we need another golden key:

> https://web.archive.org/web/20170306015239/https://rol.im/se...
I didn't find the title at all confusing. I found the Fowler excerpts wonderful, I've downloaded it to read already. Thanks!

But :-) I didn't understand how on earth he could say "Johnson himself was the first to prove that there was little in the way of drudgery in the task of the lexicographer". Does he know how many years of toil it took him? Maybe he just means "It's not a dull book to read", I can't imagine what else.
Personally, I don't like Go. I wish my projects needed Rust's speed, or its safety, or its engineering powers.

But I don't. For simple parsing or number crunching, Go is just right.[1]

I find the fast prototyping, the wonderful IDE environment (VSCode, vim), and the community to be _so good_ that I don't need anything else.

There was a time I thought of learning Python[2] or Rust, but found both lacking.

[1]. Sure, I wish I was smart enough to get a job working on Quantum, working as a kernel dev, or in fintech where every nanosecond counts. But I'm not. The Rust community is great, there's a lot of help out there, and it seems like an amazing and cool language.

[2]. I tried it out a bit. My main issue is that it doesn't (didn't) have nearly as good of an IDE community (PyCharm is practically the only good IDE for Python, and in the bit of time I spent with it, I found it much less powerful than their Java IDE) revolving around it.
Quick note that the article is from 2015, and the MSS result dates back to 2013.

There's a blog post by Nikhil here that explains the proof of the discrepancy result that implies Kadison-Singer: https://windowsontheory.org/2013/07/11/discrepancy-graphs-an...

The main result is a theorem that replaces a Chernoff bound (saying here that a random partition has discrepancy logarithmic in the number of vectors with high probability) with a bound that says achieves a better bound on the discrepancy, independent of the number of vectors, at the cost of replacing the "with high probability" with "there exists".

The proof uses some really beautiful techniques from the geometry of polynomial roots to prove this and is a pretty fun read: https://arxiv.org/abs/1306.3969
Why the U.S. considers Kim a rational actor
Create React App Universal CLI
Shouldn't that be "a tad unreadable"?
Error handling in Haskell is, in practice, terrible. Not only do you constantly have to wrap and unwrap potential error values to unify different error types, you also have to deal with a dozen variants on Either and related typeclasses, none of which are used consistently across the ecosystem. And as if that wasn't bad enough, there are also actual throw-catch-style exceptions, which are not checked in anyway and, combined with laziness, can explode in your face at absolutely any time whatsoever. It's a big big mess. I stopped writing Haskell maybe a year ago, but at least back then getting GHC to print a stack trace when an exception wasn't caught was a major feat that involved recompiling every single one of your hundreds of dependencies with profiling flags. Guess how well that went most of the time.

Anyway, Go-style error handling's lack of any of these issues is what makes it attractive to me: it's simple, straightforward and get's the job done. Granted, with a bit more typing and the occasional bug that could have been avoided by not having to type the (almost) same three lines once again, but not having to jump through any of the hoops I keep encountering in more sophisticated languages is so, so worth it to me. I feel like Go stays out of my way, lets me focus more on actually getting things done than on dealing with the language's intricacies.
No, it's not news, but seeing a few thousand virtual cats affect the network and effectively drive transaction costs up 7x in real time really brings it home. It's one thing to have to worry about your competitors gaining traction, and quite a another to have to worry about the modest success of every random toy app that uses the same stack threatening to blow up your cost model.
Great story that reminds me of something I've had. There's just so much knowledge out there - and growing - that researchers have to be increasingly specialized. Isn't it inevitable that 4 years of undergrad + 1-2 yrs of grad school classes won't prepare you sufficiently to do novel research? Imagine when people have to be in school for something like 10 years before they know enough to do "real" work! And people will necessarily have to become more and more specialized, making situations like the one in the article even rarer.

Just a thought.
Lots of people willing to do the job should drive down the compensation.

High compensation is partly a result of businesses choosing from a small pool of candidates...
Not impossible. People use code generation for this a lot.
Non-editorial changes would have to be voted in. This is not an easy process which can happen late.

And mind: It's not only for compiler vendors. An ISO standard is a legal document. Based on your country you might put in your software's contract that your code is compliant C++ code or might consult the standard in a legal debate with a commercial vendor. All quite limited ... but not only compiler vendors.
Yea I don't see how anyone can come up with an accurate cost for Apple's custom chips. I think what actually happens is that the analysts just say "Qualcom's chip costs $30 so Apple's is probably about the same."
I'm wondering how this got kicked off the front page yesterday?

Is it another example of un-platforming?
CIA Director: Trump's Tweeting Has Actually Helped Us
Neat, thanks for the info! Do you know anything about the possibilities of an orbiter or lander on Europa given the radiation hazards?
Tips to keep / end Your smart phones from Overheating
Try reading the article. Maybe also research what La Marseillaise stands for.
The name and art seemed familiar, I remember playing an old Flash version[0] of this. Cool game from what I remember.

[0]https://www.kongregate.com/games/Coolio_Niato/light-bot
Thanks, it is intended to be both amusing and not very useful!

Also, I don't think you could even bookmark the site if you wanted, as the redirects are issued as 308. :D
I think a decent way of doing things would be to have people do public service of some sort (military included) for a few years and they get free school in exchange.

Gives people a chance to do a bit more and going to college at 21 instead of 18 seems like a good thing to me.
Multigraphs are now supported and so the bridge graph is now correct.
> This is death.

Even allowing for some hyperbole, I think this is an overreaction. I agree that they made a mistake, but we only know of one user it affected. They didn't leak an entire database of user data or expose a vulnerability for which the attack can be automated.

You've commented many times that email is inherently insecure and that (IIRC the conclusion precisely) there is little point in focusing on securing it. Instead, use a secure messaging system such as Signal. Email just isn't going to be secure. Fastmail seems to put more effort into their security than most mail providers. For example, the proxied images [0] sound fantastic and they address a threat that affects almost every email user daily.

[0] https://blog.fastmail.com/2014/09/16/better-security-and-pri...
Yeah I don't see how I stepped on any toes. Deep learning libraries have always been a pain in the ass to install. And only support some OSes and GPUs. There's nothing wrong with JS or webgl, but it seems an incredibly inelegant choice for this.
> My guess is that in 30 years, having every light in your house controlled by a physical switch will be as quaint as TVs with rotary channel dials.

Maybe, but it certainly won't be echo/home that results in that. Voice control for lights is fantastic in certain situations, like when you're in bed and want to turn the lights off. Or on the couch about to start a movie.

But it absolutely sucks to say "alexa, turn on the lights" when you walk in the room. It's slower and it's more frustrating than just flipping the switch right next to you (and the connectivity delay is readily apparent) Maybe motion detectors or some other form of tracking people in the house will augment this to relegate switches to the dustbin of history, but it's definitely not voice assistants and crappy phone controls that are going to do it.
This feels more the fault of local government that just lets large tech companies have their way.

If you read this:
https://blogs.microsoft.com/?p=52550473

you'll see that their post does not mention the housing situation at all. I wonder where they will find all the non-engineers and execs - the janitors, the guards, the cooks, the receptionists - who are being pushed out by every acre that gets taken over by Apple/Google/MSFT.
If your anxious about things going to crash because of tethers the best way you can hedge against the volatility is watch the markets like a hawk lol. Can be very profitable too with all the volatility

Checkout the live charts and forecasts at https://bitbank.nz
No, it is not ridiculous, it is meticulous. That's one style and approach in programming and not without merits.

I personally like exceptions, as they enable focusing into what's supposed to happen instead of what all could go wrong. And the abstraction power that comes with this approach.

But I wouldn't rush to say I'm right and the meticulous party is wrong. There are many instruments in the orchestra. In the end all that matters is the skill of the player.
I would have much preferred if the alien life had been positive and friendly. Why are all the movies these days about hostile aliens?
The younger generation (born in 80s/90s) in China is usually aware of the amount of censorship imposed and take the government policies and billionaires' success stories with a grain of salt. There are smart ways to get their voices out through music, art projects and onion articles, and escaping the censorship has become a fun game to play (hidden political memes are everywhere right under the big brother's eyes).
'Vacation guilt' costs workers $66.4B in lost benefits
The back story here is that I purchased the domain in 2010, fully intending to have the same functionality back then, and each year since as I renewed it. So your sarcasm is absolutely warranted and welcome.

It did take all of 15 minutes fiddling with a mediocre RewriteRule to get the functionality I wanted.
Tiny Drone does 110mph
Having looked into doing a very similar migration, I generally agree with you. There are performance, control, and speed gains on the back end to be sure. It's replicating the flexible, intuitive UI where the cost argument always breaks down.

That last part is the most important. It's why you're really using Mixpanel/Amplitude/other vendors. To say "we replaced Mixpanel" without addressing the front end feels a bit disingenuous to me.
Nice! I am very happy with mine.
This is the plan, but given it took me seven years to get this far, please don't hold your breath. :)
It's not very useful.
Such an API already exists: the NetworkExtension APIs, specifically NEPacketTunnelProvider and NEAppProxyProvider. They're meant for VPNs, but it should be possible to use the same APIs to monitor traffic and send it on, rather than tunneling it through a VPN. (There is also NEFilterProvider, but that API is designed to run the filter in a tight sandbox that doesn't allow it any outbound communication, so that it can filter packets but not exfiltrate them.)

…though if you're concerned about privacy, perhaps you should be using a real VPN anyway, in which case you could handle traffic monitoring and filtering on the server side.

Edit: I guess the server-side approach wouldn't allow identifying on which app is making the connection. The NetworkExtension APIs, however, should allow that: you get a flow of NEPackets, each of which has a 'metadata' property containing a 'sourceAppUniqueIdentifier' and 'sourceAppSigningIdentifier'. I don't have personal experience using these APIs though.
The YouTube block is surprising at all. Google did the same thing with Windows Phone.
This would be an excellent idea and I will absolutely throw this in a todo list.
I do know a guy who cured his diabetes, but he did it by walking on a treadmill for hours every day. He lost about 50% of his body weight and doesn't need treatment anymore.
http://altsoph.com/pp/rfc/ is the exact opposite. A fun visualization that will get you to go look at all those obsoleted RFCs!
> Having a node set-up will allow you to more easily test and query the RPC/REST API, and begin monitoring new transactions added to the bitcoin blockchain/mempool.

> The default bcoin HTTP server listens on the standard RPC port (8332 for main, 18332 for testnet, 48332 for regtest, and 18556 default for simnet). It exposes a REST json api, as well as a JSON-RPC api.

Seems bcoin doesn't connect you directly, but rather to a node they're running elsewhere.
> Surely Amazon could just drop the Cast library into their iPhone and Android apps and they’d be all set?

The cast library doesn’t contain any of the code required to cast – all that code is in the Google Play Services in the system app, not in the library.

And you can obviously understand how Amazon can’t just reuse that.
> For me the biggest PITA lately with Go is dealing with json. Exhaustively listing every potential field in order to type it is maddening.

Sounds like gojson[0] would make your life a lot easier - it automatically generates the struct definitions for you.

[0] https://github.com/ChimeraCoder/gojson
Sim swapping:

http://www.fraud.org/sim_swapping_alert
I am not Danish, but that is just super ignorant. One of the most widely used game engines, Unity3D is danish. They got several world beating companies making windmills. Creator of C++ programming language is danish.

Anyway it is a poor metric, especially compared to the US, because small countries are not well suited for consumer oriented tech companies such as Facebook. The home market is too small. Small Scandinavian countries tend to have tech companies in particular niches.

I am Norwegian myself and a lot of high tech here is related to the oil industry, making specialized software, hardware and instruments for it. Norway is world leader in this area, but few people outside the oil industry would know that.

Another problem for small countries is due to the small home market, our tech companies usually get bought by big American multinationals. That means a lot of tech done here happens under umbrella of some American company and doesn't show up as some independent Norwegian company.

Almost every single Norwegian tech company I have worked for has gotten bought out by some big American multinational. Video conferencing, secure authentication systems, 3D modeling of geology etc.

It is not unique to Scandinavian countries. Israel dubbed startup nation suffers the same problem. Few tech companies ever manage to get very big before they get bought by an American multinational. It is an issue that worries government there as being a country only made up of branches is not as profitable as having tech HQs.
This just hit me a few hours ago - big screen (and with voice search) is a much better way to view YouTube than small screen, 'casting' apps that don't work, or crappy virtual keyboards that are laborious to type on. Re:

> Amazon has been trying to do it itself -- a move that cuts out features and also likely affects Google's ability to collect on some of the ad revenue that comes from its videos.

My FireTV has always shown ads for YouTube.
Nvidia GPU Cloud Now Available to AI Researchers Using Nvidia Desktop GPUs
My father was a Type 2 diabetic for many years. I never thought much of it, I knew he "watched" his diet and didn't have sugar and he went to the doctor who prescribed him insulin and medication. Slowly over the years it got worse. He had to have eye surgeries, his feet started swelling, his kidneys got bad.

I finally decided to do some research on the topic and learned all about insulin resistance and how it's mostly an issue with the liver. I read about the Keto diet (which is high fat, extremely low carb) and discovered tons of people who it seemed to helped, so I got my parents to both try it. Within 6 months, my dad lost over 50 lbs, he no longer had to take any insulin. He went to the doctor and they were amazed at how quickly all of his levels improved. His kidney function improved.

He still has more weight to lose, but it's been pretty miraculous and I urge everyone to look into it. I've been a carbivore my whole life. I'm still young so it hasn't caught up to me, but I imagine that it probably will eventually. So I don't do extreme Keto, but I'm starting to eat much healthier now. More veggies, fewer refined carbs like bread and pasta. I also cut out soda and most meat and dairy.
Amazon isn’t selling the Chromecast (they’re selling all other Google hardware) because Google prevented Amazon from streaming to the Chromecast.

Which is Google abusing its monopoly.
Honestly, I can't consistently get the right version of RFCs (the tools.ietf.blah one) when I Google, so this is useful because I can actually remember the URL.
I really think error handling could be solved by adding some simple syntactic sugar.

For example: "if err" being compiled directly to "if err != nil" would be a quick win.

Second more complex idea: add a new keyword like "res := throw MyFunction()", being allowed if "MyFunction()" returns an "error" as its last argument and the calling function returns an "error" as its last argument, simply return the zero value or named return value of any other return values + the error if there is one, otherwise continue.

Point being, the core of Go is really good. When I come across a command line tool written in Go, my first thought is "fuck yeah, this is going to be so easy to install", versus something like Python which is a bitch unless the developers have taken the time to brew it or something. Countless planet-scale infrastructure tools have been written in it; Kubernetes and Docker to start. I can name a dozen startups, both large and pre-seed, which use it with resounding success.

Yes, it has warts. Every language has warts. Go is just "different" because it tries to be simple. Nearly no other language in the world has "simplicity" as one of its core values, and a lot of people don't fully respect what that means.
As a person who is not well-versed in front-end technology, it will be great if the author(s) could provide more comparison on the website against some other tools that serve the similar purpose in aspects other than performance. For instance the by comparing the scope the problem each solves, the ideology behind each project, or even a side by side configuration file.
Learn EmberJS by example
Have you worked with any gang/police task forces to get their perspective? Maybe there's something you can start that doesn't rely on a whole lot of money.
Another case where I wish the Anti-Pinkerton Act were actually being followed:

https://en.m.wikipedia.org/wiki/Anti-Pinkerton_Act
Isn't this sort of like anti-net neutrality.
Interestingly, in the beginning it did. Without any DRM.

Later on, at least YouTube, Play Music, and similar streams worked nicely. This was especially nice because so many apps support the protocol.

Sadly, in the end, I gave up on trying to stream to my computer via that protocol, because almost every week Google broke compatibility, and I was simply pissed.

And the real chromecast I have, I can’t use, because it doesn’t support WPA Enterprise.
"TensorFlow Distributions is widely used in diverse
applications. It is used by production systems within
Google and by Google Brain and DeepMind for research
prototypes. It is the backend for Edward"

Some docs:
https://www.tensorflow.org/api_docs/python/tf/distributions
https://www.tensorflow.org/api_docs/python/tf/distributions/bijectors

Thanks Dustin and the Google team!
Right, high cost is not mutually exclusive of having thin margins.
You said they were profiting, now they’re paying more?

Are you sure you didn’t just misunderstand which jurisdictions were involved here?
How Cash-Strapped Chicago Snagged a Triple-A Rating for Its New Bonds