« first day (1587 days earlier)      last day (3364 days later) » 

12:00 AM
@DonLarynx What are you doing there actually dude?
-1
A: Definitive book list for Java?

Don LarynxJava: A Beginner's Guide, Sixth Edition: A Beginner's Guide, Edition 6 it's meant to be for beginners, judging by the title.

 
Oh I see. Can I get a list unofficially please? You can mail me to mothebheri@gmail.com. As I told you, I really don't want to learn from a bad book. I found the C++ list very helpful and that's why I ask. — mothebheri 7 mins ago
 
@πάνταῥεῖ Bad question, bad answer.
I am not compelled to answer :s
@πάνταῥεῖ I will be more tact in the future
 
game engine by ex insomniac games devs
 
is it good?
 
0
Q: Thought experiment: What would happen if we didn't have close votes?

Jon EricsonAfter reading "My Love-Hate Relationship with Stack Overflow: Arthur S., Arthur T., and the Soup Nazi" one of our developers wondered what would happen if we didn't have close votes. Disclaimer: I don't know of any actual plans to actually get rid of close votes. Like legalizing marijuana, a chan...

 
12:12 AM
@πάνταῥεῖ I think I only run into him ~4x a year. He's not focusing on my niche
@райтфолд why ":("? That's p. cool
 
@sehe I've been trying to be cool when I was 13 or 14, now I'm just expressing how I feel about that ...
 
?
 
@sehe OOPS, wrong reply (still true though)
 
Xeo
12:29 AM
@Pris DynamicArray.h - gg.
Reimplementing std::vector, with an incompatible interface.
Sometimes, I really lose hope in the programming skills of other professional game developers.
 
There's probably a good reason they wrote their own container
 
Xeo
That's what they all say
 
Don't really see the issue. You've heard about EASTL right?
 
@Xeo BUT VERTOR IS SLOWNES
 
@Pris dont, just dont
 
12:32 AM
@Pris lol
So naive
 
srsly this discussion has been had so many fucking times
just look at the transcript
you wont convince anyone
 
i'm interested. can we play it out just once more?
what's eastl?
c:
 
google it
 
okay, what about facebook folly's replacement of vector? github.com/facebook/folly/blob/master/folly/docs/FBVector.md
 
Dubious
 
Xeo
12:35 AM
Oh, and they have a leak if a copy ctor throws during resizing.
 
@Xeo ima bet they dont have exceptions turned on so thats a non issue
 
I don't see the problem if they have specific requirements that their default implementation of containers can't meet and they write their own containers to definitively meet those requirements.
 
@Xeo Check config for -fno-exceptions obviously :v
 
