Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 5y ago · link · parent

Is that the real question? I don't really think so, but even if it were it's one with numerous obvious answers.

Some obvious answers:

Companies are made of people, so decisions that are made are often a reflection of the values of those people, not necessarily those of some country or another.

That some group of companies tends to be American is unsurprising since (a) America owns tons of 'loud' industries like tech, so it will always seem this way, and (b) unsurprisingly the values of those who make up a company are tied to some extent by their background.

Companies may feel that their targeted consumer groups are likely sympathetic with some specific social norm.

Companies may feel that the issue is in fact bad for business ie: that someone is a bad fit for a role, is incompetent, etc.

etc

It's so obvious I wonder why one would even ask.

comment 5y ago · link · parent

> I'm no fan of Stallman, but I do find it worrying that some companies can unilaterally decide to sink the FSF if they don't like what it's doing.

Why? That's like, the entire basis of every organization, that supporters don't have to support it. If a company selling a product behaves in a way you don't want to support you stop buying, if a charity stops supporting a cause you stop supporting it, etc.

comment 5y ago · link · parent

Not to delve, but the article does mention a number of relationships that are explicitly comparable (according to the article) to heterosexual marriage, or are otherwise described as unions. There are multiple references to homosexual marriage and union.

I'm not sure that the points you're making about shared finances are particularly important, or even true, based on this. But I'm not a historian.

comment 5y ago · link · parent

> In that very specialized case this works.

The specialized case is where you can ensure a few application level constraints about your data, which so far in my experience are extremely valuable constraints. It's maybe a less trotted road, but not a difficult one.

The benefit is massive improvements to performance and reduction in complexity - you eliminate the need for a complex consensus system.

It is far more than "it works in this one case", it is that EC removes a massive cost in databases that is often unnecessary - transactional logic, and in return it gives huge improvements in other areas. Specifically, and relevant to this thread (because the article is on caching), in the area of caching this is particularly desirable.

This is, as another user mentioned, called strong eventual consistency.

Your comment compared EC to race conditions, which I think is quite a negative way to view them, so I wanted to point out that EC is not "strictly worse" or buggy or whatever.

comment 5y ago · link · parent

FWIW it is still very much worth reading the article, since they talk about how they implement that approach. They bring up why they use an underscore, checksum'ing, entropy, etc.

comment 5y ago · link · parent

Yep, exactly. It's actually pretty trivial for some work. If you can do that, you get the best of both worlds. Lots of queries can be answered with stale data, which means you drop the massive overhead of strong consistency and transactional workloads.

comment 5y ago · link · parent

OK, don't do that? Or do it carefully.

We do it to answer very correctness-sensitive questions around security, but it doesn't matter because stale answers are still valid if you know how those answers could have possibly been updated - and that's just an application invariant.

comment 5y ago · link · parent

That they of detection in AV is really rare, because AV (rightfully) optimizes to an extreme for low false positives. Instead you just have slightly more complex signatures that look at syscall ordering or whatever. It's not nearly as powerful as it sounds.

comment 5y ago · link · parent

Alternatively, no operating system needs a realtime antivirus, and they're actively harmful. It's fine to run a daily or weekly scan to deal with commodity malware, but otherwise they add no value.

The other day we were writing an exploit and defender popped up to block it. It was literally faster to bypass defender than to figure out how to disable it in the UI.

Linux is a hilarious security disaster but AV is not the solution.

comment 5y ago · link · parent

It's perfectly fine to use an EC system for many use cases. Caches are a perfect example. If one reader happens to get a stale entry from a cache, but that stale entry is sufficient for your task, why pay the price of transactions?

As an example, I build a system with exclusively commutative, restricted operations. What that means is that I can look at an item and know, regardless of when that item was written, that only certain operations will be applied in certain ways.

To serve a query, such as "Find me the item with an element X greater than 100", I don't need to find every item's consistent state of X. If an item's X from cache is, say, 50, and I know that X is restricted to only ever shrink in value, I don't need to hit the database for a consistent view of X.

Application level constraints like this are much more powerful than database transactions and radically more efficient, which is why EC systems can perform so well.

