Skip to content
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

Blazer, how to use #39

Open
sabrogden opened this issue Mar 21, 2024 · 1 comment
Open

Blazer, how to use #39

sabrogden opened this issue Mar 21, 2024 · 1 comment

Comments

@sabrogden
Copy link

I see in the latest you have lots of changes related to Blazer/wasm. How would you use this? Does this mean it works in the browser?

When compiling locally I get the error "The working directory "C:\Users<user>\Desktop\logjoint-master\logjoint-master\trunk\platforms\blazor\logjoint.wasm../../../../../logjoint-google-plugin/plugin" does not exist. I don't see any files/folders named logjoint-google-plugin

@sergey-su
Copy link
Owner

Yes, platforms\blazor\logjoint.wasm is an attempt to create browser-only port that could be deployed as a static site (no server code). It is work-in-progress.

Generally it works, but there are problems that make the general purpose deployment impractical at the moment:

  • Performance issues related UI freezes. For example, when searching all occurences over a large file. Blazor multithreading support should fix it. See [browser][MT] Multithreading and JavaScript async interop in .NET 9 dotnet/runtime#85592.
  • User-defined formats require logjoint to compile some dynamically generared code. Support for that was limited in blazor when I checked last time.
  • Much inferior single-core performance of blazor compared to the full dotnet. It's due to .net bytecode interpretation instead of JIT. To circumvent that, all the code, including the generated code for user-defined formats and user-provided regexps, should be compiled into wasm byte code in advance. It's called ahead-of-time complition, AOT. This means that an efficient web version needs to know all the user-provided formats at compile time.

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

No branches or pull requests

2 participants