skysight-inc/HackerNews huggingface dataset:
> Absorb the damage

That's funny.

The code above got written that way because at my first job, I inherited a godawful business charting API written by the lead developer.

The input to the API was a struct with 70-80 members that the caller had to fill in and there were no defaults for anything! Naturally there were not just scalars, but lots of arrays and strings in the struct, which could easily be overrun or often left null.

The users, quite understandably, didn't fill out everything, which led to frequent crashes in _my_ code because that's where the pointers would get dereferenced.

When they would see that the crash was not in their code, the users of the API would punt the error to me even though it was their bad input that caused the problem. This would happen 10-12 times a day.

I rewrote the entire thing in a paranoid style , employing the trick above and others to try and ensure that if there was bad input, that it would always crash on their side of the fence.

After I was done I got one legitimate bug report for the code, even though it was in use worldwide in our medium sized company.
This is interesting :)
True, unless you have a wildcard user for your domain. Whenever I give out my email, I typically add a unique identifier to the user name, so I can have something like "xyzHN@example.com". Then if I start getting spam, I know who leaked my email address.

The problem that happened then is someone was using random users@example.com causing the blowback spam to fill up my mail box. Until I added SPF, then hadn't had an issue since.
Direct link to the video: https://www.youtube.com/watch?v=5LI1PysAlkU
The problem is they only talked to the cops. They should have talked to the people with the real power, the prosecutors. Rich people hire a lawyer who knows the prosecutors, and have them get assurances (possibly in writing) before doing anything close to illegal.
Yeah it's my fucking computer, don't uninstall, don't restart, if I wanted an ipad I wouldn't buy a Lenovo desktop dicks. Then it made sure candy crush was installed. Wtf? This isn't a game, I have work to do Microsoft! I like monitoring my $300 i7 not play games on a $1k pc.
It means that if the child process actually modifies the memory then those modifications will be visible in the parent process, because they're both using the same address space. It's essentially an awful hack that was added to BSD at a time when it didn't yet use copy-on-write for fork() to achieve the same performance with vfork()+exec() that you would get from a CreateProcess()-like API.

That's why the child is allowed to do almost nothing:

the behavior is undefined if the process created by vfork()
either modifies any data other than a variable of type pid_t used to
store the return value from vfork(), or returns from the function in
which vfork() was called, or calls any other function before success‐
fully calling _exit(2) or one of the exec(3) family of functions.
But Xamarin's tools do not run on Monodevelop.
If you think you're capable of installing something flat on the roof that can withstand strong winds, and then wire it into your house electric wiring without causing a short and killing everyone, why not?

I can't imagine an average person doing this.
the problem with regular juice machines is that their cleanup takes time. If your in a rush, this might be a good option
So there is... using the "unsafe" pointers and fixed keyword, etc. The Unity interfaces don't support that, though, so for things like dynamically updating textures and vertex data, you're pretty much stuck with GC.
Last night, I was playing Crusader Kings 2 as the Byzantine Empire. I had just conquered Jerusalem in a holy war (after the Catholics failed to take it in a crusade, ha!) and everything was good. I had tons of money rolling in, I was secure in my realm with a son groomed to inherit, and I was thinking about expanding further south to take Alexandria. I figured it was a good time to call it a night at about 11:30pm.

I was just squashing a peasant uprising before going to bed when suddenly the Shia caliph -- the same guy I just stole Jerusalem from -- declared a jihad for Anatolia! Their armies start moving north into Armenia and Anatolia and while I was trying to get enough of my troops in one place to fend them off, some vassals decided to shift their votes and nominate the Exarch of Greece as heir to the empire instead of my son. Stupid elective succession.

I had to get rid of him, because I was about 45 years old and sick with pneumonia. If I lost the empire then my son would just be a random duke with a few counties. It'd probably be a generation before I could retake the empire. But my council wouldn't let me revoke his title because too many of them owed him favours. I had him excommunicated, but that didn't help, and I couldn't imprison him because I'd almost certainly fail and I couldn't have him rebelling while I'm fighting the Muslims.

