« first day (1802 days earlier)      last day (3130 days later) » 

9:00 AM
Be careful what you feed. It's all "in good fun" until the joke poisons the real news, politics and there is no way to balance it. Because no one ever tried.
Life matters.
 
woaaaaaaaaaah colorsublime.com
so many themes
 
Spot the reallocations
 
@TonyTheLion It's also dangerous.
 
thats awesome
 
@Grimbode grepporn
 
user1804599
9:01 AM
@sehe I love oxygen.
 
@AnastasiyaAsadullayeva what’s that for visualisation?
 
user1804599
@AnastasiyaAsadullayeva Done. And now?
 
@LucDanton nonius...
 
@sehe go on
 
there's an HTML reporter
it spits that out
 
9:04 AM
neato
 
@LucDanton highcharts (builtin) github.com/rmartinho/nonius/commit/…
 
No built-in bitlist for python?
Oh well. [True] * n it is.
 
What even is a bitlist
 
use an integer
 
@sehe interesting, looks like you can hack around with it with IPython as well
 
9:06 AM
I think that sublime has so many themes because a lot of web devs use it
 
@sehe very much agreed.
 
@Rapptz I'm going to go into the tens of thousands
(Implementing Sieve of Erasthensndadwajd whatever)
 
user1804599
@ThePhD Use bytes.
 
@TonyTheLion I thought daknok was outgrowing that. But is has regressed
 
Albeit... maybe if I make it a generator, I don't have to do that...
 
9:07 AM
Damn daknok
 
Can you make a sieve_iterator?
 
user1804599
Or well, yeah, int works too as well.
 
user1804599
It's unbounded.
 
@sehe sadly
 
user1804599
And has bitwise operators.
 
9:07 AM
Oh, no, the sieve takes multiple passes
@elyse wut. int is unbounded in python?
 
bytes is python3 only
 
user1804599
Of course integers are unbounded in Python. Guido isn't a fucking moron. Just a regular moron.
 
and is just str in python2.
 
@sehe I’ve never needed such a thing but it always bothered me that I didn’t know of one, and now I do. Thank!
 
and yeah ints are unbounded
 
9:08 AM
... So I can just
 
user1804599
unbounded is safer and safety master race.
 
keep cramming more bits onto the end of an int?
 
user1804599
absolutely :)
 
I must learn how to do this magic.
 
user1804599
>>> 1 << 10000
199506311688075838488374216268358508382349683188619245485200894985294388302219466319199616840361945978993311294232091242715564913494137811175937859320963239578557300467937945267652465512660598955205500869181933115425086084606181046855090748660896248880904898948380092539416332578506215683094739025569123880652250966438744410467598716269854532228685381616943157756296407628368807607322285350916414761839563814589694638994108409605362678210646214273333940365255656495306031426802349694003359343166514592977732796657756061725820314079941981796073782456837622800373028854872519008344645
 
user1804599
9:09 AM
Power of two!
 
@LucDanton thank robor!
 
How is he involved with Highcharts?
 
Just use a list if it's going to be dynamic.
 
Now I just need to set all the bits to 1... I can do that with a bitwise XOR and then and OR with itself.
 
No point in overcomplicating it.
 
9:10 AM
@Rapptz I only make the list once.
Never really append or anything
 
@Rapptz KISPHD
 
user1804599
use that
 
@elyse Chances are the Professor won't like that, so vanilla iit's going to be for me.
 
user1804599
Fuck the professor.
 
9:13 AM
@LucDanton you were thanking me for bringing it to your attention, no? In the most essential Robot did
 
That’s as arbitrary as picking whichever factor somehow made sure I’m in this chat.
 
Thank yourself :)
 
This is a funky generator... but I think it works.
Let's try it...
 
No, I pick the most immediate. Thanks sehe.
 
Seriously, Robot likely did some research selecting Highchart, I never did
 
9:15 AM
Well, thanks for setting me straight re: my question.
Take a compliment you damn dirty bear.
 
Sorry for being pedantic. I really think credit is due for the research
@LucDanton thank you
 
user1804599
highcharts is nice
 
user1804599
Luc Pedanton
8
 
I have to find a bug in a project that an intern worked on last year. I have thousands of lines of uncommented javascript infront of me. Someone shoot me please.
 
user1804599
Contact said intern.
 
9:18 AM
But then you can't suffer...
 
user1804599
Also run their tests, and add a test case that reproduces the bug to their test suite.
 
I did. He doesnt' remember anything about this project. He must have done an rm -rf in his brain after he finished the project.
 