comment 5y ago · link · parent

Why not simply work at a company?

comment 5y ago · link · parent

I assume you're saying that the regular expressions used are likely to be equivalent to a DFA? If so, I agree, that's very likely, and I was also thinking about that.

I believe Go's regex engine is built on RE2 though, so idk.

comment 5y ago · link · parent

Thanks for writing this up. I'm solving a similar problem, albeit different in a few important ways, and was planning on taking a semi-similar approach. Like you, today I'm using a fairly naive implementation with some less-than-ideal complexity.

I've never actually worked with a prefix tree before, so this was quite helpful for me.

This may be of interest as well - a related paper, Pigasus, does this with specialized hardware but it's a similar problem of applying 10s of thousands of rules as quickly as possible. I found it while reading through acolyer's morning paper. https://blog.acolyer.org/2020/11/16/pigasus/

Again, slightly different task - they wouldn't be going for the longest match exclusively, but all matches. Also, the rules they use are fundamentally regular expressions, so the filtering pass is to take advantage of the domain specific knowledge that rule-matches are very rare.

comment 5y ago · link · parent

Is antivirus censorship?

comment 5y ago · link · parent

Serious question as someone totally naive on this. A few hundred billion dollars seems like an extremely good deal to lead this area of technology - why don't we see funding for this at a government level? I mean, we now have a 2 trillion dollar infrastructure plan.

Is there an impediment I'm not aware of? Or maybe it's not as good of a deal as I think?

comment 5y ago · link · parent

All the time on HN I read posts saying how we should celebrate negative results. Here we have a negative result.

Why not celebrate it?

comment 5y ago · link · parent

Hm, ok, yeah. So I guess I can see what you mean. I've never had a use case where I felt comfortable relying on any kind of message ordering, and always rely on my application level logic to handle that, or ensure the system is resilient despite ordering (ie: commutative operations only).

To me, it seemed at odds with the parallelism of a partition, but I suppose in this case you'd be partitioning on some sort of semantic key vs, say, a hash.

Thanks for bearing with me on that, this was just an unfamiliar idea for me.

comment 5y ago · link · parent

> Messages are ordered within partitions.

Right, but that means you're still "unordered" across those partitions?

> TCP/IP ?

But TCP/IP isn't delivered in order, it rearranges the unordered packages by their ID. I guess ordered delivery would be nice for that, but I just feel like making your protocol not require ordering is far simpler.

Not to mention that both TCP and Kafka have to handle head of line blocking?

I'm not trying to say that ordering is bad or anything, I just feel like it isn't buying me tons.

comment 5y ago · link · parent

> Add to that their insistence in claiming “exactly once delivery semantics” from Kafka despite that being provably impossible

Exactly once delivery is impossible. Exactly once processing is possible. TBH, semantically there's very little difference between those two from an end user perspective.

comment 5y ago · link · parent

I've never really understood the appeal of ordered messages. You end up splitting your data across partitions anyways for parallelism, so who cares? What systems out there require strictly ordered data? It seems like any design that requires something like that is going to be extremely brittle.

comment 5y ago · link · parent

This just sounds like "yes" to me.

comment 5y ago · link · parent

Sometimes. GCC is also far older - about twice the age or more compared to llvm.

Do you think that your statement will be as true in 10 years?

comment 5y ago · link · parent

Yeah but that mostly hasn't really happened either. I've been using Rust since just before 1.0. In the first year, there was churn constantly - it used to be that, for a good experience with json, you needed nightly. It was insane.

A few key features landed and things more or less stabilized in the language - I don't recall anything super meaningful where I was like "ah nice, time to update my code". We got some helpers like `impl Trait`, but there was 0 reason to go back into most codebases to use it.

More recently the major change was with async/await. At this point, sure, you may want to go back to old code using old futures and update? So that's one major change in my entire time using Rust where I'd say "yeah, go back, bring stuff up to speed if you can".

I guess there's the new anonymous lifetime stuff, which I don't really think was that important to add tbh.

Most churn is in libraries, unsurprisingly. Tokio only just hit 1.0, but that does mean that from here on out we can expect much less churn there.

