« first day (1704 days earlier)      last day (3259 days later) » 

11:00 AM
@milleniumbug But what about the resource leaks
 
user1804599
I'm beautiful.
 
You are.
What changed?
 
@milleniumbug And your question matches the answer both semantically and grammatically, unlike Victor's.
 
@rightfold Pics or it didn't happen
 
user1804599
@TonyTheLion NO
 
11:01 AM
@sehe Yeah, right, but that wasn't in the answer :D
 
Right, i'm off, no one here is normal.
 
Maybe we can change the rules, I'm not very used to Jeopardy but maybe it should be fun to play :D
 
user1804599
@R.MartinhoFernandes I think it's aliens.
 
11:02 AM
@sehe This is my new favourite pic of Saturn, btw: photojournal.jpl.nasa.gov/jpeg/PIA18314.jpg. Love the visible light arc on the horizon below the rings.
 
user1804599
nice hexagon
 
awsum
 
Xeo
@R.MartinhoFernandes Needs colour
 
user1804599
I don't like any other aspect of the picture, though.
 
Screw colour.
 
11:08 AM
> The hack is sure to reopen the age-old debate about the wisdom of storing dozens or possibly hundreds of passwords in the cloud. Even when those passwords are robustly protected, as they appear to have been by LastPass, many experts say the cloud remains an unsuitable storage environment given the vulnerability of Internet-facing servers.
oh well
 
@Xeo It'd be too overwhelming in colour. I'd probably faint short.
 
Nasa vs esa vs chinese space program
this is going to be interesting
 
She says, right after looking at pictures taken from a joint mission.
 
@VictorLopez interesting move then, to start with a faux-Jeopardy question
@R.MartinhoFernandes that's subtle
@R.MartinhoFernandes Déja-vu
 
user1804599
I want to program in Go.
 
Game programming is fun :)
 
user1804599
 
Xeo
@R.MartinhoFernandes haha
 
game theory: collusion tends to happen in a market with 3 or less players
 
11:14 AM
@Marco I have a question on SPUs and DPUs, are you familiar with the scheduling of instructions on those?
 
@sehe I'll try my best to do better Jeopardy questions.
 
user1804599
Leopardy.
 
@VictorLopez Maybe, just not?
 
user1804599
What's it called when a cowboy engages in jihad? Yeehaaad!
 
user1804599
 
user1804599
11:21 AM
 
hexagon best shape ever
 
user1804599
 
 
user1804599
looks like MapReduce
 
Ell
Not very good res
You can't read the writing
 
11:26 AM
 
You can read the images though
 
try that one, I can't edit the original post
 
Ell
Mmm chip butty
 
Mmm goto.
 
I have been having tuna & avocado sandwich for the past few days
and vege ramen
 
11:32 AM
The status of my SSD has turned from "On the way" to "Out for delivery".
 
Oh, yes, I remember now.
@fredoverflow windows.cocos.com
 
shit
i got an email about an unpaid bill that I paid
 
Do you have a receipt?
 
A receipt to prove that you paid the bill.
 
11:35 AM
I think it might be like 1PLN short because I forgot about installation cost
@Nooble what is a receipt?
is this like those ancient scrolls
on papyrus or something
 
user1804599
@VictorLopez I recently used goto where break would suffice.
 
@BartekBanachewicz When you go to a place to buy something and they hand you a piece of paper that lists what you bought.
 
@Nooble Yeah well that's not how you pay bills though right
 
@BartekBanachewicz Well, yeah, but I'd assume they'd give you some kind of documentation.
 
I need to log in to the customer panel
 
11:38 AM
Some proof of payment.
 
no, you don't get a proof of payment lol
that's what you can get out of your bank and I indeed can get that
 
Oh ok.
 
@rightfold if it was fast it was a breakfast. Because goto is a lot of spaghetti.
 
@Nooble I was given a personal account number to make payments
 
user1804599
    for {
        ...
        if x {
            goto l
        }
        ...
    }

l:
    ...
 
user1804599
11:40 AM
it was like this
 
I think I just forgot about something small
 
@buttifulbuttefly nope
 
@BartekBanachewicz phishing
 
nah don't think so
the email was just "log in to your account and check the status there"
but I don't have the credentials in LastPass yet for some reason
forgot to
 
Ell
exam time
ahh
 
11:44 AM
@rightfold It reminds me about event-driven programming.
 
user1804599
what is that?
 
A happens, triggers B, B calls C, C calls A.
 
every letter denotes a crash
 
Found a useful way to understand safety when looking at threads and shared data. Threads are just circles, and shared data is data inside the mutual cycle.
 
