« first day (2636 days earlier)      last day (2209 days later) » 
00:00 - 16:0016:00 - 00:00

12:00 AM
their userland is Java right? most JVMs have sun.misc.Unsafe
and that's just the simple way
 
There might be a security policy for Unsafe, can't remember
@NathanMerrill what are the usual tournament formats for KoTH?
I've seen a variety but not sure what most people prefer. I don't think it makes a huge difference for this
 
@ASCII-only excuse me, that is AvocadOS
 
I guess I'll go with round robin, doing knockouts will probably just overcomplicate things
 
@Downgoat no, avocados is JS OS, not JS of OS
 
@orlp nice
 
@ConorO'Brien 0/10 the graphics are terribad
 
@LeakyNun so I'm testing something out
look at that grammar
how long do you think the chomsky normal form of that grammar is?
 
am not a computer
 
12:36 AM
@ConorO'Brien clearly a smart one in SHENZHEN I/O would have been so much better :P
 
@ASCII-only as in, the LED or the video quality
 
@ConorO'Brien LED
 
ok, cool, that's intentional lol
 
@ConorO'Brien wouldn't this break for characters which share no common edges?
 
spaces also work as a separator
 
12:39 AM
@orlp yeah but i don't think there are numbers with no common edges
 
@ConorO'Brien booooo!
obviously the right answer would be duplicate the display
and show all possible valid interpretations
!
 
wouldn't that be too many
 
vOv
define too many
you can fit many displays on a scrollable page :D
 
like around 4 ** number of chars
 
you could even make it a lazy generator
with infinite scrolling
 
12:41 AM
that would be a great idea
 
I'll see if I have more time :P
 
i was going to try it, but if you want to do it that means i'll just keep on working on cauliflower :P
just realized it has no while loop :|
@orlp wouldn't 1 display only + a slider be better
static class Calc
{
    public static double Pow(double n, int power)
    {
        return power == 1 ? n : Pow(n * n, --power);
    }
}
:|
 
1:17 AM
@ASCII-only actually that would probably need a biginteger library
 
@ASCII-only That would give n^2^2^2^2...
 
@Pavel yeah >_>
 
Pretend there are parentheses
 
0
Q: Newbie question about voting

KitanaVoting while participating As it's a contest it doesn't make sense to vote for other answers - does it? Should I vote for the puzzle? Isn't the participation already a vote? Voting while not participating Beside the code-length, what are other usual motives to vote? Considering that i have ...

 
2:18 AM
@JoKing Do you have a readable version of your comment? I don't generally like posting golfs that I can't understand lol
 
@DJMcMayhem you should write an explainer for brainflak then :P
 
0
A: Sandbox for Proposed Challenges

JacksonMergRock, Paper, Scissors, Load, Shoot, Block, Mirror, Plasma-shot, Ammo-block, Punch, Bazooka, Super load, and so on and so forth This is an abomination of a king-of-the-hill challenge. Two bots are fighting to the death, but the rules keep changing. Each turn both bots have the same set of 3 rand...

 
2:37 AM
@quartata I'm not sure what you mean by "Tournament format"?
how the players are arranged?
 
round robin, Swiss, knockouts, ...
Yeah
 
most common is round robin and sampling
also, based off of score
 
0
Q: Overlapping Strings

GammaGamesChallenge A simple challenge: given two or more strings, output all of the substrings that are in each string. Rules Input is always a comma separated list of strings Strings should be outputted from longest to shortest length without duplicates Strings should preserve whitespace Examples ...

 
pretty much every other popular tournament structure is bad
I've never heard of swiss, but it looks promising
any form of elimination tournament though is terrible
yeah, I still stand by my 3 above
swiss isn't all that interesting: it's more geared towards minimizing games
 
We do a variant of Swiss sometimes in bridge. you have a team of one north-south pair and one east-west pair so that your team's performance at either position on the board affects who you play
 
2:43 AM
and while that is always a goal of ours, their "minimizing" means 10ish games, were I'd be appalled if we played that way
 
