« first day (735 days earlier)      last day (4228 days later) » 

12:00 PM
Oh how fun. My comment got removed.
Fucking idiots.
 
fuck, man
no matter how long I sleep for, I'm still tired when I wake up
 
@daknøk FTR, comments are auto-removed without mod intervention if they garner enough flags.
@DeadMG Spoken like a true slacker ;)
 
What has the world come to, when you get Enlightened badges for pointing out how to copy and paste from a terminal...
In fairness, that was over ~1.5 years
 
eh
there's nothing interesting about that fact
it's a simple problem, at least ten people had it
 
@R.MartinhoFernandes If people flag a comment because it says “horrible piece of shit,” those people shouldn’t be on the internet in the first place.
 
12:11 PM
@DeadMG but (a) those people couldn't figure out a way on their own (b) they took the effort to search for it (hard to google this, IMO) (c) they landed on SO (d) they upvoted my particular answer. This significantly reduces the volumes at each step of the way
 
right, but you're only talking about ten people in 18 months
 
sbi
@daknøk We should really make a question "Which of those <insert two way of pointless micro-optimization> is faster", provide an answer "write whatever is easier to read, then profile...", and turn that FAQ. We could close all the Pointless Optimization Questions as dupes of that.
Well, slacked enough for the day. RL, here I come...
 
My mouse pointer was high and I had no idea why. Turned out my trackpad was wet.
@DeadMG done.
 
ty
 
12:22 PM
@daknøk hey, you are the sublime expert right?
 
@bamboon I wouldn’t say expert. More like regular user and vexing fanboy/advertiser.
 
argh
why isn't 3 reopen votes enough/
 
Because Stack Exchange was designed by communists.
There should be “flag for spam,” “flag for CP” and nothing else.
 
@daknøk ok, I find it kinda cool, too. which plugins or such can you recommend?
 
@bamboon me being both a Sublime Text and clang fanboy, SublimeClang. I haven’t used any other plug-ins.
 
12:29 PM
wow
 
@DeadMG: Look moron, I said syntax in the post. That is what I'm concerned about. I'd rather program in a native C# than a native C++ even if they have the exact same functional behavior just as managed C++ does with managed C#. Anyways, I see there is no use in having an intellectual discussion with idiots. Bye. — Archival 31 secs ago
 
that Archival guy is an idiot
yeah
here was me supporting his question and trying to get it reopened
oh well
 
Still at some neophyte level of understanding, where syntax is all that matters.
 
Can I award myself a bounty on someone else's question?
 
No.
You can never award bounties to yourself.
 
"C# to have a much more logical and elegant syntax than C++", luckily it's a matter of taste ;) — Jack 21 mins ago
 
^ 75% tax. they must be out of their collective minds
 
I find it really surprising that some can disagree with that statement.
 
@Cheersandhth.-Alf those people are going to move to Germany, Spain and Belgium.
 
I don't think it's a matter of taste at all.
 
12:39 PM
yeah, or just, hire good lawyers and accountants
 
@daknøk Spain?
 
You know, the country beneath France.
 
Why would they go to Spain? Spain is going down the drain.
 
Oh yeah didn’t think of that.
If I had a lot of money, and I’d have to pay 75% tax I’d instantly move to a country with a normal government.
 
@Cheersandhth.-Alf I like this idea that you have to pay for being successful.
 
12:42 PM
I don’t like this idea that you get punished for being successful.
 
howla
 
@R.MartinhoFernandes yeah, you have to pay them lawyers and accountants
 
My charger for my macbook is broken, and being a male model travelling the world I now have to write all my posts on SO using my blackberry... VLARGH
 
Let the Apple rants come.
 
@refp why don't you post some pics for cicada and johannes
 
12:43 PM
Not that another brand’s chargers never break.
 
Not only is it a pain to write code-snippets, but it's also painfully slow even though I'm an experienced blackberry typer :-/
@Cheersandhth.-Alf she doesn't like me very much (if I recall correctly), might even have my on ignore since I used to tease her all the time
 
If I want to check if the user is root, I should use ::getuid() == 0, right?
 
@daknøk no rants coming for me, the charger broke because of me.. But if you'd like we could talk about how iphones suck and blackberries are superior
 
@refp But that's all she does around here.
 
12:46 PM
@refp BlackBerries are the worst phones ever.
I don’t say iPhones are good either.
Both suck since both aren’t Nokia.
Phones that break when dropped suck.
Nokias break the floor, but that’s a different story.
 
And especially when phones are 8mm thick, which doesn’t make any sense.
A phone that’s 1.3cm thick is perfectly fine too, and less likely to fall out of your hands.
 
@daknøk geteuid if you wanna be able for users to use sudo
 
I don’t understand why they invest so much time in making phones so thin.
 
@daknøk you gonna get a new lumia?
@daknøk because it looks cool?
 
@bamboon it runs Windows, are you crazy?
 
@daknøk Probably because they can.
 
I have a Nokia C3 and it’s indestructible and thick.
 
@daknøk my blackberry bold 9900 hasn't broken yet, and I've dropped it quite many times. Stop thinking that every phone that isn't a nokia is an iphone
 
^ it's like a bulge around the screen
 
12:50 PM
@daknøk WP8 is king
 
@bamboon WP8 is Windows so it sucks.
Unless Microsoft switched to a UNIX-like system, but they didn’t.
 
@daknøk ^^
 
Maybe I should hit the gym now, it's 9 am on a saturday... Sometime getting paid for your body (like a prostitute) sucks
 
Why do you guys like to drop your phones so much? Protip: they are not meant to bounce back up like basketballs.
6
 
@refp just whenever they are root. What’s the difference between getuid and geteuid?
 
12:53 PM
An e.
 
int is_root() {
    return getuid() == 0; // I do this now and it works even with sudo.
}
 
@daknøk getuid will return the true iof the user, geteuid will return who the effective user is. If my uid is 10 and I do ”sudo your_app” euid will be 0 but getuid will still return 10
@daknøk hmm... That suprises me
 
@refp Not on my machine. I’ll just check both getuid() == 0 || geteuid() == 0.
It’s for the user’s information anyway.
 
Your machine is a Mac, right?
 
12:55 PM
Yes.
OS X 10.8.2.
 
Also; the snippet definetily shouldn't work if using suid-bit
 
@daknøk 75% should be normal.
 
xnu-2050.18.24~1/RELEASE_X86_64 x86_64
@DeadMG if everybody has to pay 75% it’s fine to me.
@refp What about this?
int is_root() {
    return getuid() == 0 || geteuid() == 0;
}
 
@daknøk Unless you pay over 100% tax, then you still get rewarded for being successful.
 
What if you start your application as root and use seteuid to change into another user?
@daknøk ^
 
12:58 PM
whereas right now, it's not functioning, as in
the rich are getting richer but society in general is not
 
Oh fcuk, politics in here again...
2
 
@refp is_root returns 1.
 
@daknøk ... Exactly, is that the functionality your are looking for?
 
@refp I don’t know what seteuid does. Is my application still able to wipe the entire filesystem after seteuid(501) when started as root?
 
I'm gonna have some breakfast, take care peepz
 
1:01 PM
Später.
 
1:30 PM
Stop shutting up.
 
wat
 
1:50 PM
@DeadMG Typical beginner fault, that kind of thinking ;)
 
what, you think the current situation is "Society is functioning fine"?
 
I don't know about that. Only saying that the "the rich are getting richer but society in general is not" is not really a sign of something not functioning ;)
Though it depends on what you understand by "rich". In particular the difference between money and wealth should be clear to you.
 
of course it is such a sign
everybody in society works, so everybody in society should be getting richer
 
"Richer" as in "have more money"? If so, no. In a simplified model you would even assume that there is a constant amount of money, so if one group gets richer the other (consequently) must be getting poorer. But as I said, there is a difference between money and wealth.
But as much as I would love to discuss the topic (not really...), got to go now. You might enjoy reading an introductory book on economics if you're interested in the topic ^^
 
