Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 4y ago · link · parent

They're gonna get enshrined into law eventually one way or the other. If we do it ourselves and we're effective at limiting the damage we cause we'll be able to maintain control over our own processes. If we don't it will be taken out of our hands.

comment 4y ago · link · parent

I think a lot of people will disagree, which is cool and I'm fine with that but I do hope that this discussion can be had.

> The problem is that somewhere someone who is supposed to be held to some standard decided to pull that code in without looking at it

Why is it that there is no standard applied to those who publish code for distribution purposes? Why do we want that to be the case? Again, publishing to Github or some source repository is fine, that should never ever be restricted, but publishing with the express intent for others to use it? I don't get why we're trying to ensure that that's something that shouldn't at least imply the bare minimum of assurances.

> if people share their code for free, they don't owe anyone anything

My point is that they don't legally owe anyone anything but we should impose a moral standard in lieu of a legal one. If you are saying "here's this code, I've packaged it up and sent it out for distribution" I think it should be perfectly fine for us to say "did you do the bare minimum to make this code acceptable for others to use?".

I don't get why we say "you have no ethical obligations in open source", why do we do that? Who benefits? I get not having legal obligations, but once you're distributing code for use it seems absurd to say that you have no ethical obligations. You chose to do that, you chose to distribute it, you didn't have to do that.

And while I do think that the obligation exists regardless, I also feel that if we don't step it up here, these things are going to be forced on us. I'd rather we do it ourselves.

comment 4y ago · link · parent

I agree with your point that TS is held back by being "just" a type checker. In particular, in Rust I can write code like this:

    let _: Result<Vec<_>, _> = some_iter.collect();
or like this:

    let _: Vec<Result<_, _>> = some_iter.collect();
The only thing that has changed here is the type annotation. Both will compile, but the implementation of `collect` is determined by that type. As far as I know this isn't the case in typescript, although please tell me if I'm wrong, I have limited experience from it and I'm thinking more from mypy perspective.

This ends up meaning that my types don't drive the program as much. There's this sort of declarative "here's the thing I want, use an implementation of that method to give it to me" that feels very powerful. I miss this a lot with mypy, my type annotations feel very much like annotations, they are a separate part of my program.

If TS were to lean into itself as its own thing, not just a way to do better JS, I think that'd be amazing. I'd love to see an AOT compiled TS where types are a semantic part of the program, I'd love to see it drop `any` entirely as well, and drop support for using JS in TS.

As for soundness, don't care too much tbh.

comment 4y ago · link · parent

FWIW, while this specific act may not be enforcing significant regulation, software developers need to understand that there's a ticking clock. Modern civic engineers went without any significant regulation, and then that changed. Software is young, it's in the phase where people aren't dying too often for the public to care. But breaches are leading to massive privacy problems, real wars and conflicts are increasingly leveraging software defects, and the impact and scrutiny will only grow.

If you want to avoid having to pass tests, having to maintain insurance, having to do a bunch of bullshit, all just to be a software engineer, get started on fixing things now.

It is absurd that anyone can anonymously provide open source code, with no assurances whatsoever, and that can end up in critical software. And you might be saying "well, it's up to people to audit their dependencies" - and maybe you're right. But I would challenge that everyone has the right to publish code for distribution purposes with zero responsibility.

Publishing code to Github? Sure, go for it, anyone can do it. Publishing packages to package distributors ? No, that crosses a line. I don't want legal requirements, I don't want identification requirements, just to publish and distribute code.

If we want to avoid that we're going to need to step it up - that means, yeah, basic measures like strong 2FA to distribute packages should be a requirement. Signing packages should be a requirement. Acknowledging and triaging vulnerabilities should be a requirement. If you aren't willing to do the above, which is frankly trivial, you shouldn't be allowed to publish software for distribution purposes.

I think we need to start taking a bit more responsibility for the work we do. "NO WARRANTY" doesn't mean "No obligations", it just means no one has a legal right to pursue damages due to your software, you should still do some things.

edit: K I'm rate limited so I can't have this conversation with all of you, thanks again Dang

comment 4y ago · link · parent

I imagine that phoshopping videos at this quality or higher is going to take way longer and be a much more specialized skill.

comment 4y ago · link · parent

I'd be interested in hearing from others, but I wonder what differences there are for optimizing JS vs Python. A few things come to mind:

1. Python has a ton of C code in its libraries/stdlib, JS did not have that for the vast majority of its usage (browser). Optimizing across the FFI boundary seems unlikely to be a reasonable goal and may complicate optimization opportunity. Let's say you want to do some sort of optimization pass to make sure that `str.append` is not getting overridden - how are you going to handle native code?

2. Python is obscenely dynamic. Runtime generation of classes is not uncommon at all - for example, `@dataclass(slots=True)` creates an entirely new class.

You can overwrite methods, functions, there's heavy use of globals in libraries, no such thing as private implementations, hooks into everything, even importing code has side effects so you can't reorder or lazily import automatically, even reordering imports is unsafe in Python.

It seems really hard to optimize Python at all, and I wonder if we could ever reasonably expect to see a "V8-like" runtime, even assuming that there's funding, which I also doubt. Unless you're willing to break the language I just don't see a Python runtime overcoming these issues. Or introduce something like 'strict' where these things aren't possible.

comment 4y ago · link · parent

No idea, I haven't been in the presence of a DVD in years

comment 4y ago · link · parent

So do I have to add more RAM to this later? I can't just buy it with the max'd out RAM?

comment 4y ago · link · parent

I have a whole bunch of reasons.

ChromeOS has a great separation of concerns and isolation of environments. I have my work profile and my personal profile, which are totally separate. I have my browser environment and my dev VM, which are totally separate. Different activities are cleanly partitioned.

