« first day (628 days earlier)      last day (4317 days later) » 

11:00 PM
You probably only need if you want to retain va_list, not just pass it further down callstack.
 
meh meh meh
it was a meh day today
I travelled 3 hours by train to go to a job interview of 1 hour
 
 
the fuck was I thinking?
 
oh, dude
that interview in Oxford?
 
@TonyTheLion about getting another job
 
11:06 PM
@DeadMG no, this one was near Bath
 
Bath is a shitty university
 
@DeadMG oxford one was yesterday, which was cool
 
that I remember
 
if I could get that one, I'd be really happy
 
Today's Savage Chickens has no chickens. I demand a refund.
Also sleepy time, bye.
 
11:08 PM
@sehe lol
bye
 
erm... bye :)
 
bb
 
std::string text; std::getline(in, text, EOF); const char* data = text.c_str();
does that work?
 
@MooingDuck Seems logical to me.
 
why not?
hey tony
where are you looking for your job interviews?
not that I wish to steal your jobs, but, y'know
 
11:12 PM
lol
 
actually, I have my CV on monster.com
and these I got by a recruiter contacting me, that actually did his job :)
 
Now is one of those great times to read the starboard, and try to piece it together.
 
@DeadMG if they don't accept me at these places, I could recommend you? if you want
both are c++ jobs
well, I can only ever work in one place...
 
I had a look at monster.com
they only seemed to have graduate jobs
 
yea, most say that
ignore it
 
11:14 PM
I'm going to go eat. I'll catch y'all later.
 
@DeadMG I dunno if it's defined how getline and EOF interact, nor if it's defined that the string will contain all the data to the end of the file, if the stream detects the end of the file as some sort of error before checking the delimiter character.
 
maybe I should simply upload my CV (insofar as I actually have one) and then leave it at that
 
yea
well, you should apply to some, and by having your CV there, companies can look you up
and if they are interested, they will contact you
 
@MooingDuck Doesn't matter. You will get all the data in the file either way, afaik.
thanks for le advice
 
11:16 PM
@DeadMG I was thinking getline might append to the string one internal buffer at a time until it finds the EOF, but if it gets an end of file, it might set an error and not copy the buffer to the string and bailing before checking if the EOF matched the delimiter.
 
@DeadMG You have one? Can I see it?
 
hi.. does <boost/dynamic_bitset> store data in contiguous memory locations.?
 
@RMartinhoFernandes No, I don't, actually.
 
let's face it, my CV is mostly going to consist of "Strong independent learner; good existing C++ skills"
 
11:18 PM
When I got my first job, mine had little else.
 
what do you think mine consisted of when I started working?
 
@DeadMG I checked the standard, it has to work one character at a time, so you're right, it's guaranteed
 
true true
 
i.e. is it possible to write a huge dynamic_bitset<9999999> to a file at one go.? can someone clarify this.
 
Truly, this is the language of the future. http://stackoverflow.com/questions/11340673/javascript-why-does-parseint1-0-19-return-18
 
11:18 PM
"Learned all by myself, good at fapping (oh I mean C++)"
 
@SyncMaster The docs don't seem to state it. I'd look at the source.
 
@TonyTheLion lol
 
@TonyTheLion You can be bad at that?
Who will be able to tell?
 
@RMartinhoFernandes how do you even measure that quality?
ah man, they asked me the typical "whats the best/worst thing about you" question at the interview
 
Tell them you're a cereal killer.
 
11:23 PM
thanks martinho. :)
i shall give it a try
 
@RMartinhoFernandes I'm gonna show them what the worst thing about me is, that I have crutches and they have many different uses :P
@RMartinhoFernandes I kill cereals?
 
You kill cereals for breakfast.
 
I do, lol
 
?
 
what?
 
11:30 PM
He's singing.
 
yea, on chat?
he should sing on mumble
 
Huh, found a question on serialization, and all five answerers misread the question's intent, including DeadMG.
 
oh the puppy misread a question
 
@MooingDuck There is, of course, a chance that you misread it.
oh, you're right, I misread the question, didn't see the length param
 
11:42 PM
oh, of course, cause the off chance that the puppy misread something, is very unlikely :P
 
Puppyfail.
 
lulz
gotta mark that in history :P
 
@TonyTheLion At least he can see when he is wrong.
 
your edit makes that into a fairly substantially different question, you know
 
Anyway, I must be damn bored.
I drew myself into Cat's checked exception argument without prompting.
I already fought this war on another language and I know the checkeratists are not rational.
 
11:44 PM
lol
 
@RMartinhoFernandes arguing on the interwebs, you how that goes, don't you?
and mods will prob delete it all anyways
 
