« first day (1756 days earlier)      last day (3184 days later) » 

12:00 AM
@rlemon - I don't think those flags came from here.
 
they did
@ʎǝɹɟɟɟǝſ got flagged 4 times
 
You only think they did. You were fooled sir!
Fooled I tell you.
@rlemon - Does this look familiar?! chat.stackoverflow.com/transcript/78515 :P
 
shut up
 
lol
 
I need to learn the secret of cooking with oil without oil flying everywhere in the kitchen and potentially the hallway too.
 
12:02 AM
oil in a pan? deep fryer?
 
@R.MartinhoFernandes - Always place oil in the pan when the stove is off, preferably into a cold or luke warm pan at most. Never into a hot pan. Only use a range of 45-55% heat.
 
ohh yea oil in a pan goes in cold for sure
 
Yeah, I usually put oil on a cold pan, but putting it on hot is more exciting
 
Especially if you're naked.
 
Wait for the oil to warm up before placing food in it. If the oil is cold, it will absorb into the food and you get that strange pungent flavor in there that wont come out.
 
12:04 AM
NEVER cook bacon topless
:(
 
use 2 pans?
I am curious what that seaweed bacon is all about
 
They feed pigs with seaweed?
 
apparently there is a type of kelp that tastes like bacon
I'm also curious. I have salt water fish tanks.
I could grow some...
 
It would be awesome
 
It still feels like kelp, I guess..
 
12:07 AM
I don't mind the texture of kelp
 
Well, you fry it so it still looks like kelp. It just tastes like bacon
plus it is a superfood
^
Anyway, carry on Lounge! Have a good one o/
 
@rlemon The point is that it isn't the texture of bacon.
 
@TravisJ ta ta
 
nn
 
I burnt the bread, there's oil all over the kitchen, and I forgot to put salt in the pasta. A successful meal, I'd say.
 
12:11 AM
@TravisJ Later.
 
@R.MartinhoFernandes lol
last night I made shrimp linguini and as it turns out the single piece of pasta I tested was cooked
the rest.. not so much
gf was polite tho and didn't say anything
 
in JavaScript<ball pit>, Jul 27 at 15:05, by rlemon
when my gf cooks for me I order takeout
 
I do 95% of the cooking in the house
 
she might be doing the same soon :)
 
she is good at baking. too bad for me I don't like sweets
 
12:16 AM
what's wrong with you
 
idk. never liked em
 
bake meat pies
 
do you like bread?
i'd eat good bread all day
 
@R.MartinhoFernandes From what they're claiming, it might actually be kind of close. “Pan-fried,” he says, “dulse can be light and crispy with a savory saltiness, like bacon.”
 
Doesn't change the fact that it's seaweed
2/10, would not consume
 
12:44 AM
But at least it's weed!
 
good morning water pods
 
Good morning.
 
kumusta ka kababayan
 
@MaiLongdong kumusta
 
@MaiLongdong Yor LongDon'
 
12:47 AM
@MaiLongdong Mumble?
 
> 8:48 AM
> at work
> mumble
yes
 
same
 
@MaiLongdong :(
Sublime Text broke yet again.
Agh.
 
@Nooble Didn't happen to me yet
 
@MaiLongdong Good morning
 
12:53 AM
@MarkGarcia Why do I get the idea that you're thinking you might prefer it smoked instead of fried?
 
@JerryCoffin wink wink
I sometimes like smoked fish. With "sometimes" being the word.
 
I sometimes like smoked fish. With "smoked" being the word.
 
Oh god. That reminds me--my wife opened a package of dried fish from the Philippines the other day. I'd almost forgotten how awful that stench was. Damned shit's so nasty it literally gave me a headache as soon as I walked in the door.
 
You'll clearly die if you walk into a dried fish market.
 
Maybe dried octopus would be better.
 
1:04 AM
But the best dried fish are those made by fishermen themselves, only for themselves. Dried while still in the ocean. And it's very hard to get if you don't have any fishermen friends.
 
Yeah, you can't beat that.
Fish that was dried throughout its childhood.
 
@MarkGarcia No, I survived it (though I'll admit, there was a while I wished I hadn't).
That was the market in Cebu, which (if I recall correctly) she said was probably the biggest dried fish market there is.
I did wonder why they didn't at least have some Durian around to make the place smell better!
 
maybe we should start a counter-movement. like a moist fish market.
Right Durian. I heard it smells really bad.
 
Damn! I must be slipping--I mention the idea of using Durian to make it smell better, and get no reaction at all...
 
@JerryCoffin I honestly don't get why most people dislike the smell of Durian. I'm not even used to it.
 
1:14 AM
@MarkGarcia I can't say I ever found it particularly pleasant, but the dried fish was definitely a lot worse.
 
what up all
 
@MarkGarcia I don't know either :o I kinda like it
 
I guess I shouldn't pick in the Philippines though--they're hardly the only country where people manage to turn fish into pure, unadulterated stench. Where I grew up in South Dakota, there were quite a few Norwegians who'd make Lutefisk every fall. It was enough to make your eyes water from a good 10-15 yards/meters away.
@Prismatic Hello.
 
durian smells sickly sweet and also like garbage at the same time
I never tried it, but I've had durian candy by accident... not pleasant
 
1:30 AM
@Prismatic I've had some Durian candy that I thought was all right. Some people who are accustomed to it apparently seem to think Durian is pretty much the best stuff on earth though.
 
Yeah. Durian is big in Singapore and a few people I ran into there absolutely loved the stuff
Id rather be forced to eat durian than lutefisk though
Or surstromming
 
@Prismatic Yeah--it was pretty funny. The Lutefisk-eating Norwegians I knew would talk about how foul that was, but it's apparently Swedish or Danish or something, so there was apparently a long tradition of Norwegians looking down on anybody who ate it. From what they claimed, the only way anybody ate it was to get thoroughly drunk first.
 
@Prismatic Or any other type of american junk food really
McDonalds KFC etc
 
American junk food is delish
though you get tired of it really really fast
 
@Prismatic Is that why it's called "fast food"? Here I thought it was from people thinking "I'd rather fast than eat this."
 
1:43 AM
@JerryCoffin You should have seen the flaw with that reasoning as soon as you looked at America's obesity rates :p
 
@Prismatic I don't let facts get in the way of a good joke (or even a poor one) though.
@Prismatic I'm not sure there's a lot of correlation anyway. I'm certainly overweight, but would have a hard time blaming it on fast food (unless just being somewhere near fast food without eating it can make you overweight...)
Anybody have an opinion on whether this "answer" should be deleted, merely because a third of it is misleading, another third wrong, and (in case that wasn't bad enough) the final third is links to cplusplus.com?
-3
A: push_back for strings without converting to vector

SFBA26You can use the += operator: string returnvar; for (int i=start; i<=end; i++) { returnvar += library[data[i]]; } or the append function: string returnvar; for (int i=start; i<=end; i++) { returnvar.append(library[data[i]]); } More info: http://www.cplusplus.com/reference/string/st...

 
Its gone now anyway
 
@Prismatic It's downvoted to -3, but still there.
 
@Prismatic It's also accepted
 
@JerryCoffin It faded out for me, so I thought it was baleeted. I guess not
 
1:59 AM
@Prismatic Yeah--anything downvoted past -2 (I believe -2, anyway) is shown faded.
 
Using a section of the standard as reference for someone 'completely new to C++' seems like over kill. I'd tell him to use cppreference or whatever. Even cplusplus.com is better than expecting someone new to the language to use the standard
 
@Prismatic Use the standard, Luke
 
@JerryCoffin I have many questions with more than 10 downvotes
 
2:18 AM
Fucking ADL not working when I need it god
 
fuck ADL
it's bad
it breaks namespaces forever
 
I'm cleaning up my code, former implementation relied on status codes when errors happened, I'm contemplating using exceptions. Do you guys throw stuff in your code?
 
Rarely, but it happens, yes.
I'm not afraid of exceptions.
 
@Mikhail Hey, strange that I'm also considering replacing errors with just throwing stuff. I don't know whether I should though, its pretty hard to decide.
 
I use exceptions often.
Except on hot paths.
 
2:26 AM
Isn't the cost the same if the exception is unlikely/only an error state
Like, itd just be the cost of the conditional no?
 
No
It's zero cost as long as you don't throw
As in, really zero, no conditional
But when you throw it's much more expensive
Which is an undesirable behavior when you need predictable, consistent low latency
 
@MaiLongdong Whats low latency, the stuff I do is in ms like 2,3ms. What do you deal with?
 
microsecond scale
 
more
like 500micro seconds or 10 micro seconds?
 
less than 10
 
2:34 AM
Isn't nt thread quanta like 100 micro seconds?
 
Threads are pinned to cores
There is no scheduling going on
 
I'm confused, doesn't Windows interrupt everything every 100/10 micro seconds to service locks etc?
 
It's Linux of course :)
 
But how do you use COM on linux :-)
 
@JerryCoffin Seems to be svchost. 3GB of it. lol
 
2:35 AM
@Mikhail Yes.
 
@MaiLongdong How does that make any sense? You don't throw without checking a condition. Also wrt to error states; if you need performance even when there's an error for recovery, I get the argument, but if your exception means you're completely screwed and in a fail state it doesn't matter
 
@Prismatic As in, there isn't a conditional if-chain all the way to the top at every function boundary
And yes for unrecoverable errors I still throw anyway
std::rip
 
I haven't really written a lot of code yet where you need to recover from an error. I guess you wouldn't want to crash while you're doing HFT or whatever financial stuff you're up to :p
 
Well I guess this is a common requirement for long-lived systems (servers etc)
 
Also the hardware I build...
 
2:43 AM
48
A: Are Exceptions in C++ really slow

Matthieu M.The main model used today for exceptions (Itanium ABI, VC++ 64 bits) is the Zero-Cost model exceptions. The idea is that instead of losing time by setting up a guard and explicitly checking for the presence of exceptions everywhere, the compiler generates a side table that maps any point that ma...

 
Note that C++14 exceptions are approx 1.27x faster than C++11 exceptions.
 
Well rounded.
 
Oh Matthieu works for Amadeus.
I almost applied there
But Sophia Antipolis is not really a convenient place to work at, really far from the city
Also fuck southerners
:D
 
You are now imagining someone saying 'rose' with a southern accent.
 
fffffffffffffffffffffff
jaune
 
3:01 AM
@Mysticial That doesn't tell us much--covers any and all services. Does seem to support the idea that it's just a matter of idle storage that just hasn't been paged out because there's still memory available though.
@Mikhail No. Thread quanta is more like 10 milliseconds.
 
@JerryCoffin Yeah I know. I don't exactly care enough to try digging into the svchosts.
 
@Mikhail On my particular machine (AMD A7600) with VC++2015, throwing and catching an exception takes about 3 microseconds. Of course, if you give it a lot of destructors to run as well, that can add more time (but it's pretty much irrelevant to using exceptions). Using setjmp/longjmp instead reduces that to about 660 nanoseconds.
 
Okay what the fuck's up with the flags?
 
It's been like that for weeks
lol
Someone's on a century-lasting period
4
Ah yeah and the stars also
 
@Mysticial Someone's tempted to flag that.
Mod powers pls.
tnx
 
3:09 AM
@MarkGarcia Someone needs to learn to resist their temptations! :-)
 
who cares if throwing exceptions is slow. i would like to get rid of the superstition that the mere presence of try/catch syntax makes the code super slow.
 
@StackedCrooked Yeah, that is pretty ridiculous.
I'd like to get rid of the notion that virtual functions are stupidly slow. I've been doing a test for years (well over a decade) now that compares the speed of doing a 10-way branch using if/then/else, switch (for both dense and sparse values) and using a virtual function across 10 different derived classes. The switch statement used to be ~10x faster than virtual functions. With VC++2015, virtual functions beat if by 3x, dense switch by 2x, and sparse switch by 4x.
 
Due to devirtualization?
PGO?
 
@MarkGarcia Probably--but I haven't looked though the generated code to verify.
@MarkGarcia Haven't used PGO on this test--but some day when I'm ambitious, I probably should. It does take some ambition though. It's a suite of benchmarks (bench++) that's supposed to take around 2 hours to run. It self-adjusts the iteration count to try to assure tests get meaningful timing, but now needs some work--quite a few tests hit the maximum iteration count it currently supports.
 
4:14 AM
@JerryCoffin What this really brings up is the need to have interfaces for the type safety without the looming threat of virtual dispatch. We need a keyword like final something like direct which will choke the compiler if the class becomes actual virtual...
 
Concepts are like that.
 
I thought concepts for Bjarne Stroustrup's excuse for bad C++ error messages?
 
I’m thinking for Mikhail’s excuse for bad syntax.
 
TIL, that sizeof(void) is 1
 
@Mikhail It’s not.
Check your compiler options.
 
4:23 AM
I blame gcc
 
It’s all in the manual.
 
I wonder why they did that?
 
The reason they can’t change it now is that there are likely lots of scripts and programmers out there that expect the current behaviour. As to why it was here in the first place, I do not know. Maybe it mimics the interface of a previous C compiler.
 
Its for doing arithmetic on ptr void*... which makes sense..
 
Oh, I thought you were talking about the gcc driver interface.
 
4:38 AM
@ʞɔᴉN That was me, sir.
 
4:54 AM
 
5:31 AM
boys, should I get an intel or AMD processor?
Hello, btw
Don't make fun of JS programmers. Some of us are what we are not by choice.
 
@MaiLongdong I don't know what ring2 is either. Rip me
@khajvah I can't remember the last time I actually regretted buying a processor. Id just buy whatever's cheaper
 
AMD it is then.
Holy shit. Modern AMD CPUs have 12 cores. And I am still with dual-core processor.
 
5:46 AM
boost bimap doesn't have a constructor taking init list
rip
 
Yeah, you don't need the high-end stuff unless you're me. :)
 
6:20 AM
@Mysticial You have a great hobby.
 
6:38 AM
How do I contributt to Boost? :w
 
6:57 AM
ping them on their mailing lists?
 
user1804599
7:10 AM
This is called a "move constructor", not an "rvalue copy constructor". — elyse just now
 
user1804599
top kek
 
@MaiLongdong, the predicate is used to counter such wakeups only. Even wait_for() if it works fine in my platform, doesn't guarantee that it will work everywhere, because spurious wakesups are platform dependent. — iammilind 8 mins ago
idgi
 
@khajvah IMHO, AMD is a good choice only if you care about the iGPU, or dual graphics with a low-end card. Everything else is Intel.
 
Intel iGPUs are p good now
I'm very happy with mine
 
@MaiLongdong Only the Iris ones defeat AMD's.
Though yeah, they're great especially for mobile.
 
user1804599
7:33 AM
I like how OCaml does main.
 
user1804599
Instead of magical main functions, you just pattern match something to () at the top level.
 
user1804599
E.g. let () = print_string "Hello, world!\n".
 
user1804599
And there's no SIOF so it works nicely.
 
Intel also has official open source drivers so that's a big plus.
Fonts are not being rendered properly on Qt apps.
 
Ell
what's my Favourite thing about Switzerland you ask? Oh well the flag's a big plus
 
