« first day (1612 days earlier)      last day (3562 days later) » 

23:01
@DonLarynx Why built-in types?
@Jefffrey I understand they take up considerably less memory than objects as Puppy mentioned, but I don't understand what Mr. kbok meant by "you get copy for free".
@sehe I received mine quite a while ago now.
@Jefffrey I understand they take up considerably less memory than objects as Puppy mentioned, but I don't understand what Mr. kbok meant by "you get copy for free".
you don't get copy for free.
furthermore, that advice would suggest different behaviour for double and struct { double d; };, which is plainly bullshit.
so I suggest that you slap Meyers around the face for being a prematurely optimizing moron and move on
@DonLarynx The implementation of references is basically a pointer, so when you pass by reference you are really copying a pointer. Since most of built-in types have the same size as pointers (if not less), passing by reference may actually be more costly.
23:04
@sehe The theory is that with more stars, it stays there longer before falling off and needing to be posted again.
But nobody cares about that kind of microoptimizations.
user1804599
Copies don't exist.
@райтфолд No wonder Xerox isn't doing so well any more.
@JerryCoffin Nah, it's always 14 days
@CatPlusPlus There you go ruining my fun again.
23:09
@sehe (a) because I'm weird and Abby is weird too (b) some months ago.
@JerryCoffin that's also true, IIRC
@R.MartinhoFernandes okay then
user1804599
s/weird/hipster/
i'll support the rules by starring it unless Cat posts it
or bartek
or most people
@sehe Cat says it doesn't work that way, but I believe that's how it started happening, whether it actually works or not.
I have some .h files I want to add to my codeblocks mingw do you know how I can do that?
23:18
no
#include "myfile.h"?
because I had the same issue
someone told me to ask here
@Yaxlat lol
@Yaxlat An obvious starting point would be to update to gcc 4.9.
crap i'm still at 4.8.2
23:21
[IT: have you tried restarting? Programmers: are you using the current compiler?]
@sehe FWIW, here's the reply:
drumroll
> From: "Abby T. Miller" <[email protected]>
To: "Martinho Fernandes" <[email protected]>
Subject: Re: What I had for lunch

Thank you for the update! I had a burrito.

Best,

Abby
only spam bots are named "Abby".
user1804599
bukkake
23:26
@Blob Might want to jump directly to 5.x (but yeah, 4.9 is a worthwhile upgrade).
@FilipRoséen-refp Kitty? Get out of refp
@R.MartinhoFernandes Next time be sure to start it with Dear Abby.
why do people ask random strangers to make decisions for them?
a single random stranger*
you decide
@Blob why are you asking us to make up your mind?
@sehe am I that unoriginal? dammit.
23:31
@FilipRoséen-refp i'm initiating a discussion
@Blob discussions in Lounge<C++> are frowned upon.
@FilipRoséen-refp because so many productive things happen here
I'm trying to decide between going to sleep, and.. not going to sleep
it's only 00:33
@Blob I dunno, but both she and her twin sister made entire careers out of giving such advice.
they give advice based on a couple of paragraphs of biased descriptions of someone's situation
that's guaranteed to not work
23:36
No, it's not guaranteed to not work.
It's most probably not going to work most of the time
@Blob I suspect it often worked pretty well, really (but their advice often came down to things like: "Oh, just get over yourself already!")
someone is underestimating placebo effect and external motivation
I do seem to have a slightly annoying problem with xfce
xfce agrees
23:38
everytime I unplug/plug my USB keyboard it resets all keyboard settings =/
(key repeat, caps->esc mapping)
seems reasonable
@sehe Yes--a bit like taking an astrologer's advice. On one hand, yes, astrology is complete nonsense. On the other hand, most of them are fairly decent applied psychologists, and a lot more often than not, following their advice is pretty harmless at worst, and probably a pretty decent idea more often than not.
@orlp Add udev rules
I'm unfamiliar with those
me too, until I was motivated to create them
Once, not for me (obviously)
23:40
I assume that's an OS defined 'callback' system to run commands when an USB device connects?
<trying to imagine a polar bear having a bikini wax>
@orlp not just USB
hrm
trying to imagine what a bikini wax is
setxkbmap -option caps:escape is fairly obvious
I don't know if there's a similar command for key repeat however
23:40
there is always google
@chmod711telkitty but it's sexier if you tell us
sexybitchmap -potion cant:escape
I love vim
and sehe
I love sehe too
you should
@chmod711telkitty Why would you try to imagine that? Trying to assure you're set for an insanity defense if you're ever accused of a crime?
I thought bikini wax is for the whole body :(
@chmod711telkitty I once made the mistake of lending my roommates shower gel when I was out of shampoo and using it to clean my entire body
my testicles had this odd burning sensation
@orlp possibly want some rules for power modes to (return from suspend). Dunno if you have/use it
@chmod711telkitty watching Ice Age as we speak, and that doesn't even look a bit odd anymore
23:44
How do I get a corresponding write-only pipe from a read-only pipe created by popen?
Doesn't it return a fd[2] array?
the child process will have the write-only pipe
Oh wait, popen :) not socket_pair or pipe
it will be bound to the child's stdout
@Columbo that's uncanny
@Columbo for my OS course I just had to write some linux code using pipes
23:46
I want to communicate with the chess engine in my program
we had to implement a basic shell, including piping output from one command into another
I do that via IPC
@orlp as if that never happens
we only had to support piping from one command into another though, not multiple
@sehe I'm currently looking into pipe
23:46
@Columbo you want to communicate with the grandmaster inside your true brain
pipe() is the clumsy way to do it
since you have to then fork()
Okay, what about pipe2 and O_DIRECT
@DanielKO you are aware of the fact that you can edit messages sent here, right?
@Columbo popen should do (depending on the design of the engine; assuming "standard" design they're simple input/outpu capable programs and popen should be enough)
nope I'm not
23:47
up arrow
@sehe The thing is, popen gives you a read-only pipe; I need communication
@DanielKO what @sehe wrote
I.e. I send "uci" And the engine sends some shit... then at another point I write "go movetime 400" and wait for the bestmove response
O_DIRECT is not a flag you give to pipe2
@Columbo yeah we picture it already
23:48
oh, I see
@sehe Good. Now help me!
Create two pipes
Give one to the child
@sehe Too lazy to install Boost on my Windoof-System :////
@CatPlusPlus That was my idea
23:49
Or just use a socket
@Columbo not sure that it requires it
@CatPlusPlus woa, woa, woa, wat
It's bidirectional and doesn't require fd juggling
@CatPlusPlus with netcat?
@sehe Boost.System, perhaps?
23:50
29 secs ago, by sehe
@Columbo not sure that it requires it
Or just use stdin/stdout
0
A: I've managed to port some code from msdn to MinGW to capture stdout from child app, but it won't exit, what wrong here?

Jerry CoffinFrom the looks of things, you've forgotten to close the parent's handles to the write-end of the pipes you're passing to the child process. Since there's still a valid write handle to the pipe, the system can't detect that writing to the pipe is no longer possible, and you'll wait infinitely for ...

@Columbo ok it requires it
There's really multitude of solutions to communication between two processes
Pick your poison
@CatPlusPlus I'm a complete noob when it comes to non-standard methods
lol
23:51
That is standard method
@CatPlusPlus But I want to live, cat
@orlp borrowing, you mean?
@Columbo so, go now. we won't judge
@sehe But I like ice bears, I'll stay
@R.MartinhoFernandes rubbing it in (SCNR)
23:52
@R.MartinhoFernandes right
@R.MartinhoFernandes in dutch the same word is used to lend and to borrow
Or use shared memory, or mailboxes
@CatPlusPlus pidgeons?
Pidgeon sounds good, nothing complicated, should work out on the short run
Now give example code pls
23:53
@Columbo fuck you
pidgeon.do()
there
@CatPlusPlus Actually I use google.co.uk so nevermind
oh wait, that was a tad out of character
the pidgeon is doing now
too funny :)
23:54
@sehe </imitating_vampires>
There's shitton materials about IPC
3
Q: What is the proper way to create an exception hierarchy?