This has obvious security benefits but also is just a really nice, simple way to manage the system. I can fuck up a dev VM without impacting anything else, I can click random links on my personal profile without impacting work, etc.

It also just does what I want it to do. I browse the internet, I program. It's good for those things. So... why Linux?

comment 4y ago · link · parent

Oh shit I might get this. I've moved to ChromeOS for virtually everything and it's awesome, and I've been looking for an excuse to try framework

comment 4y ago · link · parent

I'm not really familiar with more than AdSense and Youtube (I think Youtube's ads are a separate thing, I'm not sure).

comment 4y ago · link · parent

> Perhaps another way to look at it is not Google actively defeating adblockers, but giving a gift to their customers that pay for ads...making it easier for those customers to deal with the rising tide of adblockers, paywall end-arounds, etc.

This assumes that Google's ads will start to bypass the V3 adblockers. V3 in and of itself does nothing, Google's ads are still blocked by the updated adblockers.

> I don't know what else they would really gain

Well that's what I'm asking haha I'd like to hear from them on this. Even if some people at Google are nefariously implementing V3 for some future plan to bypass adblockers, surely some people at Google believe that there are benefits to the work.

comment 4y ago · link · parent

I decided to start paying for Excalidraw after barely using it - it's so good.

comment 4y ago · link · parent

Yeah, I said this in another comment, I don't really believe that to be the case. I'm not saying that a conflict of interest doesn't exist, I just don't believe that this move is part of an overall plan to have Google start bypassing adblockers.

comment 4y ago · link · parent

I don't know what you're trying to say - the ads you're running into are explicitly working to bypass your adblocking?

comment 4y ago · link · parent

I don't think so. That gets repeated a lot but I think people are just unaware of the fact that Google ads are particularly uninvasive and easy to block. If ad blockers are less capable that will only help Google's competitors, not Google. Another comment the other day confirmed that Google's ads continue to be blockable with V3.

This could change - AdSense ads could start implementing bypasses. I think that's unlikely because Google would likely end up with a few lawsuits, questions about browser monopolies, and a congressional hearing. Certainly the EU would be on their asses. One day that may change, but I don't see this move as being part of any specific plans to improve AdSense revenue.

comment 4y ago · link · parent

If no one were building an adblocker for Chrome I'd just build it myself. I'm sure I'd do a worse job than the people doing it today but it'd be better than nothing.

comment 4y ago · link · parent

I guess the biggest issue I have with V3 is I don't really "get it".

The idea was initially that extensions have too many privileges and that malware can leverage those privileges for harm. I'd love data here! This is such a good area to share information on, as someone in security I'd really value that.

I'd like to see case studies on malware, or even broad things like "malware uses these permissions X% of the time".

But back to the point, assuming that this is true, how does V3 help? Specifically, what can malware not do with V3 that it could do before? Given the data, how will this impact the threat landscape?

I can think of some obvious things, like that you can't have dynamic scripts - cool, makes sense, I bet malware loves that and removing it seems like it'd be a huge win.

But WebRequests? I'm sure malware was using it, I guess, but what in V3 makes the malware use case for it harder? It seems like we're getting something that can be used maliciously just like before, but it's somewhat weaker in ways that malware won't care about? Again, data here would be great. I'd love to see "X% of malware used it this way, we removed that way".

Communication has seemingly been pretty bad around the motivations, which has led to a lot of people being pretty upset and confused about the changes.

Google, please share the data and reasoning!

edit: With regards to uBlock Lite specifically, I'm looking forward to seeing it evolve. I do like the idea of having a permissionless blocker that works decently and can then have the opt-in approach. I don't honestly consider it a massive security win though.

comment 4y ago · link · parent

I don't really use Python if I can help it, but I'm still really glad to see people working on this. Whether I like it or not Python will probably always be some part of my job and I really appreciate that there's finally some focus on it getting faster that isn't just "write that part in C".

comment 4y ago · link · parent

Oh ok, it's just that AdSense and Google Analytics are two different things, although they can be used together.

comment 4y ago · link · parent

OK that doesn't have to do with blocking Google AdSense ads nor does it have to do with proxying so I'm kind of confused.

comment 4y ago · link · parent

I'm not sure what you mean.

comment 4y ago · link · parent

OK and presumably it does that by taking a request for an address A and rewriting part of it so that it actually goes to B with some additional headers to indicate how to forward it.

edit: Apparently I've hit my HN rate limit so I can't reply! Thanks Dang.

As for the proxying, obviously something has to rewrite the address that the request is going to. Depending on the type of proxy (ex: HTTP CONNECT) you may also have an x-forwarded-by header set. It sounds like Chrome never allowed you to do this manually, cool TIL.

comment 4y ago · link · parent

A proxy extension requires rewriting arbitrary requests on the fly, which is removed from V3 as a general capability.

comment 4y ago · link · parent

Doubtful. I suspect that Google Adsense ads will continue to be blocked post-V3.

comment 4y ago · link · parent

Hm, yeah so a problem would be that I have no degree, nor any desire to attain one.

comment 4y ago · link · parent

Out of curiosity, what was the transition from field work to teaching like? I always hated school (the school bits, I liked the socializing) and thought I might like to be a teacher one day for that reason. I have no idea what transitioning would even look like though, it's entirely foreign to me.

comment 4y ago · link · parent

Once a message is deleted there is no way to recover it, to my knowledge. But message retention in Slack is infinite. Further, sessions are infinite, at least last I set it up.

I think we set something like 1 year of retention for "public" channels, 9 months for private, and then certain channels can lower it beyond that. Same for files. And we have our tokens expire once a month.

The defaults for Slack are pretty insane.

comment 4y ago · link · parent

Oh yeah, for sure. It seems like antisec has taken a significant back seat to bug bounties and the like.
1
262728
164