« first day (544 days earlier)      last day (4387 days later) » 

9:03 AM
oh shit, I have some how roped my self in being responsible for new shit that a lot of people here have tried and failed to get set up
I was happy not doing a lot
well, I say happy
 
@RMartinhoFernandes are you there?
 
hi, anyone here happened to know about transaction locking mechanism?
 
@bamboon Hi.
What's up?
 
@RMartinhoFernandes hi, I yesterday checked your wheels lib. I saw that you replaced all the typedefs with the new using syntax, do you think that one should do that always now?
 
There's really no big difference, but I prefer the new one.
And you can't use typedef for template aliases.
 
9:15 AM
yeah
the value ptr is basically just a copyable unique_ptr right?
 
@bamboon Yes.
I made it work with polymorphic classes now, but I haven't pushed those changes yet.
Gotta bail. afk
 
9:48 AM
what's new
 
this place is trying to move over to 'cloud' servers. To me 'cloud' is like Amazon thingy or Azure, where you get one virtual server, that act's like a real server but could in fact be many servers working together. This seems to be more the basic one real server running a few virtual servers
 
To me a cloud server is just an ordinary web server.
 
10:19 AM
do you mean just a dedicated server?
 
@ScottW meh
 
nah just any web server. some people even call stack overflow a cloud app. I try to avoid the term "cloud" as much as possible, it's not well-defined.
 
and hi
 
Fuck FTP, it's a piece of shit.
I wish all web hosts got sane and moved on to version control. No, it's not the same thing, but it's better and allows you to make mistakes.
 
@daknok_t Yeah I love making mistakes
 
10:25 AM
FTP: Fuck This Protocol :P
 
2 days ago, by sehe
Time to put my disaster recovery skills to the test. Guess what happened here:
 
@daknok_t that's true enough
 
@thecoshman some people even call stack overflow a cloud app: hey, am I not the only one using SO as a backup server by storing 4K blocks of base64 encoded blobs inside post inside <!-- comments -->. Cloud storage FTW!
4
 
@daknok_t Actually, cloud computing on a technical level is quite well defined. Admittedly, there are edge cases, but you have that with each term. The major issue ime is that mainly sales-people and self-proclaimed wizzkids misuse the term a lot
 
wizzkids even use the term painfully. Wizzkids are painfully
lunch time :)
 
10:37 AM
@sehe yeah, that was an ill-formed sentence, sorry :)
 
11:18 AM
weehoo - another busy day in so chat
 
11:37 AM
@sehe shhh, you'll wake them up
 
11:57 AM
Is there a difference between noexcept and throw() when they are part of a function declaration?
For example:
`virtual const char* what() const noexcept override`
v.s.
`virtual const char* what() const throw() override`
 
Xeo
@daknok_t throw() is deprecated IIRC
 
@Xeo But except that, they are the same right?
 
Throw specifiers as a whole are deprecated and in the meantime throw() has the semantics of noexcept, to be precise. So yes.
 
I want to add unique_ptr to VC++2008, is it OK to put it in std namespace?
 
In C++03 or C++11?
 
12:07 PM
@daknok_t C++03
 
Then I won't do that, to avoid confusion.
Put it in namespace cxx11std or something.
 
it's so long identifier...
well, anyway I got that it's really confusing to meet std::unique_ptr in C++03 code
 
namespace std11 is shorter. :P
 
or just use boost:scoped_ptr or switch to c++11
 
@rubenvb scoped_ptr sucks, there is no custom deleter or release method
and no scoped_ptr<T[]>
 
12:12 PM
@Abyx std::array to the rescue!
 
@daknok_t why array? it's fixed-sized
 
@Abyx std::array is also fixed-sized.
It's a wrapper around C-style arrays.
 
@daknok_t that's what he said
 
@daknok_t it's exactly what I mean
 
@Abyx I do hope you're using this C++03 unique_ptr: home.roadrunner.com/~hinnant/unique_ptr03.html
 
12:14 PM
And T[] isn't?
Oh wait I got it, sorry. :P
It's about delete[] vs delete.
My bad.
 
12:39 PM
@daknok_t The meaning of the term "cloud" is cloudy.
 
A cloud is just a visible mass of condensed water vapor floating in the atmosphere.
 
@LucDanton Doesn't throw() involve calls to std::unexpected or something?
 
@daknok_t so a cloud of toxic gas would be an oxymoron?
 
ugh
 
12:43 PM
@RMartinhoFernandes Oh yeah, as opposed to std::terminate right?
 
Everything is toxic if you take too much of it.
 
"cloud of hydrogen gas"
cloud of boron gas
cloud of sulfuric gas
pedants
 
Cloud of lead gas.
But clouds don't consist of gasses, but of liquids.
 
liquid isn't a thing, it's a state of matter, like plasma
it's physically defined
 
If a substance is in liquid form, it's said to be a liquid.
liquid |ˈlikwid| adjective
having a consistency like that of water or oil, i.e., flowing freely but of constant volume.
 
12:48 PM
@daknok_t Mars has clouds of ice.
 
posted on April 12, 2012 by Herb Sutter

I’ve been meaning to post a link to Vincent Lextrait’s nice (and actively maintained) catalog of what languages are used to build what modern and major mainstream software: The Programming Languages Beacon This table contains a list of major software products or utilities, with details about the programming languages used to implement them. Information on [...]

 
mawnin
 
0
A: Singleton initialization at compile-time

zabulusin .h file member of class: static CSingleton s_Instance; in .cpp file in the begining right after include CSingleton::s_Instance = CSingleton(); This is initialization in compile time. using new - this is initialization in runtime. Formally both of them initialization in compile time.

 
@daknok_t constant volume is not completely accurate
you can compress liquids, it's just damn hard.
and water will solidify under enough pressure
 
Blame Oxford Dictionary. :P
 
cpx
1:01 PM
mawning
 
@RMartinhoFernandes (╯°□°)╯︵ ┻━┻
 
cpx
I gtg for a while.
 
1:26 PM
@JerryCoffin Uh, check the date on the posting?
 
I'm trying to declare an array long long arr[N][P]; at the top of my program and it says "variable-size type declared outside of any function "
 
are N and P constants?
 
yes
 
are you sure?
 
wait no they're not
holy poop. brb.
 
Ell
1:43 PM
hi guys :)
 
holy poop. That's the first time I ever heard that
 
anyways thanks @Collin, that definitely was my problem
 
Oh, "holy poop".
 
i wonder why constants are required for variable arrays
i guess arrays are defined at compile time
 
Variable-size arrays are not allowed.
 
1:53 PM
or they don't want to risk arrays going buckwild
 
And the prize for dense yet flowery language goes to:
Mr. JOHN SMITH of [location undisclosed]
 
@JohnSmith Exactly it - if the sizes aren't declared constant, the compiler can't be sure of the sizes at compile-time
 
@sehe What are you talking about?
 
I mean why should it care though
 
@JohnSmith It has to reserve memory space in the program for it
 
