« first day (500 days earlier)      last day (4449 days later) » 

12:00 AM
slight difference here...half those people will be saying something like "i'm 3500 years old". big endian, ya see.
 
Nevermind.
I gotta get some coffee.
If you say uint32_t a[N];, and reinterpret_cast<uint8_t*>(a) then the values are portable to a large subset of implementations (those with CHAR_BIT == 8 and some known endianness).
 
@RMartinhoFernandes: I think I found the vampire, it's the one dwarf left that the undead aren't attacking and who won't attack the undead.
I guess I failed at the fortress, sorry :(
 
Kill him!
@MooingDuck That was inevitable.
 
@RMartinhoFernandes how?
@RMartinhoFernandes I thought I was doing pretty good until the month everyone died :(
 
@MooingDuck Standard execution methods? Drop a bridge on him, send him to explore a deep pit at high-velocity, whatever.
 
12:04 AM
its gotten so infectious that I'm actually bringing this C++ book to school XD
 
You didn't set up an execution chamber yet?
 
@RMartinhoFernandes no, I've never used one. I just gave irritating people their own lever to pull
 
@MooingDuck That's what I meant.
 
@RMartinhoFernandes either way, I consider the fort abandoned. Should I bother uploading the file? :(
 
@MooingDuck there are ways to save an abandoned fortress
 
12:06 AM
@MooingDuck At least post the report.
And the file too. I might try a reclaim.
 
@RMartinhoFernandes alright.
 
I guess that it will be teeming with the undead. Reclaiming might be "fun".
 
What biome?
Forever alone
 
Don't know. But since the fort fell to an undead invasion I suppose it doesn't matter much.
 
12:26 AM
@Hoxieboy Pubby picked it, I'm not sure
 
guessing from the undead it might be a Sinister Evil (Savage) biome
 
No, definitely not evil.
 
Necromancer?
 
@Hoxieboy Likely. Apparently there was a vampire infiltrated in the fort.
 
and those can raise the dead?
 
12:28 AM
They can if they're necromancers. Vampires are more prone to being one.
 
@Hoxieboy four, and not just corpses, individual body parts
@Hoxieboy one dwarf was suffocated by a goblin's left hand
 
@MooingDuck XD
 
I want to see a lets play video of dwarf fortress in a sinister evil biome, that would be fun to watch :D
(might not last long though)
 
Strategy: everyone has masonry and combat skills, bring stone blocks and weapons. First order of business: wall everyone around the wagon.
Then dig down.
 
12:31 AM
@RMartinhoFernandes there should only be 43ish undead left
 
ugh and make sure the refuse pile is close to a magma trap
 
I just FGITW muscled a mod to delete his answer... lolz
 
speaking of which I ought to start fortifying my... well... fort, against goblin attacks and the likes, its about that time of year!
 
@Hoxieboy That can be handled later by expanding the walled outside area.
 
all my images on teh wiki are failing to load
 
12:35 AM
@MooingDuck You're linking to the imgur pages, not the pictures themselves.
 
@RMartinhoFernandes fail
 
@RMartinhoFernandes alright. Never used imgur before, got it
 
"I'm not sure why we have so many cabinets, but we're overstocked there." Pubby had left a mason making cabinets on repeat. When I picked up the game I didn't notice it until summer.
 
@RMartinhoFernandes oh, well there was nearly one hundred
 
12:40 AM
Yeah...
:S
 
file is up. Not yet abandoned because of the one vampire. I probably should have taken a screenshot of that vampire, but I'm bad with screenshots
That map is by far my worst Dwarf Fortress failure ever :(
 
lol, a dorf made an artifact cabinet.
 
of course, back in my day, Dwarf Fortress military was quite different, and there was undead sieges or necromancers
 
@RMartinhoFernandes seems to be common amongst miner dwarves, mine did so too :3
 
whoa, I have two starred messages!
 
12:46 AM
lol :) time to start up DF and finish dem fortifications
 
You know that new immigrants will still arrive?
 
@RMartinhoFernandes yeah, but that seems like a disaster waiting to happen.
 
I wish it would dynamically shade (or at least have a meter) in accordance with the sun's position, that way you could tell if its day or night
 
Next person's call, I'm done with it :(
 
Also, multiplayer.
 
12:49 AM
@MooingDuck Migrants tend to bring bodyguards with them.
 
@Hoxieboy how would multiplayer work?
@RMartinhoFernandes not enough
 
@MooingDuck But more waves of migrants will come!
lol
 
@RMartinhoFernandes not before another siege
 
@MooingDuck if all else fails, at least attempt to flood them out by drilling a hole in the top and channeling water down? rofl last "ditch" attempt
 
@Hoxieboy I guess you could
 
12:52 AM
Is the vampire Alexandrescu?
 
or an even more dastardly scheme would be to abandon the fortress, then reclaim it and come with fully armored dwarves
 
@Hoxieboy 7.
 
@RMartinhoFernandes could make a dent? XD
 
Steel weapons are too expensive to bring on embark.
 
@RMartinhoFernandes I think it was some new unnamed dwarf
 
12:53 AM
@Mysticial and I thought you were avoiding the newbie questions :)
 
You can bring materials to make steel very cheaply, but you can't make the steel in the middle of a battlefield.
 
@RMartinhoFernandes perhaps have a feudal war, and try setting up another new base and build up an army? :3 the posibilities are endless
 
@RMartinhoFernandes when reclaiming you get many more dwarves
 
@SethCarnegie *Most of them. If I can answer them without explaining much... then it's fair game :)
 
@MooingDuck Since when?
 
12:54 AM
@RMartinhoFernandes unless he changed it. Used to be the number was based on the value of the fortress.
 
also, dwarves wont freeze to death if their base's main entry way is open right?
 
I should say: There's a difference between newbie questions, and low hanging fruit. :)
 
@RMartinhoFernandes v0.31.25 was when the feature went away according to the wiki. In v0.28.181.40d "The number of dwarves you reclaim with will depend on the nearby hostile monsters. These include both wild animals and megabeasts left behind, as well as newly spawned inhabitants. It is possible to embark on a fortress incredibly infested with creatures. Most likely, you are slaughtered immediately, and if you reclaim, can get up to 70 dwarves."
 
@MooingDuck It's exactly the same number of dorfs, and the same number of points.
The advantage is that you don't need to bring, say, a steel anvil, and that's 300 points for weaponry.
 
oh goody merchants in the dead of winter
 
12:58 AM
But you still need to bring food because everything you'll find in the fortress will be rotten (getting rid of miasma is one of the first things you will have to do).
 
@RMartinhoFernandes wiki says prepared food should still be fine. And theres... lots of that
 
how would you get dwarves to grab misc items lying around on the ground? I simply can't find a way to grab the remnants of my wagon :s
 
Make a stockpile.
 
I have D:
derp it was all cloth, I designated it as finished goods D:
 
1:05 AM
@Hoxieboy it might be marked as forbidden, which ... oh
 
lol
my badzes
 
Clang done building. I can go back to playing DF now :)
 
@Hoxieboy make a stockpile way in the corner of the map that holds everything. If dwarves put anything in it, you know you need more stockpiles in your base
 
@RMartinhoFernandes Windows?
 
@SethCarnegie No, Linux.
 
Xeo
1:06 AM
@RMartinhoFernandes libc++ also done building? :)
 
:(
 
Xeo
):
 
@Xeo Working on it. But I can play while libc++ builds ;)
 
