<commit_before># Seven-Languages-in-Seven-Weeks

My exercise in Seven Languages in Seven Weeks

## [DONE] Ruby

method_missing 非常好用，具体见 ruby/csv

## [DOING] IO

## [TODO] Prolog

## [TODO] Erlang

## [DOING] Clojure

写 Clojure 的话 Lighttable 不错。

repl 可以用 `lein repl`

### 有意思的包

- core.match (Clojure / ClojureScrit)

- core.logic (Clojure / ClojureScrit)

  Prolog-like relational programming

- core.async (Clojure / ClojureScrit)

  Facilities for async programming and communication in Clojure

  我测试的结果：Java下是能用满所有 CPU，Js下是个状态机，只能吃满一个 CPU。

  顺带一说，ES6 的 Promise 也非常不错，简化了异步的操作。

- algo.monads (Clojure)

### [TODO] Sleeping Barber<commit_msg>fix typo<commit_after># Seven-Languages-in-Seven-Weeks

My exercise in Seven Languages in Seven Weeks

## [DONE] Ruby

method_missing 非常好用，具体见 ruby/csv

## [DOING] IO

## [TODO] Prolog

## [TODO] Erlang

## [DOING] Clojure

写 Clojure 的话 Lighttable 不错。

repl 可以用 `lein repl`

### 有意思的包

- core.match (Clojure / ClojureScript)

- core.logic (Clojure / ClojureScript)

  Prolog-like relational programming

- core.async (Clojure / ClojureScript)

  Facilities for async programming and communication in Clojure

  我测试的结果：Java下是能用满所有 CPU，Js下是个状态机，只能吃满一个 CPU。

  顺带一说，ES6 的 Promise 也非常不错，简化了异步的操作。

- algo.monads (Clojure)

### [TODO] Sleeping Barber
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0015479876160990713, 'mean_word_length': 4.2560975609756095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '842750', 'n_tokens_mistral': 610, 'n_tokens_neox': 611, 'n_words': 130}