« first day (820 days earlier)      last day (4354 days later) » 

10:00
"all four of the glload static libs" - huh?
well, in the build folder for vendor/glload it generates four separate static libs
I don't know where to look on build bot. the most recent failed build of yours I can find is from december and only has a warning
second red section here
it's been that long since I have been able to do anything :P
I have a question how come OpenGL can't be done with c++ .. only win32 and OpenGL and only c++ and GLUT
huh?
what are you on about?
of course you can use OpenGL with C++
and GLUT is only a shitty windowing library for OpenGL
10:08
No I have tried using OpenGL . C++ can only use GLUT
ah ah ah ah I can't even do the first question of the prolog exam
I don't want to sound like I am just being argumentative, but you are wrong
@NolwennLeGuen did you try learning prolog?
@StackedCrooked Hello little faggot!
@thecoshman More or less. I suppose.
@NolwennLeGuen did you get paste copy and pasting a hello world demo?
@thecoshman well....
you are trying to use loadGLFunctions()
10:10
@melak47 nah, I have mains water thanks
I can find loadGL X Functions()
¬_¬ it's not a fucking typo is it?
maybe not :/
I think you would have noticed if you saw that name with nm
it is defined in gll_c.c, but I don't see it when I do nm -C gll_c.os
however, are you sure you are supposed to call LoadGLXFunctions anyway? On windows I just call LoadFunctions, and that is in gll_c.os
@melak47 ah, that function is a function of my own :P
    void WindowImplementation::loadGLFunctions(){
        if(glload::LoadFunctions() == glload::LS_LOAD_FAILED){
            throw std::runtime_error("'glload::LoadFunctions' failed");
        }
        if(glload::LoadGLXFunctions(display, DefaultScreen(display)) == glload::LS_LOAD_FAILED){
            throw std::runtime_error("'glload::LoadGLXFunctions' failed");
        }
    }
yes, you need to call LoadGLX in order to get it set up properly, or at least so says the GLLoad documentation... and the cats glskel/springbok library
derp. sorry
I do call LoadWinFunctions, too
10:14
that looks like GLUT
it's not.
#ifdef LOAD_X11
int LoadGLXFunctions(void *display, int screen)
{
    Display *dpy = (Display*)display;

	glXeIntClear();

    ProcExtFromExtString(glXQueryExtensionsString(dpy, screen),
        glXeIntExtensionMap, glXeIntExtensionMapSize);

	return LS_LOAD_FUNCTIONS_ALL;
}

