CC#1 Rot 13:

Welcome to the first YLD Coding Challenge! 🔥🔥🔥
You are tasked in writing a function that returns the deciphered string input into readable text. 💪
The function can be named what ever you want it to be named!
Examples
An example application that works could take the string Bar lyq! as an argument which is then deciphered and returned as "One yld!" 1️⃣.
<?php
function rot13($string) {
return str_rot13($string);
}
?>Categories
- 🗜️ Smallest working solution in bytes (look up "language-of-choice code golf")
- 🏎️ Most performant solution
- 🐎 Most esoteric solution (complex, using monads, built 100% in css) for example
Rules
Your solution can be in any language, just make sure you provide instructions on how to run!
You can work in a group, or on your own!
External modules / libraries will count towards the smallest solution size.
How to submit
Slack your solution to (@tomgco) privately with instructions on how to run, the winner will be announced after the next YLD MCM on the Friday, 11th October 2019 and then sent to #group-engineering
Questions or Hints
Please raise them on #group-engineering in slack or to @tomgco directly.
Closing Date
Tuesday 8th October 2019
Current Submissions
Note: Order is based on time of entry, not position
| Name | Language | Size | Operations per Second |
|---|---|---|---|
| Can you beat... | Node v12.4.0 | 98 bytes | 935,000 Ops/s |
| James Wright | Python 3.7.4 | 133 bytes | 189,000 Ops/s |
| Dan Bartlett | Node v12.4.0 (C++ Addon) | 1278 bytes | 3,422,000 Ops/s |
| Dan Bartlett | Node v12.4.0 (WASM) | 616 bytes (Compiled WASM) | NaN Ops/s (RangeError: start offset of Uint32Array should be a multiple of 4) |
| Dan Bartlett | Node v12.4.0 (WASM Rust) | 310 bytes (Rust Code, Compiled using wasm-pack) | 550,000 Ops/s |
| Dan Bartlett | Node v12.4.0 (GPU.js) | 1843 bytes | 1,222,000 Ops/s |
| Dan Bartlett | Node v12.4.0 | 256 bytes | 1,052,000 Ops/s |
| Dan Bartlett | Node v12.4.0 (WASM Assembley Script) | 1843 bytes | 54,000 Ops/s |