« first day (428 days earlier)      last day (4511 days later) » 

4:03 PM
Hey guys,
anyone can help with porting openCV to windows mobile ? I have some some binaries and libs that worked for other guy http://alexkarpus.com/opencv/ but I cannot get them to work in my project.
 
hmmm
main.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: virtual __thiscall QApplication::~QApplication(void)" (__imp??1QApplication@@UAE@XZ) referenced in function _main
any ideas?
 
@TonyTheLion link to QtGui
add QT += gui to your project file
 
that seems strange
it can't resolve a symbol marked with dllimport?
 
I am working on tetris game , but was thinking how to response to rotation keys without using any gui lib?
 
@FreakEnum use a keyboard library XD
 
4:15 PM
@rubenvb you mean the lib?
 
@TonyTheLion yes.
 
:D
 
@FreakEnum Use the operating system API
 
@rubenvb WT... Avada kedavra!
 
@DeadMG and that gets hairy on Linux due to console, X , and DE key mappings :)
 
4:17 PM
anyone ?
 
@rubenvb seems already linked though
 
@DeadMG but I've never used windows api , any other option please?
 
@rubenvb Linux sucks anyway.
 
@TonyTheLion huh, that's the error I get when I remove that library. Don't know then.
 
@FreakEnum If you want to do anything in Windows which isn't provided as a Standard library, and you don't want to use a third party lib, then the Windows API is all that's left
either it's first-party, Standard, or second-party, Windows API, or third-party
there is no fourth party
 
4:18 PM
@rubenvb it's QtGuid4.lib, right?
 
how are you even going to render anything to the screen without a GUI library?
 
@DeadMG my party is the fourth
 
even if you skipped a GUI, you'd still need a rendering API, which is most definitely not Standard
@TonyTheLion kek
 
@DeadMG right , Thanks for feeding the right thing :)
 
user406009
I have a shared_ptr representing an image. This shared_ptr already has a deleter to free memory back to the OS. However, I am using this shared_ptr in a memory pool.
I am wondering if http://ideone.com/4Y8tS is the right way to "rebind" the deleter, so as to automatically free from the memory pool.
 
4:29 PM
uh, you want to allocate memory from one place, and then free it into a different place?
 
user406009
I have a "real" shared_ptr. I just need to somehow change the deleter so it does not actually delete the image. I just want the new deleter to mark the image as unused.
 
user406009
I had to use a memory pool, these are 1600 * 3200 * 4 byte pictures.
 
ok
you most certainly can't do what you've done there
what you did is created two separate control blocks with two deleters, so you'll get a double delete
the C++11 std::shared_ptr does not appear to offer deleter rebinding
I don't think that Boost's will either
you just need to allocate from the memory pool in the first plae
 
5:18 PM
hmmm
seems like VC has decided not to include the cpp file I added to my project for compilation
how is that even possible?
 
user406009
It's not linking it?
 
seems like
I get this linker error: error LNK2019: unresolved external symbol "public: __thiscall MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QAE@PAVQWidget@@@Z) referenced in function _main
but this is a class generated by Qt
don't know why it's ausing a linker error
 
user406009
God I hate QT's custom stuff.
 
yea I'm starting to hate it too
 
This is not any custom stuff.
 
5:22 PM
well it's qt generated
but it doesn't link
ugh
 
Then VS fails to call qmake properly. Not that I'm surprised, both VCBuild and MSBuild are incredibly failed build systems.
 
MSBuild and VCBuild are evil build systems.
 
They're not evil, they're just mostly useless.
 
so what's a better build system then?
 
MinGW + MSys?
 
5:25 PM
Even MS recognised that VCBuild is a failure, but then they replaced it with another failure.
3
 
Neither MinGW nor MSYS are build systems.
 
I'm a damned fool.
 
@TonyTheLion Call qmake manually, and then use nmake directly.
 
5:34 PM
Very funny.
 
seriously, did anyone get the part I highlighted?
 
Yes. iPone users all adore Steve Jobs.
h
 
but why do android users see them as some kind of black-robed evil people?
 
it's a cult
 
