skysight-inc/HackerNews huggingface dataset:
> Because uninitialized variables are allowed to change values arbitrarily over their (nonexistent) "live range".

Even specifying that they have a new arbitrary value on each access would be a big improvement over the status quo. It wouldn't allow nasal demons. Since LLVM seems to already have these semantics, it makes a good argument that it wouldn't hurt C's performance to tighten the spec at least that much.

But I'm not seeing how C or C++ code gets you in a situation where you're purposefully doing arithmetic or bitwise operations on uninitialized variables. If it almost never happens, it doesn't need to optimize particularly well. What parts of the STL can be faster by treating uninitialized variables as impossible?

> There's also the issue that having a stable value forces the register allocator to keep a live range for the undefined variable, which can cause unnecessary spills or remat in other places.

This would only happen when the variable is accessed multiple times. In which case having to keep the value safe is no worse than if it actually had been initialized. I don't see how this is a problem.
Is the hatred of nuclear really so irrational? It's an expensive way of generating electricity which has frequent safety issues and gives the state the means to build nuclear weapons.
Ask HN: Where have we landed on CSS column layouts?
I've been out of the CSS game for a while, googling gives me many opinions, so in 2016, where are we on 2 column (n column) layouts?

display: flexbox

display: table

display: inline-block

float: left; width: x%, xpx

A grid

... javascript?
> I'm not going to dive deep into the topic of why I consider "just using standardized crypto" unsafe and prefer rolling another custom end-to-end encryption layer on top of it.

please, by all means, enlighten us.

> I'm sorry that you can't see beyond the algorithms.

Please keep in mind that you have no idea what my background is (or what experience I have), so don't assume that I "can't see beyond the algorithms".
HIV Genes Successfully Edited Out of Immune Cells
Let's launch a solar shade! Plus - we get to decide what parts of earth to shade. I propose arid areas and also those who withholds from paying a voluntary shade tax.
Incredibly unfortunate.

I have to constantly keep myself in check to make sure that I don't reveal too much about my mental health. The biggest example I can think of is one from recent times where I left a company for what amounted to being made fun of for being "weird" or "crazy". At no point during that employment would there have been an acceptable time to bring up the issues I was having to the folks doing the teasing. It actually got to the point of me going to HR about it, where the head of HR had no idea what bipolar is, despite having a degree in psychology. When I quit, I discussed with my boss and her boss (effectively the CTO) about the problems.. they told me to "grow thicker skin". I then told why it wasn't so simple, to which they took 40 steps back and apologized in, "it was just a joke" fashion.

Fast forward to interviewing, where the question of "Why'd you leave your previous company so soon?" comes up. What am I supposed to say? I can give some well thought out BS reasons, but nothing about that feels right. The situation is unbearably tough and is only getting tougher. I wish there was a way around it, but when competition is built around vapid shallowness, a solution is nowhere in sight.

I try my best to talk about it my own experience with mental health on HN, yet every now and then, I hesitate about how much it'll affect future prospects and end up deleting it, despite good intentions. It's fucking frustrating.
Yes, buy this. Maniac Mansion is included as an extra inside the game.
Yes, I agree with you. But I don't know If I was clear enough but I'm not talking about capabilities. I'm talking about the outcome code of time and other constraints.

Like:
- Lack of staff
- Short time to do tasks
- Priority change
- Unexpected problems

We can always blame that manager for most of these problemas but Is not simple as that in the real life. We cannot just say "I'll spend 3 days more on this task and make it perfect. It is not my fault that someone quit and we have a shortage on staff"
The OSI-Model in form of a nice website
Most languages (including Rust), already support path libraries that abstract this away from you. As long as you use these libraries properly, you should never have these issues.
In the case of Rust I don't believe this is 100% true given C ABI compatibility. You could start rewriting in such a way that it is integrated with the existing code and slowly, but surely tease the C out of the system.
Yes --- there's a copy built in to Day of the Tentacle.