So I spied on him until I got a chance to abduct and imprison him. Great, now what do I do to get rid of him without angering all my vassals? Executing him would incur tyranny. Should I blind him? That's a big deal to Greeks; they wouldn't vote for a blind emperor right? Or just throw him in the Oubliette and hope he dies before I do?

Next thing I know it's 1:30am and I have to be up in the morning.
Shameless plug: I wrote a very compact and generic lexer, parser and interpreter for a small C-like language. I believe it can be of a great educational value for anyone who tries to understand the basic mechanics of parsing an imperative curly-brace language:

https://github.com/bbu/simple-interpreter
Are there benchmarks/code examples for the Monster Machines?
You never stop to think that you can be pro workers right and still against unions? I don't want whole businesses pretending they're for workers right. The cost of union is resources that could be spent on workers themselves.

You need to look into the millions union repa spent on themselves. Read up on recent scandals in Sweden for instance.

I generally don't tolerate admin-work, so I might be connecting here.
I dunno, I feel like this is a mash-up between GrubHub and Amazon.

Postmates is cool because they have the logistics to get you your food but they ALSO have the integration with the store menu and ordering system (maybe in the future, real time inventory).

It's more like Instacart, but the grocery is the restaurant, the shoppers are the food preparers, and the delivery people use bikes or walk instead of a car (important due to lower fixed costs for the delivery people).
I agree with you completely on #1. Without built in support, people screw up Unicode. They either won't use it at all, or they won't use it in all the places it's needed, and by the time it becomes a problem, it's a big problem.

On #2, I disagree. The effort required to make the pull request is a small fraction of the effort required to make a library worth adding to Opam. At the same time, it's enough effort that it should prevent the NPM problem of a million stupid "libraries" for 2 line functions.

I'm in the same boat as a lot of people here, in that I think OCaml looks great except for a few big shortcomings that they've ignored for a long time (unicode, multi-threading, etc.) that end up being deal killers for me. As I put it in another thread a while back, it's not even that I need the missing functionality all the time, it's that they refuse to add any of it for as long as possible.
DC Metro may shut down entire rail lines for months
Ugh. I don't know if the particular people involved here are telling the truth, but I basically know that something like this must be happening, given the incentives involved. Dispiriting, I have to say, since it would be hard to beat this sort of thing without becoming what you're fighting against.
Porn and the Threat to Virility
TSLA is now the third most shorted stock in the Russel 1000, just behind Square and GameStop, short interest is up to 26% of the shares outstanding as of last night.

So in a round about manner, the market is betting that many people here won't be buying one, or that TSLA won't be able to deliver on it in a timely manner.
Correct, there are many areas where we can converge, and we have been working on that for the last year and a half.
It looks so cute sitting on top of the "dock" board.
Yes, quite sure. However, the credits can only offset the "debits" from the times when you are a net importer from the grid (night, cloudy, etc). PG&E sends a once annual true-up statement where you pay for your excess annual kWh (assuming consumed kWh > produced kWh). If you are net exporter on an annual basis (produced kWh > consumed kWh) PG&E only pays wholesale rates for those at ~$0.04/kWh. They used to pay nothing if you were a residential net annual exporter, but after recent change in CA state law, they now have to actually cut you a check.
Ok... well that was my entire point and the reason why I stated that it's not fair to call all forfeiture as "stealing".
Thank you so much, you are right, I'll just drop some projects and try to focus on myself, I am in the border of a collapse if I keep going this way.
"use with compute metered to the nearest 100ms at Per/GB price based on the time your function runs and the memory size of the function space you choose."

Why can't you use simple pricing like VMs or storage?
Sankey: http://gojs.net/latest/samples/sankey.html
Rare Photos of Arnold Schwarzenegger and Girls
I read somewhere else that some of the FOV tuning/shrinking has been for safety concerns as well. Given the "truly untethered" experience, I can certainly understand if Microsoft is trying to err on the side of caution versus accidentally blocking some of the important sideband navigation information people get from peripheral vision, while they wait for more science and research to be done on such things.
>However, I find the idea that FP advocates have been ambiguous in using this phrase to be preposterous.

And yet the author of the original article, writes:

