News for hackers. Stuff that matters.

emptysea

Re:Rethinking Syntax: Binding by Adjacency on Monday March 09, 2026 @10:27PM (#47318433)
In Postgres you can define custom operators via `create operator`[0]

    -- infix
    select a <!!!> b;

    -- prefix
    select <||> a;
A lot of custom types end up using this [1].

    select @-@ '[(0,0),(1,0),(1,1)]'::path;
    -- 2

[0] https://www.postgresql.org/docs/current/sql-createoperator.h... [1] https://www.postgresql.org/docs/current/functions-geometry.h...
Not OP, but I think building feature flags yourself really isn’t hard and worth doing. It’s such an important component that I wouldn’t want to depend on a third party
Re:Java Hello World, LLVM Edition on Sunday December 07, 2025 @09:49AM (#46182043)
Ruff’s ast is used by Ruff, Ty, and Pyrefly
Re:Track Errors First on Thursday June 05, 2025 @11:30AM (#44192635)
Pretty sure you can get EU data residency with sentry

https://docs.sentry.io/organization/data-storage-location/

Instagram built a linter with the ability to fix errors which is an improvement over flake8 & pylint: https://github.com/Instagram/Fixit

But Ruff is an even greater improvement over that

Re:Getting AI to write good SQL on Friday May 16, 2025 @07:33PM (#44010730)
That's one of the features of EdgeQL:

    select Movie {
      id,
      title,
      actors: {
        name
      }
    };

https://docs.geldata.com/learn/edgeql#select-objects

Although I think good enough language server / IDE could automatically insert the join when you typed `credit.CLIENT->NAME`

Re:Ty: A fast Python type checker and language server on Wednesday May 07, 2025 @02:33PM (#43919139)
Also interesting, pyrefly uses Ruff’s parser!

https://github.com/facebook/pyrefly/blob/a8626110da034f8e513...

Re:Pyrefly on Tuesday April 29, 2025 @12:18PM (#43834662)
Might be worth checking out https://github.com/DetachHead/basedpyright

But I’ve had the same issue with too many warnings, mypy is better at understanding Python but even slower.

Re:Pyrefly on Tuesday April 29, 2025 @11:17AM (#43833836)
The web version is actually pretty decent, I use it on windows from time to time and it works great!

It also has some features that the MacOS one doesn't have like, a full screen lyrics view with some nice WebGL animations.

Re:Et Tu, Grammarly? on Saturday March 29, 2025 @02:40PM (#43517558)
Ah yeah I remember that one, but can’t remember the origin.

A lot of times the reason sentry can’t do much is because the browser JS VMs have terrible/non-existent stack traces, especially true with things like unhandled rejected promises.

Re:Et Tu, Grammarly? on Saturday March 29, 2025 @11:40AM (#43516362)
At work we have a lot of sentry errors related to browser extensions doing weird stuff.

Chrome’s Google translate is also notorious for breaking react based sites.

It ends up being a tedious triage process to ignore each new extension issue. We use the client side filtering to reduce our ingest volume. In general we have to have a lot higher thresholds to handle the noise vs our backends.

Re:Flattening ASTs (and Other Compiler Data Structures) on Friday January 10, 2025 @05:00PM (#42660769)
Rust-analyzer uses a similar technique for parsing https://github.com/rust-lang/rust-analyzer/blob/master/crate... which then gets fed into https://github.com/rust-analyzer/rowan (lossless syntax tree)
Re:1-800-ChatGPT on Wednesday December 18, 2024 @02:35PM (#42454072)
Have you tried a Waymo yet? Honestly the coolest tech I’ve seen/used in ages

Lots of engineering involved

Do you know why they use JSC rather than the V8?
Re:Velox: Meta's Unified Execution Engine [pdf] on Monday March 25, 2024 @07:07PM (#39822279)
YouTube uses Spanner now, they migrated off Vitess a while ago
Re:How Figma's databases team lived to tell the scale on Thursday March 14, 2024 @02:17PM (#39707227)
Seems they’ve built out a PG version of MySQL’s Vitess

Query rewriting seems interesting, having a layer between your DB and your application would also allow various ACL stuff as well

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix on Wednesday March 13, 2024 @02:25PM (#39695348)
We have the same problem with bazel at work, after a few months your machine is running out of disk space
Re:How we engineer feedback at Figma with eng crits on Monday March 11, 2024 @05:36PM (#39673501)
If you think Figjam is expensive, you should see their new dev mode pricing — I’m sure they’re making a mint!
Did you manage to get IDE support to click into the backend implementation from the front end code?
Yeah it looks off, makes the website look rushed imho
Or looking to play the promo game, build a bunch of unnecessary stuff and get a pat on the back and better comp
Re:Implementing system-versioned tables in Postgres on Wednesday February 07, 2024 @03:27PM (#39293821)
The problem with Django simple history and similar is they use Django signals and aren’t transactional. So if you have any bulk updates or things that don’t trigger signals, your SOL, and your history starts missing things

A more robust solution would use triggers or an ORM with more transactional guarantees (aka not using signals)

Re:Notion Calendar on Wednesday January 17, 2024 @12:18PM (#39030571)
UI wise it looks like they’ve cribbed some design notes from Apple’s calendar apps

Older »