Загрузка видео...

Не удалось загрузить видео

На главную

I think I solved it. The perfect scripting environment for Elixir. I call it Livescript. livereload of .exs files in IEX, only rerunning the code that changes. The longer your script, the more savings gained. #myelixirstatus

53,440 просмотров • 1 год назад •via X (Twitter)

Комментарии: 11

Фото профиля Thomas Millar
Thomas Millar1 год назад

Livescript diffs you code to only run the minimal amount of code to bring your IEx session back up to the current state.

Фото профиля Thomas Millar
Thomas Millar1 год назад

Loading a large dataset? automating a chrome browser? All will be cached between edits of your script. The longer script, the more you win.

Фото профиля Thomas Millar
Thomas Millar1 год назад

Best part, the resulting file is just a plain .exs file. Nothing else. You can run it normally and schedule it with CRON. Finally you can throw out your bash scripts and use elixir like you used to use Python.

Фото профиля Thomas Millar
Thomas Millar1 год назад

check it out

Фото профиля José Valim
José Valim1 год назад

Love the demo! I also think Livebook should at least have a "livebook export foo.livemd --to exs" so you can automate some things without having to manually export notebooks in the UI.

Фото профиля Hugo Baraúna
Hugo Baraúna1 год назад

Wow, this is cool!

Фото профиля Thomas Millar
Thomas Millar1 год назад

Thanks, I built a web scraper with it last night. It was so enjoyable. Really built it to scratch my own itch

Фото профиля mitch the elixir-tools guy 👨🏻‍🔬👨🏻‍🔧
mitch the elixir-tools guy 👨🏻‍🔬👨🏻‍🔧1 год назад

Looks nice! Is the wallaby helper library i see there pushed up anywhere/oss?

Фото профиля Thomas Millar
Thomas Millar1 год назад

Nope it’s just a local dumping ground for right now. Once I stop changing it every 3 weeks I’ll clean it up and post it. FWIW it’s mostly helper lib for Floki, there’s only a few wallaby things in there for now

Фото профиля Yurko
Yurko1 год назад

Great idea and a very nice and to the point demo! Thank you for showcasing it with Wallaby - highlights how fast you can do things with Elixir too! I haven’t played with that library before - seems very approachable (like a lot of Elixir things are :))

Фото профиля Thomas Millar
Thomas Millar1 год назад

It's very nice, the |> pipe operator is a perfect fit for webscraping too

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