Rust in Linux, AoT Compiler in React
Tags: rust, react, linux
Published: 2021-12-20 10:27:04

---
title: Rust in Linux, AoT Compiler in React
published: true
description: 
tags: rust, reactjs, linux
//cover_image: https://www.youtube.com/watch?v=lGEMwh32soc //https://direct_url_to_image.jpg
//comments: https://deliverystack.net/2021/06/25/comparing-rust-and-c/
---
Some interesting things are happening in the development space as we head into 2022. I will highlight two

### Rust

I am very excited about conversations materializing into Rust's adoption as [linux's second language] (https://www.zdnet.com/article/rust-takes-a-major-step-forward-as-linuxs-second-official-language/) (also the [preamble](https://www.zdnet.com/article/rust-in-the-linux-kernel-why-it-matters-and-whats-happening-next/), and [here too] (https://www.theregister.com/2021/11/10/where_rust_fits_into_linux/)). This is of-course great news for Rust's adoption metrics, but as an applications developer, I believe this will expose some application developers to start using Rust.

Personally I have wanted to adapt a systems programming language, since this will make for a better developer, and Rust is my top candidate

I believe Rust stands on its own merit on speed and memory safety, and this is no mean feat i.e. writing code without sacrificing safety - and not depending on garbage collection for this by enforcing proper coding conventions. Memory safety enhances application security and stability. The speed metric is comparable to C, C++

> As revealed by a Microsoft engineer in early 2019, about 70% of all vulnerabilities in their products are due to [memory safety issues.](https://www.zdnet.com/article/microsoft-70-percent-of-all-security-bugs-are-memory-safety-issues/)

I hope Rust will **a)** either be adapted into a major game engine or **b)** one of Rust's game engine will have wide scale adoption. This will encourage development of games with surety of the aforementioned features, in essence increasing adoption.. well.. my adoption at-least 😬.
> some game engines
https://github.com/PistonDevelopers
https://www.libhunt.com/l/rust/topic/game-engine
https://github.com/rg3dengine/rg3d
https://medium.com/pragmatic-programmers/game-development-with-rust-31147f7b6096

Rust is a newer generation language that stands on the shoulders of its predecessors, adopting years of learnings and research in language design. In this regard, Rust tries to bridge the worlds of Application and System development. Rust also has high priority for [interop](https://sebnilsson.com/blog/from-csharp-to-rust-introduction/) with other languages [Rust in C#](https://codingupastorm.dev/2020/05/04/executing-rust-from-csharp/), [Rust in Unreal](https://ejmahler.github.io/rust_in_unreal/)

### React
I think I have waxed lyrical on Svelte [enough times](https://keymannerdawid.medium.com/react-hooks-svelte-knockoutjs-angular1-in-2021-cd7c647d47a9). Svelte popularized  Ahead-of-Time compilation in front-end frameworks, eliminating the use of [shipping a runtime with compiled code](https://www.syntaxsuccess.com/viewarticle/optimizing-applications-using-svelte), but I digress.

The idea of Ahead-of-Time compilation for app memoization is currently being researched in React Labs, the [auto-memoization compiler](https://youtu.be/lGEMwh32soc), ensuring optimized output.

I really do commend the approach of the react team on implementing updates: New features are introduced whilst ensuring backwards compatibility, giving developers enough time to migrate to the 'new normal'. 👍🏽

Happy Holidays, Onwards to 2022