« first day (2678 days earlier)      last day (2156 days later) » 

1:00 PM
o/ @DJMcMayhem
 
@Mayube Some thoughts. Doing all those things are VERY complex so I would expect eery answer (if any) would use builtin.
17
Q: Implement SHA-256

MegoGiven a sequence of bytes, output the SHA-256 hash value of the sequence. The SHA-256 Algorithm The following pseudocode is taken from the Wikipedia page for SHA-2. Note 1: All variables are 32 bit unsigned integers and addition is calculated modulo 2^32 Note 2: For each round, there is one ro...

@user2284570 Consider making a meta post. It's very hard to get your challenge reopened when everyone have no idea what it is.
Link the other "similar" challenges if you think they helps.
 
@HatWizard more laser people...
 
mcve for nondeterminstic SPL.
 
@FreezePhoenix Huh?
 
@HatWizard
 
1:08 PM
@FreezePhoenix pls no onebox...
 
@user202729 dats not a onebox but whatever
 
Or at least don't use onebox too much. They takes a lot of vertical size.
Anything in chat messages that SE render as a box is called a onebox.
 
@user202729 pls, no millions of oneboxes :) JK...
 
The problem is probably with int_input.
 
@FreezePhoenix o/
 
1:26 PM
Hm...
> If the failure has been caused by end-of-file condition, additionally sets the eof indicator (see feof()) on stream. The contents of the array pointed to by str are not altered in this case.
So at line 310, it's not initialized.
Assume EOF is reached, after line 323 it stays uninitialized.
And then it's read from. Undefined behavior.
Somewhat interesting.
char_input doesn't have that bug. It will consistently return -1 on EOF.
 
Why do you use small caps? Autocorrect?
> ʜᴛᴛᴘ
 
0
Q: Are questions about blockchain systems good questions?

user2284570Current handling of Ethereum questions seems inconsistent (Ethereum being the second largest blockchain). This about the recent difference between Shortest code to generate a random ethereum address with matching private key pair and Get ERC-20 token balance which doesn’t describe how to connect...

 
I think that there may be some vulnerabilities in the SPL implementation.
 
1:42 PM
@user202729 Yes… Always use small caps for abbreviated nons.
 
1:55 PM
-1
Q: Third time lucky

AJFaradayI actually don't know, I really do not, if this challenge is achievable. Write some code, in any language. I must be able to run it in an online code runner such as tio.run If I run it twice, both will fail with some kind of error message. The third time I run it, it should succeed. It's a code...

 
Not that I found one. If I do and it allow something I wil post to the tips question.
Because basicaly EVERYTHING are shorter than SPL.
 
2:05 PM
There's a new enwik8 compression record: prize.hutter1.net/award4.gif
 
@user202729 The non-deterministic SPL seems to be the interpreter not checking for EOF in int_input
 
@JoKing Yes, already figured out.
 
2:21 PM
Does anyone else find code-golf.io a little frustrating? Knowing that there's somehow smaller solutions, but being unable to ever see them is killing me inside.
Also, there's this one guy, edre, on the python leaderboards that is somehow 70-100 bytes in front of the next person on the longer challenges
 
hi
My lovely question codegolf.stackexchange.com/q/165504/9207 isn't getting as much love as I was hoping
is there anything wrong with it?
I realise the question is non-trivial, but there are plenty of smart people on ppcg
 
@JoKing Seeing tonhospel beat me by 2 bytes after I had him beat for 3ish weeks is certainly frustrating
 
@H.PWiz to be fair.. tonhospel is clearly a genius
 
@Anush Waaay too nontrivial.
And people are kinda lazy.
Nothing wrong, don't worry.
 
@user202729 but too nontrivial for what? I mean you can submit code that solves it for a tiny number of cases if no one else can do any
if you see what I mean
I haven't set a minimum in any way
@user202729 bounty? I could add one now
my first, I think
bounty added
 
