« first day (3639 days earlier)      last day (1300 days later) » 

12:02 AM
@salbeira Associative containers are only appropriate for math value types. Functions (in all PL) are not math values, you can't determine their values, only call them. The halting theorem means you can never compare them.
 
12:14 AM
Well ... in the end every value is comparable by its logical adress
 
12:33 AM
@curiousguy uh, can't say about C++ but a function handle is a reference to a place in memory so it would be possible to at least know if the reference is the same or not. Tought as StackedCrooked learned, operator== isn't implemented so it's not possible to check for equality.
I don't believe the question has ever been to check if two pointer to a function would run the same code.
But the halting theorem is hardly relevant as if you we don't care much about the result of the code... One way would be to analyze the compiled paths and we could assume the functions are the same if they have the same code within the same boundaries.
 
1:32 AM
@LoïcFaure-Lacroix A function pointer is well... a pointer. Not an object pointer but it's hardly relevant here. You can obviously compare function pointers for equality (or order them) like data pointers, in C or C++. (Unlike SML references which can be compared for equality but not ordered because of the way they are implemented.)
The issue here is that 1) a function object is not a simple pointer 2) two different pointer values can point to function doing exactly the same thing.
In fact C and C++ do guarantee that pointer to different functions, that is, different entities each with its own declaration, entities that could legally do different things (unlike say C++ inline functions with the same name and signature), don't have equal pointer values.
That is two exactly identical function bodies can't be merged when their addresses are taken, because they would then compare equal. But when their addresses are not taken, they can be merged.
The reason "std::function<void()> callbacks" will be more complex, take more space and a bit more time than simple void(*)() pointer to function types is that they can be bound to so many different things.
See the std::function constructors and assignements specs to see the many legal way to set the value of such "callback".
It makes comparison of "callbacks" a much more difficult problem.
IMO you should not need to compare callbacks at all!
 
 
5 hours later…
6:23 AM
If you wanted to store *this in a variable, how would you name it?
 
6:44 AM
it
:p ... but this is more of a personal taste question.
 
the javascript people use "that"
python usually uses "self"
 
Self is pretty descriptive.
Trump got COVID-19, lol.
 
all I have to say to that is "fuck him, fuck COVID and most of all fuck the abomination that US-politics has become"
their cultural hegemony means they're fucking up politics all over the place with their circus
 
7:01 AM
Given his age, Trump is probably going to suffer a little without having serious consequences. Although I could not but noticing how he has caught the virus at the most critical time period - a month before the election. It could be a coincident, but I am a bit suspicious.
 
7:22 AM
It would be hilarious if Trump has given Biden COVID-19 during an election debate.
 
 
5 hours later…
user7659542
12:17 PM
Assuming you have a very large and complex application which sends all kinds of different tcp messages with different payloads in different situations.
 
user7659542
Would it make sense to store the different payloads in an sqlite database?
 
user7659542
I don't know whether you d benefit from doing that
 
I don't know what you're doing well enough to comment
 
user7659542
is there any case at all where this would make sense?
 
user7659542
situation: the central unit (your app) interacts with all sorts of nodes/slaves/... on a network. You want one of the nodes to start a computation so you have to send a tcp message containing "START_COMPUTATION_A". But before doing that you need to know the status of node B, because depening on whether it is performing certain actions node A is not allowed to start its computation. So you d have to send to node B firs "STATUS_REQUEST_B"
 
user7659542
12:22 PM
which then will eg reply "DOING_NOTHING_B". And afterwards you could send "START_COMPUTATION_A"
 
12:35 PM
Well in a single threaded application where I don't need persistance SQLite is overkill
for a multi-threaded application I'd need to ensure that SQLite is compiled for multithreaded use
and even then persistence would need to be the core question
 
sqlite seems weird for completely non relational and very temporary data
 
it's fine for non-relational data. I've seen it used quite a bit as a structured storage format
but it doesn't make sense when persistence is not needed
 
12:56 PM
Guys, I solved the most important C++ problem!
#define THIS (*this)
3
 
nwp
1:37 PM
Omg I'm such a hacker.
2
I managed to copy a Word document without changing the original file's creation date.
 
2:19 PM
h4x0r
 
2:34 PM
can anyone please point me to the chatroom for stl related questions
 
@nwp thanks
 
 
4 hours later…
6:07 PM
 
6:34 PM
If they are cool questions, you can also ask them here :-)
Yo, yo, yo whats everybody doing?
 
Listening to music while reading webcomics
 
@nwp I'd be more impressed if you changed the creation date because that involves parsing docx
 
