urbanij / mergesorts

mergesort in many languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mergesort In All Languages

Are you tired of unsorted arrays? Do you wanna smash your keyboard when you see the array:

πŸ‘ŠπŸš§πŸ™‰[5,9,1,3,4,6,6,3,2]πŸ‘ŠπŸš§πŸ™‰

Well look no further!
We provide the #1 Leading Industry-Proven AI πŸŽ† Decentralized πŸ“Ÿ Language-Agnostic 😎 Mergesort Solutions

More seriously

Our goal is to compare the length and "complexity" of the same code in many different languages. Which language is the best? Now we can know.

Functional languages like Scheme and Haskell seem to make much smaller code than Rust, Dart and C#.

And then there's J, which has a 3 line solution. The jury is out if it's readable though.

Getting started

Don't know merge sort algorithm.
Pick up a programming language and try to implement it yourself

Running all of the versions

Install everything you need and run: ./run.sh

Pull Requests

Make sure you have your language running in CI and it uses the list [5,9,1,3,4,6,6,3,2]

New policy: We will only be fixing bugs in already submitted languages. Want to join, pick a new language!

About

mergesort in many languages


Languages

Language:Shell 10.3%Language:Brainfuck 8.3%Language:C# 5.6%Language:Ada 4.9%Language:SystemVerilog 4.9%Language:Objective-C 4.7%Language:Coq 3.6%Language:Dart 3.1%Language:Swift 3.0%Language:HolyC 2.7%Language:D 2.5%Language:Scala 2.5%Language:Kotlin 2.5%Language:C 2.5%Language:ATS 2.3%Language:C++ 2.3%Language:PHP 2.3%Language:Julia 2.3%Language:Java 2.2%Language:Pascal 2.1%Language:Rust 2.1%Language:JavaScript 1.8%Language:Nim 1.7%Language:Tcl 1.6%Language:OCaml 1.6%Language:Prolog 1.6%Language:Go 1.5%Language:F# 1.4%Language:TypeScript 1.4%Language:Python 1.3%Language:Ruby 1.3%Language:Perl 1.3%Language:R 1.3%Language:Elixir 1.2%Language:Lua 1.2%Language:Haskell 1.0%Language:Scheme 0.9%Language:CoffeeScript 0.7%Language:J 0.4%