« first day (1176 days earlier)      last day (3998 days later) » 

02:00
@ThePhD Yes.
user3010322
@R.MartinhoFernandes Yeah, I know. :c
user3010322
The other option is to have a unicode input box pop up when I want unicode.
user3010322
But... that's kind of lame too.
So you're Typing Alt++1F4A9, and you end up sending Alt+F to the current application.
Horrible, horrible, horrible.
user3010322
IIRC, there's a method where you use Alt + (numbers), and most applications are smart not to map numbers to shortcut keys, so.
user3010322
02:01
You can usually get away with Alt + 0[numbers]
user3010322
But I have no idea how to activate that over the hex-style one
user3010322
(numbers are the decimal representation, base 10 and all)
Not quite.
It's an awkward mess.
user3010322
Hm. Not sure I want to include boost::lexical cast, and I have no way around this one.
user3010322
02:04
WHAT TO DO.
give access to your repo
ok, sorry
user3010322
Why do you want access to a smelly, stinky pile of crap.
not gonna ask again
IIRC Alt+numbers uses best-fit mappings from OEM codepages, Alt+0numbers uses the current ANSI codepage directly.
I hate that I know what that means.
user3010322
Hehehe.
user3010322
02:06
Hm.
user3010322
@Rapptz is right. The entire Flac implementation is a header-only god-awful mess.
@Borgleader Why not use RAII for scoping the bindings?
Oh wait, nesting.
But no, yours doesn't nest either.
I am back from eating
@ThePhD include lexical cast, i think its header only thing so it should be lightweight when distributing
@ThePhD Fun fact: Korean keyboards have a shortcut for hearts.
02:09
@LightnessRacesinOrbit You're not alone
you mean like llogl::bind(someObject); ? (where bind is also an object, possibly a template which will unbind in dtor?)
user3010322
@Borgleader Something like std::lock_guard.
user3010322
except llogol::bind_guard
user3010322
or just llogl::bind, like you suggested.
Either that or execute-around.
02:10
@R.MartinhoFernandes That's bad. Do you reckon you'll ever have forgotten?
@sehe Dammit. Competition.
I won't let you beat me to 100k :(
Oddly, the song I just put on is entitled "When I'm Alone". I guess Lissie is lying ;(
No worries. You're way ahead of me in terms of effort
for(auto buffer_name : bind(buffer)) {
    gl::BufferData(...);
}
@sehe She still left me
02:11
I know a song called "You're not alone" youtube.com/watch?v=Ux6S73dbgEw
(Don't do that)
@R.MartinhoFernandes Evil laugh due to not writing ` ` after for?
@Rapptz Olive?
No, Saosin.
Ell
Ell
@Borgleader just keep in your bind mind is on it's way out.
user3010322
Maybe tonight I'
user3010322
02:13
'll port my whole engine to OpenGL
Ell
Ell
in one night :P
user3010322
I'm not doing anything multithreaded with it right now. It can't hurt.
user3010322
@Ell I know all the spots where I need to call it.
Ell
Ell
still, surely there are a lot of spots? :P
user3010322
02:13
My only issue is what version of OpenGL to target, or even how to target it.
My tea's already cold.
I hate when that happens.
Ell
Ell
3+
don't bother with anything below
user3010322
D3D offers FeatureLevels, which allows you to target things dynamically at runtime.
OpenGL too.
That's why you have things like GLLoad.
user3010322
I have no the slightest clue how I'm going to emulate that in OpenGL, espceially with glload
user3010322
02:14
@R.MartinhoFernandes IIRC with glload I have to generate headers for a specific version of the API.
user3010322
E.g. #include <glload/gl_{version major}_{version minor}.hpp>
Ell
Ell
@ThePhD just use GLEW then
No, you don't.
Ell
Ell
Just link with glew
02:15
Gosh, I never used GLLoad.
Ell
Ell
call glewInit()
then check for what versions/extensions you need
@R.MartinhoFernandes That's actually a neat idea. I could add that alongside the current mechanism. I won't replace the current one though because for VAOs you don't want to unbind the buffer while the VAO is bound because otherwise that screws up the relationship between the VAO and VBO.
user3010322
Maybe I can just generate the gl_load headers for the 4.3 API?
@Ell THat's exactly the same procedure with GLLoad.
user3010322
and thenc all whatever functions I want?
02:16
@ThePhD You generate headers for the highest API level you want.
user3010322
And just do some checks at runtime.
Ell
Ell
@R.MartinhoFernandes I don't know glload but he mentioned generating headers which you don't need to do with glew
God what am I doing here
user3010322
@R.MartinhoFernandes And then just back-access what I need?
Do you reckon I should do something about binary sizes:
02:17
When you initialise GLLoad, it loads functions for whatever version the context you have is.
It provides booleans to test for whatever is available, and also to test for extensions.
@sehe Yes.
-O3 -Onot_sehe
:D I was afraid you'd think so.
user3010322
So I should just generate headers for 4.3, and let GLLoad validate the functionality/versionality I need?
Ell
Ell
@ThePhD correct
02:18
@sehe Fear will get you far
user3010322
I wonder if it's possible to just have glload generate everything..
user3010322
There's probably a switch for it.
user3010322
I'll ask Bolas if I ever catch him.
@ThePhD Yes. You need max headers to get the code to compile.
@LightnessRacesinOrbit Here's the release builds
Somewhat. Yes. Still rather large for my taste. I bet it's the boost stuff. Serialization, some Spirit, lot's of variants and fusion.
But then you can do if(glload::IsVersionGEQ(3, 3)) gl::SomethingOnlyAvailableIn3_3();
user3010322
@R.MartinhoFernandes To keep it agnostic, I'll just pack everything into my pre-existing GraphicsCapability class.
user3010322
I'll also probably add an Event
user3010322
OnPrepareDeviceSettings
02:20
Anyways. Time for bed. Odata Core/Atom/Json serialization is quit tedious.
user3010322
Can check for the highest features supported there. Throw or exit or complain if it's not ready.
We call them declarations in C++, not "prototypes". GCC's C++ front-end is senile in this regard. — Lightness Races in Orbit 24 secs ago
> Now the "Korean mess" (ISO/IEC 10646 amendment 5) is an incompatible
change, in principle contradicting the appropriateness of a version
independent MIME charset label as described above.
Ell
Ell
@thephd what recent features of DX are you using?
@LightnessRacesinOrbit ..?
user3010322
02:24
@Ell Absolutely none at the moment.
user3010322
At least, none for my last project.
3.3.9 mentions "function prototype" along with multiple other sections
@Rapptz Hmm there are a few hits. I see them as typos/ignorance, frankly. The declaration/definition terminology is well-defined, and "prototype" means something completely different in C.
None in 3.3.9
does this creates on heap
user3010322
Yes.
02:28
User * users = new User;
or creating on heap means actually use the keyword new ?
@meWantToLearn Neither
new [usually] involves dynamic allocation. Whether this ends up on some "heap" is up to your computer
322
A: Why does the use of 'new' cause memory leaks?

R. Martinho FernandesWhat is happening When you write T t; you're creating an object of type T with automatic storage duration. It will get cleaned up automatically when it goes out of scope. When you write new T() you're creating an object of type T with dynamic storage duration. It won't get cleaned up automatica...

In the context of what you're talking about, though, with loose terminology "yes"
but over here in the question its creating using the same syntax i mentioned
and in the answer its mentioned When you write new T() you're creating an object of type T with dynamic storage duration. It won't get cleaned up automatically.
user3010322
Yes.
02:30
@meWantToLearn You haven't said anything surprising or questionful yet
I have recently started using c++
user3010322
If you want self-cleaning storage and you want an array of them (it looks like you want multiple, you have s on the end of that users), you want
the pointer and reference are confusing
user3010322
std::vector<User> users;
user3010322
02:31
Or
no
its beyond that
yes
damn I wish I got rep for this
im working on a star path finding
5
@meWantToLearn well now you have stars to guide you on your path
the thing im confused is when we create a pointer we are creating it on heap right
02:32
@meWantToLearn depends on how you do it. Also difference between pointer and what it points to.
Hm.
No.
The pointer is not the object it points to.
pointers are usually on the stack, unless you have a pointer to pointer
needless to say, what are you doing with A star if you don't know the basics :)?
Ell
Ell
02:33
Are you using c++ for speed per chance?
I thought he was doing some astronomy thing.
yeah took me a while to figure it out as well :D
02:33
does it just kill anyone else that the primary way to participate in certain communities is still mailing lists? ugh.
Ell
Ell
Mailing lists are old hat
@BenCollins they're alright, chatrooms are too casual :P
@BenCollins yes.
and annoying as all getout. Your choices are a) don't participate; b) fill up your inbox with crap you don't want to see.
so lets say I have a struct NavigationNode,

and I create a pointer of navigationNode, NavigationNode *node = new NavigationNode;
this is not being created on the heap right
02:34
mailing lists suck
so I cant delete it via the delete keyword
@BenCollins definitely
no it's not, node will be a NavigationNode* on the stack
@ScarletAmaranth but good chat is completely superior. Take this one, for example: searchable, bookmarkable, etc, etc.
02:35
Forget about the heap.
If you are worrying about deleting it, there is no heap.
Repeat after me.
there is no heap
@meWantToLearn run away from A* and do something simpler if I may be so daring to suggest :)
@meWantToLearn you might benefit from doing C rather then C++
delete is about storage duration, not location.
02:36
if you really need to be able to post longform stuff, there are oodles of great discussion boards out there that don't require me to subscribe my email address to every thread.
@BenCollins ehhh, except for this is slightly more informal than I would like, sometimes
ok. </rant>
As I said in the answer you linked, you delete objects of dynamic storage duration, and you don't delete objects of automatic storage duration.
was just trying to figure out a boost problem, and just got super-annoyed that the only way to ask a question is to send an email.
Variables you declare create objects of automatic storage duration. new creates objects of dynamic storage duration.
That is all.
02:37
@BenCollins or ask on SO ^^
@ScarletAmaranth true that. I think the tag is pretty active, too
@meWantToLearn, listen up: don't use new and/or delete for now
you'll look at them when you'll really need them
@BenCollins trust me, I was at one point considering getting a shorter hdmi cabel so that the C++ tag questions would appear quicker in order to answer them faster! :)
0
Q: Why are there a handful of passing mentions of "function prototypes" in C++11? Surely these don't exist in C++

