« first day (1610 days earlier)      last day (3321 days later) » 

5:06 AM
c++ -> javascript -> c++ -> javascript. apparently its possible.
 
Just realized that a program spends its lifetime inside loops.
It must be quite a ..rollercoaster from them.
 
Fuck, I didn't realize how important this year's Pi day is. I need to do a release, but I haven't even branched yet let alone test trunk...
 
Everybody good? Plenty of slaves for my robot colony?
 
@Mysticial wot
 
Alright, v0.6.8 branch created. Compiling Windows binaries...
My Linux box is still booting.
 
5:21 AM
Why is Pi day important?
 
Oh, it's March 14th.
 
I wasn't planning to do a Pi day release this year, but I found out at dinner why I was getting so many emails about Pi day.
 
Why were you?
 
Because this year is 3/14/2015
 
2015 you mean?
 
5:22 AM
3,1415
 
sou desu ka
 
@Mysticial This will never happen again in your lifetime.
 
Oh no IME.
That's awkward.
 
You sure know how to mess up.
 
:(
 
5:23 AM
I'm even stupider so you should feel good.
 
I wasn't planning for this. But fortunately, I usually have about 2-3 months of unreleased features backed up in the pipeline. So I can borrow that inventory to release something tomorrow that isn't the same as the current release.
But I won't be able to run any long tests on it.
 
There's people looking forward to new features in your Pi calculation program?
Geek squad :P
 
I do a lot of teasing around.
Since I usually post screenshots of features a few months before I actually release them.
 
lmao
hype?
Pi day in 1592 must have been really important
2
 
@Mysticial Nope, it's not.
 
5:27 AM
Careful the date police is still awake
 
@Rapptz Wrong again, sunshine! I'm coming at you from my dreams.
 
@LightnessRacesinOrbit Go to a real locale - not some un-American bullshit. :P
 
inb4 y u dream of lounge
as if you never dream of lounge dont give me that
 
> In the year 2015, Pi Day will have special significance on 3/14/15 at 9:26:53 a.m. and p.m., with the date and time representing the first 10 digits of π.[13]
Hype
 
[citation needed]
[weasel words]
 
[international viewpoint required]
literally one country uses that absurd notation so fuck your ideas
(it might be two)
 
We don't shit on your holidays.
Why do you shit on ours?
 
Go to bed grandpa
Isn't it 5:30 AM there?
Oh shit it's Friday
Or well Saturday now.
 
it is
and it is
@Rapptz honestly, though, this needs an "in the United States" suffix
 
5:31 AM
Pi Day is basically US-only.
 
Why does it need a redundant note?
It was even coined in San Francisco.
 
so say it's an American holiday, on the article
it reads as a universally accepted globally phenomenon
as usual
you people seem to require qualification on anything that is not American
 
Ah well. It wouldn't be Pi Day without my European friends complaining about their date format and how Pi Day is biased to the US
Happy pseudo-holiday!
 
it being biased is fine
 
5:34 AM
yeah you can fuck off
 
just don't write an article that implies it's a holiday for literally fucking everyone
because oh hey if we don't claim otherwise then our American holidays are for everyone because by default everyone is an American, right? FREEDOM!!!!!
it's just another way of saying everyone should be American
which is, by the way, untrue
 
oh well in truth I don’t like decimal representation :(
 
2015-03-14
nothing mathematically interesting there
 
@LucDanton rud3
 
"Figure out what the program is doing" NO! No no no no no no no no no no no no no no no no no no no no no no. This is the OP's job, not ours. — Lightness Races in Orbit 5 secs ago
re segfaults
shog at it again
less emotional:
At the very least, it's the purview of answerers, not editors. — Lightness Races in Orbit 14 secs ago
good night arseholes
 
5:39 AM
Fuck, I ran my Linux box out of memory trying to compile all versions of y-cruncher at the same time.
 
> The memory for these entries is allocated at the same time and it is highly likely that it will be laid out contiguously in main memory and so support cache striding.
^ Java "best-effort" contiguous memory
That's kinda bad.
 
Oh ADL and C++14 broke my build.
 
my first thought was: but Java has arrays, not?
 
make_unique -> errors.
lovely.
 
Are you using unqualified make_unique?
 
5:42 AM
Are you going full Niebler yet? :)
 
Oh, you man you have your own make_unique and you passed it stl objects.
 
@StackedCrooked Yes.
yeah make_unique is in my own namespace.
And I use it inside that namespace without qualification.
and it's triggering errors.
 
I’m starting to have functors everywhere and I still explicitly qualify out of habit. It’s not helped by the fact that inside namespace functors I still have to do it :/
 
@LucDanton One day.
this is frustrating the fuck out of me actually
 
@Rapptz I use MakeUnique since you mentioned this issue a while ago.
 
5:45 AM
I don't use ThisCase
I'm fully qualifying the calls now.
 
There's always Bjarne_case.
 
@LucDanton Be the Nieblest of all!
 
Normally a namespace is meant to hold classes and along with their non-member methods. But make_unique is different. Maybe stl support should always be in an extra namespace and invoked with qualified call to that namespace.
 
@Rapptz Same, really. invoke is probably my most called thing and it’s still a function template.
 
Mine is gears::make_unique.
I mean there's not much extra about it.
 
5:49 AM
cue mandatory hand wringing about dynamic allocation blabla
 
E.g. nonstd::make_unique
 
alright finally got it to compile
 
@Rapptz That namespace was used by Google for their gears project.
If this was 2007 you could have name collisions.
 
Alright... Both Windows and Linux built. Final binaries are prepared. Now running unit tests which will probably take a few hours... lol
 
their what?
looked up gears on GitHub
mine's #4
but maybe search is biased for my projects
 
5:53 AM
Congratulations. You are number 4.
lol
 
yay I guess
it used to be like page 4 last time I checked
 
Google gears was not very interesting but I did steal some snippets from their codebase when I had trouble implementing HTML dialogs for Win32 IE toolbar I was assigned to make.
And I used their Vista compatibility fixes.
Those were hard times.
I spent weeks trying to figure out how to resize the toolbar buttons.
Eventually a guy from a newsgroup joined me in the quest because he wanted to know as well.
 
Oh remember that code I posted yesterday?
I cleaned it up a bit today.
12 variables -> 5 variables
 
Nice.
Only 5 more to go :P
 
Does std::ofstream not work with paths in filenames?
For some reason std::ofstream out("folder/thing.txt") doesn't work but just "thing.txt" does.
 
6:06 AM
I don't see why that wouldn't work.
You may have a null terminator somewhere.
 
6:17 AM
It is not working.
God damn.
I think it doesn't work because the folder doesn't exist.
 
@Rapptz Does it look nicely indented?
 
Nope :v
 
> In a large application, a good garbage collector is more efficient than malloc/free.
Oh this article is full of cringe
 
6:33 AM
Fuck.
I have to wrap mkdir.
I don't feel like pulling Boost.Filesystem just for this.
This is such a stupid thing.
 
> I'll just mention that static typing (irregardless of the type inference technique) characterizes lower-level languages, because now I have to think about types
 
lol
Always use auto obviously.
 
A couple paragraphs above, he said:
> Do you love ("very") high-level languages? Like Lisp, Smalltalk, Python, Ruby? Or maybe Haskell, ML?
CONTRADICTION
 
Well OP did say 'irregardless of […] type inference', so having type inference does matter. It’s the only explanation.
 
How do I downvote a blog
Is irregardless even a word
 
6:37 AM
No.
A redundant word if it exists.
Some dictionaries disagree.
 
> You can tell me that I don't know what "high-level" means; I won't care.
welp
 
It’s time to stop posting move on.
 
It's a bad idea to check if a directory exists before creating it right?
TOCTOU I think it's called?
 
TOC TO U LATER
 
Take your SPAM and fuk off — Mitch Wheat 8 secs ago
^^ lol
 
6:46 AM
In software development, time of check to time of use (TOCTTOU or TOCTOU, pronounced "TOCK too") is a class of software bug caused by changes in a system between the checking of a condition (such as a security credential) and the use of the results of that check. This is one example of a race condition. A simple example is as follows: Consider a Web application that allows a user to edit pages, and also allows administrators to lock pages to prevent editing. A user requests to edit a page, getting a form which can be used to alter its content. Before the user submits the form, an administrator...
 
@ParkYoung-Bae lol
 
@Rapptz That seems like the typical race, yeah.
didn’t know that had a name; it’s a sucky name
yaaaay new creduce version!
@Rapptz On Posix you can check for EEXIST, but that only tells you the path already exists, not what it is. You can then check it’s a directory, which is another race, but at this point I’m not sure that matters anyway.
 
create_directory("database"); // silently ignore errors because who cares.
:3
 
Run out of fucks already?
 
way too quickly
OTOH
I don't know.
maybe I should give a few fucks
 
6:53 AM
fucks received: none
 
nah
though honestly I'd only be creating this directory once.
 
Hey the new version fails just the same.
@Rapptz That’s the sort of stuff where I throw and call it a day. I can’t imagine filesystem-stuff being anything but 'best-effort'. No excuse to lose in-process data though.
 
I added an exception if opening a file fails.
I think that's enough.
adds sticker of approval
 
Is it the one that reads We tried!?
 
Upon making this shitty mkdir wrapped thing.
I realise I now need a way to traverse files.
I guess it's time to use boost.filesystem
I'm glad Boost.FS is getting added to C++14 TS.
One of the best C++ libraries.
 
7:01 AM
Interesting analogy.
 
@Rapptz Is it?
> Very difficult to get right
> Roundabout
 
Driving is not thread-safe.
 
What's hard about roundabouts?
 
Also locks are not necessarily kernel space
 
@Mysticial runWithScissors reminds me of monadicIO = monadic morallyDubiousIOProperty.
 
7:02 AM
Collisions happen every day.
 
@ParkYoung-Bae Yes. I like cross platform filesystem.
 
This analogy sucks
Or I'm just not getting it
 
If I looked at the picture's representation
My guess would be that atomic/CAS is better than locking.
 
@Rapptz The point is that lock-free mean you don't need to stop for the red light but sometimes do need to wait a little. That's where the analogy stops I think.
 
it has a nice turf.
 
7:04 AM
this analogy is pretty meh
sorry
 
Also note that a car is trapped between the red lights. That's a deadlock kinda thing.
 
He's a dumb driver that's what he is.
 
It's a drawing. The driver isn't real.
 
Also I've never seen stoplights like that before.
 
7:05 AM
the cars represent cheap code?
 
is that how they are in Europe?
 
@Rapptz lol
 
No we drive on the right side.
 
I've been to Europe for many years so I don't know why I'm asking.
 
@StackedCrooked The image would be better if cars where actually driving on the right hand side. Confusing as hell.
 
7:06 AM
Level 0 is DONE!
 
Good job I guess.
You should write your next book in LaTeX and not wordpress.
Maybe you won't have syntax highlighting issues.
 
@Rapptz ikr
But alas I am on a Wordpress.com blog
I'm going to use their Markdown from now on.
 
If you write in LaTeX you'd have a harder time with that than C++.
I'm just messing with you.
 
@Rapptz What.
 
@Rapptz Oh good I absolutely know nothing
OD
(cyclops smiley face)
 
7:08 AM
@Zeta What.
 
@Zeta If you couldn’t process the sentence correctly just run the compiler a second or third time.
Eventually it’ll do what you want it to.
 
LaTeX isn't that hard.
 
I don't think it's hard either but according to this room it's hard as hell.
3
 
whats the definition of convolution again?
 
7:10 AM
> LaTeX
Well but what do ya guys think?
Is my Level 0 good now?
 
Latex is just not too terribly "pit of success"
 
Nov 4 '12 at 1:52, by Rapptz
I use LaTeX daily, it's annoying as fuck.
Looking at the transcripts now.
I used to use ProTeXt back then.
Good times.
Then TeXMaker and now TeXStudio.
 
@Rapptz If a markup needs a studio I dunno
Sounds... hard already
 
It's not that hard.
But don't use it.
 
@Cinch what is your motivation behind writing C++ tutorials?
 
7:14 AM
I'm just kidding with you.
 
@edition 1) Help others 2) Help myself
 
