Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bhl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
bhl
5y ago
To be fair to authors of those third-party libraries, some of the blame has to do with browser quirks, and for a rich text editor, bugs in the implementation of content-editable that have to be normalized across all browsers (unless you pul
92.
▲
by
bhl
5y ago
Asana uses ProseMirror and Slab uses QuillJS, and neither of them lag by default if you look at the standalone libraries.. so :shrug: If you have free time, I'd pop open Chrome Dev Tools, run a performance monitor on both and try to di
93.
▲
by
bhl
5y ago
I'm trying to find the source data Apple uses for text replacements / suggestions.
94.
▲
by
bhl
5y ago
It's more than just the CLDR keywords ( https://unicode.org/emoji/charts/emoji-list.html ), since text replacement or autocomplete shows up for words not on that list.
95.
▲
by
bhl
5y ago
Has anyone reversed-engineered the Apple emoji dictionary that maps some keywords to emojis? Last time I checked, they only shipped binaries on the newest MacOS. Would love to use that mapping to elevate search on my custom emoji picker.
96.
▲
by
bhl
5y ago
Perhaps you could come up with a list of commonly-used functions and write optimized SQL functions for them, such that users start off learning with that API and gradually learn SQL when they're more comfortable.
97.
▲
by
bhl
5y ago
> there is no official repository of Plug-ins instead everyone is rebuilding everything To be fair, both Slate and ProseMirror call themselves frameworks for building rich text editors as opposed to drag-and-drop editors themselves. The
98.
▲
by
bhl
5y ago
What features of Slate put it closest to Notion's editor compared to other frameworks besides the obvious one that Slate's view layer is built on top of React? Is it somehow that Slate is more suitable handling asynchronous data (
99.
▲
by
bhl
5y ago
There’s a few papers from http://sustain.stanford.edu/projects that has to do with satellite imagery, deep learning, and measuring poverty.
100.
▲
by
bhl
5y ago
That link does go over an optimized tree-diffing algorithm for ASTs, but the question I'm wondering is how to extend incremental parsing into incremental diffing, as opposed to full parse into full diff.
101.
▲
by
bhl
5y ago
`tree-sitter` has been post to the website a bunch of times so I remembered from those submissions: https://hn.algolia.com/?query=tree-sitter Also these resources: https://github.blog/2018-10-31-atoms-new-pa
102.
▲
by
bhl
5y ago
Anyone know how to compute the diff between two ASTs if the edits _are_ known, either in general or with tree-sitter. The method used by diffsitter is to compute the path with minimal editing distance: https://github.com/afn
103.
▲
by
bhl
5y ago
Github is also behind the library that diffsitter builds upon: https://github.com/tree-sitter/tree-sitter .
104.
▲
by
bhl
5y ago
I don't think jupyter by default comes with real time collaborative editing.
105.
▲
by
bhl
5y ago
Just curious, have you tried vite with react? It uses esbuild, which might result in a heavier dependency folder, but I also wonder if getting rid of webpack removes a lot of the CRA dependencies.
106.
▲
by
bhl
5y ago
At face value, the idea feels reminiscent of earlier collaborative text editors like etherpad, hackpad, or usecanvas. I think the hard part would be resisting the temptation of folding your markdown (hiding # or *) or moving to WYSIWYG. For
107.
▲
by
bhl
5y ago
Skiff uses https://github.com/chanzuckerberg/czi-prosemirror last time I checked, which just uses the DOM.
108.
▲
by
bhl
5y ago
When I was taught stable matching, there was a homework problem on showing that the algorithm is “proposer-optimal” and “proposee-pessimal”, meaning that a proposer always does the best they can do relative to other proposers’ preferences w
109.
▲
by
bhl
5y ago
How far are we away from having _collaborative_ Jupyter in the browser? Would love a Google Docs experience of sharing a no-sign up required link to help remotely teach basic python.
110.
▲
by
bhl
5y ago
That sounds a great side project, since some developers might prefer a static svg dynamically created via url like boringavatar.app/[username here]. There's some prior work on this: e.g. https://github.com/lfades&#
111.
▲
by
bhl
5y ago
I agree with React being a good bet, but looking at the source code at the link, porting the library over to vanilla javascript or vue seems rather simple given it's mostly using JSX and not using an in-depth React feature like hooks.
112.
▲
by
bhl
5y ago
What’s the reasoning why Notion doesn’t have partial text selection across blocks? I originally thought it was an issue with each block being it’s separate contenteditable, but if you wrap all of the contenteditable blocks in another conten
113.
▲
by
bhl
5y ago
Given for a text editor, find-and-replace is a feature anyways that's not natively supported by contenteditable.., you will need to build out a custom app search feature anyways. But yeah, for preview only mode, sad to see native featu
114.
▲
by
bhl
5y ago
With a canvas-based engine, the editor is no longer relying on the contenteditable spec right? For the majority of use cases, do you think contenteditable + view layer which precisely updates the HTML is still viable? More specifically, wh
115.
▲
by
bhl
5y ago
Makes me wonder if you could split an ipynb into an in and out file, then add /*.out to .gitignore.
116.
▲
by
bhl
5y ago
The default way to persist a ProseMirror doc is JSON. There is a way to serialize that to Markdown via the prosemirror-markdown package, but not every node can be represented as plain text. You can also use html without a non core package s
117.
▲
by
bhl
5y ago
That engineering blog post is a bit ambiguous to whether or not SQLite is also used in the browser web-app, which I'm presume is being used for most people who clicked on the link. So that could mean two things: - SQLite is being used
118.
▲
by
bhl
5y ago
Maybe it's just an oversight then when inline and block math was rolled out. KaTeX has a `renderToString` function that can be used to server-side render the LaTeX. On an other hand, Notion doesn't seem built to serve read-only we
119.
▲
by
bhl
5y ago
There's two sides to every story. Reducing the amount of third-party tracking cookies on the web, and implementing a novel application of federated learning are definitely things some engineers would do, money aside, because they'
120.
▲
by
bhl
5y ago
[1] https://actualbudget.com/blog/porting-local-app-web [2] https://news.ycombinator.com/item?id=23508923
More ›