>It turns out that our purely functional rendering code is sensitive to ordering in non-obvious ways. The first time I encountered this kind of bug, it felt strangely familiar – it’s something that often occurs in imperative programs.

And notes:

>This is exactly the kind of problem that functional programming was supposed to help us avoid!

[empasis mine]

That the author felt that way is a failure from those intro to FP blog posts/articles that failed to make such things clear.

>In none of the examples you cite does the other say "order doesn't matter" without qualification.

They all fail to mention that those functions can have data dependencies from one another, and that we can't easily parallelize "any" of them as they claim.

None of the articles mentions anything about the commutativity of the calculations (or even the very term commutative itself).
Whiteboard performance (positive/negative) doesn't correlate all that well with practical performance on engineering teams, either.
So, for example, DUI should be legal unless someone gets hurt? What about tax evasion? Can the government itself be counted as a victim? If so, then I think this exception might well swallow your rule...
That's not a union problem, that's an accountability problem. Same with Congress. As with government, apathetic, unengaged voters/stakeholders are where the blame lies.

Unions work, but its members must hold it accountable. Shareholders hold management's feet to the fire, why would workers not do the same?
There are some good tutorials about Xamarin Forms, e.g. https://developer.xamarin.com/guides/xamarin-forms/getting-s....

Xamarin Forms Labs is a great open source project for controls and services using Xamarin Forms: https://github.com/XLabs/Xamarin-Forms-Labs
This is amazing. Ever since I was a boy, I've wanted to type on a half-eaten chocolate bar.
Mono was always designed to be dual-licensed, because we needed a way of monetizing the investment.

Because of this, the LGPL and GPL portions of the code required either copyright assignments, relicensing rights, or the contribution to be made under the MIT license.

This is how we built a business that allowed us to dual license the runtime for many years.
I just got another 4k odd hits with "remove in production" [1]. I think that with enough variation, you can get a lot of hits.

1: https://github.com/search?utf8=%E2%9C%93&q=%22remove+in+prod...
If you like that, and without spoiling too much, read the last book in the Foundation series.
Google's Project Sunroof
you could add another level to get more technical people by saying it's an artifact of their buffering system
The Bot Rulebook
This is really cool; publishing an AMI seems like such a good win for you guys; configuration is done, you get paid as customers use it.

Hopefully you'll see some good uptake.
Also, at the end there when they implied that HRC is hiring Rendon for the general election, did anyone else find themselves thinking that this whole story could be a manipulative plant of the very sort they were discussing? Not that I think HRC is above this sort of thing.
A micro-loan banking app with virality built-in? I can see why VC's are interested.

Using your social network to evaluate credit worthiness is something I've never heard of before. Is this common in the developing world?
More intriguing, entertaining, and humorous phrases! I'm sure many of have thought, seen, or typed such things (perhaps not committed though).

Let's max out this concept.

1. "Fire me": https://github.com/search?utf8=%E2%9C%93&q=%22Fire+me%22&typ...

2. "This will break": https://github.com/search?utf8=%E2%9C%93&q=%22This+will+brea...

3. "Never do this": https://github.com/search?utf8=%E2%9C%93&q=%22never+do+this%...

4. "This is evil": https://github.com/search?utf8=%E2%9C%93&q=%22this+is+evil%2...

5. "This is insane": https://github.com/search?utf8=%E2%9C%93&q=%22this+is+insane...

6. "Insanity will follow": https://github.com/search?utf8=%E2%9C%93&q=%22insanity+will+...

7. "Why?": https://github.com/search?utf8=%E2%9C%93&q=%22why%3F%22&type...

8. "For the love of god": https://github.com/search?utf8=%E2%9C%93&q=%22for+the+love+o...

9. "If I could do": https://github.com/search?utf8=%E2%9C%93&q=%22if+i+could+do%... (the hopeful ones)

10. "What the hell am I doing?" : https://github.com/search?utf8=%E2%9C%93&q=%22what+the+hell+... (the confused ones)

11. "Why doesn't this work?": https://github.com/search?utf8=%E2%9C%93&q=%22why+doesn%27t+... (more confusion)

