« first day (1588 days earlier)      last day (3362 days later) » 

12:00 PM
@R.MartinhoFernandes wrong korn :S
 
@Rapptz a miserable pile of C code
 
I haven't had popcorn in a long time.
 
fuck
I have to edit a Perl file
FML :/
 
@Rapptz Do you even live in America?!
 
12:00 PM
@Rapptz oh it's so nice, especially when made with coconut oil/butter
 
I don't want to touch that thing with a 5m stick
 
@BartekBanachewicz try to not be shit <runs away>
 
Sorry guys I have failed you.
 
I had popcorn a few days ago
while watching Top Gear
ooooh, new Weekly Wipe today yay
 
TIL memcpy_s.
Are we gonna get this monster in C++17?!
 
12:03 PM
@Rapptz isnt it just implementation dependent whether or not std::copy or whatever uses memcpy_s v memcpy
 
@Rapptz Monster? It's how it should have been from the start.
@Pris std::copy cannot make use of memcpy_s. As in, it's not forbidden, but it doesn't derive any benefit from it.
 
Ah it was a joke.
 
@thecoshman ha ha ha
 
I hear birds outside.
It's -30 C.
 
Penguins then
 
12:08 PM
I need to check if directory exists
I probably need to use a lot of $ symbols for it
 
Morning Folks
question on mysql:


I want to know where index tables are stored in mysql db
I heard they consume physical storage too.
But where are these tables located
 
@udaysagar answer: why the fuck do you think it's ok to ask mysql questions here?
 
Read the goddamn documentation
 
> I heard they consume physical storage too.
lol, no, they are stored in alternative My Little Pony universe
 
@BartekBanachewicz Why the fuck do you think it's okay to talk to people like that? In your very first message to them?
 
12:09 PM
Have any of you come across the acronym 'SLP' in code? Is it like a common thing? Context is mobile/gui framework
 
@udaysagar On your disk. Next to the data files.
@udaysagar Conventionally, everything is together in /var/lib/mysql/data/<db_name>/
 
if you keep feeding vampires I'll plonk you
 
what a threat m8
 
super lazy pris
 
Oh god please plonk me. Right now.
 
12:10 PM
@LightnessRacesinOrbit ok
 
It's about bloody time
Phew!
 
@BartekBanachewicz dude, I don't see mysql room much active as this. So, I just took a chance.
 
Jan 30 at 2:30, by Borgleader
"Hi I have a question about my retirement fund"
"Sir this is a convenience store..."
"I know but it's the only thing open at this hour"
 
does this look like a mysql room
honest question
 
12:11 PM
no but it was active
jesus
 
Sweet Loop Potato
 
@udaysagar A man walks into a car dealership. "Hi! I'd like a motorbike please." The salesman looks confused. "This is a car dealership, sir. We don't sell motorbikes." The man is a moron so he tries to rationalise his decision: "I know, but the motorbike shop is closed. Why can't you just sell me a motorbike"?
the end
 
That's funny I was just talking about mysql with my colleagues
 
yes hilarious
 
that's like entering someone's house and asking if you can take a shit because it appears it might have a toilet inside
 
12:12 PM
shitsql
 
@Rapptz It's got about the proper level of fail in it, so I'd say ... hmm.. "maybe"? :)
 
Work server's down
 
have you noticed that most shitty databases start at M
like mongodb. and mysql
 
@LightnessRacesinOrbit has it. — Shadur 10 mins ago
You're damned right.
 
12:13 PM
Coincidence? I think not.
 
Good thing we use DVCS
 
MyShittyDatabase
 
ew
don't start
the solution to this problem is proper replication, resilience and redundancy on your server. not taking on an awful workflow
 
@LightnessRacesinOrbit I get you. But there are many applications that use mysql with C++ right? I see some overlap. So, I just asked the question.
2
 
12:14 PM
@Mr.kbok I think I'll have spritesheets working today. Do you want them only regular or do you want to load them from i.e. JSON?
@udaysagar there are many applications that deal with cars in C++, so can you recommend good tires for a 1997 Opel Vectra
 
@udaysagar Personally I don't mind your question. But you have to understand that your logic is deeply flawed. You might as well use the fact that we all consume oxygen before we can begin programming, to justify asking a question about the oxidation of various materials.
 
because there's some (lol) overlap
 
@udaysagar Also no, not really
 
