Better HN
topnewbestaskshowjobs
Log inSign up

luwes

44 karma · joined Aug 24, 2012 (14y ago) · 18 submissions

https://wesleyluyten.com
Submissions

comment 8mo ago · link · parent

VJS contributor here. It still matters for the page load time and start up time of the video which could be important to engage the user quick enough depending on the use case. We hint at this in the home page under the v10 is built different title. By importing the player bundle with the same import path via ESM in your bundle build it should deduplicate automatically. Hope this helps!

2.

Show HN: castable-video(github.com ↗)

2 points · by luwes · 4y ago · 1 comment

comment 6y ago · link · parent

Hooks are nothing new, it's just repackaging of

https://github.com/dominictarr/observable https://github.com/adamhaile/S

Mobx and Vue use the same technique for running computeds.

As does Solid and Sinuous, etc...

4.

Show HN: Handlebars just got a trim, alternative JavaScript template engine, 2kb(github.com ↗)

2 points · by luwes · 7y ago · 2 comments

5.

JavaScript Framework Benchmark – Speed X Size Scatter Graph(luwes.github.io ↗)

2 points · by luwes · 7y ago · discuss

comment 7y ago · link · parent

also fixed https://codesandbox.io/s/sinuous-array-bug-fixed-4s2nr

comment 7y ago · link · parent

This is fixed in v0.12.3, https://codesandbox.io/s/sinuous-counter-hmp8x

The issue below is still to be fixed. It currently returns an array when it should be a DocumentFragment. It's related to the popular `htm` package that Sinuous uses.

html`${seq.map(i => html`<li>Counter #${i} ${counter}</li>`)}`

comment 7y ago · link · parent

@aitchnyu it is similar to Svelte, a lot simpler, early stages, less features though.

I think one of the upsides of Sinuous is that stays much closer to plain JS and to the web standards.

comment 7y ago · link · parent

it's indeed not possible, that's why there is a `map` module for rendering lists.

comment 7y ago · link · parent

thanks for reporting, seems to be a bug. added to GH issues and will fix asap

comment 7y ago · link · parent

@localvoid thanks for the investigation, Sinuous can get around this with the template module I believe.

Also Sinuous doesn't use the same library as Solid or S.js for tracking dependencies. I'll do some investigating if it has the same issue that you posted.

comment 7y ago · link · parent

Thanks for the feedback!

`o` is an alias for `observable`. `observable` can be used as well.

`h` is the pragma, comes from hyperscript. it's used by a lot of libraries as the createElement function name so I didn't think this needed a more descriptive name.

13.

Show HN: Sinuous – Small, fast, reactive UI library(github.com ↗)

76 points · by luwes · 7y ago · 44 comments

14.

PostCSS plugin to generate a custom CSS var shim(github.com ↗)

1 points · by luwes · 9y ago · discuss

comment 12y ago · link · parent

Shamelessly promoting my text selection and range API polyfill, https://github.com/luwes/selection-polyfill

Just to make clear, this would enable Scribe to work in older IE browsers.

comment 14y ago · link · parent

Vitamin D helped me too, it seemed to increase my energy.

It makes sense to add this to your diet if you're working behind a desk indoors most of the day.