User:Igor Zhuravlov/J conciseness

From J Wiki
Jump to navigation Jump to search

How concise J is comparing to Fortran?

Let's compare J source code conciseness against Fortran.

Compared code bases

Language version Code base Interface definitions All definitions[1]
J7 mt addon, version 0.6.6[2] 273[3] 522[3]
FORTRAN 77 LAPACK library, version 3.2.1[4] 168[5] 245[5]
  1. including private (local) definitions
  2. with test suits
  3. 3.0 3.1 nouns, verbs, adverbs and conjunctions
  4. a corresponding subset only, with BLAS, without TESTING, only D and Z datatypes
  5. 5.0 5.1 subroutines and functions

The result of comparison

Source lines J Fortran %
Code 1754 22042 8
Comments 10052 30025 34
Total 11806 52067 23

Notes

This comparison was originally published 2010-06-22 in FENU forum.