I wrote a GameBoy game in TypeScript [video]
youtube.com1 pointsby disk00 comments
The system distro is where all of the magic happens. The sytem distro is a containerized Linux environment where the WSLg XServer, Wayland server and Pulse Audio server are running.
...
The system distro is based on the Microsoft CBL-Mariner Linux. This is a minimal Linux environment, just enough to run the various pieces of WSLg. For details on how to build and deploy a private system distro please see our build instructions. [0]
[0]: https://github.com/microsoft/wslg#wslg-system-distro let arr = new Array(10);
// 1e1 => 10
arr[1e1] = 1;
console.log(`arr[10] === 1 => ${arr[10] === 1}`)
console.log(`arr[1e1] === 1 => ${arr[1e1] === 1}`)
So -0 becomes 0: arr[0] = 2;
console.log(`arr[0] === 2 => ${arr[0] === 2}`);
console.log(`arr[-0] === 2 => ${arr[-0] === 2}`);
arr[-0] = 3;
console.log(`arr[0] === 3 => ${arr[0] === 3}`);
console.log(`arr[-0] === 3 => ${arr[-0] === 3}`);
https://github.com/disco0/mpv-types-lua