Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bakkoting
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
bakkoting
11mo ago
I don't think there's literally any conforming implementations of modern ECMAScript by that definition.
32.
▲
by
bakkoting
1y ago
Google mostly does obey web standards that are set by an industry consortium (WHATWG, W3C, or in the case of JavaScript EMCA). Chrome has the best compliance with standards of any of the big three (see wpt.fyi) - which is not surprising, be
33.
▲
by
bakkoting
1y ago
It doesn't require 2FA in general, but it does for people with publish rights for popular packages, which covers most or all of the recent security incidents. https://github.blog/changelog/2022-11-01-high-impact-pa
34.
▲
by
bakkoting
1y ago
Only in the sense that any other software on the developers' machines adds a certain level of risk.
35.
▲
by
bakkoting
1y ago
> And how many dependencies does Hono have? Zero. I'm guessing you're looking at the `devDependencies` in its package.json, but those are only used by the people building the project, not by people merely consuming it.
36.
▲
by
bakkoting
1y ago
This is the approach taken by node's built-in argument parser util.parseArgs.
37.
▲
by
bakkoting
1y ago
It also exposes a function which does type stripping (as `import { stripTypeScriptTypes } from 'node:module'`). This lets you build simple web apps (i.e., those with no frontend dependencies) as pure TypeScript, including the fron
38.
▲
by
bakkoting
1y ago
The 7.2% number is already adjusted for inflation. Historically the stock market has gotten about 10% nominal return, 6.5-7% real.
39.
▲
by
bakkoting
1y ago
As far as I'm aware none of those were ever supported in more than one engine (specifically Firefox) and so cannot reasonably be considered to have been part of JavaScript. JS really does make a point of not removing things. There are
40.
▲
by
bakkoting
1y ago
It was neither a design choice nor a technical limitation. It was a big complicated thing which necessarily involved fiddly internal work and coordination between relatively isolated groups. It got done when someone (Joyee Cheung) actually
41.
▲
by
bakkoting
1y ago
Kontext is probably better at this specific task, if that's what Mistral is using. Certainly faster and cheaper. But: OpenAI just yesterday added the ability to do higher fidelity image edits with their model [1], though I'm not s
42.
▲
by
bakkoting
1y ago
That's not the last progress update. Most recent is https://github.com/tc39/notes/blob/d5b5db6969359fad11b6898b7... . Implementations are ongoing and open source, so you can contribute if you want it to c
43.
▲
by
bakkoting
1y ago
> Apparently it has now finally arrived in ES2026 ES2017 [1]. The MDN docs always link the latest version of the spec; the year in the link doesn't correspond to the version where it was added. The proposal was already mostly done a
44.
▲
by
bakkoting
1y ago
Anthropic's guide to using Claude Code [1] is worth reading. Specifically, their recommended workflow is "first ask it to read the code, then ask it to make a plan to implement your change, then tell it to execute". That soun
45.
▲
by
bakkoting
1y ago
Both Firefox [0] and Chrome [1] are working on successors which rely on permissions prompts instead of preflight requests. [0] https://groups.google.com/a/mozilla.org/g/dev-platform/c/B8o... [1] ht
46.
▲
by
bakkoting
1y ago
The service worker jank, while conceptually hacky, is actually remarkably un-janky and not really noticeable to users! It's very much fire-and-forget unless you also wanted to have another service worker (in which case it's time f
47.
▲
by
bakkoting
1y ago
For readability I'd recommend using DisposableStack instead of making an object, though either works: using disposer = new DisposableStack; disposer.defer(yourCallbackHere);
48.
▲
by
bakkoting
1y ago
Yup, or to transfer them anywhere else. One use case is for classes which allocate resources in their constructor: class Connector { constructor() { using stack = new DisposableStack; // Foo a
49.
▲
by
bakkoting
1y ago
For APIs which don't support this, you can still use `using` by using DisposableStack: using disposer = new DisposableStack; const resource = disposer.adopt(new Resource, r => r.close()); This is still simpler than try&
50.
▲
by
bakkoting
1y ago
New models suddenly doing much better isn't really surprising, especially for this sort of test: going from 98% accuracy to 99% accuracy can easily be the difference between having 1 fatal reasoning error and having 0 fatal reasoning e
51.
▲
by
bakkoting
2y ago
No, there are quite a lot of other edge cases. E.g. you also need them before backticks and in many places in class bodies.
52.
▲
by
bakkoting
2y ago
JavaScript is being developed with the assumption that wasm will continue to exist. For example, JS is unlikely to get SIMD support because wasm can do SIMD in a cleaner way than JS can. (I am one of the people developing JavaScript.) Rathe
53.
▲
by
bakkoting
2y ago
Note that the new disposable protocol in JavaScript is unrelated to garbage collection; it's more like Go's `defer`. The grandparent is talking about JavaScript's somewhat older FinalizationRegistry.
54.
▲
by
bakkoting
2y ago
Enabling "compact mode" in the settings helps a lot with that. My discord client looks a lot like my IRC client.
55.
▲
by
bakkoting
2y ago
> That's a thing that UTC or timezone-aware Datetimes can't help with. Modern datetime systems (including Temporal) use identifiers rather than offsets, which are almost as good as a location as long as governments don't r
56.
▲
by
bakkoting
2y ago
Lots of things are logically timezone-unaware. E.g., I have an alarm that goes off at 6AM every day; it should do so whatever timezone I'm in. Or, some holiday happens on the 14th of the month, not for a specific 24-hour period in a sp
57.
▲
by
bakkoting
2y ago
Every version of a browser released after 2011 has supported strict mode.
58.
▲
by
bakkoting
2y ago
There's some progress on that proposal, just happening elsewhere. https://github.com/tc39/proposal-esm-phase-imports defines machinery for importing a ModuleSource object which you can instantiate as a Worker, and
59.
▲
by
bakkoting
2y ago
I've been writing JavaScript since I was about your son's age and am now one of the editors of the JavaScript specification. His code is much much better than mine was at his age! I have one piece of feedback for him about the cod
60.
▲
by
bakkoting
2y ago
> I would guess worst case QuickJS probably can compile to WASM That's actually exactly what Figma is doing for their plugins. [1] Seems to be working ok, though not without some pain [2]. [1] https://www.figma.com/b
More ›