shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

292
active users

#sorting

0 posts0 participants0 posts today

The new `compareLex()` comparator in thi.ng/compare is another useful addition included in recent #ThingUmbrella updates (last week). It's intended for short tag-like strings containing compounds of words and numbers (e.g. "2d" or "base36"). It splits strings at the first digit/non-digit boundary and if both inputs (in terms of comparison) happen to contain such a boundary, compares each of these chunks lexicographically (using numeric ordering if both sides are numeric).

The attached short code example shows the difference to the (almost pointless, in this case) JS native sort logic...

(Ps. You can also see it in action in the sorted tag list of the previously linked thi.ng tag browser...)

(Pps. Updated code snippet, earlier copy/paste error...)

I am excited my Glammr.us join date is 12. Aug., World #Elephant Day. Here is my #introduction.

I'm a former #museum worker living with a big elegant #painter and a tiny sugar sweet #architect.

Also a former #dinosaur and #bird lover as a primary schooler and a current waste #sorting enthusiast.

Recently realised my #tea taste leans uncontrollably towards #oolong tea.

My first #language is not English, but I will try to stick to using it for communicating with non-Korean speakers.

(🔽 cont.)

New study, impressive result: "Here we show how #AI can go beyond the current state of the art [in #sorting efficiency] by discovering hitherto unknown routines…We formulated the task of finding a better sorting routine as a single-player game. We then trained a new deep reinforcement learning agent, AlphaDev, to play this game. AlphaDev discovered small sorting algorithms from scratch that outperformed previously known human benchmarks."
nature.com/articles/s41586-023

NatureFaster sorting algorithms discovered using deep reinforcement learning - Nature Artificial intelligence goes beyond the current state of the art by discovering unknown, faster sorting algorithms as a single-player game using a deep reinforcement learning agent. These algorithms are now used in the standard C++ sort library.