« first day (1281 days earlier)      last day (3893 days later) » 

12:26
(this message is just preventing the 1 hour ago thing)
hello everyone.
good evening to all.
@ScarletAmaranth good job
@ScarletAmaranth
@StackedCrooked why thank you kind sir; I finally get some recognition!
hi i need small help @StackedCrooked
12:34
i don't wanna!
@Venu there's an entire page devoted to this kind of business; it's called StackOverflow
ohh nice...
actually my requirement is i am running some code as a service...
while i call that service form out side i need to run some commands as separate process.
I'm so sleepy.
how to do this?
Can't even watch anime.
12:36
@StackedCrooked new FT today btw! :)
Yep, I've seen that between two sleep sessions!
ah; seen it already?!
dayum man...
dunna
I'm watching Witch Craft Works now. It aired this winter.
It's mildly interesting.
I'll enqueue it but I haven't gotten around to even finishing Strike the Blood yet (and haven't started full moon either), been kinda busy as of late
12:38
@ScarletAmaranth you are watching Strike the Blood? Damn, I hated that series.
Although, it could be entertaining occasionally.
yeah I've seen the first 13 epis as you mentioned Yukina once
it's alright I suppose
But the "serious" parts were incredibly boring.
really nice room.... thanks a lot for your kind support
bye bye
dudes.
NO problem, bye.
new Nisekoi should be up soonish, right?
12:39
oh yeah!
is it today or tomorrow?
tonight maybe
not sure
hahaha nice @MartinJames at least you are alive to give reply to me
:)
One Piece is also entertaining atm.
So tomorrow gonna be a good day.
yup, except for the fact they're rolling 15 scenes in parallel
12:41
I wanna see Lucy fight.
@Venu We don't like answering questions about software in here - it's a Lounge - a break from work.
same; I think everyone does
but they keep switching away
to Sanji's mildly interesting scene and Zoro's utterly boring one
Since last episode I like Zoro's scene more than Sanji's.
Also the Usopp/Robin/Law scene is cool.
But Luffy's the best.
Usopp/Robin scene doesn't tickle my fancy one bit
and the fairies are kinda annoying
but yeah; I want to see him fight
hehe
I like OP too much. I'm blinded by the love.
12:46
I predict this: he enters, uses conqueror's will and then K.O.s the few that endure it :)
That would be cool.
But he's probably going to keep a low profile at first.
hahahahahah
well he was told to...
ok, I still needed to watch the last ep of Strike the Blood.
I guess I'll do that now.
user1804599
13:07
> ServerPartT is a rich, featureful monad for web development.
user1804599
Bullshit! It’s not a monad!
user1804599
It’s a monad transformer.
rofl
13:23
Mmm. Perhaps I took the 'running simultaneously' a bit literal there. Wording question titles is an art :) — sehe 7 secs ago
@ScarletAmaranth lots of it
hmm
maybe I'll be a rebel and put my vtable pointers at the end of my objects!
Edited my answer to give a workaround for the (much simpler) question :) Note that you can still use the relay_unit_test_main hack, perhaps with boost::program_options to achieve your actual goal. However, it would seem more reasonable to "just" write a patch against Boost Test and contribute that! — sehe 1 min ago
@DeadMG Screw locality of reference! Who cares! I have a feeling this will be less performant with prefetching CPUs and typical usage scenarios. Of course, they would only manifest with runtime polymorphism... (or constructors dominating the runtime) so no real harm
sure, but I simply don't care about performance right now :P
if I put the vtable in the front of the object then every field access has to know whether or not to skip over the vtable.
if I put it in the back then they don't.
13:44
@sehe I'm not sure what the locality of reference has to with putting the vtable at the front vs the end of an object?
@TonyTheLion If you access data from a struct from a virtual method, then reading the vtable pointer, and subsequently data that directly follows it in memory might please the prefetcher better. Just my thoughts.
Of course it all depends. It's just my hunch that it might - by now - have become a heuristic in microprocessor design.
sehe's right.
if you load a vtable pointer at the beginning of the object, you're guaranteed to get object data with the rest of the cache line or whatever, whereas if it's at the end of the object, you're pretty much guaranteed not to get it.
then again I'm not exactly optimizing Wide for performance right now :P
Hehe. It looks like I really was a little mad at him there. o.O
user1804599
Woohoo.
user1804599
Haskell is so awesome.
13:54
balls.
I bought myself some beer... just remembered it says that I can't drink with amitriptyline.
Is it a malt/alcohol free? :)
no.
@sehe oh I get it.
@DeadMG oh right, that makes sense
People are bored. It's noticeable from the fact that random Haskell exaltation is starred again
Oh. Someone came to his/her senses just in time, it appears.
New word of the day sycophancy
hmm
all I need is non-virtual inheritance and then EH.
then in principle I can bootstrap Wide if I can be arsed to recompile LLVM/Clang.
14:06
Ahahaha. TIL snake_case is noob-friendly (PDF). GUYS! "C++ is for noobs"
lol
The things people do:
Sigh
Impossible even for 1 house. Can the compiler reserve enough memory for a house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house that is big enough for Jack plus another house...? — FredOverflow 34 secs ago
^ my longest comment ever
is there anyone who had experience with developing realtime systems ?
14:11
Of course there is.
Or do you mean in this room?
Yes
I don't know for sure.
Here is my question, how sites like scorespro.com collects and feeds data in realtime
I bet nobody in here will be able to answer that.
What the actual...
That's crazy and sad
14:13
why on earth did you think that anybody in here would answer that
Okay Thanks
You may want to ask the devs of that site.
I have been googling my ass off when you said "realtime systems", and here is what I found: Joint Strike Fighter Air Vehicle C++ Coding Standards
> Any one function (or method) will contain no more than 200 logical source lines of code (L-SLOCs).
Why are coding standards so lenient? 200 lines is way too long.
> C++ exceptions shall not be used (i.e.throw, catch and try shall not be used.)
> The F-35 project disallows exceptions because their exception implementation didn't have fast enough real-time guarantees, not because they're inherently unstable.
@FredOverflow a LONG way too long. Well, I reckon if a function contains a lookup-table or something lowlevel like that
@DeadMG of course; even Bjarne agrees there
14:25
@sehe How about "no more than 10 statements"? :)
Or how about "It must be possible to see an opening brace and its corresponding closing brace on the same screen".
strawberry martini with sparkling mineral water tastes so good ...
I just hate to see a lonely closing brace without its opening partner.
An no, comments don't make up for that.
I ignore most comments, anyway.
is there a way to generate the sequence 22 33 22 33 22 33 ... using modulo ?
@CatPlusPlus Maybe you can upgrade cheaply?
@gnzlbg What have you tried?
14:28
i.e. 0 -> 2, 1 -> 2, 2 -> 3, 3->3, 4->2, 5->2, 6->3...
@FredOverflow To what
@Borgleader i can generate 101010101 :/
i = 22;
loop {
    ...
    i = 55 - i;
}
@gnzlbg What?
i % 2 -> 01010101010101
i % 3 -> 012012012012
So how about ((i % 2) + 2)*11?
14:30
cause i screw up, fixed :)
@FredOverflow mm let me test that
Oh wait, you mean 2 2 3 3 2 2 3 3
I thought you meant 22 33 22 33
((i >> 1) & 1) | 2 should do the trick.
yes that works, thanks!
Or, if you're a pussy, ((i / 2) % 2) + 2.
mm i've looked into modular arithmetic
but, the tutorials I've found didn't brought me too far
do you know of any resource where I can train solving problems like these?
I have never specifically trained for any of these.
They just happened to come up in real life situations.
And then I took pen and paper and doodled for a while.
14:34
cool: and ((i / 4) % 2) + 4 gives me 44445555444455554444... :D
this is fun, thanks @FredOverflow
user1804599
Couldn't match type `bytestring-0.10.0.2:Data.ByteString.Internal.ByteString'
              with `bytestring-0.10.0.2:Data.ByteString.Lazy.Internal.ByteString'
user1804599
arrghh
@gnzlbg You're welcome.
@rightfold haha lazy bastard
user1804599
Luckily blaze-builder has toLazyByteString too!
@Rapptz "risk of"
@R.MartinhoFernandes yes it's the "meatspace"
14:42
@CatPlusPlus Ubuntu 14.04? Or were you not talking about buying Ubuntu 12.04?
Wait, why would you even buy that... it's free :) Forget what I said.
That wasn't about Ubuntu
@EtiennedeMartel yeah, more or less
What the best compilator of C# or C++ using? I say in general
Because I use Dev c++ but there is a better compilator?
8
There is no single compiler that will compile both C# and C++.
C++ compilers known to be liked around here are clang and g++.
dat compilator
14:47
If you want to program in C# and C++, Visual Studio is probably the best choice for you.
Also, DevC++ is not a compiler/compilator, but an IDE.
I think it uses g++ under the hood, but I'm not sure.
> Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.
yep
Thanks for you suggestions and remember that Dev c++ is a IDE FredOverflow
You mean "reminder" ;)
eheheh I am not perfect english
:)
reminder past perfect ?
of remember?
No, it's a completely different word.
A reminder is something that reminds you of something.
(If that helps.)
"remember that Dev c++ is a IDE FredOverflow" sounds like you want to to teach me something about DevC++, and I should never forget it :)
15:10
you cannot post links to boost trac, so you cannot link to pull requests in github... the whole modularization is a mess, people don't know what is the best way of contributing patches and maintainers either look at trac, or at github, but for some reason not at both
they killed svn, they should either kill trac, or kill github issues...
Why are you telling us this?
Seems a little bit out of context.
Are you contributing to an open source project?
@gnzlbg disagree ("mess")
SVN is alive and fine
@gnzlbg kind of agree
well... it's boost... everyone should be contributing patches if you run into issues..
15:13
@LightnessRacesinOrbit pedant :)
the fact that you can't easily contribute patches to the main non-std c++ library is just sad
@gnzlbg and some devs prefer pull requests (Spirit, e.g.) but others will just take the attached patch
some devs still don't know how to use github, and won't use it.
@gnzlbg ... not hard to learn
so you have to know for each sub library who are the devs, find out if they are active in github or trac, and then email them and ask them just to be sure, or your patch will sit waiting for months
@Borgleader agreed
github's makes it stupidly easy to contribute patches, most projects see an order of magnitude increase in contributions when they move to github
user1804599
15:16
Heist is nice.
@gnzlbg What is "the main non-std c++ library"?
@LightnessRacesinOrbit boost
or at least, for me, since it is a collection of mostly useful libraries
user1804599
Hmm.
user1804599
15:17
Is there something like foldr (.) id? msum perhaps?
user1804599
Hmm, meh.
@FredOverflow yeah, inb4 operator, abuse and fluent style/continuations. Or lambdas containing more statements :)
@FredOverflow inb4 long lines or folding
@gnzlbg On the contrary, it's essential.
I think I'm with the 'n statements' where control flow statements count doubly/triply?
if people could easily contribute patches, then it would be full of shit.
15:22
> "mostly useful libraries"
teehee. That diplomatic veneer
@sehe How about "once a month, the author of the most ugly code is fired"?
@DeadMG all patches are reviewed, in the current situation, the maintainer doesn't even know that somebody submitted a patch....
@DeadMG how easy it is to contribute patches to wide doesn't affect the likelyhood of you accepting them
@FredOverflow inb4 code that doesn't actually do stuff besides look good.
15:24
@sehe Also bad for one-man projects that take longer than a month ;)
Wait a second...
IS THAT VLAD?
virtual lad
> // please delete me
> Then I'd place every product in a vector and accessed as Product when I need the common fields, safely-casted (with instanceof) to the right class when I need to access the child's fields. I know this is not the right way in C++ and I don't want to force java programming paradigms to C++. LOL
15:29
Good. I got confused with a comment there
Lol @ "Code anything secure on Windows"
virtual tables everywhere!
Its missing "Using C"
@Borgleader Implied by the first point, isn't it?
Common coding errors: coding
7
Common life errors: being a cat
15:37
Common lounger errors: listen to cat
@FredOverflow Have you read it?
Yes, but it's been a very long time.
Worth it?
15:40

common errors

3 mins ago, 1 minute total – 3 messages, 3 users, 2 stars

Bookmarked 3 secs ago by sehe

@sehe nice
@Jefffrey I honestly cannot remember. How about you browse the contents on amazon?
@FredOverflow how about you link to amazon :)
Like you originally did
@Jefffrey If it's been a very long time, it's probably full of stuff like "Don't forget to check for self-assignment" and "Rule of Three".
15:42
Yeah, but maybe you can get good old rules that still apply.
Yahoo's image search suggestion #5 for "common C++ gotchas":
@sehe That doesnt sound not C++ specific =/
At first I thought it was an animal's lower back :)
gotta be the head, right?
15:44
But those usually don't have ears.
but I don't recognize the animal.
probably a tanked tapir
> hahahaha, not to be crude, but I thought it was an elephant's ass
An asses' elephant, then
Armadillos are New World placental mammals with a leathery armor shell. The Dasypodidae are the only surviving family in the order Cingulata, part of the superorder Xenarthra, along with the anteaters and sloths. The word armadillo means "little armored one" in Spanish. The Aztecs called them āyōtōchtli , Nahuatl for “turtle-rabbit”: About 10 extant genera and 20 extant species of armadillo have been described, some of which are distinguished by the number of bands on their armor. Their average length is about , including tail. The giant armadillo grows up to and weighs up to , whil...
I wonder if I should make a T-shirt with that thing on the front and see how people react.
I bet 90% will see the elephant's ass.
According to Yahoo, this is also a common C++ gotcha:
15:50
Seems legit
How come he looks so intelligent?
The hand and the deep eyes. And that look... that's because "he" is a she, pffft!
How can you tell? I see no boobs.
Mascara, long, well-groomed nails, lip-stick and prude body posture.
@FredOverflow never heard of that one
user1804599
15:58
@sehe My self-image!
user1804599
Heh.
user1804599
compose fs = execState $ mapM_ modify fs
user1804599
Because I don’t like right folds.
16:16
compose = execState $ mapM_ modify
I just upvoted a question for the sole reason that it had 99 upvotes.
@Jefffrey wont work
it won't?
@Jefffrey try it
yeah, you are right
maybe compose = execState . (mapM_ modify)?
16:27
nope, execState is not unary at this point
oh, hold on, it is
the problem with that would be that you wouldn't be able to partially apply the argument
mapM_ modify still needs an extra argument
eh; could work, what do I know
Miss Fan Service.
I find it rather amusing
user1804599
@Jefffrey Yes.
Superhero movies are getting really annoying.
user1804599
That is equivalent.
user1804599
16:37
Anyway, this notation is fine to me as well; screw lists of functions:
user1804599
render "post-bulletin-form" ( bindSplice "if-validation-errors" ifValidationErrors
                            . bindSplice "validation-errors" validationErrors
                            )
user784668
What are ref-qualifiers useful for?
user1804599
Oh wait, there is also bindSplices.
Xeo
Xeo
@Fanael not discriminating member functions
user784668
?
16:39
Overload on rvalue and lvalue objects.
Just like you can overload on const and non-const objects.
user784668
@R.MartinhoFernandes I know that; but when would I want to do that?
When the object's resources can be given away?
T T::foo() && {} can pick up auto a = T{}.foo();
I'm feeling pretty desperate for them right now.
I have a utility wrapper that wraps a unique_ptr<T>, but I don't know when it's safe to move away.
Rvalue ref qualifier basically means 'this is the last function call on this object'.
16:43
well they do stay in somewhat valid state so you can kinda do stuff on them I guess? not that I've ever seen anyone do it
(not to offend your pedantry sensors, it's "valid state", not only somewhat valid)
Can you please vote for deletion of my answer here:
400
A: Convert std::string to const char* or char*

Johannes Schaub - litbIf you just want to pass a std::string to a function that needs const char* you can use std::string str; const char * c = str.c_str(); If you want to get a writable copy, like char *, you can do that with this: std::string str; char * writable = new char[str.size() + 1]; std::copy(str.begin(...

unfortunately I can't delete it because it's accepted!
I feel like the second answer is better because mine is C++03-only
Can't vote to delete if it's positive.
@JohannesSchaub-litb just edit your answer then?
@ScarletAmaranth hmm
@JohannesSchaub-litb facepalm
16:46
i leave that to someone else
I am surprised you care as much
the time that i'd been a SO fighter is gone
user1804599
@JohannesSchaub-litb flag it for mod.
user1804599
I did this once too and it worked.
or just don't bother with it
16:53
please flag it for me.. it sounds weird if i flag it myself
user1804599
No, do it yourself.
user1804599
It is weird if somebody else does it.
you can write in the flag notice that they can ask me in the chat whether i agree
user1804599
Or you could just do it yourself right away. :v
user1804599
Just explain in the flag why you want it deleted.
16:56
that'S going to cost lots of reps
user1804599
4k
OK so I figure you C++ guys are probably the most appropriate people to ask forthis?
for this*
..anyone want to help me out with a little project (verify whether I am headed in the right direction)? I am making a programming language for fun, close to C++ syntax, and have create a text file with some syntax rules in sort of custom format. Could someone tell me if I could start from this syntax to build a simple compiler (at least the Parser part in particular).
user784668
Yes.
you know
BTW, I can post the small text ^
16:59
compilers interest me so I'll give you a free pass.
UNLEASH THE HOUND! (puppy)
o_O
if your custom rules are in EBNF or pretty close, post them on pastebin or something and I'll take a look.
@DeadMG are you feeling ok?
compilers interest me.
what's so surprising about that?
The lang. is called Lupe, just so you know, not that it matters
16:59
I always said I'd give free passes to people with interesting questions; it's just that they never seem to come here.

« first day (1281 days earlier)      last day (3893 days later) »