are there tools to port Python, Java or even Swift code to CPP ?
For which purpose? To generate cpp code for an Arduino?
A little google: convert python to c++ - Google Search.
yes, there is a certain software design pattern I want to use on Arduino
Even if such a tool exists I doubt if it could work for anything beyond a trivial example.
The time taken to define what you want to do for such a tool to work, plus sorting out any problems needed to make it work would be better spent in writing the program in C++
What is the "design pattern" that you want to use ?
yes, most code porters only work on a trivial level, even the Java->Kotlin porter of IntelliJ has issues. but IG it could save me some time.
it's for the LivinGrimoire AGI software design pattern:
public-livinGrimoire/livingrimoire start here/LivinGrimoire python/python files/LivinGrimoire23.py at master · yotamarker/public-livinGrimoire (github.com)
but only the core classes:
- AbsDictionaryDB
- APSay:Mutatable
- DeepCopier
- APVerbatim:Mutatable
- GrimoireMemento
- Algorithm
- CldBool
- APCldVerbatim:APVerbatim
- Kokoro
- Neuron
- DiSkillUtils
- DiSkillV2
- DiHelloWorld:DiSkillV2
- Cerabellum
- Fusion
- Thinkable
- Chobits:Thinkable
never found anything which will deal with complex code
Java to C++ is not too difficult as many of the statements are similar - libraries etc tend to be the problem
recently did a conversion from Java to C# - I found it simpler to take a specification of the original Java and implement it in C#
what do you mean by specification?
A requirements specification is a document that describes what the system will do and how it will be expected to perform.
if you have an existing product (say in java) you determine what it does from a user point view and draw up the requirements specifiction - it may be possible to extract algorithms from the code to simplify the process of porting to C++
well, if 2 AI objects communicate via a shallow reference Object, how else would one define it other than telepathic communication?
their project manager is working on a light version for C++
out of only 5 classes:
Perhaps just obfuscation to show everyone how clever (he thinks) he is?
he didn't call strings emotions.
the emot String represents parts of an Algorithm(action) which can represent an emotion.
Are you referring to yourself in the third person now @mister_meeseeks? Because you previously claimed you created this "LivinGrimoire" thing:
I may be wrong, but it's not impossible that the floccinaucinihilipilification
the project is facing, could be caused by the licensing thing.
people think they can't build a profit from it, so they rule it out and trash talk it.
maybe some form of purchasable license which would enable monetary gain be a fix to the problem.
maybe it's something else. I just think it would be awesome to see more ppl working on it. it makes coding fun and lazy(my opinion).
what more documentation does it need?
b1: Brain = Brain()
b1.logicChobit.addSkill(DiHelloWorld()) # replies hello world to hello
b1.hardwareChobit.addSkill(DiSysOut()) # prints the output
b1.doIt("hello", "", "") # prints hello world
it's just .addskill(skill name()) then .doIt("input","input2", "input3")
is that such a complex thing to comprehend?
step 1 add skills, step 2 feed input.
well it is what it is IG. the C++ ver will be awesome
I think whole topic is not a real question, but just an advertisement of this program product
Time to travel to the next forum?
probably yes. ppl here can't even comprehend the concept of 1 line of code. it's very much beneath my level TBH.
well I was asked what I want to code port, so I answered
