susandoggie / swiftjs Goto Github PK
View Code? Open in Web Editor NEWA cross platform Javascript engine for Swift
License: MIT License
A cross platform Javascript engine for Swift
License: MIT License
Swift for Windows has become stable enough recently to be reliably run in a GitHub action. For example:
https://github.com/compnerd/swift-win32/blob/main/.github/workflows/windows.yml
It would be interesting to see if SwiftJS could be made to work with one of the Windows builds of JavaScriptCore, such as the one at:
https://github.com/Lichtso/JSC-Standalone/tree/master/Windows/JSC/bin64
Hi Susan,
Are you still working on this project?
This project seems really helpful for me and it seems to work well mostly both on macOS and Linux (Ubuntu).
However, it does seem to crash when I have multiple JSContext's active at the same time. They don't share any data, resources or VM's. Usually the crash happens in JSContext.swift line 175 ( evaluateScript(_:, this:, sourceURL, startingLineNumber)
) with an error NIO-ELT-0-#5 EXC_BAD_ACCESS. It can also happen in JSContext.swift
line 53 ( public init(virtualMachine:)
)
Is it possible that SwiftJS' JSContext was never really meant to run multiple instances in parallel?
Thanks for your work on this library.
Kind regards,
Maarten Engels
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.