Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sheept
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
1.
▲
by
sheept
4d ago
Even though the never type has been experimental for a while, I've seen `!` used in the docs,[0] so at this point, Rust developers are probably already aware of what it means even if they haven't used it before. [0]: Example: std:
2.
▲
by
sheept
8d ago
In addition to making the sidebar dismissable on small screens, it'd be nice to add touch-action: none to the canvas so rotating the object doesn't get interpreted as a scroll on touchscreens. Right now, at least in Android Chrome
3.
▲
by
sheept
28d ago
That wouldn't be open source. OSI includes the clause "No Discrimination Against Fields of Endeavor"[0] for its definition of open source. Famously, the JSON license[1] has a clause "The Software shall be used for Good,
4.
▲
by
sheept
1mo ago
It'd be neat if you could pan a slider through the year to see the sunrise sunset times change
5.
▲
by
sheept
1mo ago
Dragging the globe around isn't working on touch; it feels like it's missing touch-action: none
6.
▲
by
sheept
1mo ago
I use dontAsk mode[0] with read access to the entire file system, write access to files from the working directory[1], some git commands (git commit yes, git push no), and a script wrapping Deno with the same read/write permissions (sa
7.
▲
by
sheept
1mo ago
There's several web APIs for browser window positioning, like screenX/Y[0] (which is what OP uses), which allows for those classic pop-up based browser games from over a decade ago, like Browser Ball.[1] [0]: demo: https:/&#
8.
▲
by
sheept
2mo ago
Video generation models generate videos of a predetermined duration, so if a character finishes a line but there's still seconds remaining, then the model still has to fill it in
9.
▲
by
sheept
2mo ago
In JavaScript, it's Math.PI.toString(2) Who knows how optimized Python or JavaScript's implementations are, but I'd imagine printing the binary representation of floating point numbers is relatively easy to implement
10.
▲
by
sheept
2mo ago
HTML is case insensitive, so <Button> is the same as <button>, and custom element names must have a hyphen. Your component regex represents a JSX limitation, but web components do not need React. Plus, if you capitalize the firs
11.
▲
by
sheept
2mo ago
I guess that makes sense. Since most non-privacy-focused Android distributions don't let users turn off the internet permission, keeping the permission secure likely ceased to be a priority. The full list of bypasses is likely much lar
12.
▲
by
sheept
2mo ago
It's pretty interesting that while both languages still receive new features, Java seems to stay ahead of JavaScript: - Java has long had a modern replacement for Date, while JavaScript's recently standardized Temporal API still i
13.
▲
by
sheept
2mo ago
The main drawback with the page's unstyled design is that the page is not mobile friendly. Publishing web pages by manually editing HTML files is still very common today; any GitHub Pages blog does this.
14.
▲
by
sheept
2mo ago
One of the strengths of TypeScript besides its expressiveness is that it's compatible with the massive npm ecosystem. Most packages only ship untyped JavaScript with type declarations defining the interface,[0] so realistically you
15.
▲
by
sheept
2mo ago
It'd be nice if there was a live demo without needing to clone the repo. Though I suppose I could just try it out with a bookmarklet: javascript:import('https://esm.sh/writemark-editor').then(() => doc
16.
▲
by
sheept
2mo ago
I'm surprised it doesn't use proper HTML by default. I wasn't able to tab focus on the Administrator button on the login screen, and it turns out it's because the entire UI is div spam.
17.
▲
by
sheept
2mo ago
I personally rely on this behavior of LLMs. For example, for reviewing prose, I might ask the LLM to find five issues. If there are obvious issues I missed, then it'll find them. But if all the issues it lists are minor or hallucinated
18.
▲
by
sheept
2mo ago
> - dash: compounds word-parts (Sarbanes-Oxley) That's a hyphen, and (to be pedantic) style guides usually do not consider it a dash. There's also the 2-em dash in some style guides for redacting words, and since care needs to
19.
▲
by
sheept
2mo ago
It is an en dash, not an em dash, since it's about as wide as an n. Some software substitutes a double hyphen -- with an en dash rather than em, and use the triple hyphen --- for the em dash. Perhaps Hacker News' title formatter i
20.
▲
by
sheept
2mo ago
That's interesting. I think the bikes-facing-left bias probably comes from how humans use bikes: the kickstand is on the left, so people likely hold and approach bikes from its left. Looking online, the kickstand is apparently on the
21.
▲
by
sheept
2mo ago
I find it mildly interesting how your comment repeats itself but with different phrasing
22.
▲
by
sheept
2mo ago
Machine learning used to be used as a buzzword alongside AI, though nowadays after the release of ChatGPT it seems they've settled on AI.
23.
▲
by
sheept
2mo ago
Why would it be at odds with accessibility? The text contrast is excellent in each section, and the light/dark segments clearly define the border between sections. Forced dark mode can be difficult to read for users with astigmatism, b
24.
▲
by
sheept
2mo ago
Designs can't be easily split into a pure light or dark mode, though. Before light/dark modes were popularized, it was common to have some parts be "dark" and other parts be "light," depending on the design (fo
25.
▲
by
sheept
2mo ago
Linguistically it's particularly interesting since it marks the habitual aspect, and standard English has no grammatical equivalent.[0] [0]: https://ygdp.yale.edu/phenomena/invariant-be#who-says-this
26.
▲
by
sheept
2mo ago
It only works if you give it a screenshot, but it wouldn't work to block AI scrapers or fetch tools, and I think if printed out, it wouldn't work reliably if you took a photo, especially from afar
27.
▲
by
sheept
2mo ago
My guess is that it takes time to research what universal behavior users expect from a component based on examples in existing software. It's universal, so it has to work with everyone: mouse, keyboard, touch; large monitors and tiny
28.
▲
by
sheept
2mo ago
Isn't that alternate reality the current reality? For whatever reason, developers and some users expect an app to look the same across all platforms, while also looking distinct from other apps—otherwise, the app looks indistinguishabl
29.
▲
by
sheept
2mo ago
The severity depends on where you are, even within a country, but in many places you can't authentically "function as an adult in the world" without a phone, unless you want to roleplay an adult from the previous century. In
30.
▲
by
sheept
2mo 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
More ›