« first day (1084 days earlier)      last day (4090 days later) » 

Xeo
Xeo
00:01
Oh gawd, 2am
I should sleep
But so much stuff in Terraria! D:
@Xeo That does become necessary at some point, regardless of how much caffeine you consume, I'm afraid.
Caffeine is a lie!
@R.MartinhoFernandes The cake is a lie!
Xeo
Xeo
@JerryCoffin I drink neither coffee nor coke :)
I wish I could've just taken tomorrow off.
Stupid milestones
huh
I just discovered that I'm not quite as broke as I thought I was.
Xeo
Xeo
00:07
What, found your pillow full of bills?
give or take
@Xeo I don't drink those either, but I still consume caffeine once in a while (Mountain Dew for the win!)
Xeo
Xeo
Okay, lemme reformulate: I'm only drinking ice-tea right now.
And although that contains a miniscule amount of black tea extract, I don't think that amounts to much caffeine.
Guess the sugar helps keeping the brain awake, though
@DeadMG Boss-Spawnitems seem to drop from Hardmode enemies.
@Xeo Good. I didn't like farming the mats for them.
Xeo
Xeo
Rather rare, though.
Had one mechanical worm, and one mechanical skull drop until now
@DeadMG Oh yeah, they've also become cheaper
Mechanical worm is 6 souls, 6 chunks and 5 iron now
00:17
well I figure that by the time you're done getting the Adamantite set and the other Hardmode gear, they don't have to be common drops for you to have enough
Xeo
Xeo
I guess
What game are you guys talking about...?
-5
Q: Why do stackexchange site have chat rooms- particuarly stackoverflow?

user2617804Chat rooms are so inefficient- stackoverflow has a ridiculous number of chat room- I'd create a simple forum/subforum- categories (chatrooms can become threads or subsubforums) structure, kill the current ones and transfer their content to individual threads (I assume some people want that stu...

