« first day (2436 days earlier)      last day (2397 days later) » 
00:00 - 19:0019:00 - 00:00

7:00 PM
Is there a way to golf condition in form of: b&&(a?!c:true)
 
@EriktheOutgolfer nice ;-(
 
.e@bk<<QlhQl
 
@EriktheOutgolfer nice ;-)
I love mobile golfing in Pyth
 
well, you can type it easily :p
 
Of course
 
7:02 PM
@EriktheOutgolfer pyth just needs to be a little bit more husky :( :p
 
@EriktheOutgolfer If Pyth had a custom codepage version, I am sure it would beat Husk
In some cases of course
 
I think "packed pyth" exists although I'm not sure if that's enough
 
Gtg, low on battery. 0/
 
0
A: Sandbox for Proposed Challenges

kamoroso94Can You Catch the Robber? This is not a cops and robbers type challenge, but a code-golf challenge based on the PBS Infinite Series video Cops and Robbers Theorem. Challenge Given an undirected and connected graph, you must determine if the graph is cop-win. That means that if a cop and robbe...

 
7:28 PM
@Mr.Xcoder Jelly, 3 bytes: ŒDḢ
 
Well, too obvious in Jelly
CMC: Given a 2D list, deduplicate each and flatten.
[[1,2,1], [4,3,3], [5,4,3]] -> [1,2,4,3,5,4,3]
The order must be preserved
 
@Mr.Xcoder Jelly, 3 bytes: Q€F
 
I think That works and hey, i can write that on mobile!
 
@Mr.Xcoder Annoyingly, I can type it on windows, but not on my mac D:
 
@Mr.Xcoder SOGL, 5 bytes: {║_}¹
 
7:38 PM
@cairdcoinheringaahing I can write that on my mac lol
You can too
 
Is it a faux pas to add a CMC while another CMC is going on?
 
@Sherlock9 Not when the first CMC is an easy one
 
@Sherlock9 you can add a CMC whenever you want
 
CMC: Given two lists of equal length [a,b,c,..] and [A,B,C,..], and an n as a limit, find all numbers from 1 to n where i mod a == A, i mod b == B, etc.
 
In pyth, my CMC's solution is s{M
 
7:39 PM
[5, 12] and [3, 7] and up to 500 -> [43,103,163,223,283,343,403,463]
 
@Mr.Xcoder How exactly? I realise that its something to do with the 3 key, but beyond that, no idea
 
@cairdcoinheringaahing alt+shift+2 IIRC, can't test
 
Testing alt-shift-2: €. Yep, it works
 
I use it very often lol
 
Doesn't seem to be working for me :/
 
7:40 PM
@Sherlock9 are you on mac?
It won't work otherwise
 
Windows 10
 
@Sherlock9 Alt-2 IIRC
 
Ahh I thought it was a Windows alt code
 
@Sherlock9 No Windows has a composed key: A2
 
@ASCII-only okay for the LLIR VSL backend I got fancy graph tracking implemented :D
 
7:42 PM
I have to say, I have no idea how @dzaima can answer CMC's so fast, which non-ASCII solutons in SOGL. It seems as though he doesn't have to copy paste :P
 
@cairdcoinheringaahing I have a whole keyboard allocated to SOGL characters :p
 
@dzaima :O How? Did you make a new keyboard? :P
 
Maybe a keyboard layout?
I am working on one for Jelly too
 
@cairdcoinheringaahing I combined AHK and LuaMacros and used an old keyboard I had laying around
 
7:44 PM
I had an AHK script for regular keyboard keys before as altgr+ codes
 
@Mr.Xcoder I normally use this if I know the code I need
 
Wow Jonathan has an astounding Jelly answer for my ttt challenge (beat Erik by 2 whole bytes)
Hope it is valid
 
Python, 80 bytes: lambda x,y,n:[p for p in range(1,n+1)if all(p%x[i]==y[i]for i in range(len(x)))]
 
this is my SOGL keymap file (it actually uses this as the input to run :D)
 
@Mr.Xcoder A2?
Also I forgot alt codes don't work without a numeric keypad
 
7:48 PM
> Created 1 minute ago
:P
 
@cairdcoinheringaahing I didn't want to post it in the chat as it'd take a lot of space :p
 
@Sherlock9 alt 2
 
Hm, that's not working either
 
Windows is odd
 
@Mr.Xcoder Regarding your ttt challenge, personally, I think it's a dupe (and have voted as such). Which is unfortunate, it's a nice challenge
 
7:51 PM
It really is. And yet many, many people continue to use it. And mainly develop their PC games for it
 
@cairdcoinheringaahing I really disagree this time. 1. Mine allows empty fields 2. Mine has flexible I/O rules, whilst the other has tiranic rules 3. In mine, you can assume the board is valid, and that does not happen in the other challenge
Checking if the board is valid would add about 20 bytes to the Jelly answer, and handling all formats of input would be close to impossible
 
@Mr.Xcoder Well, I guess we'll have to agree to disagree :( Although, I rank this as a "low-level" close vote (I VTC, if it doesn't get closed, so be it), as compared to "high level" (where I will actively try to get others to VTC)
 
