« first day (2356 days earlier)      last day (2480 days later) » 

12:00 AM
'PHP.net recommends avoiding stacking ternary operators. "Is [sic] is recommended that you avoid "stacking" ternary expressions. PHP's behaviour when using more than one ternary operator within a single statement is non-obvious.'
 
Oh dear. Now I have to look into this
 
JS's typing is the most f**ked up typing ever ... it led to JSFuck ... ffs!
 
Personally I prefer the 5 character equivalent.
36
A: Fewest (distinct) characters for Turing Completeness

user62131JavaScript (ES6), 5 characters Thanks to @ETHproductions and @ATaco for helping with this; this was a group project, and although the original idea was mine, many of the details are theirs. See the chat discussion where this JavaScript subset was developed here. []+=` It's fairly well establi...

 
OK I think this sums it up pretty nicely, whatever is actually going on
 
Personally, for that challenge the best is 1 byte.
 
12:03 AM
It's not possible to get 1 or 2...
Wait nvm
That makes perfect sense
 
Told you PHP ternaries are screwed up.
 
Wait no it doesn't.
This is affecting my brain in ways I can't comprehend
 
my maze generator is nearly finished
 
PHP deserves to die (so does JS, but that's never going to go away)
 
I can't even tell what's happening, I just know that it's wrong
 
12:05 AM
however I accidentally forgot to do the finishing touches...
┌┐╷┌╴╶┐┌╴╷┌─╴╷┌┬┐┌┬─┐╶┐╷╷┌╴╶┬─┐╷
│╵││╷┌┘└─┤├┐╷│╵╵├┘│┌┴╴│││├┬┐╵╶┤│
│╶┤├┼┘╷┌─┴┘└┤│╷╶┼┐╵╵╷┌┘│├┘│└──┤│
└┐│││╷└┤╶┬┬┐├┴┴╴╵│╷╷├┘╶┼┴┐├╴╶┐├┘
┌┘├┤└┘┌┼╴│╵││╷╷┌╴└┴┼┤╷╷├╴│├╴╶┴┴╴
├┬┤╵╷╷╵╵┌┘╶┴┘├┼┼┐╶┬┤└┘││╷│├┬┬╴╷╷
│╵│┌┼┼╴╷│╷╷╶┐╵╵╵│┌┤╵╶─┤││││╵├─┴┘
└┐└┘╵│╷└┼┼┘╷│╷┌─┴┘│┌──┘└┤╵│╶┘╷╷╷
┌┤╷╶┐╵└┐││╷│└┴┴──╴│├─┐╷┌┼╴├╴┌┼┤│
╵└┤╷├┬┬┴┘├┼┤╶┐┌┬┬╴│└╴││╵│╷│╷│╵││
╷╷└┴┘╵╵╶┬┤╵╵╷│││├╴│╶─┼┼┬┘│└┘╵╷└┤
└┴┐╷╷╷╷╷│├──┘│││╵┌┘╷┌┤│└┐└┐╷┌┘╷│
╶┐├┘└┤└┼┤├┐╷╷└┤└─┤╶┼┘│╵╷│╷├┼┤╷├┤
╷│├─┐│┌┤││├┼┴┐└─┐├╴│╷│╶┤││││└┤││
│├┤╷╵└┤││╵╵╵┌┘┌┐│╵╷╵└┘┌┤└┼┘├╴╵││
││││╷╷│╵╵╷╶─┤╷╵└┤╷│╶┐┌┤│┌┤╶┤╷╷╵│
hmm that looks nasty in chat
 
Solution: walk through the cracks in the walls
 
Solution: Walk around the maze.
 
@BusinessCat wrong
those are cracks in the path
the block drawing characters show the path
pls unstar
 
I thought they were walls too...
 
well, they aren't
but tbh its hard to tell with crappy block drawing characters in chat
you can see at the bottom a bunch of disconnected walls
 
12:08 AM
 
as I said, I did not do the finishing touches
so it is incomplete
@Zacharý your network rep is a palindrome ooooo
 
Mine is 10 higher than a palindrome
 
OooOo
Fancy
 
If your rep drops below the number for a privilege, do you lose that privilege?
 
Yeah I'm pretty sure it does
There's a page that says that somewhere in the help section
I think related to bounties
 
12:16 AM
Okay, someone be ready to upvote me.
 
@Zacharý no
 
That sounds like begging to me.
 
> If your new reputation brings you below the requirement for any privileges, you will lose access to those privileges.
 
Never mind, downvoting only removes 1 rep :)
 
12:17 AM
@Zacharý brb downvoting you
 
ouch
 
Dude ... no.
I just wanted my rep to be non-palindromic.
 
EZ fix, sign up to another SE site.
 
12:42 AM
There's a feature request pinned to the top of the starboard if you want to discuss star spamming. Any more discussion of it here will be kicked.
4
 
CMC: Given string s, return the string HERESY! if s does not contain the word xkcd.
 
@Zacharý RProgN2, 19 bytes. ]"xkcd"-e"HERESY!"?
 
61 messages moved to Trash
 
:38721152 Looks like someone else beat me too it
 
Example: "xkcdFFFF" => ""
 
12:47 AM
@Zacharý V, something bytes (not tested yet) Çxkcd/SHERESY!
14?
 
@DestructibleLemon sorry, main suspects for what?
 
>.>
@trichoplax sorry i saw the notice, hope you don't mind a second set of chaos powers eyes here.
 
@ThomasWard Sorry if you got summoned - there's been a lot of kicking in here today.
 
@trichoplax yes - there has been. Nah, it's not a summons, I just lurk here frequently.
so coincidental "i'm here i get noticed because diamond" circumstances.
 
@Zacharý Python, 34 bytes: lambda s:(not"xkcd"in s)*"HERESY!"
 
12:52 AM
3 messages moved to Trash
 
Also 34 bytes: lambda s:-s.find("xkcd")*"HERESY!"
 
WorldBuilding.SE stole our sandbox!
 
Yeah sorry about that :P
 
heheh
 
I answered a question there with a few paragraphs and repcapped, I like the confidence it gives me.
 
1:08 AM
why is the That solved my problem! button so big
i almost accidentally clicked
 
1:22 AM
Isn't this likely to be akin unto a DDOS against the site? And thus should be done with permission? — Kzqai Jul 5 at 0:08
uhm
what?
 
@Kzqai Good question, but I think you may be slightly underestimating how much traffic is involved in a DDOS, and also how much traffic xkcd.com already has. I wouldn't expect the traffic generated from answers here to be significant compared to either of those. — trichoplax 1 min ago
 
1:41 AM
I need to buy a 2x4 GB set of DDR4 RAM, any recomendations?
 
@Phoenix DDR4 support is still kinda flaky; pick something on the QVL for your motherboard and that will probably limit you to like 2-3 hcoices
At that point it's just whatever's from the manufacturer you like most/the fastest/on sale
 
@ToxicFrog I already have a computer with 8gb, but I want to upgrade
 
I'd recommend going for 16gb of DDR3 instead of 8gb of DDR4 if you can.
 
@Phoenix I'm confused. Are you adding or replacing?
 
I'm adding.
I got 8gb of DDR4 earlier with the intent to upgrade later.
 
1:47 AM
Well, that's it then. Get two more of what you already have.
 
I don't remember what that was >_>
 
Well, you better. Memory modules of different specs will clock down to be able to work together.
 
@Phoenix patriot viper
 
Wrong.
 
Least expensive option on amazon, seems likely.
 
1:52 AM
@Dennis is that in response to me?
 
@Phoenix You bought them from Amazon? Look through your purchase history.
@Downgoat Yes. When you're adding RAM, you get what you already have.
 
Looking at a one year old newegg purchase indicates that it's a gskill. I guess that's it.
@Dennis No, it's just Prime Day
 
Oh I thought he was getting new
@Phoenix that was yesterday?
 
@Downgoat 7/11 is prime day
You can tell because 7 and 11 are prime numbers
 
@Dennis If they've got the same clock speed, they'll likely work well together, probably not as well as the exact same model, but they'll work.
 
1:54 AM
Preeetttyyyy sure only thing that happens on 7/11 is free slurpees
 
@Phoenix Download CPU-Z, check your Ram's clock speed.
It should also tell you the make and model.
 
TY
Forgot about that
 
@ATaco Clock speed will simply use the lower ones. If the timings are off, you're in real trouble.
 
So much for make and model, but at least it does say all the timings and stuff
 
Is that a custom version..?
 
1:57 AM
MSI
 
Ah.
 
> Amazon Prime Day is July 10th, 2017 at 9p ET/6p PT
 
Give me a tick.
 
nvm it's in the SPD tab
 
Ah, all good.
 
1:58 AM
I wonder what that stands for
 
SPEED
 
Seattle Police Department
 
Probably not.
But it sounds cool.
"serial presence detect" apparently.
 
Google tells me what the information is, but not what the letters stand for
Well, there it is.
 
2:04 AM
Oh no D: $480 for GTX 1080 deal is gone :(
 
The fact that that deal existed in the first place is a bit amazing.
 
lol I named my command line flags for output f for file read, u for unicode decoding (according to however jelly does it :P), n for trailing newline, k for trim input (because file weirdness), and y for debug just so that normally it would be fun, or funk for my use, or funky to debug :D
 
It was even cheaper than a 1070 which was amazing
@HyperNeutrino that is great 10/10
 
this is my second time rewriting this language lol. I had to do a rewrite
hm I'm getting an infinite loop
wait no I'm not
wait what now I'm confused :o
 
2:24 AM
Why are you rewriting it?
 
I rewrote RProgN and it was the best thing to ever happen to it.
 
well I started it this afternoon
so I only got in a couple hundred lines
but the way I made it was bad
 
Well I guess I'll probably end up rewriting Gaia then
 
too much copy-pasting
 
Actually I'm already considering a massive overhaul because I have no idea how to make eval work with the current set up D;
 
2:27 AM
erm use __import__('ast').literal_eval for safety :D but that's assuming you're using python...
anyway my wifi cuts off anytime now so rip
o/
 
Apparantly, the single largest C source file on GitHub is several dozen megabytes large, and has the first hundred thousand or so prime numbers hardcoded into an array.
 
I originally wrote RProgN in lua, and as a result, it was slow, and constrained to doubles, that and types didn't make much sense. So I rewrote the entire thing in Java, improved the syntax so it didn't waste a lot of space with whitespace, switched to Win1252 to double the amount of single-byte functions I could have, and also moved to arbitrary size floats. Much better now.
 
Several dozen megabytes isn't that big...
Well, maybe for one file
 
That is in the scope of millions of bytes, that's nothing to shake a stick at.
Hundreds of millions, actually.
 
@ATaco Yeah, I just wrote Gaia in Python to begin with.
On an unrelated note, I feel weird naming the language after a Greek mythological figure and not even having Greek letters in the codepage
 
2:32 AM
Isn't Gaia Nordic..?
No, it's greek, my mistake.
 
@BusinessCat Greek letters are bad enough in math can we please keep them away from programming
 
Greek letters in programming is older than programming.
 
The major complaint I'd have is that so many of the capital Greek letters look exactly the same as Latin ones
14 of them, by my count
 
@BusinessCat Come on you need to have lambdas at least
 
I do have anonymous functions of sorts but I have no need for actual lambdas
 
2:38 AM
Why not define said anonymous functions with a lambda character
 
I wonder if the people behind ASCII knew how global it would become.
 
Because they're just written in braces/pointy brackets and 2 bytes is already too many
 
λ is also 2 bytes.
And as a reminder, is 3 bytes. And 1 character.
 
That one character is longer than my name
 
Same
 
2:44 AM
Talk about golfy!
 
Is that the widest unicode character?
 
60 imaginary internet points for whoever uses in their programming language.
Also, I think so.
 
Well, maybe someday I'll make a language with the Arabic alphabet
 
2:57 AM
I wish there was a ċ with the dot below. I'd much rather use c's than e's for cosine.
(since dot above is a trig function, dot below is the inverse)
 
Is ç not fine..?
 
Hm, that might work
 
(Hooked c)
 
3:10 AM
my steam name has been greatly improved.
 
@ATaco link to profile?
 
@ATaco thanks
 
@ATaco Your GitHub says William but your Steam says Bill. Which one do you generally go by?
 
Depends the context.
 
3:20 AM
I only use the full form of my name for official things really
 
depends whether he wants people to see him as a person or a duck nose
or a money
 
Generally I want people to see me as a Taco.
 
in all seriousness, I use my full name (Dmitry) for most things, but my family calls me Dima (most Russian names have a shortened form)
 
Pasha is short for Pavel, but only one of my friends calls me that.
Said friend has also lived in Ukraine until last year, so I wonder if that has anything to do with it.
 
How is that short it's same number of letters and syllables
 
3:23 AM
It's one letter shorter in Cyrilic.
Паша
Павел
@Mendeleev I have a friend named Timothy, his baby brother is named Dmitry. Therefore, Tima and Dima.
 
Anonymous
22 messages moved to Trash
 
@Mego Thanks
 
Fair enough.
 
Anonymous
Unicode spam is not acceptable. Please refrain from filling the chat with random nonsense Unicode characters.
 
Hey guys I'm back from the looong (kind of, it did feel like an eternity tho) exam period
 
Anonymous
3:31 AM
On a different note, this challenge still needs more eyes on it. Feedback from two users isn't enough.
 
@Mego I've read it a couple of times. I don't see anything wrong with it but I do find it very uninteresting.
 
4:10 AM
Oh my gosh, Google actually treats and as quotes. That's really impressive.
 
Anonymous
@WheatWizard Show
 
Anonymous
Types are capitalized
 
Wow that was dumb of me
I've been trying to fix this for like 10 minutes
thanks a bunch
 
Anonymous
Glad to help
 
4:21 AM
Why does lua have no way to asyncronously read files...
 
@ATaco Because no one uses lua ¯\_(ツ)_/¯
 
I use lua.
Even though it uses 1 indexed arrays, and has basically no control over the machine, yada yada.
 
> and has basically no control over the machine
Well there's your problem
 
The popular solution is to run a second program that sends it's STDIN over a socket, and on the first program, occasionally poll it for updates.
 
Have you considered using not Lua?
 
4:31 AM
That sounds smart, No way josé.
 
I just learned about async/await in C# and I'm trying to find a good application for it.
 
Right now I'm having fun developing the typing system of a language... it's been slow progress.
 
@Phoenix My sister is named Maria (Masha) and she has a friend whose shortened name is "Dasha". There's a Russian children's book called "Masha and Dasha" ("Masha i Dasha")
brb replacing my table with a new one :D
 
@PhiNotPi Why have typing when everything can be a void pointer instead?
 
4:47 AM
@Phoenix Probably because that's a ba[1] 23628 segmentation fault (core dumped) ./ai-attempt-5/Mendeleev/run.sh
 
TIL that C# has void*s too, but you need to specify the unsafe keyword.
 
RProgN2 has typing, but there's no way to actually see it.
 
@ATaco give it a keyboard? :P
 
@HyperNeutrino gotta golf 3 bytes off
 
Already done. ;)
 
4:55 AM
@DJMcMayhem IDK how many lines but GitLab report 15.4 megabytes
 
5:06 AM
@Phoenix Some more details: I'm aiming for a Haskell-like type system, maybe a bit different in some aspects, but definitely something much more comprehensive than a "basic" type system.
 
6:00 AM
hi?
 
hi.
 
I'm working on my all colour image generator
it will generate mazes and then floodfill them
with colours
 
6:21 AM
Hmm
 
7:02 AM
Is there a generic "convert int to arbitrary base" challenge?
I can't find one.
 
how would it be arbitrary?
 
Well not aribtrary
 
Anonymous
@DestructibleLemon Given N and X, output X in base N
 
I suppose it wouldn't make sense to ask for base 999999
But for a wide range of bases, not specifically "convert to binary"
 
Anonymous
You could do up to base-136755 using Unicode characters
 
7:07 AM
Because I have a Python + gmpy2 solution that works between base 2 and 62: import gmpy2;gmpy2.digits
 
@Mego yeah but its still not arbitrary
 
Anonymous
If you take advantage of combining marks and such, that number goes way up
 
@Phoenix Idea: make a where the byte count is divided by the number of bases you support
 
7:27 AM
@Mendeleev Seems intresting
Unless you want to post that, I'll do it tommorow since it's kinda late.
 
hi, can you guys just check some maths I did?
for the all colour images, I see a lot of 255/32 in things, why is this?
there are 256 possible bytes, not 255
oh
now I see the issue
how do I generate all the equally spaced colours?
 
@ATaco You can use my Kbd utility to make a map of your keyboard.
 
7:44 AM
@Phoenix I can post it
 
Feel free to
 
Thanks!
 
7:58 AM
hahahah my code is mindboggling
excerpt: maze[new_cell[1]][new_cell[0]][directions.index(invert(directions[i]))] = 0
ok, I almost have a servicable image now
almost
hmmmmmmm.... this is a most puzzling error
oh man do my mazes have loops in them?
 
8:23 AM
2
Q: Cyclic strings, hidden programs

BlexWrite 3 programs that do the following task: Let A, B, C source codes of those three programs; if A runs BC is produced as output, if B runs CA is produced, if C runs AB is produced; so each program writes a string (cycled for each program) and hides itself from it. Additional, but essent...

 
W3C approved web DRM.
 
;_; my mazes have loops and isolations now
 
8:51 AM
omg I think it is working
 
Jim
@DestructibleLemon What are you trying to do? Generate mazes?
 
well
lucky for you, I can now show you
 
Jim
@DestructibleLemon It's a little small. Looks more like a fractal than a maze
 
I can make bigger ones
I use ellers algorithm so it doesn't take half an hour
ok it might take half an hour idk
 
@NewMainPosts dunno how to do this, like i have no idea (i'm stuck thinking about quines, though that's not the right approach)
 
Jim
@DestructibleLemon Oh I know this algorithm. I never implemented it, but it's supposed to be fast
 
do you want the explanation of what you're looking at?
 
Jim
@DestructibleLemon Absolutely
 
tbh I suspect it might look different if I started it in the bottom left even if I swapped the colours backwards because there are a lot of lines at the bottom
@Jim so, first it generates eller maze
then, starting from the top left, it colours a pixel, pushes the neighbours into a queue, then colours the next pixel in the queue, adding its neighbours too, and so on
a flood fill image
kinda
also colour constancy makes the images look weird as heck
 
Jim
The walls are not present in the image is that it?
 
8:59 AM
like, some of the parts look like they're shaded red, but if you showed the zoomed in version to someone who didn't see the image, they would not call it red
it looks bizzare to me...
brb tweaking a couple of the settings
ooh that looks weird
 
Jim
@DestructibleLemon I don't think I understand how you perform the flood, the final image does not have a maze structure
 
@Jim ok, so...
it doesn't illustrate the maze
after a while, the difference in colour between different parts of the maze increases
anyway
 
Jim
@DestructibleLemon That I understand
 
so, I'll try to explain again
it doesn't illustrate the maze, it just colours according to what step in filling the maze it is at
so, for each cell in the maze, the colour it is represents when it got explored by a flood filler
 
Jim
@DestructibleLemon So the walls aren't represented, right?
 
Jim
Okay, I got it
 
I started it in the bottom right and got results I did not expect, but then it might just be natural varianxe
I'm gonna make a minor thing to make it a depth first instead of flood fill
 
about two weeks ago I lost 2 rep because apparently an edit I made to a post was reverted
But I can't see it on the post it links to
 
hmmm
I have a thought
 
Jim
@DestructibleLemon This could be in a contemporary art museum
 
9:14 AM
um, thanks 😀
also maybe I should have posted it no onebox
 
pssh net neutrality is overrated
 
I like what Reddit did to their logo for today
oh my
Every comment has been removed by a bot with the message "Commenting on reddit.com is not in your current internet plan!"
 
woah dude
 
I might fill up my memory with these images o_O
 
oh in that post they broke all the links at the top of the page too
 
9:35 AM
hi all
I think this answer deserves more plaudits codegolf.stackexchange.com/a/131818/9206
 
@Riker MOLT
 
9:50 AM
ok I did a new image styling now guys
thoughts?
 
10:03 AM
@DestructibleLemon Forest fire?
 
10:22 AM
0
A: Sandbox for Proposed Challenges

SokSmallest number which is divisible by all integers [1 ... n] Input: A non-negative integer, n. Output: The smallest integer which is divisible by every integer from 1 to n inclusive. Note that, by convention, the output for n=0 is 1. Rules and clarifications: You can write a program or funct...

 
10:54 AM
0
Q: Let's play Rummikub!

Mr. XcoderNote: This is related to a variation of the game Rummikub Background & Rules Rummikub is a tile-based game. There are four colors: red, orange, blue and black. For each color there are 13 tiles (labeled from 1 to 13), and there are also 2 Jokers which are color-independent, hence there are 54...

 
idea: rps but some people are aiming to "lose"
ooo, I have had idea for my image generator
wait it does not work ono
 
-3
Q: increment operator in loop

Harsh Patel#include <stdio.h> int main( ) { int x = 10, y = 3, z; for(z = 0; z<x; ){ z = z +y; printf("%d\n", z) ;} printf("%d\n", z) ; return 0; } and this code : #include <stdio.h> int main( ) { int x = 10, y = 3, z; for(z = 0; z<x; ){ z = z++ +y; printf("%d\n", ...

 
11:15 AM
I got the bronze tag badge, yay!
And I now am a trusted user :P
 
@Cowsquack Can you get the index of an item in an array with Carrot?
 
I'm wondering do we have a meta discussion / consensus on feasibility issue? For example, a code is theoretically right. But it needs unreasonable time or memory for some example inputs.
 
Okx
You can assume that a program has unlimited time and memory unless otherwise specified in the challenge
 
Thanks
 
oh noes stack overflow is advertising about net neutrality
 
Okx
11:29 AM
which means?
 
They already had a few meta posts about it but the new banner is right in your face now
 
@TheLethalCoder not yet, Carrot doesn't have many array functions now (this reminds me, I gotta start working on Carrot's rewrite soon)
 
@Cowsquack Surprising name change >~>
 
I like it though :P
 
11:36 AM
did not realize that o0
 
That banner looks really crappy in my iPad...
 
Anonymous
A small banner that doesn't obstruct content and is easily closed is a perfectly reasonable way to get people educated about net neutrality
 
the banner is useful
 
No, but lies on top of the questions bar and it's nearly full-width. I totally agree with its content
It's not the banner itself, it's my iPad that renders it strangely, and pixeled
 
> Join Stack Overflow in Standing Up for Net Neutrality
personally it doesn't bother me much
 
11:42 AM
@Mr.Xcoder For reference, here's what it looks like on PC i.imgur.com/LxKVoUq.png
 
It doesn't bother me either, it's the rendering PROBLEM of my iPad that is bothering
OK, bye!
 
@Cowsquack Didn't think so, I was trying to do an answer for codegolf.stackexchange.com/questions/86075/… because I can't see one in Carrot already but I didn't want to just hardcode the output.
 
Anyfix seems really cool but just doesn't seem to work and is pretty poorly documented :(
 
Neutrino abandoned it
 
11:50 AM
yeah I noticed
 
So it's unlikely anything will be able to be done in it
 
last commit was Final commit before stopping development on Anyfix in favor of a better language
 
mm
Excuse the newbie question, but whats PPCG? Polish Python Coders Group? — DaveBoltman 2 days ago
2
Hehe
 
12:07 PM
@HyperNeutrino lol this is so messed up
 
0
Q: Card Wars - Puzzle

Alan SutherlandAlec and Bob are playing a game called Card Wars. Both players have one deck containing N cards each. The hierarchy of card values is as follows: ace (marked with the symbol A), king (K), queen (Q), jack (J), ten (T) and from nine to two (9−2). The game is played in turns. In every turn, each pl...

 
@HyperNeutrino If your language is for , you should create a palidromize function and a four-way palidromize function
 
Jim
@Mr.Xcoder "Four-way" for horizontal and vertical in both directions?
 
that's sogl stuff
 
12:25 PM
0
Q: Distribute a number into a list of values as equal as possible whose sum is equal to that number

Christiaan WesterbeekProbably a simple code-golf challenge. Given 2 positive integers m and n, make a list of n values that are positive integers whose sum is equal to the number m. Examples For example m=6 and n=3 would become 2, 2, 2 m=7 and n=3 would become 2, 2, 3 or 2, 3, 2 or 3, 2, 2 m=7 and n=2 would beco...

 

« first day (2356 days earlier)      last day (2480 days later) »