Go to Weird Ed Edison's room and use his computer, and it'll start up. Or, well, it used to. I've only ever played it on ScummVM, which didn't support that opcode, but it was trivial to haul out the data files and run them separately.

I have no idea whether the remastered version still contains this. I hope so (I've never finished Maniac Mansion).
> I know there is a new commercial Knytt game, but I fear the pixelated simplicity of the earlier games would be lost. Have you played it?

I played the demo and I didn't enjoyed it. The ambiance is kinda still there but... not enough. Unfortunately he incorporated some game-play mechanics from the game with the ball (the name escapes me at the moment) and that is a deal breaker for me (although I did finish that game :) because it sucks me out of the mood back to tricky jumps.

Anyway, there's a demo with some playable chapters on his website.
This looks pretty neat - it's a clever idea to do a resin-based 3d printing system and use a smartphone as the light source for hardening the resin.

That said, the resin does not look cheap at all. At kickstarter levels, it's around $15 for 100ml of fluid. But still, a pretty cool idea.
Remote Code Execution in CCTV-DVR affecting over 70 different vendors
I realize they can't always control this, but it's a bummer to see no Linux option.
I assume that Uber is not competing with black market interest in bugs, rather they are competing against interest in other bug bounty programs.

The number of people who earnestly compare rates between bounty programs and black market buyers before deciding who to inform must be vanishingly small. However, the number of people who compare bounty rewards before deciding who to test against is likely much higher.
And even between two very programmers with a lot of experience, I saw things like that happening.

Sometimes it even looks like some creativity difference instead of some real issue.
There are two ways that I know of:

Method 1: Purchase a copy of Maniac Mansion on eBay or such. Download a single copy of the data files. Load and play them in ScummVM.

Method 2: So, funny story. See how Day of the Tentacle Remastered is for sale above? It just so happens that the original Day of the Tentacle contained a computer that allowed one to play Maniac Mansion. The Remastered edition above ALSO contains that same computer with that same copy of Maniac Mansion. So if you buy Day of the Tentacle Remastered, then play up to the point where you reach that computer, you can play the original Maniac Mansion.
I think of templates as an automated copy+paste mechanism. C++ templates can bloat the compiled executable pretty significantly... If you define a generic Foo<String> and Foo<Widget>, C++ templates will generate two separate binary implementations. C# will use the same implementation, and perform type checks using reflection at runtime.

Further support for the idea that C++ templates are an automated copy+paste mechanism is that you're allowed to give templates arguments that are not types.

Further reading: https://msdn.microsoft.com/en-us/library/c6cyy67b.aspx
It has no clue what a tree is: https://i.imgur.com/UTPTvd9.png
I acknowledge that learning lots of tools just to start using a new language is a bit much.

However, the reason why so many people in this thread persist in suggesting that these tools are worth learning is that turns out most of these tools plug-and-play with whatever new language you feel like learning 6 months or 2 years or more from now.

Vim is one of the more popular editors to use in conjunction with this plug-and-play philosophy; if you have a change of heart and want to take a dive into learning to use Vim as such, I'd recommend Vim as an IDE[1], which addresses a lot of the points you brought up in your list of things you wish an IDE had.

[1]: https://github.com/jez/vim-as-an-ide
Correct me if I'm wrong, but it seems like the original point here is not whether someone read the code and then contributed, but whether their contribution might (inadvertently or otherwise) contain Matlab intellectual property because they have been exposed to it. It seems a reasonable safeguard to prohibit those who have seen the source code from potentially contributing in a troublesome manner.
Maybe you could set up a public Slack room to discuss? I'm not involved in the bounty but it seems like a reasonable way to organize. Utilizing the search people could figure out whether anyone is working on what they're planning to do.
Now for a Zak McKracken remake or reboot, please. :)

