Programming Crystal: Create High-Performance, Safe, Concurrent Apps
暫譯: 編程水晶:創建高效、安全、並發的應用程式
Ivo Balbaert, Simon St. Laurent
- 出版商: Pragmatic Bookshelf
- 出版日期: 2019-03-05
- 定價: $1,220
- 售價: 8.8 折 $1,074
- 語言: 英文
- 頁數: 230
- 裝訂: Paperback
- ISBN: 1680502867
- ISBN-13: 9781680502862
-
相關分類:
Ruby
立即出貨 (庫存=1)
相關主題
商品描述
Crystal is for Ruby programmers who want more performance, or for developers who enjoy working in a high-level scripting environment. Crystal combines native execution speed and concurrency with Ruby-like syntax, so you will feel right at home. This book, the first available on Crystal, shows you how to write applications that have the beauty and elegance of a modern language, combined with the power of types and modern concurrency tooling. Now you can write beautiful code that runs faster, scales better, and is a breeze to deploy.
Crystal is elegant to read and easy to program like Ruby, allowing full object-oriented development. Its compiler is powerful enough to nearly always infer the type of your variables. So you get the benefits of a statically typed language: more robust code, safety and execution speed, while still reaching high productivity in development. Null pointer exceptions as in JavaScript, Java or C#, are a thing of the past: Crystal annihilates them, just like Rust.
Explore the building blocks and design of the language, and how you can use the Crystal tool-chain to build and manage powerful applications. Harness the power of the macro system, as well as how to work with fibers and channels, making concurrency as easy as possible. Learn how to use the Kemal web framework and access databases, and how to tap the potential of existing Crystal libraries. Find the spot that Crystal fills in today's software world with real-world examples.
With Crystal, you can combine the best of both worlds: the high-level coding of dynamic languages, and the safety and blazing performance of a natively compiled language.
What You Need:
To develop in Crystal, you only need Crystal v 0.26 the latest version, a common text editor and a browser.
商品描述(中文翻譯)
Crystal 是為了希望獲得更高效能的 Ruby 程式設計師,或是喜歡在高階腳本環境中工作的開發者而設計的。Crystal 結合了原生執行速度和併發性,並擁有類似 Ruby 的語法,因此你會感到如魚得水。本書是第一本關於 Crystal 的書籍,將教你如何編寫具有現代語言之美和優雅的應用程式,並結合類型的力量和現代併發工具。現在你可以編寫美麗的程式碼,運行更快、擴展性更好,並且部署輕鬆自如。
Crystal 的可讀性優雅,編程也像 Ruby 一樣簡單,允許完全的物件導向開發。它的編譯器足夠強大,幾乎總是能推斷出變數的類型。因此,你可以享受到靜態類型語言的好處:更健壯的程式碼、安全性和執行速度,同時在開發中仍能達到高生產力。像 JavaScript、Java 或 C# 中的空指標異常已成為過去:Crystal 消滅了這些問題,就像 Rust 一樣。
探索語言的基本構建塊和設計,以及如何使用 Crystal 工具鏈來構建和管理強大的應用程式。利用宏系統的力量,以及如何使用纖維和通道,使併發變得盡可能簡單。學習如何使用 Kemal 網頁框架和訪問資料庫,以及如何挖掘現有 Crystal 函式庫的潛力。通過實際範例了解 Crystal 在當今軟體世界中所填補的空白。
使用 Crystal,你可以結合兩者的最佳特性:動態語言的高階編碼,以及原生編譯語言的安全性和驚人的效能。
你需要的:
要在 Crystal 中開發,你只需要最新版本的 Crystal v 0.26、一個常用的文本編輯器和一個瀏覽器。