« first day (1383 days earlier)      last day (3551 days later) » 

12:02 AM
I'm not sure if my code is any better though.
 
Yeah you're right
I just came back from eating
You have to delegate to the clone member function.
But you have to find a way to clear.
 
@Rapptz { Function f; } // this should be safe
^ I think making it trivially constructible makes is unsafe.
Since it means that storage can be garbage if no value-initialization is used. And this would mean the destructor code will be triggered on that.
 
12:18 AM
value initialization of std::array sets all the elements to 0
 
Function f{}; would be safe
 
it happens by default
sec
 
Ah, you could be right.
 
17
Q: Is std::array<int, 10> as class member zero-initialized?

Peterstruct MyClass { std::array<int, 10> stdArr; MyClass() : stdArr() {} }; MyClass c; Questions: Is c.stdArr zero-initialized? If yes - why? My own contradictory answers: It is zero-initialized: std::array wants to behave like a c-array. If in my example above stdArr was a c-array, i...

 
std::array is only initialized if called with () or {}.
 
12:21 AM
I'm actually pretty sure all members go through value initialization
regardless if you call it explicitly or not
this is why you don't do my_int_member()
no intermediate state
 
@Rapptz "other" has a default constructor. (array has not)
 
oops, didn't print int (which should be 0)
 
It will likely be zero because stack is zeroed on process startup.
 
You get no guarantee like that
 
you do
 
12:26 AM
@StackedCrooked Yknow what else was zeroed on startup? My social skills & dating skills =/
 
Didn't you watch Scott Meyer's keynote in Dconf? :v
He went over this
 
I guess I remember wrong
 
Anyone here have any knowledge about oracle database?
 
k, I deleted the answer
 
12:28 AM
Not sure what the difference is between virtual ~Base() = default; and virtual ~Base(){}
 
traitsss
which don't really matter there
 
@DemCodeLines If I did, I certainly wouldn't admit it (unless being offered a high-paying job, in which case, yes, I know all about that).
 
