« first day (1641 days earlier)      last day (3322 days later) » 

9:00 AM
it's also the sort of thing one of my colleagues would say -.-
 
@LightningRacisinObrit isn't it great working with... contractors
 
@ Mike ya secure shell and GCC version 3.4.6 — jyoti hattikatti 35 mins ago
wait what, 3.4.6? o.O
 
@thecoshman oh that'd be nice. contractors are easier to get rid of :D
@Griwes ya
 
should I bother trying to understand how quaternions work
is it worth it
 
@Pris Yes, they are awesome.
(Even for purely mathematical reasons.)
 
9:14 AM
Suddenly my day got brighter
And I haven't touched my screen brightness controls at all
 
@Griwes The four dimensional complex numbers bit evokes a fight or flight response in my very soul
 
If you understand the purpose of complex numbers in 2D for rotation, quaternions are very logical
 
@Griwes are you familiar with Clang's libTooling?
 
ITT Andy implies Griwes is a tool
 
I'm trying to parse some C++ source from a string, and I can't figure out how
the sources are a mess and despite of what's written everywhere, the documentation is quite poor
 
9:16 AM
It is
 
The farthest I could get so far is this: coliru.stacked-crooked.com/a/a1d2188d049f7e35
but it only works if the file test.cpp actually exists on disk
its content are ignored, but the file must be present. I want to be able to run a front-end action given a string, without the need to create a file
 
@AndyProwl Nope. I'm sitting a desk away from someone who tried it, but eventually reverted to using the Python API for the thing he's working on.
 
I see. Thank you anyway
@Puppy is my last hope, I guess
 
> Man Accidentally Shoots Mother-In-Law After Bullet Bounces Off Armadillo
 
MASMILABBOA
Also, no kill of one's mother-in-law is ever accidental. That armadillo was carefully positionned.
 
9:28 AM
why would anybody shoot that poor animal?
 
@AndyProwl your problem is handling files not found?
 
@thecoshman No, my problem is that I don't want my unit tests to be dependent on the file system. I want to be able to specify the code as a string, and I don't want to have to create a file whose content is ignored anyway. I know Clang supports a virtual file system but I don't know if this functionality is available through ClangTool, and the lower-level interface is a mess of ownership fail and outdated tutorials
 
what's the vie on auto fn() -> T{} syntax? I know that with complex templated return types it can be nicer... even though you could just use 'using' fro the most part.
 
@AndyProwl quick'n'dirty hack would be to modify SourceManager (clang.llvm.org/doxygen/SourceManager_8cpp_source.html#l00679)
but there's surely a cleaner way to do this
 
@AndyProwl vOv a stream then?
 
9:32 AM
I can't remember it (if I ever knew it) right now..
 
@thecoshman All my code uses that syntax :p
 
@Cicada ... was looking for some thoughts on the matter really...
 
inb4 anti AAA cult
 
@thecoshman I tried using a FrontendInputFile constructed from a MemoryBuffer, to no avail
 
@Cicada oh I bet they love auto fn() :P
 
9:34 AM
@MarcoA. I don't want to change the sources or hack stuff around, I'm pretty sure there is a way to achieve it (I mean, it's just reading code from a string rather than from a file)
 
@Cicada would use it even for obvious types, much like the general convention of AAA?
 
Yes. I don't skip the trailing type otherwise I kind of get lost in types.
 
@Cicada isn't that the pint of AAA
 
I mean auto fn() -> T instead of auto fn()
 
You AAA scrubs
smh
 
9:39 AM
5 mins ago, by Cicada
inb4 anti AAA cult
 
luckily it's only Cicada and Andy
 
oh, I had great fun the other day with some Java guys trying to explain to them why "Foo foo" is a terrible class and/or instance name.
 
I didn't name you but anticipated it :p
@Rapptz alf also does it
 
Class klass
 
that implies Alf matters
 
9:39 AM
I'm fence sitting on the AAA thing...
 
Almost Always Alf
2
Alf Always Auto
 
but then the auto t = T{} syntax didn't seem obvious to me at first, but makes sense.
and the consistency you get from that form is nice
 
Just write T t{};
C++ isn't consistent enough for AAA.
 
@Rapptz That’s default and not value init, rip.
 
James Mc Nellis also does it IIRC
 
9:41 AM
@LucDanton whistles
 
> C++
> consistency
:light chuckle:
 
That's the argument usually used.
"I use AAA because it's consistent"
 
@Rapptz doesn't mean you should give up on chances to have code more consistent
 
I use it because all my function names line up nicely
 
"There are exceptions that mean you can't have 100% consistency, so don't bother at all trying to be consistent even though you can for 90% of the code"
 
9:42 AM
@Cicada Even that isn't possible with AAA.
 
For function names it is possible
for variables, it's harder
 
@Rapptz Are you talking about special members?
 
Not even special members.
 
something like that could work
 
9:43 AM
Then what
 
constexpr auto stuff() -> ...;
auto other() -> ...;
 
I'm still very fond of the hack'n'slash thing though
 
@MarcoA. That's what's going on under the hood already. It doesn't help :(
 
Put the constexpr on a previous line of course!
 
absolutely disgusting
 
9:44 AM
I'm kidding
 
@AndyProwl did you also make sure the preprocessor object is created after the remapping?
IIRC correctly that was important
 
Thankfully I use VS hence I am not tempted in marking any function constepxr
4
Thank you VS for bringing consistent mediocrity on this low world
 
@Rapptz you are providing very good examples of where AAA can't be applied, which as AAA suggest, we already except, but I've yet to see you provide a good reason to avoid AAA
 
RAAApptz
 
@Cicada someone has to be worse, and VS make it easy for the others to not be :P
 
9:46 AM
@Rapptz this
 
Lightness' star-of-emphasis
 
@LightningRacisinObrit I'll give you the same response then, so why fight where you can be consistent?
 
@Rapptz I'm actually leaning towards that myself, frankly. We do it with the template preamble after all...
Although arguably that layout represents something a bit different
 
@LightningRacisinObrit yeah, but template stuff does tend to become just a little long winded :P
 
I don't really consider them the same.
 
9:47 AM
@MarcoA. I think so - it's ClangTool code, not mine, but it seems to me the remapping is done before. The problem is, although the remapping is found, the file still has to exist
 
@Rapptz yeah fair enough
 
template<typename T>
constexpr
auto f() -> decltype(...);
ugly
 
Still, speaking purely stylistically, I don't mind it. I used to gawk at idiots writing even return types on their own line. That's a bit much, but I'm starting to approve of using more vertical space, as I get older. constexpr seems to fit that quite nicely, if you're an AAA idiot and really want shit to line up despite your idiocy
 
Someone is trying to dilute my stars-per-starred-post ratio
 
I don't dislike it
 
9:48 AM
@Rapptz It is
but that's decltype's fault frankly
or, rather, the fault of the rules that mean we need it, and in that form
trailing-return is gash. a total hack.
 
Well you can remove it and I still wouldn't like it.
 
I got easter gift from work
 
@AlexM. It's not Easter
 
it's some stuff and some puzzle on a piece of paper that I'm too lazy to solve
 
eastern [sic] fool
 
9:49 AM
@LightningRacisinObrit it was 2 days ago :(
 
@AlexM. WRONG AGAIN
 
@LightningRacisinObrit I'll grant you, I don't like it either. how ever, auto fn() :D
 
inb4 after someone takes the puzzle solution to HR he gets a lifetime supply of PC games for free
 
but nah, I think auto for function return types is taking it too far...
 
9:51 AM
@thecoshman That would be decltype(auto)
 
user1804599
@Rapptz auto constexpr
 
@Rapptz Next-gen AAA (I'm kidding)
 
@thecoshman -.-
 
What is AAA?
inb4 Google Padawan
 
#define let auto&&
 
9:52 AM
@Cinch Adaptive Anti Aliasing
 
@AndyProwl Qualified Herb-Approved Experts Only™ can use auto&&.
 
rarely seen
 
Adaptive Anti Aliasing...
what
is that like default ctors?
 
@Rapptz I was going to respond with this... but wtf... why does that work? lol l breaks, but lol l{} is fine...
 
9:53 AM
echo "auto;" | g++ -xc++ -o a.out -
^ Alf's wet dream
or just sit in front of the computer and shout "AUTO" at it to make your program
 
@LightningRacisinObrit s/a.out/a.uto/
 
nice
Halo Life 3 confirmed!
 
@AndyProwl lol
 
9:54 AM
I think I'm going to give #define let auto&& a try
what can go wrong?
 
please don't touch my code
 
@AndyProwl into the spec it goes, if only for the purpose of annoying Rapptz and Lrio
 
wat wat wat
why can you do auto&&
 
lol I'm aware it's a silly idea but I like how it looks like
 
i thought you cannot assign rvalues
 
9:55 AM
@AndyProwl actually... probably is easier to just propose it and let someone else work out wtf is going on.
 
@Cinch The same way you can template<typename T> f(T&&);
 
@milleniumbug but that makes sense
 
@thecoshman haha no I find it easier to make my own experiments
 
@Cinch So does auto&&
 
@AndyProwl there might be a FrontendInputFile missing
 
9:56 AM
@milleniumbug but auto&& = value?
 
@MarcoA. I tried fiddling with that one, too
 
ITT Cinch's mind is blown
 
like isn't & = object reference and && = value?
 
I'm somehow frustresperate
 
@AndyProwl also this way?
(search for getMemBuffer)
 
9:57 AM
 
@Cinch You can also do int a = 5; auto* x = &a;
 
@milleniumbug that makes perfect sense
 
(i think)
 
ShareX history feature OP
 
that has to be a int*
 
9:58 AM
@Rapptz what is
 
@MarcoA. Wait let me check that. It looks like a complete example
 
but int&& var = value doesn't make too much sense
Unless it's just a reference.
 
@Cinch Read on references and binding and lvalues and rvalues.
 
lol&& x = lol{};
this works too
why are you confused
 

« first day (1641 days earlier)      last day (3322 days later) »