Ashley Claymore

Ashley Claymore

@ashley-c.bsky.social

JavaScript Infrastructure & Tooling at Bloomberg. TC39 Delegate. London.

734 Followers 266 Following 577 Posts Joined Oct 2023
21 hours ago

My current guesses: it halts or it does not halt

2 0 0 0
1 day ago

I've narrowed it down to two possible answers

7 0 1 0
2 days ago
Preview
CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications(allocator:sourceDescription:metadataSpecifications:formatDescriptionOut:) | Apple Developer Documentation Creates a metadata format description by extending an existing description with the values you specify.

ObjectiveC: hold my drink:
developer.apple.com/documentatio...

2 0 0 0
3 days ago

I consume my photons raw, straight from the source.

0 0 0 0
4 days ago
Preview
Naming bikeshed (because every proposal needs one) · Issue #2 · tc39/proposal-object-keys-length @johnnyreilly asks Question: we have length for Arrays, and size for Sets. I'm used to count in other languages/APIs but I can't recall it in a JS context (maybe I'm misremembering). Would this bec...

github.com/tc39/proposa...

4 0 0 0
5 days ago
JSON.parse is parsing some JSON with a number that is larger than max safe integer.

A breakpoint has been hit inside the 'reviver' callback passed to JSON.parse - the debugger shows the values of the arguments that were passed to the function.

The traditional 2nd 'value' argument passed to the callback is `typeof number` and has been rounded down.
However the callback now also receives a 3rd 'context' argument which contains the original source string of the number 🎉

One use case for the new `JSON.parse` source API: adding custom handling for floating point rounding (e.g. error or switch to BigInt):

proposal: github.com/tc39/proposa...
mdn: developer.mozilla.org/en-US/docs/W...

16 2 1 0
6 days ago

1000s of optimistic lanes here we come!

1 0 0 0
1 week ago

thanks for the stackBlitz that's very helpful.
I was trying to get an understanding of the core signal primitives that would sync the effects that UI rendering would then be built on top of but looks like effects set to 'render' mode _are_ the primitive.

1 0 0 0
1 week ago

Ah I was just using createTrackedEffect as I was being lazy. I really like that the createEffect API is split by default - I was worrying about signal reads throwing between real side effects and forcing the split is a nice solution

1 0 1 0
1 week ago

I changed the import map to point to 2

0 0 1 0
1 week ago
Solid Playground Quickly discover what the solid compiler will generate from your JSX template

I was having fun playing around with the new APIs. I was expecting this code to not "tear" and the slower effect would also hold up the faster effect. But that's not what I'm seeing.
Looks like I need to use an async action to hold up all deps of a value?
playground.solidjs.com/anonymous/8a...

0 0 1 0
1 week ago

I spot a @johnnyreilly.com in his natural habitat (by the Thames)

6 0 0 0
1 week ago

I don't think there is a mapping page. Under the hood it uses amaro, which is a wrapper around swc.
So to know if certain syntax is supported you'll need to work backwards from when it was added to swc.

2 0 1 0
1 week ago

Yeah import extensions are the main complexity there. As still nice to be able to run the `.ts` directly during `--test`.

0 0 0 0
1 week ago
Modules: node:module API | Node.js v25.7.0 Documentation

As long as you're using the right versions of Node.js yeah! It follows the same approach as ts-blank-space, replacing type annotations with whitespace.

nodejs.org/api/module.h...

2 0 1 0
1 week ago
A `package.json` with zero dependencies and the following build script:

node -p "require('node:module').stripTypeScriptTypes(''+fs.readFileSync(0))"<index.ts>index.js

If anyone needs a silly, not portable, zero dependency, one liner TypeScript build script that can only handle a single file. Look no further!

19 0 2 0
1 week ago

The other day I had an AI saying that there was no such thing as Date.prototype.toTemporalInstant.

Even after I gave it the link to the mdn page it was still very suspicious and didnt give me a "you're absolutely right"

1 0 2 0
1 week ago
Preview
Add abortSignal.addAbortCallback by jakearchibald · Pull Request #1425 · whatwg/dom This PR is a discussion starter. The goals: Make progress on allowing TC39 able to adopt/use AbortController and AbortSignal without requiring Event and EventTarget. Provide a system where abort &...

github.com/whatwg/dom/p...

1 0 0 0
1 week ago
Preview
Add Explicit Resource Management update to agenda by rbuckton · Pull Request #2048 · tc39/agendas

'using` isn't stage 4 yet.
If it gets conditional advancement at the plenary in 1 weeks time then it might make it in before ES2026 🤞🏻
github.com/tc39/agendas...

1 0 1 0
1 week ago

I don't immediately hate that code either.
I would love to start seeing more code unattach their abort handler when they complete - it's way too uncommon today.

1 0 0 0
1 week ago

Slide 9 isn't using 'using` on the DisposableStack btw

0 0 1 0
2 weeks ago
Preview
MockMethod memory leak · Issue #41 · 43081j/hanbi Each call to mockMethod creates a long lived restore function that leaks if never used. I'm wondering: might be worth documenting the risk of not calling `restore' after tests mockMethod could eith...

or maybe easier to discuss on gh
github.com/43081j/hanbi...

0 0 0 0
2 weeks ago

Looks like creating method stubs is a leak until restore is called.
Maybe worth calling out in the README @43081j.com?

0 0 1 0
2 weeks ago

"See this stash, don't try this again - you will lose marks"

1 0 1 0
2 weeks ago

Is this the one you're implementing in prolog?

3 0 0 0
3 weeks ago
Preview
Mutable Signals - Reactivity's Missing Link YouTube video by Ryan Carniato

Hey! I've got this stream queued up to watch next. Looks like it covers stores, nested getters, and diffing.

www.youtube.com/live/jfZdl3Q...

1 0 0 0
3 weeks ago

Thanks for the extra info Jovi!

1 0 1 0
3 weeks ago

I was reading the signals docs and was a little confused by preactjs.com/guide/v10/si...
The example shows passing in global signal, but looking at the implementation it looks like that would return Signal<Signal>.
I'm wondering if I'm missing something or if the docs are not the best example

2 0 1 0
3 weeks ago

Thanks Ryan! Much appreciated. I'll have a dig back though the old streams around that time.

0 0 0 0
3 weeks ago

@ryansolid.bsky.social was there a stream where you covered the solid 2.0 createStore ideas?
You talked about it briefly in the more recent stream and it sounded very interesting - only diffing store changes when there is a known listener (I think thats what I heard).
Thanks!

0 0 2 0