« first day (1378 days earlier)      last day (3571 days later) » 

7:02 AM
Just got my copy of "Large-Scale C++ Software Design".
 
wut it's friday again
 
Seems that the advice is still very relevant.
It's all about decoupling.
 
someone should make a programming language where variable names only accept digits and actual numeric constants use roman numerals
or maybe use some sort of special markers for variables
(var) = V;
(var2) = V;
(var) + (var2) == X
 
user1804599
Slack y u onebox 8MB SQL file.
 
user1804599
@sehe I'm sorry for wasting your time then, mister serious.
 
7:16 AM
> roman numerals
WTF... Do you live in the iron age?
 
Roman numerals are still used :v
So probably not.
 
are curved lines hard to carve into your stone tablets?
 
user1804599
@AlexM. UDLs!
 
@rightfold is there something you can't do with C++
 
user1804599
@AlexM. Writing good code.
 
lol
 
user1804599
@AlexM. Concurrency.
 
user1804599
7:31 AM
@AlexM. Functional programming.
 
wasn't there something in boost to provide FP stuff?
 
Boost.functional
wild guess
ah there's boost.function.
But that's just std::function.
There's also Boost.Phoenix.
 
user1804599
You cannot do FP in C++.
 
user1804599
It's like parsing HTML with regular expressions.
 
7:36 AM
@rubenvb yeah
saw that yesterday
 
It's used a lot with Boost.Spirit.
 
I still haven't figured out if Phoenix is an academic experiment or if it can really be useful for software development.
 
who cares, it has a cool name
it has to be cool then
 
@StackedCrooked Boost.Spirit uses it. I suppose that is used somewhere at least.
 
try_
[
    f(arg1)
]
.catch_<runtime_error>()
[
    cout << val("caught runtime error or derived\n")
]
.catch_<exception>()
[
    cout << val("caught exception or derived\n")
]
.catch_all
[
    cout << val("caught some other type of exception\n")
]
It seems so ... over the top.
 
user3010322
7:40 AM
.... Why.
 
user3010322
Why would you even do that.
 
It's a template expression which generates a functor.
 
user1804599
@StackedCrooked terrible
 
user1804599
Absolutely horrible code.
 
But that doesn't really answer your question :)
 
7:43 AM
There are no examples.
The code is silent in its absence.
 
@rightfold Yeah those error messages really suck.
 
user1804599
Don't write such code in C++.
 
user1804599
Write imperative code in C++.
 
user1804599
If you want non-imperative code, don't use C++.
 
hey the rules message got unpinned
 
7:46 AM
@StackedCrooked that is kinda ugly
 
user1804599
If you want a bunch of statements as an expression, use an immediately-called lambda.
 
> In as much as Spirit attempts to mimic EBNF in C++, Phoenix attempts to mimic C++ in C++!!!
wut
 
we need a new "read teh rules of gtfo" message
 
@rightfold Yeah you can.
 
@Abyx cat usually does a good job at poetically composing those
 
7:48 AM
Don't be a noobfold.
C++ isn't a "pure" functional programming language but it's supported the functional paradigm since C++98.
New here? Read the rules to avoid getting bit.
15
 
I don't understand Phoenix.
 
user1804599
@Rapptz No.
 
user1804599
@Rapptz I never care about purity when using the term "functional programming."
 
Prove that you can't then.
Or rather, what do you consider "functional programming"?
 
@MohammadAliBaydoun congrats :)
@rubenvb lolwut
 
