Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 6y ago · link · parent

It's not nearly as complex as paging, which has a similar purpose of limiting single-query complexity.

comment 6y ago · link · parent

Focusing on the fact that the guy shot first is way more misleading, as it detracts from the important issue of no-knock, plain-clothes warrants.

A group of people breaks into someone's house at midnight with weapons and it's not a story that someone defended themselves, at all. Bringing it up is a distraction - and this entire HN thread is a perfect example of that.

If the guy hadn't shot, or had shot second, or if Taylor hadn't been killed at all, it wouldn't make what they did justifiable. The fact that their absolute negligence led to a situation where a woman died is just what makes this that much more important to focus on.

It is not moved to another section "for a snappier piece" as you put it in another comment. It is simply not important information, it is not relevant, it does not change the judgment, it does not change that the police are responsible for her death.

comment 6y ago · link · parent

I think the bigger problem is that we completely underfund mental health, education, and community oriented programs, and then ask an armed police force to pick up the slack.

comment 6y ago · link · parent

> the things you described aren't exactly novel programming concepts unique to or invented by microservices.

I don't think anyone has ever claimed novelty in microservice architecture. It's very clearly derivative.

Shared state is moved. You get some level of isolation simply from the fact that there are two distinct pieces of hardware operating on state. You can then move state to another piece of hardware, and share that state between services (somewhat discouraged), but this is a much more explicit and heavy lift than just calling a function with an implicitly mutable variable, or sharing a memory space, file system, etc.

> But can't you just as easily argue they weren't creating a proper "monolith" to begin with?

Maybe. You can say this about anything - there's no science to any of this. I could say functional programming leads to better code than oop, but I couldn't really prove it, and certainly you can still do crazy bad garbage coding things with FP languages. But I would argue that the patterns that make up microservice architecture can help you make bad things look bad and good things look good. It's not magic fairy dust that you can just use to make your project "better" by some metric, but no one informed would ever claim so.

comment 6y ago · link · parent

My point is that microservice architecture is not just the singular pattern of "code talking over the internet", but a collection of patterns and techniques, focusing on when and where to split up code, and to focusing on the communication strategy you use.

You can 'get around' microservice architecture by not doing it. The point is that if you're familiar with it it's a lot easier to 'accidentally' be successful - or at least, that's the proposition.

comment 6y ago · link · parent

> Then couldn't I just follow the same patterns in a modular monolith (eg: avoid shared state, make sure errors are handled properly, etc) and get the bulk of the benefits, without having to introduce network related problems into the mix?

Sure. Microservice architecture is a set of design patterns and a discipline for knowing how to structure your applications.

Many, including myself, would argue that by leveraging patterns such as separate processes as a focal point for the architecture leads to patterns that are harder to break out of and abuse, but of course anyone can do anything.

Error handling is the easiest one. With any 'service oriented' approach, where processes are separated, you can't share mutable state without setting up another service entirely (ex: a database). Microservices encourage message passing and RPC-like communication instead, and it's much easier to fall into the pit of success.

Could you do this with functions? Sure - you can just have your monolith move things to other processes on the same box. Not sure how you'd get there without a process abstraction, ultimately, but you could push things quite far with immutability, purity, and perhaps isolated heaps.

comment 6y ago · link · parent

> just using separate processes

Microservice architecture is not just using separate processes.

comment 6y ago · link · parent

This is a completely unrelated issue. Microservices have nothing to do with access control. If anything, they should lend themselves to more fine grained control, but again, microservice architecture says nothing about it.

comment 6y ago · link · parent

Not the network bit, the separation of state and the process abstraction.

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

Here's one paper that discusses building reliable systems from two abstractions - the process and transaction.

comment 6y ago · link · parent

You'll never achieve the level of operational stability of an air gap that you would without a strictly in process system.

Shared state is part of it. Isolation of failure is another. Your Haskell code can still blow up.

Immutability makes that way easier to recover from, but it's just one part.

Of course, microservices are much more than processes over a network, they're a discipline. And I think one can go much further than microservices as well - microservice architecture doesn't tell you how processes should communicate, it's more focused on how they're split up, and leaves the protocol to you. Good protocol design is critical.

comment 6y ago · link · parent

> That just adds one failure mode to the list of failure modes people ignore due to the happy-path development that languages with "unchecked exceptions as default error handling" encourage.

There are only two meaningful failure modes - persistent and transient. So adding another transient failure (network partition) is not extra work to handle.

> Except not, because "just dump that on a database/kv-store" is an all-too-common workaround chosen as an easy way out.

Just to be clear, microservices are not just separate binaries on a network. If you're not following the actual patterns of microservice architecture... you're just complaining about something else.

comment 6y ago · link · parent

> However, your codebase has now to deal with network and multiple processes.

Here's the thing I see repeatedly called out as a negative, but it's a positive!

Processes and networks are amazing abstractions. They force you to not share memory on a single system, they encourage you to focus on how you communicate, they give you scale and failure isolation, for force you to handle the fact that a called subroutine might fail because it's across a network.

> f your codebase has failed to achieve modularity with tools such as functions and packages, it will not magically succeed by adding network layers and binary boundaries inside it

Functions allow shared state, they don't isolate errors. Processes over networks do. That's a massive difference.

