« first day (2096 days earlier)      last day (3042 days later) » 

02:00
why was the python answer deleted?
single quotes
instead of double
@xnor - you could do print{id+"'":1}
You can't concat a function to a string without stringifying the function first, and that's also just as long as xnor's existing :P
@xnor - actually print{"'"*9:1} is shorter
02:06
there's print{"'":.1}
hmm, this seems version-dependent
it gives {"'": 0.10000000000000001} on replit but not in idle
if it works in one version...
...then it works in all versions?
...then deploy it to live?
i fixd mya nyswer
WHy do people always outgolf me?
even in python
ruby is supposed to be more concise?
wtf
@NathanMerrill Think I should post a 0-byte V answer?
@DJMcMayhem you can, as long as you post the version. I won't technically be accepting an answer
02:14
Hehe, ok
0
Q: Translate English Characters to the Emoji Flag Alphabet

ATacoIntroduction Emoji use a particular alphabet for their national flags, which allows one to put two symbols together to create the appropriate flag. 🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿 Your challenge, is to transform any uppercase letter into the appropriate Flag Identifier. T...

too bad print vars() fails
@Dennis 11 for Jelly seems awfully long o_O
Dammit, tabs aren't valid JSON
Hmm print{"'":9e9} isn't any better
02:29
@Sp3000 Yeah. :/ There's no "natural" source for brackets or double quotes.
But yeah I feel like .1 is valid, just for the really old Python versions that don't round
@Sp3000 do you have an old version to test on?
@Dennis holy cow that name tho
@xnor I should, gimme a few min first though
@xnor It might be more recent than we think - 2.5 gives a long decimal but 2.7 gives 0.1 (and based on Misc/NEWS I get the feeling the behaviour was still present in one of the alpha versions for 2.7)
02:46
@DJMcMayhem wait wat O_O
also ;_; for no cat in hat
@DJMcMayhem ^
XD I like that
@NathanMerrill I like your JSON challenge.
I think it would be neat to see more challenges where users have greater control over their output.
03:06
@DJMcMayhem y u no use cat ;_;
maybe cat for christmas?
@EᴀsᴛᴇʀʟʏIʀᴋ cat in hat = cat
I got monokai working on mac terminal :D
03:22
emily howell (artsites.ucsc.edu/faculty/cope/Emily-howell.htm) is an AI that creates music. It passes the turing test, emily howell vs. human musician
@noɥʇʎPʎzɐɹC I know about Emily Howell, but what's your source for passing the turing test?
@NathanMerrill CGP Grey
on the other hand, jukedeck (jukedeck.com) is an AI that generates music based on your specification. It does it free and the registration is fast.
Like Emily Howell but practical and second-generation.
@noɥʇʎPʎzɐɹC the perception of 1 person doesn't quite count :)
@NathanMerrill not them, but they got a source
like studies, double blind
this jukedeck generated music is GOOD
it is fitting for use in videos.
@noɥʇʎPʎzɐɹC do you have a reference to these studies?
03:29
@noɥʇʎPʎzɐɹC wow, this is cool
@NathanMerrill CGP Grey cites his sources well
@Downgoat Yeah, it's like "click button, make music".
@noɥʇʎPʎzɐɹC I'm sure he does, but I have no idea which of the many videos he's posted you are citing
@NathanMerrill "Humans need not apply"
@noɥʇʎPʎzɐɹC step two: make realistic vocals generator and take over music industry
03:31
@Downgoat :D
star, others should see :)
@Downgoat Hatsune Miku?
@Geobits not sure how relevent
HAHA WE PROGRAMMERS WILL TAKE OVER ALL OTHER INDUSTRIES! >:D
@noɥʇʎPʎzɐɹC I feel like we are gonna start running out of music very soon
03:33
for (let i = 0; i < 100000; i++) makeMusic();
@Downgoat ???
@Downgoat "She" is a Japanese pop star synthesizer. Seemed relevant to me.
Look up vocaloid. It's actually pretty fun to play with, and there are other voices available.
03:37
and now, bodging AI with CrazyPython.
We will be programming a neural network to rate jukedeck generated music and select the highest rated.
bah, I've looked through all of his sources, and I can't find his one for Emily Howell
@NathanMerrill dammmmmmmmmit
@Geobits jukedeck + vocaloid = japanese music? :O brb taking over japanese music industry
You might be late to that particular party ;)
@Downgoat "...don't worry it will only take a weekend"
03:39
@Geobits wait what
"...and fighting some luddites"
@EᴀsᴛᴇʀʟʏIʀᴋ is this a ? regarding me in general or a specific message
there should be a PPCG neural network club
Neural networks can do amazing stuff - from jukedeck to neural art, it's quite awesome.
^ AI is very cool field that has too many Greek letters for me to try to learn
03:47
@Downgoat Let's start a neural net PPCG project, like the VSL project.
Collaborative.
Open source.
But why? How will it be better than e.g. Google's?
Does GMP come with most Linux distros by default?
@ASCII-only ?
@Downgoat -1 not hyper.app -1 terminal not same color as window chrome
@ASCII-only because the power of community and the speed and agility of community
03:50
;_; I used to use hyper term but it suck
@Downgoat ;_; why
WHY IN GODS SAKE WOULD YOU WRITE A TERMINAL IN JS
@Downgoat I personally thought AI had a lot less Greek letters comparatively
Why would you write browser in node? Don't ask me
@Downgoat I thought you loved node
03:52
But HTML means flexible meaning I can just css the annoying border padding away
@noɥʇʎPʎzɐɹC No JS developer really likes JS. It's a love hate thing
it means developer tools and cross-platform stuffs, I guess? ;_;
But I like JS :(
It's just slower than I'd like, same with almost every interpreted language
@ASCII-only JS is that funny thing that does what it claims to be and is the tacky but most practical language ever
@quartata yeah. It's really that JS is only language they know sufficiently because it's so simple
03:57
JS is a scripting language, complete enough to separate itself from bash, but minimalistic enough to feel "scriptish"
A nonexistent stl, cross-platform like you've never seen, lots of quirks
JS itself basically defines a very primitively language. But nodejs promotes modularity with powerful module system
i like c++
i compiled emscripten with itself so now i can c++ on the web
I cannot for the life of me get emscripten to work
@Downgoat yes
it just keep bork
04:00
@DmitryKudriavtsev WHYYYYYYY
c++ for the web!?
C++ is for performance freaks, I thought
I'm not sure why you see this as bad thibg
@noɥʇʎPʎzɐɹC that's C you're thinking about
@Downgoat naw, C++ is C coated with syntactic sugar
No it isn't
...
Hardly
You don't need to use malloc at all in C++
04:01
C++ is same perf as C
Therefore 100% different
@ASCII-only ye, it is syntactic sugar
@ASCII-only c++ perf = C perf
C++ easy
C hard
C simple.
C good for OS.
thats like calling safari and Chrome the same because they both use webkit
It isn't, C++ is way easier to use because it provides way more than syntactic sugar
04:02
> naw, C++ is C coated with syntactic sugar
C++ has STL
@Downgoat Chrome uses Blink
Which is big thing
C++ perf = c perf. C ≠ C++
you get ability to create dynamic objects without having to realloc The shit out of stuff
04:03
@Downgoat I nevar said c = c++
@noɥʇʎPʎzɐɹC That's like saying PyPy is C with syntactic sugar
@ASCII-only fork if WebKit
technically, everything is syntactic sugar for assembly
@noɥʇʎPʎzɐɹC I think you're really misunderstanding what syntactic sugar means
... no not really
^^
04:04
SYNTACTIC SUGAR IS GOOD AND YUMMY
I THINK YOU MEAN SYNTACTIC SYRUP
Syntactic Tin Cans FTW
Programming: Applied linguistics
Programming: Applied trial and error
Programming: Applied spelunking
@Downgoat about that cat message
> cat in hat = cat
@EᴀsᴛᴇʀʟʏIʀᴋ you asked why he didn't use cat
he use cat in hat which is cat
English Script: Practical non-esoteric programming in english: github.com/pannous/english-script#examples
While Peter is online on Skype
    make a beep
    sleep for 10 seconds
Done
To check if person is online on Skype:
    Skype.checkStatus(person)
    if result is "online": return yes
    else return no
End
04:10
It's not very english-y and has really restrictive syntax
last commit 11 days ago
compiles to python bytecode
IMO it's just better to use Parsey McParserface when it gets context support
> Parsey McParserface
pls tell me this is joke
Gtg sleep g'night .o/
@Downgoat Goodnight (also why not use Hyper.app ;_;)
05:15
c++ == c with some features that are just written in c themselves
and a bunch of libraries that use these features
and many extensions to the c thing
05:52
@Sp3000 i solved animated esports sign with 34 power and i'm so proud even though it's obvious glitch abuse
and i'm bragging to you because you're the only person on my friends list with shenzhen i/o other than someone from reddit who i only added to have someone to compete with in infinifactory
06:08
Hello
Argh I need halp with C++
aww tr doesn't work with this :(
06:34
@Qwerp-Derp You're gonna have to be more specific that that. :P
#include <SFML/Graphics.hpp>
#include <string>

void textDisplay(sf::Text& display_text, std::string display_str, sf::Font display_font, int char_size) {
    display_text.setString(display_str);
    display_text.setFont(display_font);
    display_text.setCharacterSize(char_size);
    display_text.setStyle(sf::Text::Regular);
}

int main() {
    sf::RenderWindow window(sf::VideoMode(400, 400), "Game");
    sf::Font arial;
    if (!arial.loadFromFile("fonts/arial/arial.ttf")) {
        return 0;
    }
The text doesn't display in this
@undergroundmonorail Which username are you using currently? Also, it's a very well-preserved brag :) been trying for ultra low power and have only managed on pulse generator atm
If you're the one with 6Y on eSports it's tearing me apart D:
(btw Martin's also got the game but he'll have to join in a month or so when he's less busy)
I came to say one thing: Lisp and Brainflak combination language would be amazing. Goodbye
new dialect
07:05
lisp and jsfuck
Took almost one year (graduation Nov. 16 2015, design Oct. 5 2016) for Signal processing to get its design after graduating. So Probably no design for us on November 1st :(
I think I'll miss our current design.
Lenovo thinks it's a good idea to put +~*# and ' on two keys, both directly above the return key. WTF.
Anonymous
@Fatalize Wait, you actually believed that we'd get our design on November 1st? Well, do I have a great deal on a bridge for you!
No, I actually believe we'll never get one
Anonymous
I think we will get a design. It'll take another 5 years, though.
07:18
*6-8 years
Anonymous
I wonder which site took the longest to get its design. I'd imagine Signal Processing is pretty high on the list, but I wouldn't put it past SE to take over a year for a design.
Anonymous
@ASCII-only Wrong reference, try again
I don't understand how it can possibly take them that long for designs
Anonymous
@Fatalize Large backlog, poor priority management.
How many sites are between graduation and design right now besides PPCG?
Anonymous
07:23
Not sure. I think CR has a list on their meta somewhere.
In any case it wouldn't be that hard to post a SE-meta post with “here is the list of sites which will get a design, from earliest to latest” and keep it updated
Anonymous
Anonymous
Looks like Anime has waited the longest for a design - they graduated on September 10, 2015
> Site: Raspberry Pi Weeks: -2
:(
They are still looking for kawaii ideas
07:26
@mınxomaτ Something new or region/language specific? My work computer (lenovo) has those on 4 different keys and backspace is above return.
@Mego @Fatalize Use the freaking script
I want the real thing
Ouch, Anime looks like it's been waiting for a long time
07:30
It's close enough.
Seriously worth it
want a screen shot?
I know what it looks like
OK. Fine
I mean. If you want the site to get a redesign, it's fine. I want that too
Anonymous
If you want "the real thing", it's fine, I want that too
But it doesn't exist yet, and the script is the closest equivalent to it
Anonymous
They generate very little traffic, and don't have great stats in other areas either
Anonymous
07:33
A site that doesn't bring much traffic to SE is understandably lower on their priority list
They have 22k per day
not that low
Can't you just use the script?
Anonymous
Code Review gets double that. It's not surprising they got their design quickly.
Anonymous
Though there probably is an argument to be made that having a real design brings more traffic in
07:36
tl;dr we will never get a design
Then who's getting a design next? They all have roughly the same stats as us except maybe Motor Vehicles
Our redesign takes the most work
ergo we are last
They could literally say “we like what you did with you script so we use this design directly if you agree” (read: we don't want to work) and people would be happy
they probably do not know about it
@DmitryKudriavtsev Pretty sure they know about it, brb finding link
Anonymous
07:44
@Fatalize I don't think they would, though. That would make legal matters difficult. The site designs and logos are copyrighted by SE. Trying to transfer copyright ownership from all of the collaborators on the design to SE would be a legal nightmare.
ugh. building the parsey mcparseface docker image makes this laptop even more slow than usual
@Dennis Can you please pull 05AB1E?
> only during storms
Just read that AMC theaters will restransmit the results of the POTUS elections in some of their cinemas. That sums up well those elections imo :p
one little bug in the code
one little bug
you fix and patch the little bug up
seventy little bugs in the code
Clearly its not a little bug then
Clearly it was just pretending
08:27
@Qwerp-Derp Did you implement Repetition?
08:44
@Fatalize Uhhh
I implemented most of it
Nothing on github :(
@Emigna No just bad layout. They also forgot a key and crammed it in after the fact, together with the left shift:
@mınxomaτ For some reason that is on my keyboard layout chart
That's a normal position, but it's not usually merged together with the shift key.
That was clearly meant to be just for the shift key (because the cutout is as long as right shift), but I guess they realized that a key was missing, so this happened.
@Downgoat may be interested in/by this question on C.SE:
0
Q: Is there a biblical basis for the "goats are evil" trope?

SidneySo, having spent some time cuddling and playing with goats, which are delightful creatures, I have to ask, is there a biblical reason that goats are associated with Satan and the occult? Examples: http://www.twistedtree.org.uk/Goat_of_Mendes.jpg https://upload.wikimedia.org/wikipedia/commons/...

08:56
@mınxomaτ Maybe they just adapted another keyboard?
No the layout is completely standard. There is no reason for this, they could have made both shifts shorter.
Now I'll just hit < randomly while pressing shift and # instead of return.
@mınxomaτ Strg?? Strong?
@Fatalize Steuerung
German for Control
@mınxomaτ I know, but maybe they adapted a keyboard without those keys?
I mean, most laptops I've seen don't have that key
@mınxomaτ Sounds like steering, any idea if they have the same root?
Steering is "Lenkung" here.
@mınxomaτ At least you control in the right position. My Lenovo has Ctrl and Fn in swapped (but I've rebound their functions in BIOS)
@Fatalize Google has the German steuern as a root (looks like one of three possible roots)
Swapping Ctrl and Fn is the most evil thing you can do while designing a keybaord
really confusing when someone else tries to type on my computer though as they try to use the key that says Ctrl
09:05
Verb: steuern ‎(third-person singular simple present steuert, past tense steuerte, past participle gesteuert, auxiliary haben)
  1. to steer
Answer is yes then I guess
I kinda want to do this question with the Riemann hypothesis.
73
Q: Does the code terminate?

Bolton BaileyThis is a code golf challenge I thought of with a mathematical bent. The challenge is to write the shortest code possible such that it is an open question whether or not the code terminates. An example of what I mean could be the following piece of python code, adapted from an anwser to this cs s...

09:24
hi all...
hi @miles
09:40
Hello
I am having a strange issue with the answers to my challenge where the running time varies a lot between runs
I was hoping someone else might test them to see if they get the same thing
09:52
@Lembik dunno much about benchmarking for c, but how are you timing?
Hey, @Dennis, the copy snippet feature on TIO is brilliant! I never realised that it inserted markdown as well! :D
4
10:10
Lembik: mmm, so it only gained a little bit on your CPU ? It gained a factor of 3 for me :-(
@TonHospel no it's a lot! It went from 32 to 33
@TonHospel The running times are completely non-deterministic on my PC which I don't really understand
I mean n went from 32 to 33
@TonHospel I will give you my test harness
maybe it is broken somehow
10:28
@Lembik But the time nearly doubled which is normal for n+=1. So it really only went from 2*32 = 64 to 55 seconds
@TonHospel oh ok
I wonder if your gcc is bad at vectorizing. I didn't make the vector code terribly explicit to give other processors a chance too
This is how I am testing it bpaste.net/show/af1b8fc87c58
@TonHospel it could well be.. I was reading locklessinc.com/articles/vectorize
seems gcc really need to be coaxed (although I am using 5.4.0)
hm.. the function name is wrong..should be Ryser
@TonHospel also bear in mind that I don't have 8 real cores. It is 4 modules and 8 integer processing units
Well, I did coax it quite a bit. If I look at the assembly it mostly generates what I want. I'd like to see the dissasembly though. Could you compile with -g instead of -s, do an objdump -S on the executable and paste that at a paste bin ?
ps, on my system runtimes are quite consistent
(not using your test harness)
g++ -Wall -O3 -march=native -fstrict-aliasing -fno-math-errno -funsafe-math-optimizations -ffinite-math-only -ffast-math -fno-signed-zeros -fno-trapping-math -std=c++11 -g TonHospel.cpp -lpthread -o TonHospel
10:35
MM, for my current version the float options should have no effect, but they don't hurt either
did that work?
Yes. And the basic vector code your gcc generates looks fine. Only the 64-bit and 128 bit multiplies are optimized a lot less than on my system.
I suspect that is the bottleneck or AMD is just bad at vectorized floating point arithmetic (I seem to remember having read such accusations)
No way to know without profiling
if you talk me through it I can profile the code
Does your system have perf support ?
10:51
I don't know what that is sorry
Just type "perf" and see if you have it :-)
halp SHENZHEN I/O is eating my free time
oh I see sudo apt install linux-tools-common :)
I have root
it does now
ah
@TonHospel ok it does now
I had to install linux-tools-4.4.0-45-generic and linux-cloud-tools-4.4.0-45-generic
Ah, sorry, can't talk you through it now. I just updated my software so now I have perf for kernel 4.7 and am running 4.5. So I'll have to wait until I reboot
ok..
10:54
Which I don't want to :-)
I have perf in any case so when you are ready I am too :)
It's a very interesting tool anyways. Read up on it. You can start by running the program with e.g. a 37x37 matrix as arg so it will run for a long time, the in another terminal run perf top and zoom in to the slow parts (make sure the program is compiled with -g, not -s)
ok thanks
11:22
25
Q: Would it be ok to eat rice using spoon in front of Westerners?

adiproIt seems to me that Westerners are more ready to learn to use chopsticks in Asian restaurants, but prefer to stick to forks when spoons are the way the dish is normally eaten with in the country of origin. Since presumably both spoon and fork originated from the West, is it OK to eat rice using...

"many Europeans hold their knife and fork in opposite hands than Americans"
Please don't tell me you hold your knife in your left hand
-1
Q: Draw an hourglass

SickboyAgain inspired by a task for programming 101 here's another challenge. Input: A positive integer n >= 3. (has to be odd for the indentation variant) Output: With indentation: n lines of asterisks, where the first line has n asterisks and every new line has two asterisks less than the line ...

11:33
0
Q: Print the n-th digit of pi

mnbvcTask Given an input n, calculate the n-th decimal digit of pi Rules Answer can be a full program or a function. Input must be taken from stdin or from function arguments. Output must be either sent to stdout, the return value of a function, or written to a file. all n values between 0 and 200...

11:52
@xnor hi
row_comb = [sum(c) for c in zip(*M)] why not just row_comb = [sum(c) for c in M] ?
what's the difference?
@Lembik transpose
@MitchSchwartz ah!
how could you do that without zip?
I am trying to speed it up for pypy
which doesn't like zip
0
Q: I need to run .exe

dorrguybusDoes anyone know how to run a .exe file when they are blocked and you have no privileges on your computer. Like at school when you have no privileges and no administrative capabilities.

what do you mean pypy doesn't like it?
pypy JIT runs fastest when the code looks like C
it doesn't work so well using builtin python functions
11:59
i don't have pypy installed, but i mean, that line is run exactly once and not in a loop, so it takes trivial time and all
@MitchSchwartz it's run many times as the function is called 36 choose 6 times
are you saying it causes pypy to fail altogether, or is there just some sort of warning
no just not as fast as it might be
no warnings/errors
I am just trying to help pypy's jit compiler
@MitchSchwartz I have another fastest code challenge
you are using a test suite that includes 1947792 matrices?
12:17
@MitchSchwartz yes.. the code is at bpaste.net/show/a48378f59263
is using indices better for pypy? row_comb = [sum(M[i][j] for i in range(n)) for j in range(n)]
and place the line defining n before that, ofc
do you think it matters, given that the line in the innermost loop will be executed 2^(n-1) * n more times than that line?
well for n = 6 it could matter, nvm
12:52
@DestructibleWatermelon Why doesn't this work? It should print "abc" but I can't get the turtle to move on past the "ab" no matter which direction I turn
Which direction does the turtle face initially?
@DJMcMayhem 0/10 using Turtlèd :P
Why someone downvoted this o_O
Rick roll?
@Lembik i know you're capable of figuring out what zip means, and how to implement it without zip
(Didn't click on it)
12:58
@DJMcMayhem 3D maze in SHENZHEN I/O
@TuxCopter :O woah
@TuxCopter Because it's YouTube. Literally every YT video has downvotes
That's what I thought, but it doesn't work
None of the directions do
@DJMcMayhem Never mind, <> are turns
> Latest commit 28 days ago
Also yay Charcoal is getting a JS port so you will be able to run it as a Stack Snippet :D
Of course, I'll be the only one using it ;_;
@DJMcMayhem BTW Charcoal has a really bad really unfinished tutorial here
13:16
We're doing a canned food drive at work. The deadline is today at noon. Currently development has one can of spam, while support, test, and front office all have over a hundred cans. We're about ready to strike - we have hundreds of cans stashed in our desks and cars and everywhere.
6
Meanwhile our president said something to the dev manager asking why we are so disengaged from charity at work
Little does he know
I'm fired because the program tester in our company forgot to compile the code before running it ...
That's pretty depressing
I was feeling all giddy about our evil plan to out-charity the front office and now I am just sad for you, so I will get back to work.
@GLASSIC wat
How can a company possibly fire someone for this
0
Q: Sum Chain Sequence

Kevin CruijssenSequence: We start at 1. We first add the current 1-indexed value to the previous number in the sequence. Then we apply the following mathematical operations in order if they apply to this current value: Divisible by 2? => Addition Divisible by 3? => Subtraction Divisible by 4? => (Addition A...

@GLASSIC In what universe, is this a good idea?
13:55
@Rainbolt This is awesome. Let us know how it goes :D
@GLASSIC ;___; that really sucks

« first day (2096 days earlier)      last day (3042 days later) »