Viewing profile — throwitaway1123
throwitaway1123
HN member- Joined
- Tue, Nov 28, 2023, 9:23 AM UTC
- HN karma
- 469
- Public activity
- 319 items
- HN profile
- View on Hacker News ↗
About throwitaway1123
Recent public activity
-
comment
Comment #45007062
There's actually a library called ast-grep which does something very similar to what you're describing. They have an example in their introduction which performs a find and replace…
-
comment
Comment #44966624
For anyone looking for context on smooshgate: https://developer.chrome.com/blog/smooshgate
-
comment
Comment #44954602
Yes, as you pointed out, not only can bundlers tree shake namespace imports, but they're literally used in the esbuild documentation to demonstrate the concept of tree shaking. The…
-
comment
Comment #44945796
Alternatively, with namespace imports in JS you can write [1]: import * as someLibrary from "some-library" someLibrary.someFunction() Which works pretty well with IDE autocomplete …
-
comment
Comment #44934967
Somewhat related: you technically can access some type metadata in TypeScript at runtime using the `emitDecoratorMetadata` and `experimentalDecorators` tsconfig options, along with…
-
comment
Comment #44818378
> I do wonder if this makes the importable gets (via type: json) a reality like assert was going to. Yes, the JSON modules proposal is finished. https://github.com/tc39/proposal-js…
- comment
-
comment
Comment #44785851
Which browsers have you tested this in? I ran the feature detection script from the Chrome docs and neither Safari nor Firefox seem to support fetch upload streaming: https://devel…
-
comment
Comment #44781211
Enums and parameter properties can be enabled with the --experimental-transform-types CLI option. Not being able to import TypeScript files without including the ts extension is de…
-
comment
Comment #44781127
In Node 22.7 and above you can enable features like enums and parameter properties with the --experimental-transform-types CLI option (not to be confused with the old --experimenta…
-
comment
Comment #44494016
Node does have a permissions system, but it's opt in. Many runtimes/interpreters either have no sandbox at all, or they're opt in, which is why Deno's sandbox is an upgrade, even i…
-
comment
Comment #44493924
> you can't just allow exact what you need in that category? You have to allow the entire category and then deny everything you don't want/need? No, you can allow access to specifi…
-
comment
Comment #44446619
The repeat directive I mentioned as an example of a custom looping control flow construct used in a tagged template is the exact same one another commenter later mentioned (and you…
-
comment
Comment #44440055
I certainly don't think I'm talking past you, but I can't force you to elaborate.
-
comment
Comment #44439324
JSX was also created with the intention of using traditional conditional/looping constructs, but that hasn't stopped Solid and Preact from repurposing it for fine grained reactivit…
-
comment
Comment #44438815
> This is why both SolidJS and Vue Vapor both have helpers for rendering lists and conditional elements Haven't these tagged template libraries coalesced around the html` ` syntax …
-
comment
Comment #44408572
You clearly have an axe to grind, and I'm not particularly interested in proselytizing. If you don't find the Declarative Shadow DOM useful, that's fine! The example I was respondi…
-
comment
Comment #44406656
> First off, what’s with the pointless JavaScript? There’s no need for imperative code here. Exactly, I'm not sure why you've included the JS. The whole point of the Declarative Sh…
-
comment
Comment #44406616
You absolutely can. It's the primary purpose of the DSD (Declarative Shadow DOM), one of the many new specifications people complain incessantly about. ::slotted(*) { font-weight: …
-
comment
Comment #43956482
> you have to explicitly specify mode: open The mode does not toggle the shadow DOM on and off. It just specifies whether or not the element's shadowRoot object is a public propert…
-
comment
Comment #43948276
It's worth pointing out that Node has a built in globbing function: https://nodejs.org/docs/latest-v24.x/api/fs.html#fspromisesg... > Also there's arguably design. Should a 'glob' …
-
comment
Comment #43341209
> which hinged on your definition of what the word "inevitable" means is the narrowest possible interpretation of my statement. My argument does not hinge upon the definition of th…
-
comment
Comment #43340511
I wrote 362 words on why language rewrites are a faulty indicator of language quality with multiple examples and anecdotes, and you hyper-fixated on the very first sentence of my c…
-
comment
Comment #43340255
> That is not my intention. Perhaps you are reading absolutes and chasing after black and white statements. The first comment I wrote in this thread was a response to the following…
-
comment
Comment #43339297
Rather than fixating on this single Prisma example, I'd like to address your larger point which seems to be that all greenfield projects are necessarily best suited to low level la…