« first day (1371 days earlier)      last day (3595 days later) » 

3:00 PM
Especially if the fuckers don't bother using the blinkers.
 
not if the driver has been conditioned to watch out for cyclists :p
 
@ParkYoung-Bae Some answers with only 2 upvotes are still quite good. Happens fairly frequently if you answer questions about relatively obscure subjects.
 
@R.MartinhoFernandes a lot of bike lanes in the US have this wonky thing where the right turn lane crosses the bike lane into the right turn lane if there is one
 
here, cars are just expected to wait for the cyclists to pass in that case. Screw cars. :p
 
eliminates that awkwardness, but added danger of stupid if they don't use signals/respect cyclists
 
3:01 PM
@jalf Yeah, that's the thing: I never know what to do.
 
just go straight ahead? :D
 
@JerryCoffin The answer itself is not bad. I wouldn't say it's "great", though.
 
@jalf Reality, of course, is that it's up to the cyclist to look out for him/herself. In a car vs. cyclist accident, it's the cyclist who's going to get hurt.
 
@JerryCoffin Exactly.
 
@jalf Chavs still would
 
3:02 PM
Cars that are excessively considerate of cyclists are, surprisingly, annoying.
 
@Xeo We have some of those. It's becoming more common. But a lot of our towns just don't have the room for 'em
 
You know you're the one getting the wrong end of the stick so you don't want to run ahead, but then they stop to let you pass and that's where the awkward comes.
 
that's where it pays to be an entitled bastard who just expects cars to stop and let you pass :D
works for Danes :D
 
@R.MartinhoFernandes Like in a race on the track, you end up standing completely still to see which will break down and go first...
 
if it's a big huge truck, I might be a bit wary, but otherwise, fuck'em. I just go on ahead and if the car doesn't stop, I'm going to get pissed :p
 
3:05 PM
To put it mildly.
 
user1804599
Ugh.
 
user1804599
"Weight per box" and "gross weight per box" are used interchangeably in this code. ;_;
 
user1804599
But there is also net weight per box!
 
Some roads have the bike lanes to the left of the rightmost car lane, so they can turn right without bothering you.
 
@JerryCoffin yeah, absolutely. But it really does make an absolutely vast difference whether cars (or drivers, I guess) are accustomed to having to look out (and yield) for cyclists.
 
3:07 PM
And if you want to turn right you can just follow the cars.
 
@R.MartinhoFernandes How do the cars get into the rightmost car lane without bothering you?
 
@LightnessRacesinOrbit chavs gonna chav. :p (although my experience says otherwise. Either Copenhagen has no chavs whatsoever, or chavs can learn to use the fucking bike lanes or roads like everyone else. ;)). People really do not use the sidewalk for cycling here. Not even idiots, and not even "every once in a while"
 
@jalf I'm jealous
it's literally all that about 60% of the British population does all day and night
 
@R.MartinhoFernandes that always feels awkward to me. I feel exposed (and like I'm doing something wrong) if I'm there's a clearly marked bike lane, and I'm not using it.
 
@jalf I think you misunderstood.
 
3:10 PM
anyway, a cyclist going through a red light will always get a healthy horning from me
cunts
 
user3010322
@CatPlusPlus Uh. Which e-mail? :o
 
The only one I use maybe
 
Xeo
@LightnessRacesinOrbit I wish I could do the same for cars going through a red light
 
@ParkYoung-Bae He needs to dynamically create an enum at runtime. Not possible, moving on. :)
 
piotrlegnica@piotrl.pl
 
3:11 PM
Can't find a picture. Paint it is.
 
Xeo
Because fuck those
 
@R.MartinhoFernandes well, if the bike lane is to the left of the rightmost car lane, I never know what to do when I want to turn right. Staying in the bike lane is just awkward, and like I said, leaving it and using the rightmost car lane instead just feels wrong
 
@CatPlusPlus Don't you feel crawlers all up your ass?
 
@jalf Ah, got it.
 
user1804599
3:12 PM
@Jefffrey spamfilters exist for a reason.
 
we only have a couple of those in Copenhagen, and they're pretty much the only thing that I feel uncomfortable with as a cyclist. But it's probably just a habit thing. If they were more common, I'd presumably be more at home with how to navigate them
 
@Jefffrey No, that's dumb. Train your filters better
 
@LightnessRacesinOrbit I'm wondering now. I haven't run into anything like that yet, and haven't considered it.
 
