Better HN
topnewbestaskshowjobs
Log inSign up

thinkharderdev

1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions

https://www.thinkharder.dev

[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]

Submissions

comment 3y ago · link · parent

Pretty nice. Gave it a whirl and a few thoughts:

1. Very performant. Opened a large(ish) rust project and the auto-completion and goto symbol were both very snappy. Scrolling is very smooth and haven't noticed any hiccups or pauses so far. 2. Doesn't seem like there is a way to disable font ligatures? I find them really annoying and wish I could disable. 3. Stuck with the built-in themes, none of which I particularly like.

Overall seems very promising, will keep an eye on it.

comment 3y ago · link · parent

By many measures (GDP contraction, unemployment) it was the worst recession since the Great Depression. But it was also a very weird recession since massive stimulus, legal moratoriums on evictions and general pandemic restrictions meant that median income actually went up.

comment 3y ago · link · parent

Since you are 35 I guess you just missed the financial crisis in 2007. I can assure you that was WAY more intense than what we're seeing now. In fact what we're seeing now isn't an apocalypse of any sort. Basically a bunch of huge tech companies staffed up during the pandemic years and now a combination of high interest rates and a slowing (relative to expectations) economy is battering their stock price. So the activist investors push them to reign in costs (eg reduce headcount). It's what happens in mature industries. Meanwhile, headlines aside about big name tech companies laying people off, the general market for engineering talent is quite strong. Not the level of insanity we were seeing a year or two ago but stronger than I've ever seen (excepting 2021-22) in my entire career. The days of a senior engineer pulling in mid-to-high-6-figures in total comp from a FAANG (or FAANG adjacent) company are probably gone but that was never sustainable anyway.

comment 3y ago · link · parent

> But not seeing my family is not worth any amount of money to me, since there are other jobs for a lot less that let me see my family and live plenty comfortably.

That is fine and, tbh, a very healthy attitude. But it is not abusive in any meaningful sense of the word because it is not a worthwhile tradeoff for you personally.

comment 3y ago · link · parent

> At the end of the day, there is no one true way to do threat modelling. Everyone has a slightly different approach. I'd say do what works for you, but be open to other approaches.

Absolutely!

comment 3y ago · link · parent

I'm not sure we actually would disagree on anything concrete but for the sake of argument:

> 2. Who is interested in those assets.

This is the wrong question to ask. The right question is how important is it to US to keep this asset confidential/available/unmolested. That is a question that is actually tractable and understandable. If you have a service where it is very important that it is always available, then you need to have mitigations in place to prevent DDoS attacks. Whether or not you have some hypothesis as to who exactly might want to attack you is beside the point. If it's important to YOU then you should just assume that there is some threat actor out there who will attack you. On the other hand, if it doesn't matter at all whether said service is consistently available, then it's not worth the time/effort/expense to put in place DDoS mitigations regardless of whether there is any threat actor out there.

comment 3y ago · link · parent

"Security" is not an atomic property of software. And while there are a lot of difficult tradeoffs between security and usability there are also a lot of low hanging fruit where entire classes of threat can be mitigated with zero tradeoff for user experience (and sometimes zero tradeoff for developer productivity if the system is built from the start with security in mind). To take a trivial example, hashing (with an appropriately secure algorithm) and salting passwords stored in your database. Or using prepared statements instead of manually building SQL queries. These are things that can effectively eliminate entire classes of vulnerability and are basically free to do.

comment 3y ago · link · parent

> by which I mean realistic groups with goals and capabilities

TBH I think you are missing the point of threat modeling. It's not an exercise in determining the exact adversary you will face and what capabilities they will have. That is impossible to know with any precision. It's more an exercise in thinking through 1. What your assets are. 2. What attack vectors exist for compromising those assets and 3. What mitigations can be put in place for those attack vectors.

In doing that you may reasonably conclude that for a given attack vector, an adversary sufficiently advanced to pull it off would not be interested in you and that is fine. But you should still start from what you know concretely, which is what your system architecture and assets are.

comment 3y ago · link · parent

It's definitely inefficient w/r/t performance (reading from Object Storage will always be several times slower than reading from disk/SSD) but the point is usually to minimize cost.

comment 3y ago · link · parent