#endif //LOAD_X11
Win32 and OpenGL
maybe LOAD_X11 is not defined.
could try putting that define somewhere and see if vendor lib has the function then
How do you I compile a c++ and openGL project ?
@noob1992 using a C++ compiler.
10:16
@noob1992 win32 and GLUT are windowing libraries, they are not directly for openGL. in theory, you could use GLUT to create a window and start using directx
@noob1992 unless you really want to spend the time sorting shit out, use a library that does window and context creation for you
@melak47 I'll give that a go...
will prob need to remove the built vendor lib's right, at least the glload ones
But can I make a OpenGL in a win32 file ? or does it have to be a cpp file
@thecoshman it should replace them, shouldn't it
@noob1992 win32 file?!
win32 project
win32 c++ projects usually contain at least one .cpp file
@noob1992 for fuck sake, C++ is a programming language, win32 is a library
@melak47 just need to see :P
10:19
Yes but a project in c++ using openGL in win32 needs programming with win32
@noob1992 ............aaaaannd?
How can I avoid the win32 programming ?
I just want to use c++ and OpenGL
by using a library that takes care of the boiler plate stuff
or by doing it once then never again
So I use an MFC ?
10:20
I know...
ACK ?
you can't just use openGL. OpenGL has no notion of windows, it only knows about rendering to a context, which it doesn't even know how to create
you have to use a windowing library of some sorts, win32, MFC, GLUT, SDL, Free GLUT, etc. etc.
@thecoshman try adding it here in SConstruct, maybe:
elif target_platform == 'linux':
env['_KY_DEFINES'] = '-DKYRO_LINUX -DLOAD_X11'
yeah, I think glload needs to be built with that flag set
I'm sorry, I didn't know ;_;
I just want to make something like this >> youtube.com/watch?v=2EgO2TH_Vxo
10:23
the define guard for LoadWinFunctions is just WIN32, so how was I supposed to know :p
well I know a little win32. like data types. and the hwnd handlers
@melak47 need to add what you suggested to the vendor lib's SConstruct
@thecoshman the vendor lib has it's own sconstruct?
I can only find a SConScript for it
But why go through all of that when .net has the window there for you... and in python a window can be made in GTK
@melak47 yeah... for building the vendor lib stuff :P
@melak47 oh, that's the one :P
@noob1992 you tell me, you'r the one who doesn't want to use those libraries
10:25
but SconStruct is the one where all the neat per platform compiler define things go
besides, some people like there code to be cross paltform
@melak47 ah right :P
I know because they seem really difficult . @thecoshman
I mean, since /vendor doesn't have another sconstruct file, I think scons should use the other one still, right? :S
But what libraries or api do i need for this ? >> youtube.com/watch?v=2EgO2TH_Vxo
Is this correct concatenation of 2 std::arrays?
auto new_array = std::array<std::shared_ptr<T>, capacity>();
std::copy(old_array.begin(), old_array.end(), new_array.begin());
old_array = std::move(new_array);
10:26
dude, you are getting really annoying, I don't mind helping you out with stuff, but please stop asking the same questions over and over
@Ynau, Why not just std::vector and an insert?
stupid significant white space
Me ?
@noob1992 you need to look up both a windowing library and a 3D api library. if you are only targeting windows, then chances are they will come as one.
Yes, vector is an option, was just wondering
10:30
is there any advantage to array over vector?
@thecoshman oh, well I suppose yeah wou'll need to delete the libs so it actually recompiles them, because the source files haven't changed.
Ell
Ell
The chance is you will only need the one window
@melak47 ah, but a new define means they are all out dated so everything needs to be rebuilt :P
@thecoshman but...does scons know that? :p
Ell
Ell
so just look up a snippet for create window ex and get DC I think
10:31
@melak47 apparently so :P
yaay
time to compile boost
again
:P
only for linux folks :P
Please, take a look
How sad and tragic. U.S. Govt pushes Aaron Swartz to suicide by attempting to jail him for decades over some BS case. http://business.time.com/2013/01/13/tech-prodigy-and-internet-activist-aaron-swartz-commits-suicide/
alright, at least glload is second :p
yep
10:32
define did it
AT FUCKING LAST!!!
@melak47 I could kiss you!
LoadGLXFunctions is in gll_c.os now :)
time to push this shit :P
give me one sec :P
and it wasn't even a newbish linking error :D
@R.martin ^ read it and suck it
10:36
does OSX use X11?
I wish there was a there was a way to kick buildbot into action right away :P
not too sure
I think daknok or what ever he is going buy was working on osx stuff mostly
because if not, I don't think the chances of glload working there are too great :/
I think it uses it's own thing, but who ever it was who was working on it seemed to know what they where up to :P
I guess in theory though, they don't have to use glload, just as long as they can provide the same interface that you get on windows and linux
Hey it does work
you mean we actually knew what we where on about, holy fuck! fancy that
10:41
IOW not my problem. that's what I like to hear!
@melak47 indeed
though, I would like to see it working on mac
not that there is much working on any platform right now :p
well, I've been held up with this fucking link error for months now, and the grand scheme of things, that's like 10% to 15% of the time we have been working on this for :P
haha
but yeah, I never even thought that glload would require extra flags set during build like that. It never said it in the documentation
10:46
phew, then I don't have to feel bad for not reading it
:P
there's not, as always, much of it
I was also past the point of wanting to trawl through the code :P
I just did a text search for the function you were looking for
@melak47 more effort then I wanted to put :P
@TonyTheLion he didn't flush, for shame
@TonyTheLion, Shhh, @TonyTheLion has a type of cat as their avatar.
10:49
lol
@chris lol
@chris yeah, the type that would just swipe the entire fucking toilet out the way :P
@thecoshman, Yeah, pet cats ruin your house enough. I hate to imagine what a pet lion would do.
Or a pet Tony for that matter.
@chris it'd be much like having a pet dog me thinks...
For some reason, my friend wants a tiger so he can lure thieves into his house and train his tiger to eat them while he records it and puts it on youtube.
and promptly go to jail ¬_¬
10:54
Don't worry. I'm 98% sure he wasn't serious.
@TonyTheLion ah now, don't be like that
All it needs is a bit of tranquilizer...
oh I started watching scrubs last night
got to Episode 6 Series 1
10:56
@TonyTheLion for the first time ever?
lucky you
I'm assuming, like everyone has seen it already?!!!
That show ended in 2010.
10:57
Not so much the latter 'seasons'
Bye tumblr!
@TonyTheLion aw yes that's SO twisted
why are someone angry at tumblr?
carrots?
11:10
0
Q: Syntax for universal references

