ChakraCore
Jint
Our great sponsors
ChakraCore | Jint | |
---|---|---|
15 | 24 | |
9,031 | 3,910 | |
0.2% | - | |
5.3 | 9.1 | |
3 days ago | 8 days ago | |
JavaScript | C# | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ChakraCore
-
This year in Servo: over 1000 pull requests and beyond
I thought it would be a fun weird project to make Servo work with MS' abandoned JavaScript engine:
https://github.com/chakra-core/ChakraCore
Of course it is written in C++ and you'd probably want a pure Rust browser. But it is sad seeing that fairly complete open source JIT JavaScript engine sit and rot.
-
Microsoft defends Edge's predatory practices with cringe reply on X
The JS engine is open source: https://github.com/chakra-core/ChakraCore
-
A list of JavaScript engines, runtimes, interpreters
ChakraCore
-
Roll your own JavaScript runtime, pt. 3
Not to forget the engine Charka: https://github.com/chakra-core/ChakraCore
The only bit of the old Edge that had its source emancipated. It was/is? quite performant.
-
Have you deployed Microsoft Todo to end users? How did you deploy it?
As a Linux user, I very much think Microsoft should have continued Trident and Chakra. Apple also should have continued releasing Safari for Windows. Our web QA setup was entirely built around Macs back then, but it was great to be able to test sites with Safari on Windows, and to have another responsive browser on Win32.
-
The Javascript Engine
Edge was initially using Chakra but has been rebuilt using Chromium and the V8 engine.
-
Crystal's Interpreter (2021)
https://github.com/chakra-core/ChakraCore/wiki/Architecture-...
I've found the source code to be quite readable too - albeit from a bug-finding perspective, not a strictly pedagogical one.
-
Exploring React Native’s new architecture
Furthermore, the new architecture decouples the JavaScript interface from the engine, enabling the use of other JavaScript engines such as Hermes, V8, or Chakra.
-
How web browsers work - executing the Javascript (part 5, with illustrations)💻🌠
ChakraCore
-
Enumerating and analyzing 40 non-V8 JavaScript implementations
I am astonished at the omission of ChakraCore, open sourced by Microsoft but sadly abandoned by them after they switched Edge to Chromium: https://github.com/chakra-core/ChakraCore. But it looks like it’s still chugging along as a community effort rather than being completely abandoned.
Jint
- Jint – A JavaScript Interpreter for .NET
-
Is there a way to dynamically interpret a string as javascript within a C# winforms program?
Jint https://github.com/sebastienros/jint
- Any framework/library for validating arbitrary code?
-
Scripting inside Rimworld with Unity: Impossible? With java it is a 3 liner.
There are quite a lot of ways to run scripting languages in C#. I've no idea what JSR223 is but .NET has DLR for example. There are also multiple libraries: IronPython, NLua, Jint and Jurassic for Javascript. There's also older version of CS-Script working with .NET Framework.
-
Is there any way to use Javascript to code in Unity anymore?
You can. Embeding lua is a trivial task, and I'm reasonably sure there even are plug-and-play solutions for that, and for JS there's JINT.
-
Running custom code from users
I personally use Jint (a multi-platform Javascript interpreter) since Roslyn is not available on mobile. It basically has the same kind of functionality as Roslyn, but it's JS. JS is well-known and accessible to everybody, but Roslyn might be faster since there's no double indirection when interpreting the script. It also depends on what language your users are comfortable with or could learn easily.
-
Classic BBS (code in comments)
Ah yeah, I looked into it more and decompiled the game to find that it appears they're using Jint to interpret the Javascript, and from testing with someone's REPL BBS server I can find that it's a pretty well isolated environment. Only ways around it I can think of are by exploiting some vulnerability in the sandbox to do external requests, modding the game itself to update the api, or running a parallel server to do some janky communication through the save state data.
-
.NET-compatible scripting languages for users to write their own scripts to query/manipulate objects/properties in the app
We used https://github.com/sebastienros/jint for scripting, it's ES5 JS implementation.
-
The experience of creating my own JavaScript runtime - #2
Jint is a JS interpreter with an integrated engine built in C#, like V8, he is responsible for all the base code execution as well as EcmaScript implementations such as default constructors, syntax, Promises... I studied its features in depth to start and it was a bit hard (in the beginning).
-
The experience of creating my own JavaScript runtime - #1
MelonRuntime is based on Jint, a JavaScript interpreter created by Sébastien Ros, software developer in the ASP.NET team at Microsoft. Melon works from bindings and functionalities injected into this interpreter together with external typing (provided by another package that comes with the default project generated by the command npx melon new) and built-in tools.
What are some alternatives?
hermes - A JavaScript engine optimized for running React Native.
Jurassic - A .NET library to parse and execute JavaScript code.
V8 - The official mirror of the V8 Git repository
Jering.Javascript.NodeJS - Invoke Javascript in NodeJS, from C#
v8.dev - The source code of v8.dev, the official website of the V8 project.
Edge.js - Run .NET and Node.js code in-process on Windows, MacOS, and Linux
AutoHotkey-jk - AutoHotkey, running JavaScript.
ReactJS.NET - .NET library for JSX compilation and server-side rendering of React components
astexplorer - A web tool to explore the ASTs generated by various parsers.
Enums.NET - Enums.NET is a high-performance type-safe .NET enum utility library
ssgl-doom-launcher - Super Shotgun Launcher - Modern Doom Frontend/Mod Launcher for every Desktop Operating System
Outcome.NET - Never write a result wrapper again! Outcome.NET is a simple, powerful helper for methods that return a value, but sometimes also need to return validation messages, warnings, or a success bit.