idk otherwise, nothing sticks out to me as a major idiom change. I don't think Rust code 2-3 years ago will be particularly foreign at all, again with the exception for when people used to use 'raw' Futures.

comment 5y ago · link · parent

There are plastic bags at the bottom of the mariana trench, arguably the most remote places on the planet with regards to human exploration.

It's hard to imagine a piece of the world that we haven't had an impact on.

comment 5y ago · link · parent

So I've talked to a number of people at various companies about open security work for various areas of detection and response, which is something I don't see really represented in the existing working groups for OSSF. Is there somewhere I can discuss ideas about this?

I see tons of opportunity for guidance to OSS devs that, when implemented, would have massive positive impact for detection and response.

I don't have the experience with such foundations, or the time, to really form a working group, but I'd certainly be interested in discussing this with others.

comment 5y ago · link · parent

Thank you! Unfortunately the part of my career where I had a lot of time to dive into this sort of thing is behind me (and hopefully ahead of me too), but I'll add that to my backlog.

comment 5y ago · link · parent

Well yeah, obviously Kay and Armstrong agree.

comment 5y ago · link · parent

Armstrong isn't even talking about functional programming, he's obviously talking about messaging and actor systems.

comment 5y ago · link · parent

Armstrong's death was one of the few that I was sort of hit by, despite not knowing him personally. I've watched so many of his talks, read as much as I could from him, and I've generally found him to be quite an inspiration and seemingly a great guy.

More on the point of the article, it's sort of fun to think about the fact that "OO Sucks" is sort of ironic given Alan Kay's initial description of OO was closer to actors than what we think of OO today (he acknowledges this at a later time).

As Kay puts it:

I'm sorry that I long ago coined the term "objects" for this topic because it gets many people to focus on the lesser idea. The big idea is "messaging" [..] The key in making great and growable systems is much more to design how its modules communicate rather than what their internal properties and behaviors should be. [0][1]

This is very much in the spirit of Armstrong's quote in the article:

> Since functions and data structures are completely different types of animal it is fundamentally incorrect to lock them up in the same cage.

Armstrong talked a lot about how shared mutable state was wrong on a fundamental level - it "breaks reality(/causality)" and that sort of thing. Again, sort of fun to think about the fact that the core ideas with actors seemed to have an origin in an early focus on asynchronous 'cell'-like computers, like the JOHNNIAC in 1953[2], even though the foundation of the model wasn't named or formalized until the 70s.

"Its designers began with the hope of stretching the mean free time between failures and increasing the overall reliability by a factor of ten". Systems like JOHNIAC where IAS machines - asynchronous CPUs. These worked through causality, not synchronization.

In Armstrong's thesis[3] 'Making reliable distributed systems in the presence of software errors' he references papers like [4] 'Why do computers stop and what can be done about it? Technical Report 85.7, Tandem Computers, 1985.', which talks again about isolated processes and transactions as a foundation to reliable computing - over 30 years later.

This whole area is so deeply fascinating with a century of repeating, refining ideas, and I found that just by reading what I could from Armstrong I had a sort of rough guide through this area. There are these cool ties to early ideas about AI, and I guess a lot of people though that languages should model life, and later Kay talks about this as well, and funny enough AWS now has "cell based architecture" - their discipline built around isolation and fault tolerance. A lot of this is sort of just random connections from jumping from paper to paper - but I just found it all really cool.

Reading this thread, it almost seems like people don't know who Joe Armstrong is? Or at least they've missed a lot of the point. This isn't an "X vs Y" from some rando, he built Erlang. It's also not about functional programming.

I highly recommend reading what he has to say, and watching his talks.

[0] http://wiki.c2.com/?AlanKayOnMessaging

[1] https://computinged.wordpress.com/2010/09/11/moti-asks-objec...

[2] https://www.rand.org/content/dam/rand/pubs/research_memorand...

[3] https://www.cs.otago.ac.nz/coursework/cosc461/armstrong_thes...

[4] https://www.hpl.hp.com/techreports/tandem/TR-85.7.pdf

1
102103104
164