@RMartinhoFernandes Checked exceptions are great. Java and C++ both screwed their implementation though (which should not surprise anyone).
 
@TonyTheLion I think they're on-topic, so at worst they should move them to chat.
 
I haven't spent much time with it, but I believe that Haskell's Error monad could well be considered to be equivalent to checked exceptions.
 
I've never even heard of "checked exceptions"
 
11:46 PM
@DeadMG It's a proposal that seems to suggest exactly the same semantics of Java.
 
@RMartinhoFernandes Oh. Well that's supremely dumb.
 
@DeadMG the origional question was "why doesn't this work"? I added a question, didn't touch the code.
 
@DeadMG I can only conclude the proposer never tried them in Java.
 
even Java-fans admit that Java's checked exceptions have more horse semen inside them than mares.
 
@TonyTheLion Only Java has them. It's the #1 anti-feature of the language.
Everything else that is crappy about it pales in comparison.
 
11:48 PM
Mmmm. Not sure about that
 
@RMartinhoFernandes And when that's Java that really says something.
 
what's the checked bit refer to though?
 
@sehe Really? Name a worse feature.
@TonyTheLion The compiler checks them.
 
@RMartinhoFernandes as in, stops them?
or verifies them?
 
@TonyTheLion Basically, you must either catch or declare that you throw every kind of exception which is checked.
from every function which might propagate it.
 
11:49 PM
meh
 
The compiler refuses to compile otherwise.
The JVM itself doesn't give a fuck.
 
Not one fuck was given
I'm so glad I haven't learned Java yet :)
 
too busy keeping all them fucks for myself
 
@RMartinhoFernandes attributes for overrides. Dodgy (virtual) method (overload) resolution, silently changing semantics with Java 7, just this second
 
11:51 PM
@sehe You mean @Override being optional?
 
The chief good point of exceptions is propagation through intermediate levels of functions without those intermediate levels getting involved (or even necessarily being aware of the exceptions at all). Checked exceptions remove that capability.
 
@RMartinhoFernandes basically. But also the horrendous idea of making it an annotation in the first place
 
@JerryCoffin That's not actually accurate.
Java's checked exception implementation removes that capability.
there can be other checked exception implementations which do not present that problem
 
@sehe Oh, there are worse similar ideas: Serializable is a marker interface (i.e. nothing in it), while its moral opposite, transient, is a keyword.
 
@DeadMG There can be other designs where a compiler statically enforces exceptions that doesn't present that problem -- but "checked exceptions" were invented by Java, and at least for now, they are what Java says they are (i.e., a mess).
 
11:53 PM
@RMartinhoFernandes and versioning of serializable types, just remembered. Also the whole Bean thing (the absense of properties).
 
Hey, absence of a feature doesn't count as a feature.
 
Well, those are all annoyances, but the method lookup being 'broken by design' is a good example of what I really think is more important than checked exceptions
 
@sehe I'm not sure what issue you're talking about.
 
@DeadMG But yes, in theory, you could (probably) design something that rather than requiring every level to catch (and if necessary, re-throw) every exception, builds a graph of exceptions thrown/caught, and ensures that every exception thrown will be caught. In reality, I'm not sure anybody's ever succeeded at that level of analysis on a global level though -- my guess is "no".
 
11:56 PM
@JerryCoffin Haskell's Error monad can do something exactly like that.
 
meh, monads
still need to get my head wrapped around them
 
ultimately, the exceptions a function f can throw is nothing more than the union of the exceptions every expression in f can throw.
 
@sehe Sorry, that links to some kind of home page :S Nevermind, found it.
 
as long as you spec the very primitive operations which throw like memory allocation or something, then the rest can be inferred.
 
@DeadMG Barely (if at all) relevant, except to other functional languages. Global analysis of procedural/OO languages is dramatically more complex than similar analysis of functional languages.
 
11:57 PM
@RMartinhoFernandes really easy to google Java Method Overriding Is FUBAR Part 6 of ∞
 
@JerryCoffin There's nothing about static exception analysis that is not exactly identical to type checking and type inference.
 
@JerryCoffin Procedural code is functional code in the procedural monad.
 
@whoa this electric storm is getting a bit out of hand here. Let's hope the pool holds it
 
Monads all the way down.
@sehe Ah, that is indeed stupid.
I still think checked exception are worse, because you're much more likely to have problems with them.
 
TIL there's a rock called "cummingtonite"
LOL
 
11:59 PM
@TonyTheLion How exactly did you find that out?
 
@TonyTheLion If it's not on Dwarf Fortress, it doesn't exist.
 

« first day (628 days earlier)      last day (4317 days later) »