Also, isn't "chav" just an extremely British word for "people of a lower social class than me"?
 
3:13 PM
@LightnessRacesinOrbit I know what I'll think about next time I go through one.
 
@jalf No, it's an extremely British word for "people of the lowest social class"
that is, barons and so on don't call normal people "chavs"
@R.MartinhoFernandes ok
@jalf actually, there is a connotation of poor behaviour attached to it, so it's not solely based on class
I know plenty of incredibly poor and uneducated people (some of whom I call friends) who are not chavs
 
I see
 
The only places with that setup that I can remember explicitly now have low traffic because Berlin is being built nearby so that explains why I haven't had to navigate like that with a car in them.
 
@R.MartinhoFernandes btw finally the little shit is dead \o/
 
3:15 PM
> Berlin is being built nearby
 
Oh, Joff?
@LightnessRacesinOrbit Who?
Dammit chat, why did you reorder that.
@LightnessRacesinOrbit Berlin will be beautiful when it's finished.
 
It kind of fascinates me how big a deal social class seems to be in the UK. It seems to be so much more significant than in other countries I know of. Sometimes it seems like it's bordering on a caste system
 
@LightnessRacesinOrbit Reminds me of kelly
british people have the best accents
 
Sometime ago I asked everyone sitting around the table if any of them remembered any moment in time, no matter how short, when no train lines were interrupted due to construction work.
Nope. No one.
Some of them have lived here for decades.
 
@R.MartinhoFernandes uninterrupted due to an absence of construction work, you mean?
 
user3010322
3:18 PM
Well, Cat's thing is rigged. I have to have a real paypal balance in order to use shit.
 
user3010322
Why is this payment system so shitty.
 
aw, you fixed it
 
@jalf Yeah. Fixed.
 
user3010322
Whoever invented this thing needs to die.
 
@ThePhD No one wants your money.
 
user3010322
3:19 PM
:c
 
user3010322
Well, fine.
 
user3010322
Be that way.
 
@Xeo what's a "Decken"?
Oh, blankets makes sense.
blanket, ceiling, floor...
Next thing you know it also means whore or something.
 
user1804599
Karma is nice.
 
@LightnessRacesinOrbit Had fun at Edmure's wedding?
Gosh, this animation code is definitely the worst of this codebase.
Every time I'm debugging something in it I end up finding and fixing bugs other than the one I'm tracking.
 
3:33 PM
> The user to run the command as. Note that if you use this then any error output is not currently captured. This is because of a bug within Ruby.
...
 
@jalf Java/Qt-style thread classes! stackoverflow.com/q/24827909/46642
 
This Putin guy is such a troll
Thank you for helping humanity's advances against HIV by killing off a handful of the researchers in that area.
#progress
 
hahahhaa :D
when you brush with Meshuggah
 
I think the missiles were launched because whoever launched them thought they were going to hit Putin
who was in a plane around that area ~30 mins before
(or after)
 
@AlexM. Confirmed as false
 
3:38 PM
really?
okay then
MOTHERFUCKING PUTIN
HE'S SUCH AN ASS
 
I think it was a black hole.
No wait, a white hole coughed up the rocket.
Yeah, makes more sense.
 
I heard Putin pulled the trigger via a remote connection
he used a proxy server so the US wouldn't detect it
man I'm a sad fat fuck
among the benefits I got from the workplace, the 10% sale I get at a specific restaurant appeals to me the most
 
> My real-world-problem has several hundred elements of my enum class
I always wonder how people get to this point.
 
to further reinforce this, the free entry to a fitness club appeals to me the least
I'll probably never use that
 
@R.MartinhoFernandes what do you mean by "elements" of your "enum" clas
what is an element
 
3:44 PM
I mean come on it's not the price that was keeping me away from fitness stuff
 
using the value from the defined enum?
 
Is there some way to make a function only take a const char* that is in .rodata?
 
@AlexM. Yeah, something like ѕѕн яоот@вук Lдцисн?
 
.rodata is not a thing in C++.
 
3:45 PM
@ParkYoung-Bae yes
followed by
sudo vodka
 
So there's no way to require a hardcoded string then?
 
@AlexM. lol
@mindvirus Well you can check that the address of the string belongs to the mapped .rodata section in memory, that's all I think
 
One trick I've done is say like #define CALL_F(s) f("" s) but generally I'd like to avoid that. And want it at compile time.
Trying to find if GCC has some attribute for this.
 