:(
Why, if I may ask?
 
time to go back to documenting
 
@DemCodeLines PITA. Heavily optimized to increase Oracle's revenues at the expense of users.
@Rapptz ...and when you're done with that, we have some pig shit for you to shovel.
Oh wait, was that just work, not a punishment?
 
12:38 AM
I've been at nuclear war with git for the past week. And I think I'm losing. Git officially sucks. :D
 
> As a Brit I am constantly confused by americans calling drugs by brand names ffs.
For everybody else in my situation. Lariam is: Mefloquine Hydrochloride.
@Mysticial What are you doing?
that comment reminds me of LRiO.
 
I'm taking over a project where the last person left behind an unsubmitted 10k-line CL. I need to branch the code, patch his CL. Rebase it. Do some more shit.
 
"CL"?
Also that doesn't sound complex in general
you probably don't even need to rebase, you could just do a fast forward merge (or a merge with a commit if that floats your boat)
 
@Rapptz I'm assuming ChangeList
 
The problem is when the rebase has conflicts.
@Borgleader yes
 
12:42 AM
why don't you just merge instead of rebase?
 
Which in this case it does.
 
I'm unsure why you're rebasing at all
 
And I fucked up about a dozen merges already.
 
man
 
So many base views
 
12:43 AM
Had to re-fetch the code from scratch enough times for the server guys to probably start looking at my account to see wtf I'm trying to do.
 
So many mixins
 
Merging was easy in perforce.
This is just terrible. lol
 
What's a changelist. You mean commit?
@Mysticial Is this git
You know you can just clone locally
Also I really can't picture what's the problem here
 
@CatPlusPlus yeah
 
@Mysticial Perforce <3
 
12:50 AM
@CatPlusPlus Not that easy when you don't even know exactly what you're trying to checkout among a gazzlion other google repositories.
 
Do you use the built-in merge tool? or a 3rd party?
 
You already had it if you were merging on it
Also you can undo merges easily, you don't even need to reclone
 
@CatPlusPlus Until the build failed and I don't know whether it's because I didn't checkout the right directories or if I fucked up the merge.
 
Just need to reset the branch to commit before
The difficulty of merging is literally just figuring which lines should be in the file or not
I can't imagine this being any easier in Perfarce
 
me neither
 
12:52 AM
I also had to use vi. Productivity /= 10^100
 
vi still exists?
Also why did you 'have to'
 
Because of the number of times I fucked up. Couldn't figure out how to quit it, and accidentically corrupted my repository making me need to start over.
 
You're really bad at this
 
do you mean for commit messages?
wow you really are bad
:q
417
Q: How do I make git use the editor of my choice for commits?

brass-kazooI would prefer to write my commit messages in vim, but it is opening in emacs. How do I configure git to always use vim? Note that I want to do this globally, not just for a single project.

 
You're officially worse at VCS than Puppy
Or maybe not
 
12:54 AM
@Rapptz Yeah. Squashing and Melding. Editing the wrong part of the message and breaking the internal source control. ahaha
 
But still
 
The real thing you should blame is the moron who wrote a commit with 10k changes.
Those are ThePhD and Puppy-tier commit sizes.
 
lol
 
@Rapptz Worse--wrote 10K changes without committing at all (at least that's how I understood it).
 
Nah, then rebase wouldn't even run
Anyway would have to commit that so same difference
git 101: you don't have to rebase
 
12:57 AM
It's one thing to merge a strings file that everyone edits 5 times a day. It's another when someone changes the API underneath and you have no idea how the code works in the first place.
 
Also in interactive rebase, don't change commit IDs maybe
 
@CatPlusPlus Yeah, I didn't know that.
I was told there would be two commit IDs and I had to delete one.
 
isn't it in the instruction text?
 
If you don't know that, you doubly shouldn't touch rebase :v
 
I deleted the wrong one, and had no way to find out until everything collapsed half an hour later.
@Rapptz I didn't know that either.
@CatPlusPlus But then I can't do my job. :)
 
12:59 AM
@CatPlusPlus Yes, at least as I read it, he was just left with a bunch of modified stuff, and had to take it from there (but I could be mistaken).
 
Is your job rebasing stuff
 
yeah that's how I read it too
did you bother googling for help?
 
Just merge normally, it's 1000 times safer
 
SO pretty much answers all my git problems
 
@JerryCoffin Yeah. With absolutely no knowledge of git let alone the entire build-subsystem in Google since I've been working in some remote corner that does C#.
 
12:59 AM
@Rapptz Don't you know if you Google in Google you break the internet
 
Wow Mysticial.
 
Google doesn't train employees in using git?
 
Next thing we know you're going to break Google.
All because you couldn't rebase.
 
Don't live edit Google in prod
 
@Rapptz It tells me how to use git. But it doesn't help me recover when I've already screwed something up (simply because there's no way to me to tell if I fucked up a merge or a rebase until I actually try to build it or upload it.)
 
1:01 AM
use merge next time
 
@Rapptz Or he might break the internet.
 
@JerryCoffin You're slow I already made that joke
 
when it messes up it tells you in a long paragraph you had a conflict
 
@Rapptz The one good thing they have here is that they have a very nice UI that lets you review all your changes before submitting.
So no matter how much you fuck up, it only happens locally on your machine.
 
that's the point of a distributed vcs, yes
 
1:02 AM
It's called "looking at the diff"
 
also git diff
 
You can do that at any time!
 
@CatPlusPlus Except that diffing 190 files via command line is not fun.
 
git diff file
 
git diff --cached shows everything in the index
git diff shows everything not in the index
 
1:03 AM
I ended up DLing a git visualizer to help me see exactly what I'm doing.
 
Also gitk
 
Use SourceTree
 
@CatPlusPlus That's the one I ended up using. But it doesn't tell me how things got merged.
That's where I fucked things up.
 
:p
 
1:03 AM
@Mysticial You just need to look at the merge commit
The diff is what the result of the merge was
 
@CatPlusPlus It only tells me which files got merged. It doesn't tell me line-by-line how the merge happened.
 
there are merge markers in the file
when you have a conflict
 
If you ever commit merge markers you're v terrible
@Mysticial Ahaha it doesn't what a piece of shit
Use SourceTree
 
Perforce was so much easier to use. Double-click, see everything. Manually merge. Review changes. Submit.
 
That's probably first time someone said something nice wrt Perforce
 
1:06 AM
I think Xeo likes it too
 
@Mysticial I use Araxis Merge with Perforce. I find it makes merging even easier.
 
Shoulda gone working for Facebook, they use Hg :v
 
P4V lets me drag-and-drop between CLs and clients.
I have yet to find a Git client that lets me do something like that.
 
Drag-and-drop what between what
 
my dream git GUI would let me drag and drog branches and commits
would be cool
novelty might wear off shortly
 
1:08 AM
I use SmartHg for my personal GitHub stuff, but that's simple since I don't have to rebase with other people's changes.
 
You don't have to rebase ever
 
git rebase is for non-noobs
 
@Rapptz SourceTree has interactive rebase UI but it's weird
 
@CatPlusPlus Drag a changed file between different CLs and clients. Kind of like git add but across different git instances.
 
1:10 AM
me neither
sounds like git cherry-pick to me for some reason
or maybe git add -p
 
Think of it like this. I have 4 copies of the entire repository on my HD with 4 different projects going on. Each of them have their own separate set of CLs and modified files. In perforce, I can move an edited file freely between them.
 
oh
 
In git, I'd do a git5 start on each of the 4 directories, and they're completely independent.
 
git submodule?
 
I wouldn't know that.
In perforce the feature was obvious because the UI made it obvious.
If it exists in git, there'd be no way for me to know.
 
1:13 AM
How can you have 4 copies of repo with 4 different projects. You mean checked out branches or what
 
Unless of course someone tells me.
 
Why would you have this open at the same time
Why would you duplicate changes between them
idgi
 
how do you work at google and not google things
 
@Rapptz I do google things, but most of the git stuff isn't really helpful once you've already screwed something up.
And it's very easy to screw up in git.
 
1:15 AM
It's really not that easy
Also don't rebase
 
if you learn anything from our discussion, prefer merge to rebase unless you really know what you're doing
 
@CatPlusPlus If I could avoid a rebase, I would.
 
Just merge
There is absolutely no need to rebase
 
I'm not sure why you have to use git rebase
 
And if someone is telling you to rebase because ~~~pwetty history~~~ or some shit, just tell them they can do it themselves if they care so much
 
1:17 AM
if you fucked up a merge you could do git merge --abort
 
@Rapptz Because git won't let me apply the patch unless I rebase backwards to a specific CL. Then I have to sync forward which is where I run into all the conflicts.
it specifically tells me to rebase.
 
Your workflow is weird and crappy
 
^
 
:)
Here's what I did.
1. Apply patch. Git: "please sync to CL:XXX to apply this patch."
2. I do "git sync @XXX". Git: "Cannot sync backwards. Please rebase."
3. I rebase backwards, it works.
4. I apply the patch.
5. (Omit a bunch of shit.)
6. Sync forwards to the head -> shitload of merge conflicts. Of which I keep fucking up.
7. When I finally get it right, it doesn't build and I have no idea what went wrong.
I did get it to work if I don't try to sync forwards to the head. Fortunately I was told to branch at that CL so I don't need to sync forward anymore.
 
Also "commits" they're called
 
1:23 AM
Internally, they're called CLs. Whatever.
 
git sync is not a standard command, so blame your shitty Google tooling
 
git5 sync actually
 
what is git5?
 
Yep not Git
Something custom and weird and possibly broken
 
Git doesn't use the term CL
 
1:24 AM
Probably something internal then. Maybe that's why search results weren't particularly helpful.
 
Because seriously recommending rebases and backwards even
 
sucks
 
The git and perforce that we use internally are definitely customized.
 
You're on your own buddy
Also seriously, they don't train you in this stuff?
 
@CatPlusPlus Don't ask me. :)
 
1:28 AM
Well you work there :v
 
Most of the source control stuff is learned by asking the people around you.
Which I did and got most of the git basics.
But this one was slightly uglier which is why it became a mess.
 
Wooo I finished add/edit views for one model
Please oh please work nicely with the rest
Temp commits best commits
 
I don't use the feature/ prefix for my feature branches
maybe I should
 
SourceTree actually shows them as folders which is nice
 
oh that's cool
 
1:33 AM
I also use priv/ for branches that should never be pushed
And save/ for old branches I don't want to remove yet
 
Suuuuuuuup
 
I only use release branches in one work project atm so also release/ there
@R.MartinhoFernandes Hi
 
Who's sober?
 
Me.
 
Me, sadly
 
1:34 AM
Me
 
Whatcha doin'?
 
staring at the computer screen
 
@R.MartinhoFernandes Still at work. Probably leave soon though.
 
I'm earnin' money
Also rushing to finish a sprint that ended last Friday
:v
It's fuuuuun
 
I'm going home.
 
1:36 AM
@R.MartinhoFernandes Isnt it like 4 am for you?
 
Yep. I'm on vacation.
 
oh, that explains it
enjoy your vacation :)
 
My flatmate passed his Spanish exam.
You can guess what happened after.
 
@R.MartinhoFernandes Where are you now?
 
Heading towards the train station.
 
1:38 AM
@R.MartinhoFernandes Sex, drugs, and rock and roll. Hopefully not so much of the others that it distracted from the sex though...
 
No drugs. Unless you count alcohol and passive tobacco.
 
In my case it'd be just roll
 
@R.MartinhoFernandes Of course I count alcohol. Why wouldn't I?
 
I should stop getting fat
 
Actually, where's my flatmate?
 
1:40 AM
:lol:
 
Oh, right. Nevermind.
 
@CatPlusPlus Me too. Probably not gonna happen though. I sit at a computer all day, so I never get much exercise. Worse, they provide free snacks.
 
That's the best kind of snacks!
 
@CatPlusPlus So it is. Boss brought extra-good free snacks back from Comic-Con today.
Also cool bags "Zombie: A mind is a terrible thing to taste".
 
Hmm.
No trains till 5.
Guess I'll just walk.
 
1:55 AM
coliru gives me internal server error :v fun
 
Good morning.
@Rapptz You should ping @StackedCrooked. Oh wait...
 
@Rapptz there's trouble
I'm rebooting.
It will work, but it tends to go down without a trace.
 
@StackedCrooked "I'm rebooting the whole tag."
 
Reverting wooooooooooorks
 
2:12 AM
Home!
 
2:41 AM
cheapness is one of the most attractive feature in getting people to view your ad ... I am getting 5 times more view per day for my fibro shanty on a main road with a really old bathroom and construction sites all around than a brand new apartment
only because it 20%-60% cheaper than the normal ones or brand new ones - others getting 50-100 views per week, I am getting nearly 84 views in less than a day (on gumtree)
isn't that lovely?
 
user3010322
3:21 AM
@R.MartinhoFernandes But are you free?
 
user3010322
Ugh, so many things to do.
 
user3010322
So little time.
 
user3010322
Wish I had 5 pairs of hands.
 
user3010322
3:51 AM
virtual uint32 Open( String filename, const void* parentdata, const void*& outputdata, ulword& outputbytesize );
 
user3010322
I need to change the outparameters to something useful...
 
user3010322
There we go.
 
user3010322
buffer_view<void> Open( ShaderIncludeMode includemode, String filename, const void* parentdata )
 
user3010322
Much much better
 
user3010322
And now we throw exceptions and the exceptions get translated to HRESULT failures for the DirectX API, or just propogate throws for the OpenGL API.
 
4:06 AM
 
user3010322
4:27 AM
Sick, this API feels so natural now.
 
I'm surprisingly satisfied with my CLI parser
 
user3010322
Are you?
 
user3010322
Maybe I should give it a spin. :3c
 
lol
I mean, it's not bad.
I tried making it less verbose so for C++ I'd wager this is good
 
@Jefffrey Goddamn it man. I clicked on that this morning. And now I still can't get the word "hot-swapping" out of my head.
:)
 
4:40 AM
it was a good episode
Silicon Valley is a pretty good satire of the tech industry
I thought it'd be shitty like Big Bang Theory but it's not bad
 
5:20 AM
I don't watch TV, I prefer to live my life than to watch other people pretending to live others lives :p
 
5:55 AM
Programming is my life ;D
 
@ThePhD wtf does open open, and what does the buffer_view<void> do? :S
 
user3010322
@melak47 Include model for shaders.
 
user3010322
#include <blah.h>, and open returns a buffer of the opened data.
 
lightning strike took out our router and one pc yesterday :(
 
user3010322
6:20 AM
@melak47 Not your PC?
 
my old one I gave my grandma
2
 
user3010322
Ah.
 
she was browsing while it happened
I was at work/on my way home.
@sbi saved my computer! :p
 
6:49 AM
@JoshuaWaring Programming is your what now?
 
sbi
@melak I didn't do nothing to your computer. I spent yesterday cycling though Lorraine, and the evening pitching a tent and having a good meal at a local restaurant.
 

« first day (1383 days earlier)      last day (3551 days later) »