7:54 AM
I want to use this as a wallpaper but (somewhat unsurprisingly) can't find it without the text on it i1.ytimg.com/vi/T8A_7jTDPNk/maxresdefault.jpg
meh:(
 
user1804599
@Rapptz Composing programs out of expressions and avoiding mutable state.
 
user1804599
The latter is very difficult without a garbage collector unless you're willing to copy a lot.
 
user1804599
The former is very difficult when you have to compose statements by creating variables to hold intermediate state.
 
does D offer more in that way?
I saw some immutable stuff when I glanced over the wiki page for D
 
It being difficult does not mean it's impossible.
 
7:55 AM
D offers you nightmares
 
user1804599
No shit.
 
I'd argue that the former isn't difficult at all.
 
@TonyTheLion what's bad about D?
didn't check it out closely but it didn't seem bad
 
user1804599
D is nice.
 
@AlexM. when I last used it, I couldn't compile Hello World without crashing the compiler.
 
7:56 AM
It looked nice to me. Just not enticing enough to consider using
 
that's quite a while ago now
 
I think I'll give it a spin this weekend
 
The only D features that are worth considering using the language for are mixins IMO.
 
user1804599
D has nice metaprogramming capabilities.
 
user1804599
And a GC, which is a huge win.
 
user1804599
7:58 AM
But outside of that it's meh.
 
My coded worked
and now it doesn't
 
user1804599
Write a test for it!
 
Random idea: concealing names like var1, var2 to var₁, var₂ etc. Any possible ill effect?
 
Uh
Repairing teeth is costly
 
Use var_1 instead?
 
user1804599
8:07 AM
@BartekBanachewicz insurance.
 
user1804599
@Rapptz Use an array!
 
Well obviously my chipped tooth was the least of my problems
 
I'm not sure but I find that "Watch in horror as Damian writes a Perl program" thing on the starboard pretty amusing.
 
I’m not normally fond of conceals that change the layout (i.e. adding one more character here). Also it looks ugly.
 
8:08 AM
Why does it matter if it's ugly if no one will see it? :>
 
I will prolly have to have 8th extracted from under my gum
 
@rightfold So you like the D
 
@Rapptz Why suggest anything then?
 
All that + corrections are gonna set me my 2month income back
 
8:09 AM
@Rapptz I don't know who Damian is
 
Shit. Thanks for those genes mom.
 
@BartekBanachewicz Stop complaining, you're neither a nigger nor a faggot
And you don't have any serious genetic illness
 
Ell
As a nigger and a faggot, I take offence.
 
@LucDanton I'm not sure if unicode identifiers are supported.
 
8:11 AM
@Ell lol
 
@Park nor Jewish!
Oh wait.
 
7
A: 😃 (and other unicode characters) in identifiers not allowed by g++

KennyTMAs of 4.8, gcc does not support characters outside of the BMP used as identifiers. It seems to be an unnecessary restriction. Also, gcc only supports a very restricted set of character described in ucnid.tab, based on C99 and C++98 (it is not updated to C11 andC++11 yet, it seems). As described...

 
Bartek Banajewish
 
Well I know what my spare cash is going to be spent on now
 
He needs his banana sandwich
 
8:12 AM
I can’t find anything that does it (maybe I’m not thinking of the right keywords), so I’ll try something once I’m done.
 
No I can't eat for an hour now :P
Well anyway I am not going to work today
I have to catch a train to my hometown and get the driving license papers
Inb4 yes it's retarded
 
wih a net?
 
... Isn't that an idiom?
 
@BartekBanachewicz it is, he's making fun of you (and I approve)
 
How can you make fun of sick, poor me.
Also I am going to write a short post about preparing to a code mentoring session
 
8:16 AM
Tony is cruel
 
mwuahahahahahaha
 
I am am expert now you see
@Park yeah he is
 
You are an expert
at being Bartek
 
I am C++ super expert
:D
I miss that guy.
 
Here, let me deliver your Bartek-certified certificate of proficiency at Bartekness
 
8:17 AM
BTW do want chat insta photo feature.
 
user1804599
@ParkYoung-Bae that too.
 
Barket
 
user1804599
Bra-ket
 
A PhD at being Barket
 
Burritek con queso
 
8:18 AM
why?
 
Is that room empty?
If I invited you to it by accident I blame mobile website
 
looks like by accident
though for a second I thought you were going to reveal all your darkest secrets to me :P
 
Ell
@BartekBanachewicz ?
chat insta photo?
from webcam?
 
insta-fap
 
@Ell I'm using my phone, so really both front can and back cam.
 
Ell
8:27 AM
yeah
 
@Tony I'm really not very different in IRL
Most of the unconference attendants was expecting pretty much me. Except the pirate who god led off by my striking selfie skills and looks :D
Also I just wrote "in IRL" and I feel bad.
 
how did your mentoring session go?
 
@BartekBanachewicz Could be worse. "in IRL life"
 
Ell
Call me racist but I can't help see the "You raff, you ruse" image when I see your avatar @ParkYoung-Bae
 
@Ell racist
 
8:33 AM
@Ell racist
 
user1804599
@Ell That is not necessarily because of racism.
 
@Ell good to hear that I'm not only one here
 
I guess there was content at some point around the second of October that year.
 
user1804599
Curry-Howard isomorphism is nice. ideone.com/cTAXM8
 
Anyone know a decent way to stuff a gradient into an EPS file?
 
8:47 AM
@ParkYoung-Bae in IRL real life
 
user1804599
Cryptic error messages are fun as well.
 
user1804599
> Main.scala:21: error: Cannot prove that (Double => Nothing) => Nothing <:< scala.xml.Elem => Nothing with String => Nothing => Nothing.
 
what's <:<?
 
user1804599
A <:< B exists when A is a subtype of B.
 
BTW the guy I was mentoring yesterday asked for another session. today. /cc @Puppy
this is pretty shitty considering I wanted to stay at my parents' place this weekend
 
8:55 AM
hmm... is there a way I can access a static inner class from an instance... ie like this (idea is 'Ideone' would be a base type, I would be passed a derived version of it, and I want to get the 'Foo' that the derived class implements...)
 
@milleniumbug I hate that too
that's why I went for a 120gb ssd
in fact that's the first thing that popped to mind
 
never mind... I think System.out.println(Ideone.Foo.bar); will do what I want...
 
"60 GB for the OS? wait, VS requires stuff on C"
it's fucking retarded
no other IDE does this
 
@rightfold now I want sushi :S
@BartekBanachewicz 'session'?
 
user1804599
@thecoshman What do you mean?
 
8:59 AM
@rightfold read 'iso...' thought of sushi 'iso rolls'... now want some
 
@thecoshman codementoring session?
 
@BartekBanachewicz sure...
 
user1804599
@thecoshman :v
 
@rightfold om nom nom
 
user1804599
Sushi is isomorphic to thecoshman's stomach contents.
 
9:02 AM
I could really go for some sushi right about now
 
user1804599
Sushi with curry.
 
@BartekBanachewicz Not bad. I'd certainly not mind that.
 
sbi
@BartekBanachewicz Here, you shall have some of it. :)
@Fanael I don't even know you. (Let's keep it that way.)
 
