« first day (858 days earlier)      last day (4076 days later) » 

11:00 AM
@Xeo Lines have direction. What I'm describing is purely an volume whose depth and height are fixed to 1.
 
The concept of "simplex" exists in every dimension
 
@Cicada 3-simplex are tetrahedrons (i.e. triangle-ish), not "boxes".
 
@R.MartinhoFernandes Where did I say 3-simplex
 
Hence, I thought Span would be best.
 
Xeo
@ThePhD Eh, vectors or rays have directions, lines not so much. Is what I learned in school math, atleast. :P
 
11:01 AM
Maybe Scan?
For Scanline?
 
Call it segment interval or 1-simplex who cares about the name anyway
 
Horizontal Line (or Vertical Line) is basically what I'm trying to get at.
 
6 mins ago, by sehe
@Xeo Pro tip: make sure the symlink uses a correct and traversable path relative to the directory containing the link inode
^ correct and traversable :)
 
@ThePhD So... line.
 
afk
 
11:03 AM
THis only has 1D coordinates, though.
Lines are usually associated in 2 and 3 dimentions
 
how about you call it Faggot then
 
BAH Cicada's probably right Segment or Internal or Span I'll roll a dice and pick one.
RANDOM.ORG gave me 3.
Span it is.
 
@ThePhD "Horizontal" does not exist in 1D.
 
Xeo
sigh
 
11:04 AM
Also, I don't care. I'm reading the news in German.
 
@Cicada A Texture Faggot <-- A bundle of texture updates.
I like it.
 
okey. my engine now has singleton joystick manager inside, but it works
 
o_O
AAAHH SINGLETON
 
Oh look @ThePhD i have a working joystick
it's thread safe
 
Does it work with two joysticks?
 
11:05 AM
yes
 
Siiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiingletooon ;~;
 
I love looking at your frustration right now
 
q_q you sick sadist.
 
@ThePhD Is your joystick class thread-safe?
Because if it isn't, my singleton is better
MWAHAHWAHWHAWA
 
@BartekBanachewicz Is that supposed to be useful?
 
11:07 AM
My Joystick class operates on an object level. o_O
 
user142019
@BartekBanachewicz Can many girls use it at once?
 
@R.MartinhoFernandes of course not, I am just making fun of him
 
That is, every joystick object is its own. I don't need thread safety. D:
 
@Zoidberg go back to cartoon network
 
THREAD SAFETY IS FOR LUUUZERRRZ.
 
11:07 AM
sure.
 
eh
 
@ThePhD so your code is worse than singleton
 
@BartekBanachewicz lol
 
thread safety is one of the most important things nowadays
 
@ThePhD that's an achievment
 
11:08 AM
everyon's talking about immutability and such
 
user142019
Cartoon Network is awesome.
 
user142019
Immutability is awesome.
 
@Zoidberg was ?
 
user142019
@ThePhD WHATEVER
 
I dunno, I havne't really been attracted to anything appear on CN lately.
 
user142019
11:08 AM
@ThePhD so for you.
 
Yeah, basically. :c
 
@R.MartinhoFernandes Is there any news from Germany today? Where is good site for headline news in Germany? If there is an financial/expenses/sex/whatever scandal, I would like to know about it before my German customers call up :)
 
@MartinJames Dunno, I can barely understand it.
 
user142019
Lol immutable joystick.
 
user142019
You can't do anything with it except looking at it and trying to make a new one that is (almost) identical.
 
11:10 AM
Heh - I meant a site in English language that carries German news.
 
I'm trying to make my own format for 3D platformer levels.
Needless to say my brain is derpin' out.
 
Any reason why you're not reusing something that exists
 
@MartinJames Ah, dunno either. I am doing it merely for practise, not for the news themselves.
 
@Cicada more fun to reinvent the wheel
 
@Cicada he's "learning"
 
11:11 AM
@Cicada He never does. Sigh.
 
@R.MartinhoFernandes I do!
I don't reinvent everything. D:
Also, uh.
... Anyone care to share 3D platformer level formats?
Or references / guides?
 
@ThePhD WTF is 3d platformer?
 
