chemoelectric, to science
@chemoelectric@masto.ai avatar
chemoelectric, to random
@chemoelectric@masto.ai avatar

I finally have a design for matrices in that I think will make the QR decomposition 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.

Em0nM4stodon, (edited ) to random

People Hiring People 📄​✨

When an applicant contacts you directly to offer to send you their resume:

  1. Do you prefer to receive a resume that is ATS-optimized (Applicant Tracking Systems)?

  2. Or do you prefer to receive a resume that is colorful and human-optimized?

chemoelectric, to random
@chemoelectric@masto.ai avatar

I did in the third, last and BY FAR MOST INTERESTING task on :

https://rosettacode.org/wiki/Monads/Writer_monad#ATS

Binding of functions with optional return values is an obvious hack. It’s commonly done in , 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. :)

BalooUriza, to random

Not linking to it because I don't want to potentially unleash a shitstorm on the guy, but leave it to the blog to come up with a phrase you will never hear in any context outside .

"I look forward to driving in Oklahoma."

chemoelectric, to random
@chemoelectric@masto.ai avatar

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??????

https://rosettacode.org/wiki/Active_object#ATS

BalooUriza, to random

Hardesty Center in Tulsa somehow became in the best identity crisis possible.

chemoelectric, to random
@chemoelectric@masto.ai avatar

Alright, you many, many fanatics. I have a treat for you: four tasks at once!

https://rosettacode.org/wiki/Bresenham_tasks_in_ATS

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

BalooUriza, to gaming

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.

https://store.steampowered.com/app/2209650/American_Truck_Simulator__Oklahoma/

BalooUriza, to random

That was fast! is getting five new Texas cities already.
https://blog.scssoft.com/2023/06/american-truck-simulator-148-update.html?m=1

BalooUriza, to random

TIL, 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.

chemoelectric, to random
@chemoelectric@masto.ai avatar

I have started a set of = manipulation tasks (since when do we pretend a color image is a ‘bitmap’?) with an 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).

chemoelectric, to random
@chemoelectric@masto.ai avatar

This is the ‘Read a PPM file’ task done in , giving you a program for converting color images to grayscale:

https://rosettacode.org/wiki/Bitmap/Read_a_PPM_file#ATS

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

chemoelectric, to random
@chemoelectric@masto.ai avatar

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

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.

chemoelectric, to random
@chemoelectric@masto.ai avatar

Another stupid little ‘monad’ example in , for --

https://rosettacode.org/wiki/Monads/List_monad#ATS

IMO writing loops is simple enough in some languages -- including ATS and standard -- 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.

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

chemoelectric, to random
@chemoelectric@masto.ai avatar

Another example for 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.

ioster, to random French
@ioster@mamot.fr avatar
chemoelectric, to random
@chemoelectric@masto.ai avatar

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:

https://rosettacode.org/wiki/Simulated_optics_experiment/Simulator

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.

BalooUriza, to random

https://twitch.tv/baloouriza

I just discovered now has some WSDOT Ferries routes.

BalooUriza, to gaming

From Schneider National, this move seemed innovative and daring. But for a company who stands for "Stevie Wonder Institute For Trucking", it smacks of desperation.
https://blog.scssoft.com/2023/09/dynamic-billboards-swift-transportation.html

ezlin, to TruckSim
@ezlin@gamepad.club avatar

The folks behind American Truck Simulator sure know how to monetize.

$6 for a bundle that includes the base Euro Truck Simulator 2, American Truck Simulator, AND the Valentines Day cosmetic pack for both and

I mean, I almost feel like I'm robbing them.

BalooUriza, to 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 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... 🤦‍♂️

chemoelectric, to random
@chemoelectric@masto.ai avatar

Okay, here’s another 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.

chemoelectric, to science
@chemoelectric@masto.ai avatar

Here is another entry, in a dialect of Lisp that annoys me a whole lot, with compilers whose error messages make error messages look easy, but which I insist on using for these tasks, just the same:

Xiaolin Wu's line algorithm - Rosetta Code https://rosettacode.org/wiki/Xiaolin_Wu%27s_line_algorithm#Common_Lisp

I did some 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.)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • magazineikmin
  • mdbf
  • GTA5RPClips
  • everett
  • rosin
  • Youngstown
  • tacticalgear
  • slotface
  • ngwrru68w68
  • kavyap
  • DreamBathrooms
  • khanakhh
  • megavids
  • tester
  • ethstaker
  • cubers
  • osvaldo12
  • cisconetworking
  • Durango
  • InstantRegret
  • normalnudes
  • Leos
  • modclub
  • anitta
  • provamag3
  • lostlight
  • All magazines