Search found 9 matches

by Forgemistress
Wed Apr 05, 2017 4:07 pm
Forum: Libraries and Tools
Topic: [WIP][v1] Convert Formatted Text to Code Library
Replies: 2
Views: 2677

Re: [WIP][v1] Convert Some Fromat Text to Code Library

It seems interesting, though I can not help but wonder what purpose it serves. What is it you are hoping to accomplish with this library that couldn't otherwise be done using regular Lua? Also, the __call metamethod is your friend in the case of the square brackets. ;) I'll update this post with my ...
by Forgemistress
Wed Mar 29, 2017 4:06 pm
Forum: Libraries and Tools
Topic: Classy - Middleclass Inspired, But a lot faster
Replies: 12
Views: 11653

Re: Classy - Middleclass Inspired, But a lot faster

The template that you provide to the class only defines the sets of keys that the underlying table will have as well as values that are automatically converted into strings. In this instance, defaultPicture is not the value you expect it to be since it is a love2d class object. You will want to inst...
by Forgemistress
Wed Mar 29, 2017 4:03 pm
Forum: Libraries and Tools
Topic: Middleclass 4.x Object-Orientation for Lua
Replies: 21
Views: 21962

Re: Middleclass 4.x Object-Orientation for Lua

That aside, multiple inheritance is a pox on object oriented programming to begin with. Used sparingly, it can most certainly be useful in lower level languages like C++. However mixin functionality that defines common sets of functions and behaviors given a dataset is more or less what you'd want t...
by Forgemistress
Thu Jan 05, 2017 4:21 pm
Forum: Libraries and Tools
Topic: Classy - Middleclass Inspired, But a lot faster
Replies: 12
Views: 11653

Re: Classy - Middleclass Inspired, But a lot faster

Sorry about that dude. Didn't even think to look to see if there was another project with the same name.
by Forgemistress
Mon Jan 02, 2017 8:57 pm
Forum: Libraries and Tools
Topic: Classy - Middleclass Inspired, But a lot faster
Replies: 12
Views: 11653

Re: Classy - Middleclass Inspired, But a lot faster

@alloyed
Updated the git repo to do exactly that. There is definitely something henkey going on under the hood when ProFi is brought into the mix.
by Forgemistress
Sun Jan 01, 2017 1:48 am
Forum: Libraries and Tools
Topic: Classy - Middleclass Inspired, But a lot faster
Replies: 12
Views: 11653

Re: Classy - Middleclass Inspired, But a lot faster

@raidho When I feel compelled to, I may try to do that, however I try to share data wherever I can, hence the re-use of prototypes when subclassing objects. @airstruck The goal was to reduce the memory usage at a per-instance level, not at the per-class level (I'd like to optimise both here in the f...
by Forgemistress
Thu Dec 29, 2016 5:44 am
Forum: Libraries and Tools
Topic: Classy - Middleclass Inspired, But a lot faster
Replies: 12
Views: 11653

Classy - Middleclass Inspired, But a lot faster

Greetings and salutations. So for my first trick, I bring to you all something that many of you who (like myself) use object oriented programming paradigms in Lua will find most interesting. Games use memory. They tend to use a lot of memory. Like, duh right? So why is it that we still blindly copy ...
by Forgemistress
Wed Dec 21, 2016 4:31 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1489271

Re: What's everyone working on? (tigsource inspired)

What is everyone working on?
Image
Something awesome. Will post details when I am able...

oh, and this is just clipart I found online. It's not an image indicative of what I'm working on... not directly indicative... I need sleep...