-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename thread_spawn import #387
Conversation
Following the wit-defined ABI: WebAssembly/wasi-threads#26
I don't think this is right; IIRC, WIT dashes are converted to underscores. |
wit-bindgen seems to convert C identifiers. but not import names. |
Following the wit-defined ABI: WebAssembly/wasi-threads#26 cf. WebAssembly/wasi-libc#387
If thats true, I hope its not to late to revisit. I would hope we could choose a convention for import/export names that aligns the symbol names normally found in programming languages. As programmers, we not used to seeing hyphens in the middle of identifiers. |
as preview2 heavily uses names with hyphens, i thought it was the latest trend.
wrt this specific change, i even have confirmed the intention explicitly: WebAssembly/wasi-threads#26 (comment) |
Yeah, sorry to confuse things; I was mistaken. Indeed, like @yamt says, the import names will have hyphens. But the C generated from WIT would have the expected underscores. Since this is what users would typically interact with, I think it is fine for the lower level WIT names to use the "almost a convention" hyphens that WIT has transitioned to. |
I guess I missed that transition. Maybe it happened a repo I'm not tracking. |
honestly speaking, i feel the transition a bit awkward and am curious about rationales. |
Yeah, we should bring up the name convention change in the next WASI meeting. In the meantime, should I merge this? |
sgtm |
Following the wit-defined ABI: WebAssembly/wasi-threads#26 cf. WebAssembly/wasi-libc#387
Following the wit-defined ABI: WebAssembly/wasi-threads#26 cf. WebAssembly/wasi-libc#387
Following the wit-defined ABI: WebAssembly/wasi-threads#26
Following the wit-defined ABI: WebAssembly/wasi-threads#26 cf. WebAssembly/wasi-libc#387
Following the wit-defined ABI:
WebAssembly/wasi-threads#26