« first day (776 days earlier)      last day (4173 days later) » 

Xeo
12:00 PM
@cpx That was the idea behind it.
 
> writing kernel-mode bots for games, hijacking python and lua virtual machines, userland rootkits, and such
What. Kernel mode bots? Userland rootkits? I don't even.
 
what.
 
@Cicada what the hell
 
cpx
Well soon, I'll fail my computer science degree. :P
 
@cpx High five! That makes two of us!
 
Xeo
12:10 PM
lol
 
> But I've tinkered with Linux for a fair amount of time to know what rm -rf / does
 
Xeo
Man, the "Get started" pages on libc++ and libc++abi are so helpful.
 
linky?
 
Yay, today somebody upvoted my most downvoted answer ever :)
 
12:14 PM
@FredOverflow Fix'd
 
@Cicada You're mean. I bet your programs start with int mean() instead of int main()!
3
 
Xeo
Fuck rand().
 
Fred I upvoted too because that's one of the strangest answer I ever seen.
 
@FredOverflow Just kidding :) undownvoted. Sadly the compiler dislikes int mean().
 
@StephaneRolland Thanks. How is it strange?
 
12:17 PM
calling rand three times... it's jsut weird ?
 
Calling rand three times after srand is like foreplay ;)
 
There we go again.
 
The answer is wrong all the answers are wrong don't use srand/rand
 
You gotta warm up the randomness.
@CatPlusPlus I can never remember the modern random syntax with these standard distributions and whatnot :)
 
I run exp inside a cosine when I need pseudo chaos
 
12:19 PM
dafuq is with the room title??!!
 
Anyone tried SQL Server Express 2012? Does it uninstall properly now?
2010 didn't
 
I haven't tried it, and I'm not going to anytime soon either
 
Haven't tried the 2012.
 
@TonyTheLion Fixed
> Although almost all the project files have the ".c" extension, MAME is actually a C++ project. The source code's size is rather large - 110 Mbytes.
@FredOverflow Holy tittyfruits.
 
12:25 PM
@R.MartinhoFernandes probably 1 MB code and 109 MB comments ;)
 
> memset(state->m_pstars_regs, 0, 16 * sizeof(UINT32));
why not sizeof(state->m_pstars_regs)?
 
@R.MartinhoFernandes ohthx
 
@FredOverflow I dislike how it often mentions "there are n ways to fix it", and never mentions the bestest way to fix it, which is to use std::fill and not fuck around.
 
@Cicada The author probably doesn't know any better.
 
"MAME is actually a C++ project" using memset ahahahah no
 
12:29 PM
@CatPlusPlus When I applied for my internship two years ago it said "C++ project". When I opened the source code it was just C with new and delete.
 
What does Zooey Deschannel has to do with the big bang?
 
@kbok She is made of particles that originated in the big bang?
 
@kbok You mean she'll be on the show?
 
@Cicada You do, too, yet you're not starring on a MS ad campaign
 
12:32 PM
@kbok Thank god.
 
@FredOverflow Notice how many of them stem from not really using C++, but fucking around instead.
 
@FredOverflow IIRC, that article is just "Noobs fuck with pointers, noobs get it wrong, just as expected." and virtually none of the samples are actually of Modern C++
 
Stop using the term "Modern C++".
 
What exactly do you guis mean by "Modern C++"?
 
@kbok "Big bang" as in "huge pile of money" or "beginning of the universe" or "silly sitcom I like to watch"? :)
 
12:33 PM
@Cicada "C++ from the end of last millenium"
 
@Cicada No naked pointers. RAII to the max.
 
How good is PVS-Studio?
 
@FredOverflow I don't know
 
@R.MartinhoFernandes We could call it Metro C++ to balance things out since Microsoft renamed their Metro stuff to Modern, afaik
 
@Borgleader Seems pretty damn good at bashing C with classes projects.
 
Xeo
12:34 PM
*grml*
 
@Borgleader from what I've heard and seen, very good
 
what is a good scheme implementation for windows
 
@DeadMG I don't think I would take a "C++ job" in the industry. There's too much risk of ending up having to fix a C with classes project.
@Cheersandhth.-Alf Racket or Dr. Scheme IIRC
 
 
@kbok I... I'm not sure how to interpret that??
 
12:35 PM
is zooey good
 
Me neither
 
@FredOverflow thanks! i'll google them
 
@Cicada They want you to interpret it as "Go buy MS products"
 
The only good MS product is Visual Studio.
 
oh no, it's not window 8, is it
 
12:37 PM
@R.MartinhoFernandes IE is free
 
@Cicada What about Windows 7? :)
 
@Cicada cough
 
Would anybody ever consider even paying for IE??!
 
@R.MartinhoFernandes That implies a lot about the other products ;)
 
DOS is a good product
 
12:38 PM
@Cicada You forgot Win7
 
