You can pretty much write and execute your technical paper and your source code simultaneously in arbitrary languages.
I recommend the spacemacs[3] distribution, as the vi interface gets it right.
[1] https://orgmode.org/manual/index.html#Top
[2] https://orgmode.org/manual/Working-with-Source-Code.html#Wor...
[3] http://spacemacs.org/
(For more complex documents, I've had better luck manipulating TeX directly rather than via another layer, e.g. Org mode, which is fantastic for other things.)
You can pretty much write and execute your technical paper and your source code simultaneously in arbitrary languages.
I recommend the spacemacs[3] distribution, as the vi interface gets it right.
[1] https://orgmode.org/manual/index.html#Top
[2] https://orgmode.org/manual/Working-with-Source-Code.html#Wor...
[3] http://spacemacs.org/