2:34 PM
@Anush Who is this guy?
 
@Zacharý which guy?
 
tonhospel.
 
Just another perl hacker
 
oh.. some coding genius... he is pretty amazing and has been for years
@H.PWiz no he is more than that
let me show you
 
LOL
After this operation, 8,192 B of additional disk space will be used.
 
2:35 PM
that's not the work of a mere perl hacker
13
A: Calculate the permanent as quickly as possible

Ton Hospelgcc C++ n ≈ 36 (57 seconds on my system) Uses Glynn formula with a Gray code for updates if all column sums are even, otherwise uses Ryser's method. Threaded and vectorized. Optimized for AVX, so don't expect much on older processors. Don't bother with n>=35 for a matrix with only +1's even if y...

 
Ah, I think I see.
 
I see him as a genius who hacks perl on the side :)
 
I know, I was mostly just making a reference
 
oh.. if you don't mind my asking is my question of any interest to you @H.PWiz ?
 
No, I don't feel like putting a lot of time into something. (fastest code is not my stongsuit anyway)
 
2:38 PM
@H.PWiz that's a shame but understood
maybe someone will end up winning with the only trivial entry :)
 
So, he's like a Dennis?
 
@Zacharý well not just that
also a great codegolfer mostly in perl
 
0
A: Sandbox for Proposed Challenges

BubblerNonogram line brute-force solving code-golf puzzle-solver Background Nonogram, also known as Picross or Griddlers, is a puzzle where the objective is to determine if each cell on the 2D grid should be colored or left blank, using the numbers of consecutive colored cells on each line. The follo...

 
I have to go for a bit but please may I advertise my bountied challenge codegolf.stackexchange.com/questions/165504/… :) There are no current answers so it may be easy to win the bounty!
 
2:53 PM
I was hoping for some clarifications about the [codegolf.stackexchange.com/questions/165573/… (farfallino alphabet question) - namely about the behavior with capitalization, because the spec is inconsistent about how they should be treated.
specifically AfaSCIfifi, AfafaAfaH, and AfafaAfafaH are internally inconsistent. They should be either AfaSCIfif, AfafafaH, and AfafafafaH or AfaSCIfiIfi, AfaAfaAfaH, and AfaAfaAfaAfaH
- oh and those are for inputs ASCII, AAAH, and AAAAH, respectively
Any thoughts?
 
@Zacharý :/
 
:\
 
103
A: Calculate the number of primes up to n

DennisC, 0.026119s (Mar 12 2016) #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define cache_size 16384 #define Phi_prec_max (47 * a) #define bit(k) (1ULL << ((k) & 63)) #define word(k) sieve[(k) >> 6] #define sbit(k) ((word(k >> 1) >

 
3:10 PM
... I wish python had gotos now
@user202729 Never said Dennis wasn't good at it.
 
3:23 PM
1
Q: Is this a Weyr matrix?

ngmThere's a type of matrix called the Weyr canonical form. A characteristic example is: A Weyr matrix is an n×n upper triangular matrix such that: n1 ≥ n2 ≥ ... ≥ nr n1 + n2 + ... + nr = n the ith diagonal block is λ times the ni×ni identity matrix the first superdiagonal blocks are ni×ni+1 ma...

 
@Zacharý It does, there's a library
 
Eh, I've already got my workaround
 
4:00 PM
@ASCII-only If you're still trying, my SPL quine is ~320KiB.
 
4:24 PM
@user202729 Now 286.
 
4:35 PM
hmm, logic gates in braingolf are actually kinda tricky
especially boolean implication
 
4:48 PM
@user202729 Do you code in python at all? I am hoping to ask you a favor
or anyone who codes in python
 
Hi
 
@Anush I do, go for it
 
@DJMcMayhem Well.. I was hoping someone could write a sample answer for codegolf.stackexchange.com/questions/165504/… because I am guessing people don't want to answer it until they have something to beat
I could then include it in the question
@DJMcMayhem (even if you say no.. thank you for volunteering)
it doesn't have to be fast in fact it might be better if it isn't
 
@Anush I might later today, but since is a much higher bar to entry, I'd rather spend an hour on it and do it right rather than slap something together real quick.
 
5:14 PM
o/
@ASCII-only flatten should flatten an array to a specified depth, not by a specified depth.
 
@DJMcMayhem - I notice that you edited the [ codegolf.stackexchange.com/q/165573/61846 ](Farfallino Alphabet) question - I have some concerns about the spec being inconsistent (specifically about handling capitalization), do you take a look at the question for me?
 
@TaylorScott By inconsistent, do you mean that it's been edited and invalidating answers, or do you mean the examples don't fit with each other?
The reason I made that particular edit was because there were too many comments, and I was trying to clean them up. But I wanted that particular example to stick around.
 
5:31 PM
@DJMcMayhem The examples do not fit with one another.
if you look at the cases for the inputs ASCII, AAAH, and AAAAH the outputs are
AfaSCIfifi, AfafaAfaH, and AfafaAfafaH
 
Hmm, and it should be AfAfaAfaH, and AfAfaAfAfaH?
 
I think that they should be either AfaSCIfifi, AfafafaH, and AfafafafaH or AfaSCIfiIfi, AfaAfaAfaH, and AfaAfaAfaAfaH
 
The second way doesn't fit with the double vowel rule
And the first way doesn't fit with 2 consecutive vowels are not special
 
I agree, but the second one is how majority of the answers that I checked use,
so i thought I should include it
wait, whu does the first way not fir the 2 consecutive vowels are not special
 
Well, the first way makes way more sense, but it doesn't seem to be what OP was intending. (although it's much better)
 