Not evil, more like a priestess.
get it? Steve is god.
 
5:36 PM
You're dissecting a silly Internet image.
 
oh, I see. They're followers of Steve
 
Do you really have nothing better to do?
 
I'm cross compiling the bin directory. Have some time on my hands. :-)
 
@CatPlusPlus Yeah, I can invest my time in studying..... but I won't .
idiotic. ^^^
 
5:42 PM
@TonyTheLion Are you using qmake?
 
When will friday come? -_-
I really am going overboard with the pics today...
@RoomOwners Is this considered spam?
 
everything here is technically Spam
 
Xeo
It's fine as long as there are no discussions going on which would be disturbed by it
 
@IntermediateHacker Is that Bloodshed Dev-C++?
 
5:49 PM
@rubenvb yup, I think
 
I seem to remember it having funny tips
 
user406009
It was a great ide, pretty simple to use and whatnot.
 
@EthanSteinberg I used it when I was a newbie.It was simple and good. but I remember it had no code-completion.
I miss the DevPaks
 
Quiz: when is signed int different from int (other than comments/pp)
 
5:53 PM
Breaking news, there are a lot of silly images on the internet!
Do we really need to see them all?
 
Xeo
@Pubby When you put an un before it? :P
 
@Xeo Nope
 
@Xeo what's an unint?
 
Xeo
unsigned int :s
 
@jalf you can't deny they're funny?
 
5:54 PM
@IntermediateHacker Yes I can
Well, only clicked on three of them so far
so I can't deny that some of them are funny
but mostly, it's the same recycled old jokes that have floated around on the internet for the last 15 years
 
In fact, these are not just any silly images, They have been personally hand picked by me from years of surfing.
 
We're online for years, too, you know.
 
@jalf yeah, jokes tend to repeat in different ways
@CatPlusPlus yeah, but I bet you have better things to do than search of silly images?
 
um...
wow...
I wake up... and...
 
@Mysticial and it's almost CHRISTMAS!
 
5:58 PM
You've earned "Guru"... uh................
sometimes, these voting dynamics are sooooo unpredictable...
 
I thought it snowed on christmas, but it's still boiling hot in this damned desert.
 
@CatPlusPlus msbuild isn't a failure. It works. It just has an incredibly verbose syntax, and is badly structured and unintuitive as hell.
 
But it works, and it's powerful enough to function as a build system
 
@jalf GNU make works too. It just has an incredibly concise and unintuitive syntax
 
5:59 PM
even though the VS integration with it is absurdly crippled
@rubenvb yep
 
lol
 
user406009
Most build systems seem to be annoying.
 
My hobby project is a build system
 
@jalf VCBuild 'worked', too.
 
I hope it isn't annoying when it's finished
 
user406009
6:00 PM
Cmake seems to suck less, but is still a pain to add external archives and whatnot.
 
Cmake != build system
it's a build system generation system
 
@CatPlusPlus Not really. Since VCBuild was tied to the specific language and toolchain, and wasn't really extensible
 
IntermediateHacker.confused(true);
 
One language build system is still a build system.
 
user406009
@rubenvb Same idea.
 
6:01 PM
MSBuild has the functionality I'd expect from a build system. VCBuild didn't. MSBuild has plenty of other flaws, in terms of usability and (lack of) IDE integration
@CatPlusPlus I disagree. A build system should allow me to build arbitrary targets using arbitrary toolsets
 
IntermediateHacker.getBrain() == NULL
IntermediateHacker.isOutOfHere(); cout << "Bye!" << endl;
 
@jalf That's what my hobby project is going for. Yay for me!
 
@rubenvb how will it be different from existing ones?
 
most people in the chat are professional programmers
 
oh.. my bad.
 
6:04 PM
I have real and hobby projects.
 
good for you.
 
Sometimes it seems that the hobby project is realer than the real project.
2
 
I agree.
 
