@LeakyNun wait what https://tio.run/##xVdLU9swED47v0I9MGPHNiPZFJoM4diTj71lPB03UcBDYntsZyi/nu5Dkp0mQGHaggeLXe3j208rWTSP/V1dpU/lrqnbXrRFta53EyNV@13z@LTWG9EUbV/22s@C@cTT1fq22GmxEMtZNItS@E3gwVFFEkYJkiRZgiaFh@clzSuax/csmniedKIkMzZJSOZAHIIflOyTjkNIF105FDbb8B5LNrgcUAzqU2P6229iEAGKfOLVm02neyBFTbyu102H/IAe6ds36wLZi2giKqs18shm50XTAKO@8Q8FzsJkuRFSXC9QFLAqOIapuBZbXfEyeF6r@31bCZ@jZss52ORhtiTTuflrTlKOIfW20@TYtGXVm4yIJsoCileUnZ5gZiWquoeUIkN7kwerebgrt9pgEDfiiqBJZ/mw@b6606t7qJ1tUEcu2VLm4tNCSAZQEz2xylGyXgnoYkUa8vnW7hmvV8IM@KBDSAbGojwkhFiDqnOxsJk4mSW5DIyuFCGtFP44Wqw@JaHoOg2bAMNDBKzW4WQEI9TWiCa6pljh7vAN4pgRhio…
@user202729 As far as I can tell dyalog uses the MSB of a word for the first bit in a vector. Also I'm not sure why you're bringing popcount into this, are you suggesting that the algorith they use would require it?
Actually you can just shift right instead of left, for a different bit order
@user202729 No, one less step than the number of elements (along the trailing dimension). The first element of the result is always the unaltered first element (along the trailing axis) of the argument, and the function isn't called at all for that one. (Btw, to go along the leading axis, use ⍀.)
@H.PWiz Oh, I didn't realise that. So it isn't my department. I generally have no clue what goes on below the surface…
@user202729 My misunderstanding of your question was corrected by @H.PWiz ^^^^ I suggest you leave questions on the blog page or email the author directly: marshall@ (domain should be obvious).
@Adám the code page was changed (so your answer over meta might need to do so as well...), there's now something called "aliases" (i.e. shorter versions of already-existing primitives, e.g. ) -> µ€), and there have been many atom and quick additions...btw, Dennis is in the process of de-aliazing Jelly to some degree :P
btw I'm not sure as to why ) is considered to be an alias, since it's actually a chain separator on its own (µ€ isn't one but two tokens)
Indexing Cha-Cha Slide
code-golfnumber
Introduction:
Although I originally had a Dutch song in my head, where the lyrics are: "Do 'n stapje naar voren, en 'n stapje terug" (which translated to "Take a little step forward, and a little step back"), when I searched for the full lyrics, I realize...
@user202729 Marshall says that that was their previous algorithm, and that the one outlined in the blog is substantially faster. Part of the problem is that the operations can't be pipelines. I emailed him after having previously corrected a typo in the post
This is inspired by an 05AB1E answer by Magic Octupus Urn.
Given two arguments, a positive integer and a string/list of characters:
Translate the number to base-n, where n is the length of the string.
For each character, replace every appearance of the index of that character in the base-n num...
Introduction
In a private chat, a friend of mine apparently recently stumbled across a security system which has the following two restrictions on its valid pins:
Each digit must be unique (that is "1" may only appear once)
The order of the digits doesn't matter ("1234"="4321")
So to illustr...
I guess /usr/bin/read has at least some use cases, even if none of them involves storing user input in a variable. /usr/bin/cd could be used to test if we may cd into a directory.
Unix shells: We have two output streams. Output, and Error. PowerShell: We have 6 output streams. Output, Error, Warning, Verbose, Debug, and Informational
Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10. WSL provides a Linux-compatible kernel interface developed by Microsoft (containing no Linux kernel code), which can then run a GNU userland on top of it, such as that of Ubuntu, openSUSE, SUSE Linux Enterprise Server, Debian and Kali Linux. Such a userland might contain a Bash shell and command language, with native GNU/Linux command-line tools (sed, awk, etc.) and programming language interpreters (Ruby, Python, etc.).
When introduced with the Anniversary Update...
@Pavel Maybe pwsh is just too different to what I'm used to. Set-Alias is a lot more complicated then alias, yet it doesn't allow you to do simple things like `alias lsl='ls -l' without creating a function.