Recent submissions

Comment · 10 months ago
have you seen the code of next.js? its completely impenetrable, and the packages have legacy versions of the same files coexisting, it's like huge hairball
Comment · 10 months ago
If I am to provide a summary of why layout shouldnt be linear constraints, is that it can't faithfully represent content overflowing onto multiple lines. I.e. it's inherently one dimensional. I.e. you can't really have a layout that adaprts to the screen size without creating a lot of separate breakpoints. This is a big limitation, that for example flexbox doesnt have. When I left Grid i immediately went and reproduced a lot of stuff we've been doing in (new then) flexbox layout engine, and i was like: Oh my god, this is so much more powerful.
Comment · 10 months ago
Hello Jon! This is Yarik. Cool to see you doing all this machine learning work these days.
Comment · 11 months ago
Is there a consensus about "Dont do it" negative prompts vs "Do it this way" positive prompts? So it's negative when there's a hard line, and positive when it's being nudged towards something?
Comment · 11 months ago
Well, OT has its CAP-like theorem, which says that you can make some sacrifices to get some qualities. Excluding time component from the OT and removing the "first edit wins" rules, allows for very flexible OTs with deterministic tie breakers (i.e. when two people are writing a word in one place, sort words alphanumerically to brea the tie). But in order for this to work for P2P environments, the list of actions can't be collapsed/optimized until all parties rebased their changes against all other parties. In centralized systems, peers can throw away the log of ops that happened before the server's last acknowledged state
Comment · 11 months ago
is there a modern operational transformation implementation that would work in P2P environment? i've had my own, but it had some convergence issues in complex fuzzied scenarios, couldnt fix before my enthusiasm ran out. I still feel like OT is more elegant and easier to integrate than CRDT. But i'm not finding good lightweight implementations.
Comment · 11 months ago
In these 15 years, HN was a website that shaped me and my worldview. It's a social circle that inspires me and broadens my perspective.
Comment · 11 months ago
What's wrong with GROUP BY 1,2,3?
Comment · 1 year ago
Please consider it a feature request
Comment · 1 year ago
I want to ditch stream-json so hard (needs polyfills in browser, cumbersome to use), but I need only one feature: invoke callback by path (e.g. `user.posts` need to invoke for each post in array) only for complete objects. Is this something that json river can support?
Comment · 1 year ago
yes but you can put it on nested objects. Each type: object can have its own propertyOrdering, so you control whole tree
Comment · 1 year ago
I have a mildly psychotic friend who think that he uncovered the secrets to everything with AI. Quantum theory and Jungian archetypes, together with 4 dimensions - great mix
Comment · 1 year ago
nested field have their own propertyOrdering
Comment · 1 year ago
gemini api has propertyOrdering field for that
Comment · 1 year ago
hmm... where to start?

  - Variables cascade and cause restyle of whole sub-tree.
  - Attributes often are already on the html element, e.g. title, aria, data attributes, so dont need inline styles
  - Not mixing data with presentation
Just to name a few

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton