ChaiScript
V8
Our great sponsors
ChaiScript | V8 | |
---|---|---|
5 | 41 | |
2,532 | 19,695 | |
0.8% | 1.3% | |
1.0 | 10.0 | |
3 months ago | 3 months ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
ChaiScript
-
How to use C++ as the core language for a Fantasy Console?
If you want to use C++ for scripting, take a look at Jason Turner's ChaiScript
-
Enabling C/C++ compilation in an application.
3) Similiar to 2, but use more common scripting languages: chai, cs-script, sol2 (c++ framework to embed lua)
-
ArkScript, a language designed to be used in C++ projects, now has macros
A few years back I actually went and made a ChaiScript based video game engine (https://16bpp.net/blog/post/masala-a-chaiscript-game-engine/). The end goal for it was to be able to make a Pacman like clone, but have all of the game logic implemented in ChaiScript. I actually found out as I added more realtime elements (implemented in ChaiScript) that it started to take much longer to process the game logic; the "game loop FPS" was under 60, which is not good. I actually proposition that ChaiScript move to a bytecode VM (https://github.com/ChaiScript/ChaiScript/issues/266), but I'm guessing that no movement was made on that front.
- Is it advisable to embed python in c++ ? Have anyone tried it, what is the best way to do it?
-
Looking for a codegen library that uses C++ for scripting
Maybe ChaiScript? It is not exactly what you are looking for, but very similar, in my opinion.
V8
-
Trouble understanding IEEE754 for 0.1 (To Binary 64bit and back)
Behind the scenes: strtod, but I'm not gonna pretend I understand any of that ;)
- CVE-2022-1096 Chrome Exploit in the Wild - 99.0.4844.84 for Windows, Mac and Linux address it also Edge 99.0.1150.55
-
Chrome 0day is being exploited now for CVE-2022-1096; update immediately
Looks like these are the two commits, based on the issue number:
https://github.com/v8/v8/commit/0981e91a4f8692af337e2588562a...
https://github.com/v8/v8/commit/a2cae2180a7a6d64ccdede44d730...
Although there could be others.
-
Inline Assembly Language. What is that?
https://github.com/v8/v8/blob/master/src/objects/dictionary.h https://wiki.cdot.senecacollege.ca/wiki/Inline_Assembly_Language https://en.cppreference.com/w/c/language/asm https://en.wikipedia.org/wiki/Inline_assembler https://stackoverflow.com/questions/2268562/what-are-intrinsics https://www.codeproject.com/Articles/15971/Using-Inline-Assembly-in-C-C https://stackoverflow.com/questions/48518225/what-are-intrinsic-types-in-javascript https://stackoverflow.com/questions/12168575/executing-generated-assembler-inline
-
MoarVM may compete with JVM and .Net in a decade.
Many of the languages with much faster implementations and quicker development have literal millions of dollars paying for their progress. I mean, look at the list of authors for V8. That's tens (if not hundreds) of billions of tech heavy weights contributing. Java was painfully slow for the longest time, even with all the money and promotion that Sun put behind it.
-
HTML comments work in JavaScript too
Source:
https://github.com/v8/v8/blob/main/src/parsing/scanner.cc#L3...
And also this nice article
"The scanner chooses a specific scanner method or token based on a maximum lookahead of 4 characters, the longest ambiguous sequence of characters in JavaScript"
-
Where is Array.prototype.flat in v8 source? No array-flat.tq in src/builtins
From what I understand, builtins are coded with v8 torque language in .tq files. However in src/builtins, there is no array-flat.tq file. Then where is it implemented?
-
What parsing techniques do you use to support a good language server?
It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)
- [AskJS] What is the library that javascript uses underneath for async/await?
- When calling built in functions, is it possible to see their code?
What are some alternatives?
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint
ChakraCore - ChakraCore is an open source Javascript engine with a C API. [Moved to: https://github.com/chakra-core/ChakraCore]
squirrel - Official repository for the programming language Squirrel
Cython - The most widely used Python to C compiler
V7 - Embedded JavaScript engine for C/C++
Wren - The Wren Programming Language. Wren is a small, fast, class-based concurrent scripting language.
luacxx - C++11 API for creating Lua bindings
sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation: