« first day (1864 days earlier)      last day (3083 days later) » 

10:01 AM
@thecoshman would you still call it simulation if the game uses newtonian physics?
(if they did everything else right)
 
@orlp it's a bit of a grey area really
 
Is having a variable timestep bad for physics?
 
@ThePhD you mean calling your physics engine with different deltaTs?
 
Yeah.
 
@sehe I have a feeling you end up in nerd wars more often than I do :)
 
10:03 AM
if your game is networked the answer is 100% yes
if not it depends
 
I think emulation is the better term to use, as games only care about it looking correct. The fact it has to simulate is an implementation detail I think.
 
you might get degenerate physics if your computer is too fast
 
@ThePhD it's better to aim to have the physics engine stick to a consistent dT, but you want that to be as small as possible.
 
@JohanLarsson I don't want to waste my time trying to understand what people mean if they're speaking sloppily. You'll recognize this from the "Reading SO questions" part of my streaming
 
I guess what I should do is probably define an acceptable physics range, like 5 ms to 20 ms, and then re-rerun the physics step as many times as I can to match the visual simulation.
 
10:04 AM
@orlp I think it's better to accept that is a likely thing. You don't really gain much from variable dT
@ThePhD yes, you have physics work in say 5ms steps, and after each frame is rendered, you do as many physics steps as it takes to get up to the next frame.
 
@sehe I always insta close huge questions, knee jerk.
 
Though I am not sure how to go about handling input in that case.
 
@thecoshman Yeah, input has still been fuzzy for me.
 
ITT explaining the word "chochotte" to my chinese coworker
 
basically the only negative of fixed timestep
 
10:06 AM
@JohanLarsson it's not about huge question. More often than not, the tiny questions are wildy underspecified / vague (that's also what bothered your "comment warrior", I guess)
 
Let's say you give you're physics 10ms, but it only takes (on average) 5ms to compute, should you wait till the end of the 10ms window before you start doing physics again?
 
is that you must fix it on a timestep that any computer you're targetting can run
if your timestep is set at 10ms but a computer you're targetting takes 20ms to run it
you're fucked
 
@orlp unless you can handle time dilation like in EVE
 
@thecoshman I'm unfamiliar with the technique
 
ofc, you then need to sync that time dilation so that all players suffer/gain from it int he same waay
 
10:07 AM
a variable timestep can gracefully degrade to any computer
 
@sehe It felt clear to me when I wrote it :) Also pretty sure comment guy does not understand the problem.
 
I need to read up on Input. I don't know how to do it in simulations.
 
The most important realization to make is that your processing is a function of time in most things that game devs care about, not framerate. The second one is precision issues and unintentional singularities. In our case, the line is actually blurred between what game devs consider physics and rendering. All of our light transfer calculations are done in accordance with EM theory and expressed in terms of radiometric quantities.
 
@JohanLarsson subjectivity is a bitch... And maybe he doesn't understand because the question isn't clear. (devil's adv)
 
@orlp your physics step is Xms, if it takes 1.5X to compute, then you say run a physics step every 2X, effectively slowing the game down in half, but giving everything time to complete correctly.
 
10:09 AM
You are probably both correct, I added some noise to the question.
 
That burn
 
Oh, right.
I still have a concert report to write.
 
@ThePhD I think most OSes will allow you all the user input to queue up, so just at the start of each physics step, you just poll for all the input since the last one, and feed that into the simulation.
Then you have to consider the network delay as well
 
Well, I'm not making networked anything.
For a very long time.
Because fuck the internets.
 
Networked physics are shit, no matter how you slice it.
 
10:11 AM
@ThePhD But will you join my network <3 <3 :)
 
So maybe physics step N you get input, N+1 you send input to everyone, N+2 you use that input. So you physics step is using input from 2 timesteps ago
 
@TonyTheLion Anytime, babycakes. <3
 
@ThePhD :D
 
jesus get a room you two
 
we have a room, this one <3
 
10:12 AM
I guess if you have a dedicated server doing the physics, then it only needs to use N-1 input
 
@thecoshman I think in my case (raw input and the like) that is how it works, yes. I guess the input processing step should be done juuuust before the physics. Probably sounds like the best way to do it.
Whoa, that's weird.
 
clients will just send their input as fast as possible, and the central server will process it all in the next step
@ThePhD I think so
It should be very quick to map user interaction to physics inputs
 
Annd I can't take screenshots.
Why is puush so sloppy.
 
why use puush
such shit tool
 
I don't know much else.
There's the tool Rapptz made which is pretty nice.
I haven't heard of others though.
Any suggestions? I really need to just be able to hit a (complicated) global shortcut and take a snapshot of a specifc box area.
 
10:15 AM
there's a ton
there's just one feature imgur should add to their API
you should be able to get an image URL immediately - while uploading
 
puush does that
Or, er. Actually, after its uploaded.
 
Hey, is there an algorithm to find the longest everincreasing key value pairs in a map such that both are strictly bigger than the one in their back and strictly smaller than those in the back
Front*
4
 
@ThePhD it does neither
 
@MikhailTal yes
 
it doesn't give an url while uploading
nor does it upload to imgur
 
10:17 AM
Oh, right. To imgur.
 
@MikhailTal could you rephrase that?
 
@chmod666telkitty link please?
 
you have reached your question limit
 
What dont you understand @orlp
Im on phone
Let me try
 
@MikhailTal I mean
is this an ordered map?
 
10:19 AM
Not necesarily
It can be ordered
 
then how can you talk about the ones before/after it?
if it's not ordered
 
Say you have
[(2,2),(1,1),(2,1)]
 
A sphere with edges.
 
@orlp As a quick question, do you happen to know one which takes videos as well?
 
Longest is 2
 
10:20 AM
@ThePhD no
 
q_q
 
@MikhailTal but that is ordered
(2,2) comes before (1,1) comes before (2, 1)
 
@ThePhD you can use win+prtsc to do just a single window... or maybe it's ctrl+prtsc
 
not sorted, but it is ordered
an unordered map is for example a hash map
 
Im messing up terms aparently
:p
 
10:21 AM
I would rephrase your question
and drop the map entirely
 
Please do
Ok
 
which should also immediately answer your question
 
2d array
 
@MikhailTal this is not the place to ask such a question
 
no
 
10:22 AM
Go to the main SO site
 
You have an array of two-tuples
 
Okay
 
where a < b is defined as a[0] < b[0] && a[1] < b[1]
 
@thecoshman Nah, I just want little squares sometimes.
Jing looks useful.
 
10:22 AM
now your question simply is longest increasing subsequence :)
and the answer is simply an algorithm that solves longest increasing subsequence :)
 
@ThePhD 'snipping tool' is rather nice imo
 
Yeah, but the snipping tool doesn't have the ezpz global shortcut I can use.
 
it doesn't directly support global shortcut, and frankly imo it shouldn't.
 
But it shooould.
 
vOv use auto hot key to do that
 
10:24 AM
Eww, auto hot key.
 
snipping tool is nice because you just need to start the program, and it's directly into capture mode
 
@ThePhD autohotkey is amazing
the language it uses is meh
 
@ThePhD what? it's great!
 
but it's a good tool and it works
 
@orlp cobbled together crap sure, but it works a treat
 
10:24 AM
@orlp
How?
 
@MikhailTal yes, that's my name
 
I know it works, but the language and everything is like an impenetrable rock.
 
Isnt thatbonly for 1d arrays?
 
@MikhailTal How what?
 
10:25 AM
16 hours ago, by Elyse
Thank you for choosing Lounge<C++>. Have a look at The Rules and enjoy your stay!
 
@MikhailTal but you have an 1d array
you have an 1d array of pairs
where a < b simply is a[0] < b[0] && a[1] < b[1]
 
@orlp sop engaging. @MikhailTal go to the main site. @TonyTheLion get your boot ready please.
 
e.g. std::vector<std::pair<int, int>>
 
2
Q: Which sources can I use to study botany and horticulture?

usumdelphiniI refer with this question to those among you who have a strong background and work in fields like: botanics, horticulture, dendrology, etc. I would like to start building a solid preparation, both practical and theoretical, in horticulture, with a strong scientific background. I am a physicist...

 
@thecoshman "It's cheaper"?
 
10:26 AM
@orlp that's not how you compare a pair of numbers
 
@StackedCrooked it is according to @MikhailTal requirements
@StackedCrooked it's a transform to solve his problem using longest increasing substring
 
@orlp "And lets you bodge". It's sarcastic.
 
> Use K&R-derived layout
> Note: In the context of C++, this style is often called "Stroustrup".
 
@orlp dude, it's a fucking 17min video, what the fuck are you reference?
 
10:27 AM
TIL
 
@thecoshman like the second sentence
 
@orlp I watched that when it first came out, and not since.
 
he said that he used Windows because it was cheaper
apparently $X < $0
 
@orlp time costs
 
lol
Don't go all Linux apologetic.
It's sarcastic.
 
10:29 AM
Orlp is the cinch of missing the obvious :/
 
I'm terrible at detecting sarcasm
 
@orlp Ok.
 
@orlp conclusion: Windows' value is less than zero.
 
@Morwenn I kinda like my tool as well because it learns over time :)
@Mr.kbok is it $-2 or -$2
 
@R.MartinhoFernandes me? I'm not getting apologetic. If you don't know linux, there is a big cost (in time) with learning it. He knows how to use the tools he needs to use to get it to work on Windows, so he uses Windows
 
10:30 AM
I'm pretty sure he's joking and didn't mean that.
 
maybe
 
When I tried to write a similar tool, I first defined a JSON-based format that described what a header guaranteed to provide and in which namespace. You could also give it a list of header that were guaranteed to be included.
 
He makes it quite clear at some point that he simply has no interest in using Linux, because "No"
 
@sehe you should learn some wpf, you have unlimited quota (for a while :)
 
@Morwenn my tool has wildcards to track certain namespaces
e.g. std::*
 
10:31 AM
@orlp ($2)
 
@orlp I know, it's documented :p
 
then whenever it finds a symbol in that namespace it doesn't know which header it comes from it asks you
it's kinda cute
it learns
 
Is there a Boost part/library that helps with parameter packs?
 
@wilx Hahahaha you're fucked.
 
@wilx you have a named parameter library, but I never seen anyone use it.
 
10:32 AM
I am thinking of stuff like getting head and rest of parameter pack, etc.
 
Boost.ParameterPack of course
 
oh this, I dunno
 
@Mr.kbok I mean template type parameter packs, Args... stuff.
 
