HNHacker News
TopNewBestAskShowJobs

rattray

6,554 karma · joined February 25, 2012

member of technical staff, anthropic

views my own (if that), etc.

previous:

- founder, stainless.com

- engineer, stripe

https://linkedin.com/in/alexrattray

submissionscomments
rattray··on Denmark bans Gmail and Co from schools due to privacy concerns
How concretely-grounded are these privacy concerns?

I know we all love to hate Google, but my impression is they take the privacy of email extremely seriously at this point (eg, no longer using it for ads).

Sure, I don't trust Google that much and I know others trust their brand even less, but is there hard evidence of misuse of Gmail user data?

rattray··on The effects of sleep debt
Usually yes, for some reason the past few weeks I've felt fine.

Maybe just because I've been so busy/energized, maybe because I've been doing yoga every morning and exercising during the days, maybe something else.

rattray··on The effects of sleep debt
> Do you want to be min-maxing every facet of your life?

I've been sleeping less than 6-7h consistently for the past few weeks, and if that'll cause permanent damage to my brain/memory, I absolutely want to prioritize a fix more urgently.

I generally proscribe to satisficing, and wouldn't want to freak out if I missed 30-60min here or there, especially if I still pretty fine, but I value my faculties.

rattray··on The effects of sleep debt
Ooc, do we study sleep deprivation in pigs or monkeys?
rattray··on Bun: Fast JavaScript runtime, transpiler, and NPM client written in Zig
links? I'm curious to learn more
rattray··on Bun: Fast JavaScript runtime, transpiler, and NPM client written in Zig
Take a look at Jarred's twitter, and you'll see he spends a lot of time profiling things:

https://news.ycombinator.com/item?id=31993429

Of course, I can't say for sure that he looked at the fastest possible way to parse json here, but my intuition would be that if he didn't, it's because he had an educated guess that it'd still be slower.

rattray··on Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode
Ah, good point! That definitely does sound tricky. Might be cool to see some syntax where you encode your estimates, and it sends an async warning of some kind when the estimates are wildly off?

    resource "aws_lambda" "foo" {
      estimated_invocations = {p5: "1 per hour", p95: "100 per minute"}
      # or
      estimated_invocations = {avg: "5 per minute"}
    }
Then you might get a range estimate of some kind, and maybe even an automated pull request with the real numbers if you're way off?
rattray··on Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode
> I don't really see how you'd be able to improve this situation, either

I have to assume they could model some projections based on your current usage, and give you that? Predicting the future is hard, of course, but if their algorithm is simple & basic enough to understand, it'd surely be quite helpful, no?

rattray··on SQLite or PostgreSQL? It's Complicated
Thank you for sharing! Anecdotes like this are very useful.

Can you share more about the context? How big/gnarly are the tables? How frequently/concurrently are they written to? Based on your experience here, when wouldn't you want to use this approach?

rattray··on Things I do every time I start a Django project
You can use the same templates on the backend and frontend. That may not matter to you, at least not now, but it's a great reason in many contexts.

Personally I find JSX to be a terrific templating system, much better than anything like Django's, but if you're familiar with both and prefer Django's, this benefit does not apply to you!

rattray··on How We built a $1M ARR open source SaaS
I haven't read much of the article, but they claim early on that they have no marketing spend. Do they say later in the article what their sales, saas, and server costs are like?
rattray··on GitHub Copilot is generally available
According to StackOverflow, VS Code users can use alt+\ to trigger the suggestion and disable auto complete with this:

    "editor.inlineSuggest.enabled": false
https://stackoverflow.com/a/71224912/1048433
rattray··on GitHub Copilot is generally available
How do you do that?
rattray··on The brain has a ‘low-power mode’ that blunts our senses
This is incredible.

(for lazy americans, this person is 5'8" / 143lb)

rattray··on Deepkit – High-Performance TypeScript Framework
Thanks – the question I had was answered in the "Bytecode" part of that section: https://deepkit-book.herokuapp.com/deepkit-book-english.html...

My summary is that the DeepKit compiler is a JS transpiler (used as a ts-node or webpack plugin, or conveniently/invasively as a replacement of node_modules/typescript) that produces code like this:

    //TypeScript
    export type TypeA = string[];

    //generated JavaScript
    export const __ΩtypeA = ['&F'];

    //TypeScript
    function log(message: string): void {}

    //generated JavaScript
    function log(message) {}
    log.__type = ['message', 'log', 'P&2!$/"'];
Where '&F' and 'P&2!$/"' are the compact bytecode translations of the types ("&" means string, "F" means array) and '__Ω' is a prefix used to avoid naming conflicts.

Personally, I'd love to see a live example of code in & compiled code out on the homepage. I'm sure it's on your roadmap :)

rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
I've generally heard "rewarding" in this context used to mean "satisfying and/or meaningful" – e.g, a teacher who loves their job and is able to see their students learn and grow happily would be said to have a rewarding job.

For OP, it sounds like an intrinsically rewarding job would be one that involves autonomy, decision-making, a sense of impact - which it sounds like they now have.

rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
Wouldn't "a rewarding career" qualify as long-term, intrinsic wellbeing? Cynics may believe no such thing exists, but I don't think it's a universal view.

Of course, there's always risk that the job changes and becomes worse. In a Series D company, we know that could happen at any time.

OP probably knows this too :)

rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
You seem to know something I don't. What is the evidence of a misguided belief? OP was skeptical this change would make a difference, but shares that it did. I did not see any forward-looking statements implying the new job "will get rid of all his woes", only what they are experiencing now. Elsewhere on the thread, OP shared that they are using this opportunity to work more intentionally on their relationship with their wife, which doesn't sound like the kind of thing someone who thinks all their problems have been magically fixed would do.

> OP should definitely seek professional guidance

You speak with the certainty of a professional (more, in fact, since a professional would know how little they know about the situation). Are you one? Do you have any reason to believe OP _hasn't_ sought professional guidance?

If you have something to share about _why_ talking with a professional would be worthwhile, or how to find the right one, or what kind of professional to look for, or something else that OP would plausibly think to themselves, "wow thanks, this is really useful" – that would be kind to share. Personal/secondhand anecdotes often work (as distasteful as some find it), as do peer-reviewed evidence etc.

rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
Very happy to hear that :)
rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
Uh, why? They already work there.

If things tank in a year or two, OP will just be the target of a recruiter feeding frenzy, and they'll come out more qualified than they went in.

Quitting immediately would look bad in comparison, and staying but exuding pessimism and paranoia would not be adaptive.

rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
Your first paragraph does not come across as considerate.

Your second sounds like good advice to me too, if a little presumptuous. How well do you know OP?

rattray··on Thank HN: Five months ago, I was feeling like a loser, now I am opposite
Can't believe the negativity I see on some of the top comments right now.

Congrats and thanks for sharing, you rock :)

It's really nice to get updates from folks who posted an Ask HN. Especially with a positive outcome.

It's really not uncommon for humans to find energizing work energizing, and for that to affect their overall quality of life. Plenty of people are comfortable checking boxes and going home early, sure, but that can be a slow death to a lot of folks (even some who might not realize it).

rattray··on Deepkit – High-Performance TypeScript Framework
> Next, let's go to the frontend … const user = cast<User>(userJson);

Wait, how can Deepkit's `cast` work on the frontend? Do you compile to WASM?

Quickly skimming the current Deepkit homepage and intro blog post didn't seem to hint at this.

rattray··on Important PostgreSQL 14 update to avoid silent corruption of indexes
Sure.

But notice how we're now comparing Postgres to MSSQL? Generally I think of it as head-and-shoulders better than it. I still do, but by a little less. That's okay.

Did they act responsibly, fix it quickly, and communicate effectively? Yes, tremendously so – which makes me feel overall better about using Postgres generally. But, I'll feel ever so slightly more hesitant about adopting a major version shortly after it comes out next time. Again, that's okay.

rattray··on Important PostgreSQL 14 update to avoid silent corruption of indexes
To be fair, I think most users of Postgres hold it to a higher standard than the software they write themselves, and reasonably so.

Postgres has developed a sterling reputation for reliability, and this does tarnish it somewhat. (Not by much in my personal view, but not zero either).

rattray··on Sunsetting Atom
Watching your "Hide all the crap" gif made me realize you could do this:

> View: Toggle Activity Bar Visibility

Much nicer, thank you!

rattray··on Sunsetting Atom
> I would still like an alternative because I don't think Microsoft should have the whole market.

Asking genuinely, why not Sublime Text? (I haven't tried it or Atom in several years, but used both back in the day).

rattray··on Sunsetting Atom
Electron could probably be described as "a big chunk" of Atom's codebase. The rest of VS Code has a lot of similar functionality to Atom, so calling it "a rewrite" doesn't feel that far off (except insofar as it was redesigned as well, but that's sort of semantics)
rattray··on Sunsetting Atom
I'm not sure if this feedback is useful, but I have to say that a collaborative text editor doesn't feel like that big of a sell.

Pairing in VS Code over Zoom has gotten a lot better over the last year or two, to the point that I choose it for simplicity over more purpose-specific tools like VS Code Live Share (which is a bit slow/glitchy but fine, and overall "neat") or Tuple (which is great).

Would I pay money for "VSCode, but faster"? Absolutely. I'm waiting multiple seconds for keystrokes to apply sometimes and don't know why. But the extensions are what make it VS Code – if I just wanted "a faster text editor" I'd uninstall all my extensions and just keep using VS Code (it'd blaze), or switch to Sublime.

I'm excited to see more people working in this space, so I certainly wish you luck!

rattray··on Sunsetting Atom
Funny, this doesn't sound like a spiritual successor to Atom at all. What made people excited about Atom (compared to Sublime Text, which people switched from and was ~always faster) was the extensibility.

Sounds like this won't have that. It's only a successor in the sense that it's built by the same people and tackles some of its challenges.

← PreviousPage 11 of 34Next →