HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
Literate Devops with Emacs

Howard Abrams · Youtube · 68 HN points · 17 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Howard Abrams's video "Literate Devops with Emacs".
Youtube Summary
A demonstration originally given at EmacsConf 2015 that describes how I use org-mode's Babel project and Tramp to configure and work with remote servers in my data center, prior to copying code off into Chef cookbooks and whatnot.

* My initial essay that started this presentation: http://howardism.org/Technical/Emacs/literate-devops.html
* Github that contains the demonstration code and results Sprint Page: https://github.com/howardabrams/literate-devops-demo
* Emacs code used to make this demonstration: http://github.com/howardabrams/demo-it
* My Emacs configuration files: http://github.com/howardabrams/dot-files
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Apr 14, 2022 · kkfx on A Dotfile History
Personally I've failed with Emacs years ago, just tried it and decide that's a heavy and horrid mess, I re-tried it few years ago when I see it in action and was at that point in time that I realize it's power.

Emacs is one-tool one-job BUT the tool is just a function and functions can be combined like unix commands in pipes but in far more powerful manner and with far less overhead. Try seeing this: https://youtu.be/B6jfrrwR10k or this https://youtu.be/dljNabciEGg the real issue when starting without a friend of video-tutorials is that Emacs defaults are barebone and really old, the juicy things come only when you discover them.

The power of Emacs is not much Emacs itself but the classic desktop paradigm: anything is integrated so anything can be combined. You type some math in a mail? Why not have it rendered by LaTeX, since your system do have LaTeX support installed and why not solve the ode you are typing since you have a CAS? Why being tied on GUIs to cut&paste as the sole IPC? That's is. Is extremely powerful but so different than actual environments that most users fail to comprehend without seeing it in action...

mxuribe
Thank you, that's quite interesting! I'll take a look at those videos as well. Cheers!
I first heard of Literate DevOps via this video a few years ago https://youtu.be/dljNabciEGg
Org Babel with emacs jupyter if desired. https://youtube.com/watch?v=dljNabciEGg https://github.com/nnicandro/emacs-jupyter#org-mode-source-b...
abdullahkhalids
I have tried it. It works. But there is too much syntax surrounding code blocks that is annoying. And I need to enable inline Math display and inline image display to get a seamless interface.
hannasanarion
Jupyter markdown blocks can parse LaTeX math and image embeddings. Pretty sure that's out of the box.
d0mine
It is emacs, it is easy to eliminate the boiler-plate e.g., by using global/per file/per org sub tree defaults, templates.
Org-mode in Emacs. Because it enables to do literate programming.

In this video [0] by Howard Abrahams you can see how to wave the instructions and the execution of them with Emacs.

Another advantage is that you can mix your diagrams (in plantuml or ASCII art) with your code, in the same org-mode file.

Gitub displays .org files the same way it does Markdown.

[0] https://youtu.be/dljNabciEGg

related "literate devops in emacs" https://youtu.be/dljNabciEGg
Jun 07, 2018 · ScarZy on Remote Only
This is the main reason I want to try and learn Emacs, OrgMode, and Babel. The stuff that Howard Abrahams discusses on the below video is something I think would be highly successful in a remote environment. Documenting your workflow as you go, including commands and output, then emailing it to your team that day or uploading it to a document store/gitbook:

https://www.youtube.com/watch?v=dljNabciEGg

pvaldes
You can grasp org.mode pretty quickly, is all tab-tab-tab and a lot of asterisks here and there.

Emacs needs more effort but it is an achievable goal. Very customisable so you could even ask somebody to create your own comands and circumnavigate the hairy parts for a lot of time until building enough confidence. Finding a good tutor or having somebody interested in the program in your company would help a lot, obviously.