my avatar is too still...
 
Btw where is puppy I need to get slammed again
 
He went into a swamp.
 
create_directory doesn't throw errors if the directory exists.
Special casing that appeals to me.
How nice of them.
 
7:18 AM
@Cinch Simply use an editor + pdflatex|luatex|xelatex|texify if you want a PDF. Or, if you're lazy and want to use markdown, markdown + pandoc.
 
@Cinch I can use LaTeX with my text editor I currently have but I like having side by side PDF view.
There are other features that are handy too.
 
I kind of don't care... lol
Anyways I'm going to begin doing the real tutorials now for Compact C++
 
What the fuck is @Shog9 doing: meta.stackoverflow.com/questions/288001/…
that's not even remotely related to my bug
and 11 asshats voted him up
 
I'm sure your aggressive comment will be well received
 
7:36 AM
the shog banhammer works in mysterious ways
 
I don't care, it's incredibly frustrating to see a bug report met with a condescending "here's how posting a new question works for newbies" when he can see I have 35k+ rep, clearly knows how posting works, and I wasn't even posting a question to begin with
 
I don't care either, it's your question, not mine.
 
Ugh fuck wordpress
 
wordpress is fine, as long as you acknowledge for what it is
it is a remote shell that happens to come with blog software
 
until it destroys all of my source code
 
