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

V8.Net? #69

Closed
rjamesnw opened this issue Mar 10, 2019 · 11 comments
Closed

V8.Net? #69

rjamesnw opened this issue Mar 10, 2019 · 11 comments

Comments

@rjamesnw
Copy link

rjamesnw commented Mar 10, 2019

V8.Net now supports Net Standard, and will be part of the back-end server for the FlowScript VPL system (coming soon). It has an extremely fast interface between the CLR and V8, but in a way that is cross-platform.

@Taritsyn
Copy link
Owner

Hello, James!

Thanks for information! As soon as I have free time, I'll research your library.

The main thing that your library does not repeat the fate of VroomJs.

@rjamesnw
Copy link
Author

I assume you mean abandoned? Hopefully not. ;) V8.Net has been around since 2013. ;)

@Taritsyn
Copy link
Owner

NuGet package appeared only today.

@rjamesnw
Copy link
Author

rjamesnw commented Mar 10, 2019

I meant for .Net 3.5 and 4 since 2013. I never got around to supporting NuGet until now. :) (used to be on CodePlex)

It's also mentioned here for many years: https://en.wikipedia.org/wiki/List_of_ECMAScript_engines

@jtreher
Copy link

jtreher commented Sep 4, 2019

@Taritsyn Since Edge is switching to V8, it seems practical to support V8 for .net core running on linux as ChakraCore is in wind down mode. If @rjamesnw's project has been maintained for several years, it seems like a good option to move forward to allow us to use V8 on Linux.

@Taritsyn
Copy link
Owner

Taritsyn commented Sep 4, 2019

@jtreher Have you tried running the V8.Net library under Linux or Mac?

@rjamesnw
Copy link
Author

rjamesnw commented Sep 5, 2019

The project currently uses a Visual Studio project to compile the C++ wrapper against the V8 source. I added in support to search and load the correct libraries on Windows or Linux, but as I’m not a Linux guy I never yet compiled any Linux binaries. Others have very easily ported the project to mono in the past (before .Net Core; https://www.nuget.org/packages/V8.Net.Mono/ [outdated now]) without issue. If someone wants to help get the C++ wrapper compiling Linux libraries again it would be welcome; should be easy enough. If I have time in the near future I may fire up Linux myself and give it a go.

@tombatron
Copy link

I'm not sure that this is the correct venue for the extended discussion, but I was tinkering around with the V8.Net source under WSL.

I was able to get the V8 source compiled with no issues, though I had major issues getting the actual V8.Net proxy code compiled... Probably because I'm hopelessly out of my depth.

I guess the point of my reply is that it appears that the WSL environment would be sufficient for building and testing a Linux binary.

@rjamesnw
Copy link
Author

rjamesnw commented Oct 3, 2019

Thanks for the heads up. I’ve been investigating WSL and may try to work out a solution using that at some point.

@tombatron
Copy link

For anyone else following along at home:

I got a little farther in my attempts at getting V8.Net's proxy compiled under Linux. I posted the issue that stopped me in my tracks here: rjamesnw/v8dotnet#28

Another thing that I encountered when trying to use V8.Net under Windows to render a React component is documented here: rjamesnw/v8dotnet#27

@Taritsyn
Copy link
Owner

I'm closing this issue because the Microsoft ClearScript.V8 7.0 now supports Linux and macOS. In addition, JavaScript Engine Switcher 3.9.0 now uses the official NuGet packages of this library.

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

4 participants