@elyse link your C#
 
Alright.
 
user1804599
@JohanLarsson I deleted it, started over in F#, got annoyed by VS and deleted it, now going to rewrite it in C++.
 
9:22 AM
LameUnderflow
 
user1804599
or maybe OCaml
 
user1804599
yeah OCaml
 
> Inquiète de la perspective d’une disparition numérique des tildes (ñ), des á et autres í, la Fundéu BBVA, organisation à but non lucratif poru la promotion d’un usage correct de l’espagnol, […]
 
user1804599
C++ sucks.
 
I'm writing a filter that checks neighbors, if the diff vs neighbor is too large the point is excluded. What is the name for this?
 
9:26 AM
> poru
@AnastasiyaAsadullayeva ._.
 
@JohanLarsson gentrification
 
@Grimbode how do people even debug JS?
 
JS is a bug.
 
just print trace output everywhere?
 
@Prismatic a lot of console.log() everywhere. :V
 
@TheForestAndTheTrees getting strange matches when googling
 
user1804599
@Prismatic with debugger; statements
 
I have never seen this before. Awesome.
 
user1804599
or with breakpoints set in the web inspector
 
@JohanLarsson sorry, that was a poor joke
 
user1804599
9:29 AM
or with console.log calls
 
Or with breakpoints in Visual Studio Code. Which is not far from what elyse described, internally.
 
@TheForestAndTheTrees I'm ESL :)
 
@ElimGarak VSC to debug JS. Neva!
 
VSC, not VS.
 
now that you mention it I actually remember using browser debug tools
 
9:30 AM
Naming it neighbor filter for now, pretty sure there is a mathy word for it.
 
WebStorm does a pretty good job. I'm thinking of switching to Dart. A complete stack trace when an error occurs.
 
I remember them being pretty cool actually
 
user1804599
Wait for Vlinder.
 
Vlinder?
 
The 'V' stands for Vapourware :]
 
9:33 AM
Star Citizen is the poster boy for vaporware.
 
In the computer industry, vaporware is a product, typically computer hardware or software, that is announced to the general public but is never actually manufactured nor officially cancelled. Use of the word has broadened to include products such as automobiles. Vaporware is often announced months or years before its purported release, with development details lacking. Developers have been accused of intentionally promoting vaporware to keep customers from switching to competing products that offer more features. Network World magazine called vaporware an "epidemic" in 1989, and blamed the press...
 
Yes, pretty much Star Citizen.
 
Well its expected release is in 2017?
 
It's been pushed away for years. It'll never release and if it ever does, it is going to be a shell of what was promised. Just play Freelancer again. :P
 
is that the game with the virtual ships that are thousands of dollars
 
9:36 AM
Yes, that. And what's even more sad, people are buying them. Literally, they're paying for nothing.
 
Ell
gosh I'm hungry
 
@Grimbode There's no such thing as vaporare
 
Okay
 
@ElimGarak nah, it's more like a classic con artist. Show them one small thing, then charge them for the promises of more.
 
So I can tell WHICH rational numbers are not going to terminate
 
9:38 AM
@Grimbode it could be 'released' now
 
Apparently, the lead ISP and the owner of much of the infrastructure had a country-wide network crash in Croatia.
 
now its a question of... when.
 
@ElimGarak oh very good job :D
 
Ell
@ElimGarak ouch
country wide
 
The stock exchange is down, the telephone is down, access to the internet is down, emergency services cannot be accessed, ATMs don't work properly.
 
9:39 AM
@ThePhD ... they'll never terminate...
@ElimGarak ITT Croatia descends to status of fourth world countrty
 
@thecoshman Right, but at some number of digits X they reach a point where htey start repeating themselves
I need to find that digit X
There's probably something math-y for this
 
@ThePhD oh I see
I'm just going to presume your problem is not the actual problem you are trying to solve.
 
Jesus Christ, what dependency on a private company.
 
@ThePhD counting
 
Ensure.Singleton(this);
 
9:49 AM
An unusual and creative use for bagpipes. http://www.telegraph.co.uk/news/newsvideo/viral-video/11878006/Bagpiper-drowns-out-hate-preacher-in-Fife-Scotland.html
 
That avatar looks like a mugshot.
 
@LucDanton Aucun porublème
 
Ell
@sehe ahaha that is hilarious
 
I thought it is was adequate response
 
> A hate preacher using a megaphone to blast out alleged anti-Muslim and anti-LGBT sentiments
Anti-Muslim I can understand, but anti-LGBT?!
 