You can see some of the benchmarks in DataFusion (part of the Arrow project and built with Arrow as the underlying in-memory format) https://github.com/apache/arrow-datafusion/blob/master/bench...

Disclaimer: I'm a committer on the Arrow project and contributor to DataFusion.

comment 3y ago · link · parent

Yeah, I spent years as a competitive endurance athlete and always found the best way to heal was to stress the injury (lightly as you say) as soon as you can. I suspect part of the issue is that elite-level athletes tend to be quite "type A" and have a high pain tolerance. So the risk with them is that that push too hard too soon and re-injure themselves. But "normal" people tend to make the opposite mistake. They don't stress the injured tissue at all until all the pain is gone so it doesn't get great blood flow and builds up scar tissue.

comment 3y ago · link · parent

1. The inflation situation is not "on fire." It's bad for sure but let's not catastrophize here.

2. If a building is on fire, the goal is not to make the building a meat locker for a few months/years to "compensate" for the fire. The goal is to put the fire out and return to a normal temperature.

comment 3y ago · link · parent

We've been below the target inflation rate for 15 years. We haven't had CPI consistently above 2% in the US since the 1980s. I don't see how this can be a "correction"

comment 3y ago · link · parent

If people expect deflation then they will defer buying things because their money will buy more in the future than it will right now. This should reduce aggregate demand and also feedback on itself as falling demand should put further downward pressure on prices, causing more deflation. It sounds nice if you are only a buyer but almost everyone in the economy is both a buyer and a seller.

Beyond that it's an issue for investors. Interest rates have a nominal lower bound at 0% (because you can always just hold money instead of lending it) so the minimum real interest rate becomes effectively the rate of deflation. So imagine that deflation is 4% and I have a use of capital with a real rate of return of 3%. It won't get funded because investors can achieve a higher real return (4%) by just sitting on capital instead of investing it.

comment 4y ago · link · parent

> I have only heard “show me the data” when someone wants someone else to support a claim.

I've heard it a lot in situations where somebody is demanding a level of rigor that they themselves do not live up to. This is usually soon after they have framed the conversation around a solution that they want to pursue that also lacks any supporting data. That is to say, being data driven is on net good but it can also just be a thinly veiled appeal to status quo bias (which is itself not a terrible heuristic) or "highest-paid-person-in-the-room" bias.

comment 4y ago · link · parent

I don't know how it works exactly but there is a meaningful difference between being fired "for cause" vs just being fired in many jurisdictions. For instance, if you're fired for cause then you may not be eligible to collect unemployment insurance. But as I understand it (and IANAL) this would apply only to things like gross misconduct (eg stealing from the company, assaulting colleagues, showing up to work drunk, etc) and poor performance wouldn't really count as being fired for cause.

In the US though employment is "at will" meaning you can be fired for any reason or no reason at all. There are various exceptions to this but the burden of proof is generally on the employee to show that they were wrongfully terminated (eg if they were fired because of their race, sex, sexual orientation, etc).

comment 4y ago · link · parent

I don't know if I accept the premise. I've been hearing that "blockchain is a solution in search of a problem" critique as long as I've heard about blockchains. I think that during a hype cycle, the hype is what gets signal boosted so you see a lot more "here's how blockchains are going to solve X" content than you do content repeating for the millionth time that the blockchain doesn't actually solve the problem any better than a database would.

comment 4y ago · link · parent

Ah, yeah you are right.

comment 4y ago · link · parent

Do they typically do that? My understanding (and I am very much NAL) is that the standard practice is to only officially discuss ongoing investigations if they are ready to file charges which honestly seems like a good practice. And honestly I would be pretty surprised if there aren't any criminal charges coming out of this whole fiasco.

comment 4y ago · link · parent

Not really. Citizens United was about limits on "soft money". Basically it removed any restrictions on spending by PACs on behalf of a candidate as long as the spending isn't explicitly coordinated with the candidate. Personal vs corporate spending is not really relevant.

comment 4y ago · link · parent

Several investigations have been opened: https://www.reuters.com/technology/manhattan-us-attorneys-of....

It's likely a very complicated case, so I would imagine it will take some time. It took what, 2-3 years to bring the case against Elizabeth Holmes over Theranos?

comment 4y ago · link · parent