Well, if you take the view that there is a constant about of money, should not that money be evenly distributed amongst those who work? (this is me some what agreeing with @DeadMG)
 
2:03 PM
@thecoshman You mean something in the direction of socialism? Well, that's a way to see it, but I think the past showed that it doesn't really work out.
 
nah
there is an ever-increasing amount of money
but it should be increasing for all
 
@NikiC that core ideas of communism are not crazy. But yes, socialism, is more like it
 
2:17 PM
@DeadMG I read "there is an ever-increasing amount of memory" >_>
 
@melak47 there is.
 
I know. RAM is really cheap these days :D
 
I just wrote this terrible function and I’m not in the mood to refactor it since it works.
lol the function hides its own name.
char const *prompt(char const *prompt) {
    char *command = readline(prompt);
 
that doesn't throw a warning ?
 
No, hiding is allowed.
I could enable the warning.
 
2:27 PM
If this were C++ you could refer to the function with a fully-qualified name, too.
 
Yup, but prompt is not recursive so it doesn’t really matter.
 
I guess it's possible to refer to one or the other
since if it works, then they don't really conflict
 
@ThePhD yeah I went to bed. Just got up...
 
@melak47 Oh hi there!
I was trying out some new things but have somehow grossly broken my build, so I can't F5 and test, haha.
LNK2001 back to haunt me.
It's so mean. ;~;
 
@daknøk I'd be more surprised if you said you'd written a function in C that wasn't terrible.
 
2:37 PM
@ThePhD what external symbol is missing then
@DeadMG int main(){return 0;} :)
 
@melak47 I think SDL hi-jacks Main at some point. It's quite interesting, actually. ... Random side comment, sorry.
 
@ThePhD SDL + D3D11? okay
 
@melak47 That's terrible. I recommend int main(void) {}.
 
@LucDanton D:
 
@melak47 Nono, I got rid of SDL ( I used to use it ). That was a random sidecomment that had nothing to do with what we were actually talking about. ... Even now, I realize how saying it is silly. My brain needs a better thought-to-finger filter.
 
2:41 PM
#define MAIN int main() {}

MAIN
 
@ThePhD haha
 
Templates are OP
 
@ThePhD what could you have broken though, the only thing you have to link with is D3D11.lib, right?
 
@melak47 It is my own library (dll) that's breaking.
 
oh. fun.
 
2:52 PM
It's not a terrible thing, I'm just learning the finer points of separating implementation and definition while also making sure the whole thing is still header-only compatible.
 
user1182183
is this scam?
 
user1182183
else I can't wait for the anti-polygon graphics engine
 
.... Anti-polygon?
How is that... possible?
 
user1182183
@ThePhD well, they say they can have up to 64 'atoms' in a square milimeter
 
user1182183
2:54 PM
so if that would be called polygons, they would have trillions of them in one object
 
user1182183
I watched the whole vid and if this is real I sure can't wait
 
It is fake.
You can hear that from how the guy speaks.
And if it were real they wouldn’t have disabled comments.
 
user1182183
@daknøk ok O_o
 
user1182183
@daknøk well yes that was the reason I'm asking here xD
 
2:57 PM
it might not be fake, what they are showing is certainly not impossible. but I'm not sure if this will be useful for a game. skeletal animation with huge point cloud data sets can be tricky...
 
It is fake.
 
user1182183
@daknøk quite good explained ^.^
 
Assuming for 0.0001 second that you can have that amazing amount of geometry,
I can imagine physics would be nightmarish.
 
user1182183
@ThePhD True dat.
 
@ThePhD Why?
You don’t need to simulate all the geometry.
 
user1182183
3:02 PM
@daknøk moving so much stuff around is already resource hungry xD
 
Unless you want 100% accurate physics, but 99.99999% of all games don’t need that.
 