12. "Call me": https://github.com/search?utf8=%E2%9C%93&q=%22call+me%22&typ...

13. "Call me maybe": https://github.com/search?utf8=%E2%9C%93&q=%22call+me+maybe%...

14. "Terrible idea": https://github.com/search?utf8=%E2%9C%93&q=%22terrible+idea%...

15. "This code is awful": https://github.com/search?utf8=%E2%9C%93&q=%22this+code+is+a...
I feel bad for saying this so soon after her death, but from what I've heard she was a pretty heavy smoker.

Watch your health, folks
I dont follow how this is relevant to my comment...
For backend developers, this is super smart. When I'm running an app on my phone or in my browser, I don't care if the brains reside on AWS, Google, Azure, Rackspace, etc...

For the front end, this probably won't have much effect. Developers go where the users are and there's very little excitement around Windows applications (win32 or universal). If keeping developers happy was all that important, then Linux would be the dominant desktop OS.
Is this like piwik?
This blog post, written by mpweiher shortly after the initial public release of React Native, explains why it can't truly be considered "native":

http://blog.metaobject.com/2015/04/reactnative-isn.html

Xamarin is much closer to native. In particular, unless you choose to use Xamarin Forms, you'll be using each platform's native UI APIs, so your UI will be indistinguishable from an app written in the platform's native language. Also, whereas React Native for iOS is restricted to using the JavaScriptCore interpreter (not even the JIT compiler), the Xamarin toolchain AOT-compiles .NET IL to native code.
it looks like little lasercut plates sitting on some joystick modules you can get on ebay, seems technologically very feasible
Yes, your app would have to support multiple GPUs. What's done here is remoting CUDA/OpenCL/etc. calls so that remote GPUs can be accessed from a single instance. When performing device/platform enumeration, all GPUs appear to be directly connected to a single instance -- hence no change to the application required.
A bit off topic and with all due respect (they seem to be solving an genuine problem): the recent job ads they posted to HN sound... well, not very nice (too intrusive for my taste). I understand the founders' passion for their cause, but I think hiring should be done in a more professional manner.
Hrmm, now I'm starting to feel a bit courted here, but alas .. no .. I just will never turn to Microsoft for tooling in the IoT/embedded space.

There is far too much 'bad aji', if you know what that is .. in the way that Microsoft is handling all of this. You are proving a bitter point, for those of us who have been watching for 30 or so years, which is this: Microsoft is still up to its old tricks.

So, no thanks..
The code is so clean and simple. This is great PR for the company. I want to work there.
Today they are taking a $1000 refundable deposit. They will release some specs tonight, and the rest of the specs before you place your order. If you don't like it, take your deposit back.
I believe VS uses WPF pretty extensively. And neither switching from WPF or porting WPF would be easy. So I don't think VS is going to be ported anytime soon (otherwise, why have VS Code in the first place?).
When I was younger and DVDs were new I did manage to convince my aunt that they needed rewinding.
How GPUs Are Helping Map Worldwide Poverty
Version controlled user group meetups
Mono was not started by Novell. Miguel originally worked on his own with volunteers on a purely open source project. Miguel later pulled the mono dev team into Novell and started a commercial development side with SuseLinux. When that partnership was desolved, Novell gave everything to Miguel and he created Xamarin.
GPUs for Graph and Predictive Analytics
While I do believe this hasn't really happened, surely there's a strong observational bias involved ("AFAIK" - but why would you know? :) If they're isolated, chances of learning about them would be very slim by definition)
Unikong – A platformer by Stack Overflow
I assume if it was hacked, I'd see the sent mails in my sent folder or in trash, no? I have 2-factor setup on my account so I doubt it was hacked.
There is a standard syntax for subaddresses with '+' suffix, e.g. foo+oneoff@bar.com: the replies will end up at foo@bar.com. Wildcards in email domains are a bad idea and been so for many years.

https://en.wikipedia.org/wiki/Email_address#Sub-addressing
Spotting Keywords in Audio and Video Files
I'm going with the Drum Set version: https://www.google.co.jp/intl/ja/landing/drumsetkeyboard/
>I think you're being disingenuous. Those articles aren't claiming what you say they are claiming. Their wording may be imprecise (I agree with you on that), but nobody is claiming that FP makes all chains of transformations magically commutative.

