Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
451.
▲
by
maleldil
1y ago
You can use "uv run python script.py" to the same effect.
452.
▲
by
maleldil
1y ago
> And the last time I really gave it a go, it was slow, which is surprising for a terminal text editor. There was likely something wrong with your configuration. It's really hard to be faster than vanilla vim, but you can get weird
453.
▲
by
maleldil
1y ago
uvx is fine. I use it to run executable packages all the time. What is your problem with it?
454.
▲
by
maleldil
1y ago
> considering the constraints they had at the time the Go team designed this What constraints? Ignoring decades of programming language developments since C89?
455.
▲
by
maleldil
1y ago
> I think we should really strive to put time to properly learn [insert Pike's Google young programmers quote here] That's just not the philosophy of the language. The convention in Go is to be as obvious as possible, at the co
456.
▲
by
maleldil
1y ago
> conventionally you should not access attributes prefixed with `_` but it won't stop you. Any serious Python project will use at least one linter or typechecker, which can easily enforce this.
457.
▲
by
maleldil
1y ago
As far as I understand, you don't. You open Claude Code inside the repo and prompt `boot llmunix` inside Claude Code. The CLAUDE.md file tells Claude how to respond to that.
458.
▲
by
maleldil
1y ago
I don't think they're joking. > If you think killing and maiming is “advancing”, then you have a weird view of society. Classic accelerationism. "Some of you may die, but it's a sacrifice I am willing to make."
459.
▲
by
maleldil
1y ago
> You can't understand all internals, and that's perfectly fine. C++ takes this to another level, though. I'm not an expert Go or Rust programmer, but it's much easier to understand the code in their standard librarie
460.
▲
by
maleldil
1y ago
You can't realistically keep training the same model forever, or it will start forgetting things it knew before. The proper name for this is "catastrophic forgetting".
461.
▲
by
maleldil
1y ago
Take a look at aider's watch mode. It seems like a bridge for code completion with more powerful models than Copilot. https://aider.chat/docs/usage/watch.html
462.
▲
by
maleldil
1y ago
That transformation makes writing both variants similar, but you still need to read `await (await fetch()).body()`, which IMO is much worse.
463.
▲
by
maleldil
1y ago
FAANG engineers are still working class.
464.
▲
by
maleldil
1y ago
Claude Code will even request access documentation on its own sometimes. I caught it asking to run a `pydoc` command the other day. I'm not sure if it has access to web search, but it should.
465.
▲
by
maleldil
1y ago
> you’re just using an LLM to acquire more free time on the company dime You might as well do that since any productivity gains will go to your employer, not you.
466.
▲
by
maleldil
1y ago
My experience has been quite different. I often give it a large block of instructions and let it run autonomously for a while. When I come back it often did what I expected. It doesn't have good taste with respect to APIs, though, so s
467.
▲
by
maleldil
1y ago
Claude Code is "agentic". Aider isn't. It can plan, use external tools, run the compiler, tests, linters, etc. You can do some of it with Aider, too, but Claude is more independent. The downside is that it can get very expens
468.
▲
by
maleldil
1y ago
If you have strict static type checking, type errors can't creep in, so you don't need runtime checking. pyright (type checker) will tell you when a runtime check is redundant. For example, if you already have `var` annotated (or
469.
▲
by
maleldil
1y ago
I think it's fine to have those if it makes API design and better. In my mind, there's "code you should write" and there's "code only libraries should write".
470.
▲
by
maleldil
1y ago
beartype is great, but I only find it useful at the edges. Runtime checks aren't needed if you have strict typing throughout the project. On a gradually-typed codebase, you can use beartype (e.g. is_bearable) to ensure the data you
471.
▲
by
maleldil
1y ago
The current major type checkers, mypy and pyright, are also based on the same PEPs, but you can still see differences between them. For example, my codebase passes pyright in strict mode, but mypy results in a bunch of type errors. I'd
472.
▲
by
maleldil
1y ago
Done and done: https://docs.rs/isodd/latest/isodd/ https://docs.rs/leftpad/latest/leftpad/ I bet you can find something similar in all modern package managers.
473.
▲
by
maleldil
1y ago
You still need to type-check files that weren't changed if they were affected by a file that was.
474.
▲
by
maleldil
1y ago
To be fair, pyright's performance as an LSP is tolerable. The main issue to me is running the type checker as a pre-commit hook or as part of CI. Mypy is awful, though.
475.
▲
by
maleldil
1y ago
Aren't there SSH clients for iOS? That should work for an emergency hotfix.
476.
▲
by
maleldil
1y ago
Claude Code has a /compact command that summarises the conversation so far to save on context tokens.
477.
▲
by
maleldil
1y ago
You have stories of people running 2021 MacBooks and complaining about performance. Those are not shitty computers.
478.
▲
by
maleldil
1y ago
> one way to validate one’s choice in paying for a search engine (whether it is better or not) is to get others to use it as well. It's not so much validating, but I'm hoping they grow so I can keep using their service. It woul
479.
▲
by
maleldil
1y ago
If I understand correctly, you can do this with overloads. They don't change the function implementation, but you can type different combinations of parameters and return types.
480.
▲
by
maleldil
1y ago
The dataclass decorator isn't there to make the type checkers understand the class. Its main purpose is to automatically implement trivial methods like the constructor, equality, repr, etc. The type hints make this more convenient, but
More ›