Initial commit: Pi calculation benchmark with 34 languages

- Added implementations for: bash, brainfuck, c, cpp, crystal, csharp, d, dart, elixir, erlang, fortran, go, haskell, java, javascript, julia, kotlin, objective-c, scala, typescript, lua, nim, odin, perl, php, python, r, ruby, rust, swift, zig, assembly, vimscript, wolfram
- All implementations use Machin's formula: π/4 = 4*arctan(1/5) - arctan(1/239)
- Build system with ./build.sh, test system with ./test.sh
- Performance testing with ./run_all.sh
- Comprehensive README.md explaining performance differences
- Test framework verifies correctness against known π values
This commit is contained in:
Ein Anderssono
2026-04-23 00:26:18 +02:00
commit 54d2fecee0
182 changed files with 17471 additions and 0 deletions
+99
View File
@@ -0,0 +1,99 @@
# Build artifacts
bin/
*.o
*.out
*.exe
*.app
*.dSYM/
# Compiled files
*.class
*.jar
*.beam
*.pyc
*.pyo
__pycache__/
# Dependencies
node_modules/
target/
vendor/
# IDE files
.vscode/
.idea/
*.swp
*.swo
*~
# OS files
.DS_Store
Thumbs.db
# Temporary files
*.tmp
*.temp
*.log
# Language specific
# C/C++
*.d
*.hi
# D
*.o
# Erlang
erl_crash.dump
# Go
*.test
# Haskell
*.hi
# Java
*.class
# Julia
*.jl.cach
*.jl.mem
# Kotlin
*.class
# Lua
*.luac
# Nim
nimcache/
# Odin
*.o
# Rust
target/
# Swift
.build/
Package.resolved
# TypeScript
*.js
*.js.map
*.d.ts
# Wolfram
*.wls
# Vim
*.swp
*.swo
# Test results
test_results/
*.test
# Profiling
*.prof
*.profdata