user1804599
Don't share mutable state. :(
 
11:50 AM
^
at the very least share synchronized data structures like transactional queues
 
user1804599
What is a transactional queue?
 
user1804599
> A transactional queue is one that only contains transactional messages, which are messages sent within a transaction.
 
user1804599
cool
 
The word "transactional" reminds me of git.
 
?!
 
Ell
11:58 AM
@MarcoA. lol
 
For example, if you are receiving a buffer from a stream, that buffer is first taken by one thread, then, the thread does its cycle normally, the other thread is doing its cycle and reaches the same data, then it resumes its cycle.
You can then A tell thread B that something is happening so B can understand what to do.
Hold on.
 
user1804599
yay
 
user1804599
func wollah() func() <-chan func() chan<- func() <-chan func() chan<- func() <-chan func() int { return nil } compiles :D
 
"Using the Concorde TSP Solver"
 
12:06 PM
@R.MartinhoFernandes is that matlab?
or wolfram or what
 
It's Mathematica, I guess.
 
Wolfram Language isn't generally available right
 
I guess it's the same.
 
hmpfh
working here is getting harder every day
 
Hi I have been looking into a way I can bridge the gap between a C# and a native C++ app. One way is to write a C++/CLI wrapper. The problem I now have is that loading up my native C++ DLL and executing a function now crashes on KernalBase.dll

The question is - is there some magic compiler options I need to set to get this sort of thing working in my native CPP app?
 
12:12 PM
Find out why it crashes.
 
KerbalBase.dll
 
I'd go through C probably
 
> magic compiler options
lol
 
C++/CLI is a PITA IIRC
 
@BartekBanachewicz lolwut
 
Xeo
@TonyTheLion clang++ --do-not-crash
 
Anybody got any useful input?
 
Coliru is not playing cool with threads.
 
@R.MartinhoFernandes it's that, uh, P/Invoke thing?
 
Or just want to try make some socially awkward jokes
 
12:13 PM
@Xeo it prints use vb6.0
 
1 min ago, by R. Martinho Fernandes
Find out why it crashes.
^ useful input
 
Obviously I have thought of that
 
now go and debug yee
 
@Asheh Useful input? In the Lounge?
 
I did some things via COM and it wasn't that bad
that's the 3rd way I suppose
 
12:14 PM
@Asheh that's puffy talking, enough
 
Is there a "non lounge" version C++? where people help?
 
now, let's star some penis-containing sentences
 

C++

Friendly conversation, including C++ talk — NOT the "Lounge"!
 
@BartekBanachewicz Yeah, but it's no fun:(
 
Wow. Busy.
@BartekBanachewicz yeah I got totally stuck with COM
Got further with this, fallen at the last hurdle :(
 
12:15 PM
meh my student colleagues managed somehow
if they could do that a drunken wild boar could
 
@Asheh Go ask on Stack Overflow
 
@Asheh Well, when you attached your debugger, what borked?
 
We are talking about COM interop between Native C++ and Managed C# DLL right?
 
@Asheh What have you found out, then?
 
Here's the example about synchronized states.
 
12:16 PM
As soon as it tries to instantiate my managed type, it goes boom
 
@MarcoA. lol, fake Hitler.
 
Crashes on a null pointer in Kernal base.
Thats literally all I have to go on
 
@Asheh That's not an accurate description, unless actual explosions are involved.
 
@R.MartinhoFernandes yeah :D
 
12:16 PM
@Asheh I bet that's not true
 
@BartekBanachewicz without CLI?
CLR*
 
Besides debugging it?
No.
 
I've no idea why you're doing what you're doing
 
Heh
 
4 mins ago, by Bartek Banachewicz
I'd go through C probably
 
12:17 PM
You just make a mixed mode assembly, and reference it. Done.
 
Im bridging the CryEngine
 
Hmm, hold on a bit more.
 
@Asheh oh lol okay I've just lost all interest in that
 
with a Managed C# Application
Well sort of, writing a plugin system
 
12:18 PM
It doesn't let me share the code.
 
shouldn't you be going the opposite way
like, linking CLR to CryEngine
 
Already am
Oh god you crazy?
 
no, why?
 
You think CryEngine will run with CLR lol
 
Ask @EtiennedeMartel
@Asheh that's not what I suggested
 
12:19 PM
@R.MartinhoFernandes You have moles in your yard?
 
Seems like Ill have to speak to one of our engine gurus
 
That's from the Tycho crater.
 
Such little information to go on when debugging
 
Oh, yes, the code is displaying but it takes a bit long.
 
@R.MartinhoFernandes Mun?
 
12:20 PM
The Moon, yes.
 
@BartekBanachewicz - one question. Does the native application have to be compiled with CLR to invoke functions inside a library which is generated with Managed C++?
 
@Asheh I know a friend who worked on the CryEngine for quite some time
 
@R.MartinhoFernandes There is some recent exploration?
 
AFAIK he never played a videogame again after that job
4
 
@Asheh ueeeeech
 
12:21 PM
not sure what he saw :|
 
We have lots of guys here who are experts but I dont think anybody would know about CLR/CLI etc etc
Hence my lack of knowledge of how internally this stuff functions
 
amazing experts then
 
@Asheh Why don't you read up on it?
 
Experts in non managed languages
 
it's 2 pm already time for a job rant
 
12:22 PM
Experts in foreign languages
 
I mean there's sure someone that's written about it somewhere on the Internet
 
@R.MartinhoFernandes Ah - I have it. LRiO took it.
 
Seems to me like it should work fine
 
12:22 PM
From 59km.
 
Ill bet weve overloaded the default allocators
Or somthing
 
user1804599
"Experts" smells like Dunning–Kruger.
 
@Asheh lol, 'allocators' and 'DLL boundaries' in the same posts:)
 
