Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sheept
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
sheept
3mo ago
Python is 0-indexed. In OP's example, the start parameter makes i start at 1. Their C++17 example prints starting from 0. Probably a mistake. If you look at the linked page for C++20[0], other types can be put in the initializer statem
32.
▲
by
sheept
3mo ago
Even em dashes have been discouraged by some writers [0] before LLMs because they're easy to overuse. [0]: https://slate.com/human-interest/2011/05/em-dashes-why-write...
33.
▲
by
sheept
3mo ago
Vanilla JavaScript makes sense for personal projects, but if you're working on a team, I wouldn't trust other team members to not create their own frameworks that may not be as well documented. Especially nowadays with LLMs, the t
34.
▲
by
sheept
3mo ago
Why not store them as integers? Representing dates is a UI responsibility
35.
▲
by
sheept
3mo ago
Why do you need both Biome and Eslint/Prettier?
36.
▲
by
sheept
3mo ago
Personally I'm a bigger fan of base 6[0], which have many of the benefits of base 12, but the digits of simple fractions like 1/5 and 1/7 render more nicely in base 6 than base 12. [0]: https://www.seximal.net/
37.
▲
by
sheept
3mo ago
I'd've thought modern weeks have biblical origins rather than being based on quarter moon phases.
38.
▲
by
sheept
3mo ago
I would assume that "Esperanto written in pure ASCII" is referring to x-sistemo, which avoids the diacritics
39.
▲
by
sheept
3mo ago
Aren't LLMs trained on and optimized for human code? In general, anything that is concise is more effective as context for the LLM, whether it be your CLAUDE.md or code, since LLMs are meant to model human language.
40.
▲
by
sheept
3mo ago
My hypothesis is that Claude is inclined to write so many comments as a way of doing additional thinking
41.
▲
by
sheept
3mo ago
Does this respect llms.txt and robots.txt, or have you found it more effective if agents see what humans see?
42.
▲
by
sheept
3mo ago
It depends, but for larger projects, you might have tooling for TypeScript that relies on its API, which isn't available in TS 7.0.
43.
▲
by
sheept
3mo ago
Any page can silently trigger an additional multi-gigabyte download for Chrome users by just calling this API: await LanguageModel.create() Since the model is installed once per browser, LanguageModel.availability() could probably
44.
▲
by
sheept
3mo ago
It's relatively easy to write many words, but it takes more skill to express the same message with fewer words, like how video compression needs more time for fewer bytes and same quality. As Pascal once wrote, "If I had had more
45.
▲
by
sheept
3mo ago
In Elm 0.19, they removed the ability for third party packages to provide native bindings for JavaScript APIs that the language or its official packages didn't yet support.[0] The only alternative proposed by Evan is to use ports, whic
46.
▲
by
sheept
3mo ago
When I worked on an Elm app in 2020, my users reported compatibility issues with various browser extensions (e.g. Grammarly, 1Password). I personally would prioritize making my apps usable for my users over making the DX usable for myself,
47.
▲
by
sheept
3mo ago
While the use of italics feels a bit ungrammatical, it also doesn't strike me as something from an LLM. An LLM would've tried bolding it if it could, and it wouldn't have written a comment this concise.
48.
▲
by
sheept
3mo ago
Another reason why this is problematic is that their proposed standards follow Google's priorities for its own products, particularly Google Meet.[0][1] [0]: https://developer.chrome.com/docs/web-platform/elem
49.
▲
by
sheept
3mo ago
At the very least, Firefox's position on the similar <geolocation> element is positive.[0] I would assume their position for other permissions elements would be the same. [0]: https://github.com/mozilla/stand
50.
▲
by
sheept
3mo ago
The similar <geolocation> element has clickjacking prevention enforced by the browser[0], and even if the website finds a way around it, it still shows the normal permission prompt.[1] [0]: https://developer.mozilla.org
51.
▲
by
sheept
3mo ago
It replaces the YouTube embed, so they're just doing you a favor
52.
▲
by
sheept
3mo ago
Yes, and they can do that if they wanted to. The Supreme Court has the power to interpret the Constitution.
53.
▲
by
sheept
3mo ago
I believe OP is referring to how immigration is the only known working solution to a decreasing population. The US fertility rate is already 1.6 births per woman[0], and the population is only not decreasing because it still receives far mo
54.
▲
by
sheept
3mo ago
What you're doing is essentially what Zod is designed to avoid. If you tolerate needing a separate build step more than having to define types with Zod's syntax, then it makes sense not to use Zod since it's not made for you.
55.
▲
by
sheept
3mo ago
On Windows and Mac you can input an em dash anywhere with shift+windows+hyphen / shift+option+hyphen, respectively
56.
▲
by
sheept
3mo ago
It might be related to the liquid glass imitation in the color scheme picker
57.
▲
by
sheept
3mo ago
It highlights the Gemini models blue since that's what the article is about. The bar heights seem consistent with the values.
58.
▲
by
sheept
4mo ago
It would be nice if there was a swipe typing keyboard that was similar to Chinese/Japanese IMEs where you can swipe out a full phrase and the keyboard can use it to fix short/ambiguous words based on context. Today, when I'm
59.
▲
by
sheept
4mo ago
I can't speak for this keyboard, but at least on Gboard, if you type out a word a few times, it'll be stored in its suggestions dictionary and you'll be able to swipe type it.
60.
▲
by
sheept
4mo ago
That is true. I wonder if it could be possible to let the user supply and wrap the app around their own, trusted installation of Deno (rather than the one bundled in the app) to specify permissions.
More ›