^^ ahaha
@nhgrif Terraria I think.
@Mysticial What.
00:23
> kill the current ones and transfer their content to individual threads
> Chatrooms rarely if ever reach critical mass for interactions
^^ yeah... we have enough critical mass to even talk about sex and eating babies. :)
Xeo
Xeo
@nhgrif Ya, Terraria
hello wörld.
typical
I went to the doc's for another appointment today
can't get one until 14th October.
Terraria's source is a mess.
where did you find Terraria's source?
00:33
Decompiled
I'd be interested in seeing that.
oh, it's not real source, it's decompiled.
Xeo
Xeo
A very good base for measurement.
Usually when I decompile things they're not that bad
C and C++ 'decompilers' are though :s
of course they are
you're looking at all the temporary variables and stuff that the compiler keeps hidden from you
00:35
Which temp variables?
I didn't see that many
I've never seen decompiled C++
Terraria is written in C#
oh, I was talking about a C++ decompiler.
Is it harder to make a compiler or decompiler?
a C# decompiler shouldn't be too bad.
00:36
Yeah I know C++ decompilers suck
@Pawnguy7 They're both pretty difficult. A decompiler's task is impossible, though- there are arbitrarily many source programs that lead to the same resulting executable.
yeah like that giant if-else tree in terraria's item file is probably a switch in the actual source..
that is what I was thinking.
@Rapptz Or it could well be some other structure. Compilers can do lots of crazy shit.
anyway the generated code is really bad so I hope it actually isn't that bad in reality.
00:40
it might well be
the compiler can only do so much shit, you know
What does the generated code look like?
especially in C#, with the whole reflection thing
@Pawnguy7 To give you a glimpse, the Item file is a gigantic if-else tree with over 1000 items (e.g. if(item.type == itemID) { item info here }) and it does this for every single itemID.
that may well have been a switch... but a switch is still pretty terrible.
Is this constructing items initially, or checking after? (e.g. weapon damage or something).
00:42
construction
so stuff like item.toolTip = "string here";
Not sure why you would need a switch or an if chain for that.
I would have used a file and load it from there
me too
Probably good for modularity.
Though that is kind of speculation, because I haven't done it before :D
I would think the other common case is language files.
Xeo
Xeo
@DeadMG Maybe it's generated
00:48
could be.
I'm not sure I would take that approach, but I wouldn't call it terrible if he did.
Xeo
Xeo
Whee, almost 3am
@Xeo go to bed, oh wait... Unity
Xeo
Xeo
That was yesterday
oh was it?
lol
then go to bed
Xeo
Xeo
I really should
49 mins ago, by Xeo
But so much stuff in Terraria! D:
00:56
@Jefffrey committed. Note there is a bit of extra stuff in there I plan to scrap that I haven't touched for a while. (generation, probably).
Good night lounge.
@Pawnguy7 Oh yeah. I saw. I'll take a deeper look tomorrow.
@Jefffrey The only parts I touched recently was Input and Screen, mostly.
The rest... well, I don't really remember what is there.
01:12
hmm
why are the incapacity benefit people asking me about my university course?
@Rapptz what am I looking at?
Generation VI pokemon
Is that the most recent generation?
Yes
01:16
Interesting.
I think the most recent I had was sapphire.
This is Pokemon X and Pokemon Y.
They look pretty good.
I wonder what names they will use after this.
Maybe Pokemon Sun and Pokemon Moon
Or Pokemon Bananas and something else
I could see that.
Something else?
This is what is hard: they have to come in pairs
01:25
Maybe they can be Apples and Oranges. Then you cannot compare them.
Bad joke? :D
Hahahaha!
Good one!
Not sure if they could do Light and Dark after White and Black.
Was it white and black?
If you're the best on Pokemon Orange, it doesn't mean you'll be good in Pokemon Apples
:P
I don't know. I stopped with Pokemon Crystal
How many Pokemons do we have these days?
No idea.
I wonder how much different each of them are.
Are they restricted to their generation?
I think they aren't.
You mean, there are Red and Green Pokemon living together with X and Y Pokemon?
01:36
Something like that, yes.
I think they are all living together.
Where's that tweet with the C++ line of code with like 50 autos? I've been looking through tweets for an hour now.
I wonder how they explain 150 new Pokemon coming from nowhere and suddenly they are holding our keys
I was always wondering how they could be backwards compatible.
Lol! :D
01:43
Are the games 3D now?
Good question
Oh, I actually found it.
In C++14 you just write auto auto(auto auto) { auto; } The compiler infers the rest from context.
4
I'm fairly sure this has been posted here before, being how I found it the first time.
I want to sleep, but I feel so sick :(
02:13
What might make an object not declared const const?
a const alias?
@Pawnguy7 ^ Passing it to a const & parameter, assigning it to a const reference and similar stuff.
@DeadMG November 13 is hopefully the date of your surgery right?
no, it's the date of my consultation so they will think about whether or not to schedule surgery.
Oh. I thought it is. I'm reminded because it's also VS 2013's release date.
lol
02:17
@DeadMG I hope they'll make the right choice to continue or not.
hm
personally I'd rather have the surgery unnecessarily than continue without it
at least if I have my gall bladder removed and it has no effect, I can move on to other treatments
The patient's conviction has a significant bearing on their decisions. Just tell them that you really want to go for it.
Which I think you've already expressed much of it to them.
hmph
well, my general opinion of them is that they've been fucking unhelpful
Oh, I see now.
Sad to hear that. :(
02:21
did I tell you
The function is const, and the thing was a member.
the first time I went to the doc, he put me on antacids for four months.
even though I told him after two weeks that it wasn't working
useless fucker.
I made an appointment today to see the doc again, and it's ten days from now.
Damn it. Got BSODed. I think my hard drive's failing.
I once got BSODed for safely ejecting a flash drive and then plugging it back in right after.
@DeadMG Based on what I can deduce, you can't easily change your doc?
02:28
not really
@chris Might have been used in SpeedBoost.
I live in a swamp remember
that was a different doc though
when I was at university
Oh.
> I'm having trouble understanding why this code works link
lol
It's the deleted object works fine problem again.
03:12
welcome to UB
yay ub!
My prof is funny trying to teach C.
"This usually happens, which causes this to usually happen, and then you'll usually have this happen."
@chris Sounds like UB to me. :)
@MarkGarcia Well, that, the differing ranges of types, how the computer stores variables and stuff...
Great, internet is being annoying again.
Today was floating-point numbers.
@chris Good luck to him explaining IEEE floating point.
03:20
He did mention the IEEE-754 representation.
03:43
Will I be in big trouble if I completely ignore swap copy operator?
I'm not using exceptions in my program at all and ideally will compile with -fno-rtti for release builds
But the software is fairly huge and I wont be the only one working on it
wtf is a swap copy operator
If you mean copy-swap assignment, it's just as easy, if not easier, to implement anyway.
create temporary and swap, because new might throw
but delete wont
also, subjective!
@MickLH Wat. This makes no sense.
@MickLH This also makes no sense. You want your code to be as shitty as LLVM and Clang?
So C++ is working toward a light 2D drawing API...
That surprised me quite a bit.
03:57
@DeadMG I think he means the copy and swap idiom.
@JerryCoffin Not sure what that has to do with new throwing.
@DeadMG what @JerryCoffin said, and also I don't mind my code functioning like Clang at all ;)
@MickLH You should do. That thing is a giant pile of shit.
@DeadMG Easy way to maintain exception safety.
I'm a reformed C programmer, I still forget to use const references sometimes
03:59
@JerryCoffin Who cares about exception safety if you don't use exceptions?
What if you later decide to switch?
@DeadMG I'm asking a real question, please don't troll
@MickLH Well, #1 tip of C++: Use exceptions.
I mean, copy-swap isn't much of a burden to use.
@MickLH I'm not a troll. I'm telling you that all you're doing by avoiding exceptions is inventing massive amounts of trouble for yourself.
and even if you go to all that trouble, the output is gonna be massively inferior to an exception-using codebase.
04:01
Isn't exception handling where I actually can lose performance over C for similar code?
no.
it's the inverse
that hasn't been true since like, 1990.
@MickLH Now, it has similar overhead as function calls.
and secondly, even if it were true, that would only justify avoiding exceptions in your hottest codepaths.
as opposed to everywhere.
Hm.
04:03
and thirdly, exceptions offer details that error codes don't.
I haven't swapped since I've been using C++11
for example, the custom error class I am using right now is an error enumeration, and two structs of data for location data.
Is C++ getting support for adding arbitrary data to exceptions? I can't remember if that got in.
you mean, arbitrary data to other exception classes.
you can already throw arbitrary classes.
Well, yeah. Like Boost has.
04:05
I don't throw a lot
F!!!
they've been considering a Boost-like interface.
Can't remember the details of that proposal.
Only throw during errors but I usually sanitize.
@Rapptz Me neither. Recently I've been grepping for std::runtime_error to replace them all with decent errors.
04:06
So basically I should just bite the bullet re-write everything exception safe
hard for my VS plugin to interpret a string with no specific format for squigglies.
@MickLH Mark everything that doesn't throw as noexcept
I've gotten into the habit of doing that
every time I use an error-code-using function, when it fails, you just don't get much useful information back out.
like "Argument out of range".
well, thanks very much.
which argument, and what range?
Well I write detailed documentation, Is it reasonable to just noexcept every function and call it good enough?
04:08
well I'd only use noexcept if you're 100% sure it doesn't throw
also, in my experience, having an API design that requires good documentation to work is a recipe for failure
otherwise if you lie the program crashes with std::terminate
@DeadMG Winapi ahahaha
I've been programming for good years now, I know how to design a system
I personally don't find WinAPI that bad.
04:09
I've just never even used C++ exceptions
so you have absolutely no idea how to design a system in the presence of exceptions.
Just because something has good documentation doesn't mean their design is bad though.
And I've recently converted a C codebase to C++, and need to do this right
Good documentation is a good thing.
WinAPI sucks.
@DeadMG I know you are having fun on your high horse doing the elitist trip, but honestly syntax is bullshit, algorithms matter
04:10
I've seen much more intuitive and easy to use APIs, but at least it's stood up all this time.
@MickLH I'm not having fun talking to you (I'm having fun watching a film on my other screen).
@MickLH What syntax? Did you pick the wrong word?
I agree that syntax is bullshit, and algorithms matter.
@MickLH Exceptions affect a lot more than syntax.
@Rapptz You just need to wrap it and have more patience. :)
04:10
Well then please stop :)
but what I'm saying is that exceptions are a fundamental game changer.
it's not like default arguments where you could just use a different function name instead and be done with it.
you can't just port your old C system design to C++, pass it through the compiler, and call it a day.
151
Q: C++: do you (really) write exception safe code?

