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 actually is. While the police have often attacked journalists I don't know that it has ever been so blatant, so well documented, and done so broadly across all journalists, even from the larger news networks that often have the clout and means to avoid such abuse.

comment 6y ago · link · parent

White supremacist infiltration of police organizations goes back a long time. Blaming the much more recent attention that people are paying to white supremacy for the movement itself is absurd. "You called me a white supremacist so now I am one" is nonsense.

The FBI warned of white supremacist infiltration of police forces over a decade ago.

comment 6y ago · link · parent

In at least some of the videos the journalists are not actually near any protesters, there's no way they just got caught up due proximity.

Multiple reporters have been shot at directly. The cops have shot into the cameras themselves to break them.

comment 6y ago · link · parent

Maybe something with a content security policy?

comment 6y ago · link · parent

It's definitely thousands of dollars to go eat lunch in SF, a year. Plus companies often serve breakfast/dinner. And, in the case of my last company (Dropbox), the food was absurdly good. I considered my Dropbox food to be like 50k in value to me.

comment 6y ago · link · parent

I thought they only guaranteed exactly once processing ? That could just be idempotency.

comment 6y ago · link · parent

Sure, but there's a lot more than just the savings on the office space. What about savings on employee sick leave? At my last company there was always an 'office plague' at least once a year, around winter. What about employees no longer commuting? What about being able to hire talent when they don't want to move to wherever you're located - how much will that save you on recruiting? There are so many other wins. And losses.

comment 6y ago · link · parent

> Isn’t this called “salary”? I don’t expect my employer to cook and feed me lunch

You might not, but many tech companies in SF do exactly that, and it is a legitimate part of your compensation.

comment 6y ago · link · parent

That's because it's using constexpr. The equivalent in Rust would be const fn. This is using Rust traits.

The goal isn't to be concise, I think the goal is literally to just do it in the trait system

comment 6y ago · link · parent

I've wanted to try building a toy database to learn more about how they work - any suggestions for good resources?

comment 6y ago · link · parent

I never have to patch my service's operating systems again, I'll pay for that.

comment 6y ago · link · parent

I build off of serverless. Not very locked in - I wrote my service to run locally without any AWS services at one point. The main 'lock in' has nothing to do with serverless - it's DynamoDB. DynamoDB is really good so I'm reluctant to port to other clouds without something that has a very similar model. If having a really good service is "lock-in", sure, we're locked in.

comment 6y ago · link · parent

Ah, fair enough I could see that. We do use Dynamo, S3, and SQS, but there are local versions of all of those.

comment 6y ago · link · parent

I build a FaaS based project and it runs locally using docker-compose. When running locally it just switches to a persistent mode. It's not nearly as large as yours I suspect, but I'm wondering what the problem you're running into is?

comment 6y ago · link · parent

No that is not common.

comment 6y ago · link · parent

I can't come up with work that requires being in an office, other than perhaps whiteboarding out ideas.

But my first few years as an engineer, I loved going into the office. We played ping pong, we drank, we socialized, played games. There were even free snacks! Pretty good ones. Maybe for a lot of engineers that all feels silly, but I'd never thought I'd have a job that cool.

You can call that all "bullshit perks" or whatever, but it made the start of my career so motivating and fun.

I work fulltime remote now. I'm the CEO of a company, and we're fully remote. It has huge advantages, but I wouldn't trade that first office experience for anything.

comment 6y ago · link · parent

What I'm trying to say is that the companies spend money on the problem of Python performance. I doubt much of it is upstreaming improvements to Python, though I'm sure is (at least indirectly, funding Guido and other major Python developers), but most is probably just improving their own internal libraries, or, more likely, finding ways to FFI.

comment 6y ago · link · parent

I'm not anti-Python, for what it's worth. I love Python, and part of that is because of the features that make it so slow.

comment 6y ago · link · parent

The post I linked talks about Dropbox moving to other languages. I didn't mean to imply that I knew Instagram was also moving away from it, sorry, I see how I misworded that.

comment 6y ago · link · parent

And they do spend that money, much more than a million I'm sure.

comment 6y ago · link · parent

> 100% of Python users find it to be fast enough for their use case.

This is absolutely false. Lots of people outgrow Python and use another language.

comment 6y ago · link · parent

Well, Google has their own Python type system and employed Guido for years. I'm sure they've spent millions on improving Python or their usage of Python.

I suspect Instragram has spent > 1M dollars of eng time on Python.

Agree, nowhere near v8/js.

comment 6y ago · link · parent

Rewrites have probably saved Dropbox 10's of millions of dollars. They just have to be done well. They've rewritten many critical components in the last few years (magic pocket is a big one, nucleus) to great success.

Where rewrites are bad are when someone comes to a codebase, goes "wow this sucks I Can do this better", and starts from scratch. This is worth calling out because it's quite common, but it's very easy to avoid.

I'm a fan of Python for what it's good for. I use it professionally, and built a product around it. I'd be happy to see Python perf wins, but I'm never going to expect it to compete with other languages.

comment 6y ago · link · parent

Great project, thanks for the link.

comment 6y ago · link · parent

To be clear, I'm not asking for the ability to intercept DNS requests, or encrypted traffic, at all. I'm fine (and encourage) encryption on the wire. I'm just as happy to get the logs on the local system, and ship them off.

comment 6y ago · link · parent

Extremely helpful for detecting malware, or performing post-compromise IR.

comment 6y ago · link · parent

https://blog.pyston.org/

You can look at the last release of Pyston for why companies are not funding this work. They're just moving to other languages.

Consider that Dropbox, Google, and Instragram likely spend much more than 1M on optimizing/ improving Python, just to have it still be a relatively slow language.

At some point it becomes way cheaper to just move to other languages that don't require that constant level of effort. Think about how much time and money is spent on things like:

* Adding types to Python

* Improving performance

when you could just move performance critical code to Go/ Rust as Dropbox has done, for a fraction of the cost, with far less maintenance burden.

"Make Python faster" is just a losing game imo. It is fundamentally never going to be as fast as other languages, it's far too dynamic (and that's a huge appeal of the language). Just look at the optimizations done here - moving `str` to local scope to avoid a global lookup? And can you even avoid that? Not without changing semantics - what if I want to change `str` globally?

Still, I was surprised by some of the sorta nutty wins that were achieved here. There's clearly some perf left on the table, and I'm not an expert on interpreters, it just seems really hard to build a semantically equivalent Python ("I can change global functions from a background thread") that can automatically optimize these things.

comment 6y ago · link · parent

DNS logs are important in an enterprise. But I'm sure many would want to also use DoH.

Does Chrome provide any audit logging for DNS while in DoH mode?

1
120121122
164