Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

インストールにかかる時間を短くする・簡単にする #33

Open
igrep opened this issue Oct 28, 2018 · 8 comments
Open
Assignees
Labels
priority:medium なるべくHaskell Day当日までに直したいもののうち、重要度が低めのもの

Comments

@igrep
Copy link
Member

igrep commented Oct 28, 2018

現状はソースからビルドしなければならないので、基本的に遅い。
特に #9 への対応でpandocを依存関係に加えることを検討している現在、よりビルド時間が長くなることが懸念される。

なので、 #29#30 などの対策を通して、実行ファイル(と同時にassetsも)まとめてインストールできる状態にしたい。

@igrep igrep added the priority:medium なるべくHaskell Day当日までに直したいもののうち、重要度が低めのもの label Oct 28, 2018
@igrep
Copy link
Member Author

igrep commented Oct 28, 2018

Haskell Dayに関しては、ビルド待ち時間中に読む代わりのコンテンツを検討しているため、優先度を敢えてmediumにしています。

@waddlaw
Copy link
Contributor

waddlaw commented Oct 28, 2018

background で runhaskell を呼んでるようなので、静的バイナリでの配布は後にして Docker image を作ることにします。

image は https://github.com/phadej/docker-ghc のものを使おうと思うのですが、そのまま利用すると mmlh: <stdout>: commitAndReleaseBuffer: invalid argument (invalid character) というエラーがでるので、ちょっとカスタマイズする予定です。

こっちだとそのエラー出ないんだけどなぁ・・・。(しかし runhaskell が入っていない)

@igrep
Copy link
Member Author

igrep commented Oct 28, 2018

ん?さすがに stack setup は別途やっていただくつもりでしたので、Dockerにするのはちょっとやり過ぎなのではないかと(あっちゃいけないものではないですけども)
基本的にはHaskellをはじめる人をターゲットにするので、stackを入れてstack setupまではどうせやることになるでしょうから。

@waddlaw
Copy link
Contributor

waddlaw commented Oct 29, 2018

基本的にはHaskellをはじめる人をターゲットにするので、stackを入れてstack setupまではどうせやることになるでしょうから。

なるほど。stack setup するのであれば、どちらのケースでも利用可能なので気にしなくて大丈夫ですね。

@as-capabl
Copy link

とりあえず緊急回避として、pandocで変換済みのHTMLをリポジトリに突っ込んでおくという手も…

@igrep
Copy link
Member Author

igrep commented Nov 3, 2018

捕捉:
dockerを使ってちょっと試そう、みたいなユースケースを除いて、原則としてstackのインストールとstack setupはユーザーに別途やっていただく、という方針でインストーラーを作っていただきたいです。
そこまでインストーラーがやってしまうと、mmlhが独自のHaskellの始め方を伝えることになってしまい、ほかで紹介している方法と異なってしまうためです。

@waddlaw
Copy link
Contributor

waddlaw commented Nov 4, 2018

とりあえず Mac のパッケージの作り方について、autopkg というツールを使ってみようと思います。使ったことないので使えなかったら pkgbuild で作ります。

参考

@fumieval fumieval added this to In progress in makeMistakesToLearnHaskell Nov 14, 2018
@fumieval fumieval added this to TODO in Haskell-jp Nov 20, 2018
@waddlaw waddlaw self-assigned this Nov 21, 2018
@igrep
Copy link
Member Author

igrep commented Mar 19, 2019

メモ: Linuxでやる場合はSnapsで作るのがよさそう? https://gihyo.jp/admin/serial/01/ubuntu-recipe/0513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:medium なるべくHaskell Day当日までに直したいもののうち、重要度が低めのもの
Projects
Haskell-jp
  
TODO
Development

No branches or pull requests

3 participants