301
General Discussion / Re: Things that made you laugh today: Capitalism and murder
« on: October 03, 2015, 03:50:27 pm »A computer virus that... acts like a vaccine?I was wondering when something like this would happen. Isn't it great?
March 6, 2024: Dwarf Fortress 50.12 has been released.
News: February 3, 2024: The February '24 Report is up.
News: February 4, 2021: Dwarf Fortress Talk #28 has been posted.
News: November 21, 2018: A new Threetoe story has been posted.
Forum Guidelines
A computer virus that... acts like a vaccine?I was wondering when something like this would happen. Isn't it great?
Yeah, git is great once you get used to it and I recommend anybody who can't use it to learn to use it.It's been so long since I started using it that I just know how to look everything up. I can't remember having issues. It's a lot better than svn. That's not hard. Fossil is better than SVN, as is DARCS, Mercurial(hg) or any other distributed scm.
Not so much a programming question but where would be a good place to keep all of my programming projects for possible employers/curious individuals to see?I've heard that it is pretty much industry standard to examine github pages. Those are generally better looking and have the upside of not requiring a curious programmer to deal with archives if they have git installed. Which they should.
I'll decompile some C/C++ code and post what comes out and try to figure it out. Pointers as well. Char arrays. Pointer manipulation and what happens. I figure someone will find it interesting-- I know I did years ago when I first saw the machine code and assembly output on my screen and went 'wooooah... wait wtf is this crap?'don't bother disassembling C or C++, it's only worth it for languages like java, c#, visual basic, or managed c++, but not often then.
Or you can get a different memory allocation scheme such as the one discussed here, http://goog-perftools.sourceforge.net/doc/tcmalloc.html,
Something else to keep in mind: when using C++, you should generally avoid this sort of multidimensional array. Calls to malloc are expensive.
--snip
template<int N> class m_array_addr{
size_t args[N];
public:
m_array_addr(size_t *args){
this->args = new size_t[N];
for(int i=0;i<N;i++)
this->args[i]=args[i];
}
};
template<typename T, int N> class multi_array{
private:
T *data;
size_t rank[N];//the number of elements in each dimension
public:
T& operator[](const m_array_addr<N>& indx)const{
size_t index=0;
for(int i=0;i<N;i++)
index= indx.args[i]+index*rank[i];
return data[index];
}
};
You would be a infamous necromancer who would live on the roads, and you would die in the canyons of Purplecry, during an ambush.
Hey guys, can anyone get the SPEED tag to work? I can't cheat like I used to.It appears that the more complex [GAIT] is now used.
![]()
Anyway, not terribly important, but I'd like to know if it still works.
EDIT: Welp, now that I can't use SPEED, is there an alternative?