Here you go, numerous #ATS fans, another #Mathematics #RosettaCode contribution in #ATSlang --
https://rosettacode.org/wiki/Determine_if_two_triangles_overlap#ATS
#ats #mathematics #rosettacode #atslang
A #RosettaCode contribution for #ATS -- 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 https://rosettacode.org/wiki/Find_if_a_point_is_within_a_triangle#ATS
#rosettacode #ats #atslang #mathematics #geometry
Have at it, #fonts nerds and #graphics weirdos! A #RosettaCode task for y’all:
Bézier curves/Intersections - Rosetta Code https://rosettacode.org/wiki/B%C3%A9zier_curves/Intersections
#fonts #graphics #rosettacode #ats #atslang #dlang #maxima
More #ATS (#ATSlang) for #RosettaCode --
https://rosettacode.org/wiki/Simulated_optics_experiment/Data_analysis#ATS
There is a new #ATS example at #RosettaCode, part of my nascent tendentious series of simulations that show quantum physicists are entirely wrong in some of their beliefs:
https://rosettacode.org/wiki/Simulated_optics_experiment/Simulator
This #ATSlang 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.
I have added #ObjectIcon and #ATS --
https://rosettacode.org/wiki/Bernstein_basis_polynomials#ATS
#objecticon #ats #atslang #functionalprogramming
Some #RealTime #ObjectOriented programming in #ATS for #RosettaCode. And I mean really #OO, 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??????
#realtime #objectoriented #ats #rosettacode #oo #atslang
Some naïve quadrature implementations, in #ATS, for #RosettaCode --
#ats #rosettacode #atslang #functionalprogramming #numericalmethods
Another #ATS example for #RosettaCode fans!
https://rosettacode.org/wiki/Long_multiplication#ATS
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
Okay, here’s another #ATS #ATSlang program in the raster image category:
https://rosettacode.org/wiki/Bitmap/PPM_conversion_through_a_pipe#ATS
It does seem advantageous in some respects to use ImageMagick THIS way, instead of using libmagick.
#ATS #ATSlang #ImageProcessing #GraphicsProgramming #FunctionalProgramming #LinearTypes #WheresMyElephant #DontHaveACowMan #ImBartSimpsonWhoTheHellAreYou
#ats #atslang #imageprocessing #graphicsprogramming #functionalprogramming #lineartypes #wheresmyelephant #donthaveacowman #imbartsimpsonwhothehellareyou
I got rid of the need for floating point and the math library:
https://rosettacode.org/wiki/Grayscale_image#The_ATS_dynamic_file
Now the #grayscale task, and you’ll need even newer versions of bitmap_task.{sats,dats}:
Okay, you NUMEROUS fans of #ATS, I have done the next step in that set of #RosettaCode tasks dealing with #pixmaps (#bitmaps):
https://rosettacode.org/wiki/Bitmap/Write_a_PPM_file#ATS
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
I have added another #ATS example to #RosettaCode, this time for a strangely named ‘Munching Squares’ task:
https://rosettacode.org/wiki/Munching_squares#ATS
(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.)
Okay, you #ATS fans, whom I know to be plentiful! Here is the #RosettaCode task for drawing antialiased straight lines, done in ATS:
https://rosettacode.org/wiki/Xiaolin_Wu's_line_algorithm#ATS
#ats #rosettacode #atslang #functionalprogramming #proceduralprogramming
#ats #atslang #functionalprogramming #lineartypes
I have the (Rosetta Code) program running at https://sourceforge.net/p/chemoelectric/mandelbrot-viewer 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
#ats #atslang #mandelbrot #mandelbrotset #rosettacode #functionalprogramming
Mandelbrot set - Rosetta Code https://rosettacode.org/wiki/Mandelbrot_set#An_interactive_program_that_can_write_PAM_images
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
#rosettacode #ats #atslang #sdl2 #functionalprogramming #mandelbrotset #mandelbrot
I added #ATS to the #RosettaCode task for the #Mandelbrot set:
Mandelbrot set - Rosetta Code https://rosettacode.org/wiki/Mandelbrot_set#ATS
The #C entries include some #OpenGL stuff, though, which I am tempted to duplicate in ATS.
#ats #rosettacode #mandelbrot #c #opengl #atslang