Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
391.
▲
by
maleldil
1y ago
> Normally no one talks anymore about things like buffer overflows, use after free,... since years Some of the biggest vulnerabilities of recent years (e.g. Heartbleed) were out-of-bounds access. The most common vulnerability sources are
392.
▲
by
maleldil
1y ago
The Microsoft official Python extension uses Pylance, which is a closed-source extension of Pyright with additional features such as built-in type stubs. This is probably what you saw.
393.
▲
by
maleldil
1y ago
I don't know where the AI summary is getting the numbers from, but there was an article recently in the front page with more statistics about this: https://ourworldindata.org/britain-safest-roads-history .
394.
▲
by
maleldil
1y ago
This is the idiomatic way of declaring empty slices in Go, and it prints true: var slice []string fmt.Println(slice == nil)
395.
▲
by
maleldil
1y ago
I've never seen Pylance automatically install anything. Are you talking about the stubs that come packaged with Pylance, which Microsoft maintains?
396.
▲
by
maleldil
1y ago
Not in Go. Empty slices and empty maps are nil, so it's ambiguous.
397.
▲
by
maleldil
1y ago
This is answered in the article: > This will have multiple use cases for Home Office, an example could/would be to assist in determining the age of those who are encountered without verifiable identity documentation.
398.
▲
by
maleldil
1y ago
Nitpick: this looks like Python. You don't need + to concatenate string literal. This is the type of thing a linter can catch.
399.
▲
by
maleldil
1y ago
How does this relate to monads? They have a proper definition of the signatures required and the laws they must obey.
400.
▲
by
maleldil
1y ago
> standing up for the interests of US tech companies Imagine if they stood up for the interests of citizens instead.
401.
▲
by
maleldil
1y ago
How does the existence of LLM features impact the quality of the rest of the editor? It's a single toggle to disable everything [1]. [1] https://zed.dev/blog/disable-ai-features
402.
▲
by
maleldil
1y ago
That's per-capita. China is by far the biggest polluter overall, and it is still increasing. https://ourworldindata.org/explorers/co2?country=CHN~USA~IND...
403.
▲
by
maleldil
1y ago
You're greatly overrating how difficult Rust is. The wealth of high-quality software being written in it shows many people think it's worth the effort.
404.
▲
by
maleldil
1y ago
> censored communist LLMs Are you seriously calling OpenAI and Anthropic "communist"?
405.
▲
by
maleldil
1y ago
> It also required fundamental changes to the interpreter to accommodate it: a rewrite of the parser from simple LL(1) to PEG. The PEP 617[1] (the PEG change) doesn't mention pattern matching at all. [1] https://peps.pyth
406.
▲
by
maleldil
1y ago
Ecosystem. It's much easier to find libraries for Rust.
407.
▲
by
maleldil
1y ago
Python doesn't require self to be passed. You need it in method definitions, but not calls.
408.
▲
by
maleldil
1y ago
Is Pascal still used on macOS today? Pascal/Delphi was relevant 20 years ago, but it isn't anymore.
409.
▲
by
maleldil
1y ago
Horribly designed page. Why does everything need to blink? Why is the text so poorly rendered? You can accomplish a retro design while retaining some semblance of readability.
410.
▲
by
maleldil
1y ago
The argument is that there are two separate ideas: configuration for macOS apps (i.e., .app bundles) should be placed in Application Support (a platform standard), while CLI tools should be placed in .config (not a standard, but common prac
411.
▲
by
maleldil
1y ago
Typer is very convenient. I don't believe anyone manually parses arguments manually in Python where we have argparse in the standard library, and Typer is a step forward from that.
412.
▲
by
maleldil
1y ago
I use pyright with typeCheckingMode: strict and enforce that via checks in CI. You still have the Any/type: ignore escape hatches when necessary. I haven't written fully dynamic Python in years.
413.
▲
by
maleldil
1y ago
From the point of view of the network, does it matter if it's 200 unique people or the same person 200 times? The capacity used is the same either way.
414.
▲
by
maleldil
1y ago
> At the state fairgrounds in Lebanon, Tennessee, Agriculture Secretary Brooke Rollins said Monday that the agency will no longer allow “businesses to use your taxpayer dollars to fund solar projects on prime American farmland, and we wi
415.
▲
by
maleldil
1y ago
So? Other languages with pattern match similarly have such double indentation. C-style switch with unintended cases is weird.
416.
▲
by
maleldil
1y ago
Python map/filter/zip/etc. return generators, so they're lazily evaluated.
417.
▲
by
maleldil
1y ago
I don't think the languages are comparable. Go tries to stay simple (whatever that means), while D is a kitchen-sink language.
418.
▲
by
maleldil
1y ago
That's an exaggeration. This can be true in certain cases, but it is not a general rule. YJIT is still orders of magnitude slower than C.
419.
▲
by
maleldil
1y ago
Microsoft will eventually (TBD) remove Manifest v2 support from Edge, too[1]. > Manifest V2 extensions will no longer function in Microsoft Edge, even with the use of enterprise policies. [1] https://learn.microsoft.com/e
420.
▲
by
maleldil
1y ago
Soon, you won't be able to install it locally because the API it relies on will no longer be available. Use Firefox.
More ›