8:16 AM
Isn't SPIR a lot like Java bytecode without the Java?
 
@orlp reading his answer it seems to answer your question pretty accurately
Oh, wait, you mean the interesting part is in your second edit, at the bottom of the question? And you are surprised the people who answer you don't notice it?
If you want to ask "how come a newly created question managed to get the same title as an existing question", perhaps put that somewhere where people will notice it? :p
 
8:44 AM
Looks like static_cast<int*>(nullptr) + 0 is UB.
 
@Nican soo long
and soo embedded
 
@LucDanton So weird. It just looks like a null-op to me.
nullpointer deref is at least a cache miss :P
 
9:15 AM
@jalf No, the question was linked from the get-go and the fact that the question was new mentioned in the comments.
if you're investigating a possible explanation for a bug you could at the very least check whether your explanation works by checking if the question was old
 
@orlp Apart from the title issue, it's a craptastic question about a dubious design. The number of C++, (or other), programs I have that return from main() is zero.
 
@MartinJames it's not my fucking question
I was just editing it
 
@orlp I know:)
 
shog9 doesn't seem to know
 
@orlp I don't think that shoggy had enough coffee yesterday.
 
9:26 AM
I'll remove my comment and apologize for being rude
I'm just irrationally angry =/
 
@orlp Maybe you need more coffee too, or your brain has been disabled by the waves of shitty C questions.
 
