sstangl

Joined 8 years ago

Karma
669
Submissions
33
Member since
Dec 6
Sean Stangl - [email protected]

Principal Engineer at EraDB (2020+).

Senior Compiler Engineer, Mozilla (2010-2020).

Based in Boulder, Colorado (until at least 2025).

View on Hacker News

Recent submissions

Comment · 4 years ago
I've maintained a well-used online Esperanto dictionary for several years now: https://www.tujavortaro.net.

The whole dictionary is loaded client-side and a lookup is performed on each keypress. Because of the search speed, it's surprisingly fun to use this dictionary to explore the language. I'd like to see such dictionaries built for other languages too.

Comment · 4 years ago
> If Slack offered a way to show all messages whether or not they're in a thread, as they come in, I'd be down.

This is how Zulip works. It's extremely effective.

Comment · 4 years ago
Similar logic is used to toggle on/off GC write barriers in JS jitcode.
Comment · 5 years ago
In my experience code quality falls out from making mental simulations easier to produce. Abstraction boundaries should be drawn where mental processing starts feeling burdensome.

When running abstract mental simulations, do you assume that I/O operations succeed or fail for knowable reasons? It seems likely. If the code were expressed to match your mental simulation, for example by not performing I/O within the function, but by merely receiving I/O messages from a foreign actor, it seems like you're not far away from offloading the full mental simulation to something like quickcheck and writing down explicit invariants!

Comment · 5 years ago
Comment · 5 years ago
They are optimizing only for code size, so they don't need to run the code: they only count bytes emitted.

This works by changing around the order / interleaving of various LLVM optimization phases, so the learning process does not require knowledge of program timing or correctness.

Comment · 5 years ago
Comment · 6 years ago
Google's interpretation implies their belief that if their PostgreSQL server uses AGPL code, then every service using that PostgreSQL server must also be AGPL.

The article points out that that is not the case.

If you are using AGPL code as a library, however, then your application as a whole must be under an AGPL-compatible license. It's just that connecting to a server does not constitute linking in the GPL, and the AGPL doesn't change that.

Comment · 6 years ago
JIT engines like this one don't receive much benefit from being rewritten in a memory-safe language. Errors typically occur in the generated machine code, not in the compiler itself. The benefit would be small.
Comment · 6 years ago
I'm talking about neutral perceptions, not thoughts. An example would be something like the visual perception of a sidewalk. Presumably you don't get an emotional reaction about the sidewalk one way or the other, it's just a sidewalk.

The majority of your sensory experience is neutral perceptions like that. Once you notice them, negativity seems small in terms of proportion of sensory experience. What actually happens is that negativity occupies the majority of attention, meaning that your mind is latching onto things you perceive as negative. Broadening the scope of awareness to include neutrality means that definitionally the mind is not as latched-onto the negative, therefore negative things seem smaller, therefore they are slightly more tractable to deal with.

Comment · 6 years ago
There are two options I'm familiar with:

1. Without wondering if you sincerely mean it, make a point to say "thank you." Typically if you are depressed you will be alone, and so it is possible to recognize situations where you took an action now to make something easier for yourself later: for example, doing the dishes now instead of waiting for them to pile up. When that happens, verbally thank yourself on behalf of your future self. If you're capable of doing this, it jump-starts gratitude after a while.

2. Instead of feeling gratitude for things you perceive as positive, look for things that you perceive as neutral. The majority of your sensory experience is neutral. If your emotions are very negative, instead of looking for a dichotomy between negative and positive, look for a dichotomy between negative and neutral. You will perceive that neutral is not-negative. Because neutral is not-negative, increased perception of neutral sensations is a positive. If you perceive neutral sensations as positive for long enough, it jump-starts gratitude after a while.

Comment · 6 years ago
Download batches on initial extension load, and periodically thereafter, and cache them locally?
Comment · 6 years ago
Here's a simple no-framework points calculator for the sport of Powerlifting: https://www.ipfpointscalculator.com/

The page is 11KB, loads in 96ms, and makes three requests to one network, two of which are favicon-related.

This turns out to actually matter in practice because many of our users are from countries with extremely slow connections.

Comment · 6 years ago
Mozilla engineers typically accept a salary that is below market rates.

Recently they have been increasing salaries to be more competitive.

Comment · 6 years ago
I can't visualize every kind of object. The easiest things to visualize are simple geometric shapes with a strong color. By default, if I try to "visualize something" it will be a red triangle.

I cannot visualize faces whatsoever, even if the person is right in front of me and I close my eyes suddenly.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton