Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 7y ago · link · parent

Browsers sandbox more than just the javascript VM/ renderer.

comment 7y ago · link · parent

Oh, I see. I misunderstood your point.

> Would that be a complete silver bullet, tho? Nope.

I don't think anyone would disagree!

> So I agree with you that using a language with C++ isn't exactly "optimal"

Yeah, I think the distinction here is that I don't consider it "suboptimal" I consider it to be an absolute disaster. I would call rust "suboptimal" in that the language contains some soundness holes and the stdlib contains unsafe - issues, but practically still a massive improvement.

comment 7y ago · link · parent

"Far from it", as you link to literally the only other case.

comment 7y ago · link · parent

There have been two ITW attacks on Chrome ever.

comment 7y ago · link · parent

Javascript is used to perform the exploit. The renderer, where the vulnerable code exists (I assume), is C++.

The problem with protecting a C++ codebase like a JS renderer is that the attacker has HUGE amounts of control. They can literally already execute arbitrary code in the renderer, making information leaks and other techniques much easier. ASLR was never intended to protect against an attacker with such a level of control.

comment 7y ago · link · parent

Here you go: https://blog.stalkr.net/2015/04/golang-data-races-to-break-m...

What's even worse is that Go code is not (outside of Linux/ some distros) compiled with ASLR.

comment 7y ago · link · parent

I disagree. By having the browser implement these features we gain security. Chrome's sandbox is extremely powerful, and they can isolate and restrict all of those features you're describing very deliberately, in a way that a more generalized OS provided tool may not be able to.

comment 7y ago · link · parent

This, for me, is due to lack of package namespacing in these languages. Someone took 'xyz' ? Well I guess I'm going to be 'xyz-rs'

comment 7y ago · link · parent

"In Rust" signals something very important to me, especially with the context of "full text search".

ES is the current free text search engine out there, and it's famously painful to manage. Resource consumption and GC pain can be really significant.

I see 'rust' and I know immediately that at least some pains I've experienced will be eliminated.

comment 7y ago · link · parent

I don't think it's a separate problem, and as I said this is a real, concrete problem. The end result isn't that it's fine after they fix this, but that doesn't matter at all, the goal isn't to end surveillance.

The obvious, no two sides about it problem right now is discrimination.

comment 7y ago · link · parent

Why is that causing a huge part of the population to switch off? That's insane.

Starting with a practical, serious, and concrete discriminatory problem sounds like a great place to start vs some general ethical issue with surveillance.

comment 7y ago · link · parent

Hey, I wrote that article. There's now an actual, functional IMAP library that uses these techniques here:

https://github.com/jonhoo/rust-imap

I did not contribute to that library, but it's nice to see a practical implementation. They use the same approach, essentially, as I describe in my blog.

comment 7y ago · link · parent

Dart has gained more success since moving away from the "new browser language", which was an impossible task in retrospect.

I think Dart is, in fact, an excellent example of how much power Google is willing to throw behind a language. Dart was constantly marketed on the Chrome blog, for example.

comment 7y ago · link · parent

Dart is practically a DOA project, just like NaCl. These projects failed for the same reasons - they were trying to radically change how you built software on the web, and the world was absolutely not ready for it. DART was going to be a separate VM in your browser and, of course, only Chrome supported it. It never could have succeeded in that role.

No language has usurped Javascript for frontend, and the only two approaches that may work are:

a) Typescript, which intends to be very close to javascript

b) Webassembly, which has taken years to get off the ground

Go didn't have that problem to contend with. I don't think it's fair to say that because Dart failed to take off quickly that proves that Google isn't the main reason for Go's success.

edit: I see lots of "Dart is a counterexample" posts. It really shouldn't be considered one.

comment 7y ago · link · parent

> The options in python to speed up your code are vast without really having to do much

This does not match my experience. The #1 way I see to optimize Python is to not write Python at all, and instead to FFI out.

comment 7y ago · link · parent

Very cool work! Thanks for the links.

comment 7y ago · link · parent

How do data scientists feel about Nim? It feels very pythony, but way faster - could be a really cool language for them, similar to what Julia is trying to be.

Curious if anyone in a DS role has tried it out. I'm certainly tempted to try it out, I'm sure I'm losing lots of performance in parts of my analytics pipeline due to Python being garbage slow.

comment 7y ago · link · parent

I'm completely good with the idea that everyone should try to reduce their consumption and strive to reuse materials.

I just think it's crazy to compare that to what Exxon has done.

For example, as you stated:

> In this quote, substitute for "Fossil fuel industry" and "Exxon", "we" and see how well it fits.

And let's try applying that to the quote:

> Our own scientists warned their managers 40 years ago of “potentially catastrophic events”. Yet rather than alerting the public or taking action, we have spent the past few decades pouring millions of dollars into disinformation campaigns designed to delay action.

Uhhhhh no? I have had scientists telling me about global warming, but they were not hired by me, or direct reports of mine. They didn't advise me on how I could steer my business, as it is one of the major contributors to this problem.

I have not spent millions of dollars a year trying to create a culture that questions scientific facts.

It's incomparable.

comment 7y ago · link · parent

Yes, my use of paper bags instead of reusable bags is clearly in the same league as a multibillion dollar campaign to discredit science itself.

I fear for when MA decides to come after me.

comment 7y ago · link · parent

> I've recently seen a ton of FF fans state that the reason they love Firefox is that it doesn't have ads or track you and preserves your privacy.

> However, Firefox wouldn't exist without Google and (to a lesser extent, Google Chrome).

These are unrelated issues, though. A connection, financial or otherwise, to Google, does not mean that users aren't getting a browser that prioritizes privacy.

comment 7y ago · link · parent

Because you aren't supposed to Google search by entering in a bunch of keywords you're supposed to ask Google questions.

Not that your workflow is incorrect, I'm a DDG user and I do the same thing, but that's what Google wants people using their product to do.

comment 7y ago · link · parent

It's a long way from being a realistic approach for anyone, including Dropbox, really.

comment 7y ago · link · parent

https://github.com/python/mypy/tree/master/mypyc

This may interest you. This is probably going to be the 'official' way to get what you're talking about.

comment 7y ago · link · parent

Adjacency matrices are trivial to implement in Rust. I leverage graphs constantly.

comment 7y ago · link · parent

Paper is a separate product.

comment 7y ago · link · parent

Right now I write, almost exclusively, Rust and Python. I'm really hoping I can replace a lot of the Python code with Nim some day.

comment 7y ago · link · parent

> The only valid options for performance sensitive functions are JS, Python and Go.

With custom runtimes that's not the case anymore. I write my lambdas in Rust.

Can't stress (7) enough, would also add 'morale' savings. It can be really stressful for developers to deal with gratuitous ops work.

1
130131132
164