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

My personal experience is that most engineers I encounter can onboard to rust very quickly, as I did. But I read online about people who are struggling for many months to do basic work.

comment 4y ago · link · parent

Box/RefCell are gonna be way harder than just ".clone()" or not sharing mutable references all over the place.

comment 4y ago · link · parent

I don't get what's so hard about rust. You can be productive pretty quickly. I learned it in 2014 as a junior dev/ intern, it took maybe a few weeks to be productive, maybe a few months to really "get" the language/ internalize the borrow checker.

I haven't found that the on-ramp for productivity is higher than any other language tbh, I'd say that my experience with Python was similar, for example.

Can someone who struggled with the language explain what the hard part was? My first language was C++ so I think that's probably biasing, everything looks sane after that.

comment 4y ago · link · parent

Bag taxes are already passed on to customers though.

comment 4y ago · link · parent

Companies will just pass the cost to the consumer, blame regulation, and keep using plastic because it's easier and there's nothing we can do to stop them.

comment 4y ago · link · parent

Since when is Sandboxie open source?

edit: 2020. Awesome. I remember having to rely on reverse engineering to understand wtf it was doing. Now I can check!

When I was younger I wanted to start a company around automatic sandboxing very similar to Sandboxie, but dealing with Windows Kernel Drivers was miserable. Having something open source to derive inspiration and design from would have been so helpful.

comment 4y ago · link · parent

https://www.youtube.com/watch?v=dHfQYGGUS4U

Slow Mo guys using shape charges.

comment 4y ago · link · parent

> There’s a bit of misconception here. IQ tests don’t require higher education, nor book reading.

From the article:

> [Article] These environmental factors could include changes in the education system and media environment, nutrition, reading less and being online more, Rogeberg said.

> [Article] The earlier rise in IQ scores follows the “Flynn effect,” a term for the long-term increase in intelligence levels that occurred during the 20th century, arguably the result of better access to education, according to Stuart Ritchie, a postdoctoral fellow in cognitive ageing at the University of Edinburgh whose research explores IQ scores and intelligence and who was not involved in the new study.

> [Article] Access to education is currently the most conclusive factor explaining disparities in intelligence, according to Ritchie. In a separate study that has not been released, he and his colleagues looked at existing research in an effort to demonstrate that staying in school longer directly equates to higher IQ scores.

> While I realize you’re talking about social investment here, the idea that TV and media are better investments of your time than earning a degree seems problematic at best. TV & media will, generally speaking, not help you get a better career, right?

I'm saying that higher education has never been a worse investment. Not that it's a bad investment. It's just higher risk and higher cost than ever.

> The Fed has published very recent stats in the US that people with a 4 year degree on average earn 2x the income of people without a degree.

That's really tiny considering that it costs 4 years of income + potentially a huge amount of debt with serious compounding interest.

> That seems like a pretty good investment, doesn’t it?

It seems like it can be a fine investment for some people. If you're rich and won't take on debt it's a great investment.

comment 4y ago · link · parent

Sure, I'm willing to buy that it's related, but it's going to definitely be tertiary effects and not that the population is poisoned.

comment 4y ago · link · parent

> Access to education is currently the most conclusive factor explaining disparities in intelligence, according to Ritchie. In a separate study that has not been released, he and his colleagues looked at existing research in an effort to demonstrate that staying in school longer directly equates to higher IQ scores.

comment 4y ago · link · parent

Lead poisoning disproportionately affected those born between 1950 to 1980 and have significantly dropped in the last 20-30 years. So I don't think so.

comment 4y ago · link · parent

I see this as just more hyper focusing in a way. Now I have even less time for exploratory pursuits, my "role" has expanded and thus takes more of my focus. So I have to think about more things, but it's all confined to the expectations placed on me by my job.

comment 4y ago · link · parent

> Access to education is currently the most conclusive factor explaining disparities in intelligence, according to Ritchie. In a separate study that has not been released, he and his colleagues looked at existing research in an effort to demonstrate that staying in school longer directly equates to higher IQ scores.

> But more research is needed to better understand other environmental factors thought to be linked to intelligence. Robin Morris, a professor of psychology at Kings College in London who was not involved in Ritchie’s research, suggests that traditional measures of intelligence, such as the IQ test, might be outmoded in today’s fast-paced world of constant technological change.

