« first day (1943 days earlier)      last day (3006 days later) » 

1:00 PM
Biicode seemed (I have never actually had a chance to use it) to integrate well at least with CMake.
 
@ThePhD oh well
 
@ThePhD Disable the internal database, that's what I did. (Also, idk if the bug is still there but make the refresh duration 0 before you disable it otherwise it bugs out and like refreshes all the time or something)
 
I only see the option to disable VAX entirely
not just its "internal database"
 
Ven
In france, there's an app called Geoconfess to find the nearest priest to confess to.
 
1:17 PM
func<my_pack>() && ...
WTB
 
Ven
soon™
 
@ThePhD No, Visual Studio's database
 
@Borgleader ... Huh.
 
@Ven lol
forgive me lounge for I have sinned
 
> Text Editor -> C/C++ -> Advanced -> Browsing/Navigation
Set rescan interval to 0, and Disable Database to True
 
1:22 PM
There go all my colors.
Let's hope VAX works better than the internal shit.
Or will it start freezing again.
@HubertApplebaum ^ Full overloading, earlier than expected.
 
@ThePhD VAX does better coloring than the internal one (the default colors suck but it distinguishes more things)
 
@Borgleader <3 <3 <3
 
@Borgleader I know, but it was just on certain files while editing VAX would try to instantiate a (working, proper, even according to VC++) template and just CHUG.
Like so:
gdi VAX.
 
@TonyTheLion <3<3<3
@ThePhD send bug report
 
.-.
 
1:29 PM
@Borgleader I miss you in the floof channel
 
AintNobodyGotTime.png
 
Ven
VAC ban
 
pizza accepts you for who you are
 
@ThePhD You do, between classes ;)
@TonyTheLion Me too
 
@Borgleader :)
 
1:35 PM
@Borgleader I'd have to make a minimal repro and shit.
 
@ThePhD And it takes time.
 
Time is shit I kind've don't have.
I need to finish this entire course in the next week
so I have time to deal with the rest of the serious projects I want to do and get this Professor off my back.
 
Why are you even working for your courses? You're doing studying wrong.
 
@Morwenn Yeah you're supposed to run in a course
ba-dum-tss
 
Plsleader
 
1:43 PM
Plzladder sounds moar rekt.
 
@ThePhD gotta debug the debugger
 
@TonyTheLion this man is brilliant
 
@TonyTheLion That's not true though. Pizza's always pushing to make you a fatter person
granted, that's very forgivable given the value provided
 
1:46 PM
Instant win.
@Xeo Just like with if and while, right?
 
Xeo
ye, those two I knew
 
@Xeo I've never attempted to do this, but I would have expected it to work, just like the other control flow statements
 
I think Stroustrup once mentioned that he wanted it to be possible to declare variables anywhere.
Almost.
 
Xeo
@Puppy Can't do it in a for-loop's or do-while-loop's condition, tho
 
the for-loop condition I think is an oversight- it would rarely be useful, but there's no reason why not
the do-while-loop I don't see how that could really be useful.
 
1:49 PM
Well, declaring a variable in a do {} while loop woud be... strange.
 
Xeo
ye
You can't make the scoping work, for do-while
I've often thought about accessing the currently-switch'd-over value, but I never tried just declaring it.
 
@Morwenn Nice!
@Xeo Pat pat.
 
@ThePhD Too bad I already submitted my proposal; the merge_sorter2 would have been really cool in the benchmarks.
 
@Morwenn Just re-upload the paper; they'll hit the same URL, no?
 
@ThePhD I already submitted a second version yesterday. I can't post one once a day, can I?
 
1:53 PM
VISUAL HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANG
Sigh.
I need to just learn vim.
 
back when xkcd was somewhat funny
 
:p
 
it's funny how your avatar on discord is the same yet a bit different
 
how it's a circle instead of a square?
 
I was talking about morwenn's
okay visual building
I might finish this change tonight :P
after 4 weeks
 
1:57 PM
You can do it.
 
and much effort
@ThePhD for you otoh, it looks like visual studio has decided you should go out instead :p
 
Eww, Sunlight.
Sung Light.
That's an interesting game name.
 
Xeo
I don't get how VS can just completely lock up when using IntelliSense...
ffs
third time I've had to kill VS today because it got stuck
 
I like how the intellisense just whines and gives up at the first sign of template hijinks
 
user1804599
I learned so much about vCard today.
 
Xeo
2:01 PM
It gives up at the first sight of UE4's codebase
 
Tell me more, Elyse.
 
@Xeo ouch
 
Xeo
because it's fucking huge and annoying
 
user1804599
@ThePhD I could find only one Python 3 vCard library, and it was a lot like Sol: undocumented and incomprehensible source code. So I read the specification and wrote my own vCard library.
 
@MadameElyse Kinky!
 
user1804599
2:03 PM
This library will forever stay proprietary so nobody else can use it too. :3
 
Nice.
 
I wanted to sneeze but couldn't ç____ç
 
time for work. See y'all
 
Toodle-oo, Panda-roo.
 
@Morwenn Did you look into a bright light?
 
2:05 PM
@jaggedSpire See you around :)
 
user1804599
And, of course, Windows still doesn't implement UTF-8 so I have to use windows-1252 with replacement characters.
 
user1804599
Or some other obscure (i.e. not ASCII nor UTF-8) encoding.
 
Why not UTF16?
5
 
user1804599
@ThePhD Results in even weirder mojibake.
 
@LucDanton I, too, try to make things "rememberable"
 
2:06 PM
whats vcard
 
@wilx No.
 
user1804599
@slaphappy A file format for address book entries.
 
oh, that rings a bell. why are you working with vcards?
 
user1804599
It is ancient, poorly and inconsistently supported, and incompatible between versions.
 
user1804599
@slaphappy To import contacts from the ERP system into Outlook.
 
user1804599
2:07 PM
Importing vCards into Outlook is very easy. Generating them is also very easy.
 
user1804599
You can just encode all values as base-64 and not have to worry about escaping shit.
 
sounds like a delight
also you did change a lot
 
@HubertApplebaum not everyone deals with trolls well :)
 
2:25 PM
@Xeo to be fair, so do you regularly
 
Xeo
@LucDanton huh?
 
Sep 10 '15 at 14:36, by Xeo
just to not have to deal with UE's bullshit anymore
 
lol
Gamedev sucks
I actually enjoy web more rip me
 
@CatPlusPlus you poor person you
 
2:43 PM
@ven lol qibuild is from the company that makes those shitty robots that we see everywhere
I never saw those robots demoing without breaking down at some point
 
Ven
@slaphappy well, the guy that set it up worked for them before he worked here
which is why he knows it so well
 
does he know how to stand up, too xD
because the robot doesn't
 
Ven
@Morwenn Like in a std::tie ;_;
@slaphappy he's black, thus you're racist
 
you said the word
 
Ven
don't you N me
 
2:46 PM
@Ven Hey, he's a proponent of structured bindings :p
 
Ven
@Morwenn yay. maybe that means we'll get it eventually
 
Maybe.
 
Ven
I mean, I certainly am going to change jobs to avoid C++ next year, when I can. fuck this.
 
@Morwenn what's that?
 
@slaphappy auto {a, b} = enumerate(sequence);
 
2:49 PM
awesome
js calls that destructuring assignment
it's severly lacking imo
 
There are people saying we need it and other saying we're justing wasting our time for syntatic sugar again.
But I want it nervertheless :D
 
if it's syntactic sugar, it's easy to do
 
Ven
well, we'll want splats
auto {a, ..., b} = enumate(sequence);
that'd be really cool.
 
The thing is, its not syntactic sugar.
 
Ven
I can only dream:
 
2:51 PM
I disagree about splats, you can use a wrapper
 
It enables a class of things that CANNOT be done with std::tie.
So whoever's saying that can rightly go fuck themselves.
 
@ThePhD auto r = enumerate(sequence); auto a = get<0>(r); auto b = get<1>(r);
it is
 
Ven
template<class T> sum(std::vector<T> {head, ...rest}) { return head + sum(rest); }
template<class T> sum(std::vector<T> {}) { return 0; }
that'd be so amazing. so fucking cool.
 
std::tie isn't cool because you have to declare the variables first :(
 
Ven
@BartekBanachewicz would love it as well : ^)
 
2:53 PM
@slaphappy So you've just made copies of the 0th and 1st slot. 'Grats.
 
how is that different
 
RVO
 
You've copied/moved into the tuple, then you've copied a second time to get the items themselves. The hope is with structured bindings, you can elide those due to RVO, whereas in your example r is observable after the return and thusly cannot be elided by the language at all.
 
fair enough
 
Xeo
@LucDanton That's not giving up, that's the best solution. :P
 
3:02 PM
@Xeo the tools are learning as well!
 
@Ven It would be so fucking special cased
 
Ven
@Puppy well, you could probably figure out a way to build a "destructurable" object.
 
There's Scala/Rust/funcitonal langs for that
Google managed to write OpenGL wrapper in around ~700KB https://github.com/google/ion/tree/master/ion/gfx
/cc @Nooble
 
@набиячлэвэлиь but is it good?
 
3:11 PM
700kB is not a small amount of code so not sure why it's significant
 
@Borgleader That lib got opensourced 20 hours ago, so nobody knows for sure
 
700kB of self-extracting, self-compiling, and self-bootstrapping compressed source&compiler only!
 
Ven
@LucDanton 700kb. not 70.
 
Apparently there will be at least 55 proposals in the next mailing.
 
3:12 PM
@Ven yes that is the only objectionable part here
 
Ven
@Morwenn wow :o
 
Google doesn't care if you use NULL/nullptr, so long as you're mostly consistent (within the project).
 
3:27 PM
@набиячлэвэлиь .h/.cc files o.o whats .cc for again?
 
cleancode
 
@Borgleader C++ what else
 
@CatPlusPlus I like this explanation better:
Conclusion It doesn't matter. Possible Origin cc = C with classes, cpp = C plus plus — Lazer Sep 28 '10 at 18:42
 
Oh yes origins of extensions are important
Explain .C
That's also C++
(Someone just needed to tell C and C++ apart there's no further meaning)
 
@CatPlusPlus You missed the subpoint where google uses .cc because they write C with classes and not "proper" C++
 
3:31 PM
what is the best way to avoid "Already defined in ...obj" if I need to include ".h" in 2 files... like
main.cpp => include1.h ; include2.h
include1.cpp => include1.h ; include2.h
?
 
ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็‌​้้้้้็็็็็
Oh cool it does work
 
I know what my next nickname is
 
3:31 PM
What'd you expect, that snackdevs know how to handle Unicode
hubert pls
 
@HubertApplebaum you've barely adopted this one :P
 
@Jean-philippeEmond inline keyword on free functions, always.
 
@ThePhD unless its a variable
 
> free functions
 
@ThePhD im saying that wouldnt help him if his error is caused by a variable
D:
 
3:34 PM
I think I dont have free function... wait I'll check it
 
Ooh.
 
I tried to wrap each .h and .cpp with something like:
#ifndef include1_h
#define include1_h

AND
#ifndef include1_cpp
#defind include1_h

but doesn't works
 
You shouldn't need header guards around not-header-files.
 
^
.cpp files are the leaves in the include tree
they dont need to be guarded
 
Unlike children.
 
3:37 PM
> #defind
Stack Overflow knows. Google "header guards".
 
type issue
 
typical
bbl
 
it is #define include1_cpp (copy/past issue)
 
again, you shouldnt need #define include1_cpp
because its a cpp file
 
but @Borgleader have right.. I have variable into the include1_cpp
I need ton put inline ?
ok
 
Ven
3:40 PM
yes, inline is good. makes more speeds.
 
Honestly, us sitting here trying to guess what your files look like isn't going to help us figure it out.
Just go google your problem.
 
@Jean-philippeEmond You dont inline variables, thats what I said earlier.
inline would help if it was a function
 
Ven
I inline variables so they are on the heap, not the stakes.
 
2
Q: variable already defined error with namespace

AgoraI met "already defined error in AppDelegate.obj" with C++/cocos2dx. This is my code in gamestage.h #ifndef __GAME_STAGES_H__ #define __GAME_STAGES_H__ // stage 1; namespace gamestage1 { int btn_number = 9; } #endif game.cpp and menu.cpp use this gamestage.h file and there are no gamesta...

there
 
@Ven I even inline my virtual functions!
 
3:43 PM
but. I dont really know why I don't put the variable outside of my classes.. maybe I mistake.. If I put it into my classe (h) it should be fixed.
 
> fredoverflow
its safe
 
@набиячлэвэлиь It's the best article on header files there is, trust me.
It explains all the problems and describes the fixes.
 
ok I'll read their 2 article. Thanks @Borgleader and @fredoverflow
 
3:45 PM
I ask one question about ABI compatibility and .NET and I get tumbleweed
 
If you want to fix your problem as quickly as possible, the stack overflow answer is sufficient.
If you want to dig deeper and have enough time, read the gamedev article.
 
@Columbo My experience is that I chose to flash a modded BIOS that made the dynamic switching an option that I could set to static. My brother has an intel/AMD combo (also Sony) which failed to function due to lack of a Sony driver. I would dare to believe all but the first generation can be made to work nicely. If the manufacturer doesn't require special drivers of course...
 
@fredoverflow, I'll read. Getting answer in stackOverflow will give me the "How"
and not Why. When you know the "Why", you can answer multiple time to "how"
 
This is the .NET ABI thing I mentioned.
1
Q: How do I ensure binary compatibility when extending an enum used in an interface?

rubenvbSay I define an interface which uses an enum (defined alongside this interface), e.g. enum Direction { Left, Right }; interface Travel { void GoInDirection(Direction direction); } This interface will be used as a contract for MEF plugins. Say that later, I want to release a new version of...

ah wait, i just found the dupe
 
Ven
3:53 PM
japanese sex actors rarer than pandas.
 
@fredoverflow oh god...
 
@HubertApplebaum Behold, for I have conquered the overloading:
Now sol is feature complete and it's paper-writing time.
Can you inline images on github's Issue page?
 
@ThePhD How does C++ know that the raw string does not end in line 66?
 
3:58 PM
@fredoverflow Because that's not the order.
)" versus ")
 
I guess I'm not familiar enough with raw strings in C++ to understand your explanation :)
never used them
How exactly do they start and end?
 
@fredoverflow R"delim(blahblah)delim"
 
Wait, is the first ( not actually part of the string?
 
nope
 
user406009
@Mysticial Do you have a suggestion for a good profiler that could hopefully give me line-by-line costs?
 
user406009
4:00 PM
Right now I am just doing trial and error, and it's not very effective.
 
@LucDanton Do I have to use parentheses as delimiters?
like () or [] or {}?
 
@fredoverflow yes, you can only customise the part between parens and quote
e.g. R"eof(hello)")eof"
syntax colouration can be helpful
 
@ThePhD What was the performance impact?
 
@Borgleader I'm not even looking, I know it's horrendous.
 
4:08 PM
@rubenvb I managed to get my system working again after about six hours of hassle and finally downgrading drivers + rebuilding initramfs. I think I'll just ignore updates on graphics drivers from now on...
 
topkek
 
@Columbo What did you do? I've never had upgrade issues, but then again, I'm not running that system on Linux anymore.
 
@rubenvb .... just update nvidia et al?
 
And what happened? X failed to start?
 
I had to rebuild the initramfs first, then it just got stuck at 640x480.
 
4:09 PM
You can't ignore nvidia updates as a new kernel will inevitably invalidate the old module.
 
@rubenvb Then I won't update the kernel anymore.
I'm done with this shit. Peace.
 
@Columbo OK. Call me when you have Xorg.0.log when your partial upgrade breaks everything.
 
