« first day (890 days earlier)      last day (4067 days later) » 

Ell
12:01 AM
@deadmg yours
 
uh
a few million miles
 
Ell
As in, are you implementing language feature atm?
 
ah, yes.
 
Ell
Right :P
 
I am indeed implementing language features right now
 
Ell
12:03 AM
Hmm
Have you done classes?
 
no
 
Ell
Functions?
 
Many programming language didn't.
 
yes
somewhat
no overloading yet
 
12:04 AM
or template-style generic functions
 
Classes are not a fundamental thing for programming.
So no worries.
 
Ell
But they are nice
 
They are not so nice in the long run.
They end up being a drag.
 
eh
I'm happy mixing OOP and functional styles.
 
Ell
I don't think so. I'm not saying polymorphism and inheritence is the answer to everything
 
12:09 AM
You are!
I heard it.
 
Ell
But IMHO accosiating data and methods into one unit is a good idea
It seems I can't spell
 
If I were to decide, for the challenge of it, to always use std::function<...> in order to avoid inheritance. I wonder how far I would get and where I would get stuck.
 
when you need more than one.
 
The state held by subtypes perhaps.
More than one?
 
a base class pointer holds a pointer to a vtable with an entry for every virtual function.
if you were to emulate virtual functions with std::function, you would need one std::function per virtual function.
that's a shitload of std::functions.
way more than would be practical, IYAM.
 
12:12 AM
I know that. I just mean to avoid the hierarchical mindset.
Programmers are presented with a problem, and instead of seeking a natural solution they translate the problem into something that is hierarchical so that hey can apply their design patterns and shit.
That's so silly.
And there's lot's of FUD if you try anything else.
 
yes, it is
 
A free function makes my colleagues nervous.
 
but that's why we have templates.
 
Templates too. A colleague was visibly shaken when he saw me implement a forwarding constructor.
 
Ell
Free functions make.me nervous
But I think its because I associate them with global state
Scope*
 
12:17 AM
Big classes make me nervous :D For the same reason.
Functions don't store state.
 
well
when doing a compiler, a lot of this is really solved for me, since the act of compiling is inherently about operating on trees.
 
@Ell Global scope for functions is good because it promotes re-usability.
I don't mean global namespace or anything. But as an answer to your remark.
Information hiding is important.
Boost and std use many free functions. std::get, std::begin, std::to_string, ...
And this does not lead to exposure of private implementation details or anything.
 
Ell
Yeah
 
Brain said not to go out. Should've listened to it. My brain is awesome.
 
Classes are in the same scope as free functions :ssh:
 
Ell
12:22 AM
I always forget what the difference between begin() and ::begin is
As in, how is one more generic?
 
@Ell lol?
Between begin() and ::begin?
 
Ell
Well as ub
I*in
Fuck I can't type! Free function vs member function
 
There is: begin, begin(), ::begin and ::begin(). You are confusing two orthogonal concepts.
Oh, you mean ::begin being a member function?
 
begin being begin
 
Ell
Yeah, I mean why is std::begin(myvec) more generic than myvec.begin()
 
12:25 AM
The rule is simple: if it can be implemented as a free function then make it a free function.
 
@Ell int array[30]
@Ell Also, CArray
 
What is CArray? Oh, found it.
Ugly MS classes.
 
error C2065: 'God' : undeclared identifier
MSVC is so enlightened.
 
The idea of making the Coliru command line multi-line totally breaks the design.
Well, if you could call it design to begin with.
 
Ell
Oh yeah
 
12:30 AM
Is Github down? I can't fetch/pull/push
 
@StackedCrooked Well, the cmd expressions are not too long to begin with. Don't worry about it. :D
 
but their website's working
 
Right now the command line has three lines, after that you have to scroll.
I guess I'll leave it like that for a while and see if that suffices.
 
user1357851
@StevenLu maybe they got your credential revoked
 
user1357851
just joking
 
12:32 AM
@DogPlusPlus Occasionally I make long ones though :) For example
 
Do you think people would be interested in a blog even if it was not technical?
 
