« first day (1594 days earlier)      last day (3580 days later) » 

11:00
@ParkYoung-Bae 'I just started man. and I am stuck, I need to see just one line of code, that may be is just one damn function name what I wnant. and I am not getting that written clearly anywwhere
I'm scared, my code is compiling and shouldn't
oh, wrong file
lol
all is good
@NeelBasu Does this help
_|_
No due date   Last updated 16 minutes ago
hm, dunno why it got updated really
11:06
Yes I read get(distance, u) + get(weight, e) < get(distance, v) from there but this didn't help because I couldn't understand how I do the same here in my case
> Does this help
> Yes
Then we're gonna nead you to post some code
> but this didn't help
nice logic m8
Alex meaaaaaaan
may SO help us all
0
Q: Boost Graph accessing properties through vertex_descriptor

Neel BasuI have my custom vertex and edge properties namespace boost { enum vertex_diagonal_t{vertex_diagonal = 999}; BOOST_INSTALL_PROPERTY(vertex, diagonal); } namespace boost { enum edge_dominance_t{edge_dominance = 998}; BOOST_INSTALL_PROPERTY(edge, dominance); } I create my adjac...

us latter me first :P
@LightnessRacesinOrbit meh proposal.
It's std::unique_ptr<A> not std::unique_ptr<const A>.
11:17
nobody help US (They shoot freedom)
like most of them
the standard library is getting so fucking bloated
let's have this thing, let's have that thing
just stahp
and most of it is esoteric
this free-game thing looks really nice
uses freetype and shit
and is working
Why don't people advertise stuff like that more
they were trying to hide from you
11:18
It's like 10th haskell gamedev lib/framework I've found
they're popping everywhere
I don't know of anything esoteric in the stdlib.
Still thinking
Help :(
Oh oh. <valarray>?
Can't think of anything else.
he probably meant exotic
like, a pina colada
hmm so yeah free-game looks almost like hate, but its rendering API is monadic
mmm
<pinacolada>
and it doesn't provide ready to use slots for update and draw and load
so it's kinda more low-level
I have to make a list of comparable frameworks and make a chart at some point
11:29
I just got the weirdest compliment from another coder here: "Today your shirt colour nicely matches the colour of your code font."
user1642556
I don't really get the difference between variable initialization with equal sign vs curly braces....
@Erik That's because you haven't read one of the twenty near-identical SO Q&As on the subject.
@wilx Marry her.
what makes you think it's a she?
@LightnessRacesinOrbit It was him. :(
you people are just terrible at jokes
why did you have to go and ruin this with facts?
WHYYYYYYYYYYYYYYYYY
11:32
dunno LOL
@LightnessRacesinOrbit Yes, lol.
user1642556
@Lightness: I've read a few and still don't understand if there is a difference at all, between for instance int x = {1} and int x {1} vs int x = 1 or int x (1); I'm thinking with "simple" variables, there is no difference?
@Erik that's because one-element initializers are super special and retarded
IOW C++ sucks move on
user1642556
well, options are great
user1642556
11:37
ok, I actually found a nice .pdf from scott meyers...
They're different mechanisms with different rules, but you're not going to notice the differences when initialising an int from 1.
Although, try writing int x(1); in a class definition; I dare ya :)
Good morning.
user1642556
yeah... I just read that for instance you can't initialize uncopyable objects with =
user1642556
okay just have to dig in deep
@Erik Of course you can't, they don't have a copy constructor (or have it private).
11:42
@Erik yeah
@Erik because although it's not assignment and the copy will almost certainly be elided, it is copy-initialisation
and a whole bunch of wankery
user1642556
effective modern c++ was the book, scott meyers, seems good
Probably a stupid question.. How can you implement a debugger which can be used to inspect uninitialized memory without invoking UB in the source code of that debugger?
The article actually will help the OP regarding his question... — OhadM 9 mins ago
Why do so many people miss the point so completely when it comes to writing information in the correct place on SO
"oh it helped the OP therefore, as a link-only answer and a commentary, it's appropriate as an answer"
because people suck
and having to interact with plenty of them is hell
Xeo
Xeo
Yay, just ... 5 more hours T_T
I have this working now
shit
I have found another library doing the same
and I've got a feeling I can lose enthusiasm in Hate soon
I have to stay focused
What's the library?
posted in the other room
11:48
Love
@AlexM. no, Love is ok
I started with Love
why do people like the look of case hardened stuff that much
it looks like oil or detergent spilled in water
@BartekBanachewicz whoosh :P
Felt uncomfortable reading that
@AlexM. lol calling a gun "pure beauty"
@StackedCrooked It's only UB to inspect memory that's uninitialized in your own process.
the Standard does not cover reading memory from other processes.
Ah.
Thanks.
12:03
huh
what nonsense is this
Is it UB if you inspect uninitialized memory using embedded asm?
It's well-defined to inspect memory taken up by objects in your program. It's UB to inspect anything else.
embedded asm isn't specified by the standard
@StackedCrooked Inline assembly is impl-defined
Obviously
I think it's kinda weird that C++ does not allow looking at garbage.
12:14
@StackedCrooked It doesn't forbid doing so. It just doesn't define what should happen (afaik)
whelp, I'm officially an uncle now, my niece was born last night
11
Congrats :)
@Mgetz Mgratz
good job brother or sister of Mgetz
@jalf sactly
@StackedCrooked It's not weird, because C++ describes an abstraction. For specifics you are in the realm of asking what your compiler allows.
This is a good thing.
12:19
@Mgetz Icons look fine to me =/
@Borgleader honestly they could tweak one pixel somewhere and someone would get their panties in a twist
:(
fucking "flat design" bollocks
@LightnessRacesinOrbit no worse than the mac ones
disaster
@Mgetz that doesn't make them good
It's like 1992 again.
12:26
these were good
@LightnessRacesinOrbit looks ok
@LightnessRacesinOrbit
accumulator +=((dole % 2 ==1 )? bob : 0);
can u tell me what it means ;)
:)
first you need to tell LRiO that you have a doubt with regard to that piece of code
@Theorem What do you think it means?
hint: it means the programmer is an idiot
12:29
@Theorem Do you know what ternary conditional operator and modulo operator are?
It should be written like this:
@LightnessRacesinOrbit My understanding is if dole is even then bob=1 , otherwise its 0 .
wtf... you can declare shit in an else if and use it in the else block?!?
// We only accumulate when `dole` is odd,
// for reasons oddly not stated here.
if (dole % 2 == 1)
   accumulator += bob;
@Borgleader It's in scope for the remainder of the entire conditional
@LightnessRacesinOrbit It's not that bad.
@LightnessRacesinOrbit so i have to initialise bob and accumulator while running the program
@Theorem what
I have no idea what your program does or what bob and accumulator are or what you're doing with them elsewhere. So I cannot answer.
@LightnessRacesinOrbit Is it ok if i put the program i have written on chat ?
I worry if someone kicks me
@LightnessRacesinOrbit o.o that's a fucking weird rule imo
oh well
@Theorem If it's longer than 5 lines, post it on ideone or coliru, and then send a link.
12:34
int accumulator = 0;
3 while ( true )
4 {
5 if( dole == 0) break ;
6 accumulator += (( dole % 2 == 1) ? bob : 0);
7 dole /= 2;
8 bob *= 2;
9 }
10 cout << accumulator << "\n";
From my understanding, I meant if I pass an input signal or samples or stream of bits. So, if the input at a particular time instant is a sample value (each such value is of the size 1 byte, i.e. 8 bits), so I want to perform the U(a,b) fix on each such input samples entering. I am beginner in programming (C and C++). Generally more used to doing these stuff in simulink. Pl correct me if wrong. — DigitalGeeK 3 mins ago
@LightnessRacesinOrbit It's 'material' design. Everyone seems to be doing it nowadays.
I don't understand what he's trying to tell me
@Nooble Doesn't mean it's good
@Theorem Why do you keep posting code with line numbers?
55 secs ago, by milleniumbug
@Theorem If it's longer than 5 lines, post it on ideone or coliru, and then send a link.
12:35
And that's still not a program
Also it has no comments explaining what it is supposed to do.
@LightnessRacesinOrbit I never said it was good. What makes it bad though?
@Nooble The way it looks
okay :)
12:38
@Theorem The if(dole == 0) break; is a code smell. You can clearly put it in the loop condition, negated.
Those variable names are bad too
@milleniumbug accumulator +=((dole % 2 ==1 )? bob : 0); consider if dole is odd , then does it mean bob =1 ?
@Griwes inb4 he removes newlines
Hi there! I've just got a quick question—how come is it allowed for an user to delete his own answer, especially after that a lengthy discussion happened in the comments that could have been useful for archives (especially to show the attitude of that user)? Also he deleted his answer something like 1 min after I downvoted it, and it sounds like his reputation hasn't been affected.
(maybe I'm not asking this in the right lounge though?)
Correct
12:44
yeah you should search for Lounge<StackOverflowSupport>
Thanks!
@Theorem no
@Theorem it means precisely what I showed you 15 minutes ago
@ChristopherC Comments are not supposed to be forever anyway, which is precisely why conversations in comments are to be avoided.
@ChristopherC His reputation will not be affected, but if he does it more than a couple of times then he will be auto-question-banned
Deleting your own downvoted questions is a big red flag for the mechanism
Haaa I see, thanks for the explanation!
@LightnessRacesinOrbit so if initially accumulator = a , bob = b , and dole is odd , then accumulator = a+b .
12:47
Can I get a link to the question you're referencing?
@Theorem yes
He hasn't been so nice in his comments, and I found it weird that he could clean his mess up that easily. Good to know!
@ChristopherC Cleaning up mess is encouraged. We don't want mess.
The ban takes care of the behavioural issue.
Fair enough
12:48
Oh, an answer
Thought you were talking about a question
I'm not sure whether there's an auto-answer-ban.
Sigh! :)
Wow, yeah, that guy's a total wanker
Do you still have access to his comments??
@Borgleader makes a bit of sense, really. The condition applies to the else branch exactly as much as it does to the if branch
Yes :)
BTW looking at his profile, his extant comments on other, not-deleted posts, look okay. Curt but okay.
12:50
Cheat!
@ParkYoung-Bae Nope
Maybe in Haskell, but definitely not in C++
Hope was crushed
So today marks the day when I have as many upvotes in as in
If I had to guess, I bed that he will change his user name and add information about himself when he will reach a certain amount of reputation! :)
Well. What does that tell us.
12:53
@BartekBanachewicz and they're precisely as worthless!
@ChristopherC I think you're over-reacting a bit
Funny to see how some numbers next to a username can have such an influence on some people.
Yes, I was half-kidding
user1804599
@Theorem go away forever please
@райтфолд :(
@ChristopherC Well, they're not arbitrary numbers.
@Theorem Just ignore him.
He seems to have no manners whatsoever.
Hahaha.
user1804599
12:57
If you help vampire, at least run awk '{ $1 = ""; print }' | clang-format over your goddamn code.
the fact that I can take an f :: a -> b and an operation op :: Either String a and then get f <$> op :: Either String b is so sexy and amazing
@Theorem It's not hard to know what he's trying to tell you. He's telling you that writing code like that would be grounds to look for another job if you were his coworker
@LightnessRacesinOrbit okay
@BartekBanachewicz Not really.
@райтфолд what the hell is awk '{ $1 = ""; print }' except for a glorified cat?
12:59
@sehe Thats a code from MIT lecture , the question was to find out the output without the use of computer .

« first day (1594 days earlier)      last day (3580 days later) »