7:44 AM
I wish I lived in Switzerland
 
user1804599
Postcondition specification before or after function body?
 
Ell
After
 
Before.
 
Ell
Precondition before
Postcondition after
 
As long as it's after the precondition.
 
user1804599
7:46 AM
def sqrt(n: number): number
require
    non_negative: n >= 0.0
do
    -- stuff here
ensure
    squared: out * out = n
end
 
Nope. Function body should be irrelevant for the user.
 
user1804599
like that :v
 
Ell
Yes like That!
 
user1804599
That's what Eiffel does.
 
39 secs ago, by khajvah
Nope. Function body should be irrelevant for the user.
 
user1804599
7:47 AM
Ok. :3
 
Ell
maybe I will use def in my language instead of fn or fun
Ignore @khajvah!
 
user1804599
Ok! Plonked.
 
Ell
Function body cannot be irrelevant for implementor
 
I wasn't talking about implementor
 
Well he's not wrong. Interface vs implementation separation.
 
user1804599
7:48 AM
The documentation generator doesn't show the body by default.
 
user1804599
It shows the preconditions, postconditions and exception specifications.
 
Plonk me as much as you want, I wouldn't want to skip through 200 lines of function body just to check postconditions
 
Ell
@khajvah elyse was though
Hence the do block
 