9:55 AM
And both simultaneously. It's probably a christian fundamentalist thign
 
TIL rightfold is an Islamic extremist / bisexual.
 
@AnastasiyaAsadullayeva A hater?
 
@ElimGarak I think you're wrong on both sides
@JohanLarsson Bet he hates bagpipes too
 
Bagpipes are great.
 
Yeah
Hate must be pretty strong before grabbing a megaphone.
 
9:58 AM
Actually. You need much more vanity and political agenda than hate for that
 
But can you do it without hate?
 
Yes, if it serves your political agenda. Family values politicians (against homosexuals) are often caught with a dick in their mouth.
 
@JohanLarsson Certainly. I've seen people preach faith without an inkling of devotion
 
@ElimGarak disgusting
 
rumor
 
10:01 AM
But that has a certain degree of self-contempt.
 
@JohanLarsson Was that ever fact checked
 
That is still allegedly, guise.
 
In which case, why haven't we heard significantly more about it.
 
I'd be delighted to read more about the alleged pigellatio.
 
Things British people like: * Surreal sex scandals * Posh people being brought down a notch * Bacon * Puns #Hameron is the perfect storm.
 
10:02 AM
Maybe it was not surreal enough?
 
@elyse oh hey, I got that cube_type thing working... ended up with cube_type&s being thrown all over the place... which sort of is nice...
 
You'd like to think surreal and absurd gets the wind of legion of rightfolds, but mental disorder in leadership would lead to actual action of people with and without brains alike with a future at stake
 
user image
3
 
> the explicit conversion [operator] will add unnecessary overhead due to lack of inlining
whatttttttttt
 
@AnastasiyaAsadullayeva that /is/ orthogonal
 
10:10 AM
I'm writing such beautiful code, the company does not deserve this level of perfection.
 
@JohanLarsson then /gift/ it to them
 
@Grimbode Windows 10 is awesome.
 
@sehe I know, I just responded to that comment with "ur a retard"
hth
 
well done
 
@sehe Yeah, they will not even know what they got.
 
10:11 AM
@ElimGarak give something free and great but in the end zerohedge.com/news/2015-08-02/…
 
> I wanted to keep things C++03, which is also why I used 'typedef' rather than 'using' (which I think is nicer).
but you used an explicit conversion operator m8
"I want modern features but not too much"
 
"I want to be stupid, but I don't want other people to know I'm stupid."
 
@AnastasiyaAsadullayeva obv. send patch to transform it to implicit conversion operator
 
"at least compiler can inline it now"
 
@AnastasiyaAsadullayeva let's hope that. Because there is no rational reason to think it will. Even if the other party is not a retard at all
 
10:18 AM
sehe and humor, episode 27
 
@Grimbode You know what's weird. Taking screenshots of tweets just onebox them anyways
it's not a monopoly.
Not yours, even
 
do not pass go do not collect 20 upvotes
 
they're all the same
 
@AnastasiyaAsadullayeva where are you reading this nonsense?
 
@Grimbode wow. that's a very very ironic media outlet. I'm immune to ads, but even I affected by the sheer overload of ads on that page
@thecoshman finally, the money question
 
10:21 AM
@thecoshman That link you posted on IRC lol
 
@AnastasiyaAsadullayeva oh now really
 
so informative
don't make me use #irc
 
share the link you nerd
 
@sehe it's just over there
nah
It's in IRC...
 
I'm not going to IRC.
 
Why is it explicit anyway
 
because it sells more albums that way
 
@sehe my monopoly!
 
also why not RAII
pretty weird
 
10:28 AM
He wanted to keep things C++03 (????)
 
I give this blog meh/10.
 
@Rapptz as the reddit thread says, you can't always wrap that stuff up for RAII
 
Sure you can.
Smart pointers do just fine.
std::unique_ptr is well designed.
 
Robot's rule of zarro
 
well no I mean, the examples he gives, yes RAII makes much more sense
but if you just want say... erm... user ids being passed around, instead of full user objects... you can have them type safe, so something that takes a location_id isn't given a user
but then uesr& I guess vOv
 
10:31 AM
int create_sound(...);
> This is very bad code
I've seen worse, at least the name is meaningful
 
Hm.
 
sound create_int(...);
> This is much better
 
I don't know if I should use sys.path or use a different config value.
sys.path in python land is full of python specific paths.
It makes no sense for C++ stuff to be there eh.
But OTOH all of Sphinx does lookup based on sys.path.
 
@AnastasiyaAsadullayeva yes, it even fixes two bugs by declaring it that way
 
wwjd.
 