FredOverflowThis is an rvalue reference: void foo(int&& a); It does not bind to lvalues: int i = 42; foo(i); // error This is a universal reference: template<typename T> void bar(T&& b); It also binds to lvalues: bar(i); // okay This is an rvalue reference: template<...

Rep whore needs customers ;)
@FredOverflow AFAIK they just wanted to kill two birds with one stone - rvalue references and perfect forwarding at the same time. Kind of stupid in retrospect.
@Pubby Yeah, it feels more like shooting two feet with one gun :)
@FredOverflow, I'll leave more space in the comments for discussion that moves the question forward.
Wow, just reading the original papers on move semantics and perfect forwarding. They're more than 10 years old!
Imagine they were invented 5 years earlier and had made it into the first standard...
11:24
Things would be so much different...
@melak47 buildbot finally finished, made pull request, care to give it check over
@chris I sometimes wonder why rvalue references weren't invented earlier. It's not like everybody knew from the beginning that C++ copies objects way too often.
At least updates to the language will be more frequent now.
Instead of waiting 10 years, only 3.
Says who? :) Let's see if they can keep the promise.
is that right? when's the next one?
11:31
Well, they're trying anyway.
@kfmfe04 C++14, apparently. And then C++17, or C++0x11 :)
Was reflection planned for 14?
so thats, C++25 and C++ 39 :P
damn - that's too fast for C++ LoLoL
implementers will never catch up!
@chris What kind of refelection? Compile-time?
11:32
Not sure, all I heard was reflection.
really? reflection would be very welcome
Pretty sure C++ will never get runtime reflection.
supposedly, they will be smaller changes, so implementations will be able to keep
saves me from boiler-plate code...
I think some reflection was postponed from C++11.
11:33
compile-time reflection will be sufficient - duck-typing not necessary
@kfmfe04 What do you need reflection for? Serialization?
aye - it helps with persistence
I'll adopt modules so quickly when they make it in.
The Java way of implements Serializable is questionable, but really useful.
11:34
I'm currently using this: http://kifri.fri.uniza.sk/~chochlik/mirror-lib/html/

which is surprisingly good
@chris ...if and when somebody finally implements them :)
I'm looking forward to Concepts revisited.
aye - concepts would be v.welcome - beats adding a ton of comments
comments that may get out-of-sync with code...
Yeah, I'm excited for a lot of things.
@kfmfe04 Although I have found naming conventions like typename ForwardIterator to be sufficient in 95% of the cases.
that's true...
11:36
@kfmfe04 I have a general hate for comments. With the exception of class comments.
Still waiting on MSVC to get the rest of the bigger C++11 stuff in.
@chris The current preview already has variadic templates and uniform initialization!
hopefully, the implementation for Concepts isn't too complicated...
aye - I don't like comments either - I just use them for very high-level architectural notes
and a tiny dash of doxygen (which I should be more diligent about)
@FredOverflow, Not uniform initialization, does it? I could swear it didn't work last I tried.
doxygen is the Javadoc of C++, right? :)
11:38
right ;^) I just like the nice dot/dependency diagrams it generates
@chris It does work, but the standard library does not incorporate them yet. So std::vector<int> v = {1, 2, 3}; does not work, but my_own_type v = {1, 2, 3}; works if you provide the appropriate constructor.
@FredOverflow, Oh yeah, now I remember.
What was I trying that failed, then? O_o
Well, as I said, you probably tried std::vector<int> v = {1, 2, 3};
Still waiting for UDLs, delegating ctors, in-class member initialization, and constexpr anyway.
are there any links/docs to what >may< go into c++14? (dang - that's like next year)
11:40
@FredOverflow, Either I tried something needing a standard library update, or I forgot to switch compilers. Not sure which.
@chris Personally, I don't need any of those.
googling c++14 gets me carbon-14
nice, google
Carbon-14 is radioactive, isn't it? Let's hope C++14 won't decay as well ;)
@FredOverflow, They're still useful, even if not an integral part of what you provide.
11:43
@chris What's "delegating ctors"?
iirc C-14 is what they use for dating
@AndreiTita You can "call" a constructor from another constructor. Like the this(a, b, c); facility in Java.
You can do that already.
@AndreiTita In the initialization list? To initialize the current instance? No.
@FredOverflow Uniform init != init lists.
11:44
@DeadMG Oh my god, what was I thinking?
stupid me
you send a lump of C-14 to your gf via pigeon carrier to signal to her that you want a date
dunno, and I agree
:P
Base::Base(params): Base(other_params) { }
Is this it or something else?
@AndreiTita That did not work in C++03.
but does in C++11
if you have a compiler that supports it
11:46
cough anything but MSVC
My question was: is this what you mean by "delegating constructors"?
By that I mean the main three.
Because I was trying to tell @chris that it works in MSVC since Nov.
@chris To be fair, they were the first to implement lambdas, IIRC.
11:46
@AndreiTita Oh, now I get it.
when VS2010 came out they were much better off with C++11 support than GCC or Clang.
@AndreiTita, Oh, so they do!
Wow, I keep forgetting what exactly is in the CTP.
It's probably the stupid intellisense messing me up with it saying I'm wrong and me forgetting that it doesn't work yet.
Yeah, it does that.
yeah, the Intellisense isn't supposed to work yet
but it's based on the EDG frontend which does support many C++11 features, if not all, I believe.
implements delegating constructors where todo was made
11:50
Having two different compilers for Intellisense and the real deal must be a major pain in the back.
Clang compiler integrated with MSVS would be nice as an official option. Too bad they'll never do it.
7
Q: When to make a type non-movable in C++11?

MehrdadI was surprised this didn't show up in my search results, I thought someone would've asked this before, given the usefulness of move semantics in C++11: When do I have to (or is it a good idea for me to) make a class non-movable in C++11? (Reasons other than compatibility issues with existing...

that's a fake herb sutter right?
the real one has some meta posts doesn't he?
@bamboon Hm, the first sentence sure does sound like the real Herb :)
......
Watch all the videos!
Then we'll have him fresh in our minds and we can compare.
@FredOverflow the use of widget also speaks for the real one.
11:56
@chris Again? :)
but this should be the real one: stackoverflow.com/users/297582/herb-sutter
@bamboon "Widget" sounds more like Scott Meyers ;)
@bamboon Oh... well, maybe he forgot his password :)
The only other person I know of who uses "widget" is my accounting teacher.
@FredOverflow watch his latest talk about concurrency ;)
It's him in disguise! Of course!
11:58
Would the real Herb Sutter please stand up? :) — FredOverflow 9 secs ago
@FredOverflow maybe, well then someone should tell him how to merge accounts
12:16
yay correcting Herb
Achievement unlocked: master nitpick
Ell
Ell
Is anyone here up to speed on graph theory
13
Q: When to make a type non-movable in C++11?

