cosmos72 / gls Goto Github PK
View Code? Open in Web Editor NEWFast goroutine local storage
License: BSD 3-Clause "New" or "Revised" License
Fast goroutine local storage
License: BSD 3-Clause "New" or "Revised" License
Greetings! I'm trying to fix the gomacro port for riscv64 freebsd and noticed that gls support code for this platform is missing. Could you add it?
Greetings,
I'm using your gls package and encountered an issue when building an app for the WASM platform.
Upon reviewing your gomacro
project, I observed the WASM stub. It appears the stub was created under the assumption that goroutines don't operate on WASM due to its lack of thread support. However, as mentioned in this StackOverflow post while WASM doesn't support threads, goroutines are fully functional there.
To address this, I crafted an id_wasm.s file, adopting content from id_arm64.s
, which resolved the matter. Later, I identified a similar solution here.
I've assembled a demonstration through a simple WASM application, showcasing gls operating efficiently with WASM. The example is available at https://github.com/pilat/gls-wasm-test.
If it's of interest to you, I'm willing to open a PR here to integrate these changes, facilitating better support for the WASM platform.
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.