« first day (906 days earlier)      last day (4051 days later) » 

9:00 PM
@Rapptz Use #include "etc" instead of #include <etc> ?
 
Use ninja not make
 
"char [100][100] [...] can easily be translated to char**" is still wrong. There is no conversion from two-dimensional arrays to double-pointers: error: cannot convert ‘char (*)[100]’ to ‘char**’ in initializationFredOverflow 51 secs ago
 
@BenVoigt That doesn't change anything
 
@FredOverflow That's a hard nut to crack, heh?
 
@CatPlusPlus It changes the search path
 
9:01 PM
<> checks for system headers first though
 
@R.MartinhoFernandes I hate C noobs spreading nonsense with confidence.
 
But it won't do anything really
 
@BenVoigt Practically it only prepends current directory to it
 
I just finished building ninja
 
I presume he wants a place to put third party crap so it can be included without modifying the default path
 
9:02 PM
now to learn how to use it
yeah basically
 
@CatPlusPlus You can put third-party stuff into your project directory
 
Keyword is global
 
preferably in a subdirectory
 
Why would I want to do that though?
 
and then #include "thirdlib/etc"
 
9:02 PM
No, that's crap
Don't do that
 
yeah it is
 
The thirdlib directory can even be a symlink
 
symlink crap into your project, yay :D
 
It's not a solution, it only creates new problems down the line
@Rapptz On MinGW x86_64-w64-mingw32/include or just include should work
There was a way to print the default search path I think
 
Copying third-party stuff into the system include directories is a much worse idea
 
9:05 PM
@BenVoigt It's how the nuwen distro did it and I liked it so I started doing it too.
 
@BenVoigt Uh no it's not
 
@ScottW The good ones create a separate directory under /usr/local/include
mixing random headers with the system headers is bad
 
No package manager uses /usr/local
 
they're subfoldered not random headers so it's not a complete unorganised mess in there.
 
And there is no distinction between system headers and non-system headers sorry
 
9:06 PM
er, warning suppression?
 
@DeadMG Nope
 
There's really no need for this distinction when you track every file
 
I still got warnings and errors from the headers I plopped in there.
 
Linux distros are even going away from separate /lib and just symlink it to /usr/lib
Only separated stuff is stuff that absolutely needs to be on root partition in order to bootstrap everything else
 
@ScottW X11 has always been a subdirectory. Ditto GL.
 
9:08 PM
Almost every project uses a subdirectory that's not really relevant
(Or it defeats the purpose of separating shit even more)
 
Then we're in agreement
It sounded like he was throwing files into /usr/include with no subdirectory organization.
 
@CatPlusPlus Yeah that worked.
@BenVoigt No.
I told you, they're in their own subdirectory properly. Like boost and the like.
 
Even if you do self-contained builds and ship dependencies with the source
 
@ScottW: And then I said "with a symlink"
ln -s /usr/include/thirdlib thirdlib and #include "thirdlib/whatever"
 
Don't ever do #include "whatever/crap", always add them to search path and don't add any extra directory levels
I don't know how to explain it better
#include <boost/thing.hpp> not #include "deps/boost/thing.hpp" or <deps/boost/thing.hpp> or whatever
If project puts things in root of respective search path, leave it there
 
9:11 PM
Umm Cat, I didn't say to have an extra deps level, not once.
 
I've seen so many problems with people screwing up paths for FreeType or SDL by adding crap that shouldn't be there
 
Just for the sake of horror: #include "../../01_External/SDK/02_Source/RemoteSDK/Messages/FileMessage.h"
 
I don't know what you're saying so I'm just ranting regardless
:p
 
Cat's on fire~
 
pkg-config <3
 
9:12 PM
Symlinks are not portable though
 
@R.MartinhoFernandes Yes but he didn't want to pass the library paths to the compiler
 
The way I do it is just having /lib and /bin in my project directory.
 
And unversionable
 
Of and /include
Then I add them to the respective paths when compiling.
 
@CatPlusPlus My VCS handles symlinks just fine
 
9:13 PM
@BenVoigt Not sure what you mean. pkg-config does include paths too.
 