MehrdadI was surprised this didn't show up in my search results, I thought someone would've asked this before, given the usefulness of move semantics in C++11: When do I have to (or is it a good idea for me to) make a class non-movable in C++11? (Reasons other than compatibility issues with existing...

Hello guys. Does anybody know where I can find the header-only file of apply_visitor.hpp (in boost) and its corresponding library to link?
Ell
Ell
12:33
Nope :/
What do you mean? Where in boost, or without downloading boost?
@chris I am using the "/usr/include/boost/variant/apply_visitor.hpp" header file
but in order to reduce the compile time
I want to use the pre-built version of it
Oh, then I don't know.
there almost certainly is no pre-built version
it's probably header-only
@DeadMG You mean only some of them come with pre-built version?
because I know there is pre-built version for boost unit testing
12:45
@Meysam, only those boost libraries that are not header-only have prebuilt version.
-4
Q: How to input an array in C++?

user1974091How to input an array in C++? input - 2 3 56. need to store in array A[0]=2, A[1]=3, A[2]=56?

lawl
Hi, do anyone here has idea if there is any case when splitting data into several tables in db is acceptable?
For example I have database of cars and their positions. Those second table will be huge, as I save their positions, heading, speed and some other parameters (like cargo temperature) every minute and there will be soon tens of thousands of cars.
Will splitting this position data for every car into separate table be better for searches? I think I will never need to correlate data from multiple cars with one query, so this should help to maintain small indexes.
Ell
Ell
I don't think splitting it into multiple tables will help
@Griwes Would be closed as too local AND exact duplicate of some questions. I want to know what YOU guys think
Ell
Ell
Unless there are a distinct set of things which are accessed frequently and another infrequently
12:52
Each set of position data is accessed unfrequently, only several times a day typically
@yetihehe normalize your tables unless you have a specific reason not to
http://en.wikipedia.org/wiki/Database_normalization
but having one table with hundreds gigabytes of data may be slower than having several tables with hundreds of megabytes only
I know about normalization, I even did some denormalization to speed up things ;)
you are optimizing for a problem that is not there yet - if it THAT huge, then maybe you don't even want it in a RDBMS
a binary format in individual files may be faster
it all depends on your expected mode of access
one file per car is a simple model, if you have no need for relational queries
@kfmfe04 it looks like it would be best solution but it would also mean I'll soon implement my own db engine (poorly)
you are thinking about db's in the wrong way - in the very simplest case, it's just a persistence mechanism - you can have plenty of different mechanisms for that (besides RMDBS)
what you buy with a a relational-db is report generation
client-server, etc...
you need to pick the right tool for what you are trying to do
13:00
I know, I'm just still in searching-for-the-right-tool phase. Sorry for bothering you guys, looks like I will need to test different solutions. I though someone here had to do such solution already
think about what kinds of reports/calculations/statistics you need to do first
then evaluate several possible solutions - only you can do this
just remember, where-ever you store it, it still needs to be read into memory to run reports/calcs/stats - once it's in memory, you do it yourself in c++ or you have the rdbms engine do it, etc...
Ell
Ell
Also premature optimisation is the root of all evil!
Ell
Ell
Anyway, it's pie time I ate my high
Maybe it should be "The love of premature optimization is the root of all evil".
13:06
Optimisation won't help if you have bad design. Changing the design after you have gigabytes of data is rather hard.
Actually, it usually doesn't depend on the amount of data (GBs is not that much these days) - (in my experience) rather it'll depend on how cleanly you have designed your initial store (either rdbms tables, files, or whatever) - the simpler it is, the easier it will be to transform/update as your needs change. The size of the data usually just takes more CPU cycles...
But it is definitely possible to make bad choices - if you have one giant file, serial will be slower than binary/block read/write, which will be slower than mmap...
GW2 Engineer is awesome in PvP
13:23
for a minute I thought you wrote "PHP"
and I was like, "FLAMETHROWER AT THE READY!"
Ell
Ell
speaking of flamethrowers
I think I'll play tf2
@thecoshman What do you mean? The project finally builds after all those months?
Congratulations?
is there a way to get a blocking future like async does or is that based on some implementation details?
packaged_task?
no, that future is non-blocking
13:35
hmm... ...what do you mean? An async call is non-blocking, but a call to get() on the future is blocking. what are you looking for?
@kfmfe04 a way to make the destructor of future blocking. sorry for being imprecise.
not that I need it, just wondering how that is achieved
I guess you would have to write such thing.
I certainly don't recommend it. That behaviour of async is broken.
well almost all of these mechanisms could be put together with lower level std::mutex and std::condition_variable, etc...

