Skip to content

Commit

Permalink
New architecture and better perfomance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolfo Herrera committed Jul 31, 2021
1 parent 694aef7 commit 23001fb
Show file tree
Hide file tree
Showing 17 changed files with 611 additions and 797 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Rodolfo Herrera Hernandez

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file modified Zenda
Binary file not shown.
8 changes: 3 additions & 5 deletions Zenda.cxx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#include <iostream>
using namespace std;

#include "src/Engine.hxx" // Import Engine
#include "src/Engine.hxx"

int main(int argc, char* argv[]){
int main(int argc, char *argv[]){

ZendaJS ZendaJS; // Creating instance

ZendaJS.Initialize(argc, argv); // Initialize Zenda
Initialize(argc, argv);

return 0;
}
4 changes: 2 additions & 2 deletions examples/computer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ console.log(OperativeSystem);

// Using sleep for wait and execute instructions after wait
console.log('Showing network interface in next 5 seconds...');
sleep(5);
sleep(5000);

// Executin command by OS
// Executing command by OS
if(OperativeSystem.startsWith('WIN')){

// Running command
Expand Down
2 changes: 1 addition & 1 deletion examples/fake_data_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FakerGenerator{
}

// Using PythonString
DataOutput = () => pythonString(`
DataOutput = () => pythonQuickString(`
from faker import Faker
from faker.providers import internet
Expand Down
2 changes: 1 addition & 1 deletion examples/import/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const SayHelloWithPython = () => {
pythonString("print('Hello world')");
pythonQuickString("print('Hello world')");
}

export const MyVar = "Hello";
Expand Down
5 changes: 1 addition & 4 deletions examples/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ sleep(1000); // 1 second / 500 = 500 ms
creator();

// Version -> Get Zenda version
version();

// Getcwd -> Get current working directory
console.log(getcwd())
version();
9 changes: 6 additions & 3 deletions examples/python_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ Your message is {MESSAGE} and it contains {len(MESSAGE)} characteres!
`;

// Calling the pythonString function for execute code
pythonString(code);
pythonQuickString(code);

// Calling Python File
pythonFile('examples/PyIntegrationExample.py')
pythonQuickFile('examples/PyIntegrationExample.py')

// You need enter exact python file location :)
// You need enter exact python file location :)

// Use pythonFancyFile for get better perfomance, u need python in your OS.
pythonFancyFile('examples/PyIntegrationExample.py')
Loading

0 comments on commit 23001fb

Please sign in to comment.