V8 VS v8.dev

Compare V8 vs v8.dev and see what are their differences.

v8.dev

The source code of v8.dev, the official website of the V8 project. (by v8)
v8
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
V8 v8.dev
55 72
22,671 915
0.6% 1.3%
9.9 7.8
1 day ago 13 days ago
C++ JavaScript
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

V8

Posts with mentions or reviews of V8. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-21.
  • Boehm Garbage Collector
    9 projects | news.ycombinator.com | 21 Jan 2024
    https://chromium.googlesource.com/v8/v8.git/+/HEAD/include/c...

    Due to the nature of web engine workloads migrating objects to being GC'd isn't performance negative (as most people would expect). With care it can often end up performance positive.

    There are a few tricks that Oilpan can apply. Concurrent tracing helps a lot (e.g. instead of incrementing/decrementing refs, you can trace on a different thread), in addition when destructing objects, the destructors typically become trivial meaning the object can just be dropped from memory. Both these free up main thread time. (The tradeoff with concurrent tracing is that you need atomic barriers when assigning pointers which needs care).

    This is on top of the safey improvements you gain from being GC'd vs. smart pointers, etc.

    One major tradeoff that UAF bugs become more difficult to fix, as you are just accessing objects which "should" be dead.

  • The Everything NPM Package
    2 projects | news.ycombinator.com | 6 Jan 2024
    > If that standard library would be written in JS, a new browser (or rather a new JS engine being a part of the browser) could just use some existing implementation

    That sounds great, but I'm doubtful of the simplicity behind this approach.

    If my understanding is correct, v8 has transitioned to C++[0] and Torque[1] code to implement the standard library, as opposed to running hard-coded JavaScript on setting up a new context.

    I suspect this decision was made as a performance optimization, as there would obviously be a non-zero cost to parsing arbitrary JavaScript. Therefore, I doubt a JavaScript-based standard library would be an acceptable solution here.

    [0]: https://github.com/v8/v8/tree/main/src/runtime

  • C++23: Removing garbage collection support
    3 projects | news.ycombinator.com | 1 Nov 2023
    C++ lets you write anything you can imagine, and the language features and standard library often facilitate that. The committee espouses the view that they want to provide many "zero [runtime] cost," abstractions. Anybody can contribute to the language, although the committee process is often slow and can be political, each release the surface area and capability of the language gets larger.

    I believe Hazard Pointers are slated for C++26, and these will add a form "free later, but not quite garbage collection" to the language. There was a talk this year about using hazard pointers to implement a much faster std::shared_ptr.

    It's a language with incredible depth because so many different paradigms have been implemented in it, but also has many pitfalls for new and old users because there are many different ways of solving the same problem.

    I feel that in C++, more than any other language, you need to know the actual implementation under the hood to use it effectively. This means knowing not just what the language specifies, but can occaissionally require knowing what GCC or Clang generate on your particular hardware.

    Many garbage collected languages are written in or have parts of their implementations in C++. See JS (https://github.com/v8/v8)and Java GC (https://github.com/openjdk/jdk/tree/36de19d4622e38b6c00644b0...)

    I am not an expert on Java (or C++), so if someone knows better or can add more please correct me.

  • Abstract Syntax Trees and Practical Applications in JavaScript
    13 projects | dev.to | 21 Oct 2023
    Remember that we earlier established that every source gets parsed into an AST at some point before it gets compiled or interpreted. For example, platforms like Nodejs and chromium-based browsers use Gooogle's V8 engine behind the scenes to run JavaScript and of course, some AST parsing is always involved before the interpreter kicks in. I looked V8's source and I discovered it uses its own internal parser to achieve this.
  • Notes: Advanced Node.js Concepts by Stephen Grider
    5 projects | dev.to | 19 Aug 2023
    In the source code of the Node.js opensource project, lib folder contains JavaScript code, mostly wrappers over C++ and function definitions. On the contrary, src folder contains C++ implementations of the functions, which pulls dependencies from the V8 project, the libuv project, the zlib project, the llhttp project, and many more - which are all placed at the deps folder.
  • What does the code look like for built-in functions?
    2 projects | /r/learnjavascript | 13 Jun 2023
    Here is the implementation of of Array. prototype.map in V8. It's written in a language called Torque which appears to be a special language just for the v8 engine.
  • What's happening with JavaScript Array References under the hood?
    1 project | /r/learnprogramming | 24 Mar 2023
  • FAMILIA PQ NAO TEM VAGA EM C E C++ NESSE MERCADO **********?????
    1 project | /r/brdev | 13 Mar 2023
  • [AskJS] Do you have to be a natural talent to reach deep knowledge?
    1 project | /r/javascript | 13 Jan 2023
  • is there any resource for JavaScript that explain what kind of logic statement behind each function and why it's give this output and only accept this input etc... ?
    2 projects | /r/learnprogramming | 12 Oct 2022
    It sounds like you want to know how JavaScript is implemented in the browser. The thing is, there is no universal implementation for JavaScript. JavaScript defines a specification that must be adhered to, and then each browser vendor can implement it in whatever way they see fit, as long as it does the specified things. For example (and I'm not saying this is the case) it's entirely possible for Chrome to implement Array.sort() using merge sort, while Firefox implements it as quick sort. You can try to find the source code for the implementation in a certain browser, but that will not be universal. I imagine you can find out how it works in Chrome somewhere in https://chromium.googlesource.com/v8/v8.git, though I'm not sure exactly where.

v8.dev

Posts with mentions or reviews of v8.dev. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-25.
  • Show HN: Invertornot.com – API to enhance your images in dark-mode
    3 projects | news.ycombinator.com | 25 Mar 2024
    Semi-related - I saw this trick on https://v8.dev a while back, but `filter: hue-rotate(180deg) invert();` can be a neat CSS trick to 'dark mode' some kinds of graphics. The `hue-rotate` help a bit to keep 'blues blue' etc.

    It's far from perfect, but it's a neat trick to be aware of.

  • Top 8 Recent V8 Updates
    5 projects | dev.to | 13 Mar 2024
    V8 is a high-performance JavaScript engine developed by Google. Its purpose is to convert JavaScript code into machine code for execution by the underlying hardware. Primarily developed by the V8 team at Google, the engine focuses on speed and efficiency. In particular, it relies on just-in-time compilation and uses inline caching for high performance.
  • A list of JavaScript engines, runtimes, interpreters
    23 projects | /r/learnjavascript | 10 Dec 2023
    V8
  • C++ Specification vs Implementation
    3 projects | /r/cpp_questions | 19 Nov 2023
    Exactly the same as JavaScript engines. Be it Mozilla's SpiderMoneky, Google's V8, Apple's Webkit, or Microsoft's Chakra. No matter how specific we draft a specification there is always room for interpretation. Every team has a different take on what part of a spec is describing. Oftentimes it's just a matter of varying pros and cons of different approaches on the road to matching spec; various teams just kind of have to pick a direction and run with it. Other times a spec is not only too vague, but clearly short-sighted to boot.
  • Abstract Syntax Trees and Practical Applications in JavaScript
    13 projects | dev.to | 21 Oct 2023
    Remember that we earlier established that every source gets parsed into an AST at some point before it gets compiled or interpreted. For example, platforms like Nodejs and chromium-based browsers use Gooogle's V8 engine behind the scenes to run JavaScript and of course, some AST parsing is always involved before the interpreter kicks in. I looked V8's source and I discovered it uses its own internal parser to achieve this.
  • Bun vs Node.js: Everything you need to know
    7 projects | dev.to | 21 Sep 2023
    While Node.js uses Google's V8 engine that power's Chrome browser, Bun uses JavaScriptCore (JSC), which is an open source JavaScript engine developed by Apple for Safari.
  • The Ascent of Node.js: How a runtime changed the Web
    14 projects | dev.to | 30 Aug 2023
    While the idea of server-side JavaScript was not novel, what powered Node.js was! The V8 engine, birthed by Google for Chrome, was now driving Node.js, bringing unparalleled speed and performance to JavaScript execution.
  • A Magia do Event Loop
    3 projects | dev.to | 1 Aug 2023
  • Embracing Modern JavaScript Features in ES13 ES2022
    3 projects | dev.to | 29 Jul 2023
    V8 JavaScript Engine
  • Introduction to memory management in Node.js applications
    2 projects | dev.to | 6 Jul 2023
    Node runs on the V8 JavaScript engine, which handles memory allocation. The entirety of memory used for a running Node application is held in what is known as a Resident Set. This includes:

What are some alternatives?

When comparing V8 and v8.dev you can also consider the following projects:

Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint

babel-sublime - Syntax definitions for ES6 JavaScript with React JSX extensions.

ChakraCore - ChakraCore is an open source Javascript engine with a C API. [Moved to: https://github.com/chakra-core/ChakraCore]

hermes - A JavaScript engine optimized for running React Native.

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.

bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

V7 - Embedded JavaScript engine for C/C++

vercel - Develop. Preview. Ship.

ChaiScript - Embedded Scripting Language Designed for C++

libuv - Cross-platform asynchronous I/O

Cython - The most widely used Python to C compiler

0.30000000000000004 - Floating Point Math Examples