Name | loka-lang JSON |
Version |
0.3.0
JSON |
| download |
home_page | https://github.com/cedric202012/loka |
Summary | Un langage de programmation moderne pour l'IA, créé par ALLE OSSEY ANGE CEDRIC |
upload_time | 2025-01-24 14:23:03 |
maintainer | None |
docs_url | None |
author | LOKA Developer |
requires_python | >=3.8 |
license | MIT License
Copyright (c) 2025 LOKA Programming Language
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.
|
keywords |
programming-language
ai
machine-learning
|
VCS |
 |
bugtrack_url |
|
requirements |
llvmlite
numpy
scikit-learn
pytest
black
flake8
sphinx
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# LOKA - Un langage de programmation moderne pour l'IA


LOKA est un langage de programmation moderne conçu pour être plus facile que Python et plus performant que C++, spécialement optimisé pour l'IA et le machine learning.
## 🚀 Installation
```bash
pip install loka-lang
```
## 📖 Guide d'utilisation
### Syntaxe de base
LOKA supporte deux syntaxes : française et anglaise. Voici les mots-clés principaux :
| Français | English | Description |
|-----------|-----------|--------------------------------|
| fonction | function | Définir une fonction |
| classe | class | Définir une classe |
| si | if | Condition |
| sinon | else | Alternative |
| pour | for | Boucle |
| tant que | while | Boucle conditionnelle |
| retourne | return | Retourner une valeur |
| affiche | print | Afficher dans la console |
### Exemples de base
#### Hello World
```loka
fonction main() {
affiche("Bonjour depuis LOKA!")
}
```
#### Calculs mathématiques
```loka
fonction calculer(x, y) {
retourne x * y + 100
}
fonction main() {
resultat = calculer(5, 10)
affiche("Le résultat est : " + resultat)
}
```
### 🧮 Opérations Matricielles
LOKA intègre nativement le support des opérations matricielles via NumPy :
```loka
# Création et manipulation de matrices
fonction matrices_exemple() {
# Créer une matrice 2x2
A = matrice([[1, 2], [3, 4]])
B = matrice([[5, 6], [7, 8]])
# Multiplication matricielle
C = A * B
affiche("Résultat : " + C)
}
```
### 🤖 Intelligence Artificielle
LOKA facilite l'intégration avec les bibliothèques d'IA :
```loka
# Classification simple
fonction classification() {
# Charger les données
donnees = charger_donnees("data.csv")
# Créer et entraîner un modèle
modele = ClassifieurIA()
modele.entrainer(donnees.X, donnees.y)
# Prédire
predictions = modele.predire(donnees.X_test)
affiche("Précision : " + modele.precision)
}
```
### 🏗️ Programmation Orientée Objet
```loka
classe Voiture {
fonction constructeur(marque, modele) {
this.marque = marque
this.modele = modele
}
fonction description() {
retourne "Voiture " + this.marque + " " + this.modele
}
}
fonction main() {
maVoiture = Voiture("Renault", "Clio")
affiche(maVoiture.description())
}
```
## 📂 Structure des fichiers LOKA
- Les fichiers LOKA utilisent l'extension `.loka`
- Un fichier peut contenir plusieurs classes et fonctions
- La fonction `main()` est le point d'entrée du programme
## 🛠️ Exécution des programmes
Pour exécuter un fichier LOKA :
```bash
python -m loka mon_programme.loka
```
## 🔍 Débogage
LOKA inclut des outils de débogage intégrés :
```loka
fonction debug_exemple() {
# Active le mode debug
debug.activer()
# Affiche les variables
x = 42
debug.afficher(x)
# Désactive le mode debug
debug.desactiver()
}
```
## 🎯 Cas d'usage
### 1. Analyse de données
```loka
fonction analyser_donnees(fichier) {
donnees = charger_csv(fichier)
stats = donnees.statistiques()
graphique = donnees.visualiser()
affiche("Moyenne : " + stats.moyenne)
affiche("Écart-type : " + stats.ecart_type)
graphique.sauvegarder("resultats.png")
}
```
### 2. Apprentissage automatique
```loka
fonction entrainer_modele() {
# Préparation des données
donnees = preparer_donnees()
# Création du modèle
modele = ReseauNeuronal([
Couche(128, "relu"),
Couche(64, "relu"),
Couche(10, "softmax")
])
# Entraînement
modele.entrainer(donnees, epochs=10)
# Évaluation
precision = modele.evaluer(donnees.test)
affiche("Précision : " + precision)
}
```
## 📚 Ressources supplémentaires
- [Documentation complète](https://loka-lang.readthedocs.io/)
- [Tutoriels vidéo](https://youtube.com/loka-lang)
- [Forum communautaire](https://github.com/cedric202012/loka/discussions)
## 🤝 Contribution
Les contributions sont les bienvenues ! Consultez notre guide de contribution pour commencer.
## 📄 Licence
LOKA est distribué sous la licence MIT. Voir le fichier `LICENSE` pour plus de détails.
Raw data
{
"_id": null,
"home_page": "https://github.com/cedric202012/loka",
"name": "loka-lang",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "programming-language, AI, machine-learning",
"author": "LOKA Developer",
"author_email": "ALLE OSSEY ANGE CEDRIC <cedric.alle@example.com>",
"download_url": "https://files.pythonhosted.org/packages/09/16/53d3ac2f21a743957ab6a6d635bc0516d17237239a2bf19d351358ba5fc1/loka_lang-0.3.0.tar.gz",
"platform": null,
"description": "# LOKA - Un langage de programmation moderne pour l'IA\n\n\n\n\nLOKA est un langage de programmation moderne con\u00e7u pour \u00eatre plus facile que Python et plus performant que C++, sp\u00e9cialement optimis\u00e9 pour l'IA et le machine learning.\n\n## \ud83d\ude80 Installation\n\n```bash\npip install loka-lang\n```\n\n## \ud83d\udcd6 Guide d'utilisation\n\n### Syntaxe de base\n\nLOKA supporte deux syntaxes : fran\u00e7aise et anglaise. Voici les mots-cl\u00e9s principaux :\n\n| Fran\u00e7ais | English | Description |\n|-----------|-----------|--------------------------------|\n| fonction | function | D\u00e9finir une fonction |\n| classe | class | D\u00e9finir une classe |\n| si | if | Condition |\n| sinon | else | Alternative |\n| pour | for | Boucle |\n| tant que | while | Boucle conditionnelle |\n| retourne | return | Retourner une valeur |\n| affiche | print | Afficher dans la console |\n\n### Exemples de base\n\n#### Hello World\n```loka\nfonction main() {\n affiche(\"Bonjour depuis LOKA!\")\n}\n```\n\n#### Calculs math\u00e9matiques\n```loka\nfonction calculer(x, y) {\n retourne x * y + 100\n}\n\nfonction main() {\n resultat = calculer(5, 10)\n affiche(\"Le r\u00e9sultat est : \" + resultat)\n}\n```\n\n### \ud83e\uddee Op\u00e9rations Matricielles\n\nLOKA int\u00e8gre nativement le support des op\u00e9rations matricielles via NumPy :\n\n```loka\n# Cr\u00e9ation et manipulation de matrices\nfonction matrices_exemple() {\n # Cr\u00e9er une matrice 2x2\n A = matrice([[1, 2], [3, 4]])\n B = matrice([[5, 6], [7, 8]])\n \n # Multiplication matricielle\n C = A * B\n \n affiche(\"R\u00e9sultat : \" + C)\n}\n```\n\n### \ud83e\udd16 Intelligence Artificielle\n\nLOKA facilite l'int\u00e9gration avec les biblioth\u00e8ques d'IA :\n\n```loka\n# Classification simple\nfonction classification() {\n # Charger les donn\u00e9es\n donnees = charger_donnees(\"data.csv\")\n \n # Cr\u00e9er et entra\u00eener un mod\u00e8le\n modele = ClassifieurIA()\n modele.entrainer(donnees.X, donnees.y)\n \n # Pr\u00e9dire\n predictions = modele.predire(donnees.X_test)\n affiche(\"Pr\u00e9cision : \" + modele.precision)\n}\n```\n\n### \ud83c\udfd7\ufe0f Programmation Orient\u00e9e Objet\n\n```loka\nclasse Voiture {\n fonction constructeur(marque, modele) {\n this.marque = marque\n this.modele = modele\n }\n \n fonction description() {\n retourne \"Voiture \" + this.marque + \" \" + this.modele\n }\n}\n\nfonction main() {\n maVoiture = Voiture(\"Renault\", \"Clio\")\n affiche(maVoiture.description())\n}\n```\n\n## \ud83d\udcc2 Structure des fichiers LOKA\n\n- Les fichiers LOKA utilisent l'extension `.loka`\n- Un fichier peut contenir plusieurs classes et fonctions\n- La fonction `main()` est le point d'entr\u00e9e du programme\n\n## \ud83d\udee0\ufe0f Ex\u00e9cution des programmes\n\nPour ex\u00e9cuter un fichier LOKA :\n\n```bash\npython -m loka mon_programme.loka\n```\n\n## \ud83d\udd0d D\u00e9bogage\n\nLOKA inclut des outils de d\u00e9bogage int\u00e9gr\u00e9s :\n\n```loka\nfonction debug_exemple() {\n # Active le mode debug\n debug.activer()\n \n # Affiche les variables\n x = 42\n debug.afficher(x)\n \n # D\u00e9sactive le mode debug\n debug.desactiver()\n}\n```\n\n## \ud83c\udfaf Cas d'usage\n\n### 1. Analyse de donn\u00e9es\n```loka\nfonction analyser_donnees(fichier) {\n donnees = charger_csv(fichier)\n stats = donnees.statistiques()\n graphique = donnees.visualiser()\n \n affiche(\"Moyenne : \" + stats.moyenne)\n affiche(\"\u00c9cart-type : \" + stats.ecart_type)\n \n graphique.sauvegarder(\"resultats.png\")\n}\n```\n\n### 2. Apprentissage automatique\n```loka\nfonction entrainer_modele() {\n # Pr\u00e9paration des donn\u00e9es\n donnees = preparer_donnees()\n \n # Cr\u00e9ation du mod\u00e8le\n modele = ReseauNeuronal([\n Couche(128, \"relu\"),\n Couche(64, \"relu\"),\n Couche(10, \"softmax\")\n ])\n \n # Entra\u00eenement\n modele.entrainer(donnees, epochs=10)\n \n # \u00c9valuation\n precision = modele.evaluer(donnees.test)\n affiche(\"Pr\u00e9cision : \" + precision)\n}\n```\n\n## \ud83d\udcda Ressources suppl\u00e9mentaires\n\n- [Documentation compl\u00e8te](https://loka-lang.readthedocs.io/)\n- [Tutoriels vid\u00e9o](https://youtube.com/loka-lang)\n- [Forum communautaire](https://github.com/cedric202012/loka/discussions)\n\n## \ud83e\udd1d Contribution\n\nLes contributions sont les bienvenues ! Consultez notre guide de contribution pour commencer.\n\n## \ud83d\udcc4 Licence\n\nLOKA est distribu\u00e9 sous la licence MIT. Voir le fichier `LICENSE` pour plus de d\u00e9tails.\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2025 LOKA Programming Language\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Un langage de programmation moderne pour l'IA, cr\u00e9\u00e9 par ALLE OSSEY ANGE CEDRIC",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://github.com/cedric202012/loka",
"Repository": "https://github.com/cedric202012/loka.git"
},
"split_keywords": [
"programming-language",
" ai",
" machine-learning"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "22ab6e873663ed0dc71039a8358fcfedeb23879d0caccd4b45adad4b999fcc75",
"md5": "4770676aa6f39654a30a4db471369a21",
"sha256": "9f349824c1c83f225d09414f1af49113a16768006d32fd1844ae85ca656af1fa"
},
"downloads": -1,
"filename": "loka_lang-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4770676aa6f39654a30a4db471369a21",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 15088,
"upload_time": "2025-01-24T14:23:01",
"upload_time_iso_8601": "2025-01-24T14:23:01.535961Z",
"url": "https://files.pythonhosted.org/packages/22/ab/6e873663ed0dc71039a8358fcfedeb23879d0caccd4b45adad4b999fcc75/loka_lang-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "091653d3ac2f21a743957ab6a6d635bc0516d17237239a2bf19d351358ba5fc1",
"md5": "47c0f36258c5931f9ba873d1a1e38f51",
"sha256": "78f417cb3eb02cceda0ad45eb06ec1d501b95785a84c4d6c85ba86b46135aae4"
},
"downloads": -1,
"filename": "loka_lang-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "47c0f36258c5931f9ba873d1a1e38f51",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 17570,
"upload_time": "2025-01-24T14:23:03",
"upload_time_iso_8601": "2025-01-24T14:23:03.008851Z",
"url": "https://files.pythonhosted.org/packages/09/16/53d3ac2f21a743957ab6a6d635bc0516d17237239a2bf19d351358ba5fc1/loka_lang-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-24 14:23:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cedric202012",
"github_project": "loka",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "llvmlite",
"specs": [
[
">=",
"0.40.0"
]
]
},
{
"name": "numpy",
"specs": [
[
">=",
"1.21.0"
]
]
},
{
"name": "scikit-learn",
"specs": [
[
">=",
"1.0.0"
]
]
},
{
"name": "pytest",
"specs": [
[
">=",
"7.0.0"
]
]
},
{
"name": "black",
"specs": [
[
">=",
"22.0.0"
]
]
},
{
"name": "flake8",
"specs": [
[
">=",
"4.0.0"
]
]
},
{
"name": "sphinx",
"specs": [
[
">=",
"4.0.0"
]
]
}
],
"lcname": "loka-lang"
}