Advertisement · 728 × 90

Posts by Ashley Claymore

Why createMemo is not lazy? · solidjs solid · Discussion #2416 I realized that createMemo is not lazy - it calls callback as soon as createMemo defined. This leads to several inconsistenses Current state of view might not need actual value of that memo, so com...

Good to know! I've posted here if useful to discuss further github.com/solidjs/soli...

7 hours ago 1 0 0 0

Is the flight protocol stable enough to not be concerned about long lived rsc caches? Or do the caches take react versioning into account?

1 week ago 1 0 1 0

I wish more pubs would have pool tables again 😭

1 week ago 2 0 0 0

I guess the bigger difference is that import bindings can't be nested, even if the value is another namespace.

2 weeks ago 1 0 0 0

Agreed, just speculating what the rational might have been at the time

2 weeks ago 1 1 1 0

Maybe because the names import is a live binding, if it's an `export let` the value can change over time - so wanted them to have different syntax to clarify they are different.

I do sometimes wish I could type annotate destructured arguments in TS like:
function f({ x ::string }) { ... }

2 weeks ago 0 0 1 0

When you are billed per token there are still financial constraints.

3 weeks ago 0 0 0 0

Loved it! I've had the audiobook downloaded since finishing the Martian but hadn't started it. Will definitely be listening to it now.

3 weeks ago 0 0 1 0
Advertisement
Preview
GitHub - tc39/proposal-module-declarations: JavaScript Module Declarations JavaScript Module Declarations. Contribute to tc39/proposal-module-declarations development by creating an account on GitHub.

With github.com/tc39/proposa... you essentially get that

3 weeks ago 1 0 1 0

The first thing I did check was if it had implemented `Promise.allKeyed` 😃

3 weeks ago 2 0 0 0

@ryansolid.bsky.social would it make sense for memos created without an owner scope to default to lazy?
Closer to how preact-signals only link if there is an active effect.

Maybe only useful when solid signals are used on their own, which is maybe not an important use case for the package?

3 weeks ago 3 0 1 0

All good up to 1:09 and then things started to feel less consistent for sure.
I would have expected the behavior to remain consistent as it is composed.

3 weeks ago 0 0 1 0

While many find aspects of JS odd. It's clearly very well defined oddness.
Great spec. Great tests. Multiple OS implementations.
This is why it's such a great language!

3 weeks ago 11 1 0 0
Preview
Session Proposal: stabilization of module customization hooks/vm.Module · Issue #482 · openjs-foundation/summit Proposal Type of the session Collaborate Workshop Talk Estimated duration of the session 1h Date and Time of the session Level Beginner Intermediate Advanced Pre-requisite knowledge Knowledge about...

github.com/openjs-found...

3 weeks ago 3 0 0 0

real VHS nostalgia vibes

4 weeks ago 1 0 0 0

Can't believe Ryan got to meet Dr Becky!

4 weeks ago 0 0 0 0

This is how they will escape the sandbox.
"I'll finish the code if you do something for me first..."

1 month ago 3 0 1 0

`as any as MyType` 😱
`as unknown as MyType` 😮‍💨

1 month ago 2 0 1 0
Advertisement

Sudden panic at seeing an email saying my order for the Font Family was being processed.

I didn't buy any fonts 😦 the sans-serif family is good enough for me.

Then remembered the climbing wall I went to earlier was called The Font 😮‍💨

1 month ago 10 1 0 0

My Chemical Universe

1 month ago 0 0 0 0

Oh no! @akiro.se is missing in the photo - we just have her rainbow

1 month ago 1 1 1 0

My current guesses: it halts or it does not halt

1 month ago 2 0 0 0

I've narrowed it down to two possible answers

1 month ago 7 0 1 0
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...

1 month ago 2 0 0 0

I consume my photons raw, straight from the source.

1 month ago 0 0 0 0
Advertisement
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...

1 month ago 4 0 0 0
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 🎉

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...

1 month ago 17 2 1 0

1000s of optimistic lanes here we come!

1 month ago 1 0 0 0

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 month ago 1 0 0 0

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 month ago 1 0 1 0