fuck gcc and its ICEs.
 
sbi
@Abyx You'd rather have VC ICE on you?
 
9:15 AM
@Abyx What'd you do?
 
sbi
@R.MartinhoFernandes If your shorts and your shirts were longer, there'd only be more stuff to get soaked. :) (BTW; I deliberately stayed at work until the rain was gone for a while.)
 
> a whole bunch of kids
kids come in bunches? :P
 
@Rapptz just compiling trivial C++ code with gcc4.8.2
 
that's not really helpful
post it on coliru or something
 
sbi
@TonyTheLion Sometimes they do. Thanks god that never happened to me.
 
9:18 AM
I dunno exactly where it happens since it's not my code, just a huge third-party library
 
not so trivial then :v
I wanted to know so I could avoid it
 
mod_pagespeed specifically. it's written by google with google coding style, so the code should be trivial
 
cause I haven't hit an ICE in GCC 4.8/4.9 yet.
 
sbi
"...with google coding style, so the code should be trivial" ?? "...the code should be messy", you mean?
 
@sbi messy but simple
 
sbi
9:21 AM
@StackedCrooked You'd rather die young and rich?
 
those are two directly opposed words.
 
sbi
@Puppy Whose?
:)
 
I was looking it up and apparently people got ICE due to running out of memory
 
@sbi "messy" and "simple".
 
9:23 AM
needs 4.1 GB of RAM apparently but I doubt that's your issue
 
sbi
@Abyx Yeuchz, this is ugly code!
 
  CXX(target) out/Release/obj.target/pagespeed_automatic_test/net/instaweb/automatic/proxy_interface_test.o
{standard input}: Assembler messages:
{standard input}:149081: Warning: end of file not at end of a line; newline inserted
{standard input}:150351: Error: unbalanced parenthesis in operand 1.
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: internal compiler error: Killed (program cc1plus)
doesn't look like it's a memory issue
 