i can avoid syncing with my render thread altogether but id have to triple buffer :[
maybe ill just use mutexes, contention be damned
 
Go to bed. Now.
> programming skills
> game developers
Why did my messages get swapped :ok:
 
Xeo
12:44 AM
@Pris Their own container is a worse and incompatible implementation, without worse allocator support, no move support, and exception-unsafe memory handling, that otherwise does nothing different from std::vector, AFAICS.
They also have their own smart pointers, sans unique_ptr. And they even have C++11 enabled
asfiahfgajkgh
@LucDanton Can't find that anywhere.
 
Ell
why don't they use std::vector again?
 
@Xeo But my bingo card :(
 
Xeo
lol
ugh
closes all tabs related to Helium
fuck that
 
@Xeo I think their engine probably has some legacy cruft... they say its origins are from back in 2008: github.com/HeliumProject/Helium/blob/master/Documentation/…
 
12:46 AM
I think I've just been massively rude to one of the doormen
 
Xeo
@Pris Not a reason to write a shittier version of std::vector
Or for that matter, any of the other containers they duplicate.
Or smart pointers
 
I believe he said something like "happy new year" but in cantonese, so I didn't understand and just replied with "you too". Not so appropriate.
ehhhhh
 
Xeo
Also, they have "remove boost dependency (yay!)" as one commit message - while having a million other dependencies.
ugh
just... ugh
Fuck. That ruined my programming mood.
 
> Simply replacing std::vector with folly::fbvector (after having included the folly/FBVector.h header file) will improve the performance of your C++ code using vectors with common coding patterns. The improvements are always non-negative, almost always measurable, frequently significant, sometimes dramatic, and occasionally spectacular.
[[citation needed]]
 
iirc folly::fbvector is 1.5x capacity increase and a custom allocator
So if it's true it's probably their allocation methods
 
Xeo
12:50 AM
They mentioned something about jemalloc coop
 
finally understood memory barriers
 
What should I call this error category?
Hmm..
 
Exam question: describe the relationship between memory barriers and fencepost errors.
 
..
4 mins ago, by A Most Majestuous Capybara
> Simply replacing std::vector with folly::fbvector (after having included the folly/FBVector.h header file) will improve the performance of your C++ code using vectors with common coding patterns. The improvements are always non-negative, almost always measurable, frequently significant, sometimes dramatic, and occasionally spectacular.
 
@sehe good morning
 
12:53 AM
:D
 
Xeo
... gg Box2D. Overloads operator*(float, Vec2) but not operator*(Vec2, float)
 
Box2D is pretty bad :v
 
Ell
I wish there were a way to specify that argument order didn't matter
 
magic
 
Xeo
@Rapptz yes :(
but everything else I looked at seemed even worse
 
Ell
12:57 AM
I've not used either :p
I'm using bullet for 3d atm and it doesn't seem so bad
I only know of Box2D and chipmunk
 
@Xeo It's kind of an issue with terrible de facto standards.
 
@Xeo have you looked at google's liquid fun lib
 
@sehe @AMostMajestuousCapybara Well, they provide benchmarks, don't they?
 
Xeo
@Pris Nope, don't know that one
 
nvm its based on box2d
 
Xeo
1:00 AM
...
 
-1
Q: Ownership of pointer returned by c_str()

user1198407What can be assumed about the safety of using a pointer returned by c_str()? I used c_str() on a string to convert it into a const char* static const char* global_str; global_str = libraryMethodReturningStr.c_str(); This global_str was then used in other parts of my program. I noticed that a...

^ the "duplicate" question is wrong; how do one fix it?
it should be..
40
Q: What is std::string::c_str() lifetime?

ereOnIn one of my programs, I have to interface with some legacy code that works with const char*. Lets say I have a structure which looks like: struct Foo { const char* server; const char* name; }; My higher-level application only deals with std::string, so I thought of using std::string::c_s...

 
@πάνταῥεῖ ^
 
@πάνταῥεῖ you sob.
 
@FilipRoséen-refp Can't you fix it for that dupe? Don't have a dupe hammer? It's more appropriate, I agree.
 
1:04 AM
@πάνταῥεῖ I do have the dupe-hammer, but I have no idea how to fix it once someone has already flagged it as a dupe
is it enough to use "reopen"? I didn't know the dupe-hammer worked both ways
 
@FilipRoséen-refp Reopen, and close as dupe again, it's that simple.
 
@πάνταῥεῖ wicked
 
Praetorian fix'd
 
@πάνταῥεῖ why the <insert profanity> did you mark it as a duplicate of.. well, your choice of completely unrelated question?
 
@FilipRoséen-refp Normal :P ...
@FilipRoséen-refp Wasn't completely unrelated
 
1:06 AM
@πάνταῥεῖ look, I'm a big fan of the idea of marking every stupid question as a duplicate of some "well, I'm retarded; yes?" - but that question sure wasn't appropriate
 
Uh, mistakes happen?
 
@FilipRoséen-refp As can be!
A ♠
 
25
Q: Why use Python's os module methods instead of executing shell commands directly?

KoderokI am trying to understand what is the motivation behind using Python's library functions for executing OS-specific tasks such as creating files/directories, changing file attributes, etc. instead of just executing those commands via os.system() or subprocess.call()? For example, why would I want...

 
1:21 AM
@FilipRoséen-refp fixed
 
lol some people
 
@sehe indeed
 
@CatPlusPlus Well, citizens of the anarchical republic of stack overflow :P ...
 
snack overflowers
Python module functions also spawn new subprocesses to invoke a new subshell. — Koderok yesterday
 
cue jpeg of some nuggets over roses
 
1:27 AM
bash 'developer' exposed
 
0
Q: overloaded output, file is an ofstream but during simulation file is treated as both ostream and ofstream

nicktrOverview: A class method for saving information to a file has an input parameter of type ofstream. When using file << "text" to save column headers, the text is saved to the file appropriately. However, when using file << customClass to use my classes overloaded output function, it saves the in...

^ erhm... where is the question?
 
@FilipRoséen-refp Gone?
 
@πάνταῥεῖ it was never there, ie. it needs attention (and close votes)
 
@FilipRoséen-refp VTC (wickedly)
 
just write a comment asking him to clarify question :|
 
1:32 AM
@FilipRoséen-refp This one needs even more close votes:
-6
Q: I have a for loop running, in c++ I need to detect the 3 times table when it is entered

ArkidI have a for loop running, each time it will increment integer i when it loops back. Inside i need an if statement to execute if any of the values inside are in the 3 times table ie. 0,3,6,9 then do something else. I cannot do it by inserting the values 0,3,6 etc. I need help thank you.

@Blob That usually doesn't help in my experience.
 
@πάνταῥεῖ It gives them a chance; vtc it if they don't.
 
Evening
 
@Blob It needs 4 more besides mine. That's chance enough.
 
@Jefffrey Hi.
 
What are your thoughts on monogamy?
 
1:35 AM
@Jefffrey Hi. Almost bedtime for me ...
 
@Jefffrey "monogamy", is that some made in china version of monopoly?
 
@Jefffrey sure as hell beats my current zerogamy status
 
@Jefffrey It doesn't seem to work in general.
 
Can you see yourself loving only one person at any time in your whole life?
 
@FilipRoséen-refp srsly?
@Jefffrey depends how short it is
 
1:37 AM
@Jefffrey Polygamy clearly better.
 
I just had a semi-dream that woke me up on 1) what my sexual orientation is 2) what are my love goals
@AMostMajestuousCapybara Short?
 
@CatPlusPlus it has webdev in the URL
 
@Jefffrey What is your sexual orientation and what are your love goals?
 
I think he's a unisex shoe.
 
1:38 AM
clearly that's a man's leg.
 
Xeo
@Jefffrey Are you a rightfold now?
 
@Jefffrey It was a joke. Ofc monogamy is achievable and lotsa couples live together for decades. OTOH many others can't. Depends entirely on the persons.
 
@Jefffrey Yes, I can see myself loving several persons throughout my life. One of them is my daughter (don't get this wrong). And she's even not my biological daugther.
 
@Xeo kill it before they mate and lay eggs
 
@Blob That's clearly a man stomping on his face.
 
1:40 AM
@Blob Well, I mean. I kinda knew I was hetero even before. But then I thought I was asexual, and now I realized I'm not. And my love goal is to have a strong relationship with a woman and allow her to have as many other sexual partners as she wants as long as she tells me.
 
@AMostMajestuousCapybara ... what do you think?
 
@CatPlusPlus decent
 
@Jefffrey Do you also want multiple sexual partners?
 
@AMostMajestuousCapybara If rightfold went back to his lobster-form, maybe he could lay eggs.
 
@Nooble Too much frickin' troubles! I'm :C= on polygamy :-P ...
 
1:41 AM
@Blob Nah, I don't care that much about sex to have the need of more sexual partners.
 
Polygamy because eww Singletons.
 
@Jefffrey Just love the persons that deserve it.
 
But I mean, in the dream I was in love with this girl and she told me she had sex with my best friend and we joke about it. And it was awesome. I was happy for her, and I was happy with her.
 
What is going on
 
I would hope she told you before having sex with him
 
1:42 AM
@Jefffrey Sounds weird! (I'd suspect she doesn't deserve your love really, she's playing with you)
 
@πάνταῥεῖ Ikr.
But monogamy is weird to me.
 
No unfortunately I can't, if I could there would be no question. I don't know the syntax to access the RandomClass fooZak 48 secs ago
after asking him to clarify his intent.. stackoverflow in a nutshell
 
Like promising myself to someone and asking the same back. Sounds too close.
Why can't I love two women at the same time?
What's so special about 1?
 
@Jefffrey taxes, hence polygamy being illegal.
 
@πάνταῥεῖ I had a very "bro-like" relationship (in which you get together and joke about stuff, laugh together). It's kind of hard to explain.
 
1:44 AM
that and polygamy being taboo
 
Ell
@Jefffrey jealousy can be hard for people to overcome
 
@Blob Makes sense.
 
@Jefffrey You can love more than one women at a time, for sure.
 
@AMostMajestuousCapybara Sexual piracy
 
@Ell I think that's due to "I'm yours, you are mine"-mindset.
 
1:45 AM
I finished my presentation
It is awesome
 
Never had that unfortunately/fortunately.
 
@CatPlusPlus I also think it's awesome.
 
@CatPlusPlus About what?
 
Future direction of an internal project (spoilers: it's Docker for dev/deploy), ideas that I think would be beneficial to implement company-wide (like getting rid of the fuuuuuuucking GitLab and Python in lieu of Phabricator and C# or Scala)
 
@Jefffrey Just need to be more careful for such situation (it complicates everything)
 
1:47 AM
I should try writing a small story about this.
 
is there some easy way to prove an assembly-like language is turing complete? :|
 
And creating an internal team to maintain infrastructure
@Blob Who cares
 
lol
 
I do.. I wanna prove my language is turing complete ;_;
 
@πάνταῥεῖ I'm not sure how.
 
1:48 AM
You need substract, compare, branch
 
@Blob Give it a turing test :-D ...
 
It's actually all much more relaxed.
 
Turing completeness is neither hard to achieve nor a particularly interesting property
 
@Jefffrey Somehow you must find a way to include me into this as a supporting character.
 
I'm trying to read up on the mathematics behind it but don't understand half the words in wikipedia
 
1:48 AM
Prove it's URISC-equivalent
And you're done
 
It doesn't even consider I/O capabilities
 
Xeo
@Jefffrey Friends with benefits?
 
@CatPlusPlus mine only has output capabilities c:
 
Unless you consciously made a total language, it's probably Turing complete
 
UWIN nothing if URISC nothing ahahahahaha ohohohoho
5
 
1:49 AM
You achieve that by virtue of existing p much
 
Heh.
 
@Xeo Yeah, the idea is basically that one.
Just not with that 14yo -yolo tone.
 
@Jefffrey The one that isn't your bro, will tend to get jealous and don't get what's it all about your relation to the other girl. That's a common case I've experienced.
 
Breaking: relationships require understanding between all parties, gets harder with more parties, more at 11
 
@πάνταῥεῖ Ok, yeah, I see where you are going. But just image like 3 or 4 good friends sharing sexual partners.
 
Xeo
1:51 AM
@CatPlusPlus But it's already past 11!
 
The more parties the harder it gets
 
@Xeo Tomorrow.
 
It's always past 11 somewhere
@AMostMajestuousCapybara lol
 
@Jefffrey Shudder.
 
I know right.
 
1:52 AM
That's why you can drink alcohol any time you want!
 
Oh, and only 1 rule: At any point I can say it's over without explaining, and the same is for her.
 
@CatPlusPlus Good substitute for all of these kind of complications :)
 
Substitute, yes; good, debatable
 
Ell
@Jefffrey its human nature to get a little attached to your sexual partners. Maybe. I'm not sure
 
Sure.
 
1:53 AM
@Ell :innuendo:
 
^
 
@CatPlusPlus Just a reminder:
Jul 18 '12 at 0:08, by Jerry Coffin
user image
 
Without any feelings it's just stale!
@JerryCoffin Pfft. Time is illusion!
 
@Ell Only a little?
 
Lounge Sex Tips Corner: it is a good idea to shout "COMMENCE DOCKING PROCEDURE" every time you do it
13
 
Ell
1:55 AM
GitLab is bad?
 
I don't even know why I thought about it
Yes
It's shit
 
Review capabilities are poorer than on GitHub
 
> GitLab | Version Control on your Server | Better than GitHub
 
And it has crappy API
 
Ell
1:56 AM
@Jefffrey 3 or 4 bros sharing sexual partners? Hire whores
 
wait not bros
 
Ell
Or do yih mean 7 or 8 people having sex with each other
 
wat no
 
@πάνταῥεῖ I've been told that--time after time after time. I always ignore it, because every time is obviously just more illusion...
 
Ask Ell about organising orgies
 
Ell
1:57 AM
It never works
 
@Jefffrey Why paying money for sex that is meaningless? Buying drugs seems more worth the money at all ...
 
Such is life
 
Ell
Even with a hot tub and copious amounts of alcohol
 
How can clocks be real if our time isn't real?!
 
@Ell I just mean 3 or 4 friends, good friends, that are intimate enough to share sexual experiences between each other.
Imagine 2 girls and 2 boys for example.
 
Ell
1:58 AM
Right
 
And do a {girlA, girlB} X {boyA, boyB} thingy.
 
Where's our sexpert Tony
 
@Nooble Broad topic. Go to quantum physics as a starter ...
 
Point is that I'm happy because I think I have figured it all out. You should be happy for me.
 
I'm happy for you!
 
1:59 AM
At least until tomorrow or when I'll realize it's all bullshit again, and go back to being depressed.
 

« first day (1587 days earlier)      last day (3364 days later) »