user1182183
@daknøk and fly simulators don't need super graphics, just physics
 
user1182183
:p
 
@daknøk But you need to shift that geometry around. You need to manage that giant point cloud; -all- of that giant point cloud needs to react to pre-done animations.
 
Oh yeah.
:P
The only physics my game needs is that particles are attracted by gravity.
And that is trivial as fuck.
 
3:05 PM
I can't imagine that scaling well, and reading that Notch thing you posted, he comes to some of the same conclusions as I do.
I'm as smart as Notch. ... This... doesn't make me feel better.
 
The important question is: are you as fat as Notch?
 
I've never seen what Notch looks like, so I'm not sure.
 
user1182183
I like it that there is a good Minecraft clone which is done in C++, "Minetest", well it's not a perfect clone of MC, but it runs much faster than the original MC :x
 
I'm actually on the skin & bones side, much to my family making fun of me.
 
user1182183
and they use the same technology.. opengl
 
user1182183
3:06 PM
kinda wondering if dx11 would be faster, depens on some factors, right? ;x
 
Well, C++ OpenGL and Java OpenGL are two different monsters with different overheads.
I don't think API can be faster than another if you're using them properly, because in the end the same company writes their DirectX driver and their OpenGL driver side-by-side and distributes it to the world. The API calls will boil down to the same driver calls in the end,
so most performance can be wrenched out fo just doing it 'The DirectX Way' or 'The OpenGL Way.'
 
@ThePhD You assume that the company has no agenda to promote one over the other.
 
user1182183
@ThePhD now I can die in peace.
 
@LokiAstari Yes, I'm assuming everybody's happy and smiling and equal; which of course, may not be the case. I wouldn't know, though, I never made it into NVidia or ATI (but I'm going to try for it the summer after next)
Though NVidia's OpenGL treatment is a bit on the slow side.
 
user1182183
I think that's because they gain more money from directx games than opengl..
 
3:10 PM
The last time I swung around, their DirectX SDK Kit was all up to date with the latest. The OpenGL kit was like old and decrepit, haha.
 
user1182183
but well if there wouldn't have been any concurency but a monopol then there would not be so much updates and improvements
 
Checking again, it seems they've bumped up the OpenGL SDK they have on their page, so it's a holy hell of a lot more up to date.
 
@ThePhD what was that about templates being OP? :)
 
@melak47 I can change the members of an object based on some template specialization, which means I can have my XMMatrix union-ed with my Matrix4 and use all the SSE/SSE2 XM* functions on my stuff when I know I'm using DirectX and then revert back to my regular hand-written functions later.
 
neat
free SSE2 support :)
lol. on developer.nvidia.com/opengl, the SDK link goes to...."http://developer.download.nvidia.com/devzone/gamedev/NVIDIA_SDK11_Direct3‌​D_11.00.0328.2105.exe"
 
3:15 PM
hmmmm
 
ideone.com/A9IX81 <--- OP templates are OP
 
I accidentally destroyed all my C# codebehind files
I should just delete them
 
@DeadMG XAML?
 
@ThePhD #ifdef FURROVINEDIRECTX o_O
 
@melak47 Personal flag after running through a bunch of checks to see if I'm using DirectX
 
3:19 PM
I'm just trying to figure out what a furrovine is :)
 
I'm not sure.
 
@ThePhD ASP.NET
 
I figured it beat GAMEENGINE_ONE though
 
I like static_assert
 
I've never used Assert before.
I probably should...
 
3:28 PM
I made a templated GPUBuffer class with help and inspiration from here, for D3D buffers.
used static_assert to make it fail at compile time if you try to do something illegal :)
with error message so you know what you did
 
Ah.
I created straight IndexBuffer, VertexBuffer, and ShaderParameterBuffer classes.
.... But something as easy and as configurable as a GPUBuffer class could probably be cutting out a lot of the excess fat and rewriting of the code here and there.
 
maybe.
and again with help from here I got a smart pointer class for those D3D COM pointers working :)
 
