« first day (1908 days earlier)      last day (3232 days later) » 

22:00
N-body problem?
@CᴏɴᴏʀO'Bʀɪᴇɴ for closed form solutions
idts
only a generalization IIRC
The N-body problem refers to knowing where bodies will be without calculating each step along the way.
It's been solved for two bodies (ellipses) and three bodies where one of them has a negligible mass.
begstar plz
22:02
no
@QPaysTaxes if-elif-else.
@QPaysTaxes dicts
@QPaysTaxes except the workarounds are better
Yeah, there's little point to having a switch statement when you've got these two good/better ways of doing it.
What are you trying to do?
@QPaysTaxes wait why are dicts bad?
what is a "heavy function"
Err, how is saving a value to a variable bad? If the entire point of a different keyword is that it helps stop you from creating one variable then I'd be suspicious... :P
22:07
@QPaysTaxes You can make each "branch" of a dict be a function definition, and then just pick the right one appropriately and run it.
^
the reason java et al. have switch case is because functions aren't first-class objects
@QPaysTaxes Not in this case it isn't.
@QPaysTaxes a switch case is basically a hash map
@QPaysTaxes the point is the reverse, why should there be a switch statment when you can implement it using if/else or a dictionary depending on what you want to use it for? Python is based on the idea that there should only be one sensible way to do something, no synonyms please :P
@QPaysTaxes no, even in its implementation, its a hash map
22:10
>>> D = {0: lambda x:x//2, 1: lambda x:3*x+1}

>>> n = 79184
>>> while n != 1: print(n); n = D[n%2](n)

79184
39592
<snip>
2
no, but that's the idea behind it, that's why you aren't using a if,else-if
but in python where hash-maps are so easy, there's no need for them
@QPaysTaxes this is why:
if a:
    b
else:
    if c:
        d
    else:
        if e:
            f
        else:
            ...
except Python doesn't have goto
@QPaysTaxes Yeah, I just entirely disagree with you, sorry, I don't think switch is necessary at all in Python.
Pfft, why have both while and for loops? :P
@QPaysTaxes The point is that goto is bad often because it is too general, if your jumping constructs are more rigid your code is likely to be better. This isn't always the case, but for Python I think its just as correct not to include goto as it it to not include switch.
22:17
@Downgoat @quartata tf2?
@QPaysTaxes you can't prove a point by counterexample if your counterexamples aren't valid ;)
I think it is so long as it is 1-1 :P
Here are what I see as the different use-cases of a switch statement: 1) different cases do different things - trivially replicated by if-elif-else; 2) some cases do the same thing - trivially replicated by if x in [a,b,c,...]; 3) some cases do the same thing, but some of those do a little extra - trivially replicated by putting an if conditional inside one of the outer if's branches, either before or after the common segment.
@QPaysTaxes You can define functions elsewhere and just put the name in the dict.
Like def foo(): ... and then D = {key: foo}.
Seriously, though, what are you trying to do? This sounds like the X-Y problem.
I used if conditionals for Minkolang.
@QPaysTaxes pyth uses dicts
Seriously uses dicts as well.
22:30
and VTC even the one written in js (which has switch-case)
I don't see what's wrong (nor workaroundy) with a chain of ifs/elifs
Hoi!
Lol, which side are you on?
What are the stupid things? And do you mean 2 or 3? Cause 2 definitely has some stupid things, and 3 fixed most of them.
@QPaysTaxes what's the problem with writing functions outside of a dict?
Woah. Strawpoll looks different!
Site culture question: Is it frowned upon to come up with a code-golf answer before you have posted the question?
Do you mean in the sandbox or something?
22:45
No, I mean come up with a challenge, answer it and then post the challenge.
On my own challenge.
Nothing wrong with that, people do it all the time
Usually they say their answer won't win or something but I don't think it's a big deal.
Oh, you mean like even if their answer is the shortest?
Yeah, but again, I don't think it would really matter unless you made the question explicitly so that the language you used would be nearly unbeatable.
@EasterlyIrk sure one second
@xnor thanks by the way for finding that proof, I had seen something like that which prompted my question but then I couldn't find it again >_<
23:00
@Dennis Please pull from MATL's repo when you have time
@CᴏɴᴏʀO'Bʀɪᴇɴ ??
@quartata to late now, but ask @CᴏɴᴏʀO'Bʀɪᴇɴ about him
i can't do any more idt
Any mac people help with this?
23:17
Wait, do you still need help? You answered it.
yeah
I need a cause, and maybe a better solution than turning off the security settings almost entirely.
@EasterlyIrk are you running the latest version of OS X?
yeah
:(
i hate it bad
it killed all my code entirely
@EasterlyIrk how? why?
like 4 years of python and js mainly, gone.
@Downgoat idk
genius bar dude said the update freaked out at 3rd party software.
AND IT KILLED MY BELOVED .BASH_PROFILE
23:26
@EasterlyIrk D:
@EasterlyIrk genius bar people aren't very "genius"... My computer had overheated and his solution was to reformat
@QPaysTaxes What card was it?
friends wifi card exploded in-computer
@QPaysTaxes non-mac user!!!!
HUGS OF DEATH DOOM AND DESTRUCTION
Okay. I kindof totally nerd out over GPUs. :P
23:29
@QPaysTaxes D:
i think wrong message star givers
The 5XX series. Damn, that's ancient.
try the one below it that reads "DOOM"
@DrGreenEggsandHamDJ rofl
I love my R9 290 to pieces.
#graphicscardnerdsniping
/s
Although it has a really high tdp.
23:30
@DrGreenEggsandHamDJ are 650Ms ancient?
Wikipedia says 2012. So not ancient but a little old. ;)
2012?!?! brb buying new computer
Lol, my work computer has a GT 610.
> cutting-edge NVIDIA GeForce GT 650M
a 4 year GPU is definitely cutting edge
Although, it also has an i5 and a SSD, so it's not too bad.
@QPaysTaxes "Conversoin"?
23:33
@DrGreenEggsandHamDJ i5 is good?
AMD Radeon R9 M370X?
is that good?
@Downgoat For a non-gaming computer, yes.
@DrGreenEggsandHamDJ ^^ pls review
[HardwareReview.SE]
@EasterlyIrk What do you use it for? Laptop or desktop?
23:34
@DrGreenEggsandHamDJ Can a i5 run TF2 and various flash games?
oh @Downgoat tf2 hates me
i ran out of memory 4 times in a row
@Downgoat No, but it can almost run QWOP and 2048.
to fix now i have crappy framerates and display options
@DrGreenEggsandHamDJ is that a joke...
@EasterlyIrk oh, I just run TF2 at lowest settings and some weird startup code and it runs decent
@Downgoat not the weird startup code, but the lowest settings worked.
23:35
Yes. I had an i5 4440 in my gaming computer for the longest time, and the only game it couldn't handle was Wolfenstein TNO.
no
pls no
I have privacy and who says i can't have socks.
@EasterlyIrk An R9 370 is pretty good unless you're doing something very GPU specific. E.g. gaming, bitcoin mining, rendering, whatever.
@DrGreenEggsandHamDJ what is the difference between a M380 M390 and M395
@DrGreenEggsandHamDJ okai
@Downgoat Uh....
The numbers? ¯\_(ツ)_/¯
23:39
the number at the end
ninja'ed
but mine didn't have messed up shrugs
> messed up
@DrGreenEggsandHamDJ is there a big difference between 2GB video ram and 4GB video ram
There is approximately a 2 times difference.
But in all seriousness, it really depends on what you use it for.
@DrGreenEggsandHamDJ I will use if for renderings, PPCG, and running gravitational simulators.
23:41
^
@Downgoat I guess it really depends on how much you are willing to justify spending.
@DrGreenEggsandHamDJ I do not want to spend a foreleg and a hind leg,
chr(ascii_value)
"\x1B"
And you could also do "\x1B"
@Downgoat And you're going with apple? :P
Weird, I can't find any benchmarks on the r9 m380/90/95 series.
23:47
@DrGreenEggsandHamDJ apple is worth it.
He doesn't think a epic graphics card is.
It would probably be worth a hardware recommendations.se post.
Apple is nice, I just prefer my own DIY desktop.
What os then?
windows or a linux distro?
Both. I have a dual boot of windows 10 and Ubuntu.
Although I use windows a lot more.
Right now, I'm on a crappy laptop I stole from my dad.
With ubuntu + i3wm on it.
23:50
@El'endiaStarman minkolang isn't on your resumé?
@EasterlyIrk @Downgoat @CᴏɴᴏʀO'Bʀɪᴇɴ By the way, you guys should turn off viewmodels and get a custom hud. I don't know how anyone plays with the default hud.
I have a custom HUD
which?
@EasterlyIrk résumé has two accents :P
Grr, why is V being stupid?
23:51
@Doorknob insert relevant xkcd
@quartata oooh
@Doorknob whatever
Lol, I don't remember that one.
It was a recent one
23:53
@quartata how to get custom HUD
I have the xkcd app on my phone, so I get notified whenever Randall posts a new one.
I use Kai Hud but it hasn't been updated in a while. TeamFortressTV Hud is also very good but hasn't been updated in ages
@EasterlyIrk they usually come with installation instructions. pick one first and then I can walk you through it if you need help
bladeHud is a very popular one
@quartata google is my friend
also turn on hitsounds and damage numbers becaus the game is literally unplayable without them
23:57
the damage numbers being the things above people's heads when you shoot them?
yeah. they might be on by default now
they are
and hitsounds for you or hitting other people?
hitsounds are little noises played whenever you hit someone.
the default one is nice although there are custom ones
@El'endiaStarman arbychess for mac pls.
i am pretty sure hitsounds are not on by default so go turn those on
23:59
@LuisMendo I just got home. Pulled.
Having a cold sucks.
I'm miserable.

« first day (1908 days earlier)      last day (3232 days later) »