might be
how much RAM do you have?
(I got the memory issue from here: github.com/pagespeed/ngx_pagespeed/issues/698 which I felt was slightly similar)
 
oh...
actually I'm building it on a VM with 512Gb of RAM
 
sbi
LOL!
 
9:27 AM
impressive
 
so maybe memory is an issue here
 
> 512Gb of RAM
GB?
or MB?
 
lol
Mb
yeah
 
@AndriyM: To me it's not about the user's rep gains. It's about the post score. If post A is equally as good as post B, but you only upvote post A, then you're lying about the perceived quality of post B, to everyone who comes along later and views the post. That breaks the voting system, effectively. — Lightness Races in Orbit 49 secs ago
this'll be good
 
9:30 AM
lol @ the accepted answer
guess Benjamin made a huge assumption
poor guy got massively downvoted for it too
+2/-11
 
Can all the downvoters now undo their jumping of the proverbial gun with respect to the answer in question? — rubenvb 7 secs ago
But that probably needs an edit on the author's side.
 
@sbi phew. Yeah, that actually helps. :) Well that and getting my teeth fixed.
@Puppy i hope I'll be able to spend less time on stressing out and preparations this time
 
sbi
@BartekBanachewicz You want a grumpy gorilla to fix your teeth?? Sorry, I am not into SM.
 
@sbi Well my chipped tooth was the crucial point of my bad humour at that time. Don't worry, the pretty dentist did the job well enough. :P
Also gosh, polish trains. The passengers just thanked me for getting rid a a buggering hobo
 
I think you need to post the exact reproducer, preferably pre-processed source (.i file) and exact build commands used. As posed, I'll dismiss this as PEBCAK — sehe 11 secs ago
 
9:39 AM
Where buggering means shouting at people "you are not supposed to talk on a train"
 
welp
post operative recovery period ends today.
 
You know what that means don't you
 
unfortunately all too well
 
Also unemployed have no weekends, before you even think about it.
 
Go Puppy!
 
user1804599
9:41 AM
@BartekBanachewicz Depends.
 
user1804599
For example, people who go to school do.
 
@sbi I'm not gonna die, silly.
 