Sweet.
.... Sigh.
No matter what I do.
color in my shader is always 0,0,0,1
tex is always set to the color values.
 
wait, what you set in color ends up in tex?
 
help from here being, of course, yours truly
 
3:42 PM
Yeah. Color is ending up in tex.
 
well, okay, that's something
did you maybe swap color and tex in one too many places yesterday?
 
Tested it with a few different colors, but my float2 tex; is always ending up taking on the color values, irregardless of the ordering of the parameters or the input layout I generate, even if it's by hand.
 
show
 
If you have 2 floats representating texture coordinates, what DXGI_FORMAT are you supposed to use?
I've been using DXGI_FORMAT_R32G32_FLOAT
 
that's what I'd use
 
3:43 PM
uh, no
DXGI_FORMAT is not for shader inputs or anything like that.
it is only for texture formats
shader inputs have their own format enumeration
 
@DeadMG uhh
MSDN disagrees
D3D11_INPUT_ELEMENT_DESC layout[] =
{
{ L"POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0,
D3D11_INPUT_PER_VERTEX_DATA, 0 },
{ L"TEXTURE0", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12,
D3D11_INPUT_PER_VERTEX_DATA, 0 },
{ L"NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 1, 20,
D3D11_INPUT_PER_VERTEX_DATA, 0 },
};
 
Waitwaiwatiwatiwait
Texture0?
Not TEXCOORD?
 
I don’t use textures in my game. :D
 
There. I'll get it right the first time around eventually.
 
uh, nono, texcoord is actually fine. I have no idea where the "TEXTURE" semantic comes from in that sample...o.O
 
3:47 PM
TEXCOORD is D3D10 only
and D3D9
 
... Oh.
But isn't Texture0 a sampler state's texture register?
 
no idea
I actually can't find much data on D3D11's handling- only D3D9 and D3D10
 
also...what is the "0" doing in the semantic name
 
@DeadMG Same, it says it's legal for D3D10, and doesn't really mention anything about D3D11.
 
0
Q: Implementations of range based for in C++

m0nhawkWith C++11 come the range-based for in the form of for(int value : container). But, for previous standard there exist a variaty of different implementation of such technique: Q_FOREACH & foreach BOOST_FOREACH std::for_each range-based for maybe some more implementations? What's a pros and...

 
3:51 PM
@melak47 Uh. ... Where?
 
What an awesome poll question.
 
@ThePhD the sample I pasted from MSDN, not your code
 
@melak47 Oooh. ... Wow. That is weird. Documenter's day off?
 
TEXCOORD should definitly work
this is the input layout I used, and it worked fine with D3D11
 
Hm. Okay. I'm nto using D3D11_APPEND_ALIGNED_ etc. though
I'ms etting the byte offsets explicitly.
 
3:53 PM
saves you having to figure out the offsets
 
I'm going to try using the APPEND_ALIGNED, see if it changes anything
 
well, isn't there that vector3/vector4 difference in your code? wouldn't that break if you align to vector3?
 
I'm trying to create a vector of my own class like std::vector<MyClass> but it says:

type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
 
I'm crossing my fingers and hoping D3D11 will just figure it out. We know if it goes wrong the position will mess up again.
 
@rogcg there shouldn't be a problem, post some more code
 
 
... Nope, triangle's still black. Right position, but color is still 0, 0, 0, 1 and texcoord is sucking up all the color values.
 
@rogcg how are you initialising the vector? and how does Token look like?
 
Vertex Shader declaration:
inout float4 position : SV_Position,
inout float4 color : COLOR0,
inout float2 tex : TEXCOORD0

PixelShader Declaration:
float4 color : COLOR0,
float2 tex : TEXCOORD0

It all seems right, so... just. Why?
 
float4 position doesn't seem so right
also, your order is flipped
your input layout has Position, Color, tex
wait no it's alright. huh
 
Haha, yeah I was about to say.
 

« first day (735 days earlier)      last day (4228 days later) »