« first day (1259 days earlier)      last day (3687 days later) » 

5:07 PM
how the fuck does she understand anything the doctor's saying?
 
@LightnessRacesinOrbit Brail
 
@thecoshman What, there's a live transcription?
 
@LightnessRacesinOrbit I never said it would be fast.
 
@thecoshman She's reacting and conversing in real time
 
But you can get brail book like things
@LightnessRacesinOrbit ¬_¬ now that is interesting.... I didn't watch the vid
 
5:10 PM
@thecoshman Aha; mistake #1
 
(3/3) What are the hazards? What should be done to guard against them? What are the tests for failure? Blog and I'll read.
eh
 
Braille sign language.
 
what
mainScreen.turnOn();
 
Brawl sign language.
 
5:24 PM
0
Q: C++ dynamic array size definition

JochenI am used to java and php and now I need to write some c++ code. I got difficulties to create a BYTE-array with dynamic size. How to achieve this? int byteSize = shm.getMemorySize(); BYTE byte[44]; // replace 44 by byteSize

@CatPlusPlus @DeadMG @Bartek ^ all yours
 
Hey, guys! Long time no see. I finally got through my A-Levels.
I can finally go back to coding all day long shut up in my room!
 
@ApprenticeHacker Alive, or is that a post from the other side?
 
How can make_unique<T[]>(size) be equivalent to unique_ptr<T>(new typename std::remove_extent<T>::type[size]())?
How would the unique_ptr know to delete[] rather than delete?
 
5:28 PM
@MartinJames lol, alive. I fared better than I expected in fact. I won the Cambridge Outstanding Learner's Award for Physics.
 
And why am I asking here? When there's rep to be won?
 
@LightnessRacesinOrbit You're misreading it.
 
@ApprenticeHacker Cambridge, Mass?
 
In the description, T stands for some U[]. (And U is typename std::remove_extent<T>::type)
 
@MartinJames Nah, the real Cambridge. I tried Cambridge, Mass too, though. Got rejected from MIT. :'( .
 
5:30 PM
@R.MartinhoFernandes Am I?
 
template< class T >
unique_ptr<T> make_unique( std::size_t size );
It's make_unique<T> when T is an array type of unknown bound.
 
Yeah I think I grok that
 
@ApprenticeHacker My most vivid recollection of Cambridge is running over three cyclists in five years. I tried really hard to get my score up, but three was all I could manage.
 
any ideas how to implement a Core Registry class ?
 
@Jermimbilal Don't.
 
5:31 PM
@MartinJames You're really dangerous.
 
@EtiennedeMartel Cambridge cyclists are suicidal.
 
@MartinJames lol. Cambridge, Mass or the other one? I've never been to either.
 
TBH, Berlin cyclists aren't much better.
 
make_unique<int[]>(3) is equivalent to unique_ptr<int[]>(new int[3]). Yes?
 
5:32 PM
Ooops, accidentally replaced the previous message.
@LightnessRacesinOrbit Right.
 
@MartinJames Montreal cyclists remain active in the winter.
 
Yeah, I guess I was mentally misreading T for U in the unique_ptr template argument
 
I think recklessness is a key cyclist trait.
 
actually, more accurately, I forgot the template argument was there
 
@DeadMG why? i found an implementation in Java and would like to do the same in C++ (github.com/MovingBlocks/Terasology/blob/develop/engine/src/main/…)
 
5:32 PM
@EtiennedeMartel Looks like the 'suicidal' tag applies pretty much everywhere.
 
Xeo
whoop, time to get home
 
Is Python ever used in Electrical (mainly Electronics) Engineering?
 
When my projects gets bigger and bigger i lose my concentration and delete it all and start over. so i'm thinking of using a core registry to avoid coupling between classes.
 
user1804599
@ApprenticeHacker Most likely.
 
@Xeo I'm free now for the weekend too. Lord Haw-Haw did call at 16:45 to complain about my last beta, but he had to go home early 'cos he has to go to a birthday party. Dozens of 11/12 year-old girls. That'll teach him to moan about my software:)
 
5:36 PM
like any good union of sovereign states
> Registry giving access to major singleton systems, via the interface they fulfil.
Yeah how about... no....
 
@rightfold Nice. Do you know any other languages that are helpful in the field? I might start an undergrad EE program this September so I'm looking to better my skills in some programming languages that might help. I'm working on C for now. Re-reading the K&R book.
 
user1804599
I have no idea.
 
@Jermimbilal Because it's a terrible design and idea.
 
@ApprenticeHacker I've not seen it used, but there again, I'm more of a software engineer now.
 
user1804599
What exactly do you want to do in EE?
 
user1804599
5:38 PM
It’s quite broad.
 
@DeadMG Cycling?
 
yes.
 
@DeadMG Couldn't agree more.
 
is std::ref a value type?
or a type with value semantics?
 
@DeadMG How can i learn to design my system properly? any resources?
 
5:40 PM
i mean i can copy it and pass it around
but when i modify it
i modify something else
 
@gnzlbg: Neither. It is a function template.
 
@rightfold Well, the university I'm hoping to get into offers 4 main sub-fields. I'm planning to opt for no. 2: "Electronics and Embedded Systems".
 
that returns?
 
Do you mean std::reference_wrapper<T>?
 
std::ref(value)
@LightnessRacesinOrbit yes, I guess so
 
5:41 PM
What do you mean by "value type"/"a type with value semantics"?
 
std::ref is just a make function for std::reference_wrapper<T> ?
 
user1804599
@ApprenticeHacker Probably C then.
 
user1804599
Maybe C++ if you’re lucky.
 
@LightnessRacesinOrbit that is a good question, i think i don't know my self
 
5:42 PM
@ApprenticeHacker Good. Also, get in the Lounge more often. Embedded developers get a lot of stick in here from [the rest] who don't understand how their computers work:)
 
so does a std::reference_wrapper<T> have value semantics or reference semantics?
if I do this
 
@rightfold I see. Is that the primary language used in electronics and embedded systems, nowadays?
 
@MartinJames heehee
@gnzlbg If you're going to ask a question, understand it first. What problem are you facing? What do you really want to know?
 
@LightnessRacesinOrbit Yup - that would be primarily you:)
 
std::reference_wrapper<T> a;
std::reference_wrapper<T> b;
a = b;
 
5:43 PM
@MartinJames You know I'm an embedded dev, right?
 
does that change a to point to whatever b points to,
or
does that modify a's pointee to the value of whatever b points to
 
@LightnessRacesinOrbit What are you embedded in?
 
@LightnessRacesinOrbit Oops! I must be confusing you with the other mor... high-level-only guys:)
 
so its like a pointer
 
5:44 PM
The Lounge
 
op= is basically the only thing that works on the ref wrapper itself; it rebinds. Everything else will go through the automatic conversion to T&
@gnzlbg not really, no
 
:/
 
hey guys, i would like to know how can i design a proper system? i always get stuck in the middle of the project.
 
@MartinJames Thanks. I've always found the Lounge fun. It's like attending the fun-fair at a lunatic asylum and finding out you're madder than the lunatics. :D
 
@Jermimbilal lol
 
5:44 PM
Grow some balls and push through ;)
 
@ApprenticeHacker trust me, you're not
 
is like a pointer that auto dereferences unless i assign another pointer to it, then it does pointer assignment?
 
@ApprenticeHacker I can accept that analysis.
 
@StackedCrooked My own personal hell
 
It's like a Java reference
 
5:45 PM
std::reference_wrapper<int> a(some_int);
a = 4; // some_int == 4
std::reference_wrapper<int> b (some_other_int);
a = b;
a = 3; // some_other_int == 3
 
@LightnessRacesinOrbit that sounds cool
 
i always start a project, till i get to a point and decide to delete it, is this a psycho thing or has something to do with bad design decisions?
 
@StackedCrooked It is kinda
 
@Jermimbilal Change your name to Zoidberg.
 
@gnzlbg Test it
 
5:46 PM
@MartinJames hehe
 
@gnzlbg but, yes
 
im very confused about the difference between value and reference semantics
and what people mean about that
when they say, this type has reference semantics
this other type has value semantics
 
well first I think you should decide what you mean by it
I've heard it a couple of times and stayed away from it
at a guess, a type with reference semantics acts as a handle for something else
 
@Martin huh?
 
for me reference_wrapper, iterators, ranges, pointers, shared_pointers, ...
have all reference semantics
while Regular types do not
 
5:47 PM
I wonder how and why they managed to make use of Python and Java in Nao.
 
as such, std::reference_wrapper would basically have both kinds of semantics. reference through implicit conversion to T&, and value through its op=
 
yep
 
@gnzlbg If it's copy/pasted, it's value. If it's a link, it's reference.
 
but you'll need someone actually knowledgable in this (i.e. not me) to confirm that for you
 
@LightnessRacesinOrbit meh
 
5:48 PM
that is what is confusing, some types are both, depending on how you use them
 
@R.MartinhoFernandes no?
:s
 
