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:
+99
@@ -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
|
||||
Reference in New Issue
Block a user