Skip to content

solarbrowser/quanta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Quanta Logo

Quanta

A high-performance, modular JavaScript engine written in C++

Issues PRs


Table of Contents


What is Quanta

Quanta is a modern JavaScript engine designed for the Solar Project with a focus on modular architecture and high performance. Built from the ground up in C++17, Quanta provides:

Core Features

  • Modular Architecture - Clean separation of concerns with 15+ focused modules
  • High Performance - Optimized execution with advanced compilation techniques
  • Production Ready - Comprehensive test coverage with 100% success rate
  • Cross Platform - Windows, Linux, and macOS support

JavaScript Support

  • ES6+ Compatibility - Modern JavaScript features
  • Complete Built-ins - Math, String, Array, Object, JSON, Date
  • Advanced Operations - Nested objects, complex arrays, functional programming

ECMAScript Compatibility

Quanta has been tested against the official Test262 ECMAScript test suite (51,216 tests). Results demonstrate strong foundational JavaScript support with ongoing development for advanced features.

Test262 Compliance Results

Last Test Date: November 20, 2025 | Engine Version: q112025c114

Metric Count % of Total % of Executed
Total Tests 51,216 100% -
Tests Run 35,697 69.7% 100%
Passed 7,917 15.5% 22.18%
Failed 27,780 54.2% 77.82%
Skipped 15,519 30.3% -

View Detailed & Other Test Results →


For Developers

Building Quanta

Prerequisites

  • C++17 compatible compiler (GCC/Clang/MSVC)
  • Make build system
  • Windows/Linux/macOS support

Build Instructions

Unix like Systems (Linux/macOS)

# Clean build with parallel compilation
make clean && make -j4

# Debug build
make debug

# Release build (default)
make

Unix systems can build Quanta smoothly with standard development tools.

Windows For Windows development, MSYS2 is required for compilation. Native Windows builds have not been tested yet. Binaries built with MSYS2 do not carry any GNU dependencies and run natively on Windows.

  1. Install MSYS2 from https://www.msys2.org/
  2. Install required packages:
    pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make
  3. Build using standard commands in MSYS2 terminal

Build Outputs

  • build/bin/quanta - Main JavaScript executable (3.2MB)
  • build/libquanta.a - Static library (4.9MB)

Testing

Run Test Suite

# Execute JavaScript code directly
./build/bin/quanta -c "console.log('Hello World');"

# Execute JavaScript file
./build/bin/quanta example_file.js

# Interactive REPL
./build/bin/quanta

Planned Release Date

Development Timeline

  • 2025 Q3: Engine foundations (parser, lexer, core modules)
  • 2025 Q4: Modern JavaScript features implementation, testing and ECMAScript compatibility verification
  • 2026 Q1: Performance optimizations and improvements
  • 2026 April: Production release

Milestones

  • Modular architecture implementation
  • Core JavaScript functionality
  • Build system optimization
  • Comprehensive testing framework
  • (little bit of) Modern JavaScript features (ES6+)
  • ECMAScript compliance verification
  • Performance benchmarking
  • Production deployment

Contributing

We welcome contributions! Areas for enhancement:

Development Areas

  • ECMAScript Features - Additional ES6+ feature implementation
  • Performance - Optimization improvements and benchmarking
  • Testing - Expand test coverage and compatibility testing
  • Documentation - Improve documentation and examples
  • Platform Support - Enhanced cross-platform compatibility

Contribution Guidelines

  1. Fork the repository
  2. Create a feature branch
  3. Follow the modular architecture patterns
  4. Add comprehensive tests
  5. Update documentation as needed
  6. Submit a pull request

Priority Areas

  • ECMAScript 2015+ compatibility testing
  • Performance optimization
  • Memory management improvements
  • Cross-platform build enhancements

License

This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.


Built with ❤️ for the Solar Project
Modular • Fast • Reliable

About

A high-performance, modular JavaScript engine written in C++

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages