« first day (2452 days earlier)      last day (2392 days later) » 
00:00 - 20:0020:00 - 00:00

8:00 PM
Never used Python
 
I wonder what would happen if the New Main Post question was run in Piet
 
@Mego Thanks, understood that now ^^ makes me hate C# now ... (new string('c', l);)
 
CMC: Make python's * repeat each individual character instead of the whole string. So that "abc" * 3 == "aaabbbccc"
 
@Mr.Xcoder APL, 2 bytes: ⌈⌿
@Uriel ^
 
8:13 PM
@DJMcMayhem Jelly, 1 byte × and VTC as dupe of a main challenge
 
@cairdcoinheringaahing No, the challenge is to overload * in Python
 
Congratulations @Mego on winning the podcast thingy and winning some Stack Overflow stickers!
 
It might be possible with ctypes
 
Anonymous
@Mithrandir Oh cool, I didn't even realize I won!
 
8:16 PM
Wait, how do you know he one? I didn't see the new podcast episode
 
@DJMcMayhem Mod powers :P
 
Anonymous
Jess Pardue on October 16, 2017

Welcome to The Stack Overflow Podcast episode #119 recorded Thursday, October 12, 2017 at the Stack Overflow HQ in NYC. Today’s motley crew includes VP and GM of Stack Overflow Jay Hanlon, CTO David Fullerton, News Editor Ilana Yitzhaki, me, Producer Jess.  Joining us are very special guests Michael Ludden, Director of Product at IBM Developer labs for IBM Watson, and SO Content Marketing Manager Rachel Ferrigno.

Special thanks to this week’s sponsors: Oracle and Digital Ocean.

Stack Overflow appreciates Oracle’s support for this podcast and for our community. Learn more about all the ways Oracle supports open source, java, and developers like you at oracle.com/developers. …

 
Nevermind, found it
 
Anonymous
Now I have to figure out how to claim the stickers :P
 
hahaha, I like your tweet
Nicely done
 
8:19 PM
@Mego I've got no idea :P
 
CMP: What is your least favorite language to work with?
 
@DJMcMayhem Do in-dev languages count?
 
@cairdcoinheringaahing As long as you're counting least favorite to work in not least favorite to work on
 
@DJMcMayhem In that case, Jelly :P
 
Is someone willing to help me with some exercise-Pyth-golfing?
 
Anonymous
8:26 PM
@DJMcMayhem Java
 
Any particular reason?
 
Anonymous
I have discovered a wondrous proof of Java's terribleness, but this chat box is too narrow to contain even the necessary boilerplate
22
 
You can drag the chatbox bigger. ;-)
 
I'm torn between C++ and JS
JS is horribly designed, and I'm constantly blown away by some of the decision choices when I (rarely) use it, but C++ is a lot more painful to work with.
 
@Mego fake news
 
8:34 PM
Like, C++ is well designed but impossible to work with, JS is decent to work with but horribly designed
 
Go for Pish-Posh! It'll be horrible to work with and horribly designed!
 
Perfect!
 
Anonymous
@IanH. What do you need?
 
@DJMcMayhem what in particular bugs you about C++
just out of curiosity
 
Anonymous
@quartata I dislike the obtuse error messages spat out by g++ when any slight thing goes wrong with templates
 
8:42 PM
I used to like it, then I hated it and now I'm back to liking it again
 
Ehh, as long as I'm doing simpler tasks it's fine, but when I work with more complicated stuff, the error's are nearly impossible to figure out. Simple problems result in 100's of lines of errors.
I'm jaded from too many times spending 100+ minutes trying to figure out a problem that ended up being solved by removing a const
And also, the standard library is a little bit of a mess. The fact that boost exists speaks volumes about the way modern C++ evolves
 
The hating it part corresponds exactly with the time when C++11 was the flavor of the month and either a library would be drenched in boost, smart pointers and weird templates or was so archaic it wouldn't build under C++11
@Mego like if they would just take C++ and then put in Crystal's macro system I'd be so happy
idk templates are messed up and being seriously abused
 
@quartata But in all honesty, the real reason is probably mostly because I use it at work on a two person team (my manager and me) and he is waaaaaaay better at it than I am, so he ends up writing crazy template stuff that I only half understand. Which is fine when it works most of the time, but then when something goes wrong I spend way too long trying to figure it out before going to him for help.
Like literally just this morning he described something he did in templates that I can't even begin to understand
 
