HackerLangs
TopNewTrendsCommentsPastAskShowJobs

sheept

710 karmajoined il y a 6 mois
Java (short for JavaScript)

https://sheeptester.github.io/

comments

sheept
·il y a 13 heures·discuss
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.
sheept
·il y a 13 heures·discuss
My hypothesis is that Claude is inclined to write so many comments as a way of doing additional thinking
sheept
·avant-hier·discuss
Does this respect llms.txt and robots.txt, or have you found it more effective if agents see what humans see?
sheept
·avant-hier·discuss
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.
sheept
·il y a 5 jours·discuss
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 also be used for fingerprinting.
sheept
·il y a 5 jours·discuss
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 time, I would have written a shorter letter."
sheept
·il y a 5 jours·discuss
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, which are about as ergonomic as calling a function in a web worker.

[0]: https://discourse.elm-lang.org/t/native-code-in-0-19/826
sheept
·il y a 5 jours·discuss
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, so I stopped using Elm for future projects.
sheept
·il y a 9 jours·discuss
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.
sheept
·il y a 9 jours·discuss
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/element-captu...

[1]: https://developer.chrome.com/docs/web-platform/document-pict...
sheept
·il y a 9 jours·discuss
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/standards-positions/issues/1288
sheept
·il y a 9 jours·discuss
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/en-US/docs/Web/API/HTMLGeoloca...

[1]: https://mdn.github.io/dom-examples/geolocation-element/basic... (requires Chromium)
sheept
·il y a 9 jours·discuss
It replaces the YouTube embed, so they're just doing you a favor
sheept
·il y a 11 jours·discuss
Yes, and they can do that if they wanted to. The Supreme Court has the power to interpret the Constitution.
sheept
·il y a 11 jours·discuss
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 more immigration than, say, Japan or South Korea.

[0]: https://www.cdc.gov/nchs/data/vsrr/vsrr038.pdf
sheept
·il y a 11 jours·discuss
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.
sheept
·il y a 13 jours·discuss
On Windows and Mac you can input an em dash anywhere with shift+windows+hyphen / shift+option+hyphen, respectively
sheept
·il y a 16 jours·discuss
It might be related to the liquid glass imitation in the color scheme picker
sheept
·il y a 16 jours·discuss
It highlights the Gemini models blue since that's what the article is about. The bar heights seem consistent with the values.
sheept
·il y a 17 jours·discuss
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 swipe typing sloppily, it can be hard to distinguish between pairs like on/in, of/if/I'd, it's/its, etc