dirkwhoffmann / vAmiga

vAmiga is a user-friendly Amiga 500, 1000, 2000 emulator for macOS
https://dirkwhoffmann.github.io/vAmiga
Other
293 stars 24 forks source link

Improved exception handling #780

Closed dirkwhoffmann closed 1 year ago

dirkwhoffmann commented 1 year ago

I'm currently working on an experimental WASM port that not only gives me the opportunity to learn something new (web stuff), but also exposes some areas of improvement regarding vAmiga’s API.

Binding the C++ core to JavaScript via Embind is fairly straightforward. However, it is notoriously difficult to pass exceptions from the C++ world into the JS world. I.e., it is fairly easy to signal that an exception has occurred, but it is cumbersome to get a grip on the contents of the triggered object.

Exception handling could be simplified by the following improvement:

dirkwhoffmann commented 1 year ago

Wontfix. It's easier to implement the functionality in the proxy layer of the WASM port.

Current state of the WASM port can be viewed here: https://vamigaonline.github.io

dirkwhoffmann commented 1 year ago

To avoid name clashes with Chris' web port, I've renamed mine to vAmiga.net: https://vamiganet.github.io