> If you mine your personal connections you may find people you know or can get to know who are active in charitable activities abroad. I have several personal friends who run orphanages in third world countries.

This is what I mean. Orphans in third world countries are not your neighbors and the exact sorts of communities many EA charities are trying to help. It's just they want to ask the question "of all the orphanages in developing countries, which ones do the best job of improving the lives of the children under their care?".

> I think perhaps that if you are trying to find a way to fund good across the world you delegate it to a large organization that makes it very difficult to know if there is any actual impact or you can look around you and find a more personal connection that can give you more confidence in the impact you provide.

The whole point of EA is to create the accountability and visibility into the impact of these charities. The whole premise is that basically:

1. People in your local community may be struggling but there are almost certainly people much worse off in the developing world. Those people also suffer from problems that are so bad that you can make a huge difference in their lives with relatively (to us affluent westerners) small amount of money.

2. We should try and evaluate rigorously which charities are most effective at their stated goals and direct money there. Like measuring anything, it's difficult and uncertain but at least at the current margin we can still extract a lot of useful information this way.

And then there is a broader EA tenet which is that, if you are an affluent westerner, then you can almost certainly afford to give more money away to charitable causes. The reduction in your personal living standards will be minimal and you can make a massive difference for a lot of the world's most desperate people. And frankly a lot of the rest follows from that. Like if everyone in your community started giving 10% of their earnings to charity, is it really the case that the local food pantry would be able to use all of that money productively? Would any local charity be able to. At a certain level of giving you simply run out of opportunities to deploy the money locally and have to cast a wider net.

comment 4y ago · link · parent

> This has been studied again and again. Our motivation to help is because we know the neighbour, because someone is in trouble, because I would like someone to do it for me in the same situation... and other things like that.

Not sure what studies you are referring to but this strikes me as obviously untrue. The vast majority of charitable giving is to help people who aren't your neighbors.

comment 4y ago · link · parent

I really don't understand what argument you are making here. Almost all charity is impersonal. The EA ethos is just that you should donate to charities that actually make measurable progress towards the goals that they espouse. The fundamental impulse to give to charity so that you can feel like a good, moral person is entirely unchanged. It seems like if anything it would be augmented. Now I can give with confidence that I am making a real, tangible difference rather than wondering whether the money is being wasted on unhelpful nonsense.

> Then one starts questioning, what is the real motivation behind the deed?

Does it really matter? Is someone donates $1M dollars to a charity and that money used effectively to save 100 lives in sub-saharan Africa (made up numbers....). does it matter whether the giver had some cynical objective? Do they people whose lives were saved care one way or another? Maybe it's just me but it strikes me as such a weird ethical view that we should withhold help from the most desperate people in the world on the off chance that the giver doesn't have "pure" motives.

comment 4y ago · link · parent

I read that article and I wouldn't characterize it as "boosting" crypto at all.

comment 4y ago · link · parent

From the article my bet would be that they basically vaporized all the money bailing out bad trades at Alameda.

comment 4y ago · link · parent

Holy crap this is so much worse than I could have imagined....

comment 4y ago · link · parent

Depends on the relevant margin. If you get adequate sleep then sleeping more won't help (and may actually hurt) but exercise can actually raise the baseline. To use a very rough analogy, sleep is like the fan in your computer. If it's working optimally it ensures you can utilize the CPU close to its physical limit. But exercise is like upgrading the CPU.

comment 4y ago · link · parent

This is technically already a rule in most places in the US. It's not a "3 drink limit" but just that you are not allowed to serve alcohol to someone who is intoxicated and most people would be legally intoxicated after three drinks in a short(ish) amount of time. It's just very rarely enforced. I suspect the reason is mostly that probably 99% of bars would go out of business if they could only sell 3 drinks per customer per night. Alcohol, like many things that are fine(ish) in moderation but really bad in excess, as an industry is completely dependent on problem drinkers. They are a small minority of alcohol consumers but make up a hugely disproportionate share of total spending on alcohol.

comment 4y ago · link · parent

In the US we took the complete opposite approach (at least where I live) and massively deregulated alcohol sales during the pandemic. For example, it became legal for restaurants to deliver alcoholic drinks (including spirits) to people's homes.
1
789
24