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

Xeo
Xeo
12:00
@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
cpx
Well soon, I'll fail my computer science degree. :P
@cpx High five! That makes two of us!
Xeo
Xeo
12:10
lol
> But I've tinkered with Linux for a fair amount of time to know what rm -rf / does
Xeo
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
@FredOverflow Fix'd
@Cicada You're mean. I bet your programs start with int mean() instead of int main()!
3
Xeo
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
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
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
@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
@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
@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
@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
Xeo
12:34
*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
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
@R.MartinhoFernandes IE is free
@Cicada What about Windows 7? :)
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
@Cicada You forgot Win7
@FredOverflow I don't like Windows.
cpx
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
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
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
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
@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
Xeo
12:51
> 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
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
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
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
Xeo
12:54
@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
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
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.
... :(
13:01
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
13:10
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
Xeo
13:26
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.
13:43
@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
13:46
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.
13:47
@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 ;)
13:49
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
Xeo
13:51
-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?
Xeo
Xeo
Note: All standard container headers are guaranteed to include <initializer_list>
13:51
@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
Xeo
By default, Clang uses libstdc++
It will work fine in 4.0
Xeo
Xeo
Which version of GCC do you have?
13:52
@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.
13:54
@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"
13:55
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
Xeo
@KonradRudolph Apple Clang 3.1 is based on Clang 3.0
13:56
No, application kernel
@R.MartinhoFernandes but, “based on LLVM 3.1svn”
Database access/computations/whatever
oh right
Xeo
Xeo
@KonradRudolph A very early version.
@KonradRudolph Which means somewhere between 3.0 and 3.1
13:56
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.
13:57
@CatPlusPlus you want him to Think Different ?
Xeo
Xeo
FUCK YEAH!
libc++ builds, finally.
Amazing. yawn
Xeo
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.
13:58
@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
Xeo
@R.MartinhoFernandes Right after the libc++ tests
> Unlike the Windows UCS-2 Unicode solution
Xeo
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 (4400 days later) »