@FredOverflow I don't like Windows.
 
cpx
@Cicada Oh, great.
I don't need a degree when there's C++!
 
@TonyTheLion You clearly prefer XML to SQL, right?
 
I prefer neither
they both suck
how much XML is used where you work?
 
12:44 PM
They don't use XML here. They store their data as prolog predicates.
 
oh, I'm sure puppy would love that :P
 
SQL is not terribly bad
 
it's bad
 
Are there recommended tutorials that teach C++ to a Java programmer? I remember Bjarne talking about writing one, but I don't think he had the time yet. Also Herb Sutter wanted to write one, IIRC.
 
I hate it, with a burning passion
 
12:47 PM
Sucking Query Language?
 
@FredOverflow that's a hopeless quest. Java devs can't learn C++, they're doomed
 
@TonyTheLion Why?
 
@CatPlusPlus because I find it annoying to deal with, think with, work with.
 
meh
 
also, I'm not a DBA
 
12:49 PM
Has anyone actually written a working application that uses Qt sockets?
 
"Can we meet tomorrow afternoon?" "Yes. What about 12h00 PM" 12hPM is not the afternoon!
 
I've written Qt application, but not using Qt sockets
 
@jalf, you doubt it ?
 
@jalf I have! A while ago though.
 
12:49 PM
@Cicada hmm, so it can be done...
You didn't notice it adding 20 seconds latency by any chance, did you? ;)
 
@jalf You're probably doing something wrong
 
@jalf Hm, no.
 
@CatPlusPlus you think?
 
I have a feeling
 
Xeo
12:51 PM
> initscripts : Breaks: console-setup (< 1.74) but 1.68+squeeze2 is to be installed
I have a feeling I'm misunderstanding this message
 
@TonyTheLion DBAs design DBs :v
 
Xeo
I read it as "console-setup requires < 1.74, but 1.68 is asked to be installed" - which doesn't make much sense.
 
@Xeo Something wants to install console-setup 1.68, but initscripts breaks console-setup < 1.74
Maybe
 
Xeo
Well, I'm trying to get gcc 4.7 on my Debian squeeze box. This proves harder than I thought thanks to unmet dependencies. :s
And if I set the target to testing or unstable, I get those "Breaks" messages.
 
Another Singleton war, in case you're bored
 
12:54 PM
You probably need to do full sysetm update after changing target
 
It's gonna break anyway.
 
Or maybe don't use Debian
 
Does g++ have <thread> and <future> and stuff yet?
 
It usually helps with Debian problems
 
@CatPlusPlus great. I'm glad to have that information. NOT
 
Xeo
12:54 PM
@CatPlusPlus Meh, can't be arsed to setup a new vbox
 
SQL is okay
Beats doing this shit manually
 
@Xeo If it's a vbox and you don't care about breaking it, point your sources.list to sid and you'll be fine (or not). It might break.
 
Xeo
I don't want to break it either, not after finally getting Clang compiled. :s
 
Try testing then? It could break too, but less likely.
Also why are you building bleeding-edge on the oldest possible distro.
 
Xeo
[13:58:10] <Xeo> *sigh* Is there *any* guide out there that tells me how to correctly set up libc++ and libc++abi on Linux (Debian, specifically)?
[13:58:56] <jMCg> Xeo: not yet, but when you find out, you should document it.
... :(
 
1:01 PM
Arch is great for bleeding-edge stuffs.
 
Today's quest: getting GTK3 running on Windows
 
@Xeo Make a copy before breaking it? Or snapshot or whatever.
 
Well, there are binaries at least
I still have Boost 1.44 compiled in my compiled libs folder
I need to clean this shit
And the binaries work, cool
 
1:10 PM
I wonder if there's more Windowsy theme
Hey, it even works decently
 
@CatPlusPlus Why do you need that?
 
Because I want to use it?
 
gtkmm is apparently better than Qt's API so
 
Report your adventures when you are done, then.
-1
Q: linking error while using socket program in c++

user1866111I wrote some sample socket code in visual studio 2008 in c++ but it throws errors such as 1>Socket.obj : error LNK2001: unresolved external symbol __imp__accept@12 */

Close, please.
 
Xeo
1:26 PM
Omg, libc++ finally built.
Let's run the tests and see how hard they punch me in the face.
 
@R.MartinhoFernandes I can predict what's to come, it'll be something along the line of: "It's terrible and it sucks"
 
I won't bet against that.
 
1:43 PM
@FredOverflow This is so cute: "I don't understand how you can completely avoid globals"
Always baffles me when people say that. Is it really such a hard concept to grasp that it is possible to not have any globals?
 
Some people have no imagination.
 
The problem is lack of language-level support for threading context around
 
Reader monad!
 
Well, sometimes globals are very convenient, and I think these people actually mean "I don't understand how you can completely avoid globals without having to put some thought into the design, and I don't have the time to do that."
 
Yes, that
In C++ this gets boilerplatey fast
 
1:46 PM
dafuq even is threading context around
 
@CatPlusPlus Fast? Your generousity is leaking.
 
All right, I am sick and tired of CodeLite. It is so incredibly slow at my University. Just closing the program takes roughly 30 seconds.
 
@DeadMG It's the reader monad :P
 
@jalf You're just having hidden globals :)
 
Downloading Visual Studio 2012 via DreamSpark now.
 
1:47 PM
@DeadMG Passing that fucking logger state around
 
@FredOverflow no, some people literally mean "I don't see how it is possible to write code which has no globals"
 
Feb 20 at 0:21, by DeadMG
I have way too many classes named "Context"
 
hmm
I have clang 3.1 which should know initialiser lists already but the compiler complains about them anyway. Is that a known problem or did I make a mistake?
 
@KonradRudolph Code?
 
@jalf Well, as soon as you use std::cout, you're using a global ;)
 
1:49 PM
Now, why the hell Glade requires DBus to be running
 
Did you #include <initializer_list>?
 
ah, do I have to do that?
 
> mini.cpp:2:10: fatal error: 'initializer_list' file not found
 
Then clang probably does not support them yet?
 
Xeo
1:51 PM
-stdlib=libc++ :)
 