It's not a matter of VCS handling them
It's a matter of checking this out on Windows and welp
Or on a system with nonstandard paths to things
Either ship sources or don't touch dependencies at all
(Well, or binaries, but that's ugh a lot of work)
 
@CatPlusPlus pkgconfig is even better.... but someone demanded a solution that didn't require passing include paths to the compiler.
 
(Even when you do a single buildsystem for all deps binaries are more painful)
What I'm ultimately getting to is
Fuck Windows
 
Lol
 
@ScottW The most abused database ever
 
9:16 PM
Windows doesn't have a designated place for source files because Windows can be used for its entireity and nobody would ever have to compile anything on it ever.
 
Linux, on the other hand.
 
Just getting new software, you have to compile things.
 
9:16 PM
wut
 
That's unrelated bullshit
 
@ThePhD Even on gentoo that isn't true
 
...and some people think I'm crazy when I say JavaDoc and such lead to idiotic comments:
0
Q: c++ "class" doesnt name a type

vicRi have a bit of a problem but not sure what it is. header.h: #ifndef CONTINENT_H_INCLUDED #define CONTINENT_H_INCLUDED #include <string> #include <vector> class Territory; class Player; namespace Sep { //---------------------------------------------------------------------------- // Co...

 
Can I have what he's having?
 
@ThePhd: What? It's just a folder with source code.
 
9:17 PM
Also what "designated place for source files"
It's not the issue here
 
@JerryCoffin lol
 
Xeo
> That refers to moving a node out of one set and into another, whereas I am referring to moving the value out of a set and then just... it's a value.
 
Whenever I've set up Linux (which has just been Fedora and Ubuntu), I've always had to build many things from source to get them.
 
Xeo
@DeadMG Take a look at the section "Moving an object out of a container" in N3586
 
user142019
//--------------------------------------------------------------------------
// Copy Constructor
// Makes a copy of another Continent Object.
// @param original Original to copy.
//
 
user142019
9:18 PM
NO SHIT SHERLOCK
 
@ThePhD Like what
 
ITT ThePhD sucks or something.
 
ITT nothing new
 
@Zoidberg University assignment? :) They always have these stupid commenting requirements.
 
wow, a new paper at this late stage
N3628
 
9:18 PM
btw on Gentoo building things is even easier because there's a boilerplate eclass for this
 
user142019
@FredOverflow see question linked above.
 
@DeadMG Procrastinators unite.
 
Well, I did have to build netpbm from source today (on Ubuntu).
 
Xeo
@DeadMG: move_only_type mot = move(*s.remove(s.begin()));
 
Usually (I stress, usually) you don't ship binaries on Linux. You usually get software by building from the source.
 
9:19 PM
Whenever I had to build something on Gentoo it was just copying an ebuild to a local repo and using package manager normally
 
But mostly you use the package manager and download binaries
 
I build stuff all the time on Gentoo. If you discount the extra time, it is as convenient as it is to install something on Ubuntu.
 
@ThePhD Linux distros ship binaries
 
@ThePhD Most distros don't ship sources.
WTF are you smoking.
 
@R.MartinhoFernandes Yes, but by no means does this lead to "If it's Linux, you must recompile"
 
9:20 PM
Portage is very cool
Creating new/ad hoc updating old packages is probably easiest on Portage than with any other system
 
@BenVoigt Yeah, but my point is that I don't even notice I am compiling something unless I go and look at the scrolling build commands.
It's the exact same thing as using a binary package.
 
@BenVoigt I'm not saying you have to recompile everything. I'm just saying it's much harder to get by on a Linux without invoking a build of source files than it is on Windows to get by for the entire lifetime of use without invoking a build of source files.
 
Xeo
Btw @DeadMG, got any questions on my paper? If yes, please ask.
 
That's, really, all I'm saying. A slight different in how things get into the hands of the users.
 
What is that stray INCLUDED doing there above the destructor? :) — FredOverflow 55 secs ago
 
9:21 PM
@R.MartinhoFernandes Except sometimes 4 hours longer :v:
 
@ThePhD Cognitive bias?
 
@Xeo I have read it a couple times and didn't have any questions.
 
Xeo
Coolio
 
but I'll save a thorough reading for Saturday night
 
@Rapptz Perhaps? I dunno.
 
9:22 PM
that will be my last night at home before heading to Bristol
 
@CatPlusPlus Erm, right, yeah. Quadcores and distcc FTW.
 
Xeo
Got that dropbox linked saved somewhere?
 
