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

12:10 AM
@Christopher I'm confused
If you want to stay, why not stay?
 
 
5 hours later…
5:22 AM
idea: infinite chess but the players also have infinite pieces
(possibly include omega ordinals so that players can command pieces infinitely far away from the board origin)
(include only 8 ranks)
things to decide on: how the pieces continue along, whether it's just regular chess pieces and such etc.
what if the pieces were aperiodic? like, off the side of the board, there's a rook, then 1 bishop, then another rook, then 2 bishops, then another rook, 3 bishops, etc.
possibly more complicated
i think it will be interesting, since the main value of the rooks will be their development, since there are an infinite amount of them
possibly could include infinite types of pieces based on their distance from the board origin
challenge idea: check if two fairy pieces in Betza's funny notation are equivalent e.g. WW and R are equal, as are FW and WF. but W and F are not, for example
 
6:34 AM
@DestructibleLemon There could be infinitely many rook/knight/bishop-type pieces, where rooks move by multiples of vector (1,0), knights (1,2) and bishops (1,1) and generally by (a,b), where gcd(a,b)==1.
 
How about chess with finite pieces, but on an infinite-dimensional board?
 
Sounds like something the curse of dimensionality would hit.
 
I prefer to think of it as the blessing of dimensionality.
 
At least, there'd always be a free dimension the king could escape into when in danger
 
That's a sign the pieces are not powerful enough.
I think if you have a lot of knights (however you want to generalize them) near the {0,-1,1}^omega moving king, that should do the trick.
 
7:51 AM
@feersum a lot :P
@Angs 1. those are called riders IIRC 2. a knight isn't a rider 3. they don't just have to be 2d vectors
 
@ASCII-only i thought they meant there would be rook riders, dababba riders, threeleaper riders etc.
 
@DestructibleLemon rooks are riders though
And an infinite number of piece types is a really bad idea
 
yes definitely
 
Hmm I wonder how extensible you can make a board game framework
 
 
2 hours later…
9:33 AM
@ASCII-only it's called a programming language
actually that has limitations still doesn't it... either way the upper limit is still turing complete programming
 
9:51 AM
@DestructibleLemon *easily extensible. Like a non programmer would be able to do it
 
either way, it'd still have to be TC to be the most extensible
and hence be a programming language
that said, a TC language based around board games would be really cool
 
10:07 AM
@ASCII-only infinite boards and pieces might be trouble though
 
 
2 hours later…
12:15 PM
0
A: Sandbox for Proposed Challenges

simonalexander2005Title: Count the days Inspired by a real-life scenario, which I have asked for an answer to here: https://superuser.com/questions/1312212/writing-a-formula-to-count-how-many-times-each-date-appears-in-a-set-of-date-ran Given an array of timespans (or startdate-enddate pairs), output a count of ...

 
12:49 PM
3
Q: Up go the bits!

Ian H.Given an integer N perform the following steps: (using 9 as an example). Receive input N. (9) Convert N from base10 to base2. (1001) Increase every bit by 1. (2112) Treat the result as base3 and convert it back to base10. (68) Return/Output the result. Input May be received in any reasonab...

 
Most explanation for golfing language answers are just [builtins[atom] for atom in program].
 
1:31 PM
0
Q: Bouncing lines in a corridor

AJFaradayWhat if we have a corridor? | | | | | | | | | | | | | | | | | | | | And we draw a diagonal line through it... | \ | | \ | | \ | | \ | | \ | | \ | | \ | | ...

 
2:02 PM
Should J code be written with conjunctions (@, @:, &, etc.) or hooks/forks?
From the docs it appears that most of the optimizations are done to the modifier version, but
 
@user202729 I'd stay with hooks/forks and only use conjunctions for monadic application.
 
So I should either memorize all of them or just use the conjunctions whenever possible...?
 
@user202729 "all of them"? There are really only two forms; hook and fork, no?
 