5:39 PM
I honestly just don't understand what OP intends with the AAAH cases - why is ther that random A in the middle?
 
As far as I understand it, aa becomes afafa, so aaa becomes afafa followed by a regular 'a' which becomes afafa + afa
It's a 2-vowel sequence, followed by a 1-vowel sequence. not a 3-vowel sequence.
But the problem with that interpretation is that the capitalization ends up really weird
 
... what in the world? that is bizzare
so, if I added a 5th A, for AAAAAH, it should be something like AfafaAfafaAfaH?
 
Yep.
 
... but doesn't that mean that there is some special treatment for 2 consecutive vowels?
 
> When you come across a double vowel syllable (the vowels must match, like door, boots, reed, etc.) you must omit the 2nd vowel. This rule is mandatory
 
5:47 PM
like, why is the logic AA -> Afafa rather than AA -> AfaAfa -> Afafa?
 
I went through and tested every answer. Right now, none of them pass the AAAH → AfafaAfaH test case you added at the end. Since your edits have invalidated every single answer and the spec is still not entirely clear (why is it AfafaAfaH and not AfAfaAfaH?), I am going to close this question. — DJMcMayhem ♦ 1 min ago
@TaylorScott
 
moreover, given this

=RegExReplace(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(REGEXREPLACE(A17,"(?i)[aeiou]","$0f$0"),"fA","fa"),"fE","fe"),"fI","fi"),"fO","fo"),"fU","fu"),"(?-i)(a){2}|(e){2}|(i){2}|(o){2}|(u){2}","$1$2$3$4$5")

monstrosity of an answer (google sheets), how might I be able to recitfy the issue?
oh
That seems reasonable
 
Dalek voice "Substitute! Substitute!"
 
yes, definitely - I could not find a better way to handle the change of case for capital vowels
Exterminate
 
Tbh
I'd say not make people care about cases with more that two vowels in a row
Because handling that case doesn't add anything meaningful to the challenge
IMO
 
5:58 PM
I'm leaning towards Leave it closed, post a better one that had some time in the sandbox, then close this one as a dupe.
But that is an unusual opinion around here, so I'm not saying that officially or anything
 
