PieMC-Dev / PieMC

🍰 PieMC is an exciting open-source project aimed at developing a powerful and customizable Minecraft Bedrock server software using Python 🐍
https://piemc-dev.github.io
GNU General Public License v3.0
90 stars 23 forks source link

Create yaml.h #35

Closed OpposedDeception closed 1 month ago

OpposedDeception commented 1 year ago

Added yaml.h header with data structutes and functions defined

lapismyt commented 1 year ago

I don't merge it now, because i don't know how we can use this from Python, sorry. Probably, i merge this later.

UCYT5040 commented 1 year ago

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

OpposedDeception commented 1 year ago

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

C is inherently faster and provides safe memory allocation. Plus you can compile C code as a shared library and use in Python.

lapismyt commented 1 year ago

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

Yes, but compiled C/C++ much faster than Python

UCYT5040 commented 1 year ago

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

C is inherently faster and provides safe memory allocation. Plus you can compile C code as a shared library and use in Python.

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

Yes, but compiled C/C++ much faster than Python

Then why don't we design an entirely C/C++ server? I don't see a point in using multiple languages here.

OpposedDeception commented 1 year ago

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

C is inherently faster and provides safe memory allocation. Plus you can compile C code as a shared library and use it in Python.

@lapismyt Why should we ever merge this? If I'm not mistaken, this is a Python project, not a C/C++ project, so why rewrite existing Python files? Same for #34

Yes, but compiled C/C++ much faster than Python

Then why don't we design an entirely C/C++ server? I don't see a point in using multiple languages here.

Low-level functions can be written in C as an extension and used in Python, and code will be faster