But yeah Swiss is not what I'd use for this
 
so, round robin is the standard if you have a few number of players, because you'll actually have a chance to play every pair
sampling is the alternative if the above isn't true
and score-based selection is used when ties are common
because you'll have the top two duke it out more
the way you implement it is to randomly select a player (or iteratively select each one), and have them play the player(s) with the nearest score
 
@MartinEnder Congrats on getting steward!
 
it doesn't guarantee an equal number of games, but unless you're doing sum-based scoring, who cares
 
@DJMcMayhem, I just improved the pushing part by pushing a couple of 0s at the beginning to abuse [] and combined a couple of the other numbers, like the two 10s. I also changed the decrement in the loop to an increment. I have a spread out version, but I can’t post it right now
 
3:12 AM
@JoKing Hmm, OK. Strange, it seems like extra values should be less useful since most of the values pushed were pretty small
I wonder if I could save bytes by making the pushed numbers smaller and then adding a constant to the popped value later
 
3:36 AM
@DJMcMayhem Explanation
 
Thanks!
 
 
2 hours later…
5:32 AM
I solved my lua problem last night by just implementing Fraction
Because atleast math with ints makes sense.
 
@ATaco impotato?
 
I'm a programmer not an English Teacher.
 
@ATaco s/programmer/taco
 
5:59 AM
@ASCII-only then shouldn't it return null or raise an exception or something
 
8 hours ago, by ASCII-only
@J.Sallé hey, JS isn't that bad, it just implicitly casts a lot, kinda like Perl. it was designed to fail as little as possible, so if you mess one thing up the rest probably still works
@betseg remember, JS was designed to be basically idiot-proof
 
6:10 AM
JS is no worse than HTML
 
of course, HTML is much worse
 
0
Q: 99 Varieties of Dosa

msamoghRecreate the variant of the menu of the popular '99 Varieties of Dosa' listed below. (Note: Despite the name, the list contains 103 varieties and not exactly 99) The desired output is the following list (in any order): Sada Dosa Cheese Sada Dosa Paneer Sada Dosa Paneer Cheese Sada Dosa Schezw...

 
7:16 AM
0
A: Sandbox for Proposed Challenges

Asone TuhidThe Weaver I've been recently playing through 'The Weaver' and I think it presents an interesting challenge for code-golf. Premise: The Weaver is a game wherein you are given a number of ribbons coming from 2 directions 90 degrees apart and your goal is to swap them at certain intersections to...

 
7:40 AM
How does one reverse the match of a Retina regex? Currently it returns 0 for Truthy and 1 for Falsey in a challenge I just did (codegolf.stackexchange.com/a/162670/52210). What would be the best way to inverse this result? I'm not too skilled in Retina..
 
For pure regex there is negative lookahead. For Retina there may be better ways.
 
8:25 AM
@KevinCruijssen Try it online! is probably easiest. Note that your original code seems to have two bugs, in that a) it was case sensitive b) it could return values other than 0 or 1 in some cases
 
8:43 AM
-5
Q: https://realcoloncleansingworks.com/probioslim-advanced/

GordraryThe contextlinks weight loss pills will be shipped to one's home and sometimes this is done for free. If you've paid any attention at all to the problems that have been affecting people in this country lately, then you are probably well aware that losing weight is a top concern. Read through this...

 
 
1 hour later…
9:51 AM
@Neil I had indeed forgot the case insensitivity. And I wil add you code as a remark to my answer. Also, about the second part you mentioned, which test cases would return a value other than 0 or 1?
 
@KevinCruijssen aabbcc123 returns 6 for example.
 
@NewMainPosts Oh no, the spam bots found us.
 
CMC: given a list of non-zero integers, remove consecutive pairs of numbers that cancel out each other until no pairs can be further removed
so [1,2,-2,-1,3] becomes [3]
[1,2,-2,1,3,4,7,-7,3] becomes [1,1,3,4,3]
 
@Neil Ah of course.. Thanks for the explanation and fix
 
10:16 AM
Having more difficulty with this one than expected.
 
