Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sheept
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
181.
▲
by
sheept
7mo ago
You can't completely prevent the browser from sending the request—after all, it needs to figure out whether to block the website from reading the response. However, browsers will first send a preflight request for non-simple requests b
182.
▲
by
sheept
7mo ago
I wonder this means there could be a faster npm install tool that pulls from a registry of small utility packages that can be replaced with modern JS features, to skip installing them.
183.
▲
by
sheept
7mo ago
Because formatters are increasingly popular, I think it'd be interesting to see a language that refuses to compile if the code is improperly formatted, and ships with a more tolerant formatter whose behavior can change from version to
184.
▲
by
sheept
7mo ago
> I would love to see a language try to implement a rule where only an indented line is considered part of the previous expression. Elm does this (so maybe Haskell too). For example x = "hello " ++ "world"
185.
▲
by
sheept
7mo ago
Not only that, but they helped push for new web APIs and language features for server runtimes, like URLPattern
186.
▲
by
sheept
7mo ago
I bet that for the second random number in the same session, it is significantly less likely for an LLM to repeat its first number compared to two random draws. LLMs seem to mimic the human tendency to consider 7 as the most random, and I f
187.
▲
by
sheept
7mo ago
It depends on the minifier (SVG optimizers do this too), but yes, they may reduce the precision of colors. I checked and esbuild will turn lab() into a hex color if possible.
188.
▲
by
sheept
7mo ago
UTF-32 allows for constant time character accesses, which means that mystr[i] isn't O(n). Most other languages can only provide constant time access for code units.
189.
▲
by
sheept
7mo ago
Would it work to run a bundler over your code, so all (static) imports are inlined and tree shaken?
190.
▲
by
sheept
7mo ago
Since align is only deprecated and not removed, and Markdown is a superset of HTML (at least for CommonMark and GFM), it would be valid markdown to just use <div align=center> to center text (not like there's such a thing as inva
191.
▲
by
sheept
7mo ago
Scratch supports Korean, but Scratch benefits from using JSON instead of bytes or code points to serialize programs, which allows the user to change their display language (similar to how hard tabs let users set indentation size). There
192.
▲
by
sheept
7mo ago
This might be operating system/browser-specific. On Windows Chrome, shift-click opens in new window, ctrl in new tab, and alt downloads the link.
193.
▲
by
sheept
7mo ago
I disagree: this is not unlike including the schema in the JSON itself. This should be handled by the apps themselves, since they would have to know what the keys mean regardless. If you do want the interchange format to be the one deserial
194.
▲
by
sheept
7mo ago
I think that it's nice it's explicit that the method returns the current instant, rather than some other zero value. There's also other methods that return other types, like const now = Temporal.Now.instant() which i
195.
▲
by
sheept
7mo ago
I'm skeptical of this both because this post was largely speculation, and because I would argue Meta has no need to record every private moment for training data. After all, as the owner of massive social networks, they already have pl
196.
▲
by
sheept
7mo ago
Probably browser extensions operating on React apps
197.
▲
by
sheept
7mo ago
To be fair, there's little stopping you from putting the button action in its onclick attribute. I guess the stylistic choice of separating content, style, and interactivity eventually became a convention to keep JavaScript isolated fr
198.
▲
by
sheept
7mo ago
The meeting isn't the hard part—after all, shareholder meetings have huge audiences too. Enforcing mandatory attendance for myriads of employees is the hard part, so it's more likely mandatory in name only.
199.
▲
by
sheept
7mo ago
ctrl+G may also mean "find next" on Windows (e.g. in Chrome), so it's not particularly obscure. At least in VS Code, ctrl+G on Mac is the shortcut for "goto line" (but yes, cmd+G is "find next")
200.
▲
by
sheept
7mo ago
If you let an LLM generate it (e.g. Claude's /init), it'll be a lot more verbose then it needs to be, which wastes tokens and deemphasizes any project-specific preferences you actually want the agent to heed.
201.
▲
by
sheept
7mo ago
I guess a business reason for scroll lock in the TV UIs is that it immediately shows more recommendations as you scroll right, which I suppose could increase engagement.
202.
▲
by
sheept
7mo ago
crypto.randomUUID()?
203.
▲
by
sheept
7mo ago
Needs to be a fork. Related: https://trufflesecurity.com/blog/anyone-can-access-deleted-a...
204.
▲
by
sheept
7mo ago
Claude will load the name and description of each enabled skill into context at startup[0]; the LLM needs to know what it can invoke, after all. It's negligible for a few skills, but a hundred skills will likely have some impact, e.g.
205.
▲
by
sheept
7mo ago
Sure, but the post itself brags, > gws ships 100+ SKILL.md files Which must altogether be hundreds of lines of YAML frontmatter polluting your context.
206.
▲
by
sheept
7mo ago
This feels completely speculative: there's no measure of whether this approach is actually effective. Personally, I'm skeptical: - Having the agent look up the JSON schemas and skills to use the CLI still dumps a lot of tokens int
207.
▲
by
sheept
7mo ago
I feel like this makes sense for a platform that targets teens. Plus, I wouldn't trust TikTok to implement E2E encryption properly—who knows what they've snuck into their client.
208.
▲
by
sheept
7mo ago
Somewhat relatedly, GitHub Pages does support using URL-encoded newline characters %0A to reference file names with newlines,[0] but GitHub itself will omit the file from the web UI's tree view. [0]: https://sheeptester.gith
209.
▲
by
sheept
7mo ago
In my CLAUDE.md, I have Claude include all new prompts verbatim in the commit message body. While I haven't used Claude long enough to need my prompts, I would appreciate seeing my coworkers' prompts when I review their LLM-genera
210.
▲
by
sheept
7mo ago
Sure, the syntax is unique, but it's fairly easy to get over that. I guess I'm comparing to Rust, where not only is syntax different, but data structures like a tree with parent references aren't as straightforward (nor idiom
More ›