ArkScript-lang / ArkScript-lang/Ark

Improve the ArkEmscripten playground

Abierto
#631 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
C++
Estrellas
728
Forks
54
Merge medio
4 h 8 min
PR fusionados (30 d)
2

Descripción

### Is your feature request related to a problem?

The current playground is pretty bare, and the current method of capturing what's printed is not that good (though I have no clue how to make it better):

```js
log = console.log;
var can_capture = false;

window.console.log = (message) => {
log(message);
if (can_capture)
document.getElementById("output").value += message + "\n";
};

var Module = {
onRuntimeInitialized: function () {
document.getElementById("run").addEventListener("click", () => {
document.getElementById("output").value = "";
const code = document.getElementById("code").value;
try {
can_capture = true;
Module.run(code);
} catch (e) {
document.getElementById("output").value = e;
}
can_capture = false;
});
}
};
```

Playground:
Wasm Playground

### Describe the solution you would like

1. Improve the UI/UX of the playground (without having to add Vue, React or other huge libraries)
2. Add more utils / builtins to ArkEmscripten to play with DOM and JavaScript values / functions
3. Find a better way to get ArkScript output
4. Add more tests (currently not tested in the CI, only the compilation is tested)

### Is it a big modification to the language? Leave it if you don't know

- [ ] Breaking change
- [ ] Compiler/syntax modifications
- [ ] Runtime modifications (standard library, modules, packages...)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza inspeccionando el playground actual de ArkEmscripten y el código JavaScript de captura de salida mostrado en el issue. Revisa cómo se compila el playground y cómo se prueba actualmente la compilación en CI. El trabajo estará terminado cuando el playground tenga una UI/UX mejorada, una mejor captura de salida, utilidades adicionales de DOM y JavaScript, y pruebas que cubran su comportamiento.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, wasm
Área
testing, web-dev
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.