What's your standard lib?
 
#include <vector>
#include <initializer_list>

int main() {
    std::vector<int> tests { 1, 2, 3 };
}
 
Did you install libc++ properly?
 
omh
*omg
 
Xeo
Note: All standard container headers are guaranteed to include <initializer_list>
 
1:51 PM
@FredOverflow well, let's say user-defined globals then :)
 
Also, it's only needed if you use std::initializer_list yourself.
 
apparently I have no idea how clang works – at all.
 
Xeo
By default, Clang uses libstdc++
 
It will work fine in 4.0
 
Xeo
Which version of GCC do you have?
 
1:52 PM
@KonradRudolph magic
 
@CatPlusPlus Some people don't understand how you can write code without mutating variables :)
 
hmm, this is worse ^^
anyway here goes:
 
Agh, I really don't like UIs.
 
^ ^^^^^^^^^^
 
@TonyTheLion hehe
 
didn't take long then :)
 
That's generic reflection
 
what is?
 
1 min ago, by Cat Plus Plus
Agh, I really don't like UIs.
 
@KonradRudolph Sounds like something is broken.
 
1:54 PM
@CatPlusPlus yea right :P
 
well, fuck :/
actually the first error in the list is an #error pragma … that’s weird
 
@KonradRudolph Waaaaait.
 
so from today onwards I'm no longer a C++ dev, but a sysadmin
cause I'm doing nothing but configuring build servers and sysadmin type jobs :(
 
"Apple clang 3.1" is not the same as "clang 3.1"
 
1:55 PM
I was thinking about doing kernel in Haskell and UI in C++ with gtkmm
 
@R.MartinhoFernandes Yes, true
 
Apple versions their compiler according to Xcode, IIRC.
 
Maybe that will keep me from getting suicidal
 
@CatPlusPlus you writing an OS or something?
 
Xeo
@KonradRudolph Apple Clang 3.1 is based on Clang 3.0
 
1:56 PM
No, application kernel
 
@R.MartinhoFernandes but, “based on LLVM 3.1svn”
 
Database access/computations/whatever
 
oh right
 
Xeo
@KonradRudolph A very early version.
 
@KonradRudolph Which means somewhere between 3.0 and 3.1
 
1:56 PM
grrr
 
I'm the lion here, I should be doing the growling :P
 
51 secs ago, by Xeo
@KonradRudolph Apple Clang 3.1 is based on Clang 3.0
This is so funny
 
Apple, fuck you. Sincerely, world
7
 
Your fault for thinking Apple is competent
 
So it's likely just 3.0+some fixes, and not 3.0+some features.
 
1:57 PM
@CatPlusPlus you want him to Think Different ?
 
Xeo
FUCK YEAH!
libc++ builds, finally.
 
Amazing. yawn
 
Xeo
And links correctly with libc++abi
 
Can you build ogonek now? whistles
 
> In UTF-8, each character might need anywhere from 1 to 6 bytes, so it's not possible to assume that the next byte is another character.
 
1:58 PM
@CatPlusPlus Joel?
 
Well, and my g++ appears broken, too
wow, I’m annoyed
 
Just like 99% of the world, GTK is bad at Unicode
 
Xeo
@R.MartinhoFernandes Right after the libc++ tests
 
> Unlike the Windows UCS-2 Unicode solution
 
1:59 PM
haha
 
Xeo
And probably after I get back from that appointment I have in 30mins
 
That Windows-actually-does-UTF-16-now knowledge isn't very widespread
 

« first day (776 days earlier)      last day (4173 days later) »