Skip to content

WASI support and single-threading#700

Merged
KirillOsenkov merged 4 commits intoKirillOsenkov:mainfrom
lambdageek:upstream-wasi-support
Aug 27, 2023
Merged

WASI support and single-threading#700
KirillOsenkov merged 4 commits intoKirillOsenkov:mainfrom
lambdageek:upstream-wasi-support

Conversation

@lambdageek
Copy link
Copy Markdown
Contributor

Cherry pick changes to the core log viewer from the VS Code extension
https://github.com/lambdageek/MSBuildStructuredLog/tree/wasi-single-thread

  • Add WASI support in PlatformUtilities - the .NET 8 WASI workload doesn't support threads, does not have Console colors and cannot assume that GetTempFileName will work (because WASI doesn't necessarily grant unrestricted filesystem access)
  • Replace a few parallel algorithms by single-threaded versions when threading isn't available.

lambdageek and others added 4 commits August 27, 2023 14:41
example:

```console
% wasmtime BinLogTool.wasm --dir . -- search example.binlog hello

    3 results. Search took: 00:00:00
    foo.proj
        Target Hello
        Target Hello
            Task Message
                Message  Hello World
    Item Hello
====================================
```
@lambdageek
Copy link
Copy Markdown
Contributor Author

I'm not upstreaming the VS Code extension's .NET "engine" or the associated TypeScript code yet, but the changes to the core of the viewer I think are more or less done and I don't expect to need to make many more.

Copy link
Copy Markdown
Owner

@KirillOsenkov KirillOsenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks!

@KirillOsenkov KirillOsenkov merged commit afda0c9 into KirillOsenkov:main Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants