« first day (561 days earlier)      last day (4386 days later) » 

9:00 PM
As for Linux, dunno. It needs soo much work.
:<
Android image will be downloaded in just 159576 minutes.
 
@thecoshman You don't return the ID you stored.
 
Oh, now just 15014. Glad to see progress.
 
@CatPlusPlus :( but I want linux support. how far off is it?
@RMartinhoFernandes oh yeah :P
 
Writing X code is hard, I don't have any way to test it.
And documentation sucks.
Also need to make fallbacks and shit. I'm starting to consider just using Qt to create those damn windows.
 
Qt gets the job done without too much pain.
 
9:03 PM
@CatPlusPlus lol
 
@RMartinhoFernandes fixed :D
 
Meh, time to reorganise this project a bit.
While Android downloads with an incredible rate of 8KB/s.
 
@CatPlusPlus glskel?
 
Yes.
It'll be Springbok.Core now, because dotted and capitalised names are cool.
 
9:13 PM
What?
 
Also Doxygen sucks and needs to die.
 
Dakdoc!
Nah, sucks even more.
 
This is highly off topic, but Jacques Brel was the shit.
 
No that's rather on topic.
 
Since we're trying to keep on topic, pandoc is awesome.
 
9:16 PM
is a static variable the same variable when inherited by other classes?
 
Is. There is only one.
Like rings. (not really)
 
Singletons.
 
few, for a minute then I thought all hell was going to break loose
@StackedCrooked no, I want HaM to good library
 
@thecoshman You mean hell is tight?
 
@EtiennedeMartel wrong loose?
 
9:18 PM
@ScottW Belgian :D
 
"break loose" is correct.
 
@thecoshman For once you got the right one.
I thought she was hot.
 
Like a rapper singing.
 
Didn't work.
 
If I have an int i = 931, then (n*(1+4*n*(1+2*n))) = -2130830689. I assume this is overflow. I was wondering what the best type would be to avoid overflow. I see in this code I was using double, but is there a better choice? Do the long ints avoid overflow?
 
9:22 PM
I just realized I have to use double-pimpl. -_-
 
double-pimpl is called acne
 
@FaheemMitha No.
@classdaknok_t That sounds suspiciously... stupid.
 
Stupid Objective-C++. C++ y u still header files.
 
So, recommendations, suggestions?
 
:)
 
9:24 PM
So for every member function call, I'll have double indirection. For most even triple indirection.
 
@FaheemMitha If int is too small, use long long.
 
So you can solve 3x problems.
 
@EtiennedeMartel Does that overflow? And (dumb question), does a long long / long long convert to a double?
numerical stuff is a pain.
Hmm, might be a suitable question for SO.
 
@FaheemMitha Any integer type can overflow. But a long long is so fucking huge that it's not really an issue.
 
@RMartinhoFernandes what's even more stupid is the class names I came up with.
class WindowImplImpl_; friend class WindowImplImpl_;
std::unique_ptr<WindowImplImpl_> impl_;
 
9:26 PM
@EtiennedeMartel : Hmm.
 
Meh I'll use void* instead. Screw it.
 
@classdaknok_t Is this a joke?
 
@RMartinhoFernandes no. I'm using Objective-C++.
 
That exists?
 
@Pubby it's C++ with Objective-C.
 
9:29 PM
So it's Obj-C+
 
It's not an official language. It's more like a compiler extension.
 
The only good thing about it is that it has #import.
And the distinction between interfaces and classes. Other than that, it's a piece of shit.
 
There's a bunch of restrictions.
Objective-C is a reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. Today, it is used primarily on Apple's Mac OS X and iOS: two environments derived from the OpenStep standard, though not compliant with it. Objective-C is the primary language used for Apple's Cocoa API, and it was originally the main language on NeXT's NeXTSTEP operating system. Generic Objective-C programs that do not use these libraries can also be compiled for any system supported by gcc or Clang. History Objective-C was created primarily by Brad Cox ...
 
The new 64-bit runtime resolves this by introducing interoperability with C++ exceptions in this sense. thank God.
 
> Objective-C and C++ exception handling is distinct; the handlers of each cannot handle exceptions of the other type.
 
9:32 PM
Good.
 
Oh gosh, it's just bolted-on!
 
I should rethink the API while I'm on it.
 
The new 64-bit runtime uses C++ for exception handling internally. I've seen that in a stack trace a few days ago.
 
It's a compatibility layer.
 
@RMartinhoFernandes Of course it is. It's a long tradition.
 
9:33 PM
@RMartinhoFernandes kind of like Win32 C Structured Exceptions
 
Let's bite the bullet and get rid of the factory.
Global state, but meh.
 
@RMartinhoFernandes what is?
 
OMG, Cat's going rogue.
 
Let's factor the bullet and get rid of the biter.
 
@thecoshman That Objective-C++ thing.
 
9:35 PM
@RMartinhoFernandes It was bound to happen one day.
 
@RMartinhoFernandes oh :p I've yet to one good thing about Objective
 
Whether Objective-C++ is a good thing is rather subjective.
 
template <typename T>
struct read_only {
    read_only(T value) : value(value) {}
    operator const T&() const { return value; }
private:
    T value;
};
Think that's enough?
 
What's that for?
 
Right now, system-provided window handle.
 
9:40 PM
aaargh
I'm in the coding dumps
 
Basically, should be write once and then read only.
And I don't want that ugly get_system_handle thing.
 
Ah fun we got this Objective-C++ friendship shit again.
'WindowImpl_' is a private member of 'Window'. Yeah cool.
 
Is having a cyclic dependancy a bad design :) ?
 
Possibly.
 
@CatPlusPlus read_only<int> x(42); x = read_only<int>(23);. In fact, as is (implicit ctor), x = 23 would work!
 
9:43 PM
Is it possible without friendship to get private things of a class? Doesn't matter how evil it is.
 
I have "Character" that needs access to "Ability" and also "Ability"(ies) need access to "Character"s ...
 
Delete assignment.
@classdaknok_t No.
 
It seems natural to me but i may be doing something seriously nasty.
 
any way. Night all! tomorrow I research testing :D
 
@RMartinhoFernandes well, fuck.
@thecoshman later!
 
9:44 PM
Laatarrrrr, matey.
 
@thecoshman Later.
 
well... just waiting for kettle to boil for hot water bottle
it's fecking cold in this house
 
I actually had to do some header merging in order to get linker to link stuff properly :(
 
@ScarletAmaranth Ability has access to AbilityHaver :s
 
It's such a stupid solution.
@StackedCrooked Yeah now instead of neat and clan "Ability.hpp" and "Character.hpp" I have a sodding "AbilityCharacterCyclic.hpp" ... not cool :(
 
9:46 PM
@classdaknok_t friend is a good thing
 
@ScarletAmaranth You're doing it wrong, most likely.
 
Why does ability need character?
 
I want abilites to be able to modify the character's health point and status.
 
@thecoshman not when used like this. :P
 
struct ability { int hp_modifier; int new_status; }; struct character { void apply_ability(const ability& a) { hp += a.hp_modifier; status = a.new_status; } };
 
9:48 PM
ah! kettle, now it really is night time for me
see you guys
 
You can make your design so that Everything is an Ability, also Character. Just kidding (maybe).
 
later
 
@StackedCrooked Everything is a character is better! Now you can kill abilities!
 
@CatPlusPlus I'd go for a decorator design.
@RMartinhoFernandes Hm.. :D
 
Android emulator. Is. So. . . . . . . . . . . . . . . Damn. . . . . . . . . . . . . . . . . . . . . . Slow.
 
9:49 PM
So my design: Ability has int dealDamage(Character &target); and Character has void useAbility(Ability ability, Character &target); is bad :) ?
 
Knock knock. Who's there. (Very long pause.) Java.
 
I split useAbility and deal damage / apply effect because it's not guaranteed that both of those will be aplpied.
 
@CatPlusPlus No, it's slower than that.
 
There's apparently some Intel hardware execution thingy, but it doesn't improve much.
 
@ScarletAmaranth Declaratiions are your friend.
 
9:51 PM
@RMartinhoFernandes Forward declares won't help me, i need a complete type in both :(
 
@ScarletAmaranth I doubt the useability of useAbility.
 
@ScarletAmaranth No, you don't.
 
@ScarletAmaranth No you don't.
 
o_O
I don't ^^ ?
 
At least not from what you told us.
 
9:52 PM
In fact, neither header needs another.
 
Both function declarations work fine with incomplete types.
 
@ScarletAmaranth Somehow I dislike stateful sounding function names like "dealDamage". But that's just my problem, not yours ;)
 
To me, the following thing makes the most sense : Character can use the ability while the ability deals damage to character. (From a high point of view.)
 
@ScarletAmaranth You don't.
 
Ability might as well be a template of effect, and Character can do all the work.
 
9:53 PM
@ScarletAmaranth I'd say the Character deals damage to the other Character through Ability
 
Yeah but i didn't like the idea of Character doing ALL the work :(
Yeah I think i'll go for that @StackedCrooked.
Thanks everyone :)
 
What OOP does to people.
 
I'm just brainstorming. Don't just do my first suggestion.
Thinking in terms of objects is useful in game design.
 
Here's your dependency cycle broken: ideone.com/c9KBV and ideone.com/BQCQa
 
That's the first game I'm making, it's kinda weird, the whole "system" needs to be defined first before you can actually do ... gamy stuff ...
 
9:56 PM
@RMartinhoFernandes And ideone.com/c9KBV and ideone.com/c9KBV and ideone.com/c9KBV
 
Ooooooops.
 
@RMartinhoFernandes Yeah but when i have only Char &target (and i can't access the complete type), i can't say ... target.whatever.
 
@ScarletAmaranth In a cpp file you can include both headers without trouble,
 
@RMartinhoFernandes O_o, I'm gonna try that, you may possible be declared a genius in a sec.
 
Am I crazy if I think that a Character would own HP and a list of incoming blows and the current HP is calculated lazily.
 
9:59 PM
HP based systems suck. DF FTW.
 

« first day (561 days earlier)      last day (4386 days later) »