I was gonna look something up but I forgot what.
Oh yeah. Comparing dates.
Python does not have a way to convert iso date format to datetime?
nope.
 
-1, I apologize for my earlier rude comment, I'm just annoyed by being teached on basic stuff based on wrong assumptions. 1. I'm a 35k rep user with a gold C++ badge. I know how segmentation faults work, and how editing works. 2. It's not my question, I was just fixing indentation. It's not my responsibility to answer the question or fix other things about the question like the title. 3. The question was brand new, so a change of policy has nothing to do with it. All of that information was readily available to you when you answered this question, and to the people who upvoted it. — orlp 39 secs ago
 
I forgive you.
But I won't forgive you a second time.
 
Why is there datetime.isoformat() but nothing to convert from iso format to datetime..
 
9:34 AM
Isn't the Java Date class known to be super bad?
 
Java?
 
Oh.
Sorry, just looked like Java to me.
 
No Python.
I don't Java.
 
@Rapptz datetime.strptime
 
Not very useful.
 
9:39 AM
why not?
 
Doesn't support [+|-]hh:mm
Closest format is "%Y-%m-%dT%H:%M:%S.%fZ" where Z denotes UTC.
 
\o/
 
I like the polish national anthem.
 
oh that's nice, student loans have decided to slightly reduce that amount I pay each month.
 
9:54 AM
@thecoshman that's bad
@thecoshman more interest
you want to pay as much as you possibly can
 
no I don't. They write of what ever I haven't paid after so long since graduation. The amount I'd have to pay each month to pay less the minimum is ridiculously more each month.
at present, it's fairly insignificant amount
 
_"They write off what ever I haven't paid after so long since graduation."_

that sounds like an incredibly weird loan
 
it is, that's what's so great about it :D
@orlp yeah, don't try using markdown for multiply lines :P
 
you might want to doublecheck that they're not ripping you one
no sane bank would loan you more than you pay back
 
it's not a bank loan, it's through govournment
 
10:00 AM
web crawling is so fun
 
yes, I am paying of more in the long run, but I'm happier with my current setup
 
> Any amount still owing 30 years after you commenced repayments will be cancelled.
30 years bud
 
they've changed it since I started, nearly every year you get a different agreement
for me, it's 25 years from graduation
 
@Rapptz It's so unusual for Python. I thought in Python "you can import anything"
 
10:39 AM
If a thread has a large buffer (1GB) of private memory. And it infinitely iterates over that buffer performing writes to the data. Will this thrash the cache and slow down the other threads?
Hm. I think I already know.
Shared L3 cache will be affected. (I think.)
 
I had a relatively large student loan after 2 degrees and a postgrad degree
 
L1 and L2 are private so they don't count.
 
but nowadays the amount I borrowed in total for all three is only enough to complete 1 undergrad degree
thinking about it, I actually saved money from going to uni early
 

« first day (1610 days earlier)      last day (3321 days later) »