D:
 
Xeo
1:07 AM
@RMartinhoFernandes libc++ builds in something like a minute on my vbox
 
Xeo
Atleast with release build Clang
 
you can build walls with mined, unprocessed rock?
 
whats the difference in using that and stone blocks?
 
1:10 AM
@Hoxieboy you can build pretty much anything with unprocessed rock
@Hoxieboy blocks are nicer, and make dwarves happier
 
augh didn't know D:
 
@Hoxieboy You can only engrave smooth stone walls though, not blocks, so dug walls are preferable to constructed
 
And increase your fort value (more migrants, more merchants, more attackers)
 
eh, I'm not worried about aesthetic value right now
sorry about all teh questions :) whats the best way to set up a well?
 
1:15 AM
@Hoxieboy dig space for water, SMOOTH ALL FLOORS AND WALLS, then set hole as a "pit/pond" wait until dwarves fill space with water, build well.
do not forget to smooth all floors and walls
 
what will happen if I don't? lol
 
@Hoxieboy then the water will be "muddy" until you drain it of all water, smooth the walls, and build floors over the top, which makes dwarves very unhappy
 
@Xeo are you guys saying that the declaration of a function can have const T for a parameter but the definition can have plain T?
 
Xeo
Yes
 
@MooingDuck I usually make my wells fill from the river directly. I like to build plumbing and service stairs and stuff like that. Many a dorf has died by opening the wrong floodgate for maintenance.
 