1:57 PM
If I want to declare an array of size[over 9000][ackermann function with graham's number] it should let me at my own risk no?
 
If you write the ackermann function as a constexpr function, it lets you, provided your implementation has that much space.
 
@RMartinhoFernandes Haha
 
hahah
 
@JohnSmith There are upper limits, but it's not that the size can't be big, it's that is has to know for sure what that size is at compile time
 
1:59 PM
@RMartinhoFernandes buckwild poop and holy arrays
 
:P
What about languages like Python though where I can seemingly create endless lists and dicts on the fly honey dawg
I mean they aren't compiled languages, sure
But then again I am not sure what the fundamental diff. is between interpreted and compiled in terms of their underlying architectures and speeds
 
constexpr long long A(int m, int n) {
    return m == 0? n + 1 :
           m > 0 && n == 0? A(m-1, n) :
           A(m-1, A(m, n-1));
}
@JohnSmith Dynamic arrays?
Like std::vector?
 
@JohnSmith You can do that, if you allocate on the heap (which is what the python interpreter is doing for you)
Limited by your addressable memory space, os, blah blah blah
"on the fly honey dawg" Is it just me, or does this make more sense out of context than in?
 
@Collin I'm putting it on the starboard, so other people can see it out of context and judge.
@sehe Ah. I like to use "holy <insert fruit name (plural) here>"
 
@JohnSmith *Cue pedantic argument about there being no such thing as 'compiled' and 'interpreted' languages*
 
2:23 PM
@RMartinhoFernandes can you explain me why your value_ptr doesn't work correctly with polymorphic inheritance?
 
@RMartinhoFernandes that sounds like such a 'fob off' answer :P
 
@thecoshman Not anymore :P
 
@thecoshman No, it sounds like "Groovy!"
"Slicing!"
bamboon slicing, OTOH, sounds like an atrocious ritual that shouldn't really be in common use anymore
 
There are some places where it keeps on going.
room topic changed to Lounge<C++>: No more polystyrene questions accepted. It's now polyvinyl chloride time. [c++] [c++11] [c++-faq]
Damn.
 
2:33 PM
I get the feeling we should have an FAQ on when to not use std::function.
Of course I'm absolutely not volunteering on writing one.
 
Argg you can't do databinding on a password in WPF (╯°□°)╯︵ ┻━┻
 
flip ALL the tables!
 
How hard is it to write an entry for the C++-FAQ? (By the way we're still allowed to write these right?)
 
Screw it, it's not a secure password anyway ┬──┬◡ノ(° -°ノ)
@LucDanton Isn't it just ask a question, answer it, tag it as C++-FAQ?
 
More or less, yes. Make sure it's awesome.
 
2:37 PM
@RMartinhoFernandes But I can't draw!
@Collin I think it's also considered good manners to discuss it here beforehand. Although that's not what I'm after here, I'm not even sure if I want to write one.
 
there's a discussion about pointers to pointers to pointers going on in the next room
 
But hey, speaking of, would an 'When should I use or not use std::function (or boost::function)?' question be of use or not?
 
oh god
I have a irresistible urge to barge in and shout unique_ptr!
 
'How do I use std::function?' might be catchier.
 
or something
 
2:40 PM
@LucDanton What are you talking about?
 
@RMartinhoFernandes as in PVC? oh kinky :D
 
@LucDanton I'd say so.
 
Can't be awesome without drawings.
 
@Collin at last, (╯°□°)╯︵ ┻━┻
 
@rubenvb Where's the next room?
The geography of the Internet always confused me.
 
2:41 PM
Oh, I assumed he meant physical room, like where he is
 
Oh shit. I forgot you guys exist outside my computer.
 
We're all just AIs man..
 
about 20 metres away.
I don't think either knew about smart pointers
 
Shit, why do I always ask?
 
2:47 PM
Scientific programming => if it works, keep it => clueless about correct/readable code => pointers to pointers to pointers
 
@rubenvb peasants <-- FTFY
 
@RMartinhoFernandes your the one who started talking about fetish clothing
 
guys! hi!

Please, help me to remind what's the program name is for looking at DLL native functions?

Spy++ or WinDbg
thank you
 
@user1131997 dumpbin /exports?
 
> There are other fascinating integration points like a pretty neat Objective-C++/CLI bridge.
@sehe Holy watermelons!
 
2:53 PM
thank you very much :) I've forgetten about this utility, cause from standart console cmd.exe it's unseen

but from VC cmd is

thanks!
 
@RMartinhoFernandes well, I knew what slicing was, I just didn't know that and why happend, however after looking longer at the code and getting your hint I understand it now, thanks.
 
@RMartinhoFernandes Yeah. Haven't read it myself, but I thought it would be worthy of discussion here. Will be late tonight for me
 
what an LLVM CLI compiler?
 
@RMartinhoFernandes On a tangentially related note, I started wondering what kind of fruit a 'Mose' might be.
 
as in, that horrific C++ dialect that reeks of .Net without the C#?
 
2:56 PM
@rubenvb Not any existing dialect per se: It says CLI compiler, nothing about the language extensions, if any at all
That is, when you read the title. Haven't read the rest :)
Yet
 
@sehe It's a C++/CLI compiler.
With extensions to C++/CLI.
@sehe I have no idea what that means.
 
@RMartinhoFernandes oh I got my abbrevs wrong. Disregard my pedantry
@RMartinhoFernandes I keep hearing about those fruits, especially in your preferred idiom, e.g. "Holy Moses"
 

« first day (544 days earlier)      last day (4387 days later) »