Also, checking if the board is valid would add about ~150 bytes to the Pyhton answer too
Anyway If it gets closed i'll VTR myself :)
 
@Mr.Xcoder Does that mean that 150 bytes in Python ~ 20 bytes in Jelly? Sounds fairly accurate :P
@Mr.Xcoder Yeah, I always thought that the OP shouldn't be given a chance to VTR/VTC, given that they are somewhat biased :P
 
@cairdcoinheringaahing 3 agree with you, 3 agree with me (and Erik) :P
 
7:59 PM
Ok, I have to go now. o/
 
@cairdcoinheringaahing 1. Bye 2. I think the user(s) that agree with me have a hammer and will hesitate to VTR :-/
 
@Maltysen ah
 
@Lembik i think i have node working
@Lembik but I think it'll be much longer
 
8:15 PM
I have almost certainly screwed this up but: Haskell, 119 bytes: f a b n = [x | x <- [1..n], [foldl (&&) True g | g <- [[mod x (a!!i) == (b!!i) | i <- [0..((length a)-1)]]]] == [True]]
 
@Maltysen cool!
 
<s>Ah wait, that's not a function</s> Fixed
 
I love code I can actually run :)
 
@Lembik lol
the same code runs
in node
but with a higher version
 
higher version of what?
I would love to try it
 
8:16 PM
i used nvm to install the higher version of node
 
oh can you show me how?
I am all ears :)
 
How do you do strikethrough, again?
 
node --version
v7.7.4
 
oh nvm
u should be good then
u need to install jquery and jsdom with npm
 
done
 
8:18 PM
const $=require('jquery')(new (require('jsdom').JSDOM)().window)
in node
 
@Maltysen where is that going? I have copied and pasted your code into test.js
from the answer that is
 
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;

$.support.cors = true;
$.ajaxSettings.xhr = function() {
return new XMLHttpRequest();
};
@Lembik that and^ can go into the top of test.js
then just run mu code
 
@Maltysen hmm.. could you just paste the full .js file into bpaste.net please
 
i was running it in the repl
but sure
 
thanks
 
8:20 PM
you'll get errors, but also the answer
 
Error: Cannot find module 'xmlhttprequest'
attempting to install
 
oh yeah that too
 
TypeError: Cannot read property 'src' of undefined
 
yeah that's normal
you'll get a few of that and then the answer
 
8:23 PM
hmm
 
does this exact code bpaste.net/show/ccdf1a408fd6 run for you in node?
as in "node test.js"
 
ur right
it works on the interpretr but not like that
 
ok
 
@Lembik if u just run 'node'
and copy psate it it works
 
Haskell, 89 bytes: f a b n=[x|x<-[1..n],[foldl(&&)True[mod x(a!!i)==(b!!i)|i<-[0..((length a)-1)]]]==[True]]
 
8:27 PM
@Maltysen true
 
Haskell, 52 bytes: f z n=[x|x<-[1..n],all(==True)[mod x a==b|[a,b]<-z]] if I allow lists of [mod, remainder] like z = [[5,3], [12,7]]
 
@Maltysen I see v8.6.0 exists
@Maltysen I am trying your code with U and 5
no answer yet
 
0
Q: Solving a deck & crate puzzle

Jonathan Micael PicazoReady for a challenge? I have a puzzle that I'm trying to code a solution for in Lua (though any language would be appreciated). It involves moving blocks of "crates" onto a "deck" to fill in the positions so no blank spaces are remaining. The puzzle looks like so: A B C D E F ...

 
@Lembik 4,U got "the graduation"
 
@Sherlock9 all(==True) can be and
 
8:39 PM
@Lembik u can try reducing the delay to make it go faster
 
@Maltysen I did that.. If you get anything for U, 5 please let me know
 
k
 
@H.PWiz God bless you
 
@Maltysen theguardian.com/film/2016/may/19/… has 5 stars not 4
 
Haskell, 43 bytes: f z n=[x|x<-[1..n],and[mod x a==b|[a,b]<-z]]
 
8:40 PM
let me check it's the same movie
nope
 
@Lembik there was also this:theguardian.com/film/2017/apr/02/…
 
is it "the graduation" or "graduation"?
 
the graduation
@Lembik do u know how many pages down there was a U5?
 
no!
but I know there are some
could you code output the url as a debug tool?
 
@Lembikfound one
 
8:43 PM
caub's code really gives the wrong answers as far as I can tell?
 
Happy End
 
cool!
well done your code :)
 
