
Have you ever wondered what JavaScript code looks like for a programmer whose native language is English? Imagine how much more comfortable it is for them to read and write code in their “native” language, how fast the development time is and the number of bugs decreases. But the use of the English language as a basis for programming languages is not due to anything, except that "it has historically been the same."
Why do not we call variables in Russian? After all, there is no technical need for this: Unicode support is now available in almost any development environment and in most popular languages. Surely if your team is in Russia, then most of your developers know Russian better than English!
These are the main arguments that guided us when deciding to write our own Russian programming language.
On the other hand, let's face it: why reinvent the next bike? It is unlikely that a language created by a small group of enthusiasts will ever be able to compete with such monsters as JavaScript or Python. After some discussion, having calmed down our ardor, we decided to start small and write a transpiller in JavaScript.
This is how our project was born -
PycckuuJS .
The first thing we decided to start with is a webpack loader, which you can view in the
repository on GitHub .
The process of its installation and use is as simple and convenient as possible. Just install the
npm package and add the pycckuu-loader to your webpack.config.js for files with .as extension.
')
Here is an example of a minimal configuration file:
module.exports = {
entry: "./.",
output: {
path: __dirname,
filename: "result.js"
},
module: {
loaders: [
{ test: /\.$/, loader: "pycckuu" }
]
}
};
JavaScript.
, :
= ['', '', '']
= (){
.(' ' + + '!')
}
( =0; <.; ++){
([])
}
:
var = ['', '', '']
var = function(){
console.log(' ' + + '!')
}
for(var =0; <.length; ++){
([])
}
GitHub.
loader MVP (Minimum viable product), pull-, .
pycckuu-loader .
UPD , .