What is Cosmos?

Overview of a multi-language offline collection of programming solutions
12 October 2017   7334

Cosmos is your personal offline collection of every algorithm and data structure one will ever encounter and use in a lifetime. This provides solutions in a various languages spanning CC++JavaPythonGo and others.

This work is maintained by a community of hundreds of people and is a massive collaborative effort to bring the readily available coding knowledge offline.

Main purpose of Cosmos is to make coding possible offline. 

Many coders ask me how to improve their own performances. I cannot say anything except "solve and review and prepare your library.
 

Uwi Tenpen

HC 2016 Finalist / Yandex Algorithm 2015,2016 Finalist / CodeChef Snackdown 2015,2016 Finalist Java/Python/Bash

Cosmic Structure

Following is the high-level structure of cosmos:

  • Backtracking
  • Bit manipulation
  • Computational geometry
  • Data structures
  • Divide conquer
  • Dynamic programming
  • Graph algorithms
  • Greedy algorithms
  • Mathematical algorithms
  • Randomized algorithms
  • Search
  • Sorting
  • String algorithms
  • Unclassified

Each type has several hundreds of problems with solutions in several languages spanning CC++JavaPythonGo and others.

The project is complitely community-driven and has 300 active contributors at GiHub

QuickJS to be Updated

This is an engine the supports the ES2019 specification and additional mathematical extensions, such as the BigInt and BigFloat types
23 January 2020   162

French mathematician Fabrice Bellard, who once founded the QEMU and FFmpeg projects, has published an update to the QuickJS compact embedded JavaScript engine he is developing. The engine supports the ES2019 specification and additional mathematical extensions, such as the BigInt and BigFloat types. In performance, QuickJS is noticeably superior to its existing counterparts (XS by 35%, DukTape more than twice, JerryScript three times, and MuJS seven times). The project offers a library for embedding the engine, a qjs interpreter for running JavaScript code from the command line, and a qjsc compiler for generating self-contained executable files. The code is written in C and distributed under the MIT license. More details about the project can be found in the text of the announcement of the first issue.

The new version adds experimental support of the BigDecimal type, which allows you to manipulate decimal numbers with arbitrary precision (analogue of BigInt for numbers with base 10). Updated implementation of operator overloading. Added examples of programs for effectively calculating the Pi number up to a billion decimal places (as a mathematician, Fabrice Bellar is known as the creator of the fastest formula for calculating the Pi number).

Get more at the official website of the author.