@mindvirus Then no (also, why?)
 
I want to avoid having to copy a string on a thread hop.
 
3:48 PM
._. why would you copy a char const*
it's const, who cares
 
Then don't copy it.
 
because you don't know the lifespan of the underlying object - ie. someone calls you with some_str.c_str().
 
If the user passes a std::string copy it. Otherwise, don't.
 
That's an entirely different problem
 
so I need to guarantee it's either in rodata, so I know that I don't have to copy it.
 
3:50 PM
Or just make a literal wrapper that you have to use to skip the copy.
 
This is one of the best XY problems I've seen
 
Or move it.
 
Just floatin' in space
 
Alright, so what do you recommend Park Young-Bae? I mean, need to avoid the string copy here. The question is how.
 
there's this old lady walking a dog here
no idea if the dog is too old, or sick
 
3:53 PM
R. Martinho: Question is though how to make sure callers don't screw it up. So I want this to be caught at compile time.
 
he's probably too old, since he hasn't died yet, and I've been seeing him around for at least a year
but damn, is that dog slow
 
@TonyTheLion Poor guy. He didn't sign up for that
 
@mindvirus Pretty much what R.Martinho said
 
including complete stops for some reasons, while walking
they fit together
 
@Jefffrey He doesn't seem to be too pissed off though
 
3:54 PM
nice VC12 experience #51983479: fstream's operator >> for double is 5 times slower than on VC10. Dafuq...
 
@mindvirus You cannot ensure that callers do not screw up ownership.
 
Consumers are responsible of their mistakes
 
Sure I can, @Puppy. Or at least make it hard to screw up.
 
@ParkYoung-Bae You should have seen its face when the shuttle lunched. Poor guy. 1 year up there is like 7 years for us without sex.
 
those are two totally different things.
 
3:56 PM
@Jefffrey Interesting comparison
 
Xeo
@R.MartinhoFernandes Since when does "Decke" mean "floor"?!
 
take std::string, the user can copy or move as he likes, take const char*, the caller has to not release it until you're done.
 
Xeo
take unique_ptr<char const>!
 
Don't want to alloc.
 
> Why is this C++ program so incredibly fast?
"Because C++"
 
3:57 PM
@mindvirus Tough shit.
you have the grand total of exactly two choices: refer to the user's data and rely on him getting ownership right, or, copy the user's data.
or move the user's data if you have an appropriate compiler version.
 
No, there are other options. Using literals as @R.MartinhoFernandes suggested.
 
Chessy Feast Pizza
tomato sauce, mozzarella, brie, parmigiano-reggiano, gorgonzola
holy crap
that's godlike
 
gorgonzola is pretty good
 
@mindvirus Not really.. that's just #1.
 
I would add some rucola and hot salami
 
3:59 PM
it's cheap though, so the amounts of brie and parmigiano must be tiny
 
@AlexM. just don't put ketchup on it, promise?
 
^ do promise
 
