« first day (231 days earlier)      last day (4719 days later) » 

8:31 AM
lol
 
Hello :)
 
8:48 AM
hmm
fake
 
lol :)
 
 
2 hours later…
A T
10:48 AM
hi
 
@AT Hello.
 
A T
I'm looking for a good C++ web-framework, know of one?
1
Q: C++ Web-framework with cookie and SQL support

A TGood Evening, I'm building a website which will will look something like this: So probably a widget-centred web-framework would be best... Which C++ web-framework supports cookies (for user-login [session] storage+config storage) and SQL (MySQL or SQLite)? Thanks in advance for any suggestion...

 
@AT I know of CppCMS (misleading name--it is not a CMS) but I have not used it, nor does the site have a detailed feature list (or I can't find it).
 
@AT I'm not a web developer.
Looks interesting.
 
A T
Luc: Documentation on CppCMS and example programs are very limited... but I suppose I could use it, if I can't find a better C++ framework
Johnsyweb: WT is interesting, but (at least 3 years ago) doesn't support cookie stuff
I've asked if they support it now: redmine.webtoolkit.eu/boards/1/topics/2111
 
10:57 AM
@AT Like I say. I'm not a web-developer.
 
A T
kk, & Luc Danton?
 
Same, it's not really my domain.
 
A T
kk, seems to be quite boutique
 
Why is C++ a requirement?
 
11:14 AM
I wonder about static if ( ConstantExpression ) { /* only type-check this if the if is selected */ }
what do you think about the syntax ?
 
Looks nice!
 
i think it should be easy to implement and easy to specify in the spec
do you think it's worth proposing for c++1x ?
 
Als
Hey All
 
A T
Johnsyweb: C++ is a nicer language, and I'll be doing some [very] advanced calculations, and it would be nicer if I could write everything in C++ rather than have a C++ executable run for every calculation
 
not sure if they would like to have a 4th meaning for "static" tho
 
Als
11:18 AM
An advice pls
 
@JohannesSchaublitb I'd rather have a static_if keyword
 
Als
Do you think I am wrong in this answer..
1
A: Inheriting from a singleton? C++

AlsSingletons are evil. You end up facing more problems than benefits but if you still want to use Singleton are your own risk you can see this for how to inherit from singletons.

I just want to delete it if you think so too.
I don't think anything wrong about it in the first place but seems lots of peeps do think so
 
I've seen template<typename T> HandlerType handler; in our code today, and it compiles!
Why the heck does it work :(
 
A T
Are they ever going to fix templates in C++?
 
@JohannesSchaublitb and in a dream-world I'd like < ... > and ( ... ) pairs to distinguish between compile-time and runtime behaviour like so: static_if< ConstantExpression > { ... } (even simpler: if< ... > { ... }). But given the precedent set by static_assert I'm not holding my breath for that.
 
11:26 AM
ohh
 
@AT Fix?
 
@JohannesSchaublitb Out of curiosity is there a use case/rationale for this proposition? An alternative to conditional compilation maybe?
 
ugh, smokers suck
 
How do I use SQL Sever in visual studio with C++? Can someone provide me some guide?
 
@LucDanton so that in a template, you can have code that can only compile for some combination of arguments
it's a PITA to always specialize or introduce special degenerate functions
 
11:34 AM
Its not in my book
 
@JohannesSchaublitb I see. I guess the alternative to conditional compilation comes as a bonus then.
@JohannesSchaublitb Are you knowledgeable about D? I suspect they have similar feature(s). Perhaps that would help your proposition.
 
11:51 AM
@Luc not well versed in D
what do you folks think about windows8 ?
 
@JohannesSchaublitb I don't really see the point, tbh. I'm disappointed that there appears to be no real integration between fancy new touch-based UI and traditional mouse-based stuff
seemed like "and I can touch here, and I get.... a Windows 7 desktop where all the classic apps are going to live"
 
i thought it has a seamless integration between both
i.e you have both the old gui and the new fancy gui side running at the same time
@jalf oh i see
 
but they're running side by side, and don't really affect each others
 
If they're going to support both, they should make it so I can use touch as well as mouse/keyboard for existing and new apps, and allow them to coexist in the same ecosystem
rather than create "new shiny touchworld", and the "windows classic ghetto"
 
12:01 PM
are sql standards useful to look?
 
from what I hear they polished the old ghetto to also support touchy uses
 
admittedly, that'd be a ridiculously hard problem to solve, but if they want to integratte touch and traditional input, then they should do it properly, or not at all
 
yeah, I might be wrong and they've actually got it all figured out, but from the video they released, it just looked like they were two separate worlds living side by side. Except that you could use touch to scroll in the traditional Explorer
which is a pretty primitive kind of integration. You'd still be crippled because every icon, button and link is mouse-cursor-sized, rather than big-fat-finger-sized
the other part I don't get is what purpose it's supposed to serve. Do they seriously expect PC's to have (and use) touch screens within the next couple of years?
Seems like on the PC side, the touch-based stuff will go basically unused, and on the tablet side, the "classic" environment will be crippled and useless
so no matter where you run the OS, you get one sane interface, and still have to carry around the other, crippled one
If they'd split it in two, and made a touch-only OS for tablets, I think it'd have been great.
but it's early, and there are so few details available, it's impossible to say how it turns out. Just my initial thoughts
but I just don't see what the "one size fits all" approach is going to buy them
 
Morning.
 
12:08 PM
heya
 
@CatPlusPlus 'Ning.
 
oh lulz, forgot I was on this chat
hahah
 
12:33 PM
> The report railed against France and the United Kingdom, which have passed laws to remove accused copyright scofflaws from the internet. It also protested blocking internet access to quell political unrest (.pdf).
 
1:08 PM
Hi, can anyone tell me how Kruskal algo gets O(nLogn)? i cant derive the Logn part :S
 
1:47 PM
You need to sort the set of edges, so O(E log E) where E is the number of edges. Then you consider each edge once, for each each the work to do can be done in O(log V). So we have O(E log E + E log V) and as E <= V^2, we have O(3 E log V) = O(E log V).
 
 
1 hour later…
2:59 PM
always when it gets to initialization of static storage duration objects ,I see Martin York engaging in the answers xD
this time, it's more fun than other times though
-2
A: How to wait until dynamic initialization of static variables finishes

Martinunfortunately the language does not support those semantics. static storage duration objects SSDO (both static and dynamically initialized) are only guaranteed to be initialized before main if they are in the global namespace. Thus all SSDO in the global namespace will be fully initialized befo...

 
> g++: Internal error: Bus error (program cc1plus)
Wee.
 
does amazon kindle use electronic paper?
ohh it deos!
 
3:15 PM
@AProgrammer "for each each the work to do can be done in O(log V)" this is where its unclear, how it is log V
 
Damn, I keep forgetting single parameter constructors define implicit conversions.
 
A T
lol
 
@MartinhoFernandes I had the inverse problem for a while: I did put explicit where appropriate but I got over enthusiastic with uniform initialization syntax and used return { ... }; everywhere.
 
@coder9, look about union-find data structure.
 
4:20 PM
Very good explanation of Monads
 
My builds hate me today.
 
 
2 hours later…
6:08 PM
hi guise
 
7:00 PM
I haven't got a hand on the FDIS and can't remember: are delegating constructors still in or not?
 
Still in.
 
Not sure what the actual requirements on std::pair are, but then that means it is possible to write a pair class that works with unmovable types!
(with a forwarding constructor enabled)
 
 
1 hour later…
Xeo
8:34 PM
ohayô o/
 
Xeo
9:26 PM
Funny
 
@Xeo lol
 
Xeo
I just wanted to reserve that address. :<
 
Xeo
9:50 PM
8
Q: Does everything go inside a class?

vorbis5I have another rudimentary question. I somewhat recall hearing that everything in C++ goes inside a class. Then I hear that classes shouldn't be used where possible. So my question goes: When do you make classes and when do you not? (an example or two would be cool) And a random side-question: W...

 
10:05 PM
with lambdas+GCC, static_if can be emulated very nicely
 
Xeo
10:16 PM
@JohannesSchaublitb I love your crazy ideas!
But why bitshift operator? Just for fun?
Woohoo, I finally got 10k rep \o/
 
@Xeo Well done :-)
 
@Xeo didn't think of anything better. do you have any ideas for improvements?
 
Xeo
@JohannesSchaublitb You know, I'm currently thinking of this question, where you told me it was a horrible abuse to use lambdas for such stuff. :P What about your code?
 
lulz
i shall put myself into a corner
 
Xeo
I would love to abuse lambdas for more things like that, because they are just plain awesome.
 
10:30 PM
the "return" thing really annoys me :(
 
Xeo
Not idiomatic enough, heh? :) Well, I admit it might be irritating to find a return statement in a function if it doesn't actually return from there
but for that
 
perhaps I should give the lambda a parameter, "caller". so in the lambda I can say caller.return_();
and it would cause the caller to return
but that would complicate the interface, so the chance will be less that the compiler could optimize the lambda
 
Xeo
@JohannesSchaublitb I just thought, isn't overload resolution normally abused for that? Like, with mpl::true_ or in the STL forward_iterator_tag
 
@JohannesSchaublitb At a time they were planning that kind of thing in Java.
But that is just plain evil.
Because you can pass the lambda all the way across the program.
And then you prematurely return from an arbitrary function.
 
@Xeo yeah overload resolution is abused for that like that :)
 
10:34 PM
How do you know what it needs to return?
 
@MartinhoFernandes yeah that would be some complication. Perhaps the user would need to specify the type
 
Xeo
I love how every second feature in C++ is abuseable for stuff it most certainly wasn't intended for.
 
@JohannesSchaublitb Is the type really enough?
 
why not?
caller.return_(foo); would provide the value
 
Where does foo come from?
The caller supplies it?
 
10:37 PM
i could abuse exception handling so that it will exit through the lambda with an ReturnException
but then the user of static_if cannot put the { .. } lonely after the static_if anymore :(
 
Xeo
@JohannesSchaublitb Ah, I finally understand your problem with the return
void foo(){
  static_if(C){
    // something
    return;
  }
}
won't really work, eh?
 
just asked usenet about their opinion. ideone.com/6DuNa
@Xeo exactly, that's my concern
 
Xeo
and especially won't work if you want to return an object.
> I noticed that GCC and Clang both don't instantiate local classes of function templates and member functions of class templates, ...
what do you mean with that?
 
it only instantiates them if you use them
like with member functions of class templates
 
Xeo
Ah, I now see what you mean.
 
Xeo
11:08 PM
@Johannes, any new insights on this one ?
 

« first day (231 days earlier)      last day (4719 days later) »