orlpI understand that to properly catch exceptions using multiple inheritance I need to use virtual inheritance. I'm not necessarily advocating the controversial use of multiple inheritance, but I do not want to design systems that make its usage impossible. Please do not distract from this question ...

still no answer =/
@CatPlusPlus I know, that's why it's so hard to pick the stuff that isn't just crap or unapplicable to my case
You can pick anything, unless you have a specific reason to avoid something
stdin/stdout is probably the simplest
No, you read from stdin, and you write to stdout
ask Abby
23:56
@CatPlusPlus lol
Of course sry
That's why they're called stdin and stdout
delete stupid shit
just remember that you can't pipe() then fork() on windows
@DanielKO fork is inevitably complicated, never did it
fread(stdout, 1, n, buf); // here be dragons
23:56
@DanielKO cygwin has it :)
fork is the simplest possible method of creating new process
@orlp That's nonsense, yeah.
On Windows you just pass handles to inherit to CreateProcess
There's no forking at all
@CatPlusPlus I know. It creates two instances of the process at the point where fork() is called, each with an (obviously) unique PID. That's how much I know.
However, I'm so new to this that I'd need more time working into easy solutions than using ones I can apply now, somehow..
No, it creates a new instance
The old instance is left alone
23:58
@CatPlusPlus ...except on older versions of Windows that still included a POSIX subsystem.
even with cygwin, fork() is only emulated, I had too many problems in the past porting code that "appeared" to work because of it
@CatPlusPlus .. yeah. That's what I meant.
I'm sleep deprived or sth.
@Columbo this is the C shell code we had to write for our OS assignment: gist.github.com/orlp/098dcd0a8311ba3f8dcf
Wait, does Tea have Coffeine?
@DanielKO :D I know. There was a smiley
23:58
@JerryCoffin Didn't they emulate that too, I'm not sure Windows kernel has a notion of forking at all
@Columbo Some tea certainly does (but not all).
@Columbo smalll amounts
In computer security, a shellcode is a small piece of code used as the payload in the exploitation of a software vulnerability. It is called "shellcode" because it typically starts a command shell from which the attacker can control the compromised machine, but any piece of code that performs a similar task can be called shellcode. Because the function of a payload is not limited to merely spawning a shell, some have suggested that the name shellcode is insufficient. However, attempts at replacing the term have not gained wide acceptance. Shellcode is commonly written in machine code. == Types... ==
But then again who cares
Why did I drink four cups of black Tea before going to bed yesterday
That explains my headache
23:59
@sehe phrasing =/
Anyway, my ego is really on a lower limit atm, I need to finish this quickly
that's a big ass non-sequitur

« first day (1612 days earlier)      last day (3562 days later) »