question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

improve code generator

See original GitHub issue
  • サンプルと突き合わせての型の判断
  • 出力形式の判定 (Yes / No とか)
  • 出力部分のコード生成
  • MODの値の取得
  • 制約の取得
  • 乱択ケースの生成
  • 問題文を解析してグラフをいい感じに受け取る
  • 解析精度の向上
  • 出力先言語の選択を可能に
  • 対応サービスの増加

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kmykcommented, Feb 14, 2019

そういう需要があるなら、コードジェネレーション部分だけを切り出したpython libraryを作ることを検討します。現状そんなにコードが複雑な絡んでいないはずなので。

これぜひよろしくお願いします。 online-judge-tools をライブラリとしての利用については、必要ならドキュメントの整備もします。

ところで、僕はatcoder-toolsのコンテスト用のファイルを全部生成する機能とかが割と好きなのでそういうのをonline-judge-toolsでネイティブでサポートしてくれると嬉しかったりします。

これは少し検討させてください。 「コンテスト用のファイルを全部生成する機能」を好む人がいることは知っているのですが、ネイティブでのサポートをすべきかどうかは分かりません。特に atcoder-tools の提出機能を分離したライブラリないしプログラムを作るのだとすると、 online-judge-tools とその提出機能部分の両方の wrapper プログラムという形で外に出すべきだと考えています。 例えばそのようなものとして既に http://tatamo.81.la/blog/2018/12/07/atcoder-cli/ があります。

いずれにせよコンテストの列挙や問題の列挙をする機能は足します。(すでに別プログラムのために実装されているので)

1reaction
kyuridenamidacommented, Feb 14, 2019

こんにちは。ダウンロードや提出通信周り+テストの部分をonline-judge-toolsに任せて、解析の部分にatcoder-toolsで使うというのは正直ありかなと思います。 実は過去にonline-judge-toolsの入力出力ダウンロード部分を使おうとしたんですが、python モジュールの一部を拝借してサンプルを任意のディレクトリ・サンプル名で出力する等ができなかったり、atcoderのクライアント部分だけをそのまま使おうとしてなんか失敗して諦めた経緯があるので(そのときはPRすればいいと思ったがなんか開発の疾走感を楽しみたかったため独自路線を行ってしまった)、もしかしたらお互いに感じていることは同じかもしれません。

そういう需要があるなら、コードジェネレーション部分だけを切り出したpython libraryを作ることを検討します。現状そんなにコードが複雑な絡んでいないはずなので。

ところで、僕はatcoder-toolsのコンテスト用のファイルを全部生成する機能とかが割と好きなのでそういうのをonline-judge-toolsでネイティブでサポートしてくれると嬉しかったりします。

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding and Improving Code Generation - Databricks
Code generation is integral to Spark's physical execution engine. When implemented, the Spark engine creates optimized bytecode at runtime improving ...
Read more >
Increase Code Generation Speed - MATLAB & Simulink
You can improve code generation speed by specifying the maximum number of elements that data vectors can have for the code generator to...
Read more >
Code Generation: The Magic Formula for Faster Code?
Code Generation : The Magic Formula for Faster and Better Code? When people think of code generation, they often think of the automated...
Read more >
Using generators to improve developer productivity
Automate all the things! #What is a code generator? A code generator is a tool that given a set of rules and inputs...
Read more >
Issues in the design of a code generator - GeeksforGeeks
A code generator is expected to generate the correct code. ... Selecting the best instructions will improve the efficiency of the program.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found