I intend to cook myself some instant noodles in ~30 minutes
 
Me too, kinda weird we're doing the same thing (including the instant noodles)
 
Yeah but mine are better ;)
 
6:38 PM
Is it top ramen?
I'm adding a tomato
 
Also spice things up I'm mixing "beef" with "roast beef"
fuck you with your fancy food
 
Haha, it's still fast enough to make
 
I also learned about this really cool python command: ajcr.net/Basic-guide-to-einsum
 
It's a base of chicken-flavoured instant noodles with an egg, white onion (bulbs slice and slightly cooked by the biling water, the stem added later on top), sesame seeds, black pepper, Cayenne pepper, soy sauce, linseed oil and oregano
Looks like my brain isn't currently in the right state to appreciate numpy functions
 
6:45 PM
About to overdose on ennui? Its like 9 pm in the Bretagne.
 
Existential ennui is a mood yeah
I'm reading an old webcomic from 2004
I think I stopped reading it years ago when there were seldom any updates anymore, but it became active again, and I missed a few years of great activity
 
Ever read Mac Hall?
 
Never even heard of it
 
Whats the one where some medieval fantasy villain find a magical girl who ends up being some kind of monster?
 
wat
 
6:51 PM
Its a really good one :-)
Starting to get offers, at around 150k remote + stock. Very hard to choose.
All green-field development.
One of them is pretty chill and wants C++ research.
 
150k remote? That's 4~5 times what I earn
 
You should consider remotely moving to the USA
 
I could buy my flat cash in just of few years instead of 20 lol
With US working hours? No thanks
 
Well one of them tries to "be French"
So they will do 35 hours...
 
Haha, nice
 
6:55 PM
Curiously the actually French company I applied to expected more than 40 hours
and rejected me at the fucking last minute
 
x)
 
So, should I do CAD at 160k as a contractor or SDK for a hardware accelerator at 150k + ~30ish vesting shared?
hardware accelerator is more challenging because I'd have to figure out how to distribute neural networks across a new architecture. CAD company wants prototype C++ research, although they aren't sure how to publish that research (also comes with free cppcon tickets, or something like that).
 
Flip a coin
 
Maybe ask Jerry? Isn't he a random number generator or something?
 
Just when I was about to leave to make mine :')
Jerry can't be tagged it seems
 
7:03 PM
Hey, I thought you already made it! Thats cheating.
 
No, I said I would leave to make them in 30 minutes, 30 minutes from now.
I'll time how long it takes
later
 
Cheating is showing the picture before you made it.
But also RIP jerry
 
user7659542
7:23 PM
@Mgetz I see, thx. Well... you could say persistence is in some sense needed... Because the payload of a message doesn't change between boots, it persists.
 
user7659542
@nwp you mad lad.
 
user7659542
How did you do that?
 
user7659542
@Morwenn christ. This looks delicious.
 
user7659542
@Mikhail he is French.
 
user7659542
@Mikhail company name?
 
7:28 PM
Axa S.A. (styled as AXA) is a French multinational insurance firm headquartered in the 8th arrondissement of Paris that engages in global insurance, investment management, and other financial services. The Axa Group operates primarily in Western Europe, North America, the India Pacific region, and the Middle East, with a presence also in Africa. Axa is a conglomerate of independently run businesses, operated according to the laws and regulations of many different countries. The company is a component of the Euro Stoxx 50 stock market index. == History == The company was founded in 1816 as Mutuelle...
 
user7659542
@Mikhail where on earth do you manage to get 10c ramen? I at least pay 65c
 
user7659542
@Mikhail haha, lol. Didn t see that once coming
 
user7659542
I never though that company would do some "high end" technology stuff
 
@traducerad Box from Aldi
 
user7659542
I ve always seen them as an old outdated bank somehow
 
user7659542
7:29 PM
@Mikhail aldi must be cheaper in the US I guess
 
user7659542
didn t even know Aldi was a thing in the US
 
user7659542
I always thought Wallmart was the American version of Aldi
 
Maybe carrefour is a frencher walmart
walmart is big, possibly the biggest by square feet in the store
 
user7659542
One day I was in Canada for my job. I was in Manittoba. I entered a Wallmart there. I felt like I was in a movie
 
user7659542
First time I ever entered a Walmart. Finally, after all those memes I read about it online
 
7:33 PM
@traducerad It is
 
user7659542
@Morwenn fak you
 
@traducerad You can do it yourself, it's not difficult :D
I timed it this time and it actually took 20 minutes
More than I thought
 