Also a sequel, even if just in spirit, to The Dig would be amazing.
I'd really love to have one or five of those for maintenance work. There's a lot of devices that I don't really need to have a keyboard and video connected to for 99.99% of their life time, but I still need an LC display and KVM switch connected to for about 10 minutes per decade. It's such a waste.
Yahoo wants greater game transparency with new daily fantasy sports updates
First PC game I ever owned.
Ask HN: Critique of logo design ideas
I've often heard complaints that our current logo looks like it was drawn by a toddler with a paintbrush. One of our users just submitted 48 logo suggestions and many of them seem terrific. I have 9 that are my favorites (but what do I know since I threw the current logo together). I would appreciate feedback as to which ones you'd prefer (and, if you'd be willing to share, the reasons you selected the images you did). Thanks in advance. The comment with the images is at https://valme.io/c/gettingstarted/suggestionbox/h5qqs/project-new-logo-concept-for-valme#c551.

(If it helps, some of the ideas I wanted to incorporate into the logo are at https://valme.io/c/gettingstarted/suggestionbox/h5qqs/project-new-logo-concept-for-valme#c413.)
It seems that any discussion of what "life" is, inevitably stresses the language used to the breaking point. This leads one to ponder the nature of meaning itself. Philosophers certainly have a head start on that one. The scientist solution is to fortify a small subset of language before going into battle, whereas philosophers appear to grow vast fields of language in the hope that meaning survives attack by virtue of diversity.
Sure, but best possible scenario you end up with a half-baked siri: interesting technology with gimmicky applications. Hardly a good use case to show case how ML can help a startup. The cost/benefit is huge for the general case using speech recognition.
Rightly or wrongly, I always felt like getting a Pap smear was part of the "deal" when it came to getting a birth control prescription. So it is surprising to me that Nurx can/will (I assume) give you a prescription without having a recent exam.
<conspiracy theory>
Apple releases latest version of iOS (which requires everyone who installs it to type in their passphrase, for both the phone and iCloud, again), and the FBI backs off on demanding that Apple write FBiOS for them.

Maybe Apple got hit with an NSL and were actually required to backdoor their products? Now Apple is delivering the full encryption keys to interested parties?
</conspiracy theory>

I know it's silly, but the coincidence of the release of iOS 9.3 and the FBI backing off from its position was striking.

The more reasonable theory is, of course, that the FBI realized that they overstepped their boundaries and put a tool they've used for decades ex parte at risk of being taken away from them by butting heads with a determined adversary.
And the reason for unpublishing is at https://medium.com/@azerbike/i-ve-just-liberated-my-modules-...
> The last decade has seen an explosion of modern C++ code using best practices that routinely exhibits the same memory safety issues.

Examples? I'd be surprised if best practice C++ (C++11, say) had memory safety issues. (I realize that's only the last half-decade...)

> C is worse.

Certainly. Lack of destructors alone makes it hard to create safe abstractions.
Thank you for posting this. Our CTO Sean Falconer did a great job with this!
> I have no idea whether the remastered version still contains this.

It does.

Source: Kotaku http://kotaku.com/day-of-the-tentacle-remastered-the-kotaku-....
You're giving a lot of strongly-worded advice/opinions on legal issues in this thread. Are you a lawyer? Can you point to any case-law to back up what you're saying?

I'm not a lawyer, and I don't really know who's right in this thread, but I'd find any citations you have really interesting to read.
I mean the memory safety pitfalls of C and C++, mostly.
Developing User Empathy with Design Sprints
IANAL, but since FBI was a plaintiff, they have a right to withdraw the case without giving any reasons, no?
I'm not the one you're asking, but I'll give you my experience. I haven't had any problem with my parrot on my shoulder; she snuggles up against the back of my neck and is pretty content there. One big warning about shoulder time, however: no earrings! You can imagine how that ends.

As for bird-proofing your house, unfortunately you really can't. Parrots chew through soft woods (e.g. pine trim) quickly. In my case, I only allow my bird free flight in certain parts of the house. I've put clear plastic bumpers--the kind of thing you can put on wall corners--which prevents her from destroying the trim on my door jambs. In other cases, e.g. the trim around my bathroom mirror, I've just given up.

Also, keep in mind that parrots are burrowing creatures, so if you give them other stuff to burrow into (aka chew/destroy), then they won't destroy your house as much. My parrot burrows into cardboard boxes that I give her. Think of it like providing a scratching post for a cat.
There are quite a few questions open here

- are they proven to use the library?

- did they modify it? - you can submit changes back only if you changed anything

- as it is server-side software, GPL had not changed much here, you have to provide the source of your program only to those who got delivery of that program, but that is not covering running on your servers.

- none of the licenses discussed require to donate money back, only source code changes.

So, yes, I think more companies should fund open source efforts when using open source software. The attention to OpenSSL and its security problems also showed how little funding that development got despite running most of the https on the internet. That indeed is scandalous. But this is covered by none of the current popular licenses.
Actually, in theory Bolsa Familia should be kind of step to reach UBI. The referenced law talks about gradual implantation, initially by poor people.
Ask HN: Improper use of logos
While looking around for a SaaS offering for a need, I notice that a lot of companies seem to have logos of "partners" that I am certain they did not get permission for.

For instance, a small company I noticed had logos of Dropbox, Evernote, Google, Salesforce, Box, Google Drive, MongoDB, Cisco as their "Ecosystem".

How do I notify the right authorities to let them know about unauthorized usage of logos?
I've Just Liberated My Modules
Ok, I simplified this too much. For full details of what happens you'll have to read the docs.

The non-release mode panics. Release mode with debug asserts turned on panics. Release mode with forced overflow checks panics. Release mode with no special options results in the same result as a wrapping operation.
Yeah, 70k is well into rich territory. What's the median income again?
FYI you can run a survey asking people logo preferences for $1 per complete here: https://www.survata.com/
So I think our disagreement is semantic. When you say the Rust standard library is "unusable", you mean that you usually need Cargo packages in addition to what the standard library provides in order to write programs in Rust. That is true, but that's just a design difference between Rust and some other languages, like Go. For a systems language like Rust, I think that focusing on having an excellent package manager instead of having a super-comprehensive standard library was the right call. The standard library is very well designed for what it does (IMHO), and I credit the community-based library stabilization process for that.

As for Go and signals, I think it's pretty debatable as to whether you can have "excellent support" for signals without the ability to write a true signal handler. Note that this is not a fault of Go and is pretty much inherent to any garbage collected language. I suspect the Rust community would not be particularly happy with an implementation of signals that had hardwired sending to MPSC channels. Even having MPSC channels in the library at all is somewhat controversial...
It's in use in production. We are using it in our internal apps now. Some apps in Japan have been appearing in the App Store using it, such as: https://itunes.apple.com/jp/app/id1088140538.

I would recommend trying to build an app using a DIY store following the principles first to get a really good feel for how it fits in. Moving from DIY -> ReduxKit -> ReSwift has been really easy.
Kind of random, but you made me think of it. I always wanted to do an entire site in PDF, with all the links opening other pdfs on the same server. That or postscript...
Thanks for the positive vibes.

As someone directly involved with the project I can assure you we worked very hard to make it boring, insipid and a waste of time. We see this every time we put the device in the hands of children who instantly fall asleep or complain about how it's "missing the point" and a "total fail".

Seriously, the world is a diverse place and I understand this perhaps doesn't float your boat, but you're wrong in every assertion you make.

Kids love it. Kids love writing Python (among other languages) for it. Kids see how this is but a first step to bigger things.

If but 1% of the million kids who'll get their hands on the device create something amazing then it's been worth it (despite vacuous posturing by nay-sayers).

You're welcome! :-)
This broke a number of builds that depended on the (previously) published modules, here's a GitHub issue showcasing that: https://github.com/azer/left-pad/issues/4
It will be interesting to see if the formal proof/verification work that is being done by NICTA for the seL4 project will mature into something that can be used practically elsewhere in industry.

https://sel4.systems/
The Singular “Their,” Part Two–A Gender-Neutral Pronoun
Yep. States are moving toward an easier process of receiving birth control.

Related: http://www.nytimes.com/2015/11/23/health/states-lead-effort-...
I've had a handful of these over the years, initially in my home racks and workstation, later migrating to my datacenter so I had an always on stats screen showing traffic, alerts, etc.

+1 for good tmux'ing your output.
A whole cottage industry of services exists to improve a power twitter user's experience. The fact that Twitter does not have any significant piece of this pie is surprising.
Proportionality is "in the eye of the beholder", unless you enshrine a measurement in law.

The fact that "in public" situations might have expanded (and sometimes replaced more private ones) is a problem that can (and should) be fixed with education. NBD.

Just because some people seem unable to comprehend the (massive) scale of internet space, it doesn't mean that we can magically make it a paradise where real-world behaviour honed in thousands of years simply does not happen. Internet space is a new all-encompassing dimension, the scale of which we've never seen. One should think carefully before acting in such an environment. It's not like interacting with press or peers in a given niche; it's like broadcasting on all channels in all countries at all hours. The chances of getting reactions you might not like are higher than with any other media or venue; but on the positive side, the chances of getting reactions you will like are also disproportionately higher than anywhere else. Continuously complaining that the glass is half empty will just provoke someone in smashing the glass to solve the problem -- because "you didn't like it much anyway, always complaining".
Yes. Many many thanks to Damien. He's an exceptional talent.
Death threats are already illegal, so that's beside the point.

The line between "voicing an opinion someone disagrees with" and "harassment" is pretty vague, especially when from one person's perspective, thousands of people voicing disagreement to you sure looks like harassment, despite no single person necessarily being harassing.

Her opinions that she voices publicly are just as traumatic, if not more so, than someone pretending to be her dead father. She literally had a "Shout your Abortion" social media campaign. Possibly one of the most traumatic things a woman will ever go through, and she's encouraging people to discuss it as much as possible, even implicitly (or explicitly) suggesting it be discussed with pride. I think you'd have to be pretty delusional to not understand how that's extremely traumatic to a lot of people.

>Endorsing left-wing opinions or writing opinionated books does not merit that level of emotional trauma

People aren't being mean to her because she's a liberal or writing books, they're mean because she's saying and writing things that are offensive and traumatic to them. She's essentially thrown the first punch and getting upset that they're punching back. This isn't victim blaming anymore than it's victim blaming to say she shouldn't attack someone bigger than her if she doesn't want to get her ass kicked.
...with a track record of concealing problems by supposedly neutral and trustworthy experts.
Up until recently, it wasn't guaranteed to be covered under your health insurance. The ACA — "Obamacare" — required plans to cover many options, but it's not guaranteed that your preferred option(s) will available. Generally, coverage is supposed to be free, but again, only certain options may be free (generics only, for example) and some may require a significant copay (IUDs, I believe).

For the birth control pill, you still A. need a prescription (which usually means you need to occasionally make an appointment, take off work, and see a doctor, probably not for free), and B. need that prescription to be filled. Oftentimes, that means picking up a new package of pills in a five-day window during semi-limited business hours because many pharmacies avoid giving out an extra supply. Planning for a vacation can be a pain (1-month notice) but an emergency trip is almost undoable.

Not every pharmacy even needs to carry the birth control pill or other options, so it's a very real scenario that people may not have access to their preferred method. Recent court challenges (Hobby Lobby in particular) have made it more complicated and allowed some companies to NOT provide such coverage.

Also, pharmacies have not been above charging women for products that should be free.

Lots more detailed info here: http://obamacarefacts.com/obamacare-birth-control/

IANAW but I am married to one.
Old-school static linking works like that. Dynamic linking no, though I guess you could argue it's copied in memory at runtime.

But even if there's copying going on at the implementation level, it's an important conceptual distinction to make.
but they probably should be able to control it in this instance. I was playing the original dott with scummvm on my linux laptop yesterday.
It's a great game. One of the first i ever bought.