home.social

#atslang — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #atslang, aggregated by home.social.

  1. CW: Rosetta Code: NEW TASK!!!!!!!!!

    I have added #ObjectIcon and #ATS --
    rosettacode.org/wiki/Bernstein

    #ATSlang #FunctionalProgramming

    Addendum: Others have been adding examples, too, so far in languages with which I am unfamiliar.

  2. 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:

    rosettacode.org/wiki/Bitmap#AT

    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).

    #ATSlang

  3. 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 rosettacode.org/wiki/Quaternio

    Also related to ATS, I posted the #m4 output of vmc (which I wrote in ATS) to the #Mandelbrot set task:

    rosettacode.org/wiki/Mandelbro

    #ATSlang

  4. CW: Rosetta Code

    This #compiler for the #RosettaCode Virtual Machine assembly language can now target any of #ATS, #C, #Mercury, or #Scheme --

    sourceforge.net/p/chemoelectri

    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.

    #ATSlang #ContinuationPassingStyle #FunctionalProgramming

  5. 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 rosettacode.org/wiki/Modular_a

    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.