> “In my view, we need to recognize that as time changes and people are exposed to different intellectual experiences, such as changes in the use of technology, for example social media, the way intelligence is expressed also changes. Educational methods need to adapt to such changes,” Morris said.

comment 4y ago · link · parent

The tracked increase year over year of IQ over the course of a few decades is largely attributed to wider access to education, I believe.

comment 4y ago · link · parent

Higher education has never been a worse investment. There's so little time or incentive to read, and it's hard to sit down and say "I'm going to read a book". It's hard to read a book and also watch tv and also talk to friends etc etc, but that's how we spend all day - constantly interacting with media or socially.

I've had increasing trouble reading books for years. It stresses me out, I can't just sit for hours reading, I have things to do. It takes real... something - focus, mindfullness - to actually sit down and think in an explorative way that isn't strictly driven by work.

This isn't that surprising. IQ tests a specific type of intelligence, and we probably don't leverage that sort of intelligence day to day. Instead, we create hyperfocused individuals and build structure and process around them so that they can collaborate. Being generally intelligent and having general problem solving skills is less and less important, or at least we treat it that way.

comment 4y ago · link · parent

> “It’s not that dumb people are having more kids than smart people, to put it crudely. It’s something to do with the environment, because we’re seeing the same differences within families,” he said.

> The study not only showed IQ variance between children the same parents, but because the authors had the IQ scores of various parents, it demonstrated that parents with higher IQs tended to have more kids, ruling out the dysgenic fertility theory as a driver of falling IQ scores and highlighting the role of environmental factors instead.

comment 4y ago · link · parent

Namespaces let you create isolated views of the file system, isolated views of processes (ex: if you are in a new pid namespace and run 'ps' you only see yourself), users, network interfaces, etc.

I'm not sure what Firefox does, I believe they use the Chromium sandbox, and I'm way out of date on that. It used to do some filesystem setup like hardened chroots, but I would assume that's been supplanted by fs namespacing.

comment 4y ago · link · parent

Practically speaking there's probably not a ton of difference. ITW exploits are pretty uncommon for both, and they're typically somewhat targeted. I haven't paid attention in years for this reason, but I'd guess that Chrome is ahead - mitigation techniques like site isolation are quickly improving in it and were adopted earlier as well.

In general my recollection is that Chrome splits up more of its components. It sounds like, based on this post, the gpu process is now separated and there's sandboxing efforts going into that, but I'm pretty sure Chrome has had that for years now.

comment 4y ago · link · parent

Really? That's surprising, I thought they already dropped the setuid requirement when they implemented the bpf sandbox.

comment 4y ago · link · parent

Good point, why even bother pushing out patches?

comment 4y ago · link · parent

> Microservices gets owned by different teams, teams get cemented, politics get in the way of refactoring. Game over.

I don't understand how microservices make this worse in any way. Modules get owned by different teams all the time.

> You may have experiences that that microservices are as easy to refactor as monoliths; in my experience it is orders of magnitude harder...

Yes, I have said before that I believe merging is fundamentally simpler than splitting. If we're just talking about merging a module vs a service, I don't believe either is harder than the other - I mean... nothing about microservices prevents you from using modules, and indeed I would highly recommend it.

> I think there is a bit of a "No true scotsman" fallacy at play here. You see something you do not like then it is "not microservices done properly".

For sure, and that's a failing of microservices. People think microservices means "SOA", or "write a lot of services". If you want to criticize SOA or whatever, sure, the argument of "don't do that" goes away.

> How about state all the things you don't like about monoliths , then I say "that is not monoliths done properly", "don't do that" for each one?

I probably could state a bunch of things that are pretty fundamental, but I don't think it's important - I don't know that I've actually said anywhere that microservices are better than monoliths, what I've instead said are the benefits of microservices that I see, which others have taken to mean that I somehow think monoliths or modules are bad.

> You may say the architecture is then "better"

I honestly don't think I've said that anywhere, or even made a judgment anywhere.

I think I can summarize, again, what I've said.

1. Network boundaries provide a physical layer that enforces isolation of state and the use of message passing

2. Isolation of state makes scaling a system easier

3. Isolation of capabilities makes securing a system easier

4. SOA inherently leverages the network boundary

5. Microservice Architecture is similar to SOA but with a bunch of patterns, guidance, and concepts that you leverage in your design

What I've received in response is a hodgepodge of:

1. "Modules can isolate state" - only true in some languages, and even then there's no physical barrier enforcing it, you're relying on developers to maintain that isolation.