FrunsiException handling (EH) seems to be the current standard, and by searching the web, I can not find any novel ideas or methods that try to improve or replace it (well, some variations exist, but nothing novel). Though most people seem to ignore it or just accept it, EH has some huge drawbacks: ex...

not if you want a good codebase, anyway- there's always arguments for "Not enough resources to do the job correctly".
Using exceptions == using RAII.
How?
Ok, I guess noexcept would be fine for me then, all my objects can never fail to initialize
04:12
@MickLH RAII is a basic requirement for exception safety.
@MickLH RAII is generally the cleanest and simplest way to get exception safe code.
@MickLH Linked question presents the reasons.
And also for the how.
Also you can do new(std::nothrow) you know..
Just.. throwing that out there.
the only way my constructor can fail is if memory allocation fails
@Rapptz Hard to resist pointing out your word choice.
04:13
which can happen, it's a memory intensive application
@Rapptz No pun intended, undoubtedly. Still, almost worth ignoring. Just for example, I've never (not even once) used it in real code.
@Rapptz But that argument where when you'll allocation will fail, you couldn't do much about it.
I use it when I don't care about std::bad_alloc
so that's like 90% of the time
I don't want to handle allocation failures anyway.
Short to say I don't know how to handle them.
I need to sleep, but I feel so sick, and I'm scared of trying to sleep.
04:14
That's my logic also
same
@DeadMG you ok?
I pretty much pretend that std::bad_alloc doesn't exist.
@MickLH No.
04:15
What's up dude sounds like your off some kind of meds or something
No offense, just I'd get afraid to sleep when I was
@JerryCoffin Thanks for linking. TIL about odd Linux allocation behavior. :)
@MickLH Long history -- probably gall stones, waiting for real treatment.
@MarkGarcia Surely.
@MickLH Long story, but no. My condition is hideously unpleasant, but gets substantially worse if I try to lie down.
Man, I just can't get into Firefox.
I keep trying but it's so hard
@Rapptz What do you mean by "get into"? Hacking the source code?
04:19
I mean using it
Eh, that's weird. Firefox has always worked seamlessly (!!!) on me, ignoring some occasional crashes.
Well Chrome has a 50%/50% chance of crashing when I download or even open the filesystem.
So I hate Chrome too
uh... reformat?
but I'm much more used to it than FF
@Rapptz You might be experiencing that situation where you can't open it because it always shows the error dialog. Try opening in safe mode (Shift + click program link).
Sometimes happen when opening certain pages.
04:22
@MickLH It's been going on for at least 10 months now and nothing has ever fixed it. Plus reformatting my OS for a browser is silly.
@MarkGarcia No I mean I don't like using FF.
@Rapptz Oh! Hehe.
These days, some OSes are only a browser
I like it because it uses much less memory than Chrome. I also like its rendering more than Chrome's.
@MarkGarcia Well I'm trying to get into it.
this instantfox extension is the closest I have to the omnibar
plus I already did a lot of migration a while ago so whenever I use it's less painful
@Rapptz The more you'll use it, the more you'll like it (and tolerate some just mild problems). Though I think one thing that you'll find bothering is how it manages large numbers of tabs, where firefox scrolls while chrome "narrows". For that, the scroll wheel is your friend.
04:29
Right, I hate FF tabs.
This is everything I ever wanted
Hmm. I wonder if there's some addon that makes similar functionality as IE's colored tabs.
Yes
I actually like that feature.
That. Installing it now.
04:36
Looks old.
Hi, Nawaz. Could you please un-accept my answer? I am trying to delete all of my content from StackOverflow (see meta.stackoverflow.com/questions/199364), and the site will not let me delete accepted answers. — Nemo 20 mins ago
^^ uh oh... ragequit
How silly.
@Rapptz Uninstalling. Tabs looks like shit! What I actually want is color coding according to site. And subtle colors.
That's not what IE does though
I have to use IE at work, but at least it's IE9 and not IE6.
Now I began to appreciate more the original look. :)
04:44
@MarkGarcia addons.mozilla.org/en-US/firefox/addon/chromatabs-plus/… I found this but it isn't updated for v23
@Rapptz Seems like I'll just stick to the original one. I've always liked the original color theme anyway, and I find all other themes irritating.
Reminds me of this kind of rage-quitter:
42
Q: A user ragequit after bountying me all his rep, and I'm kind of creeped out by it

