Programming languages in computer science / applied math academic journals I am working on documenting a new algorithm to solve a discrete mathematics problem, hopefully to publish academically. In this article, I will need to provide code samples and attach or link to a full code listing.

In academic articles I read from late last century, it was customary to document algorithms in C (one example here 1). Counting problems that involved large numbers used double even if the precision was insufficient.

In today's academic journals, what language is used by leading discrete mathematics papers?



For completeness, following are the journals I would try to target. I don't have access to these anymore, otherwise I would just leaf through them all.


Journal of Combinatorial Theory
Discrete Mathematics
Discrete Applied Mathematics
Electronic Journal of Combinatorics
Advances in Applied Mathematics
Journal of the ACM
SIAM Journal on Discrete Mathematics
MAA Monthly
Computational Methods in Engineering
Computational Intelligence and Complexity
SIAM Journal on Optimization
SIAM Journal on Computing
Computational Intelligence and Complexity


1 Shirish Chinchalkar in "An Upper Bound for the Number of Reachable Positions", ICCA Journal, Vol. 19, No. 3, pp. 181-183, 1996
I don't know anything about Computational Methods in Engineering or Computational Intelligence and Complexity, but I can speak to the other journals.  Journal of the ACM publishes plenty of theoretical papers, and the others you list are all mathematics or theoretical CS journals (although note that the American Mathematical Monthly is not really a research journal).  Papers in these journals won't generally include code samples, and you can write a theory paper analyzing an algorithm without implementing it.  If you do implement it, any reasonable choice of programming language is fine, whichever you prefer.  A computer algebra system can be a good choice for a proof of concept, but it's really up to you.

Incidentally, you've listed a rather broad range of journals.  It would be a rare paper that could comfortably fit into all of them, so you'll eventually have to narrow the field.  Based on your comments about code samples and implementations, I also wonder whether less theoretical journals might be a better fit, but of course it's hard to tell without knowing more about the paper you're writing.