@Jefffrey :( I don't usually put ketchup on all-cheese pizzas
just on those with meat
 
Another choice is to use a preprocessor macro to enforce this
 
you shouldn't put ketchup on any pizza
 
4:00 PM
^
 
every time you do that a pizza guy dies
 
@Xeo dunno. It's what Leo says.
 
@mindvirus Still just #1 but you made it shittier because if I know I can handle the ownership then you prevent me from using any non-literals.
 
Few friends of mine work as pizza guys. Please don't kill them.
 
G'day everyone.
 
4:01 PM
@Jefffrey lol
 
They are young, and have hopes and dreams.
 
And they deliver good pizzas
 
I always tip pizza guys well, that should keep them alive regardless of the amounts of ketchup I use
 
it is your caller's responsibility to manage the lifetime of any objects he passes you by pointer.
there is nothing you can do to change this.
if he can't handle lifetime, then he will crash his program regardless of whether it's on your specific API or not.
 
the issue here is that this is an async logging library. So I don't want the caller to really have to worry about this stuff.
 
4:02 PM
@AlexM. No tip can compensate for such an atrocity :(
 
also I don't know of any systems with multiple threads where avoiding a single string copy would be so essential.
...
 
what's wrong with ketchup on pizza lol
there are even ketchups marketed as ketchups for pizza
 
like, everything :P
 
because log messages have a lifespan beyond the current thread.
 
@mindvirus Then make a copy.
 
4:03 PM
the string copy takes ~250ns, which is too much.
 
Ketchup goes on french fries. Tomato sauce goes on pizza. End of the discussion
 
@mindvirus Too much for who in what situation?
 
@AlexM. No. I hope you are joking.
 
cause it seems to me like a context switch to kernel mode to do async I/O is gonna cost a shitload more than that.
 
jesus
 
4:04 PM
@Jefffrey He's most likely not. I've seen a lot of unspeakable ketchup crimes here
 
now I know how to torture jeffrey
 
(they put it on pasta too)
 
I had a pasta with ketchup
 
@Jefffrey ew
 
@AndyProwl he is not
 
4:05 PM
When I was really low on food
 
thing is, pizza with ketchup doesn't really taste like super crap, it's just not pizza
 
@CatPlusPlus must have been traumatic
 
I had tortellini with ketchup when I really wanted tortellini and didn't have ingredients to make tomato sauce
 
It was okay
 
you can't think of eating a pizza while you eat that thing
 
4:06 PM
Pizza with ketchup is okay but
Garlic sauce is where it's at
 
I eat chicken stuff with garlic sauce
like fried chicken
also pork
 
it's like with Xeo's unpizza
 
@puppy I/O is on a different thread, just care about making this bit as fast as possible for now.
 
then take a reference.
 
@Jefffrey That thing makes me angry
 
4:08 PM
oh
or, even better
if only there was this "move semantics" thing where you can just take ownership without having to make a copy...
that would be swell.
 
Meh my cocktail tomatoes are starting to die, gotta eat em
 
@R.MartinhoFernandes sure
 
not so simple. the logging thread could stop before the log message is received by the writer thread
 
still prefer Dany's story
 
@mindvirus User's problem.
 
4:10 PM
alas, I'm also the user in this case, so it's still my problem.
 
well I'm sure you're smart enough to handle it
since you already came up with at least one (and there are many other) solution.
however I still struggle to believe that in the context of asynchronous I/O and thread communication, a single string copy is a big deal.
 
From my benchmarks, this one string copy is taking 40% of my time.
 
PC Gamer says
> A demon beat a guy to death with his own arms? Yep, it's Doom.
um, no, that's not doom at all
(about the doom reveal at quakecon)
 
the heck are cocktail tomatoes?
 
tomatoes that go in cocktails
 
4:14 PM
@mindvirus I'm sure that you can handle passing a reference if it's really such a big deal.
also, WTF are you doing where loggging takes 40% of your time? probably an indicator that you log way, WAY too much...
 
I mean, 40% of the time in the single log call.
 
@Jefffrey probably actually cherry tomatoes since you have them as finger food next to cocktail sausages
 
@mindvirus I smell blocking IO
 
right.
and how much time does log calling take in the whole application?
 
It's not so much the amount of time that's important, but the added latency from logging, which is significant - a log call say adds a microsecond of latency in the middle of a function.
(have to run, back in 30 minutes)
 
4:18 PM
test
 
case
fucking failed
YOUR ASSERTION FUCKING FAILED
WHAT ARE YOU GOING TO DO NOW
 

Sandbox

Where you can play with regular chat features (except flagging...
 
user1804599
It’s but 100º.
 
user1804599
Ugh translation fail.
 
@rightfold Just a little more than a rightangle.
 
user1804599
4:20 PM
I want a fog generator.
 
anyone recommend a book to learn C++ if i'm a fairly experienced java programmer?
 
user1804599
4281
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
user1804599
Step #1 is basically to forget everything you’ve learned about Java.
 
user1804599
C++ isn’t anything like it, especially not the programming style.
 
thanks, i was looking at that, but the only book that seems to be 'accelerated' is like 14 years old.. is it still relevant?
 
4:22 PM
accelerated?
 
Probably not.
 
like, learn you a C++ in 10 days?
 
@Hector204 Java does not accelerate you for shit.
there's hardly any skills you can transfer over.
 
eh, no sorry, i guess that's misleading.. i mea... don't carry my hand through simple programming constructs like loops and if/else statements
 
4:24 PM
meh
maybe if C++ had ranges... maybe.
 
i'm a CS student and i've done mostly java, algorithms, data structures
lots of math...
 
user1804599
C++ is difficult to grasp until you “get it.”
 
user1804599
Then it’s slightly less difficult to grasp.
 
@Hector204 We are telling you to forget everything about Java and learn C++ like if it was a completely different language.
 
eh, you can probably still use an if statement.
but that's about it, really.
 
4:26 PM
i'm guessing people don't like java around here lol
 
Unless the if statement uses a declaration for the conditional?
 
It is a different language, but I'm sure you don't believe us, so, for now, just pretend it's a different language.
 
user1804599
@Hector204 Loops and if statements and the like still work, but you don’t use e.g. inheritance as much.
 
i believe you
i know everything's not an object in C++
 
that's pretty much irrelevant
 
4:27 PM
functions and references aren't objects, but that's about it.
 
right so... C++ primer good guide?
 
And new is like HIV. Stay away from it as far as you can and if you really have to do it, use a condom.
 
haha
i want to learn to think IN C++
 
The condom in this case is std::unique_ptr and/or std::shared_ptr
 
user1804599
@Hector204 Read one of the introductory books and write lots of code.
 
4:28 PM
someone told me to get.. C++ for java developers.. but i dont want to just... be comparing the two the whole time.. just teach me from start.. but doing carry my hand through simple concepts
 
user1804599
If it’s not on the book list, it’s probably shit.
 
okay
 
If there are, try to pick books that include C++11.
And be ready for a hell long of a ride.
 
yea that's what i was looking at, and that other old text is like.. 98? or something.. really old
 
03 I believe
 
4:30 PM
most people here self taught or graduates?
 
The C++ they teach you in uni is often not C++ at all.
At least for me it wasn't.
 
seems right now at least.. we're focusing a lot more on theory than actual practical programming... which is great because i love theoretical stuff, but i want to also teach myself to actually program
 
My professor didn't even know a struct could contain member functions.
 
user1804599
You cannot learn a programming language without programming in it.
 
well obviously :p
 
4:31 PM
@Jefffrey Ditto. Although most C++ I see in the industry is more C with classes. ):
 
@Hector204 If you like theory, learn Haskell instead.
 
i mean.. i want to learn the specific tools, i've been practicing my UNIX
 
second mission in, and rage quit. Stupidest fucking thing ever! why don't the little cunts grab hold of the ship when they get out?!
 
mum's going to visit and she told me to order a pizza that I also like
that's good news
because she won't be able to eat all of it
so I'll finish the job
54 mins ago, by Alex M.
man I'm a sad fat fuck
I'm thinking about just giving up
:\
 
user1804599
4:36 PM
Fatass.
 
Start running
 
is rucola good?
 
it's bitter
 
pizzas with rucola look like pizzas with grass
 
4:38 PM
it has a very strong taste
 
I'll probably not like it then
 
try it
 
too hungry for experiments, I'm just going to order what I like
I'll try rucola next time
 
there might not be a next time
carpe diem
 
Carpe pizzem
4
 
4:39 PM
lol I'll risk it
 
lol
 
how does it not fall off
 
it really looks like pizza with random grass thrown on it
 
Also you don't have to get a big pizza to try it out
 
4:40 PM
Back. Thanks for the help, everyone. I'll let you know what I come up with @puppy.
 
@AlexM. You gave me a great idea. I think I'll order pizza too.
 
do eeet
take pics please
I'm serious
 
lol
 
I want to see how an italian pizza looks
 
k
 
4:41 PM
@CatPlusPlus Seize the pizza?
 
then I'll show you mine
tainted by ketchup
 
then I'll lunch the missile
 
dat pun
 
I'm eating tortillas with rucola and salami
 
4:45 PM
@R.MartinhoFernandes Everything's all right?
 
@AlexM. How long is your average pizza list?
is it called "pizza list"? I mean the list of possible pizzas you can order.
 
It's a menu.
 
it's in Romanian but...
I gotta go pick mum up
brb
 
By the way it's "Mediterraneo", not "Mediteraneano".
I'm terrible. I've only tried 1/10 of my pizza menu.
 
user1804599
4:54 PM
@CatPlusPlus Yum.
 
Xeo
hooooot
> Temperatur: 31.19°C
 
user1804599
@Xeo you too <3
 
Xeo
why, world. whyyyy
 
@Xeo Weakling.
 
user1804599
@Xeo For various reasons: translate.google.com/…
 
4:58 PM
@thecoshman Were you currently rocketing through the atmosphere?
 

« first day (1371 days earlier)      last day (3595 days later) »