CharlesMy aggressive tag editing has disturbed people before, but this is a new one. Last week, a 1.5k rep user created a horribly generic tag name, so I nuked it. There was a brief back-and-forth in the comments on the question, now deleted. tl;dr: Dude, if you're gonna talk about search in Android,...

lol @ the question.
05:32
@Mysticial Unlikely to make any real difference. "User defacing his own posts" is one of the reasons given for undoing edits, and I'm pretty sure it can apply to un-deleting answers as well. When he does quit, it looks like he'll become another "anon", but the answers he's currently deleting will probably all be restored, just under a meaningless name.
@JerryCoffin Yep. At least when a mod takes a look at the account, everything will be undeleted.
Granted, I probably have about 200 deleted answers myself.
But I didn't delete them all at once.
While nazis do suck, an internet without useful information sucks more
@Mysticial If you count times I deleted because mine was either a duplicate of or inferior to something that had been posted while I was writing it, yeah, I probably have around that as well--if anything, more than that.
@MickLH Hard to imagine how that would be possible. Even sites like Twitter that seem dead set on preventing useful information fail at least once in a while.
Lucky human race
Hahahaha xD Oh, I have to watch that video again soon
05:48
@Mysticial: Assuming the data site was working again, would it be possible to come up with a query that found the fastest a question has ever been closed?
Woah, GCC got regex support?
@chris In beta for 4.9, yeah.
That's great.
Do you have any idea when 4.9 will be out? I haven't seen any immediately visible updates on it.
@chris It is -- being able to recommend using it without caveats will be nice.
@chris Based on their history for the last few years, probably in the spring.
@JerryCoffin That's what I'm thinking. Not too far I guess.
-6
Q: C++ programming language help me pls? thanks

