Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bhl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
bhl
2y ago
For a generative and collaborative web app, you would have to hook up those declarative components to function calls which are also declaratively written and perhaps use OT/CRDTs to mutate state.
62.
▲
by
bhl
2y ago
To collaborate with LLMs with text editors and spreadsheets, yeah I do think we will need deterministic declarative primitives that both users and LLMs can use. Getting those primitives right would also get us generalized autocomplete for a
63.
▲
by
bhl
2y ago
Nothing is built into ProseMirror except for the text span. For a definition list, you’d probably want two node types: a definition list, and a definition list item. And then create toDOM and parseDOM methods to render and parse respectivel
64.
▲
by
bhl
2y ago
Instagram and TikTok don’t work in China without a VPN. I’d be surprised if other Meta apps worked either. Most apps in China require a Chinese phone number to fully work too.
65.
▲
by
bhl
3y ago
Yeah, 'spilled array' and 'spilling' are the correct noun and verb. https://support.microsoft.com/en-us/office/dynamic-array-for...
66.
▲
by
bhl
3y ago
> CS61A was awful for me and made me hate computer science. Valid criticism. Think for most students, 61A has too steep of a learning curve for an introductory class. For people without any programming experience, it’s a bit too much too
67.
▲
by
bhl
3y ago
Yes, if trading BCA results in a profit, either BC or CA has negative weight. Negative weight here just means you can sell a currency more than its cost basis, and or buy a currency for cheaper than its cost basis. Though with arbitrage, yo
68.
▲
by
bhl
3y ago
Yep! Executing arbitrage is definitely harder than finding they exist though.
69.
▲
by
bhl
3y ago
> In finance, for example, there may be situations in currency or options trading where buying and selling in one sequence is more profitable than taking a different path, and these can be modeled using negative weights as long as the se
70.
▲
by
bhl
3y ago
The issue with negative weighted edges is that a cycle would result in an infinite loop when finding shortest path, compared to when all edges are non-negative, cycles can be safely skipped. Compared to Dijkstra's original algorithm of
71.
▲
by
bhl
3y ago
I've found react-prosemirror [1] to be a light ProseMirror React integration that supports node views. I had also considered Remirror before, but its abstraction and internals seem even heavier than Tiptap's. [1] https:/
72.
▲
by
bhl
3y ago
> With ProseMirror, I’d need to tunnel through 1 layer of abstraction and/or patch 1 layer of abstraction. With Tiptap, maybe I’d need to fork-and-patch both you and ProseMirror? Each layer also increases our maintenance liability.
73.
▲
by
bhl
3y ago
Have you tried the nytimes react integration? https://github.com/nytimes/react-prosemirror It should be lighter than tiptap.
74.
▲
by
bhl
3y ago
For rich text, I would just use ProseMirror or Lexical and avoid the pain of working with contenteditable directly. To appreciate the difficulty and nuances with building a text editor on contenteditable, I would read through the commit his
75.
▲
by
bhl
3y ago
My takeaway from reading about the person's experience is that we need better high speed public transportation in California. It would unlock a lot of economic and non-economic opportunities if people can move across the state within a
76.
▲
by
bhl
3y ago
> It's going to be seamlessly integrated into every-day software. In Office/Google docs, at the operating system level (Android), in your graphics editor (Adobe), on major web platforms: search, image search, Youtube, the like
77.
▲
by
bhl
3y ago
Need a chart library that is easily configurable by an end-user using a GUI. Think they have their data in a spreadsheet and want different types of charts and ability to pick things like color or labels. Does this work? I’ve been looking a
78.
▲
by
bhl
3y ago
For all lazy matcha makers, I’d recommend getting a milk frother: it heats up water and also mixes matcha powder. For those who like matcha lattes, I think it’s even more essential as frothing milk makes it more sweet and fluffy.
79.
▲
Are spreadsheets a true programming language?
(about.subset.so)
29 points
by
bhl
4y ago
|
50 comments
80.
▲
by
bhl
4y ago
mobx-state-tree ( https://mobx-state-tree.js.org/ ) Benefits of it over mobx is data normalization with references and JSON patches which allow you sync complex state easily. Typed models are also a plus. Drawbacks are perfor
81.
▲
by
bhl
4y ago
Is there a good resource on designing collaborative apps with CRDTS, that is which type of CRDT and conflict resolution to pick for a given application? Something like https://mattweidner.com/2022/02/10/collab
82.
▲
by
bhl
4y ago
> best-in-class memory overhead Was using indexeddb considered? I've yet to see an easy to use library that allows you to store simple but large json in indexeddb, and then query against that. Useful for something as simple as an em
83.
▲
by
bhl
4y ago
Is there an ETA on Miniflare v3? Ran into a problem recently using overlapping keys with forward slashes as they were not sanitized properly: https://github.com/cloudflare/miniflare/issues/167
84.
▲
by
bhl
4y ago
Does immer have the same drawbacks as immutable? It uses proxies as opposed to hased array map tries.
85.
▲
by
bhl
4y ago
Regarding columnar databases, is there an optimal data structure in between storing data as rows and storing data as columns that would make it fast to sort and filter by either dimension? Some mix of B-trees or interval trees?
86.
▲
by
bhl
4y ago
Maybe worth merging threads since they're about the same event and that post has some comments by a maintainer.
87.
▲
by
bhl
4y ago
Could you elaborate on what you mean by "source-of-truth that wasn't the DOM" and "performance and accessibility"? Having read through Lexical's documentation and worked with ProseMirror before, the approach by
88.
▲
by
bhl
5y ago
Are there plans to make Peritext production-ready like Yjs, or is this more of a sketch for people to build their own collaborative rich text editor integrations?
89.
▲
by
bhl
5y ago
I've used it with other tools / frameworks like Vite or Svelte; it's pretty agnostic. Plus setting it up is a one time thing.
90.
▲
by
bhl
5y ago
So sort of a user interface like TweetDeck where you can horizontally scroll between multiple feeds?
More ›