10:32 AM
@MarcoA. what does it do? It's hard to create sound. What exactly does it create
 
@MarcoA. 'int' is not meaningful at all
 
@AnastasiyaAsadullayeva you dropped the ball
 
@sehe I'm not arguing whether that is bad code. I'm stating that I've seen worse.
 
Me too. create_sound is very funny. Especially, since I had to go that page to find out it does, in fact, not cause anything audible
 
user1804599
@thecoshman yay
 
10:38 AM
@elyse next up, I think I'll hide it, so you get a 'complete cube' object, and that can offer all the meta-data too
 
@ThePhD By « the con », do you mean CppCon?
@Mr.kbok Yes, it's proposed for C++17 at best, but can be delayed indefinitely for reasons.
 
Today I woke up because I received a phone call for an interview. Then I went to take a shower and was interrupted by another one.
 
dat name
 
@Morwenn Everyone wants your body
 
10:44 AM
and dat color combination
 
@AnastasiyaAsadullayeva Except me.
And here come the dreaded « dossiers de compétences ». Today will be long.
 
@AnastasiyaAsadullayeva made me laugh.
 
mock returning a mock
 
> Advice may be invalid due to caching
 
10:58 AM
> what I had in my head was to have a browser of my own which will send a special code to my server which only then will grant access to the site (thru PHP), disable any source inspecting, and add encription between my server and the browser.
ez
 
that's clearly a good idea
also carefully explained
 
> I was only asking help with compiling, and not with actual coding.
oh good
 
Alright, the replacement keyboard arrived for the laptop.
 
> Write a C++ compiler but plz dont use classes
 
@AnastasiyaAsadullayeva Because rejecting help is always a great idea.
 
11:03 AM
@MarcoA. Domains are too cheap
 
@ʎǝɹɟɟɟǝſ Classic ones are, the new ones can go up to $60. Some of my .zone and .ninja were about $40.
 
@ʎǝɹɟɟɟǝſ they're names, it's obvious they're cheap. What people want.. that goes high-priced
 
$40 what? Per month? Per year?
 
Year, naturally. There isn't a lower granularity.
 
probably year
 
11:04 AM
They should cost that per month.
 
and I've seen cheaper
 
You can get .com with some stipulations for $2.99
 
Donate the difference to charity or something.
 
@ʎǝɹɟɟɟǝſ pff...
 
Well, servers usually are per month, at least the good ones.
 
11:06 AM
it's like asking it to our politicians
pointless
 
@ʎǝɹɟɟɟǝſ lol
 
Heh, running a Linode at its highest billing plan is pretty much pointless. Inside a few years, you can get a better server (and own it) for the investment you put in.
 
I would love to play around with one of them (I have a few ideas) but it seems a waste of money for my own amusement
btw.. Bjarne and Herb use STL to indicate the STandard Library
perhaps we should finally drop this feud over STL/standard library and just embrace the STL one
 
user1804599
@ʎǝɹɟɟɟǝſ to me you mean
 
I would like to retire in a few days
 
11:23 AM
I would like to retire in 4 minutes
 
-2
Q: Usage of () in cout in C++

Somnath RakshitI recently tried to solve this problem at HackerRank and came across this interesting problem. The first code that I submitted failed in a few of the test cases while the second code that I submitted passed all the test cases correctly. The only noticeable difference that I was able to find was t...

..
WOT (WallOfText)
 
user1804599
@MarcoA. closevote
 
Degrees = Enum.GetValues(typeof(PolynomialDegree))
              .Cast<PolynomialDegree>()
              .ToArray();
so sad
 
user1804599
11:26 AM
Somewhat Rektshit
 
lol
 
Is that the guy that made the clock/bomb? :P
 
Should be Enum.GetValues<PolynomialDegree>()
 
user1804599
@JohanLarsson haha terrible
 
@JohanLarsson Today at work I saw: std::erase(std::remove_if(v.begin(), v.end(), [](value const& val) { return val == thing_to_remove; }), v.end())
good job
 
11:29 AM
Guys, can you hear that?
 
Yes, it's the sound of butthurt
 
<3
Time to go home
 
<3
 
@AnastasiyaAsadullayeva I don't speak c++
 
11:31 AM
@JohanLarsson You don't have any stds, brah?
 
@AnastasiyaAsadullayeva Way to simplify things.
 
user1804599
@AnastasiyaAsadullayeva terrible idiom
 
user1804599
make a function template that does that, parameterising v and the lambda.
 
@JohanLarsson this is clear enough
 
@elyse Hence the uniform container erasure proposal :p
 
