[2019-06-15] Rust Daily: "Record" Rust and Go battle on the performance of image processing

"Series" scripting language used to write Rust

#zhihu #impl_lang

From domestic community NameFactory, he achieved a dynamic language with Rust, and know almost record in his childhood. We can look at, to support what.

Block chain Live Lecture: A Brief History Web3 thought - caused a real chain block entrepreneurs

8:00 tonight, Random Capital Partners Liu Yi teacher will have a lecture on web3, substrate area, so stay tuned

  1. Open Society
  2. Password punk movement
  3. Bitcoin prequel
  4. transaction cost
  5. Why is Bitcoin?
  6. Beyond Bitcoin
  7. World Computer - Ethernet Square
  8. Decentralized to three dimensions
  9. Housinuodeng era
  10. Web3 and Vision
  11. Characteristics Web3 applications
  12. Polkadot/Substrate
  13. History of two clues
  14. Web3 entrepreneurs Souvenir

Gosling live address on the phone: the best micro-channel open

"Code Reading" qrcode-rs Source learn to share

Read More

"Record" Rust and Go battle on the performance of image processing

#image #go

This is a record the group discussion. The main question is: How does this compare Go and Rust image processing performance? (The same scene)

After the authors tested the performance better go.

  • Go consuming: 695.732μs
  • Rust consuming: 8 ms (default release opt-level should be 3)

Explore the reasons:

  1. Go when dealing with the picture is a one-time read memory. Rust branches and is carried out according to the image reading width. Reason, this approach Rust In dealing with some of the big picture more desirable.
  2. Rust at optimizing the use of release opt-level 3, the performance of no more than Go. Check its source code is found because of Rust image libraries, memory problems and memory reallocation copy exists when dealing decode, it should be the cause of performance is lower than Go's.

This case illustrates: Rust does not guarantee the default implementation is a high-performance, developers need to be optimized according to the specific implementation.

In this regard, PingCAP chiefs Liu Tang said: "ah, we can open the back of a talk, Rust How to write high performance code in TiKV stepped inside I do not know how many pit", where stand a Flag. PingCAP Taiwan to participate in this year's annual meeting of the open-source, it may also have related topics.

Read

"Series" Rust "Seal Program"

#sealed

This is from Berlin, Germany, a company focused on Rust consulting and services company Ferrous System wrote the article. This is the first article in the series of articles detailing the plan Ferrous System plans to Rust languages ​​and compilers for safety critical areas of certification, this program is called Rust "Seal Program" (Sealed Rust). In other words, they want huh Rust certified, but certification is not this person's certification, but to Rust languages ​​and compilers, secure authentication on specific areas in order to meet the specific areas (automotive, industrial or avionics safety requirements and other safety requirements for the higher areas) of.

The first article in the series is to describe the contents of the initial flow of the program and other interested can look at. summary:

Currently there are three Rust Release Status: Nightly, Beta and Stable. Now Ferrous intends to put forward a fourth state: Sealed. This version is from the current Rust, the selection of a subset of the features that can be used in specific areas, to release a special version. A bit like #[no_std], specifically for embedded. So, Sealed equivalent is a feature of "seal", which is why I put this plan is called "Seal Program". It is not certain whether the plan will become part of the Rust developed, but the company will conduct the first wave of promotion, and intend Rust Core team. The plan is a long-term plan, they are learning Rust edition, plans to launch the first version of a seal within 18 months. Look at it more original. (Personally, I think this plan is very good)

Read More

vrf-rs: verifiable random function (VRF) Rust Library

#blockchain

It is a fast and scalable verifiable random function (VRF) library currently supports a number of cipher suites oval most widely used.

Read More

Hexagonal architecture Rust custom application derived (derive) macro

#HexagonalArchitecture

The authors look at "Clean Architecture (neat architecture)" a hexagonal architecture mentioned in the book, when done some thinking. Hexagonal structure, also called onion and port adapter architecture or architecture, the architecture of this idea is: embrace dependency inversion. This is very beneficial architecture scalability.

The author of this article is also brewing for a long time, according to his words, that he found very suitable for Rust hexagonal architecture, it can be said is the best choice. the reason?

  1. Rust has a very mature module system.
  2. Rust support for the separation of data and behavior is the language level.
  3. Rust also allows you to automate some of the acts by deriving the macro (derive) way.

