Barry Schwartz 🫖 · @chemoelectric
522 followers · 9230 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
521 followers · 9210 posts · Server masto.ai

A contribution for -- the old insideness of a convex hull algorithm. I decided to do this because I am likely to stick the algorithm within my next Bézier intersection algorithm (which will be coded in Ada using homogeneous geometric algebra, not in ATS using euclidean, but whatever) --

Find if a point is within a triangle - Rosetta Code rosettacode.org/wiki/Find_if_a

#rosettacode #ats #atslang #mathematics #geometry

Last updated 1 year ago

Barry Schwartz 🫖 · @chemoelectric
509 followers · 8329 posts · Server masto.ai

Have at it, nerds and weirdos! A task for y’all:

Bézier curves/Intersections - Rosetta Code rosettacode.org/wiki/B%C3%A9zi

#fonts #graphics #rosettacode #ats #atslang #dlang #maxima

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
511 followers · 8265 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
511 followers · 8259 posts · Server masto.ai

There is a new example at , part of my nascent tendentious series of simulations that show quantum physicists are entirely wrong in some of their beliefs:

rosettacode.org/wiki/Simulated

This code is all or mostly free of the proofs and complicated call by reference you often see in my ATS code. You could translate it straight into OCaml or SML. It is a simulation, supposedly impossible, of experiments you sometimes see hyped in the news, but which are stupid.

#ats #rosettacode #atslang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
507 followers · 8220 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
508 followers · 8160 posts · Server masto.ai

Some programming in for . And I mean really , not type hierarchy masquerading as OO. Communicating objects.

There is no type hierarchy, because none is needed. One can use a closure to connect two objects, as long as the connection is compatible at both ends.

And there is just one thread, because why in heck would you need two threads, just to read the time on the clock??????

rosettacode.org/wiki/Active_ob

#realtime #objectoriented #ats #rosettacode #oo #atslang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
508 followers · 8151 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
508 followers · 8115 posts · Server masto.ai

Another example for fans!

rosettacode.org/wiki/Long_mult

This is long multiplication, which I have used here to solve two distinct problems.

The designer of the task must never have realized you could do this in something other than BCD and end up not having a carry ever occur.

#ats #rosettacode #atslang #functionalprogramming

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
505 followers · 7878 posts · Server masto.ai

Okay, here’s another program in the raster image category:

rosettacode.org/wiki/Bitmap/PP

It does seem advantageous in some respects to use ImageMagick THIS way, instead of using libmagick.

#ats #atslang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
506 followers · 7875 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
507 followers · 7867 posts · Server masto.ai

I got rid of the need for floating point and the math library:

rosettacode.org/wiki/Grayscale

#ats #atslang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
507 followers · 7866 posts · Server masto.ai

Now the task, and you’ll need even newer versions of bitmap_task.{sats,dats}:

rosettacode.org/wiki/Grayscale

#grayscale #ats #atslang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
507 followers · 7865 posts · Server masto.ai

Okay, you NUMEROUS fans of , I have done the next step in that set of tasks dealing with ():

rosettacode.org/wiki/Bitmap/Wr

You have to get new versions of the earlier files, if you looked at those before. There is a link to them at the top of this entry.

#ats #rosettacode #pixmaps #bitmaps #atslang

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
506 followers · 7805 posts · Server masto.ai

I have added another example to , this time for a strangely named ‘Munching Squares’ task:

rosettacode.org/wiki/Munching_

(The reason I say the task is strangely named is that ‘Munching Squares’ is an animation. Perhaps the task is not adequately fleshed out. I did what I thought it wanted.)

#ats #rosettacode #atslang

Last updated 2 years ago

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
501 followers · 7686 posts · Server masto.ai
Barry Schwartz 🫖 · @chemoelectric
494 followers · 7176 posts · Server masto.ai

pin.it/5ZILwvV

I have the (Rosetta Code) program running at sourceforge.net/p/chemoelectri as the start of an actual project. The SDL2 interface is now organized in parallel with SDL2’s header files.

(Making a complete SDL2 interface is too much work for my fingers. I did not long ago make a rather complete libxml2 interface for D, but THAT I could do with AWK scripts.)

#ats #atslang #mandelbrot #mandelbrotset #rosettacode #functionalprogramming

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
493 followers · 7149 posts · Server masto.ai

Mandelbrot set - Rosetta Code rosettacode.org/wiki/Mandelbro

This program is destined to become an actual project, but what is here is good for Rosetta Code (IMO).

#rosettacode #ats #atslang #sdl2 #functionalprogramming #mandelbrotset #mandelbrot

Last updated 2 years ago

Barry Schwartz 🫖 · @chemoelectric
493 followers · 7116 posts · Server masto.ai

I added to the task for the set:

Mandelbrot set - Rosetta Code rosettacode.org/wiki/Mandelbro

The entries include some stuff, though, which I am tempted to duplicate in ATS.

#ats #rosettacode #mandelbrot #c #opengl #atslang

Last updated 2 years ago