@jalf Well, It'll be a standalone C++ app that can build, install, zip several different language source files using different toolsets. Contrary to some existing systems, it'll "know" stuff about the toolchain (like options that should be passed) and of course have great dependency resolution cough.
It will also have a system of runtime user options ala autotools configure: --some-option so that header/lib dirs can be set per run, or some feature can easily be disabled without adapting the project file.
In a more evolved form it will include the means to be independent of the shell you run it under, so that stuff like MSYS is unnecessary, but you could do some script-like things. Although how that will look like is still unknown to me at this point.
In a much later stage, I'll write handy IDE plugins. But that's very futuristic, assuming I don't get bored :)
wow, that killed the party.
 
6:21 PM
thinking about shit
 
user406009
Thinking Asynchronously was a wonderful boost::asio introduction. Anyone know something similar, but for qt?
 
quick question for you guys: the new, allocates memory for the object and returns a pointer, but what if i overwrite that same pointer, will i have memory losses?
 
always use smart pointer to manage memory
 
meaning?
 
meaning "Never use T*"
always use shared_ptr<T>, unique_ptr<T>, etc
auto ptr = std::make_shared<int>(); // makes an int
ptr = std::make_shared<int>(); // makes another- but no memory leak!
 
6:32 PM
alright, thanks :D
 
hi, how can i make priority_queue sort from small to big ?
 
user406009
Change the comparison functor.
 
how can u show example
 
user406009
Wait a sec
 
Why do we have a channel topic that is related to C++?
 
6:38 PM
auto is short for autobots
 
user406009
Sorry, haven't used priority_queue in a while.
 
right
 
user406009
 
time to write the semantic analysis
 
@EthanSteinberg Thank you is it required to use #include <functional> ?
 
6:43 PM
to use std::function then yes
 
@rubenvb Don't most build systems know things about the toolchain too?
 
user406009
@zeulb Yeah, and you have to enable c++0x support on your compiler for that solution.
 
function is in TR1 and Boost as well
 
@jalf yes, but not enough IMHO. Or at least in a convoluted way. It's an old idea of mine, I'm not yet sure how far I want to go with that. It's a maintenance hell, all platform+toolchains etc...
 
hmm
 
user406009
6:45 PM
@zeulb Here is a version that uses boost instead. This should work on older compilers.
 
user406009
 
if I want to use "Hello World", then I'll have to write a shitton of Standard Library
IO routine, memory management, string class
oh well, for the first run I guess I can just WriteConsole directly
 
@EthanSteinberg got boost/function.hpp no such file
 
you need Boost
 
user406009
When they were adding std::function they should have updated the standard containers and algorithms.
The default functor really should be std::function.
 
6:50 PM
no, it shouldn't
 
Pay for what you use and all that.
 
user406009
@zeulb Here is the pre-function solution. I would really suggest you to install boost though, wonderful library.
 
the fact that std::function can be interchanged at runtime is a performance loss for everyone who doesn't need that functionality
std::less<T> is an inlineable call
 
user406009
@zeulb Oops, simple error. ideone.com/5M4xj is the correct version.
 
Oh, you edited it.
 
6:52 PM
thank you, i'm making program for online judge so i can't decide to install any library
 
user406009
Lol, I should have started at the pure standard C++03, and not tried to use fancy new features.
 
nah
 
you should have started at pure WideC!
 
lol
 
"pure" as in, you'd have to write everything.
 
6:55 PM
soon, it will be alive!
 
both "pure" and "alive"?
Impossible!
 
well
I need to write the compiler's metafunction facility exposure
and then I should be (roughly!) good to go
 
Can you say that in a non-buzzwordy way?
 
well
instead of adding a __stdcall keyword to the language, I made it so that the Function object has a CallingConvention member
 
Griwes: you have a lot of Reaver stuff on your github page
 
6:58 PM
Ah, ok.
 
of course, therefore, I will have to implement modifying functions at compile-time
it's not that hard to use, although it looks a little odd, but implementing is going to be fun
 
@rubenvb, yeah. Not saying I'm ever gonna finish it, though.
 
of course
nah
 
@Griwes even got a C++ compiler "in the works" :P
 
"Not saying I'm ever gonna finish it, though."
 
6:59 PM
haha. I heardja ;)
 
@DeadMG And that CallingConvention object allows you to define your own calling convention? :D
 