But I didn't say they do [say the latter].

Only that they sidestep the issue -- often confusing application with evaluation (using them interchangeably, or e.g. using the imprecise "run in any order" instead of evaluate).

Very few of those article mention commutativeness, the distinction between evaluation and application, data dependencies, etc.
And even those ment

ioning "order of evaluation" forgetting to clarify that is not the same as application, and confusing the matters more by adding that we can "easily run them all in parallel" (giving newcomers the impression that the order of application doesn't matter at all).

>At best you could argue the explanations you linked to are incomplete or unclear. But it's dishonest to say they claim you can order the functions in any way, regardless of their input -- which is what TFA was having problems with.

TFA author had those problems (or, more precisely, had the idea that they shouldn't exist) because he was influenced by such articles -- coming to believe that FP was "supposed to free us" from ordering issues.

You say that "it's dishonest to say they claim you can order the functions in any way, regardless of their input", but that's just what this statement implies:

"A pure function is also robust. Its order of execution doesn’t have any impact on the system."

Potential issues with input not mentioned at all, as if they don't exist.

Or this:

"Pure functions can be evaluated in any order, the result is always the same. Therefore, pure functions calls can be run in parallel"

Here they indeed write "evaluation", but the "can be run in parallel" sans qualifications, muddies the waters.
Too little to late?

Maybe when mono first hit, using a 2 clause BSD would have helped them win share. But now? I don't see anyone switching now because they switched to a free'er license. You either liked using it before because of the lgpl or you smelled the lgpl and ran away to use something else.

At this point in the game I don't think it matters much.
"Groundbreaking" architect? A pun in an obituary title?
I have a big problem of getting headaches when watching 3D tv. There is a physical reason for this. Your brain thinks that when you look far away your eyeballs should elongate to change focus. So when viewing 3D tv the brain is confused.

Do virtual headsets have this same problem?
I like that, but actually I've been telling them that playing a video that isn't rewound causes an exception to be thrown, and that's slow.
Makes sense. Thanks for clarifying.
Two of my favorites from Google code I used to work on (one that I wrote myself, and one that I ended up reviewing) were:

"I am going to hell for this."

"If this is not removed by xx-xx-2008, beat me over the head with a shovel." (Seen and removed in 2010.)
I came here expecting to find a discussion of the Foundation series...
If you think the only good coders are competitions coders... then put that in your posted job requirements:

"Must l-o-v-e solving hyperidealized problems with clearcut answers, under gratuitous time pressure, while being watched with others (who already know the answer). For hours on end. Because that's what we do all day here. Serial olympiadists, hackerrank aficciandos, and other competition coders only need apply."

It's really quite simple to do, and will (by drastically narrowing your candidate pool) make your filtering process much easier, I'm sure.
> get bit by the GPL and have to opensource all our proprietary software

The tone here sounds very angry. You aren't "bit" by the GPL, you choose to participate in the usage of the license and the community of code that comes with it. It's not some unknown, nasty thing you need to constantly defend yourself against (as implied by "being bit" like it's a dog you need to watch out for everywhere).

"We're auditing everything we use for license issues because we activly choose not to participate in the GPL community and would rather abuse and profit from other people's good will" is closer to realitiy
In what way is it semi-open source? The code is on GitHub under MIT: https://github.com/Microsoft/vscode.
This is something that really bugs me about OCaml in general. There's really no good option to do database access that doesn't involve writing raw, non-composable SQL queries. I don't need a full blown ORM, but something that makes writing type-safe (and injection-resistant) SQL queries like JOOQ would be absolutely amazing. For now I'm just sticking with Python and SQLAlchemy, as much as I love OCaml and F#.
No. I couldn't afford one even if I wanted one. Doesn't matter how much I believe in electronic vehicles.
It's not enough to hunt and gather and survive. You have to be able to reproduce. And you have to do it without any tools or clothing or shelter that was produced by civilization. That is very, very hard. It might not be impossible, but AFAIK it has never been done.
Fuck you in GitHub repos