These are chat archives for canjs/canjs

2nd
Nov 2018
Frank Lemanschik
@frank-dspeed
Nov 02 2018 05:46
@jeroencornelissen its a bit like me
i also stream my changes into the Maps and Lists my self
else i could not add behavior as needed
@jeroencornelissen i need to play more with the symbol interface the others added i think justin was that
this should enable to do custom stuff more easy via some key symbols like onValue but i still don't full get what kind of API design this should be
:D
so i started refactoring canjs to canes to be more readable and understand able
Jeroen Cornelissen
@jeroencornelissen
Nov 02 2018 07:21
What do you mean, stream changes into Maps?
Frank Lemanschik
@frank-dspeed
Nov 02 2018 12:24
@jeroencornelissen i use for every application always streams so i have a stream that sets and reads values into a can.DefineMap Instance
for example
so i have a stream interface into and out of my DefineMaps and Lists
i am preparing that production ready at present under the Code Name canes
it merges my effort to drop all the old stuff and layers that are needed by CanJS/DoneJS
i want to have a version that uses Streams where possible and runs in every new nodejs version and every new browser
out of the box when coding EMCA Style + WASM workers
so canes is the first framework supporting and using wasm
my migration path goes over can-quees
the current goals that are already reached are we can code fully in EMCA and run on nodejs and the browser as also elctron nw without transpiling
and without extra loader only dynmaic imports as needed
look at this gist for example
when you look into the script.mjs as top
import { Component } from "//unpkg.com/canes@5/dist/can-component.mjs";
this imports Component from can-component.mjs directly from core would also work but would treeshake less
this imports chunked only whats needed when executed
<script type="module"> /* Here Goes the JS from the script.mjs */ 
/* needed because not all platforms that display gists are supporting .mjs */
fetch('./script.mjs')
  .then(function(response) {
    return response.text();
  })
  .then(function(myJson) {   
    var script = document.createElement("script");
    script.innerHTML = myJson;
    script.setAttribute("type", "module")
    document.head.appendChild(script);
});
</script>

is in production and dev on localbox

<script type="module" src="script.mjs"> </script>

its only a polyfill to run from gist and other old webservers for demo

Julian
@pYr0x
Nov 02 2018 16:09
Today is halloween meetup?