Giter Site home page Giter Site logo

unintelligent-intellect / which-lang-to-learn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boletales/which-lang-to-learn

0.0 0.0 0.0 716 KB

Haskell 38.86% C 12.50% C++ 2.14% Cython 2.01% Python 3.36% Rust 5.70% Julia 1.51% Fortran 2.54% JavaScript 2.83% R 1.42% Assembly 11.29% C# 1.83% Java 2.55% Visual Basic .NET 2.61% F# 1.50% Crystal 0.87% Ruby 1.14% OCaml 2.01% Scala 1.96% Raku 1.37%

which-lang-to-learn's Introduction

使い方

  • 貢献は以下の方法で行い、langs_template.md (以下テンプレート)の貢献者欄に自分のハンドルネームとやった内容を書き加えてください

    • テンプレートについて、
      • 各言語欄に特徴を書き加えたり、まちがっている項目があれば修正する
      • 新しい言語を書き加える
    • 実用的なサンプルコードをsamplesに追加して{file: id }で本文に埋め込む
    • すでにあるサンプルコードを改善する
    • まだサンプルコードがない言語について、
      • その言語の拡張子と同名のディレクトリを作り
      • 以下の動作をするコード(実行速度に配慮してあるとうれしい)を入れ
        • startと出力する
        • 素朴なエラトステネスのふるい(偶数を飛ばしたりしない)で10^8以下の素数をすべて判定する
        • 10^8以下の素数をすべて列挙した配列を得る
        • 得た配列の末尾の要素を出力する
        • endと出力する
      • settings.csvに実行用の設定を書き加える
  • 本文はlangs.mdです

  • langs.mdは からbench.hsを通して生成します。

  • bench.hsは以下のような順にlangs.mdを生成します

    • settings.csv, files.csvを読み取る(以下各列の名前は斜体で表します)
    • settings.csvの各行について、
      • dir のディレクトリに移動する
      • build のコマンドを実行する
      • timeコマンドで exec のコマンドの実行時間を計測し、記録する
    • テンプレート中の以下の文字列を置換してlangs.mdとして保存する
      • settings.csv由来のもの
        • {code: id } → source の中身を含むコードブロック
        • {result: id } → 実行結果を含むコードブロック
        • {sample: id } → 上2つをつなげたもの
      • files.csv由来のもの
        • {file: id } → path の中身を含むコードブロック

which-lang-to-learn's People

Contributors

boletales avatar anabanted avatar tumoiyorozu avatar fabon-f avatar cm-ayf avatar femshima avatar sorasuegami avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.