13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 5y ago · link · parent
At some point you have to convey the type or I have no idea wtf you're giving me, and I'd rather have you convey the type in a way my computer can understand than have you convey it through the godawful way that people name things.
That people manage to do so is no endorsement. Humans managed for quite a while without antiseptic but I don't hear anyone endorsing going around with shit on their hands.
Honestly, I've been programming in both typed and untyped languages for ages and it I am asking how you manage this problem, because I find IDEs radically less effective in dynamically typed languages, I find that I have to ask more questions, do more manual work, etc. In typed languages these things become trivial.
comment 5y ago · link · parent
`x = call_some_function()`
What can I do with x now? Does it have methods? Which ones? Is it sometimes null? Sometimes a list?
In a typed language I can just look up the type definition, and just as importantly, my IDE will know what I can do as well.
comment 5y ago · link · parent
I guess what I would argue against in this post is that SQL is the right language for this. The post starts off with the assertion that we're just using SQL on the backend anyways - not so, in fact my company doesn't have a single SQL database.
But I think the overall point remains - if you want powerful clients you can't beat a query language.
Apache Calcite comes to mind: https://calcite.apache.org/
comment 5y ago · link · parent
I thought wasm's format was specifically designed so that parsing and compiling could be performed in a streaming fashion, so that you don't have to wait for the download to finish.
comment 5y ago · link · parent
The attacker could make an HTTP request to B and set 'no-cors' or whatever, but then it couldn't include credentials (if you're using HTTP cookies), and again, B would still just reject the request.
So I'm not sure what you're saying is true. This isn't my area of security, happy to hear if I'm mistaken.
comment 5y ago · link · parent
It's exactly the sort of thing this post is talking about. I'm not advocating for a wholesale rewrite, that would be ridiculous - but there's very obviously certain areas of attack surface that are harder to sandbox and are great candidates.
Besides, Firefox is even older than Chrome, and at least as complex, and they began the process of replacing core attack surface. Google could put 10x the devs on such a thing.
comment 5y ago · link · parent
Of course the approach is not a catch-all. A web browser that cares about performance isn't going to want to spawn a process for every bit of JSON it wants to parse, etc. Spectre has made this even worse, since now isolates/VMs are no longer considered boundaries - now every single site has to be isolated from every other (as is addressed in Chris's talk), or you need some sort of heuristic, or whatever.
There's also a massive gap between basic sandboxing and what Chrome does. Seccomp is very hard to maintain, but broader sandboxing like Windows Integrity or DAC on Linux, Apparmor, etc, are quite simple both to implement and to maintain.
What's notable about the ITW attacks is really just that
a) Chrome really owns the market now, and attackers know it's worth the time to exploit
b) Attackers have likely incorporated enough research and tooling to more cost effectively find vulnerabilities in Chrome
c) As the article points out, a lack of memory safety is extremely costly to try to make up for using just one other approach, even a great approach like sandboxing.
From the OS, which provides the sandboxing primitives, up to the broker, and into the renderer, we have memory unsafe languages. Shocker that sandbox escapes occur.
Sucks that Google is so invested in C++, it's obvious that organizational inertia has kept Rust out of Chrome.
comment 5y ago · link · parent
a) We're a small tech startup. We use Chromebooks exclusively because it makes corpops/corpsec and compliance trivial.
b) Why not Firefox? Maybe Firefox could work, but I'm not sure - with GSuite we can manage Chrome extensions via policy, we can manage Chrome versions, Context Aware Access, etc.
comment 5y ago · link · parent
I don't see Firefox competing. Mozilla doesn't seem to believe that monetizing a browser is possible, whereas I pay thousands of dollars a year at my company because of Chrome's integrations with these other systems.
Until Firefox can compete like that, and maybe they just can't, I can't switch.
comment 5y ago · link · parent
If you can build a system with ACID 2.0 life gets really easy. You can reason about your system without worrying about ordering, time, 'exactly once' semantics, etc.
Idempotency is usually one of the simplest pieces to implement, and you definitely get a ton of benefit right off the bat - it's worth designing systems from scratch with it in mind.
comment 5y ago · link · parent
https://www.reddit.com/r/rust/comments/mk2nz8/ordering_reque...
"NCQ does it's best to order all of the outstanding commands at a moment in time (so maybe 32). This is instead submitting the commands in the optimal order to start with."
The thread contains more details.
comment 5y ago · link · parent
> They are hiding, scared, waiting for the government to officially announce that it is once again safe to return to the world.
If it were a leveled discussion of facts, without the obvious agenda and judgment attached, people would not react so negatively.