@StevenLu They are being DOSSed again :(
 
@PeeHaa seriously? jeez
 
@Telkitty: Oh thank god you changed your avatar
 
@DogPlusPlus and @Telkitty seem to always be online at the same time.
 
12:33 AM
Just my luck.
 
Ell
Heh
 
Github is being DOSSed?
 
Looks like they should be ok again status.github.com/messages
 
I'm still getting port 22 connection problems. have gotten multiple different error messages for it. ssh: connect to host github.com port 22: Bad file number
fatal: The remote end hung up unexpectedly
 
Is Github really big?
 
12:38 AM
Why would you DDoS something like Github?
 
I hear all the time about it, but I haven't use it yet.
 
You really have to be a cunt.
@StackedCrooked Along with Bitbucket, it's the remote repo of choice.
 
github is awesome. i use bitbucket for my private stuff
 
user1357851
@StackedCrooked Dog++ is my puppet - I log in from 2 PCs one as me, one as my dog
 
@DogPlusPlus Agreed
@DogPlusPlus I like GitHub's interface better though
 
12:39 AM
Coliru is the easiest DDoS target in the world.
 
user1357851
@Borgleader why? I think my last avatar was awesome, don't you like ballerinas?
 
A bird in the hand is better than ten in the air.
 
user1357851
@StackedCrooked depends ... you can interact with wild ones.
 
That's actually a Dutch expression.
 
user1357851
It is different. And you don't have to worry about go on holidays - they just to have beg some other families.
 
12:42 AM
It's not only Ducth is it?
 
Github's back for me!
 
user1357851
This begs the question, why SO is rarely Dos attacked?
 
user1357851
I have seen it once only
 
It's not like there's a brigade that needs to meet its weekly DDoS targets.
 
12:45 AM
@Telkitty They have been dossed last week
 
I guess it's more fun to DDoS North Korea today.
 
user1357851
@PeeHaa Oo, how come you just have to know where/when all the DOS attacks happen?
 
user1357851
This is getting highly suspicious :p
 
:D
I say nothing! 我什么都没说
 
12:49 AM
@Rapptz I was working on the live site. The stress of breaking the live site makes me more diligent. :)
I can now read up on your complaints about the Coliru picture thanks to chat's search as RSS feed :)
 
hello. can I ask a question you?
what's mean a senior developer at c++? How should a skills be?
 
If you need to ask you probably aren't ;)
 
user142019
@volkov Impossible.
 
user1357851
@PeeHaa not many people here don't have the quality so to speak even if they have the C++ skills, consider mentoring newbs is a part of the job for senior developers
 
@Telkitty Not quite no
 
12:54 AM
@R.MartinhoFernandes I posted this example earlier.
 
@StackedCrooked NK/DPRK/whatever has servers?
 
@StackedCrooked that is the most vulgar code i've ever seen. thanks for that
 
@MartinJames Yeah. I wonder what they do with them.
Wonder who wrote this. FlagsnShit, lol..
 
@StackedCrooked eNuke. All offers for centrifuges/U235/Pu239 gratefully accepted.
 
@Telkitty I can speak I is the senior if I passed a expert test c++
 
1:00 AM
@MartinJames So no for lolcats?
 
Are lolcats fissionable?
 
As we are approaching the singularity, who knows..?
 
@StackedCrooked We are approaching Zoidberg?
 
I hope not.
 
1:05 AM
as the ratio of a cat to a singularity?
 
Tequila, FFS. I won't touch that stuff any more.
 
The only thing I'm touching right now is bed <3
 
Me go too. Need sleep.
 
Bed is for chumps.
 
user1357851
1:14 AM
They are going to bed together at the same time
 
Too tired to understand this article. Seems interesting though.
 
Hey Twitter why am I following some random account I've never seen before
 
user1357851
@CatPlusPlus your account is hacked probably
 
@Telkitty You always say that.
 
Yes obviously that's what happens when your account gets ~hacked~
 
1:16 AM
Or at least one time before this time.
You obviously have amnesia.
Or Twitter is buggy.
 
user142019
National Puppy Day? I don't live in your nation, sorry.
 
user1357851
@StackedCrooked hacking on the internet is like religion in real life - can be used to explain all miracles :p
 
what is mean at gdb the p/x?
 
@volkov p/x prints hexadecimal data IIRC
 
@StackedCrooked thanks
 
1:21 AM
[Hook: 2 Chainz, Drake, and A$AP Rocky]
I love bad bitches, that's my fucking problem
And yeah I like to fuck, I got a fucking problem
I love bad bitches, that's my fucking problem
And yeah I like to fuck I got a fucking problem
I love bad bitches, that's my fucking problem
And yeah I like to fuck, I got a fucking problem
If finding somebody real is your fucking problem
Bring your girls to the crib maybe we can solve it
pure poetry
 
user142019
I also got a fucking problem. It's the fact that there are so many morons on Earth.
 
user142019
Like me.
 
Tell me about it :P
I download music from the pirate bay, add them to itunes, itunes uploads it to Apple's servers and Apple distrubutes it to other people
It's a strange world.
No matter how sloppy my search terms and no matter how wrong the spelling, Google always gives the right results.
 
All google gives me is my own question on SO :\
 
@Pawnguy7, what's the problem?
 
1:34 AM
I wonder how personalized the results are.
 
Nothing now, it just tends to happen when I do have a problem :D
 
Have you tried with the second result?
Just kidding
 
Second result? I don't follow.
 
It's a joke. You need the third one.
 
You mean to tell me most people only use the first result? I usually go through at least the first half of the page.
 
1:36 AM
@Pawnguy7, if the first google result is yours then read the second. It was a bad joke. And I feel bad. Period.
 
I nearly always find what I'm looking for in the first half of the page.
 
Programmer third day trying to set up English letters ICQ to mobile. the third day he changes a client and writes me in ICQ requests dial anything English. the third day, I response to those requests, copy it from some Japanese hieroglyph site.
 
I can't remember the last time I needed to go to the second page.
 
@Jueecy Oh. I couldn't tell it was a joke, so probably :D
 
:)
 
1:36 AM
There's a second page?
 
Perhaps it's just decoration. If you click it then they quickly cover they ass by generating seemingly related junk.
 
No results on the first page means crappy query
 
Or shit just got real
 
Searching for "Cat Plus Plus" gives your SO userpage as first result. Second is "Bony Cat Plus" a health drink, apparently.
StackedCrooked first result is tumblr page with gifs and porn.
 
I love how Minecraft dev is kicking ass recently. They are really putting some efforts in it. Finally.
 
1:40 AM
(Not me)
 
Ironically they website is offline
 
@Jueecy Is this sarcasm?
 
@Pawnguy7, no?
 
Oh. Well, it just sounded funny, because 1.5 followed the trend and was slower again.
Glad they decided to focus, though.
 
@Pawnguy7, never had a problem from 1.2.5 on. Except spawning stuck in the middle of a grass block.
 
1:42 AM
@Jueecy FPS?
 
FPS?
 
What kind of FPS do you get?
 
56 - 60
 
20-30 :\
Sometimes worse when loading chunks or jungle.
 
StackedCrooked is originally a song by The New Pornographers. The second Google result points to the lyrics. Funny thing about TNP lyrics is that they hold no meaning at all. It's just a selection of words and sentences so that they can focus on the music instead.
 
1:44 AM
Yeah jungles are heavy to load
Especially cats ocelots.
 
I play on tiny, max FPS, not fancy graphics, no smooth lighting...
 
Me too. Sometimes when I feel fancy I turn smooth lighting on, but that's as far as I go with graphics.
Setting fancy graphics on a block game seems... nonsense.
 
Personally, it makes everything darker, it seems. And I cannot see things with brightness 100%, so
 
I should do a TNT test these days.
 
Suprisingly, tnt does not seem to bad for me.
 
1:49 AM
Anyway, they are adding so many features is so little time. I remember (if I do correctly) that previously to 1.2 things were very slow.
 
1.2 made it the most slow for me. You know, self-server stuff.
 
user1357851
@StackedCrooked sometimes I am hungry, I look at your name and I think 'right, SteakCooked'
 
I see..
 
D'you play on multiplayer often?
 
That's good :)
 
1:50 AM
@Jueecy Even slower :D
 
StackedCrooked is a delicious juicy steak.
Mmm Mmm, good.
 
I think that depends on the lag. Most of the servers are really laggy for me
 
user1357851
@ThePhD obviously you are hungry :p
 
Well, yes, but to get donators they need players, adn thus lag it for everybody... sigh.
 
@Telkitty Hungry, but only for certain kinds of things~
 
1:51 AM
Fuck. Now I'm hungry.
 
Lol. The preview for stacked-crooked.com is "Compile, link and run... Share!". It's the only text on my site.
 
@StackedCrooked, is const auto & word = const std::string & word? I just can't get my head around the new C++11 features.
 
auto = std::string. const auto & word = const std::string & word.
 
right
What technologies does your website uses?
 
What other languages do you know Jueecy
 