user142019
@FredOverflow lol
 
@PascalCuoq Real programmers use vector instead of arrays in C code, believe me. — H2CO3 30 secs ago
 
@ThePhD You're not unaware of these things anymore so you probably notice them more.
 
Xeo
9:23 PM
@DeadMG I hope your schedule has room for that paper. :) I wish I could be there personally.
 
So I'm looking at the ninja manual and it looks pretty cool
 
Ninja is used to build Chrome, IIRC.
 
@CatPlusPlus USE flags are quite neat.
 
@Zoidberg LOBSTER
 
user142019
@Washu Java fucking sucks.
 
9:38 PM
@Xeo I honestly don't know what the schedule will be like, except that the Committee will be very busy.
 
1
A: Set Double Array Equal to Return Value without Declaring Dimensions

MOHAMEDyou can use array 2D with pointers doubvle pointers float **table = convert(); into the function convert() you can allocate memory(2d array) with size you want and return it in the function

Meh, another one that doesn't know the difference
 
Xeo
5
Q: How to avoid this sentence is false in a template SFINAE?

YakkSo I want to write an automatic !=: template<typename U, typename T> bool operator!=(U&& u, T&& t) { return !( std::forward<U>(u) == std::forward<T>(t) ); } but that is impolite. So I write // T() == U() is valid? template<typename T, typename U, typename=void> struct can_equal:std::false_...

 
@Zoidberg Takes one to know one? (I did not get it)
 
Xeo
@R.MartinhoFernandes, ideas? ^
 
user142019
9:46 PM
@JohanLarsson racoce nditions
 
I get this while building boost for 64-bit :@
 
@Zoidberg ok starting to get it now :D
 
user142019
pow-fucking-ned
 
user142019
@JohanLarsson good :P
 
9:49 PM
you know I'm not, read the stars man
 
Tony is back! <3
 
Xeo
And midnight again... gnaaah. G'night :s
 
@Xeo Later.
 
10:05 PM
@domagoj I was never gone, but I'm on holiday so I won't be online as much.
 
@TonyTheLion I know, I know. Hope you're enjoying yourself. :D
 
Xeo
@TonyTheLion Can haz Urlaub pls?
 
10:30 PM
@Xeo Niiight
<3
 
are most people here from Europe?
 
I am
 
@R.MartinhoFernandes There's not enough power in the world to build glibc in reasonable time
 
user142019
FUCK
 
user142019
Grammatical error in my commit message and I already pushed it. ;_;
 
10:41 PM
Ugh I still have to implement forward checking
@Zoidberg And now we'll laugh forever
 
user142019
Noooooooo I'm gonna die!
 
So Firefox's PDF viewer likes to crash the thing
 
user142019
Ordered orange juice, got Fanta. World is unfair.
 
user142019
pwnt
 
user142019
10:50 PM
(Also dumb restaurant employee.)
 
11:07 PM
@Zoidberg isn't there an amend command?
 
user142019
@JohanLarsson I already pushed it.
 
user142019
Amending would mean I would need to force push but that's just badness.
 
do you guise wish to review my naive implementation of parallel_for_each?
 
@Zoidberg ok then you have to die, been nice chatting with you.
 
user142019
 
user142019
11:09 PM
Dat flavour.
 
wtb std::optional
 
user142019
std::optional would be greatness.
 
there are a billion papers on it
due for a lot of consideration in Bristol
 
user142019
 
is that optional as in VB optional parameter?
 
user142019
11:13 PM
More like a C# Nullable<T>.
 
ok I rarely use that but then I don't do much db
 
nor do I
it's useful in general
 
@DeadMG how?
 
0
Q: parallel_for_each

DeadMGI have constructed a simple implementation of a parallel loop. #include <algorithm> #include <thread> #include "stdqueue.h" namespace Wide { namespace Concurrency { template<typename Iterator, typename Func> void ParallelForEach(Iterator begin, Iterator end, Func f) { st...

 
11:29 PM
Can't you make a parallel loop by simply making two threads?
 
that's totally going to max the use of my four-core processor
 
threadnum =8 is a quick hack?
 
more like, "Review if performance undesirable"
the exact number of threads is really irrelevant
except that it needs to be enough for most people's processors
 