My opinion is usually to remove anything not vital to a challenge though
 
@ATaco Either that or aaa --> afafafa rather than afafaafa
 
@DJMcMayhem Thank you
 
 
@Adám the heck have you done?
 
6:13 PM
@J.Sallé Found a bug.
 
Ah, I see.
 
0
A: Sandbox for Proposed Challenges

ngmArray-of-arrays string conversion Matrix challenges are popular. There's an issue of how to provide test cases. A common method is the array-of-arrays rowwise representation, such as in the following cases: [[]] -> empty matrix [[1, 2], [3, 4], [5, 6]] -> a 3 by 2 matrix The main benefits are...

 
6:28 PM
0
A: Can I redo my Code Golf?

DJMcMayhemI'm repeating some things from my last comment, but leaving them here for completeness. I think that now the requirements are much better The requirements are much less clear with the added edge cases, so I have closed the challenge for now. I went through and tested every single answer ...

Thoughts anyone?
 
6:40 PM
definitely agree, +1
much better than the existing answer imho
(then again, I've always been a fan of allowing reposted challenges)
 
o/
 
What's a good name for a function that turns a NIlad into a Function?
 
@Zacharý Define Nilad. Define Function.
@Zacharý You mean like {⍺⍺}?
 
Define name.
 
6:48 PM
Yeah, something like {⍺⍺}
I've got Monadify for Nilad => Monad, and Dyadify for Nilad => Dyad.
 
@Zacharý So you distinguish between monadic and dyadic functions?
 
No. Just a bad naming convention: Monadic and Dyadic are Operators.
 
@Zacharý Functionalize or Constant [Function].
 
@Adám welcome to Windows 10
 
@EriktheOutgolfer Not Win10's fault in this case.
 
6:51 PM
Thanks!
 
@Adám the image can apply more generally :P
 
niliadToFunction(Niliad: niliad): function {
/// ...
}
 
cheap laptop + W10 = whoooooosh + hot to touch
 
s/W10/GNOME3/
Win10 isn't all that bad in the performance department.
 
I remember its heyday...
 
7:07 PM
@ASCII-only ah... array.where is just a variant of array.filter
 
7:35 PM
TFW you have a bug ... that fixes another bug, so you don't have any problems
 
Hey, does anyone know how to make a code tester box?
 
idk
 
@Zacharý Sounds like you're working on V...
 
Nah, V isn't ... RAD (Rankless Apl Derivative) enough.
 
Today I discovered that a co-worker of mine had fixed a "bug" I often use . :-(
@Zacharý Does RAD support empty non-trailing dimensions?
 
7:38 PM
@Adám LOL
 
@Adám No, I don't think so. It's system of arrays/vectors is just pretty much like a non-APL lang.
 
@Zacharý Pretty much like K then.
 
Yeah, it's pretty much K hopped up on symbols.
It's also that "semi-golf" language I said something about; it will have stuff designed with golfing in mind, but not necessarily designed for golfing.
@Adám As long as it doesn't disrupt everybody's workflow
 
@Zacharý Why not just write your built-ins in K using unusual names, and then have a thin "interpreter" that converts your chosen Unicode glyphs to the special names and asks K to evaluate the result?
 
Arbitrary size integers.
 
7:43 PM
Gosh darn it why is it so difficult to search the internet for a tutorial on making javascript evaluation box!
 
F[1;2] is not K's evaluation, it's APL's array element access adjusted to fit a rankless language.
 
I'm about to go and scrape it off of MDN...
 
So, it's not close enough to APL, J, nor K to warrant using any of them as the interpreter language.
 
So, calling the language AppleJacks is right out? (APLJKs)
2
 
@Zacharý The fix certainly disrupts my workflow. For some (to me unfathomable) reason, someone has explicitly disabled a certain action when the cursor is on line 0 of what's being edited. However in a script, line 0 of a function is not line 0 of the script, so the disabling doesn't work and I can perform the needed action. Now my co-worker "fixed" this so that the action is disabled even on line 0 of functions inside scripts. :-(
 
7:48 PM
hi
 
@AdmBorkBork DANG IT! I'm not changing it now, I literally have about 10 files named with the prefix RAD, so I'm sticking with it. If I ever make an updated version that can have varying types of identifiers, I'll use that
 
@Anush o/
 
@FreezePhoenix ?
 
o/ == hello
 
aha :)
 
7:51 PM
o/, I see
 
still no answers to my challenge....
 
@Zacharý Sorry I didn't hear about the language sooner.
 
I'm gonna shamelessly copy off of mdn... interactive-examples.mdn.mozilla.net/pages/js/…
 
It's fine, Dennis already made a comment about the language name (he didn't come up with it), so I just took that as approval enough. What are language names, anyway? As long as it's not vulgar or anything.
 
@AdmBorkBork I don't think APLJK sounds like AppleJack
it sounds more like AppleJack, minus the a
 
7:57 PM
@Zacharý Fair point. Plus there are enough esoteric languages with names that have nothing to do with the language.
 
APL is used as Apple because that's how the letters are pronounced
 
hi.. would anyone like to give me a hand designed a challenge around solving recurrence relations?
 
And then there are those stupid recursive ones cough PHP cough
 
@Anush clarify.
 
@AdmBorkBork Maybe it should be APLJAK since A is another variant of APL (in fact, it is K's precursor).
 
7:59 PM
@FreezePhoenix well.. first off how can I embed this wikimedia.org/api/rest_v1/media/math/render/svg/… in a question?
it doesn't seem to be an image
 
Never heard of A, so TIL
 
@Adám hey, that's what I was thinking of! except that it's A+, not A
 
@Anush thats an svg...
 
@FreezePhoenix any idea how to make it embeddable in a question?
 
A+ is an array programming language descendent from the programming language A, which in turn was created to replace APL in 1988. Arthur Whitney developed the A portion of A+, while other developers at Morgan Stanley extended it, adding a graphical user interface and other language features. A+ is a high-level, interactive, interpreted language, designed for numerically intensive applications, especially those found in financial applications. A+ runs on many Unix variants, including Linux. It is free and open source software released under a GNU General Public License. A+ provides an extended set...
 
8:01 PM
Yeh. Rewrite it.
I think codereview supports mathjax equations.
@Anush this is what you need:
{\displaystyle T(x)=g(x)+\sum _{i=1}^{k}a_{i}T(b_{i}x+h_{i}(x))\qquad {\text{for }}x\geq x_{0}.}
Follow the instructions on the main site on how to insert mathjax equations and past that inside.
 
oh...I don't know about these instructions
let me see if I can find that
 
@EriktheOutgolfer A+ is just an extension of A.
 
I don't think PPCG supports MathJax...
 
@FreezePhoenix I am pretty sure ppcg doesn't have this
@EriktheOutgolfer right
 
at least, not yet
 
8:03 PM
0
A: Sandbox for Proposed Challenges

AnushCreate random recurrences with their solutions (This is a work in progress and I would love any help please.) The task is to create random recurrence relations that are solvable using the Akra-Bazzi method along with the solutions. This method solves recurrences of the form: {\displaystyle T(x...

 
@EriktheOutgolfer Then... lemme see
@Anush save that svg to local, and upload it as an image
 
svg? can you really upload that in a post?
 
@EriktheOutgolfer I don't think you can
 
Try it... It's an image format.
 
you need to convert it to a bitmap
 
8:05 PM
I recommend PNG
 
OK... take a screenshot and crop it.
 
or just use a converter
@Adám well, in that sense, A is K's grand-parent, while A+ is K's parent
(K has 3 parents)
 
@EriktheOutgolfer Yes, and APL is K's great-grandparent. But that's only the first K. Each version of K is a new language, not an extension of the previous version.
 
@Adám K's relationship with APL is...weird
(it's also its parent)
 
@EriktheOutgolfer Wut why...
 
8:10 PM
an influencee can be influenced by an influencer of another influencee, as well as that influencee itself
 
Rebooting...
 
@EriktheOutgolfer Yes, like the relationship between J and Dyalog APL.
 
@Adám So like Perl then, but with more versions.
 
Last log: E: Grammar incorrect
 
8:14 PM
@Zacharý Not a whole lot more versions. K7 is under development.
 
or Python, (Python 3) ≠ ↑(Python 2)
 
Eh, the relationship with RAD added in is weirder then anything else; it's a three way, plus all K's relations and J's relations
 
ngn
k has significant influence from Lisp too
 
@EriktheOutgolfer Why the take there?
 
Perhaps reboot with the --ignore-grammar flag.
 
8:15 PM
@ngn The original M-format, right (aka, pretty much mathematica?
 
@Zacharý take? that's not APL code, ↑ means "upgrade"
 
ngn
@Zacharý M-expressions, and not only
 
@Zacharý Isn't it Mix?
@EriktheOutgolfer No, is upgrade.
 
@Adám I guess it depends on how you perceive it...
 
@ngn First class functions as well.
 
8:16 PM
Rebooting... Flags: --ignore-grammar
 
you can also write that as, well, 'Python 3'≢⍋'Python 2'
 
managed to convert the svg at last!
which was an amazing pain
 
@Zacharý is monadic in (Python 3) ≠ ↑(Python 2)
 
ngn
@Zacharý right
 
@EriktheOutgolfer Hm, (⍋'Python 3')≡(⍋'Python 2'). Strange.
 
8:17 PM
@Adám HAHA
 
@Anush Downloading 'oxymoron'
 
@FreezePhoenix Wrong download. "Amazing pain" is a variant of "Amazingly painful [experience]"
 
@FreezePhoenix ??
turns out convert -flatten temp.svg temp.pngworks. Who knew?
 
@Anush I'm a living metaphor
 
CMC: Find two programming language names of lengths ≥3 with identical grades (i.e. the letters of each name would be sorted with identical indexings). E.g. Cab and Zxy (if those had been programming languages.
 
8:21 PM
@Adám oh, I don't think you should represent the languages as strings, I only use them because I won't bother trying to find some other way to express them
 
copying en.wikipedia.org/wiki/Akra%E2%80%93Bazzi_method to ppcg is a real pain
as we can't do any of the maths
I will be forced to use screenshots which is pretty ugly
 
@Anush right click and select "download image" on those maths
 
@FreezePhoenix do you try the suggestions you make? :)
 
Spent about 10 minutes trying to fix an error, then I realized that I typed rev_S instead of res_S
 
they are not images
 
you don't need to post all those links here :)
 
You get the point.
 
but yes I could convert each one to a png
 
well, unfortunately, the list should be in text, not in PNG ;)
 
8:29 PM
I feel a "convert a wiki page full of math to a ppcg question" challenge coming on :)
 
@Adám Tea and SQL
 
@AdmBorkBork Tea needs 1 3 2 while SQL needs 3 2 1.
Of course, longest answer wins!
 
Oh, I didn't realize you meant asciibetical
 
@DJMcMayhem Good; score 3.
 
8:42 PM
@Adám mirror and carrot
 
@dzaima Nice; score 6.
 
@Adám Befunge-98 and Befunge-93
 
@H.PWiz I discarded those as boring
 
The highest score on TIO is 14 (but boring).
 
there's coffeescript 1 and coffeescript 2
 
8:45 PM
@dzaima That's the one.
 
carrot & mirror are the best ones in TIO that aren't boring
 
@dzaima Nope, I've found a non-boring score 7 pair.
 
ah, and I was wondering how the heck Adám brute-forced the calculation
 
@DJMcMayhem That's a boring 10.
 
8:48 PM
Wait, how are we scoring these things?
 
@Zacharý Up until before the space that precedes the parens.
 
Full list:
https://tio.run/##lZndcxu3FcXf@1co04e4E7euxUROp514ZFKKJNM2Kyr2TDJ9WJMrcStqV8MPWew/3y4uzjm4gKSJ6xfx/Ba4X7jAgvTdf/t/v337pr7ctlf1n/822Hs22R2Hz3/69vle4j86/q8//Pb4Az9h8NSE/sHxmzenD8xHWA59d3FcDD0g/P2hrx4devDY0MHXD33c6quvt/rq69P68bFiDXyxJrvNomv39veeDe2TDU3wDPD3hg4SzIeePWb1a4c@bnXwRKz/x1Cf1rC7vKzr6WzV3G72XoZxGdl/OGj/waCXNujTolnf1qv13p2ZSXK/eLyfP46zz7bLptr761@@Dw8pfnj60UH26Af/6PunH@WzDp6edfAwDNTvpa/lUw8G2eK6By@fepDNGDw1Y/DA@XDv2dVsZgvcf9yEj8CbhK@I90fH29l1oIejs1@mFwU8rmabbhXhuvq8rAOc3lazem4Qk3qIOTl00/ExH5mg8z6pV8s9WyT7dJDggWBcAAQSbMbgzPts9s03ZnI@/@47oHrTocdWy4jm1e3GirGomrZA49PJFCiYCLbMqKGr
 
And I actually got my parser to work: it successfully parses (not evaluates, yet) most of RAD's syntax. All I've got left is statements separated by a line, and conditionals.
 
0
Q: Pointing out bugs without comment privilege

bubensI found a bug in a code golf submission but do not yet have commenting privilege. Is there a polite way for me to let the user know about this bug? The side offers me to "suggest an edit" but I'm not sure wether doing so would be against the rules/etiquette/good manners.

 
could anyone help please with the math at codegolf.meta.stackexchange.com/questions/2140/…
 
8:51 PM
@DJMcMayhem Where is ['Cheddar', 'Trigger']?
 
it's a total mess currently
I mean the typesetting is
 
@NewMetaPosts That's the main reason I kept earning a lot of rep at once on here: to comment on a post that didn't follow the challenge rules.
 
@Adám I don't know. I guess I missed that somehow?
 
Traceback (most recent call last):
  File ".code.tio", line 1, in <module>
    with open("langs.txt") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'langs.txt'
 
@Adám oh right case is helpful here. I lowercased all the names :p
 
8:52 PM
@EriktheOutgolfer I didn't run it on TIO
 
how did you get that "langs.txt" file then, and how come your brute-forcer can do this in under 2 years
 
@Adám I get [0, 5, 4, 2, 2, 1, 6], [0, 5, 4, 2, 2, 1, 5] for those two
 
do indices repeat
AFAIK, I don't think that many elements in one list can be described as "the third element" :P
 
@DJMcMayhem Right, indices don't repeat. I should have said that the indices have to be permutations.
 
@DJMcMayhem APLs grade gives 1 6 4 5 3 2 7
 
8:56 PM
@EriktheOutgolfer I just copied TIO source, and parsed out everything that isn't a language. And it doesn't take 2 years because TIO only has 480 languages that are 3 characters are more. 480^2 == 230400 string comparisons which is perfectly reasonable for a modern computer to do basically instantly.
@dzaima I wrote my own by indexing into the sorted characters...
That would explain it
 
basically, you should use a list of indices if you don't want it to take until the end of the world
e.g. 'Carrot' -> [0, 1, 2, 3, 4, 5]
then, as you put indices into the result, remove them
for example, the first index used is 0, so now the list is [1, 2, 3, 4, 5]
 

« first day (2678 days earlier)      last day (2156 days later) »