main idea as comment

pseudoreamls-as-scaffoldings
Fabien Benetou 3 months ago
parent 39886e9b57
commit bb9a58ec5d
  1. 26
      index.html

@ -13,6 +13,32 @@
<body>
<script>
/* potential paths, from the most traditional to the most exotic
https://developer.mozilla.org/en-US/docs/Glossary/Scope
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
https://tc39.es/ecma262/#sec-code-realms
https://tc39.es/proposal-shadowrealm/
this starts to look like an "excuse" though for complexity and/or exploring novelty of the language itself and its execution environment
the goal remains to
efficiently modify the current environment
which from experience requires
affordances (assumed here as solved, via e.g keyboard typing, <a-console>, jxr, etc) to code
a safe environment
thus allowing e.g rollback
so far jxr/javascript is executed within a try { eval() } block as
alternatively eval?.( generatedCodeToEval )
// forcing global scope but fails, at least result is undefined in that scope
in code-generation branch
also in nodal branch
this is currently not supported
namely the context is not saved and can't be replaced back after a failure
one has to exit XR (if the bug or new behavior is breaking)
reload the page
until now refreshing has been the way to rollback
some explorations via undo in the speech branch
*/
AFRAME.registerComponent('realm', {
// beyond the visual and self-editable aspect of https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/scaffolding generalizing it and make it, hopefully, safe.

Loading…
Cancel
Save