Xeo
@BartekBanachewicz 2D Platformer in bad.
 
because honestly, I've never heard about that genre
 
A platformer that is 3D.
 
user142019
 
@R.MartinhoFernandes duh. it's damn impossible
 
Prince of Persia?
 
Rayman 2?
@ThePhD ?
 
@BartekBanachewicz mario
 
Hmm. I've often thought that I should learn some German, but I suspect that a little knowledge is worse than no knowledge, especially when it comes to talking with customers :(
 
11:14 AM
It's basically a 3D world but I plan on having collision meshes, portals to other levels, event volume triggers, etc. etc.
My first iteration over it was gonna be a text-based one, so I could edit it by hand and make shit up as I go along.
 
@ThePhD 'event volume triggers'
 
Triggers that trigger the volume of events.
 
@R.MartinhoFernandes you need to shut your pie hole boy
 
The hole whither pies go.
 
The Tome of Events
The ToE.
 
11:16 AM
@R.MartinhoFernandes where is that Robots power switch?
@ThePhD The Camel Toe
 
Yay, I used "whither" again.
 
oh goddamn it my roommate is playing "Lazy Song" on bass
just to annoy me
 
@Cicada You mentioned formats that pre-exist? o_O
Care to share?
 
@ThePhD I've never heard about formats that post-exist
 
@ThePhD Just about any serialisation format, really
 
11:17 AM
@ThePhD Quake 2 format is rather nice and relatively simple
 
I found some German news.
http://www.thelocal.de/society/20130220-48077.html
SAP founder giving away money.
I love SAP
 
user142019
TIL: void bar(int myArray[static 10]);.
 
@Cicada Umm... I don't know what serialization formats entails.... >_> <_<
 
user142019
static y u so many meanings.
 
@ThePhD Basically you construct your scene in an editor (or in code, doesn't matter), you serialize it to a file and you're done
No parsing no nothing
 
11:20 AM
@ThePhD there are loads of simple (read old) level formats
 
Oh. Just a raw dump of the stuff.
Um. I guess I could do that.
 
@ThePhD not quite
but in simple terms, yes
 
Oooh
Turns out the definition of a span is right on the money.
> an extent, stretch, reach, or spread between two limits
 
DAMN youtube ads
@sehe, wtf? ^
 
user142019
That's a bunch of sehes on coke!
 
11:24 AM
@ThePhD Not a "raw" dump
A dump that can be un-dumped and still work
That actually takes some work
 
lol
what use would be of dump that doesn't work?
Also, he wants just load, not save
 
user142019
 
user142019
lolpwnt
 
i.e. it can be made in different editor; that's why I suggested Q2 format, for which nice editor exists (GTK Radiant)
 
If I have a std::set<structure> where sizeof(structure) == 1, is it safe to assume the memory overhead of the set will double the actual size?
 
11:29 AM
Dreck! I posted a day or so ago that I would not go near W8 until customers put a shotgun to my head. Guess what happened a few minutes ago..
 
user1357851
@Zoidberg lucky it is not on the way down
 
user1357851
could get awkward
 
user142019
lol
 
When dumping works, you can't be un-dumped.
 
Anyway, feel free to Checkout newest Minicraft and Engine (dev-2.0)
 
11:31 AM
@LuchianGrigore The overhead of a set is the overhead of a binary tree with parent links, i.e. 3 pointers per node.
 
@BartekBanachewicz changelog pls
 
@Potatoswatter so, quadruple?
 
Engine : `Added some parts of SFML Window and Input as source; they are now compiled "inside"`
Minicraft : `Changed to use new Engine SFML functionality`
 
@LuchianGrigore The size of the payload is 1 byte… the size of the pointers is 12 or 24 bytes depending on machine architecture.
 
oh, right, the size of a pointer is not 1
crap
back to the drawing board
 
11:33 AM
Then you pad the result to a multiple of pointer size so more like 32x.
 
@Cicada so it might be of more interest to linux fags users actually
 
Since 1 byte can only store 256 possible values, consider a std::bitset<256> to store the presence or absence of each possible value.
Total size = 32 bytes.
 
is there any way to search a vector for an object directly?
 
@GamesBrainiac O(n), so no. Can you sort it? Or make a copy and sort it?
 
11:39 AM
Yes, that you can
 
@GamesBrainiac on sorted you can search in O(log n)
 
but does the vector class have that functionality?
in cpp
that is what i was asking
 
@GamesBrainiac does it matter? it's in either vector or <algorithm>
it's in C++ stdlib definitely
 
then thats awesome
 
GOOGLE
 
11:41 AM
@GamesBrainiac are you sure you should use vector?
 
The functions are called std::lower_bound and std::upper_bound, somewhat unintuitive.
 
@Cicada hey, I have an idea. I want your opinion
 
@BartekBanachewicz It sucks
There, you have it
 
@Cicada Don't be so modest!
 
@BartekBanachewicz : I just wanted to try it with vector
 
11:41 AM
@Cicada I'm going to do it then.
 
lol
 
Essentially I have a vector with contact objects
 
there, you have it.
@GamesBrainiac what's a contact object?
 
No wonder he's asking, he lost his contacts in a vector…
 
an object with a string, name and some other details
all in string
 
11:43 AM
that doesn't mean shit
 
11:54 AM
I just hope Laurent won't get angry for stealing his code
 
is an access violation under Windows essentially an SEH exception?
lol
 
On this day in 1980 France withdrew its 5 Franc coins as each contained silver worth 45 francs. #factoftheday @historyweird
2
 
@TonyTheLion yes
You could even strike the "essentially", because that makes it sound like it's more than that, or that there's some kind of wrapping to hide the fact that it's a SEH excecption. There isn't. It's just an SEH exception, nothing more, nothing less. :)
 
right, thanks
 
@R.MartinhoFernandes The Polish 1 grosz (a penny) is also worth more than it's nominal value
 
12:06 PM
does anyone know if the kstkesp field of /proc/pid/stat (field 27) is the kernel stack or user stack?
 
@Cicada WAT
 
I have a feeling gdb sees the real register, while /proc/ fetches its value elsewhere
 
u for real?
 
what
 
@Cicada doesn't the name "kstkesp" kind of sound like "kernel stack esp"? Which would imply that it is the kernel stack pointer :)
 
12:10 PM
that's really weird, obscure shit that I hope I will never, ever have to touch or look at
 
@jalf Yes it does, which makes me wonder. However...
 
also how would the /proc filesystem be able to track the stack point of any given process? That's not really practically doable without incurring performance overhead and a lot of complexity
 
The addresses are very close, so I don't think one could be in kernelspace and the other userspace (ICBTW)
@jalf Well the kernel owns processes after all!
 
@Cicada alternatively, it could be something like "the userspace stack pointer recorded when we last transitioned into kernel space"
 
@jalf Yes - one of my dodgier apps gets <Access Violation, blah..> entries in the log file at times. It gets caught like any other SEH. The app carries on...
 
12:11 PM
as in, the stack pointer we have to revert to when we go back to userspace
 
@jalf I'm thinking that, too!
 
@MartinJames that is pretty dodgy
@Cicada cool! Great minds think alike. ;)
 
That's my cue!
I'll let you be, though.
 
@jalf I know, but it's old, works well and the customers are happy, so I cannot be bothered to debug/fix it.
 
user142019
LINQ + attributes = awesome.
 
12:15 PM
But when you think about it
Calling into /proc/ makes a kernel transition
Meaning that any running process is preempted and its registers are saved
So the kernel must have an up-to-date esp at that point
So why not use it?
 
weebls!
they made loads of great stuffz
 
@BartekBanachewicz Hells yeah
Hey guys, what's a good name for a function that takes a bunch of objects, and returns an object of a type derived from all their types, constructed by moving all their values?
 
@Potatoswatter manager
 
haha
@Potatoswatter Amalgamate!
 
Time to delve into the linux kernel source! :awee:
 
12:21 PM
@R.MartinhoFernandes sounds good :) do you already happen to have such a function in your library?
 
Time to use C++11 to change C++ into dynamically typed language
@Potatoswatter it's a mineral name
 
@Potatoswatter No.
 
Should be pretty much trivial :)
I only really care about using it to combine lambda functions for pseudo-overloading.
 
I need to learn how the static checks work fast
How do I choose the code being instantiated for template basing on static check?
 
@Potatoswatter stackoverflow.com/a/7868427/46642 (and the follow-up; I learned something that day)
 
12:23 PM
@BartekBanachewicz Usually static means stationary, i.e. not working fast.
 
@Potatoswatter ummm... you didn't get a word from my question, did you?
I was asking about template metaprogramming.
 
@BartekBanachewicz SFINAE. You formulate the check so it causes a compile error in the signature of the thing being templated.
 
@Potatoswatter I don't have to use SFINAE for it, because I have C++11 sigh
Robot, help!
 
12:25 PM
What?
 
2 mins ago, by Bartek Banachewicz
How do I choose the code being instantiated for template basing on static check?
 
@BartekBanachewicz Are you talking about static_assert? That can't be used to make a compile-time decision. C++11 doesn't add anything like that, it just makes SFINAE more powerful.
 
@R.MartinhoFernandes thanks
 
static_assert is only useful for making invalid calls ill-formed.
 
12:26 PM
@Potatoswatter enable_if
 
@BartekBanachewicz That's SFINAE.
 
okey.
I will give you the actual problem
Lua api is in C. I have functions lua_getnumber, lua_getstring etc
I want to call the appropriate one basing on T
 
Specialization, then.
 
@Potatoswatter Chimera? Abomination?
 
Will it work for user-defined types with particular semantics?
 
12:28 PM
 
@R.MartinhoFernandes I mean, one can create his own "number" class. I was thinking about more general conditions which would choose particular code.
> Arithmetic types are the types for which the built-in arithmetic operators (+, -, *, /) are defined (possibly in combination with the usual arithmetic conversions)
 
@TonyTheLion Oh I dunno.. it seems well-defended by a powerful energy weapon.
 
so std::is_arithmetic would be exactly that
 
@BartekBanachewicz Does this help ideone.com/28vGkY?
@BartekBanachewicz Oh, I see.
Sec. I can craft an example.
 
Cool! :)
 
@BartekBanachewicz std::is_arithmetic tells you if it's a builtin type, not that it's a user-defined type defining those operators. Only the user can tell you whether multiplication is commutative; that's not in the compiler's domain.
 
@Cicada You are amazing me.
@Potatoswatter Ummm...
 
@BartekBanachewicz how is that amazing exactly
 
@Cicada I can't read shit from this code. And you can.
 
that's not because it's complex (because it's not), it's because the naming is TERRIBLE and the comments are NONEXISTENT
 
12:34 PM
Does it matter?
 
@Cicada Except for the one that says "FIXME: is this correct?"
LOL, I think they're trolling you personally
 
I am complimenting your abilities, so STFU :)
 
for maintainers no, for outsiders yes
@Potatoswatter lol "fixme" in the kernel
"are we really sure this works?"
 
I don't reckon you being a linux kernel maintainer
 
omg she must be so bored o.o
 
12:36 PM
Anyway, soon, when the robot is back with (another) example for me, we will learn how dumb I am
@Borgleader yea, I also wonder why she isn't writing cubes
 
@BartekBanachewicz I'm not. I find the code hard to read!
 
@Cicada But you are able to read it!
 
@Borgleader Heh, no, I'm just trying to understand and possibly answer this fascinating question
 
Bah, no wonder you managed around my code then
oh god. I just wrote std::is_arithmetic(T)
 
@BartekBanachewicz I have much more difficulties understanding C++ than C
Whenever Martinho posts something I just weep silently
 
12:38 PM
@Cicada that's called metawankery
... and that's what I am doing right now, lol.
But seriously, it only does matter for library creators; for user (i.e. programmer) you don't have to know this shit
 
welp g2g, school time >.>
 
It exists mostly to get the wall of overloads out of your face, and give you a nice error message instead
 
Xeo
Or to just be smart in the implementation
 
