Barry Schwartz 🫖 · @chemoelectric
502 followers · 7710 posts · Server masto.ai

Okay, you fans, whom I know to be plentiful! Here is the task for drawing antialiased straight lines, done in ATS:

rosettacode.org/wiki/Xiaolin_W

#ats #rosettacode #atslang #functionalprogramming #proceduralprogramming

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
490 followers · 7046 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
490 followers · 7044 posts · Server masto.ai

I have added --
rosettacode.org/wiki/Modular_a

(I will not call this an example of , given that I never use goal-direction or failure in any significant way.)

#objecticon #rosettacode #proceduralprogramming #logicprogramming

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
491 followers · 7041 posts · Server masto.ai

I just keep going. It is a pretty simple task. I did more than was called for, in the example I did first.

Here is --

rosettacode.org/wiki/Modular_a

As with the ATS, I use a macro, although the macro system is not as capable as that of ATS.

(I used the C preprocessor. There was once a standard Fortran preprocessor, but it was removed from the standard. Nobody used it. Everyone used the C preprocessor, m4, or some such.)

#ats #fortran #rosettacode #proceduralprogramming

Last updated 2 years ago