3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

長いコードのデバッグをするときは、REPLからincludeで評価するようにしましょう

Posted at
julia> include("/path/to/your_long_file.jl") # ソースコードの中身がすべて評価される
juila> ...

以下、よくない例:

$ julia /path/to/your_long_file.jl

理由は、エラーが起きた場合に、再度

  • Juliaの起動(1~2秒かかる)
  • パッケージの読み込み(場合によっては30秒以上かかる)

をしないといけないからです。your_long_file.jl の内容が例えば、

using Gadfly
using Cxx
...

のような内容を含んでいたとすると、ロード時間がとんでもないことになってしまいます。Juliaのスタートアップにかかる時間と、パッケージのロードにかかる時間は、できるだけ節約しましょう。

参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?