« first day (523 days earlier)      last day (4430 days later) » 

1:00 PM
@LucDanton Oh, that.
@Pubby Yes, but they're terribly unwieldy.
You can't construct stairs at z+1 unless you have already constructed them at z first. Same for deconstruction.
 
DF construction sucks
 
I'd like a way to designate all levels for building at the same time.
 
@RMartinhoFernandes So when you deconstruct scaffolding at the ground level, all the higher level would fold up nicely with it?
DF does need help in the vertical direction, e.g. vertical designations. Still looking for magma and it's inconvenient to designate downwards.
 
@LucDanton You can designate digs in 3D now.
Just place the first corner, go down, and place the last one.
 
Does that designate boxes?
 
1:03 PM
Yes.
 
Very nice.
The funny thing is that I did change levels when designating (to e.g. replicate a layout one level down or up) which bugged me because I remembered that as not being possible. I just scratched it as a slight interface improvement without investigating further.
 
lol
@LucDanton Ideally, a way to pick the order of deconstruction (right now, if you designate everything for deconstruction, they may start from the wrong place and fuck up badly)
Deconstruction of floors is also problematic for the same reason. You can't do it en masse without risking a stupidity-powered cave-in.
 
I was thinking that it would work as a building that's vertical, i.e. the dorf goes at the base to deconstruct, spends time proportional to height, and poof all materials end up on the tile.
Of course if a dorf is standing up there oh well. Interruptions maybe.
 
@LucDanton Ah, that could be nice too.
 
No wonder you pushed me to look for magma when it's easy to dig down. Although I'm somewhat deep right now and I found nothing still.
 
1:11 PM
No caverns yet?
 
No. Is there a chance I'm too deep for that?
 
can you guys sends me a link to this game please
 
There are usually 3 caverns before you find the magma sea .
 
huh...
that's certainly a colourful site
 
1:13 PM
@RMartinhoFernandes And I don't have to hit them in the right spot on the right z-level right? I did do some exploratory patterns but every 10-z level or so, not exhaustively.
 
@LucDanton They don't cover whole layers, you can certainly miss them. I do find it strange that you missed them all.
 
I take it I am not going to get away with playing it in an openplan office
 
Get to work.
lol
 
not much for me to do
 
@RMartinhoFernandes I investigated the matter (looked up what the surface is and what the coloured bar to the right means and so on) and I think I may have started too deep for the first layer, so I doubled back up to just in case (plus, I needed more native gold). Although my legendary miners are training to be engravers, so it slowed down a bit.
 
1:17 PM
 
The author forgot to color one piece blue.
 
1:34 PM
@daknok_t ...
 
fuck, my brain is gone
 
I just recieved this beauty from VS2008:
 
can't think even basic things through
 
^^ I guess it's just my inexperience that it isn't obvious to me what it means, then
 
no, it's poor UI that makes it not obvious. Your inexperience just makes it a problem
 
1:36 PM
@thecoshman You underwent accidental encephalectomy?
 
@RMartinhoFernandes ?
 
Encephalectomy is surgical removal of the brain.
 
I see
 
@RMartinhoFernandes He wouldn't know. His brains gone
 
It's a cure for stupidity.
 
1:39 PM
are you perhaps unaware of the fact that describing something as gone can, and often does, simply mean not working
erm... if I have a node and I want it to have references to child noes and a reference to a parent node is unique_ptr the right tool for the job... I don't think it is
@ScottW my brain is on strike
@ScottW huh?
 
@thecoshman Depends.
 
@ScottW what made you proclaim I was coding in C?
@RMartinhoFernandes I don't intend to move nodes around, it should be a fairly static model
@ScottW Java for work, C++ for fun whilst at work
 
@thecoshman does a node own it's child (e.g. means its destruction destruction of the child)? If so: yes. And for child->Parent you'll most likely use a regular reference then
 
2 hours ago, by Tony The Lion
I find it strange to have a German speaking bonobo, a Polish speaking cat, a Flemish speaking Lion and a Portuguese robot all talking to each other in English
^^ Says the sex-obsessed lion
 
@KillianDS that explains the nodes children, but what a nodes parent?
@ScottW yes... what of it?
 
1:46 PM
like I said, a regular reference should do the trick
 
@KillianDS as in std::unique_ptr<node> parent; std::list<std::unique_ptr<node> > children (though I think C++ will now let you just write >> with out the space
 
@thecoshman that does not make sense, as the unique_ptr would not be unique
 
@KillianDS I didn't think so
 
If the parent owns the children, something like std::list<std::unique_ptr<node> > childrenmakes sense yes. and in your child you would simply have node& parent
@thecoshman Yes, suppose you have this very simple link: A->B->C
with your plan both A and C hold a unique_ptr to B
 
erm... what exactly would node& parent mean?
@KillianDS so an object should only ever have one unique_ptr pointing to it, that's a simple rule to follow
 
1:52 PM
That's the idea of unique_ptryes :p, you could break that rule if you have custom deleters and such but it wouldn't make much sense.
 
ohai
you called?
lol
std::unique_ptr<myObject>(new myObject); this is the only way to create a unique_ptr right?
 
I can't think what node& parent would equate to
 
you want a pointer to your parent, right?
 
yeah
 
and pointers to your child
 
1:56 PM
so wouldn't I use node* parent fyi, I've been stuck in Java too long
 
so you have a list of unique_ptrthat will maintain ownership of the current node's childs, that will also take care of deletion when the parent gets destroyed (or when you want to get rid of it by removing it from the list).
 
@TonyTheLion There's an overload taking a deleter, and some conversion constructors.
 
In the child you can be sure that the parent exists (by the design I just explained), so you don't need any ownership-wrappers, you don't even need pointers. You can just use a reference
 
erm... perhaps I am too tired, perhaps I've not done enough C++ recently... but how does storing the parent as node& differ from storing it as node*
 
@thecoshman You lose the assignment operators.
 
1:59 PM
Reference members are nasty.
 
@LucDanton but besides that, there's no other way to create it right?
 
Ewww.
@TonyTheLion make_unique!
 
hah, indeed
@ScottW that's fugly
 
@TonyTheLion does that mean I couldn't do something like node a; node b; a.addchild(b) where addchild stores a unique_ptr to the passed node
 
@RMartinhoFernandes yes, but the alternative is a design with shared_ptr per parent and weak_ptrs per child, which in this case seems a little bit over the top. Unless I'm missing something essential in the tree-design.
 
2:02 PM
@KillianDS What? No.
 
Just use pointer members
There is rarely a use for reference members
 
user406009
IIRC correctly they talked about this design issue at the Going Native conference. I think Bjarne(??) said to use regular pointers from child to parent, and unique pointers from parent to child.
 
as in use node* parent instead of node& parent
 
what's the disadvantage of a reference member over a pointer member? I'm probably missing some information on references here then
 
user406009
References cannot be reseated. Copy semantics with references are confusing.
 
2:05 PM
is it not just down to use?
 
It destroys value semantics
 
unique_ptrs and naked_ptrs can do just fine.
 
awe man, complex shit is coming my way. I'm not awake enough to take this in
 
@KillianDS It makes an assignment operator impossible or difficult.
 
@ScottW lol
 
2:06 PM
is naked_ptr<node> functionally the same as node*
 
There's no naked_ptr :P
template <typename T>
using naked_ptr = T*;
 
@RMartinhoFernandes :(
 
@RMartinhoFernandes yes, but in a tree structure simply copying nodes is a dangerous thing in general. It's not absurd to delete the copy/assignment operator anyway in that case.
BUt I can understand that not-reseating is a problem when you want a tree that can be rebalanced
 
This is not a data storage tree, it's just a data that happens to have tree like look to it
I'm not even sure if I want to store the data in this way :S
 
2:12 PM
@KillianDS That's what private is for.
 
@LucDanton private doesn't solve semantics. What does copying a node in a tree structure mean?
 
@KillianDS Note that since there are std::unique_ptr involved this is more about move assignment.
 
Could somewone help me with a strstr implementation stackoverflow.com/questions/9813572/more-strings-strstr/… ? :)
 
user406009
Why not just look at libc's strstr implementation?
 
2:21 PM
the one on like wiki ?
 
sbi
@RMartinhoFernandes Wow, that is one really bad case of an inverted nipple. Those are really hard to repair through surgery while keeping the ability to breast-feed. This bus will find it really hard to breast-feed should she ever get twin baby buses.
 
What was on your lunch?
 
@sbi Lol. Without your seemingly unprompted comment, I'd never have noticed the 'graphical pun' in that picture
 
neither did I notice
 
I think I might have hit a new low (high?) in work bordem
 
2:27 PM
Woah.
 
I think chatting with you guys is the only thing saving me from going postal
 
sbi
@sehe Didn't you wonder why he posted that?!
 
@ScottW yes me
I'm very ashamed of myself crawls in a corner and hides
 
get out my corner, I am trying to sleep
 
2:29 PM
@sbi For about 4 seconds. Then I dismissed. Like often on Lounge<C++> chat
 
Well, the post where I found that image was tagged NSFW, for some reason.
 
this chat is technically NSFW
 
@sbi not read it, but I meant more the 'going on an insane killing spree' sort of going postal
 
TVTropes is definitely NSFW, more like NSFL
porn
 
@ScottW Not Safe For Play?
 
sbi
2:30 PM
@thecoshman I am very sure Sir Terry knew about that meaning when he named his book.
 
@TonyTheLion There is no such thing as not safe for porn. Rule 34, QED.
 
sbi
33 secs ago, by Scott W
(programming)
 
@ScottW He has that userscript that replaces all avatars with nudity
@sbi Yeah. I thought that was rather dull
 
@sbi is he knighted? and like I said, not read it
clearly, NSFW is not safe for pointers
 
sbi
@RMartinhoFernandes Vietnamese cuisine. Chicken in peanut sauce, rice and a lot of raw green stuff. It was delicious.
 
2:32 PM
lulz
 
sbi
@thecoshman Yes, he was knighted a few years ago.
 
@sbi that was ON your lunch
 
2 mins ago, by Tony The Lion
porn
I posted this randomly
that it by chance fits perfectly in the chat context, is mere chance
 
sbi
@thecoshman Well, he asked for what was on my lunch:
6 mins ago, by R. Martinho Fernandes
What was on your lunch?
 
@sbi is he still able to think? I know he has the condition where his mind is basically melting away... so a job really...
 
2:33 PM
I was knighted: "King of Porn"
 
@thecoshman That sounds a bit offensive.
 
in this room
 
@sbi yeah, I am shocked you had basically a lunch ON your lunch. what was your actual lunch?
 
@TonyTheLion You can't be knighted king.
You can only be knighted a knight.
 
@RMartinhoFernandes oh well
I'm an exception :P
 
sbi
2:34 PM
@TonyTheLion Actually he is a Knight of the OBE, IIRC.
 
Kings are usually crowned.
 
@RMartinhoFernandes sorry, no offence meant
 
@ScottW Fail.
 
@sbi IIRC OBE is 'Of the British Empire'
 
2:35 PM
@ScottW Your link is just broken.
 
am I dead?
 
sbi
@thecoshman He has a very seldom form of early-onset Alzheimer, a form of dementia. He cannot type anymore, but if you watch interviews or follow him on Twitter (where his handle indicates he has an assistant), you will find that he is still very sharp and witty.
@thecoshman Order of the British Empire?
 
@sbi yeah :P
@sbi fairly sure OBE < Knighted
 
I win.
Again.
 
2:37 PM
@sbi oh right, I thought he had a condition where his body stops doing what he wants it do
 
sbi
@ScottW @thecosh: Oh well, so I got that preposition wrong. Did I ever mention I'm not a native?
 
@ScottW That's called a "fix".
 
actually... I have no idea what I thought he had, I just new he had some sort of condition that meant he was working hard and fast to get as much done as he can whilst he can
 
sbi
@thecoshman Yeah, the motoric nerves of his fingers is what got him worried first, I think.
 
Xeo
2:39 PM
Robot?
 
@sbi fairly sure that would worry me too :D
 
Xeo
Mind testing a small snippet with GCC 4.7?
 
Is 4.8 ok?
 
Xeo
Sure
#define BOOST_RESULT_OF_USE_DECLTYPE
#include <boost/iterator/transform_iterator.hpp>
#include <utility>
#include <vector>
#include <functional>

int main(){
  typedef std::pair<int, int> Pair;
  std::vector<Pair> v {Pair(1,2), Pair(2,3)};
  using namespace std::placeholders;
  auto choose_first = std::bind(&Pair::first, _1);
  boost::make_transform_iterator(v.begin(), choose_first);
}
 
sbi
@RMartinhoFernandes Really, I don't know what those are called in English. Those that control muscles (rather than sensoric ones).
 
Xeo
2:39 PM
I get a strange error with Clang + libc++
 
@Xeo Accepted.
 
@sbi Sensoric? Are you joking?
It's "sensor" and "motor".
 
sbi
Posting C++ code snippets here? You guys are dull.
 
Xeo
@LucDanton Meh, must be a libc++ bug then
 
@sbi flag it!
 
sbi
2:40 PM
@RMartinhoFernandes NO, I'm struggling to find proper medicine terms in a foreign language.
 
@sbi I think you are trying to say "motor neurons"
 
Btw my EDSL accepts e.g. arg1->*&pair_type::first, yay.
 
sbi
@thecoshman Ah, that would fit the bill. So you have motor an sensor neurons?
 
Which is nice because Phoenix is not supposed to even though it does.
 
@sbi think there is a third kind as well
the sort you have in brain that just connect to other neurons
 
sbi
2:42 PM
Oh, now I understand the confusion I caused. "Nerve" is a false friend. "Neurons" are "Nerven" in German, but "nerve" does not translate to "Nerv". Sorry, my bad.
 
I want to call them synapses , but I think that is the gap between neurons
 
Xeo
@LucDanton map_keys :)
 
@ScottW Synaptic cleft?
 
sbi
@thecoshman Actually, I think a synapse is an extension of a neurone that goes to a gap through which it is connected to a synapse of another neurone. But what do I know...
 
@Xeo Not going to work with e.g. make_overload.
 
Xeo
2:43 PM
Though that could be generalized to map_member.. hmmm
 
A synapse is the pair of nerve endings.
@sbi Exactly.
 
Xeo
@LucDanton You and your make_overload
 
I failed Biology
 
@sbi yeah, fairly sure synapse is the gap between two neurones. Still, I am sure there is a word for a type of neuron that does thinking, rather then motor or sensory neurons
 
I don't even know where my heart is, so if it breaks, I can't mend it
 
2:45 PM
@Xeo Well, given a variant<T, std::pair<U, V>> isn't it nice to be able to write apply(v, make_overload(arg1->*&std::pair<U, V>::first, arg1))? Let me check if that works.
 
@TonyTheLion Is that supposed to be poetic?
@LucDanton lol
 
Case in point, I never developed the EDSL just for ranges (or just for make_overload either), it has plenty of uses.
 
@TonyTheLion I know when my brain is, doesn't mean I would attempt my own brain surgery :P
 
@RMartinhoFernandes does it sound poetic?
 
@TonyTheLion actually, it kind of does :D
 
2:46 PM
@TonyTheLion Oh nooooooes! They changed "You Fail Biology Forever" to "Artistic License - Biology".
 
sbi
@thecoshman I think you are right: en.wikipedia.org/wiki/Neuron#Direction
 
Now I can't just link drop it here in context.
 
I suck at poetry, so anything I say which sounds poetic was never meant to be
 
@sbi I like that :D
 
sbi
@TonyTheLion Better you fail biology than have biology fail you. :-/
 
2:47 PM
@sbi my Biology already failed me, my feet hurt so much, I can't even wear shoes for any normal length of time
 
@TonyTheLion buy new ones shoes, that fit you
 
sbi
@TonyTheLion Note the kind of smiley I added as an afterthought.
@thecoshman Unfortunately, it's not his shoes.
 
@sbi huh? I was just saying how things are, I didn't take offence or anything at what you said
 
Xeo
@LucDanton I think I need to search through the logs to see what make_overload does again...
 
2:49 PM
@Xeo It makes an overload :v Out of several functors.
 
@thecoshman I wish that would solve it, but it doesn't
 
@sbi I presumed that it was the shoes that cause his feet to hurt, tuhs he can't wear them for 'normal lengths of time'
 
@Xeo It's like std::function, but with more than one operator().
 
sbi
@TonyTheLion Yeah, I know. It occurred to me the moment I had that typed out, but since I considered it such a nice pun, I added the meek smiley, rather than scrap the whole thing.
@thecoshman You were wrong.
 
