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

  1. 🗜️ Smallest working solution in bytes (look up "language-of-choice code golf")
  2. 🏎️ Most performant solution
  3. 🐎 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

NameLanguageSizeOperations per Second
Can you beat...Node v12.4.098 bytes935,000 Ops/s
James WrightPython 3.7.4133 bytes189,000 Ops/s
Dan BartlettNode v12.4.0 (C++ Addon)1278 bytes3,422,000 Ops/s
Dan BartlettNode v12.4.0 (WASM)616 bytes (Compiled WASM)NaN Ops/s (RangeError: start offset of Uint32Array should be a multiple of 4)
Dan BartlettNode v12.4.0 (WASM Rust)310 bytes (Rust Code, Compiled using wasm-pack)550,000 Ops/s
Dan BartlettNode v12.4.0 (GPU.js)1843 bytes1,222,000 Ops/s
Dan BartlettNode v12.4.0256 bytes1,052,000 Ops/s
Dan BartlettNode v12.4.0 (WASM Assembley Script)1843 bytes54,000 Ops/s