@DJMcMayhem that reminds me of this: medium.freecodecamp.org/…
Not saying your manager is that bad but I wish people would dial it back a few notches when engineering complicated systems with templates or other hellish things like reflection
And yes I know I'm victim to this sometimes
 
@quartata Yeah, he's certainly not anywhere near that. He's definitely not toxic like that. I'd be quicker to blame my relative noob-ness with C++ than to blame him for making things too complicated
 
8:52 PM
@DJMcMayhem Ask him for some diagrams. Maybe you'll find them easier to understand than him talking about the design
Curious what you're building that requires so many templates, though
 
Metatemplates are just inherently difficult to document and not very human readable. It depends on the scenario but if you're trying to balance doing things at compile time vs making code that another person has to work on I know which one I'll pick every time
The answer is the metatemplates because I'm a performance obsessed bastard but at least I'd shed a few tears for those I know will come after me
 
@Mego Just a quick look over a submission I wrote, it surely can be golfed down a bit and I would like to learn how to.
 
@Poke The product itself is kinda hard to describe, but the main case for our templates is hierarchical objects in a tree-like structure with polymorphism between the various different types.
 
@DJMcMayhem So you're building a tree..?
 
So for each object, you can iterate through all of it's children (and even add more children dynamically) even though each child might be another collection or a parameter or an object interface
 
8:57 PM
Sounds like the composite pattern
 
Never heard that term before, but it sounds about right from what I glanced over on wikipedia
@Poke If you're curious what the actual product is for, it's an automation tool to control this process
 
That sounds fun
i'll try to read over it when i get home
 
Feel free, but FWIW, I don't understand any of it :P
I just write code
 
Anonymous
@DJMcMayhem me too thanks
 
10:15 PM
CMQ: I need to demo recursion. What is the simplest somewhat meaningful recursive function?
 
@Adám Fibonacci Sequence.
Very simple to understand, very simple to implement.
 
@ATaco It's simplish, but ridiculously inefficient
 
@ATaco OK, that is in fact the example I had.
 
@Adám Factorial is a good example
 
I'd implement Factorial as a for loop...
 
10:19 PM
And you wouldn't with Fibonacci? :P
 
@DJMcMayhem That may actually be better.
 
Fibonacci is good because it's the naïve solution.
 
@KevinStricker Lmao.
 
But then again, I'm no teacher.
 
Accidentally clicked 'first post', lol.
 
10:20 PM
What is more known? Fibonacci or factorial?
 
@Adám I'd say a recursive function that requires a custom termination rather than "we've reached n".
 
Also, anything involving arbitrary dimensional arrays.
 
They're both widely enough known, I just dislike teaching with factorial because of how quickly it becomes way too inefficient to compute anything
 
@ATaco Uh, what?
 
Hang on I forget which algorithm
@Adám oooo! Maybe like merge-sort?
 
10:22 PM
Say, if you want to sum all the elements in the table [1,2,[3,4],5]
 
@ATaco Nah, this is APL we're talking about: +/∊
 
@DJMcMayhem Look's pretty fast to me
 
Whoops
I meant fibonacci
Factorial is fast, fibonacci is not
 
@DJMcMayhem I'll just go with factorial.
 
I agree, recursive Fibonacci is a bit rubbish
 
10:24 PM
What's the recursive method for Factorial?
 
@ATaco 0!=1
n!=(n-1)!*n
 
Also you can't do any presentation on recursion without mentioning ackermann's function.
 
You can see the ridiculous performance of recursive fibonacci here: Try it online!
Here's what I got when I ran it locally for around a minute:
24: 75025 (took 0.017999887466430664 seconds)
25: 121393 (took 0.03000020980834961 seconds)
26: 196418 (took 0.05099987983703613 seconds)
27: 317811 (took 0.07600021362304688 seconds)
28: 514229 (took 0.1249997615814209 seconds)
29: 832040 (took 0.2070000171661377 seconds)
30: 1346269 (took 0.3659999370574951 seconds)
31: 2178309 (took 0.564000129699707 seconds)
32: 3524578 (took 0.8890001773834229 seconds)
33: 5702887 (took 1.622999668121338 seconds)
34: 9227465 (took 2.6560001373291016 seconds)
 