@ATaco which one
 
That CMC
Got the hang of it though
 
if you don't care about golfing and your language has cheap loops + delete at index, decrement index after finding a match
 
I got the hang of it already.
Through Funky's funky-ness
Just golfing now
 
@NewMainPosts yeah i really need to cleanse my :
 
10:30 AM
Probably better than Javascript
It now occurs to me I should make find accept a function
Because then I could do s=>{for0;0<=d=s::find((a,i)=>a==-s[i--1])){r=@s::remove(d)r()r()}s}
Oh wait, I'm an idiot, I can search for 0 instead.
 
@ATaco O_o
@ATaco why are open parens optional but open braces not
 
Oh no, Open Parans are just optional for for
 
@ATaco ... do you have other types of loops
 
while
 
and it doesn't work for while? >_>
 
10:38 AM
And of course I have other types of keyword, if, switch, when
And no, it does not.
(No-one's questioning the when statement?)
 
@ATaco ... 0/10 inconsistent
 
Oh, and recently with was implemented.
It's because for actually includes the parentheses as part of the grammar, where as the other statements are simply seeing a parenthetical expression, which is an expression wrapped in quotes.
The right parenthesis in the for statement is simply saying "I am not providing any more statements", which is useful in a few situations, such as this one.
 
@ATaco parentheses == quotes? wat
 
I meant Parenthesis, not sure why I said qoutes.
 
@ATaco can you not make the left paren always optional
 
10:43 AM
Maybe? I wonder if that will work.
 
might not be a trivial change
 
You underestimate Funky's grammar system.
 
not that, i meant it may break some things. it really depends where you accept expressions
 
That is what I'm concerned about persoanlly.
(Basically everywhere, it's 90% of how Funky guesses things)
But I have a tool developed explicitely for working on the grammar.
 
also: wait. both parens are basically optional anyway for any loop other than the for loop
 
10:45 AM
Yeah.
Well, in the forloop too if you have three statements
fori=1i<10i++print(i) is perfectly valid
 
@ATaco i saw it when you first posted it lol
 
Wait, my bad
Nope, broke everything.
Because Funky really doesn't like it when a grammar asks for a keyword at the start of it.
 
11:12 AM
If you haven't had a play with Dyalog APL at TIO (Try It Online) then take a look at Leigh Mercer's mathematical limerick expressed in APL https://tio.run/##TU8xbsJAEOx5xdTYQOwYoRQUKGnoKPKBI7c2J9l35M62ZB5AEQmUJqJKlUf4Af6JPwJrAyJTzUozOzNim45kJVKTnBm23X97kyBEEEUIn4D28IsFpNmR9iGQWOMcEy35cB/Gkj@wHpuem1M0bOoQPTrXKi0c8o0lQq4y6jjBfRbCEqwxOUyM2BSWHzQ1f5jhgc7/pkolSWJdwVHJ8degaXMKgv@6PidW5T2G0pt6/jIM0X79oT3@vL6z9TZn6aCVvneR/RjNfQTWKkfGm8YX
 
11:40 AM
I remember when that limerick was on QI
 
11:52 AM
Ah right, I was wondering where I'd heard it
 
 
1 hour later…
1:03 PM
@Adám Nifty.
 
Nit
To be fair, that's pretty amazing
 
what is
 
@Nit ^
Anybody knows why \b-\?+\b doesn't match -? ?
 
escape - ?
 
1:16 PM
\b is word boundary. might not be why though
 
@Adám I don't think you need the two \bs, although I don't think that's the problem here
 
@ASCII-only Ah, since -? isn't a word.
@EriktheOutgolfer I want to make sure it has whitespace or nothing around it.
 
Nit
I was talking about the cars.
 
If only the enter key also had a notch in it so this wouldn' — 12Me21 Mar 14 at 19:33
 
yep: \b assert position at a word boundary (^\w|\w$|\W\w|\w\W) in PCRE, I'm assuming most implementations define it the same way
 
1:18 PM
@user202729 refresh?
 
@EriktheOutgolfer Uh...? Why refresh?
 
@ASCII-only Dyalog APL uses PCRE. So I must use (^|\s)-\?(\s|$) ?
 
ngn
@Adám don't forget the +
 
@ngn Right. Thanks.
 
Huh, NMP got positive score now.
 
1:21 PM
@Adám ah, it looks like you're trying to make sure there's whitespace or an edge of the string around the -?+ string
 
@EriktheOutgolfer Yup.
 
@Adám :/ why use PCRE if you have .NET though? also: I'd probably ?: at the start but it probably wouldn't make a difference here, and I'm not sure you should be matching the whitespace as well
 
@Adám actually, word boundaries make sure that there is a word character around each edge of that substring
and that it's not the start or end of the string
 
@ASCII-only Because it must work cross-platform. What is ?:?
 
(that's the case because that substring doesn't start or end with a word character)
 
1:23 PM
@EriktheOutgolfer I just need to find out if there is a free-standing -???… anywhere.
 
@ASCII-only lookbehind and lookahead ;)
 
@Adám Would ^\s*-\?\s*$ work? (or replace * with ? if only one is possible)
 
@Adám non-capturing, mostly useful for large regexes with a lot of capturing groups, or when a group matches multiple times
@EriktheOutgolfer yep (although matching/not matching the space probably isn't important here)
 
eh, that's not really the point right now though :P
 
@Emigna No, that would check if the entire string is just that. I need to find it anywhere.
 
1:24 PM
Ah OK
then just remove ^ and $
 
@Emigna That would match abc-?def, no?
 
@Adám Yep, Seems I've misunderstood what you were trying to do
 
Thanks y'all. TNB is the go-to place for quick solving of coding issues.
 
@ASCII-only in Dyalog it's actually more important if you process the match other than testing if it exists
just let's get things one-by-one
 
1:26 PM
@EriktheOutgolfer @ASCII-only I'll just parenthesise the -\? part and select that result.
 
@Adám do you just want to find all occurrences?
 
@ASCII-only Yes.
 
also: version with lookahead and lookbehind: (?<=^|\s)-\?+(?=$|\s) - this would be useful if e.g. you wanted to replace the match
 
@Adám then I don't think you need to exclude the whitespace...
 
@EriktheOutgolfer Why?
 
1:29 PM
@Adám well, do you want to count -????? -??? -? as one or three occurrences?
you only need to exclude it if the whitespace can be shared between matches like that
 
@EriktheOutgolfer Ah, that's what you mean. I solved it by allowing overlapping matches.
 
as an engine option? or in the regex
 
@Adám I was talking more regex-wise here, yeah
 
@EriktheOutgolfer It doesn't really matter, as that shouldn't occur, but I guess I should count the total number of question marks. Or maybe the longest group.
 
> I guess I should count the total number of question marks.
O_o what are you even doing lol
 
1:32 PM
@ASCII-only I'm parsing command line arguments.
 
@ASCII-only Dyalog has an option for that, so most probably an "engine option"
 
@ASCII-only I'm not sure how it is implemented. It is an option in the Dyalog APL cover function for PCRE.
 
@Adám help, super help, huge help, enormous help, vast help, ...
 
@EriktheOutgolfer Yes, exactly, though I do believe vast help comes before enormous.
 
hmm, personally i'd move that to the regex then so it can be slightly more performant, but that's just me over-prematurely-optimizing
 
1:34 PM
@Adám I vote for the highest level of help be called gargantuan help.
 
@Adám wait. APL has no arg parsing module? D:
 
@Adám btw why would you parse command-line arguments with regex all at once?
 
@ASCII-only It does, but I'm injecting some code to provide help before the user's code's usage of the provided parser kicks in.
 
I'd say split the arguments with a regex and then parse each one separately
 
@EriktheOutgolfer That's being done later.
 
1:36 PM
@Adám ah, i see
 
Anonymous
I've started a list of PHP stupids that I've run into at work. I'll probably make a book out of them once I have enough
 
@ASCII-only I should really learn about look(ahead|behind)s
 
@Adám if you ask me, I'd say that you should really have the list of command-line arguments ready before anything else happens
 
@Mego Remember to unset the reference every time you end a ref-loop
 
@EriktheOutgolfer why would a language automatically parse args for you though
 
1:38 PM
I do it always
 
@ASCII-only huh? I meant that you should prepare them as necessary
 
Anonymous
@Soaku This is a thing that wouldn't be a problem in a sane language, but PHP is not sane
 
@Mego Why is there no (if something==true)? I thought that was present in every workplace ever
 
sees random JS answer `to${c<{}?'Low':'Upp'}erCase`
this is wonderfully hacky
 
@Mego There's a site called php sadness that does just that
 
Anonymous
1:41 PM
@J.Sallé Because that's unnecessary-but-valid code, and is language-agnostic. This list is just stupid PHP stuff that would work in a sane language, but causes problems in PHP
 
@Mego ah, I see
@Pavel php sadness is a total pleonasm
 
Anonymous
My boss publicly shames people who do if(something == true), so that doesn't come up much
 
@Mego as well he should
 
Somebody, please make PHP without all the "sadness" and it would almost be language of my dreams
 
Can anyone help me, I can't get rid of CORS. MCVE and error messages below. /* I tried google and found nothing. Thanks. // comment out because SO */
 
Anonymous
1:44 PM
 
https://tio.run/##bVLBbtswDD1bXyHkIqlwnB52KLI6QDEM62HFgLWHHavJrKNOkTxJrj0E/vaMkpOs2wrYsCk@6vHx8Vm@yKC87uLSugYOB@VsiFR2Ha2ph5@99sAZjJ2HEJigXBCCyaoPwM9p5XzO7ZWHBmzU0oQ1jb6HkjqvW23naBLHatdFjTycrVhJn3qrUkjThSWSBkH3pMBvFSDegmzA88WNUtjB8oOz0TuzvDHGDcsv@fJFSRcXC/H@3xr2Zs0dxK1rAhKzC/Z/0dtEczL8zQS24fg/4ZtVtRBnRa@E1Bu6P2Hvo9e2rbwcHsn1PPQNOauXz3LkvTclVdKY71L9QAe4qDf7qaS73DQesE8fH5ChkVFiZHtjBM7qRXo67sxtjMk2CwP9dvc5RV/RIggxuVYcAZWzHtX8ClFGUFtpW8hEuVVSFPqJ8hM0A@8TkNZ1Td9lY4ri1OArXOjQT3iAMQpETCQ9Z8IOLJ8VlDQrTMsg/gBCmk6SJMhE8hzYFs/DerUahqFqnWsNVMrtWDnWm7ShDmPjWj7iRl2vjrNcC/IopuOKGR0i0l5dXl2Kw@E3
 
@user202729 just because you're sending the appropriate headers doesn't mean the server is
 
@Poke confused
 
Nit
@user202729 The server has to say that it will data to your site by responding with something alone the lines Access-Control-Allow-Origin: foo.example
it will allow data*
 
@Mego Ehh...
 
1:47 PM
... I think you were talking about the Google server.
 
Anonymous
PHP - bad stuff = NOP
 
Nit
In this context, we are talking about Google's server. You can't make arbitrary Ajax queries to random servers, the browser security model doesn't allow that.
See this question for more details and further info: stackoverflow.com/questions/10143093/…
 
@Mego I don't want to talk about that, but seriously, it's not that bad. I was once arguing it on TNB and don't want to do that once more
 
@J.Sallé I am unfamiliar with that last word there
 
I prefer PHP way more than JS or Java, for example
 
@user202729 the solution is super easy: run a proxy on the same domain, if you have access to it
 
@ASCII-only same domain = Google in this case?
 
@user202729 no
on the same domain your script is running on
 
Nit
@user202729 What are you actually trying to do?
 
1:51 PM
write a backend to proxy your ajax request
 
@Nit Good question.
 
remember cors is enforced in the client (your browser in this case)
 
alternatively: recompile your browser so it somehow ignores CORS :P
 
@ASCII-only i think there's a chrome commandline flag or something to disable it
 
probably.
or write a browser extension to add the functionality in. it might be possible without an extension in Vivaldi, but idk
not related to current discussion: would it be possible to write a function accepting two integers and a number from 0-15 (which is used as the truth table) that has better than terribad performance
 
1:55 PM
@ASCII-only In which language?
 
@user202729 C# (.NET Core), so no compiler intrinsic/assembly magic available
 
@ASCII-only 1 Benchmark first 2 Maybe make it operate on arrays instead of individual integers to reduce fn call cost?
 
2. good idea but it's not like anyone would want to use it to operate on arrays, especially if it's a fully interpreted language (i.e. really high call cost already)
 
@ASCII-only C# is not interpreted...
 
@user202729 1. technically it is 2. it's a language written in C#
 
2:02 PM
Basically I have access to (1), (2) is a server, and I want to connect to (2) from (1).
 
C# is not interpreted. By default it is compiled, but toolchains like Mono do provide a C# interpreter.
 
So I intend to use (1) -> Free server -> smartphone -> (2), but the last connection is not possible.
(maybe I'm facing the XY problem?)
Recompile the browser on the smartphone is possible but there may be a better way?
@Nit ^
@ASCII-only But if it's called only a few times then why would it be slow anyway?
 
@mınxomaτ Regular, microsoft-distributed C# comes with an interpreter called csi.exe now.
 
@Pavel Doesn't mean that you must use it.
 
Nit
@user202729 If you're on a smartphone anyway you could always make an app - that wouldn't have any cors issues.
 
2:07 PM
I was just pointing out that you don't need mono
 
... correct.
 
Nit
But yeah, it sounds a bit like XY
 
Todo learn about how to make android app
 
@Pavel Never implied that. Hence toolchains
 
Oh no...
 
2:08 PM
Apps are hard
Android studio likes to not work properly
Java is crap
Although kotlin is a thing
 
Last time messing with using Android Studio I remember waiting forever for downloading and other problems...
 
Nit
I've built many mobile applications both for Android and iOS at my day job and honestly, the hardest part of the whole thing is always the tooling. Build tools throwing obscure errors, dependency management, certificate passing hell etc.
 
Here's the secret: you can use normal IntelliJ IDEA and it'll work better.
Not well, but better.
 
Plus I have 0 knowledge about Android development...
 
@Nit Yep, same. :/
The libraries and APIs aren't actually that hard to use
 
2:12 PM
@Pavel them be fightin' words
 
@Poke Ok, more honestly, Java is meh
Not the end of the world if I have to use it but would rather be using C#
Speaking of which, Xamarin is a thing that is neat for app development.
 
You can only say Java is crap if you work with Java
Because then you'll have experienced first-hand all of its mighty crappyness
 
@J.Sallé I worked it for a short while. And I've got a brother who keeps telling me about it. Enough to know I should really avoid it
 
Nit
@J.Sallé Tbf, anyone can say anything, but you don't have to listen to them.
 
@Nit valid
@Soaku Yeah, that's enough to be sure it's crap, I guess.
 
2:22 PM
btw the page title "What&#39;s worse - Straw Poll"
lol
they escaped it twice.
 
@Mego You could make the list shorter by enumerating the parts that aren't stupid.
7
 
@J.Sallé I do
Well, I did. I stopped and work with C# now
 
@Dennis then there would be no list...
 
That's a bonus; we're already done!
 
2:26 PM
@EriktheOutgolfer All lists can be empty.
 
the point is that it would be utterly boring then lol
 
why did somebody star my poll
 
> useful / interesting for the transcript
 
@J.Sallé I always wondered, after having seen it here, and being to lazy to look it up: mezzacotta.net/ads/guess_whom.png
 
2:40 PM
@Neil I think it's not something as relevant in English as it is in Portuguese. "climbing up the stairs" is completely right in English, but if you translate it into Portuguese it becomes hideous because it's a clear pleonasm
 
BMO
Uhm, does someone do a lot of Java? I'm reviewing Java code for a project and don't understand why others keep doing void foo() { { /* CODE */ } }.. What's the point of opening a new scope? There's no code before or after that new scope :S
 
@BMO No code before or after?
It's redundant.
 
BMO
No
Yeah, that's what I thought. But who knows.. I'm not very proficient with Java
 
Probably...
 
BMO
Initially I thought it might have sth. to do with Exceptions hidden until runtime, but I just did some testing and that doesn't seem the case
Weird
Especially since 3 different groups are all doing the same :)
 
BMO
Uhm ok, why would I want to hide fields anyway.. But if this is the only usage, these people are just wasting bytes on {} and more indentation without any effect whatsoever
 
The answer states that it doesn't have any effect.
wasting bytes
 
3:06 PM
0
A: Sandbox for Proposed Challenges

Redwolf ProgramsCleanup after Easter king-of-the-hilljavascript As most people (probably) know, Easter was about a month ago. But around the community oark, there're still some eggs hidden! Can you build a (Javascript only, please) bot to help us find them? The Course: The bots will compete on a 201 by 201 f...

 
3:25 PM
hi
I hope you don't mind but here is a coding question...
Say A = np.array([[a,b],[c,d]]). If L = [1,1,2] I would like to output

[A[1,1], A[1,1], A[1,2]], [A[1,1], A[1,1], A[1,2]], [A[2,1], A[2,1], A[2,2]] . In R this would be A[L,L]
is there a neat way to do that in python/numpy?
 
I've noticed some sudden upvotes on codegolf.stackexchange.com/q/146499/62402. It's really old, so does anyone know why?
 
That is:

[[a,a,b],[a,a,b], [c,c,d]]
@StephenLeppik I notice that happens sometimes.. maybe it has appeared on reddit?
 
@StephenLeppik there could be activity, bumping it up
and then people like the challenge perhaps
@LeakyNun you here?
 
hi
 
3:30 PM
if my question is unclear please let me know
 
look at the grammar in the bottom
 
@Anush Why not Python chat room...
 
that's basically 'all Python numeric expressions with two-digit numbers and variable a, b'
 
nice
 
using PyPy it can generate all ~154 million such expressions of length 8 in 17 seconds
it generates 10 million expressions / sec
 
3:32 PM
@@user202729 I have no excuse.. you just seem much nicer :)
 
@orlp oh, I checked the recent activity and apparently it got on Twitter: twitter.com/StackCodeGolf/status/924482424880488448
 
@orlp nice
 
@StephenLeppik Someone posted spam on it. It was deleted almost immediately, but that still bumped it to the front page. From there, someone must have seen it and upvoted it
 
@LeakyNun my idea with this is the first part of a superoptimizer
with CFGs you can actually be very specific in what forms you want to test
(a superoptimizer essentially tests all possible programs and finds the best/shortest/fastest/whatever)
 
Maybe itertools.product(L,repeat=2) ? (pure Python, idk numpy)
 
3:39 PM
@orlp looks like printing would be a bit slower depending on the console :P
 
@EriktheOutgolfer yes, printing is the bottleneck if you choose to print
 
if you choose to store in an array then, well, it would be slower depending on your RAM
 
0
A: Sandbox for Proposed Challenges

musicman523All Light! code-golf This challenge is completely ripped offheavily inspired by All Light, developed by Soulgit Games. Challenge You are an electrician, and it's your job to wire up all the lights to the battery. The lights and battery are laid out in a grid. You can connect a light or batte...

0
A: Sandbox for Proposed Challenges

akoziBots counting to 11 Still to do in the question More examples of correct formatting More specifics on formatting A childhood game designed to help children learn to count in french in Canadian schools is played as follows: Students go around the room counting up to 11 A number greater than...

 
Let me know if you guys have thoughts on my question in the sandbox :)
 
s/question/challenge/
 
00:00 - 16:0016:00 - 00:00

« first day (2636 days earlier)      last day (2209 days later) »