@orlp He explained in a comment below the video that the way to get the thing to work on Linux was really "download this single bit of obscure code and recompile it to work on a single distro", whereas the Windows experience was "take this old piece of code that works because backwards compatibility".
So, I think that was the real reason. (I didn't watch the video, just scrolled to the comments like the scrub I am.)
 
Wow, Shift adds ZWJ haha.
 
10:36 AM
@JohanLarsson they're never unlimited
Job search is time consuming
 
for a while
 
Some jobs oppts weird me out: splendo.nl
 
@sehe Well, you should spend less time on overkill overkill answers. :D
 
Dat wink in the promo vid. Ew
 
@orlp On the other hand, tools like that will become a bit more obsolete with modules. And IDE integration of import checks will probably be easier.
 
10:37 AM
@wilx I know. Which is why I'm not currently. And had this tab closed :0
 
@Morwenn don't think IDEs have the right function
they will report missing headers
but not superfluous headers
 
@sehe ...for last 5 minutes. Am I right or am I right?
 
@sehe Shirt fitness tracking... kinky.
 
also even though on this compiler #include <vector> might also pull in <string>, that might fail on another compiler
 
Is there any better tool for managing Window env variables? The normal GUI is just so clunky to use.
 
10:39 AM
@sehe Oh god I just saw the wink. Grrooossss.
 
@orlp What I mean is that a module tells what it exports anyway, so you just have to check that every component in the current TU in exported by one of the modules. It makes detecting superfluous and missing modules far easier.
 
not for generic environment variables though
but I assumed you meant path
@Morwenn ah, yes
 
It guards against transitive imports.
 
@orlp not just path, but all the env varaibles
 
10:41 AM
@thecoshman then I'm afraid I don't have anything for you
 
@orlp So... does UPX pack the executable into a... smaller executable?
 
@ThePhD correct
 
@orlp well I like to have PATH be a combination of things like %git_path% %svn_path% etc.
 
So you can still just run it?
 
@ThePhD correct
 
10:41 AM
Kinky.
 
else it's just one ungodly long string
 
I wonder how it does that.
 
@ThePhD if your executable is large it can even make it load faster
because disk I/O > decompression time
 
@orlp that tool does make it easier to work with though
 
So it just takes your executable and bootstraps it with its a decompression wrapper while packing the wrapped version of itself as the new executable?
That's pretty neat.
 
10:47 AM
@ThePhD yes
holy shit
6
Q: Why is home voltage value higher during the night?

GoatZeroI have been monitoring the voltage in my own home ( Mexico 120v 60Hz ) I have been graphing the values every minute and im starting to notice that during the morning voltage gets up to 127 and during the day (4pm) it can go as low as 118v why does this happen? The effect is quite similar to whe...

the font in electronics.SE is so ugly
 
so you just run your exe through that prior to delivery, and it's magically smaller? nice
 
@thecoshman yes
only negative is that it might cause false positives in virus scanners
 
@thecoshman this guy is annoying
 
@orlp std::move = <utility> | <algorithm> would be neat in your utility. Or std::move(1) = <utility> and std::move(3) = <algorithm>.
 
well, there's also other negatives in that it won't work with some details
 
10:49 AM
UPX is not very relevant anymore
 
Man, the 950 Pro is looking so tempting.
 
@CatPlusPlus that is also true
but it's still cool
 
@CatPlusPlus How come?
 
@Morwenn the latter is impossible with my tool
 
Neither storage nor bandwidth are a problem anymore
 
10:50 AM
Are optimized executables just compressed / packed better than before?
 
the former would be possible but I won't do it unless I also implement minimum spanning subset
 
Oh.
 
@CatPlusPlus it can make an application start faster though
if your binary is like 100mb for some reason
 
@orlp Yeah, Code::Blocks header fixup plug-in has exactly the same shortcoming. Can't handle overloads defined in different headers.
 
It won't be noticeable
Executable images are not read in entirety on start
 
10:51 AM
@orlp the UXP tool, or the processed exes?
 
@thecoshman the processed exes
 
@thecoshman The executables
It's popular theme in malware to hide malicious patterns from naive scanners
 
oh, well that's a rather good reason to not use it then
 
in general I'd recommend not to UPX your executables
but I believe that UPX is still a tool you should be aware of
so I listed it there
 
I prefer JPEG
 
10:54 AM
@GregorMcGregor Joyful Portable Executable Grinding
 
Plus last release was 2 years ago and 64-bit support is still experimental so there's that
 
when you live on the internet, finding out your living habits seems easy ...
 
JPEG supports 64 bit?
 
Yes but only 59 are usable
 
PNG is better, it's useful for network stuff
 
10:58 AM
I'm partial to RTF
 
you should update to RTFM
 
ITS A PRANK BRO
 
RTF is only for high income individuals though
and that's p racist imo
 

« first day (1864 days earlier)      last day (3083 days later) »