user2845316Write a class named exponentation. Its main method accept any integer value, and it turn passes the value to a method that squares the number and a method that cubes the number.

Someone's not getting our drift.
I don't know how I managed to miss Herb's "One C++" talk at GN, but I just watched and enjoyed it.
05:52
@chris That's what prompted the question about figuring out the fastest a question's ever been closed. It closed in under two minutes.
@chris He is a pretty good speaker.
@JerryCoffin Interesting.
I learned a lot about what's in store.
And honestly, the name writing thing in 18 lines might actually make me go and make something with it.
As I recall, the first Hackathon is "tomorrow" (actually today), so I might test Cinder out.
user1804599
Why must swap functions not throw?
user1804599
Because of copy-and-swap?
@chris I haven't played with it much, but it does seem to be pretty cool. Certainly seems to eliminates a lot of the boiler-plate for a typical windowed application.
@JerryCoffin After sort of starting a DX9 thing, I can see a big difference. Maybe I'll continue and take some inspiration from it.
05:56
@not-rightfold 1) Because the standard says so. 2) because you just about need to have at least a few nothrow operations as a basis to get anything done, and be able to reason about exceptions at all.
Anyway, I now have 5:15 to sleep, which isn't really a great length at all, so I hope I wake up fine.
If I miss my CS lecture, it's definitely not the end of the world.
I blame Herb and his talk.
I mean, who could stand against it with any sort of power?
I find weird that SO had a helping hand in arresting the guy responsible for the current Silk Road.

« first day (1084 days earlier)      last day (4090 days later) »