Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Julia REPL tips and tricks! Coding productivity hacks and quality of life

Автор: BrainRPG Project

Загружено: 2019-10-05

Просмотров: 7807

Описание:

We look into a few commands, shortcuts and crannies that the Julia REPL has so that you can turn your coding up to eleven. Abbreviated script is at the end of this post.

Package shoutouts:

Highly recommended for deep diving into Julia: Developing Julia Workflow by Chris Rackauckas
   • Developing Julia Packages  

Kristoffer Carlsson and OhMyREPL.jl and BenchmarkTools.jl - https://github.com/KristofferC/OhMyRE...

OhMyREPL added cool colors to the REPL, smart pasting so as to not deal with `julia` when copy/pasting code.

Mason Protter and REPLMaker.jl - https://github.com/MasonProtter/REPLM...
REPLMaker guides you into making your own REPL, so that you can punch in a special character and get your own behavior.

Niklas Korsbo and Latexify.jl - https://github.com/korsbo/Latexify.jl
Latexify all the things!

Keno Fischer and Cxx.jl - https://github.com/JuliaInterop/Cxx.jl (This will work soon I promise! I failed live but it is a really cool package!)

Interoperability package to call C++ almost natively from within Julia, with a REPL mode to boot.
These are not the only contributors for most of these packages (or Base Julia), so all credit to those who worked hard and have made Julia an awesome working experience

---
Feel like watching more coding, learning Julia, or knowing about open source contributing?
All are welcome!
Join us on twitch.tv/brainrpg! -- Watch live at   / brainrpg  

---------
Script:
Raz's REPL Productivity hacks v1.0
0. If you've banged your head on something that should be easy, breathe, take a break, walk around, ask a friend, ask Discourse, Slack, Stack Overflow with a Minimum Working Example, be kind, get some sleep, rinse, repeat.
1. Get help with `?`
1.5 Try it! ?parse, ?@time, ?Core, ?OhMyREPL

2. apropos("parse")
3. apropos(TAB - Should autocomple possible calls.
some library, and you want to see what exists
(Damn, missed this in the video. Press MODULE.TAB to explore all the exported stuff! Try LinAlg.TAB
4. methodswith(IO) to know what shenanigans a package is up to with a type
5. Emojis and autocompletion! \:TAB and \alpTAB to kick it off
6. versioninfo(verbose=true)
7. Create MWE example for others to help you!

7.05 use OhMyREPL, for colors and smart pasting!
7.1 Macros and friends!
using @btime
@code_lowered
@code_warntype
@code_llvm
@code_native (Homework: look at the docstrings for some extra cool displays)

7.5 . Paste it into your clipboard with clipboard("\:hankeyTAB") credit to @alexarslan
using Latexify - super cool!

add Cxx.jl
nothing special is going on, you can hack into it if you want to - like with REPLMaker.jl!
a = [:(cos\phi) :(sin\phi)]
latexify(a)
copy_to_clipboard(true) // the realest of combos

8. Enter the shell mode by pressing `;` as the first character in a REPL line
readdir()
cd()
pwd()

6. Go back up with UP/DOWN (useful for presentations)
11. ans -and typeof(ans) (remember, this only works in the REPL. Jupyter/Atom/IDE won't use an `ans` from a script
11.5. Move around with Alt+enter, shift lines with alt+UP/DOWN for ultimate mastery
8. CTRL+r will give you some history look back
12. number and stacktrace and ^Q for quick editing. If using Revise, super haxxorz boosting
13. Setup your revise from Revise.jl, and setup other packages - turn banner on/off
14. Pkg repl - add OhMyTAB to autocomplete

miguelraz.github.io

Julia  REPL tips and tricks! Coding productivity hacks and quality of life

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Intro to Julia Programming Language with Detroit Tech Watch

Intro to Julia Programming Language with Detroit Tech Watch

Developing and Editing Julia Packages

Developing and Editing Julia Packages

Священная ВОЙНА редакторов кода - Vim против Emacs

Священная ВОЙНА редакторов кода - Vim против Emacs

David Higgins - Introduction to Julia for Python Developers

David Higgins - Introduction to Julia for Python Developers

JuliaCon 2020 | Advanced Metaprogramming Tools | Mike Innes

JuliaCon 2020 | Advanced Metaprogramming Tools | Mike Innes

Lecture 36: Alan Edelman and Julia Language

Lecture 36: Alan Edelman and Julia Language

Высокомерный полицейский остановил чернокожего агента ФБР и пожалел об этом

Высокомерный полицейский остановил чернокожего агента ФБР и пожалел об этом

The World's Most Important Machine

The World's Most Important Machine

120 МИЛЛИАРДОВ: Зачем на САМОМ ДЕЛЕ был создан БИТКОИН? Тайна Сатоши Накамото

120 МИЛЛИАРДОВ: Зачем на САМОМ ДЕЛЕ был создан БИТКОИН? Тайна Сатоши Накамото

A Tour of Julia - Erik Engheim [ ACCU 2021 ]

A Tour of Julia - Erik Engheim [ ACCU 2021 ]

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Всё становится только хуже 😬 | Самые смешные новые неудачи, запечатлённые на видео

Всё становится только хуже 😬 | Самые смешные новые неудачи, запечатлённые на видео

Но что такое нейронная сеть? | Глава 1. Глубокое обучение

Но что такое нейронная сеть? | Глава 1. Глубокое обучение

Digital Electronics - The First Video YOU Should Watch

Digital Electronics - The First Video YOU Should Watch

The Strange Math That Predicts (Almost) Anything

The Strange Math That Predicts (Almost) Anything

Optimizing Serial Code in Julia 1: Memory Models, Mutation, and Vectorization

Optimizing Serial Code in Julia 1: Memory Models, Mutation, and Vectorization

Metaprogramming and Macros in Julia | Stefan Karpinski | Jeff Bezanson

Metaprogramming and Macros in Julia | Stefan Karpinski | Jeff Bezanson

Building the PERFECT Linux PC with Linus Torvalds

Building the PERFECT Linux PC with Linus Torvalds

Reproducible Publications with Julia and Quarto | J.J. Allaire | JuliaCon 2022

Reproducible Publications with Julia and Quarto | J.J. Allaire | JuliaCon 2022

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com