All these workarounds sound like a reason to use start using tramp more (apropos, https://www.youtube.com/watch?v=dljNabciEGg / http://www.howardism.org/Technical/Emacs/literate-devops.htm... is a pretty neat demo of combining org-babel and tramp).

-----

There is also emamux, which seems to be able to copy from tmux: https://github.com/syohex/emacs-emamux/#emamuxyank-from-list...

yjftsjthsd-h
As a vim user, tramp is one of two things that make me keep considering switching, the second being org mode.
greggyb
I have found the transition to be pretty worthwhile. Evil is actually very good. There are also a few Evil-X packages that give sensible rebindings for other popular modes, like evil-magit.

It helped for me that I actually like lisps as well.

See whether you'd like Org-mode + Babel. Example: https://youtu.be/dljNabciEGg
How about Emacs + org mode? https://www.youtube.com/watch?v=dljNabciEGg

I thought this video was pretty cool personally!

cup-of-tea
Very cool! Watching someone else using emacs is always a great learning experience.
Literate programing is used to tangle text and code. You tangle the document and the code blocks are pulled out to create a working program. But Orgmode's Babel, iPython and Wolfram's Computational Essays are literate computing, with code being executed in the document. Howard Abrams has extended the concept to create literate devops (https://www.youtube.com/watch?v=dljNabciEGg) using orgmode babel where the code in the document is used to configure software running on local or remote servers.

I use Babel as part of my daily workflow. Very cool stuff.

None
None
Aug 02, 2017 · 2 points, 0 comments · submitted by yankcrime
Howard's YouTube video is really nice too: https://www.youtube.com/watch?v=dljNabciEGg
ttsiodras
After watching this video, I spent a few hours reproducing the core functionality of what Howard demonstrated (with an .org file of my own)...

...and then went further down the rabbit hole. I installed org-reveal and used it to create a very nice presentation out of my .org file - with syntax-highlighted code seemlessly merging with screenshots.

Incredible. Thanks for pointing me to this - and thank you, Howard!

camperman
Pleasure. org-mode really is the gift that keeps on giving.
Literate DevOps (with Emacs, Org-Mode, Tramp) - https://www.youtube.com/watch?v=dljNabciEGg
I also really like this video of his: https://youtu.be/dljNabciEGg
I could go on and on about the benefits of org. And the org-Babel full fledged literate programming environment is another game changer. I used org for a scientific conference I attended recently. From one org file, I could provision a VM in the cloud and get various Docker containers running via tangling with plenty of human friendly exposition. (See tramp mode too.) I could then export that file as an extended abstract via Latex export (conforming to the conference formatting guidelines) and also produce attractive HTML (see ReadTheOrg). Also checkout this literate devops video:

https://www.youtube.com/watch?v=dljNabciEGg

I use org-mode everyday, as well. And the org-babel literate programming environment is a game changer, and something I find new uses for all the time. Check out this literate devops video [1]

But I share your sentiment for the stability issues which I think reflect problems with emacs in general. One day, you update your packages and suddenly your favorite mode does not work anymore and you have to spend 1/2 day figuring out why literally digging into the source with edebug. Because of this I take the following measures. I use melpa-stable which as the name indicates are the stable versions of emacs packages. (The problem is not all packages are in melpa-stable so you have to deal with that too.) Also, I manage my own version of org-mode cloned from the canonical org-mode repo that I update when I decide and I can back out of if there are problems. Finally, I run emacs within docker which allows me to freeze dry and rehydrate environments that are completely under my control so that I don’t encounter problems with a changing environment either. Here is my literate org-babel .emacs, if interested [2] (I don’t have the Dockerfile on github, yet, unfortunately.)

[1] https://www.youtube.com/watch?v=dljNabciEGg [2] https://github.com/julienchastang/dotemacs/

Sep 26, 2015 · brudgers on Emacs Artist Mode
Emacs org-mode supports a lot of languages [1] and you can mix and match within a file. Howard Abrams literate devops is an interesting example of what org-mode code blocks can do. [2][3]

Org-mode also allows embedding images or source blocks in languages like LaTeX that resolve to rendered images.

[1]: http://orgmode.org/worg/org-contrib/babel/languages.html

[2]: http://www.howardism.org/

[3]: https://www.youtube.com/watch?v=dljNabciEGg

Sep 07, 2015 · 66 points, 0 comments · submitted by wtbob
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.