what is broken in async? (need to know - I'm using it in some code)
@kfmfe04 the destructor of a future coming from async blocks, which might be an unexpected behavior
std::async(std::launch::async, foo);
std::async(std::launch::async, bar);
// runs foo and bar sequentially
@kfmfe04 This.
13:41
when ordering should be indeterminate you mean?
@R.MartinhoFernandes sure sure, like I said, I am just interested how that is done and if it can be done using standard stuff
ouch - async inside async, hm...
misread (that's a setting)
@bamboon You can write a class that stores a shared_future and waits in the destructor.
you're saying that the implementation may be ignoring the std::launch::async
@kfmfe04 No.
That is not the problem
It launches stuff asynchronously -- but the code I wrote immediately blocks until it finishes.
And then it launches the second function asynchronously and immediately blocks until it finishes again.
auto&& dummy_foo = std::async(std::launch::async, foo);
auto&& dummy_bar = std::async(std::launch::async, bar);
// fixed, now the two run concurrently
13:44
how is that different from foregoing async completely and calling them directly?
rvalue reference will fix this? is this a spec problem or an implementation problem?
@kfmfe04 No, it could just as well be just auto.
@R.MartinhoFernandes but then I could no longer simply return a future, or am I missing something here? What I am wondering is if I can somehow manipulate the internal state of the future as it is done in async?
The point is that keeping the future, even if you don't care for it, will not block.
@R.MartinhoFernandes why auto&&?
@bamboon Because it works and I did not want to think about it :P
13:47
@R.MartinhoFernandes ah ok^^
@kfmfe04 If you don't keep it, it is a temporary, and it will be destroyed, and unlike all other futures, its destructor does not simply abandon the ownership of the shared state.
ic - is this a spec-bug or an implementation-bug in one of the libs?
spec
The issue is in the spec.
ouch
thx for the tips guys - I will search around a bit on SO for this topic to make sure I don't step in any doo-doo
13:55
I just said 3 successive "eww"s that got louder and louder without even meaning to.
0
Q: Coping a file content into a multidimensional array

ArashdnI have created an application to read content of a file into an array: #include <iostream> #include <fstream> #include <string> using namespace std; int main() { fstream myfile; myfile.open("myfile.txt"); int a[3]; int counter = 0; char s[10]; while (...


« first day (820 days earlier)      last day (4354 days later) »