#atslang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #atslang, aggregated by home.social.
-
CW: Rosetta Code: NEW TASK!!!!!!!!!
I have added #ObjectIcon and #ATS --
https://rosettacode.org/wiki/Bernstein_basis_polynomials#ATS#ATSlang #FunctionalProgramming
Addendum: Others have been adding examples, too, so far in languages with which I am unfamiliar.
-
CW: Rosetta Code/ATS
I have started a set of #pixmap = #bitmap manipulation tasks (since when do we pretend a color image is a ‘bitmap’?) with an #ATS contribution to the very first of the tasks:
https://rosettacode.org/wiki/Bitmap#ATShttps://rosettacode.org/wiki/Bitmap#ATS
I went back to doing things at a low level, which my readers surely will appreciate. So the code is lengthy, given what is being done.
And safety is important, so notice that if a ‘load’ fails you still get valid image data (an image filled with one color).
-
CW: Rosetta Code and ATS
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
-
CW: Rosetta Code and ATS
My latest addition to the #ATS repertoire of #RosettaCode -- an implementation of the #Quaternion type task --
Quaternion type - Rosetta Code https://rosettacode.org/wiki/Quaternion_type#ATS
Also related to ATS, I posted the #m4 output of vmc (which I wrote in ATS) to the #Mandelbrot set task:
-
CW: Rosetta Code
This #compiler for the #RosettaCode Virtual Machine assembly language can now target any of #ATS, #C, #Mercury, or #Scheme --
https://sourceforge.net/p/chemoelectric/rosettacode-contributions/ci/default/tree/vmc.dats
The Scheme code runs very fast in #ChezScheme, so-so in all else I have tried. I wonder how they do it. Maybe a lot of C code (instead of Scheme) in the runtime is part of it?
The generated Mercury is not so fast, but such is life with Mercury. It’s fastish, considering.
-
CW: Rosetta Code
I have added #ATS to the languages for which there is a solution to the #RosettaCode #ModularArithmetic task:
Modular arithmetic - Rosetta Code https://rosettacode.org/wiki/Modular_arithmetic#ATS
This task was practically tailor-made for #Ada. :) But ATS lets us easily extend the language to handle modular numbers.
#ATSlang #FunctionalProgramming #Proofs
Update: After reading the task language again, I added some more commentary, to point out what I see as a flaw in the task.