Skip to content

tongxin3267/v8dotnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V8.NET

News (March 31, 2017): CodePlex is shutting down this year, so this page is now the main repo (but the documentation is still there at the moment).

What does that mean? Well, most other existing wrappers abstract most of the Google V8 engine's abilities away from you. That's fine for simple tasks, but wouldn't you rather have full control over the power of the V8 engine from managed code?

I've carefully crafted a C++ proxy wrapper to help marshal fast data transfers between the V8 engine and the managed side. One of the biggest challenges (which actually turned out to be simple in the end) was storing a field pointer in V8 objects to reference managed objects on call-backs (using reverse P/Invoke). A special custom C# class was created to manage objects in an indexed array in an O(1) design that is extremely fast in locating managed objects representing V8 ones.

Interesting note: I was carefully considering future portability to the Mono framework as well for this project, so great care was made to make the transition as seamless/painless as possible. That said, given Microsoft's direction for .Net Core, which is also cross-platform, and 100% backed my the Microsoft team (as a true open source project), and my vision to have an ASP.Net Core style version of NodeJS, this seems the best direction. I still plan to try to have a .Net Full and .Net Core versions on NuGet some day soon.

License Clarification

The license is LGPL. In a nutshell, this means that you can link to the libraries from your own proprietary code (including code for commercial use), but if you modify the source files for anything in this project, the modified source and executables from it must also be made freely available as well (and you must clearly state you modified the code).

About

A fairly non-abstracted wrapper for Google's V8 JavaScript engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 82.4%
  • C++ 13.8%
  • Batchfile 1.7%
  • JavaScript 1.3%
  • HTML 0.6%
  • C 0.1%
  • Other 0.1%