« first day (1632 days earlier)      last day (3542 days later) » 

user1804599
23:00
class Nothing extends Any. It is not just a type. — barbara 56 secs ago
user1804599
epic fail
~ is the bitwise NOT operator, which flips all the bits in a sequence from 0 to 1 or from 1 to 0
if it was a 1 then it becomes 0. likewise if it was 0 then it becomes 1
i.e. if I had an unsigned byte of x = 00000000, ~x would produce 11111111
professional tutoring skills incoming
I wouldn't bother with the help vampire
He only comes in here when he has questions to ask.
@Rapptz is that supposed to be me?
23:02
@DemCodeLines it's very annoying when people manage to claim the lounge for 6 pages in a row just with noise, because they can't be bothered to think about how to ask a question. This is why we have Stack Overflow. Because questions can get moderated/edited there and not waste so much time.
@Cinch No. DemCodeLines.
@Rapptz (finally it's not me)
user1804599
Perl's Inline::C module is cool. When you use it, it invokes the C compiler to create a shared library and then it loads that library.
user1804599
It's like eval for C code.
@DonLarynx Not even related.. like at all.
Not even close.
Did you reply to the wrong person?
23:04
-0 shouldn't be valid
why not?
@Blob Because most systems should be running on 2's complement
Not 1's
what about floating point numbers
where a sign bit can be nice?
23:05
@Blob I believe that's a different story
@Rapptz If your number is 0.99999 and it's supposed to round to one, use an epsilon number. if(|targetnum - inputnum| < epsilon){inputnum = targetnum}; example if(|1 - 0.9999| < epsilon){0.9999 = 1} obviously the inline won't work because they're RHRs but if you assign inputnum = 0.999999 and targetnum = 1 it will work
Don't talk to be about floating point
@DonLarynx The conversation was about expression templates to fold mathematical expressions as if they were symbolic.
I wonder how you would round floating point numbers
@Rapptz i have a feeling Mathematica probably does this
23:06
@Rapptz stunned silent :)
I.e. I want to round floating point numbers to the nearest 1/3
i don't know any Mathematica, though
@Blob of course
@sehe lol
you and several others would tell me that.
23:07
See
this is why I'm in Computer Engineering and not Computer Science
because CS majors learn only the pretty stuff and not the nitty-gritty
@DonLarynx that's because when people ask really basic questions, that's always true.
Can a CS major create a robot driver from what they learn in schol NOOO
@Cinch what're you referring to?
sehe, what does true mean? triple executable facepalm
And if reading the book didn't help dispell the really basic questions, nothing else will. So all time spent would be wasted
23:08
(at least at my school they can't)
@DonLarynx It means "no Scotsman"
@DonLarynx the state of believing in a lie
Two helpful answers in a row. Go in peace.
Also I'm wondering how to integrate smart pointers into my stuff
23:09
i like both of them
The guy from Code Review recommended that I put in weak_ptr and shared_ptr
one made me laugh and the other made me think
And I also need to apparently add a virtual destructor into my code
@DonLarynx No, my answer is BS.
@Cinch link?
One made me cry and the other in the stink
23:10
@Cinch Why?
4
Q: Flexible generic event system that binds to objects

CinchI have been trying to create an event queue system using SDL. I've been trying to use this for Pong. The game is not even finished yet, but I stopped work to examine how my event system is organized. Event_Queue - This is the heart of the system. All events go through here and all listeners com...

This was before I recently refactored
Is it possible to assign object addresses to pointers while the program is running (as in during runtime)?
@sehe "A directive composed of one or more white-space characters shall be executed by reading input until no more valid input can be read, or up to the first byte which is not a white-space character, which remains unread."
@DonLarynx I believe in moral objectivity to counter the moral-arbitrary view of a non-absolute world because we must make moral, black-white decisions on a daily basis (i.e. do I eat this or not)
@Veritas yeah? Doesn't that imply the line-end has already been seen
23:11
@DemCodeLines You.
@Cinch what the fuck
user1804599
Oh fun, building LLVM.
@Cinch so true?
@DemCodeLines what?
@DemCodeLines Duh. How else do we dynamically allocate ANYTHING?
23:12
@Cinch I don't eat this
@DemCodeLines you mean like, MyClass a; MyClass *b = &a;?
@sehe I would make a sexual joke here but I feel that most of you are thirty-somethings and then it would be inappropriate
@DemCodeLines cough. That book. It's waiting for you
@DemCodeLines Do tutorials please.
sorry, but no, that's not possible at all.
@Blob "not possible at all"
ITT Blob teaches a man not to fish
It's fish or fry
@райтфолд WANT
@sehe I don't see how it is implied that line-end has already be seen but I am not a native english speaker so it may be obvious.
user1804599
Alright, let's install the latest clang so I can use the C++17 features it already supports. They're experimental but yolo.
23:15
0
A: Airplane Schedule Homework

CinchStack Overflow is for specific coding questions on either paradigms or mechanics. People here are not here to help you do homework or tell you how to do it, but we will help you with how to do a certain programming "tick," like manual memory management with pointers or explaining encapsulation fo...

@Cinch you already got down voted on your answer by OP lol
@Cinch as much as that's not a question, yours isn't an answer
had to up vote it, sigh
make it a comment
user1804599
N3820 not implemented yet, though, and I really want it.
23:16
@DemCodeLines no, probably by someone else
@Blob you?
user1804599
VLAs with non-POD support would be a killer feature.
@DemCodeLines no, probably by someone else.
you should delete it before someone else does and makes you lose 100 rep
@Blob I won't delete answers because deleting -> bans
and plus it's sort of wussy to go crying back to the drawing board fo the answer so NO.
My terribad answer stands.
no it won't
trust me, it won't
23:18
@Blob No.
@Cinch that has nothing to do with why truths are beliefs in lies.
user1804599
hahaha fold expressions are already implemented
user1804599
coooooool
@DemCodeLines A book. Read it!
@DonLarynx In other words, I take the view that faith in beliefs can often be taken as absolutes for the purpose of most purposes. Obviously this fails when you get to opinion-based arguments but I rest my case.
23:19
@Cinch it's not an answer. So your claim is ill-formed
@sehe Then downvote it.
I was having a conversation in the lounge
Don't claim things in the lounge if you don't want responses
Alright fine I'll delete it
user1804599
Nested namespace definition is also a killer feature.
Why care about Perl again?
user1804599
23:20
Because Perl is awesome?
@DemCodeLines You're basically asking if Myobj* myobj = &myobj_runtime_address. Think about what can go in the right hand side; basically anything in scope created during the runtime, as cinch has said. We've all read the answer from a book. if anything, read cplusplus.com. Now begone
I hate reading Perl although it's fancy.
Sep 23 '13 at 7:53, by not-rightfold
Perl is hot.
tr/h/n/
did this lounge get a lot more aggressive recently?
23:22
@Cinch the claim was "truths are beliefs in lies". you haven't told me why truths aren't beliefs in lies. in fact, a truth is a belief and a belief is a truth
an acceptance that a statement is true or that something exists.
druids thief time flies
@Blob just a bit
user1804599
I learn more about C++ every day.
@райтфолд you're welcome
user1804599
What's so good about Boost.Exception?
user1804599
23:24
Is adding extra information the only thing it supports?
@DonLarynx truths are not beliefs in lies because those beliefs are not inherently lies
user1804599
Other than the features new in C++11.
user1804599
Apparently it doesn't have things that are actually useful, such as stack traces.
@Blob I'm a bit curt tonight.
@райтфолд it's the added value, IMO. I don't like it, but besides that I see no reason to use it at all
time to clean my keyboard
23:26
Therefore my statement is invalid
3
wish me luck ;_;
@Rapptz tip: hold it up over your face
@Rapptz did you snarf your coffee on it :/
@Rapptz that's a thing?
tip2> get rained on by crumbs
23:26
@Cinch This is a keeper
@sehe OH MY GOD LOL
@Cinch remove "prior" please
@Blob it is a thing as soon as your keyboard cost >$100
@sehe keyboard > $100? that's a thing?
i feel like i'm missing out on luxury
23:27
@райтфолд wow the fold expressions are great. I actually wished the language provided such a feature in my last project.
my keyboard was $115
pre-sale
NE ways
@Blob :( now it's meh
@sehe it's more general(ly correct).
Why don't they just make all keyboards island keyboards so crap can't get in
23:28
@Blob I see cherry MX brown switches. So, yeah
4 beeps to get that right. nice.
looking back, i really hated java and c# when i started using them (four months ago). did anyone else feel the same?
@Blob cheap keyboard
@DonLarynx nope. I think Java feels clunky. C# not
So I had an idea
I should make a game about Lounge
... care to expand on that?
23:30
Okay. Listening
@Blob Synopsis: There are 10 programmers in Lounge and suddenly one goes missing
indian island
it's been done
@Cinch that has happened.
The game revolves around trying to find out who is killing those on LoungeC++ with a vengence
@Cinch wtf
23:31
@sehe lol not my keyboard, found image online but mine are incidentally cherry MX brown
Gameplay: turn-based strategy
scrap the plot
@Cinch are u listening?
@Cinch it's been done
@DonLarynx No.
Ugh.
I thought that replacing my own game's storyline with that would turn out better
and the disappearing thing has happened. noone went out of their way to find out what happened.
23:32
Right now Haven's story is pretty bad
@Cinch okay. nice plot. For a cheap horror shtick. Who will buy this game?
@sehe No I mean we get into corporate warfare and all this other shit
and then we throw in a sentient human-turned-AI-monstrosity and its all good
@Cinch i liked the idea, bad implementation. horriblyy bad
people at work chatting on Lounge<Rightfold's Vagina> trying to not get caught
23:33
@Blob not true. It happened at least ~4 times and in all cases people have been investigating. However, Tony went un-unnoticed uncharacteristically long
that's a better story
Like it?
@sehe "investigating"?
stalking profile for activity or something legit?
sending offline notes, checking for updates via other people
@Blob of course we won't mobilize a search & rescue, since that's (a) usually not an option (b) badly overreacting (c) badly overreaching most of the time
3. getting better.
23:35
QQ no one wants to listen to the theme
I spent so much time on it QQ
@Cinch some things need to be worthless for other things to have value
@Blob It's not about better. I'm always redacting. Also when I code
@Blob Ugh.
@Blob example?
@Cinch I think I've dissected it enough
23:37
@sehe Oh it was you before hand right
I don't think Blob saw it yet lol
not sure
user3010322
@sehe Tony's lack of participation went noted earlier, but the way it worked was that he came on in increasingly distant intervals, so people were moreso waiting for him to show up, rather than being alarmed by his sudden absence.
user3010322
I miss him. :(
user3010322
Maybe I should e-mail him...
@DonLarynx no
23:39
@ThePhD yeah that is a factor. Like, we would likely take months before we got worried about sbi not making an appearance these days
@Blob so your claim is false?
you can't just post false information ....
@DonLarynx i thought this was post-whatever-sounds-cool hour?
16 mins ago, by Cinch
@DonLarynx truths are not beliefs in lies because those beliefs are not inherently lies
@Blob ugh, i'm horribly logic-oriented and i hate it sometimes
i dont know when to use it
use what?
sometimes i use it when im not supposed to, other times i dont use it and i get burned
my logical thinking
23:42
always use it
just be careful around philosophy majors
(i'll go hide now)
@DonLarynx this never struck me before
23:44
wrong message
I think I know which one you're about to copy
people always told me i was booksmart, and not street smart
@райтфолд wait. can you annotate that? it's in backtrace_symbols if from execinfo.h, then? Is it linux-default or a specialized library? And are c++1z or -rdynamic related?
user1804599
Yes, it's from execinfo.h.
@DonLarynx ; and not comma-smart
user1804599
23:46
-std=c++1z isn't required.
user1804599
-rdynamic is, otherwise the symbol names won't be included.
@райтфолд ah that's just GNU libc, then? gnu.org/software/gnulib/manual/html_node/execinfo_002eh.html
user1804599
Yeah.
user1804599
IIRC it also works on OS X.
user1804599
There should be a substitute for Windows.
23:47
I remember there being a library for that (I mean, the portability)
@sehe i never really got used to commas
user1804599
No line numbers, sadly, but better than nothing.
they're last on the precedence list anyway
user1804599
LLDB takes two seconds to load, which is annoying.
user1804599
Don't know about GDB.
23:48
but they sequence
@райтфолд check the init scripts
@райтфолд If you are grouping the -W flags together, group -pedantic (or should I say, -Wpedantic) as well :P
user1804599
I want -pedantic, not -Wpedantic.
user1804599
user1804599
I never knew this section existed.
user1804599
It's quite comprehensive.
23:50
@райтфолд that got changed, IIRC
@Griwes -W{all,pedantic,e{rror,xtra,ffc++}}
user1804599
:D
DRY
@sehe :D
Yeah, Clang guys are moving -pedantic to -Wpedantic - the first one is deprecated on the latest builds I think.
Xeo
Xeo
23:52
@sehe yeah, those are nice
user1804599
@sehe clang 3.6 :P
There was a nice bug related to that (that reported warnings as categorized by -Wno-edantic e.g.)
Xeo
Xeo
The fold expression proposal was extremely well written
@райтфолд W00t, they implemented that already?
23:54
yay
I'm wondering how to use smart pointers with Flexiglass
If the pointer to the listeners become invalid... I feel like I should use a weak_ptr
@sehe ohhh
But then that requires that I pass a shared_ptr and then wrap this in a shared_ptr
11 hours ago, by sehe
Nice. Keep on feeling
@Cinch what
@sehe I want to register Listeners with a Queue
I want the queue to hold by reference or pointer
user1804599
23:56
What I'd really like is C's designated initialisers, except with a check that all members are initialised.
But what if the pointers become inavlid
user1804599
Along with syntax to use them as expressions.
I feel that weak_ptr would be good here...
shared pointers/weak pointers it is.
@райтфолд Yes please.
user1804599
23:56
It's one of C's best features.
But that requires I wrap the Listener pointer in a shared_ptr first
> C
> best features
The "C++ has constructors" argument against them is absolutely bollocks.
@sehe He is not wrong.
And that begs the question:
@Cinch You don't "wrap" pointers. Generally
Xeo
Xeo
23:57
Designated initialisers would be so nice in C++
(Surprisingly.)
Xeo
Xeo
named arguments~
So then all the Listeners should be initailized using shared_ptr then?
user1804599
Like this: div_t answer = {.quot = 2, .rem = -1 }; except that div_t answer = {.quot = 2 }; would be illegal instead of silently leaving rem uninitialised.
@Griwes I'm often abusing aggregates, but they are error prone and awkwardly limited
user1804599
23:57
But even better: auto answer = div_t { .quot = 2, .rem = -1 };.
@Cinch add more then. Yes. Of course you can use a wrapper at that end (when you know things about the life time of the listener being wrapped)
@райтфолд ...unless rem has a default initializer, in which case it's legal!
Xeo
Xeo
@райтфолд why? not initialising might be fine (in C++'s case with NSDMIs, especially - or zero-init for unmentioned members)
user1804599
@Xeo ctor arguments still require lots of boilerplate.
@sehe Hm...
So the system should be:
user1804599
23:59
hehehe
Have an object create a shared_ptr to a new Listener
Wonderful Counselor
Prince Of Peace
Use a weak_ptr to observe its existance
Done
When the shared_ptr goes out, the weak_ptr will become invalid and remove itself from the list
user1804599
23:59
struct user {
    user(...) = default; // :)

    int id;
    std::string name;
};
Xeo
Xeo
@райтфолд ?

« first day (1632 days earlier)      last day (3542 days later) »