2. "But what if you do anti-patterns that microservices tell you not to" - ok, that's why microservice architecture has books and documentation about what not to do. If you do those things, I'm not going to blame you, it's a failing of all methodologies when users have a hard time understanding them.

But so far the anti-patterns mentioned aren't really compelling or specific to microservices. You wrote code to satisfy a domain, the domain changed, now you need to change that code so that it satisfies the new domain. That happens all the time, merging services isn't any harder than merging modules.

3. General misunderstandings about state, security, etc.

> What I was getting at is that when you go distributed,

I'm not really convinced that "distributed" is the right word here. People talk about distributed systems being complex, and I think they're confused - what's complex is consensus, but splitting one service from another service shouldn't impact consensus, and the fact that they're now located on two different assets does not necessarily make things more complex.

Those services may be more complex, if your application was quite trivial - a totally stateless system with no external connections, for example. I see no reason to rewrite 'grep' as a microservice, and I would never recommend that.

Those services may now be more error-prone because you have things like dns, tcp, etc involved. If you don't want to make that tradeoff, that's OK, you could be right in that case. Again, no need to make all software be microservices.

(Going to respond to your other message here)

> PS I think microservices excel in making people FEEL productive (doing work that is not directly benefiting the company).

Maybe, I don't really know. It isn't my experience, but that's just me. Most developers seem to be pretty bad at their jobs so I imagine that all sorts of issues can be experienced. Certainly the idea of rewriting a monolith as a microservice seems like a red flag unless there were very specific needs.

comment 4y ago · link · parent

There can be so-called 'acceleration' clauses where certain events trigger vests.

comment 4y ago · link · parent

I'm not sure what you're talking about. What automatic handling of network exceptions? What safe failures? BEAM has lots of great features, no question, but they have very little to do with the implementation of actors - BEAM primarily provides names and linking as useful primitives.

comment 4y ago · link · parent

> Module boundaries are refactorable.

Why are microservices not refactorable? This is the same exact issue in both cases. You designed something for a use case, the use case changed, now your old design isn't working. So maybe you merge those two services, or merge those two modules, or whatever else you want to do.

> reimplementing transaction logic that belong in your DB in your homegrown network protocols

Don't do that? I mean, again, this issue of "I wrote something the wrong way and now I have to fix that" is not any better or worse in microservices.

> My retort is that the kind of things one sometimes come up with as workarounds to make things still work for microservices

That doesn't sound like microservices. In fact, even the idea of having a database shared across services doesn't sound like microservices - it's an explicit antipattern. So it sounds like a bad SOA design. The point of microservices is to take SOA and add patterns and guidance to avoid the issues you're talking about.

comment 4y ago · link · parent

No part of microservices is needed for actors and I didn't imply that at all. I said that microservices can be easily modeled as actors.

comment 4y ago · link · parent

Or just don't write Python. There are a million languages without a GIL.

comment 4y ago · link · parent

OK imagine that you have two different modules that manage transactions to a database. Now suddenly you need there to be consistent mutations between those functions.

Do you see my point? Microservices do nothing here - you have run into antipatterns that are universal, and that microservice architecture addresses explicitly as an antipattern.

comment 4y ago · link · parent

You seem confused. If you want a transaction use a transaction. If you don't want a transaction don't use a transaction. If you need a transaction across services, that sounds like you've run across a microservice antipattern. Monolith/Microservice changes nothing here - you can have the same issue in a monolith where two different functions are managing transactions and now you want a single transaction.

Literally irrelevant.

comment 4y ago · link · parent

> because of your security-based product

Nothing in the article has to do with the product or the fact that it's security related, other than to provide a motivating use case.

> The only potential benefit there was for security

And performance.

> even that was just relying on the ephemeral nature of lambdas

I think you've failed to understand the article, which may be my fault, I haven't read it in a long time. The key is isolation. Ephemerality gives you a sort of temporal isolation. Splitting your messaging from your data storage gives you a capability based isolation. And so on.

It also means we can scale to the limits of S3/SQS - each service is itself stateless, the majority of state is managed in SQS, which could be quite loose about its consistency since every service is idempotent - arguably a form of temporal isolation.

What I've described in this article is effectively the actor model. I feel like I don't have to really justify the benefits of the actor model with regards to scale?

comment 4y ago · link · parent

Yeah, fair
1
444546
164