Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aidos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
451.
▲
by
aidos
4y ago
I would say that native LSP support in neovim has improved and stabilised a lot recently.
452.
▲
by
aidos
4y ago
I mean there’s no layout engine to do things like wrapping and line height etc. Everything is explicitly positioned. PDF seems a bit more bonkers because you render text as strings of glyphs and the conversion back to text is an afterthough
453.
▲
by
aidos
4y ago
Totally. We see architectural drawings that go through a number of revisions and it’s not uncommon for designers to simply cover a whole section with a white box and then draw on top of it. Also within PDFs (and svgs) you normally clip the
454.
▲
by
aidos
4y ago
Neither pdf or svg do text layout. They’re both pretty similar really, though the pdf spec is really deep and broad to cater for a million things. My advice to everyone re pdfs is to crack them open by running `mutool clean -d file.pdf` And
455.
▲
by
aidos
4y ago
I’ve been down a bit of this rabbit hole before. We work with PDFs, svgs, fonts and chromium too. While I don’t have any need for this tool itself, I’d highly recommend flicking through this article as a nice overview of the graphics /
456.
▲
by
aidos
4y ago
Flicking through this paper is very humbling and awe-inspiring. Having studied in this field when I was younger, I have just enough understanding to appreciate the insane amount of thought represented here. Kudos.
457.
▲
by
aidos
4y ago
0.502 and 0.504? If so, they're introduced as parameters back on page 10. I can't tell you much more than that!
458.
▲
by
aidos
4y ago
In this case, he makes a difference!
459.
▲
by
aidos
4y ago
Little mini example in terms of LSP behaviour is fixing this bug: https://github.com/microsoft/TypeScript/issues/37816 I edit the results of gotoDefinition on the way through so I always jump to the one I wan
460.
▲
by
aidos
4y ago
I believe they’re talking about a different “hard way” in that they’re suggesting you can’t have those features in vim / eMacs etc and have to do something else instead. You’re not wrong, configuring these editors is 100% the hard way
461.
▲
by
aidos
4y ago
Everything is pretty much just language servers behind the scenes these days anyway. Neovim supports those natively, so those young chaps aren’t talking about your vim of yesteryear.
462.
▲
by
aidos
4y ago
They’re different experiences for users with different priorities. Your priority is evidently ease of configuration, VScode is definitely easier out of the box - there is no comparison. My priority is hackabilty for streamlined editing and
463.
▲
by
aidos
4y ago
Maybe most people object to that, but personally I like to have daylight hours first thing in the morning to pop out for a run to start the day. There’s a weird bit in October where you lose the ability to do that because of BST. I was genu
464.
▲
by
aidos
4y ago
That’s the opposite.
465.
▲
by
aidos
4y ago
I’m not aware of it myself. When did we last not have BST in the Uk?
466.
▲
by
aidos
4y ago
Implementing SuperTokens is on my roadmap. I’ve read through the docs and been lurking on discord. The approach having your own layer in front of theirs to augment everything sits really well with me. I wish you guys all the luck, I think i
467.
▲
by
aidos
4y ago
Looking at OPs github issue you can clearly see the problem and what they're trying to solve. .., observableValue, -> .., observable[Event, observable]Value, .., observableValue, -> .., [observableEvent, ]observableValu
468.
▲
by
aidos
4y ago
Even slightly further off topic, but probably useful in this context. Another top tip in git is that you can use `--color-moved=dimmed-zebra` to get a sense of code that was just moved but unchanged. More importantly, it directs you to code
469.
▲
by
aidos
4y ago
I’ve don’t do that- someone on HN pointed out that most agents will accept “it’s a random string” as the answer.
470.
▲
by
aidos
4y ago
If anyone is interested in how it works, here's the whole thing (I'm looking for strings inside a call to a text function, which is how you wrap sql for sqlalchemy). # queries/python/injections.scm ; inherits
471.
▲
by
aidos
4y ago
Neovim has improved a lot in the last couple of years. When I initially switched to native lsp it was a giant confusing mess. There was a lot of wading through GitHub issues trying to pull enough info together. Eventually my understanding o
472.
▲
by
aidos
4y ago
And should you want to do any of that from vim, you can (and you can customise it exactly how you want).
473.
▲
by
aidos
4y ago
You’ll find that most of what happens behind the scenes in vscode is available in neovim (and probably vim and emacs). The heavy lifting is done by lsps these days. One notable exception is that neovim has treesitter, so you get immediate s
474.
▲
by
aidos
4y ago
Treesitter is amazing. We have a bunch of sql strings in python and I was able to drop a couple of lines into my injections.scm to isolate them and get perfect sql highlighting within my python code.
475.
▲
by
aidos
4y ago
I don’t use debuggers myself, but I think they’re pretty well supported within vim (neovim at least) these days https://github.com/mfussenegger/nvim-dap
476.
▲
by
aidos
4y ago
I’d say that vim will never be an IDE as such, because the focus is on personal configuration. Personal Development Environment is how one of the neovim contributors is half rebranding it. The things that make modern IDEs good (like LSP) at
477.
▲
by
aidos
4y ago
You have to invest time in your vim setup. There’s a whole lot built in that you need to learn, but you also need to customise it to your workflow. In terms of searching through multiple files, I use Telescope with ripgrep and fzf. It’s an
478.
▲
by
aidos
4y ago
For most cases it just doesn't matter. I make software that requires searching over large datasets (image recognition for construction drawings). It's a web app running python on the server and it feels instantaneous for users as
479.
▲
Trial by Fire
(newyorker.com)
2 points
by
aidos
4y ago
|
0 comments
480.
▲
by
aidos
4y ago
This was posted years ago on HN and it has always stuck with me. https://www.newyorker.com/magazine/2009/09/07/trial-by-fire
More ›