Re:An Implementation of J – Incunabulum (2008)
by avmich on Saturday September 11, 2021 @11:27AM
(#28492747)
They prefer to write in their language. And to do that, produce primitives, written in C, first, and then use those primitives according to their language, not C. So from C programmer standpoint it's awful C, from J programmer standpoint it's a good middle ground between wanting to write J and the underlying language possibilities.
[ Parent
| on HN ]
Re:An Implementation of J – Incunabulum (2008)
by rwnspace on Saturday September 11, 2021 @11:39AM
(#28492838)
I would love to see a J program written in a literate programming style (with the same terseness of code). Though I'm sure that idea seems like anathema to most of those people!
Edit: thanks very much to commenters below for showing how wrong I was to assume the above :)
Re:An Implementation of J – Incunabulum (2008)
by razetime on Saturday September 11, 2021 @11:59AM
(#28493010)
There are many, many array programmers who choose to write in a literate style. Popular code examples written for toy challenges often tend to be smart one liners whose algorithms cannot be easily put in multiple lines, so they may look unreadable for people unfamiliar with the languages. A terse compact code style often works well with the language's design.
If you'd like some examples of traditionally literate array programming, you can see:
- tangentstorm's J streams: https://www.twitch.tv/tangentstorm
- tangentstorm's J repositories: https://github.com/tangentstorm?tab=repositories&q=&type=&la...
- Dyalog's APL repositories: https://github.com/orgs/Dyalog/repositories?q=&type=&languag...
Re:An Implementation of J – Incunabulum (2008)
by rscho on Saturday September 11, 2021 @12:47PM
(#28493429)
Not at all anathema. Many array programmers are very big on code documentation. J has joxygen to generate html docs from comments and JOD which is a code dictionary system.