1:17 AM
@Xeo what does that do?
 
@SethCarnegie The other way around, no?
 
@RMartinhoFernandes oh, I just have a small room and a stairwell. No floodgate, too dangerous
 
@RMartinhoFernandes I have no idea, I'm asking
 
Xeo
@RMartinhoFernandes Oh, wait, yeah
declaration -> plain T, definition -> T const
 
1:18 AM
@Xeo ah, I assume that that's because const is more restrictive?
 
If you think about it, that const really is only an implementation detail. It makes sense that it doesn't need to spill to the header.
 
Xeo
It's just that it doesn't make a difference to the compiler :)
a declaration is, as Herb put it, just a label saying there is something taking this and returning this. All text labels.
 
@RMartinhoFernandes only for values right
@RMartinhoFernandes by that I mean not references or pointers
 
@SethCarnegie Yes, top-level const only. Other consts are meaningfull.
 
Xeo
1:20 AM
Other way around is also possible
But not very sensible
 
@SethCarnegie For pointers too: f(int*); f(int*const) {}.
 
@RMartinhoFernandes what is a top level const?
 
int& const is pointless so, it doesn't apply for references anyway.
 
@SethCarnegie A const that matches T const.
 
Xeo
1:21 AM
> @Xeo: I now appreciate it is less effort to omit const from declarations, but I like to have my declarations accurately depict the actual definitions. – John 3 mins ago
@RMartinhoFernandes Isn't that an error unless in template or typedef code?
 
@Xeo Maybe. If it's an error it's because it's pointless :P
It's all the same to me.
 
@Xeo yeah I don't think John gets it
 
Xeo
In any case, I'm off sleeping, got a dentist appointment in approx 9h
 
Good night.
 
Xeo
1:24 AM
g'night
 
night
 
See ya
 
1:42 AM
Another question why "dorf"?@RMartinhoFernandes
 
No reason. It sounds alike.
 
Sounds good to me lol
now my water keeps freezing :P
 
Winter tends to do that.
 
indeed. and again, will my dwarves freeze in their mountain fortress? or is it even possible?
 
They will die if immersed in water when it freezes. Other than that, I don't think so.
 
1:50 AM
woo thanks I'm getting so much help :D I think I need to build a well over an underground water source or something, water will run out if I have the dwarves fill up only a 1x1 tile
 
@Hoxieboy Or build a bigger hole.
 
won't it eventually run out though?
 
I think they will fill it up when the ice thaws.
 
lol I trapped my miners in the well space XD
 
2:06 AM
I am surprised, my dwarves are into midwinter, and still haven't created any refuse
 
Do you have cats? Without cats you won't catch vermin.
 
I don't
great now one of my farmers is likely to die of insanity due to not having a butchery set up, because MY DWARVES ARE LAZY
 
2:22 AM
Damn, DF looks hard.
 
But its sooo fun to smash goblins with drawbridges
 
1
Q: C++ Vector library, Recreating for Assignment, max size function

Scott CurtisFor an assignment I am supposed to recreate the C++ Vector library, and I am currently stuck on how to return maximum size. According to this website: http://www.cplusplus.com/reference/stl/vector/ size_type max_size () const; Return maximum size Returns the maximum number of elements that th...

How is the maximum capacity of a container calculated?
 
look up range checking for C++ vectors
 
Isn't that implementation defined?
 
just got into the section in bjarne stroustrups book
 