Therefore, the authors further investigated the use of derivative macro code that is appropriate in Rust hexagonal architecture, the conclusion is:

In the current state, Rust code base to maximize the use of such infrastructure will lead to something with a custom Rust ecosystem derived produce some "friction." But to see Rust development and solve these problems, he was very excited!

Specific cases to see the original code for it.

Read More

Cloaker: very simple password-based, cross-platform file encryption tool

#FileEncryption

Rust core is achieved, GUI-based CFC / MFC and Qt implementation.

img

cloaker

Rust Hidden talent: accelerate build and release management

#tips

This paper describes based Global build cache to speed up the compilation of a little skill, but there are three important considerations. Further alternative is to use Mozilla produced sccache tool.

Read More

Introduction actix-irc

#actix #irc

Based on a protocol library actix irc and irc library implementation.

Read More

A programming language used for space applications

This article begins throws an interesting question:

In a pure hypothesis scenario, there is a small satellite in space can make people on earth to upload and run their own software on their mission onboard computer. Then, the user will be able to control satellite subsystems. Choose which programming language is best? To allow people to write such software, without fear of prematurely ending task?

Claim:

First, the need for any major language is an area matching the application belongs. Space missions based software can be viewed as a state-based event-driven architecture, in which at least part of the code running in hard real-time, some task activity only under certain conditions. To survive task precedence over scientific or other activities. Therefore, the task of software development process needs to be generated particularly robust code that is expected to expected and unexpected scenario can be executed. Language and semantic tools must be able to enforce specification writing software product code needed.

Second, compared with many terrestrial computer, satellite on-board computer to limit the available hardware resources increase, especially if the CubeSat satellite in question is calculated with limited power and budget (cube satellites, low-cost microsatellite, limited computing resources) . Effective resource utilization must be part of the language function, can directly control memory allocation and CPU cycles.

Third, it should provide adequate support for hardware and software features used on satellites. If we consider the CubeSat, it should include an embedded communications bus, such as I2C, SPI, and CAN, and may need to implement different hardware peripheral devices from a number of defined driver. Modern satellite nano commonly used operating system and FreeRTOS Linux, typically an ARM microprocessor.

Finally, write code using this programming language should be fun. We do not want people to experience the space industry, space exploration; they should not feel frustrated and fear of modern aerospace software development process. If the self-repair of hardware and software people do not like it, then the computer revolution in the 1970s and 1980s can not be achieved. Even if the programming spacecraft is a key task activity, if we want a similar revolution in the aerospace industry, nor should feel the pain and helplessness.

(Rust feeling is tailored for the problem?)

The problem I have also sent to know almost: https://www.zhihu.com/question/329522820 , we welcome the discussion.

The authors look at how to say?

Read More

Which you would like to see developers on GitHub sponsor list?

#github

Come on, give your favorite Rust open source bigwigs (of course, not limited to Rust language) vote.

Read More

Symbolication as a service: Sentry crash debugging information to a lot of trouble capturing Rust

#Symbolication #Debug #Sentry

I.e. symbolic service (Symbolication as a service), a number of symbol code Sentry in the past few months, will be used to move a separate service. Now they are proud to introduce independent native symbols service Symbolicator. Its API is compatible with Microsoft's symbol server, and is always 100% open source.

Read More

Vimeo launched support for royalty-free video codec of AV1

#vimeo #av1

Today, the world's leading professional video platform Vimeo announced support for the new, royalty-free video codec AV1. AV1 codec allows ultra-high resolution and high definition video content at lower bit rate streaming to the audience, without affecting the visual quality. Vimeo joined the Open Media Alliance last year.

In support of the launch of AV1, a founding member of the Open Media Alliance Vimeo Mozilla cooperation. Vimeo using the open-source Mozilla and contributed encoder rav1e (Rust realized AV1 coding library).

So far, Vimeo also be embraced Rust community.

"We are proud to contribute to the development of rav1e encoder and join Mozilla is free and open video efforts in short, we are laying a solid foundation for next-generation video codec, -. Vimeo coding Chief Engineer Vittorio Giovara says. "

rav1e

Jen: template according to the command-line tool to generate false documents

#cli

just


From Daily team Chaos

Daily subscription address:

Independent daily subscription address:

Community learning platform subscription:

Guess you like

Origin blog.csdn.net/u012067469/article/details/92207448