Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
691.
▲
by
maleldil
2y ago
That's true, but pyright is still IMO the best LSP in its own right, and we also have based-pyright that shortens the gap to pylance a little bit.
692.
▲
by
maleldil
2y ago
> Take a look at Ladybird. There's a browser being built from scratch with a small team (less than 10?) Ladybird is so, so far away from being comparable to Firefox. It only supports a fraction of modern websites.
693.
▲
by
maleldil
2y ago
Not to the same extent. Neovim has extensive Lua support, to the point where you can do _almost_ anything in Lua, whereas in Vim, it's, AFAIK, a second-class citizen. For example, my nvim config is written entirely in Lua with no vimsc
694.
▲
by
maleldil
2y ago
IMO, it's somewhat polarising. Some people love it, but I personally can't stand it. It feels too heavy, trying to dominate every aspect of writing code. I prefer lightweight editors, but I recognise it's a personal thing.
695.
▲
by
maleldil
2y ago
I've had some success with PMD/CMD [1]. It's Java-based, though, which could be a pain, depending on your setup. If your codebase uses Python, you can use Pylint for this, too. [1] https://pmd.github.io/pmd&#x
696.
▲
by
maleldil
2y ago
But then you have to use Visual Studio.
697.
▲
by
maleldil
2y ago
I like using paste to sum over numbers where each number is in a distinct line. E.g.: printf "1\n2\n3" | paste -sd+ | bc 6 I suppose you could do that more cleanly with awk, but this has worked whenever I needed it.
698.
▲
by
maleldil
2y ago
That's a common story. Research has shown that a significant portion of people with treatment-resistant depression are, in fact, bipolar, with bipolar 2 being more susceptible to depressive episodes.
699.
▲
by
maleldil
2y ago
It's abandoned, and tbh it's more trouble than it's worth. It's far easier and more reliable to specify the CLI and have it generate the help text than the other way around. All major languages have good CLI parsing libr
700.
▲
by
maleldil
2y ago
Pyright and mypy are typecheckers, completely orthogonal to the interpreter. They work like linters that statically perform type checking. By default, Python's type hints are ignored at runtime (i.e. you can do `x: str = 2`, and the ru
701.
▲
by
maleldil
2y ago
> Python barely has more type support than Ruby That's not true. mypy and Pyright (the main type checkers) are very ahead of Ruby's Sorbet, and Python actually has proper ergonomic syntax to work with types, which Ruby doesn&#x
702.
▲
by
maleldil
2y ago
Amazing book. My favourite parts are the framing of fighting complexity as the main goal of design (strategic vs tactical thinking) and the idea of "deep modules".
703.
▲
by
maleldil
2y ago
IME, I've never seen a situation where `x += y` is preferred over `x.extend(y)`, with the bonus that `extend` works in places where `+=` doesn't, like tuples where reassignment isn't possible.
704.
▲
by
maleldil
2y ago
Type safety isn't binary but a spectrum. It's obvious that C++ is more type-safe than JS but less than Rust, which is less than Haskell.
705.
▲
by
maleldil
2y ago
Seconded. I changed from pyenv to mise because pyenv was slowing down my shell startup (probably the shims, which mise doesn't use by default), and I'm slowly using mise for more stuff. Right now, I'm using it to auto-turn on
706.
▲
by
maleldil
2y ago
Scripts should be using `/usr/bin/env python3` anyway, so they work inside virtualenvs and other scenarios where `/usr/bin/python` isn't the Python you want.
707.
▲
by
maleldil
2y ago
There will be a Perl 7[1], essentially Perl 5.32 with a new name. [1] https://www.perl.com/article/announcing-perl-7/
708.
▲
by
maleldil
2y ago
You replied to the creator of the V language.
709.
▲
by
maleldil
2y ago
They did a soft reset, with Ncuti's new season being marked as the Season 1 of the 2023 version. It's still going strong, with this season being very strong, IMO.
710.
▲
by
maleldil
2y ago
They can change the license by creating a new release with a new license, but existing versions with the previous license retain the previous license.
711.
▲
by
maleldil
2y ago
While you're right (it's indeed not open-source), the project advertises itself as such, so the title is "right", even if it's a lie.
712.
▲
by
maleldil
2y ago
Who the hell signals two with your palm facing you? That's the only way you can get in trouble.
713.
▲
by
maleldil
2y ago
What do you mean by "compound booleans"?
714.
▲
by
maleldil
2y ago
From your link: > Hacker News Information: If you create a Hacker News account (ID and profile), we do not collect any Personal Information unless you choose to provide your email address and/or information in the "about"
715.
▲
by
maleldil
2y ago
I meant to say what uv is _right now_, which AFAIK is replacement for virtualenv, some of pip, and pip-tools. I understand they have a vision for the future, but I'll believe it when I see it. As it stands, they're already a very
716.
▲
by
maleldil
2y ago
uv is essentially an improved version of pip, virtualenv and pip-tools, but from the outside it's pretty much the same thing. The CLI imitates most of pip's options too. It's not like conda, which is a completely different ec
717.
▲
by
maleldil
2y ago
I don't think we'll ever see proper packaging integrated into the language. Our best hope is for the ecosystem to coalesce around a particular tool, or at least have standards that all the major players follow. The latter is kind
718.
▲
by
maleldil
2y ago
DuckDB is optimised for analytical tasks, whereas SQLite isn't.
719.
▲
by
maleldil
2y ago
The idea is to have gradual typing, like Python does. Most annotations in Python have no impact on runtime (e.g. parameter types aren't checked), but they are still valuable for external tools to perform type checking. A program with t
720.
▲
by
maleldil
2y ago
I use and love ligatures, but calling them "critical" is weird. I'll have to admit that they're the reason I don't use alacritty, though.
More ›