uh, no, it's just an enumeration
it would break LLVM's abstraction to go defining my own calling conventions
 
You are taking the Easy Way, then! :D
 
pffft, do you have any idea how much effort goes into writing competitive native compiler back-ends?
a lot!
LLVM will make that easier for me
 
@DeadMG What happened to "make sure it works, then worry about optimizing it"?
 
7:02 PM
firstly, in this case, "it works" == "it works fast"
 
@DeadMG I think I have, but probably I am wrong at this :P
 
and secondly, it'd be vastly more work to write my own that even vaguely works at all, compared to using LLVM which works well and produces fast code
 
/joke
 
> When life gives you lemons, you clone those lemons and make SUPER lemons.
 
The other nice thing about LLVM is you could also target smartphones.
 
7:08 PM
I really don't care that much
LLVM can't even offer what I need on Windows
 
in JavaScript, 15 secs ago, by Raynos
Hey guys, do me a favour and flag me so I'm muted from chat and can actaully get on with my work
thanks in advance o/
 
What?
That's abuse of the system. I should flag you for it.
 
agreed
 
I wanted to see whether that would actually work.
 
We in the C++ lounge don't play around with flags. Flags are srz biznz.
People could get killed and shit.
Well, maybe not.
 
7:15 PM
I think Sbi could kill for flag business
 
could someone help me understand this grammar stuff?
expr -> term is saying term is an expr, right?
 
an expr can consist of a term
 
@RMartinhoFernandes I think using the term "srz biznz" ruins all serious-ness in that sentence
 
when sbi is here, people do get killed and shit
and the "and shit" is usually worse than the "killed"
 
@ManofOneWay expr -> expr1 + term is what I don't understand. Doesn't this mean rhs can't be a expr?
 
7:18 PM
need to see the definition of expr1
 
the 1 is subscripted
 
an expression could consist of expr1 + term
 
sbi
@ManofOneWay What would I kill for? (You didn't think you'd get away with talking about me just because you don't use the @ syntax, did you?)
 
Here is the full grammar:
 
usually people don't bother with subscripts like that
they just say expr : expr '+' term | expr '-' term | term; for example
 
7:23 PM
Hm, ok
but how is 12+3+ parsed?
 
it depends on which parsing method you are using =)
 
the rule is left-recursive
 
It isn't. Things can't end in + in that language.
 
As an error
 
