can your AI uwu ?

  • 9 Replies
  • 4566 Views
*

yotamarker

  • Trusty Member
  • *********
  • Terminator
  • *
  • 841
    • battle programming
can your AI uwu ?
« on: August 27, 2020, 11:01:08 am »
Code
package chobit;

public class UwU {
/*
* l -> w r -> w n -> ny ove -> uv ! -> UwU
*/
public String convertToUwU(String str1) {
String uwu = str1;
uwu = uwu.replace("l", "w");
uwu = uwu.replace("r", "w");
uwu = uwu.replace("no", "nyo");
uwu = uwu.replace("ne", "nye");
uwu = uwu.replace("ni", "nyi");
uwu = uwu.replace("nu", "nyu");
uwu = uwu.replace("na", "nya");
uwu = uwu.replace("ove", "uv");
uwu = uwu.replace("!", "^w^");
return uwu;
}
}
« Last Edit: August 27, 2020, 10:56:44 pm by yotamarker »

*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #1 on: August 27, 2020, 07:56:10 pm »
Below is partial code of a unit testing generator I developed where data is collected from a database or is generated randomly.  That library will be integrated with the AI I'm developing. All one need do is select the assembly file which is the dll of class UwU and the code will execute. The process is called Reflection and you can dynamically on the fly compile code or use existing libraries where you just reference the location of it. So Symbolic AI's wouldn't have a problem integrating this process but with an NN there are some issues.

Code
/// <summary>
        /// creates objects with parameters in their constructors
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="assemblyLocation"></param>
        /// <returns></returns>
        private static List<dynamic> CreateAndInitializeProperties(ViableMapAndData aMap, string assemblyLocation)
        {
            Assembly anAssembly = Assembly.LoadFrom(assemblyLocation);
            return CreateAndInitializeProperties(aMap, anAssembly);
        }

/// <summary>
        /// creates objects without parameters in their constructors
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="assemblyLocation"></param>
        /// <returns></returns>
        public static List<dynamic> CreateAndInitializePropertiesWoParams(string fileName, string assemblyLocation)
        {
            Assembly anAssembly = Assembly.LoadFrom(assemblyLocation);
            return CreateAndInitializePropertiesWoParams(fileName, anAssembly);
        }   

/// <summary>
        /// creates objects with or wihtout parameters in their constructors
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="anAssembly"></param>
        private static List<dynamic> CreateAndInitializeProperties(ViableMapAndData aMap, Assembly anAssembly)
        {
            List<dynamic> results = new List<dynamic>();
            List<Object[]> parameterList = ParameterExtruder.BuildParameterArrayList(aMap, ".ctor");
            if (parameterList.Count > 0)
            {
                foreach (Object[] parameters in parameterList)
                    results.AddRange(CreateAndInitializeProperties(aMap, anAssembly, parameters));
            }
            else
                results.AddRange(CreateAndInitializeProperties(aMap, anAssembly, null));


            return results;
        }

        /// <summary>
        /// creates objects without parameters in their constructors
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="anAssembly"></param>
        /// <returns></returns>
        private static List<dynamic> CreateAndInitializeProperties(ViableMapAndData aMap, Assembly anAssembly, object[] parameters)
        {
            List<dynamic> result = new List<dynamic>();           
           
            var propertyStore = aMap.StoredData.Where(x => x.MapType.Equals(DataMapType.PropertyColumnMap)).FirstOrDefault();
            foreach (DataRow aRow in propertyStore.ActualData.Rows)
            {
                dynamic aObject = InI.CreateObjectFromAssembly(anAssembly, aMap.TheMap.ClassName, parameters);
                InI.InitializeProperties(aObject, aMap.TheMap, aRow);
                result.Add(aObject);
            }
            return result;
        }