The on-topic rules are not guidelines for your benefit to find you the best place to get help quickly. They are rules for our benefit to keep the room limited to things that we want to talk about. Anyone here who is interested enough in MySQL to answer questions on it, will also be in the MySQL chat room. Which is why you should keep MySQL questions to the MySQL room.
And that's general advice for all interactions, not just on the internet but in the world.
 
I only ever see MySQL used with PHP
 
12:16 PM
@Mr.kbok I use it in C++ all the time
 
shitty technologies tend to go together
 
Or just ask on SO. Honestly more people are actively monitoring SO to answer questions... its disturbing how quickly questions get answered (or closed)
 
Many applications != tomalak.cpp
 
well, not really shitty.
 
12:17 PM
@Mr.kbok "there is no overlap between C++ and MySQL" != "Mr. kbok only ever sees MySQL used with PHP"
 
Like most of the python apps use PsycoPG, I don't consider either of those shitty
 
0
Q: What data is stored in the index file of mysql

UdayI am recently working on better indexing concepts. as part of that, I am curious to know what is that stored in the index file(.MYI file) if that is a MYISAM table or the shared table space if that is an INNODB table..? To give you more clarity, I know that when we create an index, the table wil...

 
@BartekBanachewicz if you say php or mysql shitty, you better keep away from facebook. There are some people who instead of looking at domain, look the problem and try to anser them.
 
You need to specify the storage engine, anyway.
 
12:18 PM
haha
 
it's myisam
 
@udaysagar Facebook is not exactly an example of good programming ;)
 
Of course it is
 
@LightnessRacesinOrbit I did not write "no overlap" so I don't see where you get that from
 
12:19 PM
@Mr.kbok From the conversation you were replying into with your assertion that udar was wrong to think any overlap existed.
 
@LightnessRacesinOrbit lol
 
@thecoshman is there a functional if in perl?
 
He's wrong about "many applications"
 
@Mr.kbok According to what evidence?
 
brb in around half an hour guys.
 
12:20 PM
please don't
 
@Mr.kbok I dispute your baseless claim. I particularly enjoyed how you attempted to debunk my dispute with another baseless claim
@udaysagar ok
@BartekBanachewicz Seriously. Quit being so fucking rude to people.
(giggle)
 
@LightnessRacesinOrbit I have only one baseless claim, which you only tried to debunk with a trivial counterexample "I once wrote an app..."
 
@Mr.kbok I didn't claim to have introvertible evidence. I'm just saying, I think you are wrong, and you have not presented any evidence to support your broad claim. I gave just one example to get the ball rolling.
For example, I can imagine that MySQL and Java frequently go hand in hand.
 
uh how the hell do i pass arguments to perl subroutines
 
I found this great resource on the net:
http://stackoverflow.com/questions/15109917/passing-variables-to-a-perl-subroutine
 
12:26 PM
shark overgrow
 
    ## Retrieve name
    my $name = shift;

    ## Retrieve age
    my $age = shift;
 
smirk overglow
 
room topic changed to Lounge<C++>: Just because this room is active does not mean you can post mysql questions! [c++] [c++11] [c++14] [c++-faq]
 
@MartinJames ooh i like that
 
Please die in fucking fire perl
you and every single person on this planet who wants to use it
 
12:27 PM
Bartek has serious mental issues
 
What about Perl 6?
 
If it's anything like Perl <6, see above
if it's not, why the fuck would you call it Perl
You wouldn't call a good language PHP X
 
Because it shares some basic philosophy?
Ask rightfold about Perl, he is all over it.
 
1 min ago, by Bartek Banachewicz
Please die in fucking fire perl
@FredOverflow talking to anyone that doesn't want perl to die in a fucking fire isn't a thing I want to do ever in my life ever
 
12:29 PM
Hello...when C++14 is going to be released?
 
> The committee draft of the C++14 standard, N3690, was published May 15, 2013, the working draft, N3936, was published March 2, 2014, the final ballot period closed on August 15, 2014, and the results (unanimous approval) were announced on August 18. C++14 was released on December 15, 2014.
 
user3010322
<_>
 
@CatPlusPlus lol
 
user3010322
This Professor refuses to assign homework.
 
user3010322
I'm not complaining, but if he doesn't assign homework how am I supposed to show him anything. :c
 
12:30 PM
Ohh God..Its released in december
 
@SmartDev do you want to buy an official ISO standard?
 
@SmartDev The C++14 standard is already finalized. Individual compilers will implement the standard at their own pace.
 