so it ends up as ((12 +) 3 + error
 
7:24 PM
since it's left recursive the rhs is always a term then?
 
yes
there are no valid productions of expr that do not have term as the rhs
notably, this is not an LL grammar - they don't really like left-recursion
 
I haven't gotten to parenthesis yet, but how do they change things?
 
simple: a parenthesis is parsed in total
e.g., imagine that expr is changed to include ( expr )
that means that the contained expr is evaluated in total
 
Doesn't help at all.
1 + (1 + 3) is not parsable.
 
yes, I know
 
7:27 PM
??
 
that's just because he's got expr + term instead of expr + expr, which is silly, but not the point
 
user406009
@Pubby the shunting yard algorithm might work well for you.
 
user406009
I used that the last time I had to parse parantheses and operators.
 
imagine the series 1 - 4 - 5 - 6
 
@EthanSteinberg Thanks, I'll check that out (although I should probably just read a few more chapters)
 
7:29 PM
currently, you've got (((1) - 4) - 5) - 6)
but if I introduce expr and change it to 1 - ( 4 - 5 - 6 )
then you end up with ((1) - (((4) - 5) - 6))
 
Assuming you parse left to right. expr + expr allows parsing as 1 - ( 4 - (5 - 6) ).
 
yes, expr + expr is ambiguous
 
sbi
Is this me or is it him? And did I prompt him to become insulting?
 
it should really be term that's changed to be ( expr )
first abusive comment is his, as far as I can see
"@missingno, what is easier to understand and maintain, a Knuth's ADVENT or an over-engineered, unnecessarily OOPish crap full of "patterns" and "best practices"? – SK-logic 4 hours ago"
imo you were very patient with him
 
while is OOPish crap full of "patterns" and "best practices"?
4
 
7:37 PM
I don't think so
 
sbi
@RMartinhoFernandes Yeah. Of course. Erm. Is he a dickhead or isn't he?
Really, I'm at a loss for words to reply to him.
 
You're not required to do so.
 
sbi
@RMartinhoFernandes Actually, I'm tempted to flag the whole discussion subtree for deletion.
 
@sbi if( rep_of(sbi) > rep_of(SK-logic)) goto ignore_and_move_on; else goto rethink_your_argumentation;
 
an argumentation?
 
7:43 PM
Rep is irrelevant.
 
think you need to rethink that
also that
 
Most of the state machines I've seen use switch. I can't see how you would do the same with a goto without emulating a switch.
 
switch > goto
maybe for now, I should just special-case the operations I need?
 
can I bring an enum class into another class's scope as if it were declared in that class as a plain enum?
 
Xeo
7:46 PM
@rubenvb You mean the enumerators of the enum class? If yes, no.
 
@Xeo dang, ok.
 
I'd really like to have using enum my_superbly_crafted_strongly_typed_enum_that_menaces_with_spikes_of_orthoclase;‌​. Sadly, we can't.
 
"@sbi, clearly you know nothing about both logic and programming." Ahahahah.
 
sbi
@rubenvb We're talking Programmers.SE here. I don't have much rep at the site, because I rarely ever answer there. Also, as The User Who Shall Not Be Named shows, rep isn't everything.
 
It would also be awesome if we could have some deduction: enum class enum_with_a_rather_long_name { x, y, z }; f(enum_with_a_rather_long_name); f(x); // deduces x as enum_with_a_rather_long_name::x.
 
7:49 PM
@sbi I made a little remark
 
@sbi I didn't know Voldemort was a member?
2
oh crap!
@TonyTheLion GO Tony, GO!
 
sbi
@CatPlusPlus Shrug. A random dickhead on the Interweb throwing a random insult at me. Oh really? All I care about is: did I prompt him to become so violent?
@TonyTheLion Yeah, I just saw it. Thanks. I don't think it'll help, though.
 
@sbi No, I don't think so.
 
@sbi No, he's just full of himself.
 
sbi
@rubenvb Haha! This one is different, though. (He seems to like ABBA, for a start. And if that isn't a bad sign...)
 
7:53 PM
lol
 
@sbi well, at least I tried
 
Xeo
follows the discussion with interest while munching mandarins
 
madarins? as in chinese people?
2
 
Xeo
lol
Of course, they're small, yellow and squishy too!
I get the feeling someone's on a starring rampage today
 
7:56 PM
Since when mandarins are yellow?
 
btw, I love the PPL
Concurrency::concurrent_vector<Wide::Parser::NamespaceAST*> ASTs;
Concurrency::parallel_for_each(input_files.begin(), input_files.end(), [&](string& ref) {
    ASTs.push_back(Wide::Parser(Wide::Lexer(ref)())());
});
 
Ha, @jalf, don't bother, he'll just swing ADVENT at you too.
 
sbi
Oh, @jalf is silently reading here. (Thanks for the support, @jalf!)
 
simplest parallelisation of anything, ever
 
So many parentheses.
 
Xeo
7:58 PM
Yeah, that push_back line looks a bit like reverse LISP
 
But really, yellow?
 
It's funny, they have it easy. Proof by counterexample is so nice and simple and utterly conclusive. When faced with an argument that "X is never useful", all you have to do if you disagree is provide a situation where X is useful
 
Xeo
@CatPlusPlus I just wanted a matching argument :s
 
Maybe they're expired.
 
sbi
@Xeo I can assure you that the last five starred messages have been starred by at least three different users.
 
7:59 PM
It's called mandarin orange.
 
engaging in mudflinging or trying to debate semantics and logic is such a waste of time, when you've got the clearest, most indisputable way to settle the issue
 
@sbi Ha! You starred one!
 
@sbi I bow to your deductive powers!
 
It's the people making absolute statements who have it hard. Proving that "gotos are never useful" is much, much harder
 
Bow before my logic skillz.
 

« first day (428 days earlier)      last day (4511 days later) »