If you read up on the fundamental papers regarding software reliability this is something that's brought up ad nauseum.

> (this might be the reason why the video game industry is still safe from this whole microservice trend).

Performance is more complex than this. For a video game system latency might be the dominating criteria. For a data processing service it might be throughput, or the ability to scale up and down. For many, microservices have the performance characteristics that they need, because many tasks are not latency sensitive, or the latency sensitive part can be handled separately.

> would argue that by having to anticipate the traffic for each microservice specifically, we will face more problem because one part of the app can't compensate for another one.

I would argue that if you're manually scaling things then you're doing it wrong. Your whole system should grow and shrink has needed.

comment 6y ago · link · parent

Fair enough. I use a ton of rounds, but yeah that's fair.

comment 6y ago · link · parent

> PBKDF2-SHA1

What's the problem?

comment 6y ago · link · parent

I see this as sort of saying "Imagine you could cure Ebola, is the world a better place? Well, for me, no, I'm much more likely to get hit by a car".

While I am unlikely to be attacked through a memory safety exploit, I also:

* Have been attacked through one in the past, when the internet was a different place

* Wonder how much time and money could be better spent if we just eliminated that entire class of problems - perhaps solving some of those poor design issues?

comment 6y ago · link · parent

Again, this is not absolute numbers. With the number 95% we can say that 95% of the time they do not need to bring a deadly weapon. It doesn't matter if that's still every day, it means 95% of the time it is not necessary.

comment 6y ago · link · parent

Relatively rare.

comment 6y ago · link · parent

Let's go with this. Every domestic violence case may turn violent - and, again just for the sake of argument, we'll assume that this requires the use of deadly force by the police, so we arm them with deadly weapons.

If those cases are extremely rare, and stats I've seen show they are, there is still no need for the weapon in the other cases. We can go ahead and disarm the other officers, and have a small portion maintain arms for potentially violent cases in your given scenario

Of course, I'd argue that you don't need deadly force even to deal with the majority of potentially violent crimes, but that's a separate matter.

comment 6y ago · link · parent

OK? That doesn't matter. If the vast majority of crimes are not violent, it's not really important what the absolute numbers are. It could be 1,000 or 10, the point is that the majority of responders don't need deadly weapons.

comment 6y ago · link · parent

How much of our police force deals with legitimate violent crime?

The vast majority of police do not need guns.

edit:

> hey deal with rape, suicide, murder, assault, domestic abuse, robbery, every week unless they're some small town cop in a gilded neighborhood.

Can you back this up? Statistics I've seen do not support your claim, and put violent crimes under 5% of police investigations.

comment 6y ago · link · parent

> Do they think that democrats are more left leaning and thus supportive of open source than republicans?

Is this satire? I'm blown away otherwise.

No, this is not what they think, obviously.

The call is for developers to recognize the potential for abuse of the software they write, to use their means and their platforms to speak out against oppression, and to generally not be huge pieces of shit under the guise of purported software neutrality.

This post is extremely low quality. It lacks meaningful content, is basically just a "SJWs are ruining open source!" rant, and is poorly edited. I think this has no place on HN.

comment 6y ago · link · parent

I think if you throw away the existing system, you can still call what we replace it with "police" but it would be unrecognizable.

We need something closer to social service workers, the vast majority of which do not require arms.

comment 6y ago · link · parent

They weren't attacked first.

comment 6y ago · link · parent

Two different police vans drove up to a barricade and there were virtually no people behind them. Where do you think they were going? Why do you think they drove into the barrier to begin with? Why could they not back up?

comment 6y ago · link · parent

On the topic of police refusing to do their job in order to punish backlash.

https://twitter.com/MplsWard3/status/1267891878801915904

> Politicians who cross the MPD find slowdowns in their wards. After the first time I cut money from the proposed police budget, I had an uptick in calls taking forever to get a response, and MPD officers telling business owners to call their councilman about why it took so long.

comment 6y ago · link · parent

> You decided you were better off without me, fine, save your own store.

For what it's worth, this is why people hate cops! No one said anything about all cops being worthless, and you're saying that victims of crimes deserve it for not praising police brutality.

comment 6y ago · link · parent

But they were already violent, just to the peaceful protesters. So why was there a massive police force at a peaceful protest, where they were already willing to brutally engage with the protesters, but not in soho where there were looters two days in a row?

Your argument can't possibly be "Because they didn't want to escalate" or "They didn't want people to think they're violent" when they did escalate and were violent elsewhere.

I am in full agreement that it was tactical - it allows them to punish a neighborhood and to shift the story.

comment 6y ago · link · parent

Agreed, I actually think it's both - it's punishing the public and shifting the story.

comment 6y ago · link · parent

The police seem to clearly be allowing looting on purpose. SoHo was looted two days in a row. Where were the NYPD? There are 10's of thousands of uniformed officers Maybe you can say the first day they somehow missed it, but two days in a row? Come on. I refuse to believe that they didn't see this coming - they brag about how they're "gathering intel" on terrorist groups, but they couldn't check twitter to see #soho trending?

They want the story to be about rioters so they're letting them riot. It's a way to shift the public opinion (same way some cops have been seen breaking car and store windows).

1
119120121
164