1:56 AM
know. What a broad term in programming.
 
Well based on your tags I see jquery and JavaScript
I guess you can see auto as var
 
@Jueecy serverside: bash, ruby
 
So long as the compiler can deduce what you're talking about. i.e. auto i; isn't valid.
 
I rewrote the server front-end to use Sinatra. It's really succinct.
 
@Rapptz, I worked with PHP for 4 years, never seriously. I studied Ruby, never used. I'm studying C++ at the uni, just playing with it. And of course HTML and CSS, a bit of SQL, a bit of jQuery (not even JS).
 
1:58 AM
Jquery but not JS? Huh?
 
post '/compile' do
  $semaphore.synchronize do
    json_obj = JSON.parse(request.body.read)
    File.open('cmd.sh', 'w') { |f| f << json_obj['cmd'] }
    File.open('main.cpp', 'w') { |f| f << json_obj['src'] }
    stream do |out|
      safe_popen('./sandbox.sh') { |line| out << line }
    end
  end
end
 
Yeah I know that doesn't make much sense.
 
The entire compile request :D
 
What should be said is "JS but not Jquery". Sigh. IT is so used, it seems some people think it si a different language.
 
I know its a library. But to use jQuery you just have to know that there are lambdas and $("...").* methods. It's not knowing Javascript. At least I don't.
 
2:01 AM
I'm still hacking native JavaScript. I should probably look into JQuery or even CoffeeScript.
 
@Jueecy True enough I guess, I would recommend knowing it, but that is me
 
@StackedCrooked, I don't know why but I really like Ruby. It's syntax seems poetic.
 
@ScottW Nerdy pickup lines
 
@Pawnguy7 yeah well, I kinda dropped the web side for now. I like writing C++ way more now that I don't get a compiler error for each 3 new lines of code.
 
Ruby is hard to place among the other hip languages. It's not really functional, it's not good at concurrency, it's slow, etc...
 
2:03 AM
@Jueecy You might :D thing I hate about JS is it fails silently.
 
user1357851
@ScottW That's the most turn off turn on I have heard in weeks
 
I read that the last releases of Ruby have speeded it up quite a bit actually.
 
Yeah.
 
But yeah, I'd probably use with Ruby or Python for the web as well, now that I realize how much PHP is bad.
 
But ruby scripts startup really fast.
GCC 4.8 and Qt Creator 2.7. It's like Chrismas :)
 
2:06 AM
I hear great things about Rails
:P
 
I don't personally like Rails for no real reasons, but it seems very easy
 
I like QtCreator now.
It's actually a pretty good IDE with qmake.
 
@Jueecy neh. Just kidding Rails is crap
As is jQuery
 
Why is that?
 
Rails or jQuery?
 
2:08 AM
both
 
Rails is so vulnerable to god knows what it isn't funny anymore
And jQuery is soooo slow
I saw they dropped crap browsers though with 2.0 so how knows maybe it's become a bit less crap
And besides for most things you simply don't need a library when you can just write it in VanillaJS
 
I think Ruby's popularity is entirely rooted in the sales pitch made by the authors of The Pragmatic Programmer in 2006 or so..
 
Yup I read something about Rails vulnerability. That sucks.
 
cough java cough
 
I see
well, it's sleeptime for me lads. See you tomorrow
 
later
 
user1357851
does anyone know on the top of their head whether static int return their state in recursion?
 
2:39 AM
Hello
 
user142019
Hello
 
Bergzoid!
 
Bazinga!
 
Bye.
 
HAI
 
2:53 AM
@Telkitty Should.
 
user1357851
This idiot has error in his own answer and goes around pointing fingers at everyone else
 
Then why dont you point your middle finger at him? :P
 
user1357851
1
Q: Extracting qualities in a binary search tree

Bob JohnAre there efficient methods for finding the number of all elements less than an element in a binary search tree? I've been trying to find a procedure or implementation in C++, but I haven't been able to. So say you had: 8 / \ 3 10 / \ \ 1 6 14 and you wanted...

 
user1357851
and got 3 upvotes
 
user1357851
why?
 
2:58 AM
anyone have code to find the length of a string recursively ?
 
user1357851
Not saying my answer is perfect but neither do I go around pointing fingers at everyone who tried to help and wrote answers in 5 mins.
 
user142019
abs(n) / n this just returns the sign right?
 

« first day (890 days earlier)      last day (4067 days later) »