@BartekBanachewicz No
 
@ThePhD why are you supposed to show him anything at all? Are you supposed to think up a project idea on your own?
 
@BartekBanachewicz You can do my ($name, $age) = @_; instead.
 
12:32 PM
@ThePhD You're not...
 
@LightnessRacesinOrbit Is it a major release or just improvement of C++11 ?
 
@SmartDev It's billed as a minor update to C++11.
 
user3010322
@BartekBanachewicz This is programming with C, so I plan to implement every solution using C and then using C++, as a secretly snarky display of how much better C++ is than C.
 
@SmartDev They basically took C++11 and make it slightly worse.
 
user3010322
That and I'm also just concerned that maybe I'm not looking in the right place for the homework and I'm missing it and its deadlines.
 
user3010322
12:33 PM
... But I asked the TA yesterday and he was like "Yeah, he hasn't assigned homework yet, it's weird."
 
@LightnessRacesinOrbit what do you mean by worse?
 
@SmartDev It's the opposite of "better".
 
user3010322
[ Concern Intensifies ]
 
(Well, strictly speaking, it's not the opposite, but hey.)
 
hey C++14 added make_unique, it cant be all bad
 
12:34 PM
Yeah it's only a matter of time before we have 9,000 functions called make_*. Now that's progress!
 
@ThePhD you know that he probably doesn't care about C++ "superiority" right
 
std::make_lrio_go_away
19
 
@ThePhD So you want to show off and look like a tit
 
@SmartDev it's a small improvement over C++11. Mostly bugfixes.
 
@Pris lol
inb4 16 stars
std::make_out
 
12:35 PM
@SmartDev He's just butthurt, don't listen to him.
 
(two of those stars are from me btw :P)
 
@SmartDev Improvement on C++11.
 
@BartekBanachewicz Yes, that's a good way to engage in meaningful debate on subjective topics. Call your opposition "butthurt" and instruct others to simply ignore them. Good job.
 
@LightnessRacesinOrbit Wait, you have a new avatar? I don't like it.
 
user3010322
@BartekBanachewicz Probably. But the thought is a really nice thought, no?
 
12:36 PM
@FredOverflow :(
It's a painting my friend did of me!
 
I always get confused when people change avatars. Rightfold tends to be the worst in this respect.
 
@ThePhD what thought? Of doing double the work?
 
Rightfold tends to be the worst in most respects
 
@FredOverflow Yeah - I can't keep track. That, and the latest 'pacman ghost' avatar keeps changing size.
 
user3010322
@BartekBanachewicz That I can sneak in C++ into a C programming course by calling it extra credit or something.
 
12:37 PM
@ThePhD That's lame dude
 
@ThePhD you can sneak C++ into any course, but it's not extra credit.
it's just writing code because you want to write code
 
user3010322
It makes me feel better about the C. :c
 
it's hardly sneaking.
 
user1804599
I want a C++–AWK hybrid.
 
user1804599
Maybe it's possible using macros. :D
 
12:38 PM
awesome, passed the final course
 
@AMostMajestuousCapybara n4280.pdf
 
and that, is how you finish a semester without ever attending
 
user3010322
@райтфолд But C++ is already awkward.
 
@ThePhD do it if it does vOv. Doesn't change the fact that if the course is about C, then it's about C. Good luck using C++ on PIC microcontrollers that don't even have a C++ compiler.
 
feelsgood.jpg
 
12:38 PM
@ThePhD of course it is
 
@AlexM. grats
 
@AlexM. grats
 
user1804599
@ThePhD unlike AWK :(
 
user3010322
@AlexM. Congratulations!
 
:D pizza on the way
it's huge, and it's QF
 
12:39 PM
I've no idea why anyone would star it
 
user3010322
CELEBRATORY PIIZZZZAAA.
 
@AlexM. all about that cheese
 
Pizza lovers lounge
 
hmm I should go to lunch
but I'm in the middle of summoning Perl demons
I have the ring on the floor and everything
 
user3010322
I was gonna do something
 
user3010322
12:40 PM
But I forgot.
 
user3010322
Shittles.
 
@ThePhD what?
 
@ThePhD are you perhaps a Sims character
 
user1804599
Hmm.
 
user3010322
This is happening a lot these days.
 
12:41 PM
Maybe you have brain damage
 
user1804599
In CoffeeScript you can have a try expression without a catch clause and it'll just ignore all exceptions.
 
whistles
 
user3010322
@BartekBanachewicz But there's no gem on my head and I don't have the ability to say absolute nonsense and have people understand me and think I'm witty. :(
 
user1804599
OTOH throw throw a compiles to what results in a syntax error.
 
12:41 PM
@ThePhD That's okay; neither does he :)
 
Why std string does not have tokenize function?
 
@SmartDev Why should it?
 
Isn't it required by all?
 
user3010322
Because std::string is not a lexer?
 
@SmartDev All what?
 
12:42 PM
@SmartDev because people thought it would be out of the scope for the class
 
Its common use case to tokenize the string
 
@SmartDev Do you have any evidence to back up your claim? In industry I don't think you'd be doing much simple-string-tokenising.
 
It's a common use case to parse XML but there's no such method in std::string either
 
Doesn't mean it's the string who should hold that functionality
 
12:43 PM
> The compiler treats the inline expansion options and keywords as suggestions. There is no guarantee that functions will be inlined. You cannot force the compiler to inline a particular function, even with the __forceinline keyword.
 
Not really, no, also that doesn't mean it needs to be part of the core interface
 
TIL.
 
c++11 has regex support
 
@BartekBanachewicz I think it should be in the scope
 
@Rapptz Really?
 
12:43 PM
No
 
@SmartDev I don't.
What now?
 
@LightnessRacesinOrbit You knew __forceinline doesn't force an inline?
 
@Rapptz Oh, that bit :P
 
See, apparently more people agreed with me than with you, and that's why std::string doesn't have that @SmartDev
 
@BartekBanachewicz lol
 
12:44 PM
That's the misnamed VS directive, right?
 
user1804599
@SmartDev because it can perfectly be a free function.
 
Yeah.
 
@Rapptz In MSVC it does AFAIK
 
GCC uses attributes.
 
@райтфолд Yeah well it's not one of those, either
 
user1804599
12:44 PM
std::string already has way too many members. Don't add even more that do not belong in it.
 
@AndyProwl No, straight from MSDN.
 
@AndyProwl It doesn't
 
If you look in any framework, you will find function to tokenize
 
it's just a slightly stronger hint than inline
 
Tokenisation needs state, it's not string's responsibility to hold that state
 
12:45 PM
Uh
 
MFC, Qt
 
> The __forceinline keyword overrides the cost/benefit analysis and relies on the judgment of the programmer instead
 
@SmartDev Any framework?
 
user1804599
@SmartDev coincidentally MFC and Qt are shit.
 
user3010322
@AndyProwl It usually listens to you, so most times it can appear like it's never ignored.
 
12:45 PM
@SmartDev You're really bad at design hth
 
the guys who made dark fall (old myst-like adventure game) really didn't bother much with saving
 
2 mins ago, by Rapptz
> The compiler treats the inline expansion options and keywords as suggestions. There is no guarantee that functions will be inlined. You cannot force the compiler to inline a particular function, even with the __forceinline keyword.
 
user3010322
But the keyword is usually.
 
Writing a tokenizer is trivial. It does not need to be standardised.
 
@Rapptz Yeah, got there
 
12:45 PM
when you save you're presented with a windows save file dialog where you have to input the filename and extension yourself lol
 
user1804599
Boost has split.
 
and the file contains easily modifiable data like
 
user1804599
Use it.
 
loc:foyer,inv:tl:off,inv:sd:off,inv:pa:off,inv:pk:off,inv:cn:on,inv:sk:off,inv:c‌​k:off,
 
user1804599
@AlexM. fuck:off
 
12:46 PM
inb4 vck off m8
 
Yes look boost even has split
 
@Rapptz It does, as much as possible, whereas inline, _inline, and __inline only takes that as a suggestion
 
@райтфолд shut:up
 
user1804599
@SmartDev Yes, and it's not a member function.
 
So what's the point of __forceinline, "pretty please"?
 
user1804599
12:46 PM
Because it doesn't have to be one.
 
No wait that's inline
 
@AndyProwl Stronger hint
 
1 min ago, by Lightness Races in Orbit
it's just a slightly stronger hint than inline
 
It's "oh come on please, come on"
 
user3010322
@AndyProwl "Would you kindly"
 
12:46 PM
@AndyProwl COME ON TARS
 
24 secs ago, by Andy Prowl
No wait that's inline
 
I take inline as "you may" and forceinline as "you should"
 
@ThePhD the compiler should output "you seem to have a doubt"
 
@AlexM. So what?
 
12:47 PM
sir , plz 2 inline my program .best rgds, progammer
 
user1804599
also fuck Python's datetime module to contain a type named datetime.
 
user3010322
@AndyProwl <bioshock reference/>
 
@CatPlusPlus it's the only game I see doing this
 
inline is p much ignored
@AlexM. Games use binary formats for efficiency not obfuscation
So what if it's "easily modifiable"
 
user1804599
@Pris ugh square radio buttons with ticks in them.
 
12:48 PM
FTR I never happened to use inline or __forceinline to ask for inlining
 
It coincidentally also means "easily debuggable"
 
Might be because my code is not enough performance-critical though
 
Only gamedevs use them
And they don't even work
 
user1804599
I use inline because I like to put shit in headers.
 
So there's that
 
12:48 PM
@CatPlusPlus oooooh
 
@AndyProwl I use it very rarely.
 
@райтфолд Yeah but that's ODR-related, not for inlining
 
user3010322
inline is mostly for header-defined functions, anyway.
 
Usually the compiler is smart enough to inline.
 
user1804599
12:49 PM
Anon namespace > inline :D
 
that's static not inline.
 
@AndyProwl Yes, that's the only use for that keyword
Compilers ignore the hint itself
 
user1804599
speaking of register
 
user1804599
Tonight I'm going to work on register based VM.
 
char_separator<char> sep(", ");
tokenizer<char_separator<char>> tokens(text, sep);
this is what boost supports
 
user3010322
12:51 PM
Then use boost!
 
WE KNOW
 
does not c++ std should bring this?
 
It still doesn't fucking matter for type's interface
 
user3010322
No.
 
user1804599
no it already has strtok
 
user1804599
12:51 PM
go use strtok and leave
 
it could have made wrapper over strtok for ease
 
String str = "The quick brown fox";
String[] results = str.split(" ");
 
user1804599
here's how I split strings in C++: #include <python.h>
 
this is what java supports
 
user1804599
12:52 PM
yeah we know, so what?
 
@SmartDev This is useless 90% of the time though
 
I am just backing up my view for split to be in std string
 
user1804599
Nobody cares hth.
 
You're pitching this like we care in any way or have any influence over the language
 
Because then you want to trim extra spaces, or use a set of chars as separators, etc.
 
user3010322
12:54 PM
(Java's split is actually a regular expression matching, which is covered by C++ <regex>)
 
So you have this split method that's near useless so you do additional shit afterwards instead of just having a tokenizer class that does it correctly from the get-go
 
fuck people who don't Reply All and entirely ignore the people I added to the CC list
 
user3010322
(But remember that libc which is the default for GCC has a TOPKEK <Regex> implementation that doesn't work until GCC 5.0+)
 
@LightnessRacesinOrbit lol...dont add them in CC
 
> Aiding and abetting the enemy, sounds like TREASON to me!
 
12:55 PM
@SmartDev They are individuals who must be kept in the loop on such conversations. What you suggest I do instead?
 
lol, one guy's reaction to the news regarding the hollywood studio found making videos for ISIS
 
@LightnessRacesinOrbit I was just joking..
 
@ThePhD Eh? <regex> works since GCC 4.9
@SmartDev Funny joke!
 
user3010322
@LightnessRacesinOrbit Oh, I thought it started in 5.0,
 
user3010322
that's good to know!
 
12:56 PM
@ThePhD You were wrong
@ThePhD indeed!
 
std::regex is slow as hell.
Do not use.
 
user1804599
The last time my husband had sex his left testical dropped off?
 
Massive QoI issues.
 
Just think. If Yahoo Answers was managed better, it could have been what SO is today
Yahoo Overflow
 
boost::regex is way faster.
 
user3010322
12:58 PM
std::regex is faster on VC++ I think than g++.
 
JW was rather rude through that whole Q&A and the relevant GCC bug thread
I think he took the whole thing quite personally
 
user3010322
I'm not sure how clang's usual standard library compares.
 
user3010322
Question.
 
user3010322
Why does substr
 
12:59 PM
@LightnessRacesinOrbit It's because that question has been spammed on SO multiple times and people were insulting the GCC devs about it.
 
@Rapptz indeed
 
user3010322
and that new split function.
 

« first day (1588 days earlier)      last day (3362 days later) »