All of the "exceptional performance optimization" (or something it's called)
 
2:20 PM
@user202729 Ah, now I understand. (They are called "idioms" in Dyalog lingo) I wouldn't worry about it for development purposes, except if performance is critical from the outset. I suspect that they were chosen so that natural J style would end up using them. At least that's the case in Dyalog APL.
 
> Haskell, Mathematica
Why....
 
0
A: Sandbox for Proposed Challenges

RamenChefDollar Bill Auction king-of-the-hill game I was going to make a KOTH for the prisoner's dilemma, but this would make for actual variety. This is a KOTH challenge for the dollar bill auction game in game theory. In it, a dollar is being sold to the highest bidder. Bids go up in increments of ...

 
@user202729 At least APL is in good company. Also, that GoL is definitely not APL2, and it is a very strange version which I can't even get to work. Current record (for Dyalog APL) is 0≤⊢-3 4⍳⊢∘≢∘⍸⌺3 3.
 
It's likely that whoever wrote that page know none of those languages.
 
2:36 PM
So if I do 1,5s/a/b/g in sed, it will replace on every line from 1 to 5. But is there a way to only replace on, say, line 1, 5 and 7?
 
0
A: Sandbox for Proposed Challenges

J. SalléThe Stolen Necklace problem code-golf Inspired by this video. Overview: The Borsuk-Ulam Theorem guarantees that, for every continuous function from an n-sphere into Euclidean n-space, there's a pair of antipodal points of the sphere that maps to the same point. "Formally: if f : Sn→Rn is con...

 
@NewSandboxedPosts Commentary is appreciated.
 
That's how we solve the feedback problem with the Sandbox: get NSP to do it all! :P
 
@user202729 thanks. Didn't think to look for it that way
 
2:41 PM
(actually I've just learned about addresses in sed with man sed)
(also I've never used sed)
I keep getting reputation for easy answers :/
(known problems, surprise noone)
 
3:01 PM
Any way that Retina can replace with random data?
 

 Retina

Discussion about the Retina programming language, including us...
 
Oh, didn't know it had its own room.
 
I believe the newest version introduces randomness, you can ctrl+f for "random" in github.com/m-ender/retina/wiki/The-Language
 
3:23 PM
@cairdcoinheringaahing Re Bugle: There is a current_value(memory) in the code. Did you mean memory.current_value()?
 
@user202729 Yes, I did. Fixing now
 
@cairdcoinheringaahing But then... memory is not supposed to have a value at that point.
(on the first time mem model is changed)
Nevermind I start using a register.
I should just use a niladic memory type on init. (?)
 
I'm not quite sure, I think there's a bug in there. I'll have a look in a minute
 
Currently 1₀ is parsed as one token. Is that intended?
And how should I write it?
 
@user202729 No, that's unexpected. Are you using the latest version on github?
 
3:35 PM
(because subscript numbers isdecimal too, Python is too smart)
@cairdcoinheringaahing Yes of course...
 
@user202729 I don't think they are
 
isdigit
 
Ah, that's why. I used char.isdigit() later
Ninja'd
 
str.isdigit? Python doesn't have char type.
 
@user56656 I edited the sandboxed challenge, do you think it's clearer now?
 
3:39 PM
@user202729 No, the variable is called char
 
(which causes confusion for me because char is a data type in C-like languages)
 
@J.Sallé I'd put it at the front, before you start talking about necklaces.
 
@user202729 Both the parsing bug and the memory bug have been fixed, let me know if you find any more
Final feedback?. I'd like to be able to post as soon as the quine solution is finished.
 
@user56656 okay, I'll do that
 
And the bugs have been fixed (if anymore).
What exactly @ is supposed to do, for example in a program SSS<subscript 0>@?
Nevermind...
 
3:48 PM
hi all
 
@user202729 It's supposed to swap between the previously used memories (current and last used), but it's been quite buggy to implement, and is sort of covered by the subscripts, so I might remove it
 
hi Lembik
 
@user56656 done. Also cleaned some things up.
 
@cairdcoinheringaahing If memory is not None, you didn't set operable.
 
@user202729 Yep, fixed
 
4:05 PM
Why is print(tokens) uncommented?
 
Because I rush and don't think when I commit to GitHub. Updated
 
Maybe a bug: stack peek error for empty stack.
 
you might want to ask in the APL Orchard
 
Random piece of PPCG trivia: We have exactly 97 10k+ users
 
anyone here like nearest neighbor data structures?
I am mystefied by the failure of bpaste.net/show/72b8cf138e7a
it should find itself but doesn't!
 
4:15 PM
@cairdcoinheringaahing And that's why we're pushing to have the privilege levels raised lol
 
4:27 PM
0
A: Sandbox for Proposed Challenges

l4m2___ encrypting Given two text a and b, both contain only lowercase letters Write each charactor in a into 5 digits of binary (a => 00001, z => 11010) Write each charactor in b where such place of the binary list is 1 is written into a different style (uppercase, bold, etc., but should be consi...

 
4:51 PM
@DJMcMayhem I vote that we don't raise the privilege levels until every PPCG member has 10k or more :P
 
So, the cyclic levenquine challenge is almost a year old now. I was wondering if it is even possible and have attempted a start on a proof of impossibility. Does anyone want to join me?
 
tbf, if it's impossible, then it's never going to be answered
simple as that, no need to "prove" anything
 
@EriktheOutgolfer my idea was to have a proof of its impossibility in lieu of an actual answer.
 
unfortunately, I don't think that would fit as an answer, since the question asks about solutions to the challenge, but about a proof that it's impossible
 
5:11 PM
I'm asking Meta about it then. It would be better to have a consensus.
 
5:22 PM
@StephenLeppik are you planning on proving it's impossible for every known programing language? Doesn't sound so simple
 
5:35 PM
@StephenLeppik Meta is a good idea. I think such an answer would be perfectly appropriate, but according to our current rules not allowed.
 
5:47 PM
@StephenLeppik You won't be able to prove the Cyclic Levenquine impossible, because it is possible. It would be fairly easy for me to design a language with a cyclic levenquine. The difficulty of the challenge is that you don't get to design your own language.
The toy language could be aa -> ab, ab -> bb, bb -> ba, ba -> aa. And aa would be a cyclic levenquine.
 
@user56656 would such a program really fit our quine rules?
 
yes
 
The first letter is the encoder and the second letter is the decoder.
 
@user56656 that would be a standard loophole anyways, no?
 
5:52 PM
@EriktheOutgolfer Yes, that's why no one has done it. I'm just saying that you can't prove it impossible
Our requirements are explanation based not behavior based, thus we can make the explanation as complex as we want to justify whatever behavior we wish.
 
6:32 PM
0
Q: Is a proof of impossibility allowed as an answer?

Stephen LeppikI was thinking of a proof of impossibility for a long-running unanswered question on this site. By a proof of impossibility, what I mean is a proof that no possible answer can solve the challenge. When I polled chat for other interested fellows, one response was this: unfortunately, I don't t...

 
6:48 PM
Poll: I think I've found a way to make submissions to this sandboxed question infeasible to crack with modern computing power, but it is a little involved and I don't think anyone else is aware of it. Should I still post the challenge?
 
I think we already have a meta concerning boring cop submissions using hashes
 
My solution doesn't use hashes, and in fact hashes really don't help you in this challenge.
 
(I was using hashing as an example, but you get my idea)
 
This is just a really hard cop, no crypto involved.
 
-1
Q: Get the number of images on a webpage

0liveradam8Recreational languages win at code golf too much. This challenge is simple, when using higher level functions. The task is as follows: Given any url (for example https://en.wikipedia.org/wiki/Ruby_on_Rails, which has 9 images), count the number of images displayed from the resultant webpage. ...

 
6:58 PM
I don't think I am going to post it. It might be a good idea, but in practice it gives too much to cops and not enough to robbers.
 
@user56656 then my opinion would be that it is fine because such a submission would not be trivial anyways
 
7:27 PM
@NewMainPosts There isn't anything unclear any more, right?
 
0
A: Sandbox for Proposed Challenges

BeefsterInterleaving Sequences code-golfsequence Your challenge is to create a function/program that takes an arbitrary number of sequences and outputs all possible interleavings of those sequences. Examples Input: [1, 2], [3, 4] Output: [1, 2, 3, 4] [1, 3, 2, 4] [1, 3, 4, 2] [3, 1...

 
Visual Studio Preview supports C# 7.3 now and I am hype
I get overly excited over C# patchnotes even when it's almost all about stuff I will never use
== and != finally being overloaded for tuples is nice though
 
7:45 PM
How do I tag arrays in yaml? !test\n- blah produces an error. blah: !test\n- foo bar does so too.
Ok, never mind, found the solution
 
8:07 PM
2
Q: Sort spelled-out serial numbers

AdámGiven a list of two or more spelled-out serial numbers of equal length greater than two, e.g. [[ "three" , "one" , "four" ], [ "one" , "five" , "nine" ], [ "two" , "six" , "five" ], [ "three" , "five" , "eight" ]] sort the list by the numbers that the words represent: [[ "one" ,...

 
9:02 PM
My last fifteen minutes were spent getting increasingly frustrated with a computer as I repeatedly attempted to compile C++ as C. Argh.
 
9:22 PM
0
Q: Intron Adder Quine

Stephen Leppik In the context of quines, an intron is a part of a quine that serves no purpose in producing output, but is still included in the data section. For example: function quine() { const data = "function quine() {\n const data=\"@\";\n // Arr! This be an intron!\n return data.replace(\...

 
 
1 hour later…
10:44 PM
Fun fact: A cat walking on your keyboard can actually produce valid Perl:
$ perl -E 'abrlo39b<7'; echo $?
0
I have no idea why Perl parses ^ as valid
 
because Perl, that simple
 
 
1 hour later…
Anonymous
11:56 PM
@Pavel 'abrlo39b<7'; is a NOP - it's a string literal that isn't assigned to anything. $? returns the exit code of the last system call executed within Perl (0 if there haven't been any).
 

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