@Lembik it went to page 58
i put in a debug for that
 
can I have your debug version please :)
I still haven't found that
 
the message is too long
 
8:45 PM
@Maltysen out of interest, does caub's code give incorrect answers for you too?
 
how do i give it to you
 
@Maltysen bpaste?
how big is the code?
 
@FunkyComputerMan b+((b+a)+(b+a))+a=b+(b+b)+(a+a)+a therefore a+b=b+a
 
@Lembik ^^
 
8:48 PM
@Maltysen thanks.. your code uses a lot of RAM!
 
@Lembik its cuz it does all those concurrent requests
 
ok 1+GB of RAM
 
i wonder if python beautiful soup can be made shorter cuz i won't have to deal with all the async stuff
 
a(4)('U') is on pagae 46 so far
yes I think that's a great idea
you saw my code in the question, right?
 
yeah
 
8:50 PM
it will also be possible to run it :)
 
lol
 
hmmm a(4)('U') still nothing after 60 pages.
 
@Lembik really?
i got one after 2 pages
 
does it quit after it finds it?
 
The Graduation
it should
try the chrome running one
it alerts so you notice
 
8:52 PM
@Mr.Xcoder Retina, 7 bytes: . then $&$'¶ on line 2.
 
definitely nothing for page 2 using your debug code
I have to go but my final word for the day is.. python yes please! :)
 
@Downgoat dunno if anyone answered but b&&!(a&&c) should work
 
@Lynn I could now finally use your mapM id[a,b,c] trick for generating a cartesian product!
ah no I made a mistake
 
9:08 PM
@Neil This was presented as a proof golf, so you would start with a+b and apply axioms until you get b+a. The goal is not just to prove it but to do so in as few steps as possible.
 
9:22 PM
@Neil thanks, I ended up using !b && !(a && c)
I think it would be interesting to have a challenge which requires hand-golfing of PNGs or something like that
 
9:51 PM
Does anyone know the name of the language that had like 10-byte long but single character commands? It was the one that caused us to switch to bytes from characters
 
no that was after
 
10:09 PM
@Downgoat wat. how.
@Downgoat you mean chats to bytes?
 
@ASCII-only I said that :P
to bytes from characters = from characters to bytes
 
Oh 0/10 wrong order
 
:(
btw pls see VSL pings
 
10:35 PM
@Downgoat I'm not sure 10-byte long chars exist at all
 
@EriktheOutgolfer combining characters exist
 
hello
can somebody do me a favor?
a paerson
a person using Chrome or Firefox
clich the Execute button and see what happens
I tested on Vivaldi and Ie and it will show an wait icon forever
Edge also gets the same result :(
 
10:54 PM
@sergiol Chrome alerts [object Object] and then shows the wait icon forever, yeah
 
tks
I filed a bug report
I have some of my answers with the demo posted on that site
 
11:07 PM
@Downgoat but then it's multiple chars too, not just multiple bytes
 
combining characters + char are still only 1 char
 
maybe by "char" you're referring to a different thing
 
@EriktheOutgolfer mothereff.in/byte-counter#á;?
owait weird
mac combined them into normal char
 
that's not a combining char
that's the char á, which is different from the 2-char ́a
 
ಠ_ಠ apparently mac love to destroy combining chars
 
11:13 PM
my case
no mac, no trouble
 
yea but then no computer = no code golf = :(
 
use linux ;p
(note: not promoting linux)
 
@EriktheOutgolfer tried UTF-8 stuff on a Ubuntu couple years ago and it did not go well >_<
speaking of which @ASCII-only do we want to do Unicode string compare
 
umm, fyi ubuntu is one of the few systems where you have boxes very, very rarely
 
I was thinking we can normalize the string as they come in to avoid slow Unicode normalization
 
11:21 PM
also it doesn't have much complications, and in gedit instead of boxes you get hex codes
 
1
Q: Remove ambiguous plural(s)!

LyricLyProgramming is very rigid. You can't tell a program to "output the banana count", you have to tell it to print(bananas). But when you do that, you end up with a problem: you don't know how many bananas you have beforehand, so you don't know whether to use a plural. Sometimes, programmers go the...

 
@EriktheOutgolfer trouble was with aligning things like emoji and other wide chars
 
wide chars are one of the least stuff you need to concern yourself about
 
Why? Now I can’t use nice emoji in cheddar because I don’t want it to breaks in Linux/Windows
 
@NewMainPosts Dammit. Was about to answer before seeing "original whitespace must be preserved" D:
 
11:25 PM
I knew that would get a few people.
 
@Downgoat it will not "break", it's just that it looks kinda overlapping
also why use emoji???
 
@EriktheOutgolfer more information in less space
 
I thought you wanted to make commands/operators using emoji lol
 
00:00 - 19:0019:00 - 00:00

« first day (2436 days earlier)      last day (2397 days later) »