Wow, that's awful.
 
Ironically, the time taken follows roughly the same exponential curve that fibonacci itself does
 
10:29 PM
It took 25 seconds to calculate 39! ?
 
What are your PC specs :P?
 
i7 6700hq, 8 GB ram
 
I'm doing an introductionory course on logic and was wondering what it means by 'It is really sufficient that A such that B.' and what's the difference between sufficient and really sufficient
 
It's a laptop TBF, but it's still absolutely ridonculous how slow that is
 
I got a new PC at work, 32GB 1TB SSD, Xeon 8 core 16 virtual cores... I like it ._>
My personal PC is that too though.
 
10:31 PM
My new desktop has 32GB RAM which is nice
 
@muddyfish ...so at least you got that going for you? (seriously I'm jealous, I can't use my work machine for fun :(, just reminded me of that meme)
 
40 probably takes several minutes
I'll get back to you once I have a timing for that :P
 
:P
I ran out of RAM earlier today and my entire machine ground to a halt
 
@muddyfish What did you do lmao.
 
I wonder how much faster it would be if I rewrote it in C++
 
10:33 PM
@MagicOctopusUrn I'm not sure why but I deleted a load of files from an external disk (10000+) and that literally ate everything
 
@DJMcMayhem Not by much. You need memoization.
 
Reccursive method takes twice as long in Lua.
 
@Dennis No, you need a for loop :P
 
37 only takes 9 seconds on my computer
 
@ATaco nah its twice as logn for that input
make it to 1000 instead of 300, now your at <2 times slower
 
10:36 PM
Literally the only thing that recursive fibonnaci is good for is demonstrating why algorithm choice is important to CS students
 
also memoization like Dennis said
 
(BTW, 40 finished and it took just under 40 seconds)
 
one of the classic examples
 
@muddyfish what OS
 
@DJMcMayhem Changing the algorithm is cheating. :P
 
10:38 PM
windows with a xubuntu dual boot
 
@DJMcMayhem no u need phi :P
 
I paid for no OS but it came with windows so that's nice of them
 
@DJMcMayhem you should use C it's good for absolutely everything and has nothing is wrong with it
 
C is great if you know how to write C. The problems start when you forget how to write C.
 
@Maltysen I've always thought that the way Fibonacci gets closer and closer to Phi is beautiful
I'm probably not the only one
 
10:42 PM
At long last, it exists. About time.
0
A: Showcase of Languages

ScroobleThe Lambda Calculus I can't believe this doesn't exist yet. Factiod: The lambda calculus (specifically, the untyped lambda calculus) is, according to Wikipedia, "a formal system in mathematical logic for expressing computation based on function abstraction and application using variable bindin...

 
@ATaco but how ._. it's pretty simple
 
"Oops I forgot a Null Terminator"
 
@DJMcMayhem Wonder why APL take three times as long as Python 3. – also, example of nicely written APL (not golfed)
 
@DJMcMayhem I've loved the symmetry of the fibonacci closed form
 
@ConorO'Brien So is brainflak :P
Simple =/= easy to write
 
10:43 PM
right
 
Brainfuck is simple.
 
@DJMcMayhem i mean u can calculate it with phi (but that just kicks the bucket down to having phi with high numerical prescision)
 
I don't think I posited that
 
@ConorO'Brien What is that?
nvmd, found it
I never knew that before
 
yup that's the one
 
10:44 PM
semi ninja'd
 
That would take too much brain power for me to understand right now
 
Is the update to this challenge dumb, or better:
https://codegolf.meta.stackexchange.com/a/14059/59376
LaTeX makes me happy.
 
@DJMcMayhem remeber that big phi is 1/small phi=1+small phi
 
That doesn't look like a-ta.co's mathjax generator
 
10:48 PM
@ConorO'Brien (Phi ^ n) / root(5)?
 
@DJMcMayhem nearest integer after that but yeah
 
 
Oh, so ceil((phi^n) / root(5))
 
F_n=\left[\phi^n\over\sqrt5\right] for the curious.
 
10:50 PM
codecogs renders much nicer-quality pictures
 
How is nint different than round?
 
it isn't
 
when I said "after that" I mean "after calculation"
 
@ConorO'Brien (That's an SVG by the way)
 
