Commit Graph
115 Commits
Author SHA1 Message Date
Jonathan Kelley 6aaad1c9ef wip: heuristics engine 2021-07-15 04:17:45 -04:00
Jonathan Kelley 37ed4bed8c wip: more work on suspense and documentation 2021-07-15 03:38:09 -04:00
Jonathan Kelley 4837d8e741 feat: suspense! 2021-07-15 00:40:37 -04:00
Jonathan Kelley de9f61bcf4 feat: more suspended nodes! 2021-07-14 23:18:02 -04:00
Jonathan Kelley c52af221f7 wip: basic support for scheduled rendering 2021-07-14 18:19:51 -04:00
Jonathan Kelley e7238762ae feat: architecture document and edit list 2021-07-14 17:04:58 -04:00
Jonathan Kelley 3a57b94262 feat: task system works
but I broke the other things :(
2021-07-14 02:04:19 -04:00
Jonathan Kelley c7ca7c2273 wip: cargo fix 2021-07-13 16:48:47 -04:00
Jonathan Kelley a05047d01e wip: use the new structure 2021-07-12 18:19:27 -04:00
Jonathan Kelley ff0a3d1c83 wip: lots of changes to diffing 2021-07-12 02:23:46 -04:00
Jonathan Kelley 304259d818 wip: move examples around 2021-07-11 18:39:45 -04:00
Jonathan Kelley 269e81b0fd example: ssr + tide 2021-07-11 17:24:47 -04:00
Jonathan Kelley bbcb5a0234 feat: enable components in ssr 2021-07-11 15:17:55 -04:00
Jonathan Kelley 9abb0470b7 feat: static node infrastructure and ssr changes 2021-07-11 14:49:52 -04:00
Jonathan Kelley 975fa566f9 wip: more refactor for async 2021-07-09 12:47:41 -04:00
Jonathan Kelley 8cfc437bfe wip: some project refactor 2021-07-09 11:54:07 -04:00
Jonathan Kelley feab50f24a wip: some work 2021-07-09 03:39:45 -04:00
Jonathan Kelley 58ab51a4e4 wip: more refactor 2021-07-09 01:42:26 -04:00
Jonathan Kelley c811a8982c wip: more refactor 2021-07-09 01:37:34 -04:00
Jonathan Kelley 9276fd7db7 wip: refactor 2021-07-09 01:36:18 -04:00
Jonathan Kelley 1cc1679a6b feat: refactor out the hooks implementation 2021-07-09 01:26:15 -04:00
Jonathan Kelley eb82051000 examples: webview and async 2021-07-08 23:25:27 -04:00
Jonathan Kelley 2547da36a0 wip: more examples 2021-07-08 10:17:51 -04:00
Jonathan Kelley cca7c5fc3a wip: remove the scoped trait 2021-07-07 15:07:46 -04:00
Jonathan Kelley 36542b482f wip: move the functions around a bit 2021-07-07 14:37:31 -04:00
Jonathan Kelley a38a81e129 wip: fix issues with lifetimes
this commit fixes some lifetime issues regarding having to "move" data into the IntoVNode closure.
2021-07-07 13:51:55 -04:00
Jonathan Kelley e8f29a8f8a wip: enable more diffing 2021-07-05 01:11:49 -04:00
Jonathan Kelley 952a91d540 wip 2021-07-01 14:14:59 -04:00
Jonathan Kelley 93900aac44 concept: integrate signals 2021-06-30 14:08:12 -04:00
Jonathan Kelley 7665f2c6cf feat: move to slotmap 2021-06-29 22:44:21 -04:00
Jonathan Kelley f4fb5bb454 feat: integrate serialization and string borrowing
This commit adds lifetimes to the diff and realdom methods so consumers may borrow the contents of the DOM for serialization or asynchronous modifications.
2021-06-28 12:05:17 -04:00
Jonathan Kelley 9813f23cdf wip: more work on diffing machine 2021-06-26 22:13:57 -04:00
Jonathan Kelley 895cc0142b wip: stack-based "real child iterator" 2021-06-26 03:06:29 -04:00
Jonathan Kelley ea91fc984d perf: refcell to cell for hookidx 2021-06-26 01:29:51 -04:00
Jonathan Kelley 81382e7044 chore: rename ctx to cx 2021-06-25 21:15:33 -04:00
Jonathan Kelley 7fbaf69cab Docs: more examples and docs 2021-06-24 11:09:38 -04:00
Jonathan Kelley 9d7ee79826 feat: events work again! 2021-06-23 01:44:48 -04:00
Jonathan Kelley 73047fe956 feat: props memoization is more powerful
This commit solves the memoization , properly memoizing properties that don't have any generic parameters. This is a rough heuristic to prevent non-static lifetimes from creeping into props and breaking our minual lifetime management.

Props that have a generic parameter are opted-out of the `partialeq` requirement and props *without* lifetimes must implement partialeq. We're going to leave manual disabling of memoization for future work.
2021-06-22 17:20:54 -04:00
Jonathan Kelley cff0547f1a wip: get diff compiling
Currently working through the normalization process. Occasionally, we want to iterate through all the nodes that we know have a real image in the dom. However, fragments and components don't directly have a mirror in the dom. This commit is exploring the concept of a custom iterator that explores every node in an array of nodes, returning only valid nodes which may be mounted to the dom. A big issue we're working through is heavily nested rootless nodes - something not terribly common but important nonetheless.

Inferno, React, and Preact all perform a mutative-form of normalization which alter the children list before comparing to the previous. Mostly, we're concerned about fragments in lists and heavily nested components that do not render real elements.
2021-06-21 00:52:37 -04:00
Jonathan Kelley 79127ea6cd wip: moving to IDs 2021-06-20 02:16:42 -04:00
Jonathan Kelley 45ee803609 wip: moving to imperative method of dom 2021-06-20 01:52:32 -04:00
Jonathan Kelley b9ff95fa12 wip: start moving events to rc<event> 2021-06-16 23:37:55 -04:00
Jonathan Kelley 47e896038e wip: more work on updating syntad 2021-06-15 10:02:46 -04:00
Jonathan Kelley fe6938ceb3 wip: pre vnodes instead of vnode 2021-06-08 14:00:29 -04:00
Jonathan Kelley e3d9db0847 wip: successfully building 2021-06-07 14:14:49 -04:00
Jonathan Kelley 7790750349 wip: merge in some code from the other branch 2021-06-05 23:47:54 -04:00
Jonathan Kelley 795a54a2e4 wip: new approach at direct access to vdom
This commit starts the process of merging scope arena
with the diff machine to give the diffing algorithm mutable
access to components. React and Preact mutate the dom
as they diff it which makes their implementations simpler
and cleaner. The goal here is to give access of scopes to
the diffing machine which can mutate the underyling
representation during diffing.
2021-06-05 23:38:51 -04:00
Jonathan Kelley 424a18137f Wip: pre-diffmachine merge fork 2021-06-03 13:57:41 -04:00
Jonathan Kelley 69f5cc3802 docs: move into a fromjs tutorial 2021-06-03 12:02:46 -04:00
Jonathan Kelley 50c8b93aad Feat: move the rsx macro around 2021-06-03 10:42:28 -04:00