I finally have a design for matrices in #ATS that I think will make the QR decomposition #RosettaCode task readable.
I had thought of simply adapting the Businger-Golub ALGOL code by removing the pivoting (and also constructing Q rather than leaving that half done, as they do), but then it would be difficult to relate the code to the task.
Binding of functions with optional return values is an obvious hack. It’s commonly done in #Icon, for example, by having a procedure in a chain of computations FAIL rather than RETURN.
The list monad is widely used by authors to produce a list of some Pythagorean triples. This is so easily done with just a single tail recursive function as to make the monad version pathetic. :)
Not linking to it because I don't want to potentially unleash a shitstorm on the guy, but leave it to the #SCSSoftware blog to come up with a phrase you will never hear in any context outside #ATS. #Oklahoma
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??????
Sure, one can use SDL2 or whatever to draw lines, and, sure, these figures have "aliasing", but the tasks call for aliased figures. (I already did antialiased lines in ATS for a different task.)
Anybody getting Oklahoma achievements in ATS in the next 3 hours just about has to be cheating and anybody doing it in the next 10 is buying it in 5 minutes when it goes on sale and going no life on it for the rest of the day.
TIL, #ATS was nominated for the 2016 Czech Game of the Year awards in the categories of Best Game, Best PC game, Best technological solution, and Best sound, and won in the tech solution category.
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:
One might notice a couple of things. In the current version of all these codes, (a) you do not need a garbage collector, because it’s using linear types, and (b) you do not need the math library and I do not use floating point.
(I temporarily had floating point while I was confounded to find what I was doing wrong with integers.)
IMO writing loops is simple enough in some languages -- including ATS and standard #Scheme -- that there really isn’t that huge a need for such a thing as this ‘list binding’ operator. But in some languages it’s just effing hard to write a loop.
They say everything is bigger in Texas, including the updates! In our upcoming 1.48 update for American Truck Simulator, our talented team has revisited the state to bring an update that fits the boot; including roads, landmarks, depots, and more. Let's dive into what our team has been working on. We've been busy upgrading the...
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:
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.
#Oklahoma Tourism trademarked the state's logo, used on many signs identifying the state or its departments. So far, Oklahoma's the only state in #ATS that does this. So the real Oklahoma logos aren't used in ATS, they had to create their own parody brand identity for the state... 🤦♂️
Here is another #RosettaCode entry, in a dialect of Lisp that annoys me a whole lot, with compilers whose error messages make #ATS error messages look easy, but which I insist on using for these tasks, just the same:
I did some #math this time. It’s a catenary (the curve of a loosely hanging rope) made by drawing lines perpendicular to a tractrix. (The tractrix itself is not depicted.)
American Truck Simulator - American Truck Simulator 1.48 Update - Texas New Content - Steam News (store.steampowered.com)
They say everything is bigger in Texas, including the updates! In our upcoming 1.48 update for American Truck Simulator, our talented team has revisited the state to bring an update that fits the boot; including roads, landmarks, depots, and more. Let's dive into what our team has been working on. We've been busy upgrading the...