Supercharge Your Applications with GraalVM: Hands-on examples to optimize and extend your code using GraalVM's high performance and polyglot capabilit
暫譯: 用 GraalVM 超充您的應用程式:實作範例優化與擴展您的程式碼,利用 GraalVM 的高效能與多語言能力

B Vijay Kumar

  • 出版商: Packt Publishing
  • 出版日期: 2021-08-10
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 356
  • 裝訂: Paperback
  • ISBN: 1800564902
  • ISBN-13: 9781800564909
  • 相關分類: Java 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Understand the internals and architecture of GraalVM with the help of hands-on experiments and gain deep knowledge that you can apply to improve your application's performance, interoperability, and throughput.

Key Features

  • Generate faster and leaner code with minimum computing resources for high performance
  • Compile Java applications faster than ever to a standalone executable called native images
  • Create high-performance polyglot applications that are compatible across various JVM and non-JVM languages

Book Description

GraalVM is a universal virtual machine that allows programmers to compile and run applications written in both JVM and non-JVM languages. It improves the performance and efficiency of applications, making it an ideal companion for cloud-native or microservices-based applications.

This book is a hands-on guide, with step-by-step instructions on how to work with GraalVM. Starting with a quick introduction to the GraalVM architecture and how things work under the hood, you'll discover the performance benefits of running your Java applications on GraalVM. You'll then learn how to create native images and understand how AOT (ahead-of-time) can improve application performance significantly. The book covers examples of building polyglot applications that will help you explore the interoperability between languages running on the same VM. You'll also see how you can use the Truffle framework to implement any language of your choice to run optimally on GraalVM.

By the end of this book, you'll not only have learned how GraalVM is beneficial in cloud-native and microservices development but also how to leverage its capabilities to create high-performing polyglot applications.

What you will learn

  • Gain a solid understanding of GraalVM and how it works under the hood
  • Work with GraalVM's high performance optimizing compiler and see how it can be used in both JIT (just-in-time) and AOT (ahead-of-time) modes
  • Get to grips with the various optimizations that GraalVM performs at runtime
  • Use advanced tools to analyze and diagnose performance issues in the code
  • Compile, embed, run, and interoperate between languages using Truffle on GraalVM
  • Build optimum microservices using popular frameworks such as Micronaut and Quarkus to create cloud-native applications

Who this book is for

This book is for JVM developers looking to optimize their application's performance. You'll also find this book useful if you're a JVM developer looking to explore options to develop polyglot applications using tools from the Python, R, Ruby, or Node.js ecosystem. A solid understanding of software development concepts and prior experience working with programming languages is necessary to get started.

商品描述(中文翻譯)

了解 GraalVM 的內部結構和架構,透過實作實驗獲得深入知識,並應用於提升應用程式的效能、互操作性和吞吐量。

主要特點


  • 以最少的計算資源生成更快且更精簡的程式碼,以達到高效能

  • 將 Java 應用程式更快地編譯為稱為原生映像的獨立可執行檔

  • 創建高效能的多語言應用程式,與各種 JVM 和非 JVM 語言相容

書籍描述

GraalVM 是一個通用虛擬機,允許程式設計師編譯和運行用 JVM 和非 JVM 語言編寫的應用程式。它提高了應用程式的效能和效率,使其成為雲原生或基於微服務的應用程式的理想伴侶。

本書是一本實作指南,提供逐步指導如何使用 GraalVM。從快速介紹 GraalVM 的架構及其內部運作開始,您將發現在 GraalVM 上運行 Java 應用程式的效能優勢。接著,您將學習如何創建原生映像,並了解 AOT(提前編譯)如何顯著提升應用程式效能。本書涵蓋了構建多語言應用程式的範例,幫助您探索在同一虛擬機上運行的語言之間的互操作性。您還將看到如何使用 Truffle 框架實現您選擇的任何語言,以便在 GraalVM 上最佳運行。

在本書結束時,您不僅會學到 GraalVM 在雲原生和微服務開發中的好處,還會了解如何利用其功能創建高效能的多語言應用程式。

您將學到什麼


  • 深入了解 GraalVM 及其內部運作

  • 使用 GraalVM 的高效能優化編譯器,了解其在 JIT(即時編譯)和 AOT(提前編譯)模式下的應用

  • 掌握 GraalVM 在運行時執行的各種優化

  • 使用先進工具分析和診斷程式碼中的效能問題

  • 使用 Truffle 在 GraalVM 上編譯、嵌入、運行和實現語言之間的互操作

  • 使用流行框架如 Micronaut 和 Quarkus 構建最佳微服務,以創建雲原生應用程式

本書適合誰

本書適合希望優化其應用程式效能的 JVM 開發人員。如果您是希望探索使用 Python、R、Ruby 或 Node.js 生態系統中的工具來開發多語言應用程式的 JVM 開發人員,您也會發現本書非常有用。開始之前,需具備扎實的軟體開發概念和先前使用程式語言的經驗。

作者簡介

A B Vijay Kumar is an "IBM Distinguished Engineer" and chief technology officer focused on hybrid cloud management and platform engineering. He is responsible for providing technology strategies for managing complex application portfolios on hybrid cloud platforms using emerging tools and technologies.

He is an IBM Master Inventor who has more than 31 patents issued and 30 pending in his name. He has more than 23 years' experience at IBM. He is recognized as a subject matter expert for his contribution to advanced mobility in automation and has led several implementations involving complex industry solutions. He specializes in mobile, cloud, container, automotive, sensor-based machine-to-machine, Internet of Things, and telematics technologies.

作者簡介(中文翻譯)

A B Vijay Kumar 是一位「IBM 傑出工程師」及首席技術官,專注於混合雲管理和平台工程。他負責提供技術策略,以管理在混合雲平台上使用新興工具和技術的複雜應用程式組合。

他是 IBM 的大師發明家,擁有超過 31 項已授權專利和 30 項待審專利。他在 IBM 擁有超過 23 年的經驗。他因在自動化的先進移動性方面的貢獻而被認可為主題專家,並主導了多個涉及複雜行業解決方案的實施專案。他專精於移動、雲端、容器、汽車、基於感測器的機器對機器、物聯網和遠程信息處理技術。

目錄大綱

Table of Contents

1. Evolutions of JVM
2. JIT, Hotspot, and GraalVM
3. GraalVM Architecture
4. Graal Compiler - JIT, AOT
5. Graal Compiler - Ahead of Time
6. Truffle – An overview
7. Graal Polyglot (Java, Node)
8. GraalVM Polyglot – Java on Truffle, Python and R
9. Graal Polyglot - LLVM, Ruby, WASM
10. Microservices Framework and ARchitecture with Case Study

目錄大綱(中文翻譯)

Table of Contents

1. Evolutions of JVM

2. JIT, Hotspot, and GraalVM

3. GraalVM Architecture

4. Graal Compiler - JIT, AOT

5. Graal Compiler - Ahead of Time

6. Truffle – An overview

7. Graal Polyglot (Java, Node)

8. GraalVM Polyglot – Java on Truffle, Python and R

9. Graal Polyglot - LLVM, Ruby, WASM

10. Microservices Framework and ARchitecture with Case Study