@rubenvb I have it.
It basically refuses to take the normal modelines because "hsync is out of range"
 
You're using the proprietary drivers, right?
 
oc
 
4:12 PM
sup lounge
 
@ThePhD Gonna have to optimize that shit
you know you want to :)
 
<.<
I have to do no such thing.
 
> Would a functor not in a category be considered a morphism?
 
@ThePhD i thought optimizing sol was the whole point of your project thingy
or did you finish that already o.o
 
I mean.
YEs.
But the optimization for this is so hard to implement in VC++.
 
4:22 PM
IF I understand what I'm reading.. we can convert HWND to handle but not necessary handle to HWND because the handle can be other than a window apps.. but it is possible to know if the handle can be convert in hwnd?
 
If you don't know what shit is passed around in your program, you already lost
 
@ThePhD good job!
 
It's similar to "how do you know if memory is valid". If you ask this question, you already lost
If your function needs to take in a HWND, take in HWND, don't take in HANDLEs and convert back, that's retarded
 
\o/ Glorious
 
but when I use the snapshot it return Handle.
its why I ask but It sure that if I can take HWND i'll ^^
I'll continue my search! :-) thanks
 
4:28 PM
You need to refer to the official documentation of the function you're trying to use
 
> tfw no python
 
I think I'll get handle by list all windows by enum and looking for the processname for each until I got the perfect match. and return the "HWND" of the window.
 
@Jean-philippeEmond You generally don't want to convert in either direction. What are you doing that makes you think that would be useful?
 
it make sens?
I want to find window by processname and not by title because title sucks.. If I have example firefox open with the words in title it will handle Firefox and I won't (it is and example.) So I tried to be more accurate and use the processName.

so I read About Snapshot tool help but it return handle and not HNWD.
So.. I already a function with enumwindow.

I think about using it and foreach the list of HNWD I got... and match it with GetWindowThreadProcessId and GetModuleFileName
But I dont want the my app take 2Go of memory and process for getting the HNWD correctly lol
so I hesitate again how I can do it
 
4:47 PM
@Jean-philippeEmond Assuming you mean CreateToolhelp32Snapshot, it's returning a HANDLE because what it's returning isn't an HWND at all. You don't really need it though. What you want is EnumWindows, then GetWindowThreadProcessId on each, then EnumModules, and finally GetModuleFileName.
 
I thought there was a shortcut around EnumModules
 
dont think EnumMOdule is needed?
 
But I make it a point to not go close to Win32 API anymore
 
@ThePhD Champagne.
 
the only nice ms code I have seen is the linq source
and they fired meijer
er, roslyn looks nice also
 
4:50 PM
@JerryCoffin, With GetWindowThreadProcessId, it return the pid.
With the pid I can do something like: GetModuleFileName((HMODULE)thepid, processName);
*processName, 255);
 
Erm. Good luck with that
 
Ven
@JohanLarsson wat; they fired meijer?!
O yea, he does java now, right?
 
You can do anything like that. (HMODULE) "I suck" also compiles
 
Ven
(HMODULE) [tag:msvc-so-ice]
 
Why would you be casting handles. If it's not a HMODULE it's not a HMODULE.
 
Ven
4:52 PM
100% works.
 
@sehe, ok ok.. it was a question about why using the enumModule ^^
 
Strong typed handles were introduced in Win98 or so.
@Jean-philippeEmond It wasn't!
 
because stuff is typed for a reason
 
Don't postulate nonsense and then say "It was a question". That's worse than the teacher "Just checking who was paying attention"
 
@sehe no no. sorry.. it is just.. sorry .. the english is not my primary language so.. the link in my head is not always accurate but.. I mean that if I can that its works.. (what is not write: so why using enumModule if I can bypassed)
but you have answer the question :-/ sorry about confusing. I'll try to explain more and writing more.
 
Ven
4:57 PM
Oui baguette.
 
Rien du volontiers
 
Cet impeccable Français.
 

« first day (1943 days earlier)      last day (3006 days later) »