Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 9y ago · link · parent

P is a really cool language, and I've been keeping an eye on it. Unfortunately, the documentation has been pretty perpetually out of date, and the language is still a moving target. So you can't just "get started" in P, the example code won't compile.

I don't know what their plans are or if they ever intend for it to be consumed outside of MS. If they do, some focus on docs would be nice.

Pony is a similar language - but better documented. If you're interested in P, I suggest checking out Pony.

comment 9y ago · link · parent

I think you're putting too much blame on Microsoft here. DNT was always garbage, the fact that as soon as anyone used it (it becoming default for IE being the push in this case) it would fall apart just shows that it was always doomed.

Shouldn't not being tracked be the default? Shouldn't we be opting into targeted ads, not out of them? Seems reasonable, if DNT weren't garbage, to have it be on by default. But it was garbage and so it was never really any help to anyone anyway.

Really, everyone should just install an adblocker, and whitelist sites that are non-invasive, don't track, and that you want to support. Then the responsibility isn't on advertisers not to track us, it's on citizens to whitelist sites that they genuinely should be supporting.

comment 9y ago · link · parent

> Rust made an explicit design decision to make unsafe the default

You mean 'safe the default'.

comment 9y ago · link · parent

Using browser supported methods should be more efficient. Content security policy (what's used in ublock) means requests don't even get made, and the browser 'knows' this, whereas if your DNS just keeps getting blocked you may still be attempting the query.

But having a DNS fallback for other applications is nice too.

comment 9y ago · link · parent

Literally nonsense. But, in fact, totally representative of the crazy lengths people go to to justify why Tavis's tweet that he found ~a vulnerability~ is somehow dangerous.

comment 9y ago · link · parent

You could look at SMACK TLS as a few dozen examples of implementation specific features due solely to the complexity of representing TLS state machines. These aren't protocol weaknesses, they're weaknesses in the implementation due to complexities in the protocol.

comment 9y ago · link · parent

And Soylent can be fine for those things. It's simple to see that it's faster than cooking a meal. Does that mean you'll spend that time better? No. It's simple to see that your calories are measured out for you - does that mean you won't eat more than you should? No.

Both examples had underlying issues that Soylent did not solve, because it never could. Doesn't mean it can't solve those same problems for others.

comment 9y ago · link · parent

> You can't really ship all of the grsec, because some compile time settings break userspace apps. Other options disable things you want on laptops, like power management registers. Basically your need to opt-in to grsec and you need to know what to configure afterwards. Or enable only selected few features and not get the whole protection.

The vast majority of features are 'set and forget'. Most will not break userland, or have extremely low FP rates. I can think of only one or two that have a high FP rate (integer overflow plugin) that would not be enabled by default. After all, these patches tend to make it into upstream under another name in ~10 years or so.

> On top of that, you can't use the latest kernel version until grsec is ported to it.

Not really a problem unless your distro updates to the latest version the night it's released, which most will not. Grsecurity's dev patch tends to be far, far ahead of whatever Ubuntu is using.

I ran it on an Ubuntu system with virtually all features enabled with little problem.

comment 9y ago · link · parent

Everyone understands that illness exists. Not everyone understands what it is, or why it occurs. This has nothing to do with stupidity.

comment 9y ago · link · parent

> Even someone who is uneducated or does not know of scientific method will reason with what they see themselves.

This is really the subject of the entire book - it's not this simple. There are many factors that are involved in someone accepting a truth that goes against what they already know.

comment 9y ago · link · parent

This wouldn't work in the case I mentioned because they actually already had a very strict definition of when water should be hot and cold. If this were vague or unclear in their culture, you could lie and say "Oh yeah, because you believe X and Y, Z is true" - ignoring the ethical questions this brings up.

But in their case water being boiled was something you did when you were sick. This already had them boiling water for sick people, the sick would get better (to some extent confirming their belief), and they'd go back to cold dirty water.

comment 9y ago · link · parent

The first or second chapter of Diffusion of Innovation covers a case where a health organization official tried to convince people to boil their water. No one did it. The concept of "germs" was so foreign to them, and their beliefs about water were already so ingrained. It was a complete failure.

It seems obvious to say "if you drink dirty water you will get sick" but you're assuming that people can make so many connections - what makes it dirty? What makes you sick? What is illness?

In many places there is no connection between 'germs' and illness because germs are not a concrete concept to them.

comment 9y ago · link · parent

True.

comment 9y ago · link · parent

This is already a problem if you're removing an item, regardless of whether it's done with swap remove or not.

comment 9y ago · link · parent

> The author seems to think they own it

Yes, fundamentally this appears to be the issue, and I agree entirely that the concept of ownership is something you can get, albeit a not great version of it, in a standard way. C++'s unique and shared pointers, as an example, make ownership concepts much clearer. Why is the Linux kernel using raw pointers? Even just having a unique pointer would provide tons of help.

This is not an uncommon issue. The Linux kernel is plagued with use after free vulnerabilities and invalid dereferences etc. But there's very little upstream movement to solve these problems.

comment 9y ago · link · parent

Can you name a tech product that is hard to research in regards to its constraints or failings?

comment 9y ago · link · parent

> If I were going to teach an introductory programming course in Javascript, I wouldn't bother with the ecosystem, it would just be plain vanilla JS.

I assume they're referring to self-teaching outside of class.

comment 9y ago · link · parent

No, no! It's all just hype! Don't look at new technology!

comment 9y ago · link · parent

Right, because there isn't a litany for what could go wrong with every single technology mentioned in this article already...

Let's not pretend like there's a single technology out there that isn't constantly under fire.

If you strip out the strawman argument against each technology ("Let me tell you a story about how this technology didn't work in my imagination") you end up with one single premise - do research before adopting tech. Did you need to be told that? I think if one single person is making tech stack decisions in production and no one is going "uh can you justify this" you have far more serious issues.

comment 9y ago · link · parent

It would be one thing if we just knew these companies used these technologies, and that was it. Instead, we have conference talks, testimonials, and evidence that they are working well for them.

Obviously you should not use a technology without understanding it. Does this really require a discussion? No one is on the other side. But going "Well that technology is just hype" isn't understanding it, it's dismissing it.

comment 9y ago · link · parent

Ok... so what? I don't care if you blame the compiler or the spec, and no one else should either - the end result is the same, vulnerable code.

comment 9y ago · link · parent

It's not like every Firefox extension will be broken. And I'm an ex Firefox user who switched to Chrome for the sandboxing and multiproc architecture. I'll happy go back to Firefox, I'd much rather use a browser by Mozilla over Google.

Maybe in the short term keeping some users is worthwhile but they'll continue to lose them slowly to Chrome, and browsers aren't fighting a short game. Firefox, Chrome, IE, they're not going anywhere - they've been around for a long time with plenty of market share. It makes sense to be forward thinking here.

comment 9y ago · link · parent

Thanks, this is what I was looking for (found through your link): https://github.com/sandstorm-io/collections-app

So it does seem to be the case that they are using the rust version here. That's nice.

comment 9y ago · link · parent

Is there a source for this? I was unaware.

comment 9y ago · link · parent

These are runtime sanitizers designed to aid testing and fuzzing, not meant for running in production software. It involves instrumentation.

comment 9y ago · link · parent

Yeah, the other side of all of this is that I'd leave Chrome for Firefox if it did drop XUL and get up to par performance/ security / feature-wise. I'm sure many others feel the same.

comment 9y ago · link · parent

C optimizers have and will optimize around UB. Feel free to call it a bug in C, the compiler, or the programmer, or the code - when you write C, when you use a common compiler, you're asking for vulnerabilities.

Thanks for the paper. It's very interesting but I think it has no real impact on my initial statement - these optimizations aren't going away, you can continue to expect problems like this vuln in the future for the same reasons.

comment 9y ago · link · parent

> Just don't magically remove code that I wrote.

Compile with O0.

> Yes, and it is wrong. Breaking existing programs with magic that simply removes code that is clearly there in order to eke out a bit of performance is wrong.

Well welcome to writing C? It's been this way for a long time and that won't change - UB is critical to performance and doesn't always lead to unsafety. If you're programming in C, don't blame the compiler when your UB leads to remote code exec, you should have known what you were getting into.

1
157158159
164