2:29 AM
@Hoxieboy I don't think range checking has anything to do with this does it?
 
Well, how are you going to get its maximum size if it hasnt even been assigned one?
 
@Hoxieboy no, I mean the maximum possible number of elements the largest container could contain
not capacity, but max_size
There's not a precise way to calculate it is there
 
I still honestly think its defined in the library :P I don't see how it could be otherwise
 
Defined in the library as what?
 
I don't know :P I'm not a decent C++ programmer, just looking at the book
 
2:36 AM
@SethCarnegie I think in most implementations it will be 2^32 / sizeof(T) or similar (maybe 2^31 and 2^64 or 2^63 for 64-bit implementations, obviously)
 
@RMartinhoFernandes so it's not the real maximum capacity, it's just a (bad) guess
 
What would be the "real" maximum capacity?
 
The actual number of elements the container can hold
 
I don't think there really is a limit
"The vector member function size() gives the number of elements, We made a single object of type vector<Entry> and supplied its initial size as an initializer" No clue :P
 
@Hoxieboy I'm talking about max_size
 
2:42 AM
I know, and I don't THINK there is a max size of the number of elements a container can hold.
 
@Hoxieboy then what is the point of having a max_size function
 
@SethCarnegie "Returns the maximum number of elements the container is able to hold due to system or library implementation limitations, i.e. std::distance(begin(), end()) for the largest container."
it all depends
 
Yes, I read that
 
2:46 AM
Well I would google around some more :P
 
3:13 AM
2
Q: Pointer to array and related expression evaluation

Prasoon SauravAn array type decays to a pointer type when it is passed to a function That means in int func(int x[*p]) *p should not be evaluated as the declaration is equivalent to int func(int *x) Does the same hold for pointer to arrays? Here is the code int *p=0; void func(int (*ptr)[*p]) //A { ...

 
0
A: Is it possible to combine programming languages?

MaxpmShort Answer Not really. Long Answer Embedding Generally, a single source file contains code for exactly one programming language. It is uncommon for multiple languages to be combined in a single file for a couple of reasons: Parsing several syntactically-different languages at once is e...

Sometimes, I take questions a little too seriously.
 
4:02 AM
@SethCarnegie It can hold up to max_size() elements.
That's the point.
I don't understand your doubt.
 
4:26 AM
@RMartinhoFernandes how does it calculate that?
 
What difficulties do you see in that calculation?
Just to be clear, it being the maximum doesn't mean that v.resize(v.max_size()) will actually succeed. It only means that v.resize(v.max_size() + 1) will fail.
 
 
1 hour later…
5:40 AM
Looks like my foray into the clang trunk has been cut short:

http://stackoverflow.com/questions/9475486/range-based-for-implementation-compiles-in-g-but-not-in-clang

I'll make another attempt in a month or two...
 
@kfmfe04 Oh, an ICE is always a compiler problem.
 