Lightness Races in OrbitThe C++11 standard makes a couple of passing mentions to "function prototypes". There are not in any definitions of the relevant features, but in random places like: "function prototype scope" in [C++11: 3.3.4] (whose definition actually admits it's talking about "function declarations"); an e...

@Jefffrey idk he looks like he is doing some kind of linked list. Which is probably much easier with pointers...
02:38
@Mikhail std::list
actually std::forward_list
7 mins ago, by meWantToLearn
the thing im confused is when we create a pointer we are creating it on heap right
repalak bored again @LightnessRacesinOrbit
oh dear. he's in for a world of hurt.
@ScarletAmaranth =)
02:39
this is the a*
code im working on
@meWantToLearn run away from A* :)
@Mikhail good advice
@LightnessRacesinOrbit using namespace std; is already wrong
@Jefffrey I stand by my advice not to use C++
@ScarletAmaranth I have to use it
02:39
first line of the program
@Mikhail why?
@meWantToLearn: Take an int. int x; This is "allocated on the stack" (simplifying). Well, a pointer is an object too! int* x;. This is also "allocated on the stack".
@meWantToLearn yikes.
@Jefffrey Easier to figure out pointers then RAII
02:40
@meWantToLearn: A pointer's value is [typically] an address in memory, referring to location of some other object. I can write int x; int* ptr = &x; and that ptr points to x. Neither of them is dynamically allocated, and neither is "on the heap".
bool operator==(const NavigationNode& a, const NavigationNode& b)
{
        bool result = a.x == b.x && a.y == b.y;

        if (result == true)
        {
                return true;
        }
        else
        {
                return false;
        }
}
typedef struct { and #defines all over the place
you usually write "new" if you want for something to be on the heap and then you store a pointer to it on the stack (usually)
    if (result == true)
    {
            return true;
    }
    else
    {
            return false;
    }
2
@meWantToLearn: However, when I write new int() I get a dynamically-allocated int, i.e. "on the heap" (let's stop calling it that though >.<). new gives me a pointer to the thing that was newd, so you write int* ptr = new int();. Still, only that dynamic int is "on the heap" (oops). The pointer is just an object still!
-end-
02:41
@Jefffrey my eyes : - /
Woah, my screen real estate.
best code ever
I know I have a lot to spare, but.
@meWantToLearn that if / else you have going there, try return result;
At least he indents his code properly.
02:42
Cue tabs
lol, tabalak would be excited
@ScarletAmaranth it was just returning just result, which returns boolen
Ell
Ell
Me me, I'm a tab man
@meWantToLearn yeah, now go work trough what values that boolean would have
its not yet done. im working on it. its a dirty code, and I have to use it in a game
02:43
@meWantToLearn, I give you another tip: read a book first
He's got fundamentals down.
Why is this even in a repository..
why are you working on a game? I mean no offense nor do I want to somehow "demean" you, but you need to know at least basics before you can do pathfinding for games :)
@Mikhail Pointers are easy to learn, at least to the extent of having some superficial understanding, that much is true. Learning RAII might, arguably, be slightly more difficult. Using them is a whole lot different from learning them though. Using pointers correctly has proven extremely difficult -- to the point that it's essentially impossible to point at anybody who has ever done so dependably. Using RAII correctly, by contrast, happens all the time (even with little or no understanding).
for (auto i = openList.begin(); i != openList.end(); ++i){
@ScarletAmaranth How do you know it's a game?
02:44
@R.MartinhoFernandes he said it
should be for (auto& i : openList)
@R.MartinhoFernandes He said it was the line above lol
Oh, missed it.
Gotta setup a dev environment on this machine.
@R.MartinhoFernandes your behemoth of a machine?
i want to implement path finding in my physics engine
02:45
> Amazon.de empfiehlt "ASSMANN Anschlusskabel Displayport..."
WAT
ASSMANN! JA!
@meWantToLearn ... that music...
I like that it's capitalized
Dude...
@meWantToLearn you did that
02:47
yes
@meWantToLearn you will not learn programming by copy pasting fragments of code from the internet, get a book and start from the basics, build a solid foundation, etc.
the music is making me laugh too much
oh man
it's just so random
@BenCollins I can't vouch for the same. Yes, many questions. But many of them poor. It appears the Boost in-crowd is not the asking type of community. It's the IRC/mailing list type. And they tend to solve their own issues (?). I can't explain. I only monitor and some related, but sometimes I scan to see what else is posted... not much. About 10 people that answer there, tops.
@meWantToLearn: Did you read my fantastic, free explanation?
@ScarletAmaranth If you want to put it that way, yes.
02:48
@Mikhail wut
@LightnessRacesinOrbit thank :) you cleared it
@sehe How do I see what you replied to? When I look at other people's messages I can see the original message highlighted, but not when it is a reply to something I said.
@Mikhail Clicking the arrow jumps to the replyee.
Or whatever it's called.
@Jefffrey hahahahahahaha
02:51
lol
its toooo simple
-.-
@Mikhail Click the tiny arrow.
@meWantToLearn that's good, don't go further
PHP is a terrible language anyway
@Jefffrey you cant say a language is terrible
Best PHP code is code that doesn't exist
02:52
@CatPlusPlus that's exactly what that guy has ;)
And it's even version controlled. And has a Readme
and said by me it takes it to a whole new level of suckage, considering that I'm one of the few here that actually worked with it for more than 5 years
user3010322
Arrrgh.
user3010322
I need to get rid of these lexical casts
I've worked with PHP for about 1 year. In ~2001
user3010322
02:53
But I don't want to include boost jsut foer it. =[
@ThePhD huh. You want to include boost to remove boost feature usage?
@sehe Worked with php for a year? Is that when the hair loss kicked in?
user3010322
@sehe As a "replacement" for my own hacked-together lexical cast.
@ThePhD Cheap imitation (though you may not want that either).
02:54
Well, TBH. I was voluntarily using Java. And there was a colleague doing ew stuff in PHP. And I sometimes... delved in
@ThePhD Cue sehe's surprise.
Ell
Ell
Lexical cast is simple I think
It isn't
@ThePhD ... can't you preemptively replace more homegrown hacks? By including boost?
2
Ell
Ell
just put into stringstream
user3010322
02:55
A good lexical cast is not simple.
lexical_cast is specialised for a lot of types to be fast.
@R.MartinhoFernandes o.O
the stringstream bit is the last fall back
Wheeeee
A good X is never simple
0
Q: Simplify and reduce the range of winter bash hats!

BohemianI think there should only be a half dozen or so hats awarded for "normal use". Reasons: most users should be able to get all hats, so everyone can join in the fun - it's about participation, not a competition de-gamify the event. Having obscure or secret hats is counter productive, elitist and...

^^ um...
02:55
@meWantToLearn Yay :)
user3010322
@sehe I could, buuuuuuut I'm trying not to use boost.
user3010322
Not that there's anything wrong with boost. Boost is wonderful.
user3010322
I just happen to not be using it.
@ThePhD ahahaha, say again?
@ThePhD Depends on how you define "good". If you want it short, simple and don't care (much) about speed, it can be good and simple. If you want it faster, the code doesn't really end up complex, just a lot longer.
02:56
it's a single header man
> use the site 5 days in a row
s/5/100/
Because 5 is too easy
I insta-upvoted robot's comment.
Ell
Ell
This guy deserves more upboats (answer, not a question)
3
Q: Get Integer From Bits Inside `std::vector<char>`

EllI have a vector<char> and I want to be able to get an unsigned integer from a range of bits within the vector. E.g. And I can't seem to be able to write the correct operations to get the desired output. My intended algorithm goes like this: & the first byte with (0xff >> unused bits in byte ...

@JerryCoffin Don't forget about correct! Cue nan, inf, -inf, precision, roundtripping, locale, error handling etc. /cc @ThePhD
user3010322
@Rapptz They'll never make me include it alive!
user3010322
02:59
@sehe Yeah.... those are all the things I don't want to deal with...
@sehe Okay, "drearily long" -- still nothing that's really complex though.
@Mysticial Wow, the guy's profile says he's 50.

« first day (1176 days earlier)      last day (3998 days later) »