11:36 AM
Selling exceptional software.
 
user1804599
idioms are duplicate code by definition and must be eliminated
 
user1804599
@Morwenn good
 
Yeah, it's like a bit of ranges before ranges.
 
Namespaces are so lovely.
 
> Namespaces are one honking great idea -- let's do more of those!
 
11:38 AM
@elyse not eliminated, refactored into a common primitive
 
Eh, finally done with all this interview preparation stuff.
 
@Morwenn you never finish interview preparation stuff
never done with it
 
Done for this morning at least. Considering that it's almost 2 p.m., it was time.
 
I'm getting rep like crazy, ten today and five yesterday.
 
I have two interviews on the phone scheduled thi afternoon.
 
11:43 AM
@Morwenn what's that?
how do you "prepare" for the interview, besides ensuring your phone is plugged in?
and perhaps reading some info about the company
 
@BartekBanachewicz Filling online stuff about what you did prior to the interview.
 
you're supposed to fill them regularly
 
Are you currently unemployed?
 
In the context of this:
 
@JohanLarsson Yeah, since July.
 
11:44 AM
> She's too little for that shit
> im sure at least one of the girl's new personalities can handle it just fine
 
@Morwenn Ok, hope the job is good and that you get it then.
Ask what they use for version control.
 
@JohanLarsson Not really. I've like ~6 months of experience not including internships, so only consulting companies contact me.
 
user1804599
@BartekBanachewicz so it appears only in one place, i.e. it's not an idiom anymore
 
@Morwenn why "not including internships"?
@elyse is using print to print an idiom
 
@BartekBanachewicz Companies seem to be more in interested in what you did after school.
 
11:46 AM
@Morwenn Without having seen any of your code I would expect you to be top5% in the industry.
 
@Morwenn why would that be?
 
Also how is it not really? Does not compute.
 
@BartekBanachewicz I don't know and I don't care.
 
I mean my experience is totally different
since I'm still at school, the entirety of my job experience is not "after school"
 
@JohanLarsson cool!
 
11:48 AM
cout<<"Hello guys!"<<endl;
 
@BartekBanachewicz He probably means outside of school. Not "after school" strictly.
 
@JohanLarsson I can say that my code is pretty good once written, but I'm not always the best at solving problems and I'm not really fast when it comes to getting things done.
 
endl? lol
 
Or you can read "after school" as "after school hours".
 
Yeah?
end-line
 
11:49 AM
flush dat buffa'
 
You pedantic fucks arguing on how \n is better than std::endl on a hello world.
You are the worst.
 
What I could sell is « good and maintainable code », but companies generally want « code that works for some values of « work », for next week ».
 
Yeah. You are right at all.
 
@ʎǝɹɟɟɟǝſ I thought internships don't differ in that rgard, no?
 
Guess what? In most implementations \n flushes the buffer anyway. Checkmate atheists.
 
11:50 AM
@ScarletAmaranth std::cout is not buffered unless redirected so it's not a problem for a Hello World program.
 
BUT THAT ONE FUNCTION CALL COST
 
ITT jefffrey learns about POSIX standard stream behaviours
 
@Themud what's wrong here is not endl vs \n, it's the lack of explicit std::
 
@BartekBanachewicz v0v I haven't done any internship yet.
 
@BartekBanachewicz Well, they do care about your internships, but when they ask for « 2 to 3 years of experience in some field », they generally don't take into account people who didn't work 2 to 3 years since they left school.
 
11:52 AM
@Morwenn [citation-needed]
internships != school
@ʎǝɹɟɟɟǝſ how do you sustain your life functions btw
 
I mean work placements, internships during school years.
 
By eating, drinking, peeing, pooping, sleeping and breathing.
Sometimes I drink alcohol to relax a little.
 
@ʎǝɹɟɟɟǝſ where do you get money for all that?
 
My parents.
 
@Morwenn how does an internship during school years differ to the one outside of school years?
 
user1804599
11:54 AM
@BartekBanachewicz no
 
user1804599
it's the only way to do it
 
@BartekBanachewicz I don't know, but when people ask for 2 to 3 years of work, for some reason, internships weight less.
Not that I really care though. I'll end up with a job at some point anyway.
 
@Morwenn maybe because they're half-time
school has nothing to do with it
 
Currently, users of my library have to specialize sorter_traits for their classes if they want them to integrate seamlessly with the rest of the library. Would it be a better idea to simply recognize subtypes in their sorters instead to reduce boilerplate?
 

« first day (1802 days earlier)      last day (3130 days later) »