chakra

Embedding ChakraHost (c#) for WebGL example

家住魔仙堡 提交于 2020-01-22 01:48:05
问题 I have looked into the example involving embedding the javascript framework (paper.js) for drawing output to XAML's CanvasControl through the JsBridge implementation of ChakraHost. To include the paper.js framework and the javascript to call the framework (e.g. the paper.js's tadpoles example), we only need these statements: await host.ReadAndExecute("paper-core.js", "paperjs-refs"); await host.ReadAndExecute("tadpoles.js", "paperjs-refs"); To embed a WebGL javascript framework using e.g.

How to add 3d context works in JsBridge by adding WebGLRenderingContext?

非 Y 不嫁゛ 提交于 2019-12-25 09:05:21
问题 Currently JsBridge supports only getContext("2d") and not getContext("webgl"). public object getContext(string contextType) { if (contextType == "2d") { if (this.context == null) { this.context = new CanvasRenderingContext2D(this.window, this); } return this.context; } return null; } Ideally, to make JsBridge supports 3D, one needs public object getContext(string contextType) { if (contextType == "2d") { if (this.context == null) { this.context = new CanvasRenderingContext2D(this.window, this

How to detect from nodejs which JavaScript engine it is running on?

懵懂的女人 提交于 2019-12-23 10:14:24
问题 There are now several forks of nodejs and some of them support JavaScript engines other than Google's V8 engine. For my node code to see which JS engine it is running under, what is currently the best way? The engines I am aware of are: Google's V8 - The only engine supported by the official node.js and the iojs fork. One of the engines supported by JXcore . Mozilla's SpiderMonkey - One of the engines supported by JXcore . Microsoft's ChakraCore - The engine supported by Microsoft 's port of

Microsoft says IE9 has Parallel Javascript Rendering and Execution

旧城冷巷雨未停 提交于 2019-12-21 11:25:29
问题 The new JavaScript engine takes advantage of multiple CPU cores through Windows to interpret, compile, and run code in parallel. - http://technet.microsoft.com/en-us/library/gg699435.aspx and The Chakra engine interprets, compiles, and executes code in parallel and takes advantage of multiple CPU cores, when available. - http://msdn.microsoft.com/en-us/ie/ff468705.aspx Wait, what?!? Does this mean we've got multi-threaded parallel JavaScript code execution (outside of web-workers) in IE9? I'm

How does setInterval and setTimeout work?

懵懂的女人 提交于 2019-12-17 10:25:49
问题 I was in an awkward situation , I am working with pure JavaScript for almost 3 years, and I know that JavaScript is single-threaded language, and that you can simulate asynchronous execution using setInterval and setTimeout functions, but when I thought about how they can work I couldn't clearly understand it. So how these functions affect execution context? I suppose that in specific time runs only one part of the code and after it switches to another part. If so, then would a lot of

Can JXcore work with ChakraCore on Windows 7?

旧街凉风 提交于 2019-12-10 10:25:09
问题 I've downloaded the latest JXcore installer for Windows and when installing it offers me a choice of V8 (Chrome's Javascript engine) or SpiderMonkey (Firefox's JavaScript engine), but not ChakraCore (the OSS version of the JavaScript engine from Microft's Edge browser). Does the ChakraCore version of JXcore only work under Windows 10? Or is it just not offered as an installer and need to be built from source? Now I know ChakraCore can work on Windows 7 because I also have Microsoft's port of

C# + IE9 JS Engine Chakra?

放肆的年华 提交于 2019-12-10 07:13:02
问题 I'm working on a cool C# app, which uses JS a lot for our model layer. We would like to use the IE9 Chakra Javascript engine for speed improvements. Questions: Can I use Chakra in C#, and interact with JS objects as COM objects? (to call functions on JS objects) Can I install Chakra separately from IE9? (some users do not have IE9 installed, so it would be easier if they did not have to install IE9, but just Chakra). Thanks a lot in advance for you expertise. 回答1: [Update] Based on Cheeso's

Error adding SCRIPTITEM_CODEONLY symbol using IE9 JS engine (Chakra)

独自空忆成欢 提交于 2019-12-08 07:06:56
问题 We've been using active scripting in our browser extension (BHO) for a while with the old JScript engine (CLSID_JScript), and we recently decided to support the new IE9 script engine (Chakra) as well. One thing we do is add symbols to the engine using AddNamedItem with the SCRIPTITEM_CODEONLY option to create our own modules (namespaces). Unfortunately, we haven't been able to get this to work with Chakra. Even the most trivial example where we add a symbol and immediately retrieve its script

Error adding SCRIPTITEM_CODEONLY symbol using IE9 JS engine (Chakra)

回眸只為那壹抹淺笑 提交于 2019-12-06 17:48:25
We've been using active scripting in our browser extension (BHO) for a while with the old JScript engine (CLSID_JScript), and we recently decided to support the new IE9 script engine (Chakra) as well. One thing we do is add symbols to the engine using AddNamedItem with the SCRIPTITEM_CODEONLY option to create our own modules (namespaces). Unfortunately, we haven't been able to get this to work with Chakra. Even the most trivial example where we add a symbol and immediately retrieve its script dispatch yields an E_OUTOFMEMORY error. if (SUCCEEDED(hr)) { hr = scriptEngine->AddNamedItem(L"test",

C# + IE9 JS Engine Chakra?

隐身守侯 提交于 2019-12-05 15:09:22
I'm working on a cool C# app, which uses JS a lot for our model layer. We would like to use the IE9 Chakra Javascript engine for speed improvements. Questions: Can I use Chakra in C#, and interact with JS objects as COM objects? (to call functions on JS objects) Can I install Chakra separately from IE9? (some users do not have IE9 installed, so it would be easier if they did not have to install IE9, but just Chakra). Thanks a lot in advance for you expertise. [Update] Based on Cheeso's answer it seems you can use IE9's JS engine[/Update]. However I found that V8 JavaScript engine (Chrome's JS