very informative
 
i hope he is writting
 
@Jermimbilal Sorry - Lounge in-joke. 'Zoidberg' was famous here for starting 1000 projects and finishing one.
 
5:49 PM
i trust the robot
 
@Martin do you think understanding design patterns is mandatory to designing a proper system?
 
it is most assuredly not.
 
@Jermimbilal Design patterns? They did not really exist when I first delivered systems that worked properly.
 
When you assign a reference wrapper you assign the referer, not the referent.
 
@LightnessRacesinOrbit Eh?
 
5:50 PM
Fuck the spelling
 
@MartinJames Zoidberg is rightfold :ssh:
 
@R.MartinhoFernandes unless you assign it some value of the type it wraps?
 
Value semantics are about the referent.
 
Also fuck design patterns
 
@Martin, will designing a working systems is easy for everybody, i'm talking here about flexible systems which can easily be modified and enhanced.
 
5:52 PM
i can pass std::reference_wrappers around like values
 
@CatPlusPlus Yeah - but I didn't want to embarrass him in front of n00bs.
 
@Jermimbilal That's pretty much the antithesis of design patterns in most cases.
 
@gnzlbg that just creates a new referrer.
 
the moment i assign them a value of the type they wrap, they modify some other value
mm
 
Woah, the Lounge is having an (un)conference?!
 
5:52 PM
i think reference_wrapper is too complicated
 
Oh, they do?
 
what about a pointer?
i can copy pointers around
but i can modify values through them
 
@Martin so you are telling me that design patterns are useless?
 
I guess that's to mimic C++'s references, then
 
@CatPlusPlus thought you were one of those OMG DONT new AND delete ppl
 
5:54 PM
I'm feverish.
 
yes, im just confused about how to know when a type is a value or a reference
 
@R.MartinhoFernandes read up
 
or has value semantics/reference semantics
people use those words a lot
and i thought i knew what that was
 
they implicitly convert to T&, but have an op=(const ref_wrapper<T>&)
which seems nastily inconsistent to me but there you go
 
but the more i think about it, the less im sure that is the case
 
5:54 PM
@Jermimbilal I don't think particularly about design patterns when designing systems. I usually just try to get the data, and data-flow, right first. The code is then usually pretty easy for my jobs.
 
I don't really care about answering SO questions
 
I didn't think you did
I was expecting a Cat Commentâ„¢
 
I'm watching someone play Crawl, much better thing to do
 
im gonna ask it as a stack overflow question
 
@Jermimbilal No, I'm saying that I don't use explicitly use them.
 
5:55 PM
@Jefffrey If it wasn't clear that I'm doing something sketchy from my variables, it will be after I explain this: The c-strings are code that will be used dynamically. — Jonathan Mee 45 mins ago
 
But seriously fuck design patterns
 
@Martin do you have any projects on github that i can take a look on?
 
could it get any worse?
yes, it could
 
I think I'm staying home tonight
 
@R.MartinhoFernandes Drink alcohol.
 
5:56 PM
@Jermimbilal No. Nearly all my work is proprietary.
 
no need to ask the question
im sure i know it now
 
That's precisely what I just decided against by staying home
 
tic tac till im unsure again
 
@EtiennedeMartel Hmm.. I'm getting thirsty.
 
if some_type<T> offers same semantics as T& when interacting with T's, then it has reference semantics,
if some_type<T> offers same semantics as T, when interacting with T's, then it has value semantics
 
5:58 PM
@R.MartinhoFernandes What.
Beer is usually cheaper in stores, so you save money by drinking at home.
Which means drinking at home is a smart choice.
 
what those type do when interacting with other some_types<T>, some_types<U>, is irrelevant maybe
 
eh
 
@EtiennedeMartel HOLY SHIT I OVERSLEPT only drinks out.
 
I don't like beer
 
hopefully they'll have value semantics in those cases
 
5:58 PM
Bleh beer
 
cheaper in stores doesn't really mean much when you're buying something of basically no value.
it's like saying I could buy my own shit back for cheap.
 
@R.MartinhoFernandes You're German now, so man up.
 
Also the hell with cheap.
 
@R.MartinhoFernandes i thought you live in germany dude
 
Drink whiskey
 
5:59 PM
@CatPlusPlus That works too.
 
@StackedCrooked rofl, Kill la Kill took it to 12 (this is not a spoiler :P)
 
Drink whisky
 
i just received a box of augustiner helles
 
@gnzlbg Honestly, fuck knows
 

« first day (1259 days earlier)      last day (3687 days later) »