@RMartinhoFernandes an assertion seems to have kicked it out - I wonder if the assertion was too stringent (didn't consider the snippet that I posted?)... diffing between the trunk and 3.0 would probably be revealing (but no time to try that now...)
 
$ grep todo -Rih include/ src/ | grep GCC -i
// TODO: this should be the cool way to do tuple_element, but GCC wonks out
    // TODO: reintroduce when GCC can deal with it
/// @todo Put back inside detail namespace when GCC can deal with it
            // TODO: reintroduce when GCC can deal with
            // TODO: reintroduce when GCC can deal with
            // TODO: reintroduce when GCC can deal with
// TODO: really use this in the signatures when GCC can deal with it
/// @todo Remove once GCC supports using declaration for base constructors.
@kfmfe04 It'll fail somewhere else. That's the whole point of trunk.
 
6:12 AM
@RMartinhoFernandes You don't use tags with Vim, right? So you don't have e.g. a maketags alias?
 
@LucDanton No.
 
I'm toying with SCons to see if that's sane.
 
I tried it in the past, but now I don't really need the (little, but...) hassle of updating tags and blah blah. I've found ^N and ^P are enough for me.
 
How do you switch from declaration to definition?
 
@LucDanton hehe.
 
6:25 AM
@RMartinhoFernandes To be fair to GCC a lot of these are the same error.
 
@LucDanton Ctrl+PageUp, Ctrl+PageDn (previous tab, next tab):S. It requires that I open the tabs myself.
 
And that the tab happens to be at the right site!
 
On that note I feel more comfortable using gt/gT.
Well, for quickly tabbing between adjacent tabs at least. g[count]t is silly.
 
@LucDanton That's probably better. I'll have to take some time to reeducate my muscles. There's a lot of other vim-related inefficiencies I've been wanting to untrain my muscles on.
 
6:29 AM
Aw, exuberant-ctags chokes on auto+late return type.
 
Oh, yeah, and there's that too. Tools can't handle C++11 yet.
 
Well I have cycles where I try to find tools to help but where I just give up when they can't deal with C++11. Right now I'm trying.
 
> Likewise, a small stockpile of alcohol lets the prisoner drink that, instead of being forced to drink water. Make it at least two squares, or your haulers will tease prisoners with just an empty barrel.
lol
This is silly, prison cells are going to end up larger than the bedrooms.
 
...hehehe... ...like Finland
 
@RMartinhoFernandes You can put several restraints around the same facilities, no? That's what I've done.
If one of the prisoners gets hungry/thirsty right after another one had a go, well too bad.
 
6:36 AM
just saw lazy newb pack last night - will have to try to get it to work with wine
 
@kfmfe04 Was it with graphics set included?
I can walk you through a manual Linux install + mayday's set install.
Don't know for other sets.
If you don't care for the graphic sets then the installation might as well be dropping the files. Admittedly though this has worked on one of my machine but not on the others without some symlinks trickery.
 
@LucDanton I'm afraid of vampires drinking the other prisoners.
 
@LucDanton ic - it would be nice to get the graphic sets - lemme try d/l the packages first onto this laptop (I'm trying on OSX, btw)...
 
@kfmfe04 My bad.
@RMartinhoFernandes Wait, what kind of sentences do vampires get?
 
@LucDanton No idea. Normally, I'd just execute this one. But it's my best surgeon.
 
6:43 AM
@RMartinhoFernandes Ah, you can check the sentence in the justice pane.
What's the point of keeping him or her then? Do you plan on an 'accidental' release if there's a sudden influx of critically injured dorfs?
 
7:14 AM
@LucDanton Something like that, yes :)
He tried to blame a baby.
 
He can have special treatment with his own food pile while far away from the other restraints then. I guess that's what you've done.
 
Yeah.
He doesn't need a food pile.
 
> Adam and Eve weren't real huh? If that was true then none of us would be born. Theres a little something called knowledge, and you obviously have none of it.
^ Youtube comment. Not sure if being sarcastic...
 
@RMartinhoFernandes You have problems that solve themselves.
 
There is this anime comedie series called Cromartie High School about the lives of delinquent youghts. I features someone who seems to be related @RMartinhoFernandes (See here starting from 4:00 for an example).
 
7:27 AM
@StackedCrooked [English Dubbed]
 
@LucDanton sorry about that :/
 
I admire your dedication.
 
argh
why is it so hard to find a mathematical support library that meets my needs? :(
 
@StackedCrooked Erm, ok.
 
@DeadMG for?
 
7:35 AM
C++
 
what kind of math library?
 
What are your needs?
 
all I need is small, fixed-size, dense vectors, matrices, and quaternions
 
boost::ublas kindly decided that inverse wasn't important enough for them
 
7:36 AM
@DeadMG MKL?
 
and half the others I've found only ship for Unix and that kind of hilarity
 
It isn't free though... :(
 
@sbi no university degree. could you wait a decade or so?
 
@Luc erm, they got him killed before he arrived at the cell!
 
Well I've seen what vampires can do.
 
7:38 AM
@RMartinhoFernandes Oh great. CMake. I think I'll pass
 
Ah, wait, the bastard resisted arrest.
@DeadMG CMake? It is header only.
 
See? Problem solved itself.
 
But now I'm one surgeon short.
 
the zip I'm looking at is full of CMakeLists and .inl files
 
Those are hard to find.
 
7:39 AM
I wish you could write everything in c++ header only.
 
@DeadMG I never built anything.
 
the readme says that, too
 
@DeadMG that's for unit tests
and the .inl files are such some weird convention the dev uses, they're the implementations, but they are included in the .h files
 
aka .tcc
 
7:47 AM
right
now I just have an equal problem, which is that I can't seem to find any functions for building S/R/T matrices
 
what's an S/R/T matrix?
 
scale/rotate/translate
I found some functions for that anyways
 
Never heard of that term for it. GLM is built to aid in matrix computation for OpenGL so it certainly has that
 
hey, has the ozone problem been solved yet? have people stopped using CFCs?
Reading environment change articles makes me depressed. :(
 
huh
half the overloads the documentation documents are missing
 
7:53 AM
Which ones?
 
Some functionality is restricted to 'extensions', for which you have to explicitly add the headers
 
You need to #include <glm/gtc/matrix_transform.hpp> and then glm::rotate, etc.
 
never mind found them
@RMartinhoFernandes Yeah, it was the version that didn't include a matrix multiplication I was looking for
ok
well this seems to be perfectly sufficient for my needs
good shout Martinho
 
8:26 AM
right
now all I need to do is implement a whole bunch of 3D rendering pipeline
 
@sbi woah "buying yourself" out redefined?
 
mawning
 
@LucDanton have you ever looked at the source to ctags? It is a true testimonial to pragmatic engineering, shall we say
 
@DeadMG For a second I interpreted that as if you wanted to render something like the pipes screensaver.
 
@LucDanton On the plus side, it means only tweaking some 4 'parse' functions will probably get you 90% of the c++11 support you expect from a tool like ctags :)
 
8:38 AM
@sbi Why so hurried?
 
> US is going to attack Iran next and just like Iraq and Afghanistan we gonna fuck your shit up son!!!!!!!!!!! Ah, you damn Moslems... ~ Youtube Message. (this world is so peaceful) :(
 
@IntermediateHacker The one who wrote that message is probably living a comfortable lifestyle.
 
Perhaps trolls are more abundant in times of peace.
 
8:40 AM
yeah. but seriously, why do trolls love war so much?
 
@LucDanton I like SCons. But my GNU make expertise easily trumps the 'good parts' of SCons, in practice. If I'd see the 'real need' I'd consider SCons. It has all the goodies inside: real script language (python), deterministic operation (env isolation), builtin cache (a la ccache but for all build rules), it is supposed to have more obvious benefits, but I'm not (yet) aware of them.
 
@sehe Don't forget declarative style! I value that.
 
In practice, I think SCons has the disadvantage of being less ubiquitously accepted (and there are Jam, Waf which seem to be 'competitors' which takes a bit of the momentum out of SCons)
@LucDanton Hmm. I'd say makefiles are the epitome of declarative. Of course that depends a bit on how you fill them (you could abuse a single build target to 'contain' a shell script of course)
@LucDanton I can show you (later) makefiles that read like a Prolog program (and do very fancy stuff, declaratively). Now, these days I stopped complicating my makefiles that way, because my head is too small :)
 
I'm not interested.
 
@LucDanton In my sample, I wager. Or did you mean SCons
 
8:45 AM
About Make in general.
 
@LucDanton +1; it is just one of them tools that you don't 'love' but you 'make do' :)
@LucDanton: I'll pick GNU Make over Visual Studio projects anyday, though
 
Make is indeed declarative which I like.
However, I never really figured out how to create a make file for, say, 10 .cpp files without having lot's of duplication.
You need a .o target for every .cpp file.
I believe there are ways to automate this, but for some reason I never bothered and switched to something else instead.
 
Automatic rules are here for that. However the big, big, big problem is that you don't get dependency analysis without a lot of work.
 
@LucDanton @StackedCrooked from the top of my head:
%.o: %.cpp
	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<

program: $(OBJECTS) | .depends
    $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@

.depends: *.cpp
    $(CC) -M $^ > $@

-include .depends

.PRECIOUS: $(OBJECTS)
a generic thing (assuming GCC style -M for automatic dependency generation)
 

« first day (500 days earlier)      last day (4449 days later) »