« first day (1439 days earlier)      last day (3735 days later) » 

00:00
> I'm a dentist with a strong interest in programming. My favourite language is Delphi
It has a yellow arrow pointing at that though
You know, my code doesn't have a copy constructor or an assignment operator. Can this possibly be causing any problems?
All I'm doing is declaring an instance of my class. Not copying or anything.
Not enough information.
@Nooble Always. But it's not likely the cause here. The cause is: you close the console on a running application.
Why do you close the console?
2
A: What is the easiest way to handle window close event in WinAPI for the console application?

traalWrite a console handler routine that detects CTRL_CLOSE_EVENT (and CTRL_C_EVENT, if desired), and use SetConsoleCtrlHandler to add the handler routine to your process.

I know that. Just haven't had this happened before.
There. I can do all that without debugging.
00:02
guys, let's say I have an array of objects that all we know about is that they are movable and move constructible, what would be the proper way to move this array of objects into temporary storage and back?
Also, is there something like a std::cout << blabla in a destructor of a global or static?
Yes
Yes there is.
@Nooble There's your smoking gun. Likely. Try moving it inside main. Not that it really matters a lot. See the linked answer ^
I just put something like std::cout << "Destructor Called" << std::endl;
I wouldn't do that in a static instance
00:04
Gonna take a look at it.
Do I have to use std::uninitialized_copy with std::move_iterator for the first move and then std::copy when going back?
See. Now I reasoned about a failure mode without a debugger. And I even searched SO without a debugger. I should go to bed.
You guys. Are awesome. Problem solved.
@nightcracker why not move both ways?
@sehe Of course std::move_iterator for both
00:05
Don't know why I can't cout in a destructor though
you can
Sounds like the logical thing to do. Though you had me fuzzed with "temporary storage"
@sehe the main question is if I have to use unitialized_ the first time and then can use regular moves or if I can get some uniform method
because in my use case I have to constantly swap between two storages
@Nooble You can. It's just hard for that destructor to really write to the console since you closed it
and having to write a special case using unitialized_ violates DRY
00:06
Oh fuck I get it now.
@nightcracker can you not swap a pointer instead :) Make it cheap, perhaps even atomic
@sehe Correct, I can not
Dare I ask, why?
because adding indirection would murder performance
this is for a stable_sort implementation that moves back and forth between two buffers
00:08
If it's a volume big enough to make copy vs. move a wortwhile trade-off, I'd say you need to profile that.
@sehe copy?
@sehe copy is not allowed
@nightcracker Ah, not always complete buffers then.
stable_sort is only allowed to swap, move and move construct
I feel so good.
@nightcracker Oh well, not that, the uninitalized_ hocus-pocus then; I mean, you're clearly micro-optimizing. I'm not saying you shouldn't, but I think you're dismissing the power of pointer-swap. Just ... profile that too (assuming it even applies to your scenario)
00:10
I feel like talking about bacon
@Nooble Can I touch you, then?
@sehe hehe
@sehe I am mentally feeling satisfied.
@sehe I'll give pointer swap a go at some point
I'm also mental, feel me?
but just so I understand correctly
00:11
This conversation has certainly taken an interesting turn.
always using unitialized or always using regular will fuck up?
(assuming you can't default construct the values in the temporary buffer)
@nightcracker (Let me stress, I think the pointer-swap rules performance wise iff you are swapping entire buffers, not if you are shifting elements/rotating etc. So 1 swap per container)
@sehe Mentally... adept?
@sehe oh you're misunderstanding
@sehe I'm moving elements, not entire buffers
@sehe or rather, I'm moving one element at the time, partitioning, but after one step I have moved the entire buffer, just not in a linear straight up copy
Oh well, disregard. I'd choose simple: always-move and forget about uninitialized. UNtil your profiler tells you it's a bottleneck
00:14
@sehe is moving into unitialized memory legal then?
@sehe that's my entire question
@nightcracker It cannot be legal for non-PODs
@sehe so I can't do that
I dunno. What are you sorting...
@sehe whatever people sort with standard sorting routines?
@sehe I'm writing a std::(stable)_sort implementation
@RudyVelthuis the thing that's broken is likely the question. Or rather, the part of the code not shown. — sehe 5 secs ago
Quite the christmas tree i.imgur.com/b8eMXgZ.png
00:18
@sehe christmas tree?
It lights up and has many green stubs
I guess :P
Also. PLINK.
C++ needs a initialize_as_moved_out_state
00:19
I have no idea what is going on.
except it doesn't but :(
"Enforce uniqueness of e-mail addresses." apparently means "Let Django fail with a 500 because of SQL constraints"
which basically means "No check at all"
Ell
Ell
I'm hungry
Not sure what for
Want bacon?
@Ell my love
00:29
@sehe Bacon, right?
Come on man. You know it's bacon.
I used to be a vegetarian and I can tell you bacon is the last thing I missed.
Ell
Ell
No bacon please!
Do you mean: No, bacon please!
@OMGtechy elaborate please. Why were you vegetarian hmm?
related
@Nooble it was more a description than anything else; I just didn't want to eat meat.
Then, I did want to, so I did eat it.
I really didn't miss bacon at all.
00:32
What now?
Did you just say, what I think you said?
You didn't miss bacon?
jk
I like salami more than bacon.
And sweet ham
Saying that, I had bacon today. With sausage and fried egg and beans...
Sweet sweet ham...
Bacon, strawberries, pancakes and maple syrup is a strange combination that works so well it hurts.
Yep. IHop is the way to go.
My friends think I'm weird because all I drink is water.
@OMGtechy Me too, just now, mod the egg.
00:35
It's not because I'm a health freak, It's just because anything else makes me crave water more.
Ell
Ell
Eating meat is murder
Eating anything is murder
Unless 100% lab made protein
Concentrated
Ell
Ell
But as a consequentialist, murder is okay some times
@Ell Tasty tasty murder
Ell
Ell
Plants isn't murder
00:36
Juicy murder
How not?
Ell
Ell
Rocks isn't murder
Plants have feelings too.
Ell
Ell
Socks isn't murder
You can't kill a rock, just saying.
Those are all inanimate.
Ell
Ell
00:36
Also, how about milk?
Or eggs
@Ell Can we come to some arrangement re. the parking enforcement officer in Uttoxeter? I'm willing to go to £500.
Ell
Ell
@OMGtechy you can, believe me
I went off eggs for a while when I cracked one open and found a mangled chick inside of it.
Plants are biologically alive. They are producers and require energy to live.
@OMGtechy wow
Poor guy.
in Game Development on The Stack Exchange Network Chat, 2 mins ago, by Ali.S
does that mean when you are looking at a dog from behind, you are actually looking at god?
Best logic ever.
00:39
@Nooble It's a bit late to complain about the universe now. You should have talked to the intelligent designer at the start of the project, (though I've heard he likes a good fillet).
Fillet of..?
See comments.
Good morning.
@Mark what the fuck is that
Is it shopped?
@MarkGarcia hahaha
Ell
Ell
00:41
@martin what has he done now? :P
Did you get a ticket?
@Nooble All sorts of illusions can be shown by dog butts. More if you smell them.
@Ell Not recently. I'm living on inertial hate.
Good point.
I can see a dog butt from here. Doesn't look that intelligent to me.
Ell
Ell
@martin that's a lot of inertia to bring him up out of the blue!
00:45
I can't take a reddit link at this time of night:(
Fuck, I need to get some sleep. The Bombardier at the club was bad enough but there's Directors on next. I need to store up some undamaged neurons before it comes on.
Still, a good day. A first for me - I went for a shower at the start of sudden-death penalty shootout and was washed, dried and dressed before it was over.
Ell
Ell
01:13
@martin me too. Night!
01:42
I wanna be just like the cool kids, all the cool kids they seem to fit in.
02:04
Heresy: I created a XML subset parser in Spirit to answer a homework(?) question about evaluating expressions.
Oh ahahahahahaha ROFL: @ThePhD I have found your soulmate (SCNR)
@LightnessRacesinOrbit: C and C++ define lots of stuff that rapidly go out the window as soon as you decide to run real code through a real compiler---even popular compilers for popular platforms. — tmyklebu 24 mins ago
I used what's now called spirit classic a while back to make an XML parser...
...but I basically did nothing but copy/paste the rules straight from the spec and convert them
user3010322
@sehe Hmph. :c
@HWalters that's a lot of work, see the footnote disclaimer in that answer
Actually, it wasn't much work at all
I too have written an XML parser (better put, had to maintain one that had been written). I know full well that XML is not simple. It's a lie
@HWalters Depends on the subset.
02:21
True, does depend on the subset... but it was kind of strange looking at what he was doing with it there
Yay, the bartender gave me a jacket from the lost and found. It's not cold anymore.
Also, I feel like a bum, with people giving me clothes like I can't afford them.
Hi.
user3010322
Haha.
user3010322
Homeless Junkyard Robot.
@R.MartinhoFernandes :)
@HWalters I sometimes like to throw wildly over-the-top answers at questions like that. Just for fun and exercise
02:53
Tomalak, Frankfurt, Germany
154k 24 244 370
I thought it was really LRiO.
03:24
I like to say how people gave me stuff, what I did not say is that I gave others a lot of stuff as well. A lot of the times people gave me nice stuff as a repayment of kindness
Also, I figured if I kept on saying "I am going to die" & as I get older, occasionally change it to "I am going to die soon". Eventually I would get it right and people would think I predicted my own death
@sehe We may have given the wrong tool to the OP. I didn’t give it much thought at the time, since the behaviour of let/lambda is entirely consistent with the rest of Proto/Phoenix. For someone unfamiliar with that behaviour, there are yet other ways to shoot themselves in the foot though: what if they go lambda(_a = val(_1))[index]? Hence forming a reference node to whatever index is, with the lifetime considerations that come with it (that the OP seem unwilling to cope with).
IOW, it may be that the OP wants a capture(_a = foo, _b = bar)[moar_proto] that a) val-ifies the captures, and b) deep-copies the whole tree.
@R.MartinhoFernandes My wife seems convinced that on my own I dress like a homeless person, and I seem to fit in pretty reasonably all the places I've worked, so I'd guess it's common to many (most?) programmers.
03:40
…I do have a lot of holey clothes…
@chmod711telkitty I heard about a weatherman who, when he retired, claimed he'd correctly predicted every storm to hit the area for three decades. Seemed impressive until you found that he'd predicted a storm essentially every day for 30 years.
@sehe It’s been too long since I’ve delved into Proto, so I’m not too sure about how to as_expr my way out of this. What’s your stance?
@LucDanton Programmers tend to think in functional terms--clothes get replaced when they're no longer warm enough or have such huge holes that wearing them in public might subject you to arrest.
Every time I call the company to which I have paid but not received any goods for building material, they would reply with "the person in charge is busy & will get back to you". After 20-30 times, I could not but think they are lying - it's obvious because I have been on their site before, they are busy, it is true, but the probability that they are busy ALL the times while in the office is zero. When confronted in a no threatening way, they hang up on me ...
To be fair they do return my call, just doesn't pick up when I call ...
user1646075
@chmod711telkitty one of my bros-in-laws deals building materials to tradies, and they go through a shit-load of product. my guess is that your rep. is flat out concentrating on the honey pot and has little time for the retail stuff
user1646075
03:52
weren't you saying you were to wait 5-6 weeks? why did you think that, and how long is it? (the time so far)
user1646075
and good morning afternoon, lounge lizards
@aclarke I knew that of course. When you hang around with finance people, they choose no disclosure and to mislead instead of straight out lie like some people involved in the building industry ...
user1646075
goodo - so .....
user1646075
what's the place anyway? a big-chain or a more specialist place?
don't laugh ...
look at their granny flat section
user1646075
04:04
they are so busy their page isn't loading
also I spent twice the amount of price to get a customized one built
user1646075
a pre-fab granny flat? shit eh
the truth is that, I think there might be a good chance they make me pay twice the price then steal my design
lol, not pre-fab, you get all the material but you have to assemble it
user1646075
that's a problem the whole industry is sensitive about. Have you asked them explicitly?
council said yeah so ...
user1646075
04:06
flat-pack then
user1646075
council said it's likely, you mean?
user1646075
can only shrug then I suppose
DA approved
Only at 05:00 wlll you find me looking at granny flat brochures for a company in Australia.
user1646075
heh
user1646075
04:09
would most of their business be retail?
dunno
Their main business is sheds ... but they have to sell 5-10 sheds to get the same amount of money as a customerized granny flat
user1646075
i have little faith in tradies and the building industry. full of cowboys, strugglers and shady characters.
user1646075
then again, sheds would shift fast and easy, with big production runs I'd guess
I'd buy one.
user1646075
04:11
do they come with a pre-installed granny?
I hope not.
user1646075
lolol
user1646075
looks like my neighbour
usually you need to spend 950k-150k to get a granny flat built by a builder
Looks like everyone's neighbor.
user1646075
04:13
true
They look like they'd make good holiday homes
but I am only spending $26k-$27k on a kit, another $20k on everything inside. Then about $20k-$30k on labour, $10k on council + other government fees
user1646075
@aclarke Why would you do that to poor, innocent people like us?
user1646075
nanna shazza
04:21
people might be poor, but they are never innocent ...
@chmod711telkitty Of course I'm innocent--and sweet and virgin too (never mind how many children I may have).
user1646075
@JerryCoffin not like they're yours. I still don't know who fathered mine. I renounce all responsibility...
found a bunch of baby rats in the garage ~_~
user1646075
awwwwww. How you going to deal with them?
& gave them to a local vet
user1646075
04:29
yeah? what did they say they'll do with them?
didn't ask ... too faint hearted
generally, my policy is no killing
user1646075
i had to deal with scenes like that around horse stables. Won't tell you the recommended procedure.
@aclarke I'm afraid at least one of mine is enough like me that if tried to disclaim any responsibility it would just make me a laughingstock.
user1646075
i wonder if they're domesticatable at that age
user1646075
^^ the baby rats i mean
user1646075
04:32
@JerryCoffin hah - unfortunately mine are insane enough that everyone knows
@aclarke Probably to about the same extent humans of that age are (which is to say, not really).
user1646075
since horse stables are usually full of young girls amongst all the other hippophiliacs, white lies had to be told.
user1646075
actually, most of the adults preferred to avoid the truth too
Well, chicken feed is in the garage, rat bit a hole through the bag and had free meals ...
user1646075
@JerryCoffin do you tihnk they ever become civilised? I still hold out a slender sliver of hope.
user1646075
04:36
@chmod711telkitty oh yeahhh. The feed bins had to be constantly repaired
@aclarke Ghandi was once asked what he thought of western civilization. He replied that it would be a good idea. Leave out "western" and I'd agree.
user1646075
world civilisation would be a good idea when you think about it. Each generation somehow manages to default to a kind of warrior-like facism, left to it's own devices.
user1646075
I used to view Europe with it's new-found freedom from war as a shining example of the future, but now I've been in the lounge for a few weeks, I have no idea how it was achieved.
user1646075
perhaps being a word-warrior means nobody actually picks up a sword...
Ok, done for a overdue paper work for the app biz, off to a post box
user1646075
04:44
@chmod711telkitty enjoy them while they last. How long before AusPost is a relic of the past?
04:58
For the Berliners, a shot of home:
05:24
In the 60s, Marvin Minsky assigned a couple of undergrads to spend the summer programming a computer to use a camera to identify objects in a scene. He figured they'd have the problem solved by the end of the summer. Half a century later, we're still working on it.
10
05:40
the new tenant is almost a week behind in rent
user1646075
@chmod711telkitty send in the lads...
also ... big booty is in fashion again, thanks to j.lo & nicki minaj
user1646075
@chmod711telkitty was it ever out of fashion?
user1646075
I already miss low-rider jeans.
user1646075
Bum-crack - the equal-opportunity cleavage!
user1646075
05:43
you'll be seeing a lot of tradie-crack soon I expect
big booty tradie, eww
user1646075
@chmod711telkitty specify they only send in adonii
what's worse than a hairy ass is ... a big hairy ass ....
@chmod711telkitty Yay! Remind him gently with a gas torch and pliers?
user1646075
@VáclavZeman that would solve the hairy aspect... scorched a bit of hand hair today making bacon and eggs
05:47
Heh.
waiting for the current construction thing to finish, then it would be much easier to get new tenants. I did spend a small fortune on that new bathroom though
omg why did I search for "big hairy ass" on google image?? now I am traumatized!
user1646075
@chmod711telkitty you only have yourself to blame
@chmod711telkitty lol, why, indeed. :D
06:29
Hello
@chmod711telkitty Probably because you want some!?
No, I don't want any, my bald butt is just fine
user1646075
@chmod711telkitty you'll probably not want to search for 'twinks and bears' then. I seriously recommend against it.
@user1234 What a beautiful hash collision friendly name you've selected!
user1646075
morning/afternoon/good evening, gorilla man
06:45
@LucDanton my stance is, I'll take these libraries as is. Tinkering with or extending them is a bit out of my comfort zone. It doesn't attract me enough. (I can marvel at it sometimes, but that's enough for me).
> with the lifetime considerations that come with it (that the OP seem unwilling to cope with)
I'd say that's exactly the same as with the current orientation of the solution; and he's not "unwilling to cope" AFAICT, but rather plays it down as "well that's c++ for you".
What I think is wrong with that attitude is the inadvertent recklessness implied. But he clearly understood the purpose of +qi::_1 there, so he's probably fine with this.
@LucDanton That's basically what the phoenix::bind does, TWISI; It val-ifies all arguments (unless reference-wrapped).
Good enough for me as the machete to cut my way out of a quick-and-dirty Proto web

« first day (1439 days earlier)      last day (3735 days later) »