Why this does not sync?
 
user1804599
@Asheh -1 new and delete
 
12:24 PM
> or something
 
calculating indoor building material needed ... so much fun
 
user1804599
@VictorLopez message assignment better not throw
 
user1804599
use lock guard
 
primary engineering maths
 
@VictorLopez It does sync.
 
user1804599
12:26 PM
also don't use locks for that.
 
I hate those blog posts where 0.2% of the page length is the article and the rest are comments which aren't/can't be collapsed
 
user1804599
use tbb::concurrent_bounded_queue<message> with a zero capacity if you want them to process all messages and execute alternatingly
 
@BartekBanachewicz I believe it syncs, but the first thread executes first, then, after 400 or 500 cycles it starts executing the second thread, is that related to the initialization of the values from inside std::thread or just priority?
 
12:33 PM
it's undefined
that's uh, how threads work
 
user1804599
Oh, apparently the capacity must be at least 1 for it to work.
 
user1804599
That's silly.
 
user1804599
@VictorLopez it's not deterministic.
 
user1804599
threads can be paused and resumed at any time
 
So uninitialized_copy destroys in first-to-last order if an exception is thrown.
Not required, but not forbidden, and it's actually what implementations do.
That's messed up.
Both libc++ and MSVC do so :(
 
12:35 PM
8
Q: Can I learn to like wine?

MaxDWine, especially combined with the right food, seems to be a great deal among gourmets. I'd love to enjoy those highly-praised combinations too, but unfortunately, although I'm 22 years old by now, I still don't like the taste of wine at all. Can I learn to like wine? Are there any methods or ti...

 
Is there a DR?
 
-> get drunk every day
 
@R.MartinhoFernandes what body is this (guessing Mars)
 
@rightfold Does tbb offer thread safety in all data structures?
 
user1804599
@sehe Mars is red, not grey.
 
user1804599
12:36 PM
@VictorLopez I don't know.
 
user1804599
Read the documentation of the data structure in question.
 
@R.MartinhoFernandes ah
 
user1804599
The program I linked uses the queue in a thread-safe fashion.
 
@rightfold it's hard to photograph "real" colours in space
@R.MartinhoFernandes for most things, this would be principle of least surprise, I guess (unless queues)
 
@sehe Not it wouldn't! Everywhere in the language you have reverse order of destruction.
 
12:38 PM
@MarcoA. It's called the "Cry" engine for a reason
 
This is the most surprise.
 
@R.MartinhoFernandes Well. Does std::vector::~vector destruct in reverse order?
 
Oh.
Ok.
 
Pretty much everything does.
 
12:39 PM
 
@sehe lol right, cry for the developers.. engine for everyone else
 
user1804599
@VictorLopez Cleaned-up version, by the way: coliru.stacked-crooked.com/a/dff6c96a69cb0d64
 
user1804599
No idea why you seem to favour global loop counters and while loops.
 
That's a semaphore.
 
you know
being serious for a while
I still can't believe that the quick job changes make such a shitty impression
I still can't get over it
 
user1804599
12:44 PM
 
it's annoying
 
I'm trying to understand the inner logic from Game Maker. Having the global loop counter would allow thread A to know what is going on with thread B and which step it is executing.
 
> Game maker
> logic
 
> internal compiler error: Segmentation fault
I can make it go away if I using S = slice::from_to<I+1, J-1>; S {}; at function-scope.
 
@BartekBanachewicz Well, would you employ someone that shows difficulty sticking around, for whatever reason that is?
 
12:47 PM
@R.MartinhoFernandes I got kinda convinced by "some people can do more impact in a few months than others in a few years"
 
k it has to do with a function template that’s overloaded with a non-type parameter for the one overload and a type parameter with the other
 
@BartekBanachewicz Still, imagine having those people around for years instead of months!
 
@R.MartinhoFernandes I'll turn the question around; is just sticking around what you want?
 
user1804599
Or rather: play.golang.org/p/cLWrUc9UB7 so that it'll actually wait for the other thread to exit.
 
12:48 PM
@BartekBanachewicz yeah, drunk driver can crash into another car and kill a bunch in minutes
 
I mean, again, what if I worked somewhere for 3 years as a junior/intern?
Would my CV really be better?
 
IIRC it’s always ICE-on-invalid because GCC borks up at diagnostic time only
 
@BartekBanachewicz That would show some commitment to the company
 
That's a different question.
Stability and commitment are pluses.
 
of course what it has to say on the invalid code is "template argument deduction/substitution failed:"
 
12:49 PM
Its expensive to hire someone, and if they think that after a year they'll lose you again, its just not worth their investment
 
@R.MartinhoFernandes While I'd expect it to be the case, I can't find where the Standard specifies this
 
@TonyTheLion The thing I was commited mostly to was to become a better developer.
 
They don't want to spend all their time looking for yet another few-months-rockstar. It's not a good strategy.
@AndyProwl Shit, it doesn't? :/
 
@R.MartinhoFernandes I'm not sure. Am I being silly and missing something here?
 
12:50 PM
I mean seriously people my age either just leave uni having like 2 months of experience or stay for MSc
 
@BartekBanachewicz Sure, but you need also commit to the company, not just for your own improvement.
 
I'm a bit rusty on Standardese but I haven't found related wording either
 
user1804599
@AndyProwl Yes, you are being silly.
 
@rightfold Thought so. What am I missing?
 
user1804599
12:52 PM
You are including <list> without using anything from it.
 
user1804599
:P
 
lol
 
Beer was a bad idea
 
Xeo
Beer is always a bad idea
 
12:53 PM
@CatPlusPlus Only discovering that now?
gratz
 
@R.MartinhoFernandes Probably unspecified, but that's not what I'd expect either
 
user1804599
Beer is disgusting.
 
Don't type so loud
 
Beer is awesome
 
Beer is great
 
12:53 PM
Beer is fine in moderation
 
I always moderate my beer
 
I haven't eaten enough yesterday
 
user1804599
9
Q: STL containers element destruction order

Alex BDoes ISO C++ standard mandate any sort of destruction order of objects inside STL containers? Are std::list/std::vector/std::map elements destroyed starting from the beginning or the end of the container? Can I rely on std::map storing its elements in std::pairs internally so a key in a pair is...

 
And then started off with a 9% beer :v
 
12:54 PM
@AndyProwl MSVC probably does it from the middle.
 
@CatPlusPlus wtf was that
 
@rightfold What is that destruction order?
 
@R.MartinhoFernandes lol
 
fuck that’s a hard repro
I’ll feed it to creduce
 
@BartekBanachewicz A beer
 
12:55 PM
@BartekBanachewicz 9% is not too crazy.
 
what beer I mean
@R.MartinhoFernandes It's rare
 
user1804599
@VictorLopez what destruction order?
 
9% is not extreme but quite high for a beer
 
Komes
<10% is not very uncommon
 
@R.MartinhoFernandes reproduction of C-array behavior, destroying in reverse order?
 
12:56 PM
For me it gets weird beyond 6%
 
For me it gets weird after 2 beers
lol
 
lol yeah that too
 
@ArneMertz Can you give me a reference for the built-in arrays destruction?
 
There's a brewery near where we lived for the last year, and they have ones that are like ~12%
 
@rightfold from the STL containers, imagine that you're programming an ordered cinema and you call the vector.clear() method, would that call the destructors in unspecified order?
 
user1804599
12:59 PM
Probably.
 
user1804599
I don't know.
 
user1804599
If you depend on it then your code needs to be fixed. Even if it were a well-defined order. Use a loop and pop-back/pop-front explicitly. Or <algorithm>.
 
@CatPlusPlus ah ok
I got drunk on those dark ones once
they are the worst
 

« first day (1704 days earlier)      last day (3259 days later) »