@BartekBanachewicz Does this help? ideone.com/j95NPU You may need more traits for different kinds of types.
And you need to be careful to avoid overlaps in the conditions.
 
What are ellipsis for? o.O
 
12:42 PM
@BartekBanachewicz poetic delivery
 
> If we use a default argument, we need a value. A variadic pack doesn’t need one, so it is a better option.
 
T_T
I know nothing.
okey, I will learn all this and then be back for more
 
You can replace the ellipsis with = 0.
I had to do something like that for a while to work around compiler bugs.
 
Xeo
@R.MartinhoFernandes I think I like tag-dispatching better for that.
 
12:44 PM
@Xeo Meh, I see no big advantage, really (I'm assuming he'll have more traits)
 
wat
1>C:\PROJECTS\LuaVM\LuaVM\LuaVM.h(44): error : identifier "not" is undefined
1>    	using DisableIf = typename std::enable_if<not T::value, int>::type;
1>    	                                          ^
isn't it in standard?
 
Well, use !. haha
 
Xeo
I think MSVC disables them as an extension. :P
Oh wait, you use ICC, right?
 
@Xeo right
 
Xeo
Might still be the case.
 
12:46 PM
#define not !
 
@Xeo lol, disables "as an extension".
 
Xeo
@BartekBanachewicz no.
 
@BartekBanachewicz You can probably #include <iso646.h> to get those macros.
 
@R.MartinhoFernandes lol, what is that?
 
k, it does compile besides that
 
12:47 PM
@BartekBanachewicz interestingly, would TextureManager.h be missing from develop-2.0 (or from any revision for that matter)
 
@bamboon A header with those alternative tokens as macros. It's how it works in C. In C++ that header should be empty.
 
Xeo
@R.MartinhoFernandes We need a switch for overloads.
 
But some compilers don't have the alternative tokens and have macros there even in C++.
 
@sehe what the heck is TextureManager.h?
 
A manager for textures.
 
12:49 PM
I don' remember writing that
 
We have a product manager at work.
 
@sehe what needs it?
 
@BartekBanachewicz here:
src/TextureManager.cpp|9 col 28| fatal error: TextureManager.h: No such file or directory
 
haha, you didn't delete the .cpp.
 
12:50 PM
@R.MartinhoFernandes Mmm. I thought git would do that for me on switching branches.
 
@sehe just get rid of it, it's my fault
the point is, it isn't in Visual Studio anymore
and you're not basing on .vcxproj, so now it came up
 
You removed it from the project file, but not from the repo.
 
@BartekBanachewicz Ok. Laterz, seeing doctor with my kid
 
@sehe oh. Take care.
 
12:52 PM
That's what he said he was doing :P
 
it's just an expression -.-
anyway, do I have to explicitly DisableIf all of unneeded overloads?
 
You need to make them have non-overlapping conditions.
 
hmmmm
so that no type would match more than 1, right?
 
What will I get if I fail? Ambiguous call?
 
Xeo
12:54 PM
Aye
 
@BartekBanachewicz : Hey bar, do you think you can help me with a bit of code?
 
hah. I'm not that bad.
 
I threw randomly slices of bacon, garlic and mushroom into a pan
 
Eagerly waiting for Footek.
 
12:55 PM
meh, let's see what that gives
 
Fried bacon, garlic and mushroom.
 
It's like crafting.
 
Xeo
@R.MartinhoFernandes Not if she forgot to turn it on.
 
@GamesBrainiac well, post it somewhere
 
@R.MartinhoFernandes don't spoil it!
 
12:56 PM
Sounds tasty, btw.
 
I'll probably add sparagus or corn or something
 
Don't ruin it!
 
@BartekBanachewicz : I wanted to ask you first, since you tend to be busy. Take a look at this
But, I gave inputs according to docs
 
Oh god line 5 scared me the fuck out
 
1) gtfo with cplusplus.com
2) why virtual destructor
 
12:59 PM
@Cicada lol why?
 
@R.MartinhoFernandes you know why
it was an attempt at a racist joke
 
Not really.
Oh.
 
3) wtf is maxItems
 

« first day (858 days earlier)      last day (4076 days later) »