Ruby, a simple and fast object-oriented (object-oriented programming) scripting language, was developed by Japanese Yukihiro Matsumoto in the 1990s, complying with the GPL and RubyLicense. Its inspiration and features come from Perl, Smalltalk, Eiffel, Ada and Lisp. The Ruby language itself has also evolved Ruby language alternatives to other platforms such as JRuby (Java platform) and IronRuby (.NET platform). The author of Ruby began writing Ruby on February 24, 1993, and was not officially publicly released in fj (news group) until December 1995. Because Perl is pronounced the same as the birthstone pearl in June, Ruby is named after the birthstone ruby ​​(ruby) in July.
Ruby language featuresFully object oriented
In the Ruby language, everything is an object, including basic data types in other languages, such as integers.
Variable has no type
Ruby variables can hold any type of data.
Everything has a value
Whether it is a mathematical or logical expression or a statement, there will be a value.
The ruby ​​language is very elegant and can be read without comments.
Ruby's advantagesSimple syntax
Ordinary object-oriented functions (classes, method calls, etc.)
Special object-oriented features (Mixin, special methods, etc.)
Operator overloading
Error handling function
Iterators and closures
Garbage collection
Dynamic loading (depending on system architecture)
High portability. Not only can run on most UNIX, but also on DOS, Windows, Mac, BeOS and other platforms.
Suitable for rapid development, the general development efficiency is 5 times that of JAVA.
Analysis of ruby ​​development prospects 1. Virtualization of Ruby languageThe virtual machine mentioned here refers specifically to the program virtual machine, that is, the virtual running environment of the program, or more precisely, the language virtual machine at the compiler and running level.
A computer language must be adopted by the enterprise, and its performance and speed are important factors. A virtual machine is one of the important and essential ways to solve this problem.
Current virtual machines are moving from single-language virtual machines to multi-language virtual machines. For example, the Java language virtual machine has changed from a Java language to a virtual machine shared by multiple languages. We know that the JRuby language can run on this virtual machine, and Jython is also implementing the virtual machine. Another example is Parrot, the most mature virtual machine for dynamic languages. Although the virtual machine is designed for the Perl language, it is also a virtual machine that can be a Ruby language. Although this is a trend, the author believes that the performance of a single-language virtual machine should be better. It is reported that Ruby 2.0 may use its own single language virtual machine Rite.
Although CRuby has not yet seen its own virtual machine, the commercial needs of the Ruby language virtual machine are obvious. This is also one of the purposes of the JRuby language implementation. In addition to JRuby's own virtual machine, the Ruby language virtual machine is also constantly appearing, such as the Smalltalk-80 language-based Ruby language virtual machine Shotgun. As can be seen from the homepage of the website, Shotgun's goal is very clear, that is, to serve the business. It can support the running of compiled code, so that it can support the encryption of the code to effectively protect the intellectual property of the software, which is a top priority in commercial applications. In addition, its interpreter kernel is simpler and easier to maintain, saving labor, material and time. In particular, it is worth noting that the performance of the Ruby language virtual machine is not at the cost of hardware, but is based on the implementation of the software itself, and the potential for such implementation is increasing.
With the constant innovation of the Ruby language virtual machine, it is certain that the application software of the Ruby language and its framework will be more abundant. Before other Ruby language virtual machines have yet to appear, the JRuby language will become a non-negligible choice by leveraging the power of the Java language and the increasing performance of multi-core computers.
2, the realization of Ruby language diversificationAs the Ruby language is implemented more and more, the concept of the Ruby language is changing. In 2000 or later, the Ruby language generally refers to the official version of Ruby implemented in C, but now the Ruby language is becoming a general concept, or technical specification of the language.
We can analyze the implementation of the Ruby language in three ways. One is the implementation of compatibility for CRuby; the second is an incompatible implementation of the Ruby language style, and the third is the implementation of a domain-specific language based on the Ruby language.
Below we list some important Ruby language implementations for CRuby compatibility:
Ruby language implemented in C language = Ruby or CRuby (unofficial name)
Ruby language implemented in Java language = JRuby (sponsored by Sun)
The Ruby language implemented in C language based on the Smalltalk-80 architecture = Rubinius (sponsored by EnginYard, which gathers a large number of Ruby language experts)
Ruby language implemented in Objective-C language = MacRuby (sponsored by Apple)
In the above list, except for the official version of Ruby, other implementations are sponsored by large companies. Why should big companies sponsor these open source projects? The mystery is not known. However, what is certain is their recognition of the future of the Ruby language.
The diversification of the implementation of the Ruby language should be said to be the result of a hundred flowers blossoming in the development of the Ruby language. This is a good thing. But the problem that may arise is that the compatibility between the implementations of the Ruby language is like the development of Linux.
Ruby is still the most important implementation of the Ruby language until today. With the project YARV merged into Ruby, Ruby's performance has made a big leap. The result of this merge is the released development version Ruby1.9. When the implementation of the JRuby language is further refined, the compatibility issue with Ruby will become more and more obvious. Although the two parties are communicating and coordinating, the incompatibility between the two implementations is always there. For example, threading problems, even if it is a small command, there are differences. And fundamentally, the so-called compatibility is only one-way, that is, JRuby is compatible with CRuby, otherwise it is not. This situation is itself a kind of separation from each other. Incompatibilities create huge hassles and obstacles for businesses and developers.
With the emergence of incompatible, Ruby-language-style languages, it will also impact and influence the development of the Ruby language. Like the Sapphire language, the language claims that it has a Ruby language grammar style and is much simpler. Its most important design ideas are consistent, explicit and deep object-oriented. This emerging Ruby language, although the current language itself has little influence, its emergence at least gives us a new thinking and inspiration.
The domain-specific language DSL (DomainSpecificLanguages) implemented in the Ruby language is one of the most important features of the Ruby language. It makes the application of the Ruby language more extensive and deeper, and a lot of DSL emerges in the Rails framework, which is one of the reasons for the success of Rails. The templating system Malline makes the code easier to maintain and manage, and in code development you can only develop web pages in Ruby without having to worry about other languages ​​like HTML. There is also a desktop layout language based on LEL that makes desktop software development easier and more convenient.
All in all, the diversification of the Ruby language is the inevitable development of the Ruby language. We can only find the best implementation of the Ruby language by breaking the frame. Only the best can bring the greatest return, and the current development direction of the Ruby language is exactly Go along this road.
The utility model provides a disposable electronic cigarette, comprising: a hollow shell, the bottom of the shell is provided with a lower cover; the shell contains an atomizer, and the outer side of the atomizer is sheathed with a disposable cigarette A bomb, a microphone cover is arranged under the atomizer, a microphone is covered under the microphone cover, a battery is arranged on one side of the atomizer, and an upper cover is arranged on the top of the casing; The atomizer includes an atomizing core, an oil-absorbing cotton sleeved on the outside of the atomizing core, and an atomizer outer tube sleeved on the outside of the oil-absorbing cotton. The disposable electronic cigarette provided by the utility model absorbs the smoke oil on the surface through the absorbing cotton, and then atomizes the smoke through the atomizing core, which greatly reduces the risk of oil leakage, at the same time, reduces the burning of cotton and ensures the smoking taste.The utility model provides a disposable electronic cigarette, comprising: a hollow shell, the bottom of the shell is provided with a lower cover; the shell contains an atomizer, and the outer side of the atomizer is sheathed with a disposable cigarette A bomb, a microphone cover is arranged under the atomizer, a microphone is covered under the microphone cover, a battery is arranged on one side of the atomizer, and an upper cover is arranged on the top of the casing; The atomizer includes an atomizing core, an oil-absorbing cotton sleeved on the outside of the atomizing core, and an atomizer outer tube sleeved on the outside of the oil-absorbing cotton. The disposable electronic cigarette provided by the utility model absorbs the smoke oil on the surface through the absorbing cotton, and then atomizes the smoke through the atomizing core, which greatly reduces the risk of oil leakage, at the same time, reduces the burning of cotton and ensures the smoking taste.The utility model provides a disposable electronic cigarette, comprising: a hollow shell, the bottom of the shell is provided with a lower cover; the shell contains an atomizer, and the outer side of the atomizer is sheathed with a disposable cigarette A bomb, a microphone cover is arranged under the atomizer, a microphone is covered under the microphone cover, a battery is arranged on one side of the atomizer, and an upper cover is arranged on the top of the casing; The atomizer includes an atomizing core, an oil-absorbing cotton sleeved on the outside of the atomizing core, and an atomizer outer tube sleeved on the outside of the oil-absorbing cotton. The disposable electronic cigarette provided by the utility model absorbs the smoke oil on the surface through the absorbing cotton, and then atomizes the smoke through the atomizing core, which greatly reduces the risk of oil leakage, at the same time, reduces the burning of cotton and ensures the smoking taste.
maskking vape,maskking vape price,maskking vape review,maskking vape shop,,maskking vape cost,maskking vape disposable,maskking vape informacion
Suizhou simi intelligent technology development co., LTD , https://www.msmvape.com