*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #2 on: August 27, 2020, 10:25:04 pm »
I just want to add that through reflection a Symbolic AI can grow its repertoire of capabilities and integrate a verbal interface to perform new added functions, without haveing to train on a gagillion or gazillion(I'm not sure which is larger) examples!. So it is possible today to do something like what you see in Star Trek and other scifi movies: "Computer give me a chart of the relationship between alien space ships and the observed wormholes."   :D

*

yotamarker

  • Trusty Member
  • *********
  • Terminator
  • *
  • 841
    • battle programming
Re: can your AI uwu ?
« Reply #3 on: August 27, 2020, 10:44:54 pm »
I just want to add that through reflection a Symbolic AI can grow its repertoire of capabilities and integrate a verbal interface to perform new added functions, without haveing to train on a gagillion or gazillion(I'm not sure which is larger) examples!. So it is possible today to do something like what you see in Star Trek and other scifi movies: "Computer give me a chart of the relationship between alien space ships and the observed wormholes."   :D

I dont undewstand what youw dww does.
maybe you couwd give some inyput and output exampwes ^w^
and what do you meany integwate with anyy cwass ?
how does it decide what to do with any extewnyaw cwass ?

updated class code

*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #4 on: August 27, 2020, 11:08:50 pm »
With reflection, all I need to do is apply the updated class you just made. Meaning I just reload it for the updated version, which could be set up as a file change or some kind of notification that triggers the update. So the process you list in your class is what gets executed.   8)

*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #5 on: August 27, 2020, 11:15:35 pm »
Let me add that languages like c# and java have System IO class monitors that can detect file changes.

*

yotamarker

  • Trusty Member
  • *********
  • Terminator
  • *
  • 841
    • battle programming
Re: can your AI uwu ?
« Reply #6 on: August 28, 2020, 05:47:24 am »

*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #7 on: August 28, 2020, 06:13:23 am »
you must mean run string as code, something like this :
https://stackoverflow.com/questions/4389232/run-piece-of-code-contained-in-a-string

No, it's called Reflection:

Java
.NET

While you can run a piece of code as a string using reflection it's not the best way to use it. If you apply it the way my unit test generator does then the performance hit is only on the first instance of instantiating the object, after that the object is cached for future use and the performance is no different than if you compiled it in the calling code.

*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #8 on: August 28, 2020, 06:25:48 am »
In Python, it's called Introspection.

But Python is largely an interpreter with the exception of CPathyon, so performance with python really isn't there.  :'(

*

frankinstien

  • Starship Trooper
  • *******
  • 354
    • Knowledgeable Machines
Re: can your AI uwu ?
« Reply #9 on: August 29, 2020, 07:16:14 pm »
Since kotlin is a java related language it has reflection as well, which is described here.

 


New Server
by infurl (Announcements)
Today at 12:52:17 am
Releasing full AGI/evolution research
by LOCKSUIT (General Project Discussion)
November 28, 2020, 06:58:33 pm
alert manager class for waifubots
by yotamarker (General AI Discussion)
November 27, 2020, 04:12:22 pm
Giving AI rights
by frankinstien (General Project Discussion)
November 26, 2020, 04:26:07 pm
We are computational machines after all!
by MikeB (General Project Discussion)
November 26, 2020, 08:37:45 am
Pattern based NLP
by MikeB (General Project Discussion)
November 26, 2020, 08:28:32 am
I test Jukebox
by LOCKSUIT (General AI Discussion)
November 25, 2020, 11:27:59 pm
This video puts size into perspective.
by frankinstien (Video)
November 25, 2020, 05:14:56 pm
Syntherapy AI psychotherapist game.
by WriterOfMinds (AI News )
November 27, 2020, 05:33:57 pm
Senate Approves Deepfake bill
by LOCKSUIT (AI News )
November 25, 2020, 02:01:18 am
Sony Patent Suggests PS5 Will Have a Chatbot Feature
by frankinstien (AI News )
November 18, 2020, 05:47:45 pm
Potentially life-saving robot scares bears.
by infurl (Robotics News)
November 12, 2020, 12:41:40 am
good news everyone
by HS (AI News )
November 07, 2020, 10:03:04 pm
Meet Kuki
by 8pla.net (AI News )
November 05, 2020, 04:18:34 am
Realistic and Interactive Robot Gaze by Disney Research
by infurl (AI News )
November 03, 2020, 06:33:15 am
less than one-shot learning
by ivan.moony (AI News )
October 26, 2020, 07:45:25 am

Users Online

115 Guests, 2 Users
Users active in past 15 minutes:
8pla.net, WriterOfMinds
[Trusty Member]

Most Online Today: 117. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles