« first day (558 days earlier)      last day (4392 days later) » 

2:00 PM
> Smart pointers are great, but they have to keep reference counts.
Why the fuck do people think there's only shared_ptr?
7
 
no idea
also, if you need to dynamically determine the lifetime of an object, how the fuck else are you gonna do it?
 
@RMartinhoFernandes yeah and otherwise you need to implement that yourself and it's probably a billion times slower.
 
And even if you do need shared ownership, not using shared_ptr means you write your own reference counting anyway.
So the overhead argument is completely bogus.
 
Because people is stupeed.
 
didn't some one say that other day that unique_ptr is compile time validated, thus at run time has no overhead?
 
2:01 PM
I got 85 rep for one sentence today, that's a win.
 
@CatPlusPlus pics or it didn't happen
 
Every type is "compile-time validated".
 
Hyperlink or it didn't happen.
 
7
A: calling sizeof on a function call skips actually calling the function!}

Cat Plus Plussizeof is a compile-time operator, and the operand is never evaluated.

 
now you farmed even more
 
2:03 PM
Yeah, rep whore.
 
@bamboon "oops"
 
@thecoshman Yes, me.
unique_ptr does indeed have no overhead
 
shared_ptr has no overhead either.
Unless use a shared_ptr but don't need its semantics. Your fault.
 
agree
 
@RMartinhoFernandes it needs to store (a pointer to) the deleter function, because multiple shared_ptrs of the same type can have different deleters.
 
2:06 PM
@classdaknok_t And if you wrote your own that used a type-erased deleter, you would do exactly the same thing.
 
The same is true for unique_ptr btw.
 
or, indeed, you would have to do the exact same thing anyway because if you had a function object, two different instances might do two different things.
 
@RMartinhoFernandes unique_ptr takes a deleter as template argument.
 
It's just that default_delete<T> is empty and the EBCO kicks in.
 
@classdaknok_t And that type is stored in the unique_ptr.
 
2:07 PM
Isn't the function object created only when it's needed using unique_ptr?
 
the only difference between unique_ptr and shared_ptr is that in shared_ptr the deleter is stored on the heap with the reference count, and in unique_ptr it's stored inside the unique_ptr object.
@classdaknok_t No.
how could you possibly do that?
 
Meh. I'm wrong again.
 
@classdaknok_t No, it's either default constructed or passed directly in the ctor.
 
your function object might need custom creation parameters, or be a lambda, or something like that
 
I see.
 
2:08 PM
sizeof(unique_ptr<T>) == sizeof(T*) because of an optimization.
 
@meFromThePast y u no sort out home serber
 
@DeadMG why did you post your answer twice?
 
@RMartinhoFernandes I didn't, I edited it. For some reason it came up twice. I just deleted one of them.
 
Weird.
Also, lol at mobile phones argument.
 
I know
wtf is he smoking?
 
2:12 PM
oh oh oh... @sehe has your server ... frozen?
oh, the hilarity
yay! solution
 
must... implement... flocking... algorithms
and fucking hell, why is my pathfinding broken? :((
 
hmm, @RMartinhoFernandes, you haven't applied for a job in Denmark, have you? My boss just told me he'd got two applications from people called Fernandes :)
 
dude! sort it out :P
 
@DeadMG So i take it your a game dev then ?
 
I wouldn't really put it that way
right now I am developing a game
 
2:15 PM
Jack of all trades :)
 
but I also waste my time which I should be spending studying on developing other things
 
@jalf Er, no.
 
@thecoshman at work :) just had some trouble verifying the workyness due to the fact that I'm behind a proxy that doesn't do ftp, apparently
 
@DeadMG dont we all ? i have about 3 half finished games and then client work which takes me away from the fun stuff.
 
@sehe found a site in the end
thanks any way though bud
 
2:16 PM
@jalf are you sure he didn't say "Fernandez"?
 
@thecoshman oh, ok :)_
 
but lord is it slow
 
REFIND ALL THE PATHS!
 
Fernandes is a common surname here, so that's not that surprising.
 
@thecoshman I think my server has at least 3Mb/s upload
 
2:17 PM
@sehe is that a smiley face holding up a pretend smile?
 
sbi
I wrote a book about PHP http://t.co/7oIbPMiJ
 
@thecoshman exactly
 
@sehe this is more like 0.03 Mb/s
 
(And seemingly, Martinho is a common first name among people with surname Fernandes. Arrgh)
 
@classdaknok_t Could be either :)
@RMartinhoFernandes but it's less common here. ;)
 
2:18 PM
@jalf Because I know someone who knows someone who knows someone from Sweden who is called "Fernandez".
And Sweden is near Denmark.
 
Lots of people are emigrating (or better "getting the fuck away from this crapsack")!
 
@thecoshman if you want to give it a whirl, I'll post details here BRIEFLY
 
Yeah, I know. Just made me think of you :)
 
@sehe yeah, please do
 
I stole ur details
 
2:20 PM
we're still hiring btw, if anyone wanna join a cool team of C++ devs :)
 
@jalf can you wait a few years?
 
Couldn't you make a simpler password, like "12345" or "qwerty"?
 
in Denmark?
emigration could be a bitch :P
 
Error: Connection timed out
Error: Failed to retrieve directory listing
 
@DeadMG yeah
 
2:21 PM
@DeadMG meh
 
@RMartinhoFernandes meh
 
besides, I doubt you'd want me as a co-worker
 
@thecoshman that's because he (removed) the details.
 
@sehe you can email details if you prefer @gmail.com
 
2:21 PM
@thecoshman interesting. I tested it
 
anyway, lots of fun stuff to play with. iPad, Windows, Linux, Boost, C++11, Qt, OpenGL, image streaming, all sorts of interesting stuff!'
</propaganda>
 
@sehe lol good old "works on my machine", heh?
 
where?
 
@jalf linky?#
 
@RMartinhoFernandes what other testing is there?
 
2:22 PM
@jalf Fun stuff, Qt?
 
@classdaknok_t well, some people like it ;)
 
OpenGL is fun though
 
@thecoshman actually, I tested it from another VPS server :)
@thecoshman sent
 
@jalf I guess I'm not "some people" then. :P
 
2:24 PM
@DeadMG linkedin.com/jobs?viewJob=&jobId=2908712 for the iOS position. Looking for a general C++ dev too, but can't find linky for that right now
 
@classdaknok_t Of course not, you're "some person".
 
@classdaknok_t I'm not a big fan of Qt either. But all the other stuff is nice :)
 
@sehe hmm.. doesn't seem to want to work...
 
@jalf looks cool.
 
For the other position, just strike the stuff about iOS
I think the title on that one was "Elite C++ developer"
 
2:28 PM
@jalf i hope plenty of tongues were being held in cheeks there
 
@sehe yeah, definitely :)
but with a grain of truth in it. My boss is pretty picky. He wants people who know their stuff. That's why I'm mentioning it here ;)
 
"Elite C++" is "modern C++", right?
 
@RMartinhoFernandes let's just say that if you don't know your RAII, you won't get far ;)
Which is nice, btw. It's great to be on a team with people who don't litter their code with new/delete :)
 
Qt is good enough.
 
@jalf I had a most unforunate incident yesterday where I did have to use a new and delete.
it made me feel filthy
 
2:32 PM
:)
 
one of these days
I am going to write my own damn hash container so if you have hash_set<unique_ptr<T>> you can index into it with a T*.
 
@sehe looks like a firewall is block on the MLSD command :(
 
@DeadMG Isn't there something in boost?
 
@RMartinhoFernandes AFAIK they have the same limitation.
 
Hmm. That is annoying.
 
2:36 PM
anyway, give me a yell if any of it piques your interest.
 
hey, I would be perfectly happy to get a C++ job
 
and now... I'm heading home! Have fun
 
@jalf it does but I have to wait a few years. :P
 
@thecoshman switch to ACTIVE transfer mode? Passive isn't working
 
Ok humor a noob here on RAII , that is purely when loading up resources you don't use new and delete right ? I mean surely you must need to use new and delete when constructing/deconstructing objects ?
 
2:37 PM
Ideally, no.
 
@sehe i'll try
 
@DeadMG want to send an application? Can give you my boss's email then
 
It says 'USER coshman: login succeeded', gives hope.
 
I'll get back to you on that
the whole "emigrating" thing
 
auto ptr = make_unique<T>();
// no delete
 
2:38 PM
But there are always those rock-and-hard-place (rare, nonexistent?) situations where it's simpler to just use new and delete.
 
@Dev2rights No, a constructor constructs objects. That's all you need. :)
 
Shame about the geography indeed
 
@RMartinhoFernandes Like unordered_set<unique_ptr<T>>.
 
ok, so set filezilla to active mode, and still seems to have problems, MLSD command is chocking
 
Ok i see what cat means with a template class
will go back to my straustrop book and work it out a second
:)
 
2:39 PM
@Dev2rights often, you can just put the object in a vector or similar. Or perhaps in a smart pointer. Or make it allocate some memory internally
anyway, off I go!
@sehe Bah, Denmark isn't bad geographically! Apart from the weather and stuff
 
bb
 
@jalf hence RAII in object and not just file terms , that answers it , ok i learned something i didn't realise thats makes me feel a fool \hehe. Bearing in mind im on that chapter in the Straustrop book atm
 
@Dev2rights ok, I didn't understand that one :)
anyway, heading home. Talk to you later
 
bah! stupid stuff
 
You said that three times already.
 
2:42 PM
@jalf it's not close enough to my home
@CatPlusPlus that's a charm
 
I hate XKB
 
@thecoshman another failed PASV transfer at 39m:40s - no other errors/warnings in my logs
 
it seems that my connection here is messing up ftp
I don't think it is your server @sehe
 
@thecoshman it might be TLS. I don't quite recall what I configured back when
 
@Dev2rights remember that RAII can be used with any kind of resource, not just memory. Think of files, threads, sockets, cameras…
 
2:45 PM
@sehe tls?
 
Compare with SSL.
 
It doesn't even really need to be a resource
 
oooh
 
@thecoshman basically encryption
 
@classdaknokt Sure i get it now, i had misread it when i went over that chapter a few months back. Thanks again for improving my C++ usage @classdaknokt and @jaif :)
 
2:48 PM
TIL: I can teach.
Me gusta.
 
user1174868
Anyone know anything about how to find good csci schools in the us?
 
see thats my problem as i never took a junior role under an experienced C++ dev in industry so didnt get slapped for my mistakes earlier
though have done a lot of (BAD) C++ in the past, will hire someone on day who can slap me for my msitakes
 
@Jordan unlikely, most of us are from Europe. Maybe @DeadMG (if he is from the US)?
 
@thecoshman I just sent you the transcript of a very very simple command line ftp session, actually transferring a file
 
I AM MOST DEFINITELY NOT A MERKIN
oops caps
 
2:52 PM
I'd surely think that a basic FTP client groks it. You might want to try IE :)
 
user1174868
I am so sick of school
 
Then get a job instead.
 
user1174868
is there any reason why I shouldn't just go to a horrible but easy to get into school to get a csci degree?
 
user1174868
I dont want to do manual labor anymore
 
Yes , you will learn bad mistakes
 
user1174868
2:53 PM
ok then how do I know if the school is bad?
 
user1174868
?
 
a good comp sci lecturer is like a good but fair dictator imho , he will kill off your friends but you will thank him for it years down the line
 
@sehe yeah... not sure why I can't connect. Like I sad, I think it is the network I am on
 
@Jordan ask the students at those schools.
 
don't ask the students
 
2:54 PM
@Jordan see what the end of third year projects are too
 
the only relevant material a school can give you about what they're like is their examination materials
 
@thecoshman You are connecting. You're just not transferring much. I might have decided to put in restrictions, that I don't remember :)
 
@Jordan if its Playstation dev kits or something then you're in for good times :)
 
I'm hungry.
 
I am a programmer partly because my usage of English is awful, my code is actually very clean, honestly ...... :S
 
user1174868
2:56 PM
I am just sick of playing the college GPA game, I want to end that as soon as possible
 
English is the lingua franca of programming
 
@Dev2rights Pics or it didn't happen.
 
@sehe I'm using ye old file zilla, an it seems to be getting stuck when it tries to list server folder
 
if you want to do well in programming, good English is quite important
 
@thecoshman I can list the folder with ls just fine...
 
2:57 PM
I get a 500 error when I try custom command ls
 
@classdaknokt what of the psone devkit stuff ? Crikey i would have to install windows on my mac and then i dont have the psone devkit hardware :S sorry you will have to presume me a liar
 
@thecoshman @sehe the format of the directory listing is implementation-defined. FileZilla may not recognize the format on @sehe's server.
 
@classdaknok_t not jalf, sehe :P
 
user1174868
there are never any americans on, when do they get on?
 
Xeo
A class definition is not a block and as such there is no block scope inside of it, correct?
 
2:59 PM
Correct. But there is scope.
 

« first day (558 days earlier)      last day (4392 days later) »