Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
421.
▲
by
maleldil
1y ago
Changing is possible even if you're neurodivergent, but you'll always have some barriers that neurotypicals don't. To interact with them, you will generally need some degree of masking.
422.
▲
by
maleldil
1y ago
That's not true. It uses CLI tools (e.g. find, grep) to find the relevant code from the codebase.
423.
▲
by
maleldil
1y ago
> Are libraries typically designed to accept an optional input to store potential errors? Yes. Stdlib's JSON module has a separate diagnostics object [1]. IMO, this is the weakest part of Zig's error handling story, although th
424.
▲
by
maleldil
1y ago
> Israel is a multiethnic country that achieves high standards of living Ask the Arabs who live in the country if their standard of living is the same as the rest.
425.
▲
by
maleldil
1y ago
The main reason is geopolitics. Israel is an ally in the Middle East, a key region to US foreign policy.
426.
▲
by
maleldil
1y ago
Are you talking about Google Search's AI summary? I don't know what model they use for that, but I tested Gemini 2.5 Flash-Lite (the smallest of Google's current models), and it got the answer right.
427.
▲
by
maleldil
1y ago
This is a great article. It echoes a lot of what I went through when transitioning to management. I can also recommend the book "The Making of a Manager", which covers similar ground in more detail. I have one criticism: no auto-p
428.
▲
by
maleldil
1y ago
I don't see how Nim's import is necessary for that to happen. You can allow the user to specify items to import without the qualifier (like Python's `from lib import foo`), and the universal function call syntax would work, t
429.
▲
by
maleldil
1y ago
It's not only a Python thing. Many modern languages require this as well. Go, Gleam, Rust, etc. When you're reading Nim code and you see a symbol you don't know, how can you tell where it comes from? In Rust, it's either
430.
▲
by
maleldil
1y ago
The way it handles imports is weird. Default to importing everything from the module without qualification? I know you can choose to qualify everything, but that seems to go against the language's conventions.
431.
▲
by
maleldil
1y ago
But it's in the Schengen Area, which is relevant here.
432.
▲
by
maleldil
1y ago
CoT is a prompting technique too, and it's been incorporated.
433.
▲
by
maleldil
1y ago
Lua is widely used for scripting in games. It might not be the main language of the project, but it's still very common.
434.
▲
by
maleldil
1y ago
Interoperability being the major one. You can switch between uv and other tools (such as pdm and hatch) with minimal effort.
435.
▲
by
maleldil
1y ago
Imagine being this naive in 2025. The market isn't rational.
436.
▲
by
maleldil
1y ago
Who decides what's on the test? How do you keep those in power from gaming the system?
437.
▲
by
maleldil
1y ago
uv supports the standardised lock file format. This means that you're not tied to uv for anything, as most project settings it uses (eg metadata, dependencies, extras, etc.) are based on PEPs. poetry has its own format for many things.
438.
▲
by
maleldil
1y ago
Haskell bind is usually spelt flatMap in other languages, like Rust and even Java. map is used for functor fmap.
439.
▲
by
maleldil
1y ago
Rust has language features (often inspired by functional programming languages) that allow you to write pretty high level code.
440.
▲
by
maleldil
1y ago
> Don’t tell me about using tools X, Y, Z, mypy, … What's wrong with using tools that improve on common issues? I don't think I'd use Python without them, but ruff and pyright make Python a very productive and reliable lan
441.
▲
by
maleldil
1y ago
- Performance: uv is so much faster that some operations become transparent. poetry's dependency resolver is notoriously slow. uv being a native binary also means it has a faster startup time. - Interpreter version management: uv can h
442.
▲
by
maleldil
1y ago
This is incorrect. > The __init__.py files are required to make Python treat directories containing the file as packages (unless using a namespace package, a relatively advanced feature). https://docs.python.org/3/tu
443.
▲
by
maleldil
1y ago
Unnecessary baggage if you don't need validation or serialisation. My rule of thumb is to use Pydantic if I need serialisation, otherwise I default to dataclasses.
444.
▲
by
maleldil
1y ago
You're describing a functor. For monads, you still need bind or join.
445.
▲
by
maleldil
1y ago
Note that this is general enough that you don't need a Monad for this. Applicative is enough (liftA2).
446.
▲
by
maleldil
1y ago
At that point, you probably want proper validation with something like Pydantic, where you can use MyType.model_validate(dict).
447.
▲
by
maleldil
1y ago
I don't see a point in using them in new code when I could just use a dataclass (or Pydantic in certain contexts). I've only found them useful when interfacing with older code that uses dicts for structured data.
448.
▲
by
maleldil
1y ago
You might need different versions of node, python, etc., depending on the project. mise can manage those different versions for you, including installing and automatically enabling the correct version for each project.
449.
▲
by
maleldil
1y ago
The question is which plugins you used. My neovim configuration gives me "IDE-like features", yet it's noticeably faster than VS Code and others. Also, neovim has native support for LSP too.
450.
▲
by
maleldil
1y ago
It's trivial to switch from uv to other projects like pdm or poetry. uv follows the standard PEPs really closely, so most things are interoperable.
More ›