user1804599
def sqrt(n: number): number
require
    non_negative: n >= 0.0
ensure
    squared: out * out = n
do
    -- stuff here
end
 
user1804599
I like this better.
 
7:50 AM
@elyse that's what I meant
 
user1804599
No shit, Sherlock.
 
Ell
@khajvah the user reads documentation
The implementor reads the source
 
@Ell Still. Even for the implementor, one needs to know both post and pre conditions before reading the implementation.
 
Conditions should be before body, yes
In the same way as signature is, it's a quick-glance information about the function
 
Ell
@elyse but then out is usedr before it looks like becomes anything
 
7:51 AM
Don't force anyone to jump through the entire body to find it
@Ell It's a special keyword, you can say the same thing about the return type
It probably doesn't appear in body anyway
 
In programming, like in real life, you're always trying to hide the body.
an programmings
 
user1804599
out is either a keyword or a contextual keyword. You can only use it in the postcondition.
 
deep as fuck, Cicada.
 
veries
 
@khajvah "deep as fuck" would be function inlining.
 
7:55 AM
found you peeps
hey. can I compile old turboc (borland fucked compiler) code with gcc? don't wanna install turboc or dosbox or whatever on linux or boot windows all the time :/
 
yes you can it's fairly easy
all it takes is a few kilograms of the finest TNT and a matchstick
 
> fairly easy
 
@MaiLongdong you don't need matchsticks. Just press the right mouse button and run.
 
trolling because I mentioned turboc? :-P I hate it too. But college sucks ;)
 
Colleges do suck.
 
8:01 AM
man someone needs to PSA some kind of governing educational entity in India that using ancient tools is unacceptable
 
user1804599
Tell your school to upgrade to clang and GCC.
 
@elyse which is equivalent to doing what @Prismatic said. not possible.
 
That's harder than installing turboc
 
Did TurboC use compiler extensions? You'd prolly be okay so long as there isn't any weird compiler specific stuff
 
user1804599
@AwalGarg Drop out and get a job.
 
8:03 AM
nah. very basic C (not C++)
@elyse damn I'd love that. but... India. fml.
 
If you're on linux, a gcc package should be ezpz to grab, so just try and see if it works I guess?
 
yeah that's what I am trying to find, but google doesn't seem to be helping. so thought someone here would know...
there was some guy rightleft or something here who I think mentioned turboc last time I came here...
16
 
@AwalGarg I don't know, my previous university switched to Debian 6 as soon as it was released. We had all the latest compilers and all. Great staff overall.
 
Though fair warning, you might end up writing code that works on gcc but fails to compile with turboc or whatever. I had something similar happen to me at school in an OS course. We had to write a mini OS on some HP-UX systems, but most of us just used Ubuntu for development thinking it would work out
 
user1804599
Why the fuck is _.flatten not shallow by default.
 
user1804599
8:06 AM
You almost always want to flatten one level.
 
user1804599
Especially in the absence of flatMap.
 
rightfold sorry
 
Too late bro.
 
rightfold evolved into elyse
 
:o
 
user1804599
8:07 AM
@AwalGarg where did you get the name "rightfold" from?
 
@Prismatic I wish we had an OS course
 
@elyse you are rightfold? sorry I thought you work with turboc
 
user1804599
Why would I work with something that terrible?
 
Protip: don't listen to rightfold.
 
The course I took was useless. First exposure to Unix and to low level C and ASM and it was basically "write a basic RTOS with IPC and preemptive scheduling" with some shady docs on how to get started. We didn't learn shit and just got told to 'go do it'
 
8:09 AM
I am the only source of truth in this room. Word of Mai Longdong.
 
user1804599
Our great Korean leader.
 
KimJongDong
 
@Prismatic I really want to get into OS development.
 
I actually had a teacher in Korea whose name was Dongman. And the TA name was Heeseok (pronounced "he suck"). Great times.
 
@elyse I think we talked about it the last time I came here
 
8:11 AM
Do you come here often
 
nope
 
I cum here oftern
 
thejoke.rar
 
unzip
 
how rich would the winrar guy be if everyone who used it actually paid the guy however much it costs
but then again, how many people would use winrar if they had to pay in the first place
 
8:14 AM
@Prismatic You can say the same about Richard Stallman and Linus
 
linux isn't donationware or whatever winrar was
 
user1804599
Fuck C++ anyway.
 
user1804599
 
@elyse Stupid fucking picture.
 
s/High-level/C++/ s/native/web/
 
8:16 AM
At least give some credit to low level guys.
You wouldn't have your glorious Gentoo without them.
lol Gentoo!
 
repwhores are already drooling
 
So, I just today found out that Jeff Atwood is a king.
 
@Columbo at KAUST?
@Columbo KAUST
 
I love the smell of a rant in the morning
@MaiLongdong agreed
 
user1804599
HOLOKAUST
 
8:21 AM
This cool question avoided the "your post is mostly code, please post some description along with it" by not formatting the code entirely and leaving the entire text as garbage.
OP is always a huge moron
 
I tried gvim after listening to you guys. It doesn't fucking work.
 
@khajvah no, no, NO! Gvim is the future.
You can't even conceive what you can do with GVim
and neither can I or anyone else
not even the author
 
I am using Vim mate
I was talking just about the GUI
 
user1804599
 
lol C++
 
8:25 AM
@elyse You got me this time
 
Java>C++
 
@elyse I doubted it right away
 
room topic changed to Lounge<C++>: looming threat of virtual dispatch [c++] [c++11] [c++14] [c++-faq]
 
f***
 
fail
 
user1804599
8:26 AM
@thecoshman Grumpy pirate.
 
user1804599
Celebrate the Friday you twat.
 
marco you suck
 
:' (
damnit, today I can't format multiline code
Hello
World
ah here it is
stupid spaces
 
@elyse s/you/with your/
 
Command-t is such an amazing plugin.
 
8:41 AM
hello
 
Hey.
 
What's up
 
flags are up
 
white flags?
 
JavaScript is up
 
8:43 AM
I've been migrating the flurry of micro projects to gyp at work
The docs kinda suck
It's like it's a google thing
 
TIL (not sure if safe for work, not at high volume perhaps)
 
gyp has docs?
 
@Mr.kbok I tried to understand gyp once when I wanted to compile v8 on a mobile device... didn't go so well
 
@CatPlusPlus There's a build file written on a piece of toilet paper at the google hq
 
user1804599
gypsy
 
8:51 AM
Why are you guys using gyp
 
Racists
 
@Prismatic I dislike scming vcprojs
 
user1804599
Cancel the flag you twats.
 
user1804599
thanks :D
 
What flag?
 
@Mr.kbok Sure but why not something else like CMake.
 
@MarkGarcia Amongst the drivel, there is some interesting content on HN
@Prismatic I despise CMake
I want to find out if gyp is better
 
Why not just GNU Make?
 
Also s/like/ie/ cuz it's p much the only alternative
@khajvah Windows.
 
Ninja
 
8:58 AM
qbs looks pretty neat but I haven't heard much news about it
I hope they don't abandon it
 

« first day (1756 days earlier)      last day (3184 days later) »