Xeo
Okay, but where were the function bodies and/or functors in that example?
 
2:50 PM
@sbi so it seems. Looks like we need to sort @TonyTheLion out with a foot transplant
 
Okay, as I thought make_overload(arg1->*&pair_type::first, arg1) doesn't work because arg1 accepts everything, so there's an ambiguity. Using arg1 + 0 instead of arg1 works for the example I gave before (a pair can't be added with an int). Maybe I'll think of a way to help with that at some point...
 
@sbi oh meek smileys :)
 
sbi
Can't you simply-minded C++ fanatics stop interrupting us grown-ups with your petty programming issues?
@thecoshman feet
 
@Xeo The EDSL deals with that. arg1->*&pair_type::first is a functor.
 
@thecoshman now I'm getting it the day it can be done
 
2:52 PM
@sbi nope. A foot transplant would transplant feet
 
sbi
@thecoshman In the same way a kidney transplant transplants both kidneys? Oh, wait, it doesn't...
 
@sbi don't you just love English :D
 
@sbi It's like 'a five-year old'. Not 'a five-years old'. Adjectives never agree in number.
 
fuck English, lets all learn Polish
@CatPlusPlus would be happy :P
 
@sbi Or a liver transplant!
 
sbi
2:54 PM
@ScottW Oh, I wasn't trying to make him say "feet transplant", I was pointing out that it would take two foot transplants.
 
@sbi I see what you are saying, but I would have a singular foot transplant or a double foot transplant
 
lol
can you imagine I get someone else's feet to walk around on?
 
@sbi a hair transplant does not transplant a single hair
 
would be strange...
a pube transplant
 
Gosh, what?
 
2:55 PM
@thecoshman hair is a mass noun, foot is a count noun. :-)
 
sbi
And I was citing @Tony who said "feet", not "foot". I guess I failed at making this clear.
 
oh I suck at grammar too
 
And at spaelling too, apparently.
 
fairly sure it is still a foot transplant, even if you transplant both feet
 
@thecoshman It's just a big foot transplant.
 
sbi
2:56 PM
@thecoshman No, it's two of them.
 
you guys are being pedantic
 
sbi
@RMartinhoFernandes I am afraid to google for "big foot transplant".
 
who gives a shit whether it's foot or feet, if I could have it, it would be both my feet
 
if you where transplant both feet, you would not call it a feet transplant.
 
sbi
@TonyTheLion Pedantry? Here?! That must be a first!
Good to see my third attempt of posting something really star-worthy finally caught some of you. I guess this means I can now go back to work.
 
Xeo
2:57 PM
@LucDanton And what exactly does it do? Just return .first on whatever you pass in?
 
@Xeo Equivalent to mem_fn(&pair_type::first) in this case, so only works for that particular pair_type.
 
If such a thing where to be done, it would be a tooth transplant, not a teeth transplant
 
sbi
@thecoshman Sigh. Will you finally get it into your head that I did not, never, niemals suggested "feet transplant", but rather "foot transplants". Yes, I blew this pointing-out thing, but I have since explained myself thrice. That ought to be enough for everybody.
 
I don't have a convention where some type has dummy operations so that I can construct a polymorphic functor like arg1->*&op::push_back that will do push_back on anything that supports it, although perhaps I should.
 
2:59 PM
@thecoshman And what if it was made in continental Europe? Would it be a metre transplant?
 

« first day (523 days earlier)      last day (4430 days later) »