@TonyTheLion Go puppy, go interact with other human beings? :(
 
(still in denial about that)
 
@rightfold oh I don't consider those "unemployed"
 
user1804599
9:42 AM
OIC.
 
The law doesn't either I think. At least here.
 
@Puppy I think you're going to have to learn to deal with others.
 
He could also become a sysadmin
 
user1804599
School, where you have to pay in order to work.
 
user1804599
@BartekBanachewicz Who?
 
9:44 AM
@TonyTheLion Yeah.
 
Or COBOL programmer. COBOL programmers interact only with each other
@rightfold system administrator? The kind of guy that sits in the server room all watching blinking leds?
 
user1804599
@BartekBanachewicz Who could become one.
 
Who's looking for a job here come on.
 
user1804599
Puppy?
 
user1804599
lol puppy the sysadmin who's afraid of terminals
 
9:46 AM
Yes
 
user1804599
Would make for a perfect horror story.
 
I'm not afraid of terminals, I just don't like them.
 
cough
 
user1804599
couch
 
@sehe You should get that looked at.
 
9:47 AM
I'm shy
 
user1804599
Terminalophobe! You're so interfacist!
 
heh
 
user1804599
@sehe Me too :3
 
Interfascist <- FTFY
 
ok ... time to drive off so I can jump into dark holes - off for adventure caving this weekend!
 
9:47 AM
I guess I must be about the only guy in the Lounge who recently had a health problem cured by a doctor.
doctors can't totally fix Tony's feet and robot stoically refuses to go visit one
 
What's up with Robot?
 
lots
 
He doesn't need a doctor, he needs an electronics engineer
:P
 
technically, I do have an electronics GCSE.
 
user1804599
9:48 AM
He needs a sysadmin.
 
user1804599
Puppy to the rescue.
 
That's like a doctor saying, I have a Biology GCSE
 
lol
electronics and programming are pretty different things
 
yes
Transistors are to electronic engineers as ______ are to programmers.
what to fill in the blank?
 
functions
 
9:53 AM
8 billion x 1.2 billion triggers int64_t overflow.
 
user1804599
@TonyTheLion abstractions
 
That's sooner than I (intuitively) expected.
 
you didn't Fermi it.
 
user1804599
Transistor is an abstraction.
 
user1804599
You can implement it however you want as long as the behavior is the same.
 
9:53 AM
8 billion is gonna be ~33 bits, 1.2 billion is gonna be about ~31 bits, 33 + 31 = 64 but take off one for the sign bit so you only have 63 bits to work with.
 
user1804599
@StackedCrooked use bigints!
 
user1804599
@StackedCrooked It doesn't if your starting value is 0. You can multiply 0 by 1.2 billion as many times as you want, but it won't overflow.
 
that is... utterly immaterial.
 
I have two inputs: number of bytes sent and number of nanoseconds elapsed. I want to calculate bitrate (bits/s). So I did 8000000000 * bytes_sent / nanoseconds_elapsed
 
@rightfold actually, transistors are the implementation, and the magic happens at a higher level (I guess logical/arithmetic ports are the lowest "programming"-related abstraction)
@StackedCrooked divide first?
Convert to double?
 
9:59 AM
@StackedCrooked Use double.
 
I use long double now. That might be overdoing it though.
 
long double is pretty useless
just use double.
nobody really needs or wants long double for anything and most platforms don't even define it as anything different to double.
 
user1804599
@StackedCrooked 8'000'000'000 please.
 
user1804599
Or 8e9.
 
10:02 AM
Over 10000 hours in image editing.
 
@LucDanton That's subtle
@LucDanton hehe
 
Ye, I’m not sure if I should bother actually doing that.
 
The red herring gave it away. I'm pretty sure you should not be doing that (principle of least astonishment)
But it's one example of awesome vim capabilities
 
Eh, I didn’t spend too much time on the matches. I was focused on the :syntax deal — my first time.
 
I've seen pretty awesome stuff for showing Haskel ops prettier
 
10:05 AM
I have some of those. Most glyphs are double-wide and Vim doesn’t play nice with that :(
 
I notice your hybrid relnumber thing, though. Is that a builtin feature these days?
 
I cribbed that from R. Martinho, and I think it is.
:set number relativenumber
 
I never knew the combo would give the current line abs numbering :)
 
user1804599
Oh that's nice.
 
user1804599
@StackedCrooked Name the constant as well.
 
user1804599
10:09 AM
BITS_PER_GIGAOCTET
 
Now I remember. I learned about rnu through @R.MartinhoFernandes. Which is obviously nice for motions etc., but I think nonumber is crazy. Even though I have it on the status bar, heh (cropped in the above).
Oi, those highlight[!] are missing a link.
 
@sehe Yeah, it's in 7.4, I think.
@Xeo No, it pisses me off because Southern Hemisphere.
 
huh
I think I just had an idea for vector::insert that might add both better performance and safety.
 
I think I can improve the match with an alternative, either a single \I or \I\i*\D, then digit. Will get back to that later.
 
Xeo
@R.MartinhoFernandes lol
 
10:22 AM
@rightfold I used to be a magician so I can use magic values.
 
You? I'd not imagine you to be (physically) quick :)
 
Well, I was just goofing around as a kid.
I didn't have a computer back then.
 
Xeo
@sehe I discovered that by accident once
playing around with nu and rnu
IIRC I got it to work that way at work, but at home it didn't work. Turned out my Vim version at home was outdated.
 
@StackedCrooked Not anymore!
 
Status : Revoked
 
Xeo
10:34 AM
Status: Evoked
 
66
A: C++ For every character in string

R. Martinho Fernandes Looping through the characters of a std::string, using a range-based for loop (it's from C++11, already supported in recent releases of GCC, clang, and the VC11 beta): std::string str = ???; for(char& c : str) { do_things_with(c); } Looping through the characters of a std::string with iter...

Shame on me.
 
got max level on linkedin fuckyeah
career.so is a bitch to max though
I'm supposed to write shit like articles and books
 
10:49 AM
Wish I could delete that answer.
 
What is stopping you?
 
It's accepted.
 
> seen 12 hours ago
OP is still active, ask him to unaccept lol
 
Or post a better and have him accept the new?
 
I'll fix it later.
 

« first day (1378 days earlier)      last day (3571 days later) »