Save 37% off PRO during our Black Friday Sale! »

Вячеслав Безбородов. Julia vs. Python

Вячеслав Безбородов. Julia vs. Python

Я расскажу об особенностях использования языка Julia и языка Python для решения вычислительных задач большой размерности, с примерами кода и комментариями.

49c3bfded3cf5f5100ef423140676288?s=128

Python Community Chelyabinsk

October 21, 2017
Tweet

Transcript

  1. None
  2. Julia vs. Python Doing your math

  3. What is Julia?

  4. A language for technical computing Julia features • Multiple dispatch

    • Dynamic type system • Call Python functions • Call C functions directly (no wrappers or special APIs needed) • Designed for parallelism and distributed computation • Efficient support for Unicode, including but not limited to UTF-8 • Free and open source (MIT licensed) History remark Julia was first appeared in 2012. It’s a young language with quite small, but quickly growing community. WIKI It is a flexible dynamic language, appropriate for scientific and numerical computing, with performance comparable to traditional statically-typed languages.
  5. None
  6. Travis CI

  7. REPL

  8. None
  9. None
  10. None
  11. Julia is not Python

  12. 1-based indexing In Julia, indexing of arrays, strings, etc. is

    1-based not 0-based. Julia does not support negative indexes. In particular, the last element of a list or array is indexed with end in Julia, not -1 as in Python. Indentation level is not significant as it is in Python. Julia's for, if, while, etc. blocks are terminated by the end keyword. Julia arrays are column major (Fortran ordered) whereas NumPy arrays are row major (C-ordered) by default To get optimal performance when looping over arrays, the order of the loops should be reversed in Julia relative to NumPy. Julia requires end to end a block. Unlike Python, Julia has no pass keyword. In Julia % is the remainder operator, whereas in Python it is the modulus. Noteworthy differences from Python
  13. Calculations

  14. None
  15. None
  16. None
  17. None
  18. Going parallel

  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. Networking

  28. Nothing is impossible. Let’s write a server!

  29. None
  30. None
  31. Further reading • https://julialang.org/ • http://www.laketide.com/julia-vs-r-vs-python/ • https://www.quora.com/What-are-the-disadvantages-of-Julia-compared-to-Python • https://medium.com/@Jernfrost/python-vs-julia-observations-e61ee667fa95

    • https://modelingguru.nasa.gov/docs/DOC-2625
  32. VYACHESLAV BEZBORODOV PROGRAMMER +7 919 407 10 66 vyacheslav.bezborodov@gmail.com v.bezborodov@pressfoto.ru

    THANK YOU!