user7659542
too many exotic ingredients: sesame seeds, cayenne pepper, linseed oil, oregano
 
user7659542
I don t have time to go get such things at the asian store
 
I find everything at the supermarket
The Asian store is the place I go when I want to make mochis or Japanese curry
 
7:38 PM
my food made me sick and sluggish
 
@traducerad I might be French but that's all Asian food
 
user7659542
Urgh Mochi...
 
I hardly make proper French food except when I drench everything in cheese
 
user7659542
I dont know how its made but when I buy them and taste them I feel like I am eating a shitton of weird chemicals
 
user7659542
maybe because I am not used to that texture
 
7:40 PM
The texture is pretty unique
 
user7659542
It s not bad. But this can t be healthy
 
But it's only sugary red bean paste, some special rice flour, sugar and water
 
user7659542
so it s the rice that creates that texture?
 
Yeah
 
user7659542
My biggest issue right now
 
7:41 PM
If you use normal rice flour it doesn't work. Also consider that you mix the flour, sugar and water, and cook it until it gets this texture, but that's not fully baked
The rice or the texture?
 
user7659542
is making a sandwich for work
 
user7659542
that s +/- what my "sandwiches" look like:
 
user7659542
 
user7659542
I just put some butter on there and a thin slice of meat and that s it
 
Hmm, I usually make code for work
 
user7659542
7:43 PM
I do that because I dont have time to prepare anything better. And even if I had, I wouldn t know how I could really improve my "sandwiches"
 
user7659542
they are soo fcking depressing
 
user7659542
@Mikhail badum tsss
 
user7659542
\r\dadjokes leaking
 
I usually don't have lunch at work
 
user7659542
I do, but always alone behind my desk while working
 
7:45 PM
Interesting, now days I have lunch but no work
 
user7659542
@Mikhail I want to laugh at your joke, but I shouldn t
 
Laugh at me instead :-)
 
@traducerad use proper-looking bread :')
 
user7659542
because it s a semi joke
 
user7659542
@Morwenn I hope you re not referring to "pain de mie"
 
user7659542
7:46 PM
This is the type of bread that should be illegal to eat
 
lol no
 
user7659542
I don't get why people even eat this shit
 
I once saw a semitruck moving some turf. It was a grass roots movement!
Jerry would have liked that one :-(
 
3/5 stars, needs more poverty
 
7:48 PM
I like "pain de mie" either when it's grilled or when it's extra tender, but then it makes poor sandwich material
@Mikhail There's like three ingredients
 
That bread would cost $5 dollars in the US and you'd need to hit up the swankies grocery store to obtain it.
 
xD
It's a regular sandwich of an industrial bakery chain here
 
Yeah, it resembles Panera Bread which is a higher end form of Subway. Estimate cost is $9, if you can find it.
 
aw :-(
 
7:51 PM
Sometimes the chicken was left marinating in oil & herbes de Provence, and it's fucking great
That last pic is apparently from London
 
Does anybody remember if bound GPU textures carry a penalty for row major vs column major access order? Or is lookup time the same for any part of the texture.
 
@Mikhail Please ask questions in the C++ Questions & Answers room, next time is a warning, the following one is a ban
/s
 
@Morwenn fak you
Its not C++
 
Banh mi, I dare you
Implying you're off-topic on both the lounge and C++ fronts?
Great offense
 
8:06 PM
 
drool
 
Lol, I thought we'd agreed to only talk about non-C++ stuff here :-)
like GPU architecture
 
It's a lounge and you bring technical stuff to the table :p
I'm joking though, plus I'm drowning your questions in a constant flow of messages and I don't even know whether someone can actually answer you
 
I doubt it, we don't have any real graphics people anymore
Hell, I'm not sure we have any people any more
only troglodytes
 
8:11 PM
Yeah that I know. Real question was when using the magical blessed texture memory.
 
I tried :')
 
thank you
 
I don't know anything to GPU
 
please have some sandwitch
Sexy memory access profile, showing how memory is actually bound in the texture. Or maybe I'm wrong. Nobody really knows at my pay grade :-)
 
damn
 
8:18 PM
don't show me GPU stuff, I think I'll get PTSD from trying to get reproducable almost pixel perfect opengl renders between macos,linux and windows
even with osmesa software rendering I'm struggling
 
I'm done eating
Now I want a glass of lambig
 
@PeterT Wow, I didn't know anybody even tried :-)
Time to bind a 3D texture :-)
 

« first day (3639 days earlier)      last day (1300 days later) »