10:51 PM
And I thought [n] meant abs(n)
 
@DJMcMayhem abs(n) is |n|
 
Oh yeah, duh
 
@DJMcMayhem well those are vertical bars, and notation differs a lot :p
e.g. [n] doesn't always mean nearest integer
 
And then floor and ceiling are brackets with a bar on top or bottom? (I don't know how else to describe it)
 
"half brackets"? idk either
 
10:54 PM
 
⌈ ⌉ ⌊ ⌋
 
(THERE we go)
 
They're U+2308-U+230B
 
@ATaco it took me five seconds to prepare my code cogs one :P
@DJMcMayhem oh neat I didn't know they were in a range
 
Nah, this was my fault. I thought the right bracket wasn't rendering, but my window was just too small.
 
10:55 PM
@DJMcMayhem I have all four on my keyboard layout: ⌈ ⌉ ⌊ ⌋
 
Yeah, but you work with APL, so legally you must have every symbol ever mentioned on your keyboard layout. :P
 
Has anyone done a challenge on phones? en.wikipedia.org/wiki/…
 
part of me now has a strange urge to make a programmable keyboard
 
@DJMcMayhem :-D APL doesn't use and
 
I'd imagine they're nice to have regardless.
 
@ATaco I added them per Martin Ender's request.
 
@MagicOctopusUrn "This product is no longer available" :(
 
@ConorO'Brien $3000 when available ;)
 
...ew
 
A second keyboard combined with HidMacros
 
10:57 PM
@ConorO'Brien comes pre-installed with ALL keyboards for ALL languages, each key is a programmable LED screen and is mechanical.
 
@ConorO'Brien There is a "newer" version which has just a single screen under all the keys together. Unfortunately this means that the pictures are "deep" down.
 
It also comes with "mini-drivers" for certain video games like wow. It'll macro to the wow's LUA-based scripts and grab the keybinds for the game xD
 
that's impressive
 
Wonder if it would be cheaper/feasible/cheap to use low-res diode grids instead of full-colour screens on each key. Monochrome should be enough for a keyboard.
 
Lua is still my favourite langauge, although it is fairly terrible for anything production.
 
10:59 PM
@ConorO'Brien they're more like community mods, but they did crazy amount of work for that, I believe it was a kickstarter.
@ATaco it's amazing for communities.
 
I was thinking like an external keyboard with 12 or so buttons and stickers >.>
 
(Also, LUA is explicitely incorrect, it's a noun, not an Acronym)
I'm also quite fond of the Razer Orbweaver, but that's a fairly different product.
 
Is it just me or is the sandbox slower by a lot lately?
Seems like less answers.
 
It's been dying for a while now. :P
 
We should have a sandbox hackathon with prizes.
I could fund it in 2 months.
A meta post that's a meta-PPCG programming challenge. The top voted answers become the next questions on PPCG.
And the top 3 win some sort of prize.
A metaPPCG sandbox event to give incentive to writing questions?
 
11:09 PM
Wait so like a challenge designing competition?
 
Yeah.
But we post it on the PPCG main page, to give REAL rep for the challenge instead of META rep.
Or something, idk, or prizes.
 
Hm. Interesting idea.
 
Also, does this warrant a "[New Users] Do you dislike the sandbox because you get META-reputation over PPCG-reputation?" thread in meta?
 
ideally, all challenges (from low-rep users at the least) would go through the review queue with at least N (probably 4 or 5) votes to send the challenge to main
 
I don't think so personally, but you could post one. You wouldn't lose rep from downvotes because it's META-reputation ;)
Yeah having a "Send to Sandbox" close(ish) vote thing would be helpful for us
like challenges that are a good idea but too underspecified to fix right away; I hate seeing those closed and never seen again
 
11:13 PM
well at that point the person just needs to make the proper revisions and request to reopen
 
I'm a bit tired of challenges coming out of the sandbox that don't consider the feedback from the sandbox.
 
I literally see no point in "reputation" to be honest, but new users do.
When I was new I kinda did, so I could feel a part of everything lol.
@ATaco Yeah, I'm saying spotlighting them would help.
If you get 10 upvotes, you get excited and start listening to your 30 comments.
 
@ATaco That too. Or people who post in sandbox, ignore all comments and leave it there for like 2 hours, post it, get downvoted, and say the sandbox is dumb
The sandbox does have its deficiencies and some people who don't like it legitimately have reasons but I think I've seen the odd one or two who does ^
 
Of course, I'm incredibly hypocritical in regards to the sandbox, because I still refuse to use it.
 
I sometimes use it but I have enough experience here to know if one of my challenges is definitely going to be well-received. I don't think I've been wrong in guessing before :P Not sure though
 
11:18 PM
I use the sandbox a lot, and have a lot of 1-2 voted challenges I haven't posted.
I literally refuse to post a challenge without it because I can't use the search function well enough.
I mean I can, but there's always the tenured user who knows the challenge by heart because he competed 5 years ago.
 
True :P
 
3 of my challenges have dupes called out by people other than me now :D.
 
@Mr.Xcoder ARBLE, 17 bytes ~a|#reduce(a,max)
 
why didn't you add this observation to OEIS?
 
11:21 PM
(I always feel kind of mystified when I see someone from PPCG in another stack.)
CMP: What other stacks do you actively participate in / lurk in?
 
@ATaco most of my activity is on math.
 
@ATaco Try it online! - 5 bytes, {it.collect{it.max()}} - 22 bytes
 
@ATaco math, computer science, cryptography (I'm wearing a crypto.SE t-shirt I got right now)
 
@ATaco I use StackOverflow like I'd use a handkerchief... This is my main sub.
 
and stackoverflow itself
 
11:22 PM
I live here and on WorldBuilding, surprisingly. And SO's lua tag.
 
although I don't really contribute on SO anymore
 
@ATaco puzzling, SO oc, math, mathof, worldbuilding
 
it's just... the quality of questions has become too low
 
I don't contribute on math.se as much anymore, because of some bad experiences with nasty commenters
 
if I have to literally dig through piles of shit to find an interesting question I don't really want to do it
 
11:23 PM
The questions on SO's lua are terrible.
But I like to answer them, to help people learn the language.
 
there's one thing you absolutely need to know about SO
 
@EricTressler yeah, I stopped participating there as well for the same reason. it's a help site, not a "why didn't you already know this" site. At least, that's my most memorable experience
 
There's a ton of people just posting homework questions all over SO now, either that, or using it to do their jobs.
 
click this
 
I found one of my coworkers SO accounts and he has questions for the past 13 things we've given him XD.
 
11:25 PM
Not everyone knows what an If statement is, but instead of ignoring them, we should point them to sources to help them learn.
 
and suddenly
 
@ConorO'Brien mine was different; basically I posted a good answer to something, and someone decided it wasn't a valid argument, and it left a sour taste in my mouth. It only happened twice, but it was extremely negative
 
'ignored tags' appears
ignore every shit tag you can find
top contenders
 
'poppoularity-contest'
 
WorldBuilding on the other hand is great fun
 
11:26 PM
@MagicOctopusUrn I have a friend who literally thinks SO is a help site. I tried my best to dissuade him from posting a question, but he nonetheless did, and was ticked that "those people didn't help me for ~~~~"
 
php, wordpress, mysql
 
@EricTressler ouch. that's worse :/
 
any question with those tags on it
is 99% guaranteed to be not worth the internet bandwidth used to transmit it
 
@ConorO'Brien It is a help site, if you are smart... My coworker is just smart enough to not piss them off.
 
@MagicOctopusUrn well a hw help site but yeah
 
11:28 PM
I had a question on MO that got a really nice answer by Bill Thurston, which was maybe the high point of my stackexchange experience
 
@ConorO'Brien Oh, yeah, definitely not... Work-related questions about practical stuff usually goes unnoticed as "HALP, I NEED U HALP HW PLZ".
 
@EricTressler so there is cstheory.SE compare to cs.SE
which is like mathoverflow compared to math.se but not as extreme
 
@EricTressler I've lost whatever high regard I held for the SE system :P it's nice when you have a popular question that gets a good answer... but other than that, it's mediocre at best
 
@orlp oh, yeah. I see Peter Shor on there a lot
 
@EricTressler damn you ninja'd me
I posted one question there
27
Q: What is the minimum number of bits required to store a sudoku puzzle?

orlpNote: This is about the standard 9x9 sudoku puzzle. The solution only has to support solved, legal puzzles. So a solution doesn't need to support empty cells and can rely on the properties of a solved sudoku puzzle. I was wondering this, but I couldn't think of an answer that I was content with....

and peter himself commented he thought it'd be a good programming contest :)
that felt pretty good :P
 
11:30 PM
@orlp yeah, he seems nice. Noam Elkies is another major contributor on the math side, for things similar to that question you just linked.
 
what also feels surreal to me is that I could literally ping terry tao (arguably the greatest mathematician alive) and he'd get a notification
I'm not going to
but the fact that I could feels really surreal
the internet is awesome
 
EDIT... TIDE :-D
 
@EricTressler I saw a video on this problem recently that had a really simple construction
 
11:32 PM
whoops
 
@EricTressler yes
 
@orlp It's not a pet problem of mine, but if you find the video again I'd like to see it
 
@DJMcMayhem if you've coded it right, it takes exactly the same curve. Since your naïve algorithm has F(n) = F(n-1) + F(n-1) we have T(F(n)) = T(F(n-1)) + T(F(n-2)) therefore T(F(n)) is proportional to F(n)
 
black to move, white wins in omega turns
the video is okay but with all pbs math videos somewhat basic
 
oh, right. Yeah, I've watched most of them. 3 blue 1 brown is also good and a little bit more advanced
 
11:35 PM
@EricTressler I really love PBS spacetime though
 
I've also watched most of PBS's other videos too, as background noise
 
although I'm sure that an actual physicist would think the same of the level of discourse as I think about the maths ones
does that make me 'an actual mathematician'? who knows :D
 
@orlp I would generally draw the line at "produces original research, even rarely"... but I haven't thought about it very much. It's not that useful to draw the line, I guess.
 
@Neil Well yeah, that makes sense. But the timing is inherently noisy because I'm measuring seconds not operations, and I'm running it on a real machine that has an os and other programs running too
 
@EricTressler I have some contributions on OEIS
 
11:38 PM
cool. I don't think I ever put anything on there
 
OEIS is to me one of the coolest sites out there
it's just such a powerful tool
 
And such a pain to implement for some of them :D
 
I have a paper where we found the only known value of a function, but not 2 values, so it's not a great sequence... "4"
 
@EricTressler I don't know what I'd classify myself as
I'm not a full-fledged computer scientist
in the sense that most questions on cstheory.stackexchange.com are above my head
actually
not most
 
I wouldn't worry about it. Most questions on MO are over my head (or beside it)
 
11:41 PM
it's just when stuff gets too deep into graphs, automata, stuff like that I lose interest
and I know bits of math
I mainly like discrete stuff
crypto, binary twiddling, optimization, etc
I guess at heart I'm an engineer
 
are you in school?
 
I like building things, algorithms, cool solutions, puzzles
@EricTressler as context, I'm 22, undergraduate in CS
but I also have real contributions, for example github.com/orlp/pdqsort
 
You could write a paper on that, if you can prove your claims
 
Have you submitted it anywhere, or is it still under revision?
 
11:46 PM
@EricTressler the claims are substantial enough that it's now the default sorting algorithm in the rust programming language :)
8
@EricTressler I'm looking for an appropriate place to submit
I asked my university for help but no one in my faculty really seems to know
 
oh; I assume your school is focused on teaching and not on research, then?
 
@EricTressler I don't know, it's Leiden university
 
I'm not familiar with the CS literature. My best advice is to look at CS journals until you find one publishing similar things
yeah, I noticed, and I would have guessed that all of your professors are active researchers.
 
it's both I guess
it's definitely not strictly teaching
 
if you had written a math paper, I could be of more assistance, but definitely keep at it. good luck!
I should go take care of things around my apartment now. o/
 
11:51 PM
@EricTressler you should come around more often :)
 
@orlp I probably will, at least for some weeks. I go in cycles... anyway, have a good day
 
00:00 - 20:0020:00 - 00:00

« first day (2452 days earlier)      last day (2392 days later) »