Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
inbx0
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
inbx0
10d ago
> And you cannot distribute an app as as HTML file. <script type="module"> console.log('Hello World!') export const a = 5 </script> Inline module scripts work fine in HTML. You can&
2.
▲
by
inbx0
22d ago
So, given that developers these days mix and match models anyway with harnesses like Pi, has anyone tried letting Claude or GPT do the coding, and Gemini do the comments and documentation? Maybe even asking it to "translate" Claud
3.
▲
by
inbx0
1mo ago
I’m happy for the author, but I feel like that blog post kind of supports parent commenter’s argument. It sounds like Slug would’ve been created even if patents were not a thing. They had their own use case for it, and that usecase alone wa
4.
▲
by
inbx0
2mo ago
Simply hosting a front-end only app is almost free on several platforms (e.g. Cloudflare). Certainly less than the $99 Apple developer membership fee. It starts getting more expensive once you add back-end servers and databases and whatnot
5.
▲
by
inbx0
2mo ago
What do you mean by runtime? The JavaScript runtimes, like V8? Yeah those are impressively fast for a dynamically typed ”scripting” language, but that has little to do with TS. TypeScript’s work ends at compilation.
6.
▲
by
inbx0
3mo ago
For me, the main benefit is deployment bundle/artifact size reduction. Mostly from dropping unneeded files from node_modules. Many packages include both esm and cjs builds, sources, docs, TS types, etc. stuff that you don’t need in pro
7.
▲
by
inbx0
4mo ago
It's an interesting discussion, but I think simply outputting text can make the software "malware", even if the output isn't executable. What if the output was To use jqwik, please login to your Office 365 account:
8.
▲
by
inbx0
5mo ago
Reminds me of the back and forth competition between Node.js and io.js that we had to endure back in the day. Worked out for the best in the end.
9.
▲
by
inbx0
6mo ago
minimumReleaseAge and lockfiles also pin down transitive dependencies.
10.
▲
by
inbx0
6mo ago
Number 1 would only be a win for zero-installs if it happened that registry was up when you made the security hotfix, since you'd need to install the depdencency the first time to get it in VC, but then suddenly down when doing a deplo
11.
▲
by
inbx0
6mo ago
> Run Yarn in zero-installs mode (or equivalent for your package manager). Every new or changed dependency gets checked in. Idk, lockfiles provide almost as good protection without putting the binaries in git. At least with `--frozen-loc
12.
▲
by
inbx0
6mo ago
- saves infra costs - saves infra headaches - devs only need to be experts in one system (or well I guess one and a half, probably there's something to learn about ParadeDB too, but probably less than in learning Lucine)
13.
▲
by
inbx0
10mo ago
At TypeScript-level, I think simply disallowing them makes much more sense. You can already replace .push with .concat, .sort with .toSorted, etc. to get the non-mutating behavior so why complicate things.
14.
▲
by
inbx0
11mo ago
I don't have much experience in dedicated vector databases, I've only used pgvector, so pardon me if there's an obvious answer to this, but how do people do similarity search combined with other filters and pagination with se
15.
▲
by
inbx0
1y ago
Ehh what. I would give some merit to arguments like "no one should use lodash in 2025 because you can do most of it with built-ins nowadays" or maybe because it doesn't tree-shake well or maybe even because it doesn't se
16.
▲
by
inbx0
1y ago
The post links to a TS issue [1] that explains > As of TypeScript 5.0, the project's output target was switched from es5 to es2018 as part of a transition to ECMAScript modules. This meant that TypeScript could rely on the emit for
17.
▲
by
inbx0
1y ago
I don't think pinning deps will help you much, as these incidents often affect transitive dependencies not listed in package.json. package-lock.json is there to protect against automatic upgrades. I know there are some reports about th
18.
▲
by
inbx0
1y ago
The main issue there is that the maintainer lost access to their account. Yanking malicious packages is better, but even just being able to release new patch versions would've stopped the spread, but they were not able to do so for the
19.
▲
by
inbx0
1y ago
fzf [1] provides the TUI. 1: https://github.com/junegunn/fzf
20.
▲
by
inbx0
1y ago
According to the description in advisory, this attack was in a postinstall script. So it would've helped in this case with nx. Even if you ran the tool, this particular attack wouldn't have been triggered if you had install script
21.
▲
by
inbx0
1y ago
Periodic reminder to disable npm install scripts. npm config set ignore-scripts true [--global] It's easy to do both at project level and globally, and these days there are quite few legit packages that don't work without
22.
▲
by
inbx0
1y ago
My guess would be because they affect property ordering, complicating the stringification. The default object property iteration rules in JS define that numeric properties are traversed first in their numeric order, and only then others in
23.
▲
by
inbx0
1y ago
SeaQuery looks like a similar dynamic query builder for Rust as Kysely is for JS/TS, so yeah, that'd probably solve the dynamic query problem. But I think parent wasn't so much asking for another library but for patterns. How
24.
▲
by
inbx0
1y ago
To quote a TV show Community character Jeff Winger: > What makes humans different from other animals? We're the only species on earth that observes Shark Week. Sharks don't even observe Shark Week, but we do. For the same reaso
25.
▲
by
inbx0
1y ago
Yes. And that is what a client should 100% do from the security standpoint. But since you mention caching - from the perf standpoint, it could sometimes be beneficial for the query planner to know the values before coming up with the query
26.
▲
by
inbx0
2y ago
They seem to be measuring things like how long it takes for the dev server to spin up, and how long HMR updates take. I don't think ESBuild offers these features out of the box. I guess it could be in the "Cold build" chart.
27.
▲
by
inbx0
2y ago
Does the JSON spec actually say that those objects should be "equal", or does it just leave that detail to implementations? In JavaScript at least, those two are not exactly "the same", in the sense that you can observe
28.
▲
by
inbx0
2y ago
It's great that Temporal is coming, and I'm sure there are bunch of other nice things coming up too, but unfortunately I don't share your optimism with the specific proposals that you mention (even though those would be very
29.
▲
by
inbx0
2y ago
isolatedModules doesn't disable enums in general, only exported const enums (which are arguably the most useful form of enums).
30.
▲
by
inbx0
2y ago
You could embed your web font inline to the stylesheet, as base64 encoded data url. <style> @font-face { src: url(data:application/font-woff2;charset=utf-8;base64,...) format('woff2'); } Yo
More ›