user142019
// how about
auto threadnum = std::thread::hardware_concurrency();
if (threadnum == 0) threadnum = 4;
// ?
 
I didn't realize there was a Standard function for that
 
user142019
11:31 PM
It returns 0 if unknown, otherwise an implementation-defined value.
 
user142019
Which should be the ideal number of threads.
 
 while(begin != end)
                its_queue.push_back(begin++);
            Queue<Iterator> its_queue(its.begin(), its.end());
Uh
Using a variable before it's declatred?
 
instead I will simply add 1.
excellent point thephd
the iterators should go in the vector
 
user142019
@ThePhD lol
 
At first I though ti was something you could do.
 
11:32 PM
I would push them into the queue directly, but
that would involve locking the queue unnecessarily
 
Like, maybe C++ would forward-declare it at the top of teh function anyhows.
 
I suck so hard I can't even upvote
 
goddamn proof by induction, you annoying.
 
here's another thing I have not taken care of
transporting exceptions
 
I never knew how to transport exceptions across threads.
 
At least, I never knew how to do it auto-magically so that you throw an exception in another thread from a different thread.\
 
user142019
What about OpenMP. :v
 
@ThePhD It's not automagic, I have to do it.
 
have you looked at .nets aggregateexception and how they do it? idk if it is good though
 
@Zoidberg No. This is my fallback for Standard, not my primary code path.
 
11:36 PM
@ThePhD Hey fuck you
I got my copy paste header thing to work
 
:c
Y u yell at me ;~;
 
laziness prevails.
You made fun of me!
 
I didn't make fun of you.
I just gloated.
What crazy hack did you have to do to get it to work anyhow?
 
Just copy pasted
Apparently it didn't work on mingw32 but it does on mingw64
:S
 
Lol
Guess you're only build 64-bit style now.
 
11:38 PM
No biggie~
 
-O3 x64 master race?
 
user142019
Oh lol.
 
user142019
 
that was ages ago
 
user142019
I just noticed lol.
 
user142019
11:40 PM
It was on le news.
 
hmmm
I only take care of one exception.
if two threads threw an exception in parallel
 
std::vector<exception>
std::multi_exception
^ Does this even exist?
 
user142019
You can have std::vector<std::unique_ptr<std::exception>>.
 
@ThePhD can you re-throw that?
 
the question is not finding multiple exceptions
it's wtf to do with them
I can't throw two exceptions back on the primary thread
 
11:46 PM
You can glue them together and throw a parallel_exception
 
.net has the aggregateexception that wraps a list of exceptions
 
user142019
@DeadMG Throw a parallel_for_exception exception that contains a list of exceptions.
 
multi_exception.
 
parallel_exception
 
actually
 
user142019
11:47 PM
Then, when the parallel for loop is complete, throw it.
 
for this specific use case, rather than terminating early, I may choose to continue the loop on the other elements.
 
    if (exception)
        std::rethrow_exception(except);
^ Does that truly throw the exception on the calling thread?
... Oh wait, parallel_for_each isn't part of the thread function call.
Herpaderpa.
 
"Does a function called "rethrow_exception" really throw an exception?"
 
do you plan to support break/continue?
 
those things do not make sense in a parallel loop
and the language won't permit it anyway because the loop body is a fuckin' lambda function.
 
11:54 PM
Pfff
Alright, let's rework this obj loader so I can get a handle on the new Model system
Then we'll do an FBX model
 
@ThePhD how are you gonna split things? by object? by material? both?
 
Each material belongs to its own SubMesh.
Each Object can be its own mesh.
Albeit, it's a fucking OBJ model.
So it doesn't fucking matter, so I'll just make one giant Mesh and split the geometry by material only.
Yeah, that works.
Model -> Mesh -> Many SubMeshes
Sounds like a plan.
 
@DeadMG Wot? join() and no thread pool?
 
submeshes are triangles with the same material? or what
 
11:58 PM
SubMeshes refer to one index buffer (if there are any) and one vertex buffer.
THey specify vertex offset, vertex count, index offset, index count, and primitive count as well as primitive topology type.
 
@MartinJames Thread pools aren't Standard.
 
Make one.
 
why?
 
They are meant to only have one material, but they can theoretically have more.
In my loaders and in my uses, I will keep it to one material, but the class itself will have room for more.
 

« first day (906 days earlier)      last day (4051 days later) »