Rust

8383 readers
7 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS
1
2
 
 

Blog post by Raph Levien, creator of the rust gui framework Xilem and it's predecessor, Druid

3
4
5
6
7
8
9
10
 
 

I found the author post on Reddit and decide to repost it here because it looks like an interesting project. Original text:

Note that the JIT is a beta feature so it is not production ready.

Is this the same as LuaJIT?

No. LuaJIT is tracing JIT while Tsuki is method JIT. LuaJIT should be faster in every cases on vanilla Lua syntax. The ultimate goal of JIT in Tsuki is to boost performance on extension syntax that will be implemented in the future (yes Tsuki will become a superset of Lua 5.4).

How it is implemented?

What JIT currently does is compile Lua instructions into machine code with Cranelift. In other words, it just generate the same code that Rust compiler generate to execute Lua instruction, except it does not read the instruction to execute at runtime. The benefits from this is it eliminate the jump table for the instruction and it known which VM registers to use during compile time. Performance?

On fannkuch-redux benchmark, Tsuki is faster than Lua about 38% on AMD Ryzen 5 5600G and 63% on Apple M1. There are some rooms to optimize this so I expect the performance can be improved in the future.

11
28
Diesel 2.4.0 (diesel.rs)
submitted 1 week ago* (last edited 1 week ago) by weiznich@programming.dev to c/rust@programming.dev
 
 

I'm happy to announce the release of Diesel 2.4.0, a ORM and query builder for Rust. This release contains the development of the last 14 months, including the contributions of 76 people.

Headline features include:

  • Support for database views
  • Improved support for enums
  • Support for batch update statements
  • A distinct backend for MariaDB
  • Extended support for SQLite functionality, including hooks, pragmas and BLOB's
  • Support for using Diesel (SQLite) in a no-std environment
  • Migrations written in Rust
  • Support for diesel-async in #[derive(MultiConnection)]

See the announcement blog post about details to each feature: https://diesel.rs/news/2_4_0_release/

I would like to use this possibility to thank all contributors and sponsors that made this release possible. A special thank goes to Luca for his large contributors to the release, to Prototype Found for funding the development of the Database View support and to RustFoundation for funding the general maintenance.

Nevertheless, the Diesel project is always looking for support. You can help by:

  • Contributing Code, Documentation, or Guides.
  • Answering questions in our discussion forum
  • Reporting bugs in our issue tracker
  • Helping to triage issues in our issue tracker
  • Sponsoring the maintainers.
  • Filling out this survey about about the current state and future developments of Diesel (EDIT: lemmy seems to break that link, please use that one from the blog post instead)

Feel free to answer questions about the release or Diesel in general, I will try to answer them in the next days.

12
 
 

What's in 1.100.0 stable

  • Never type
  • Allocator API
  • DropGuard API
  • Conjuring zero-sized types
  • Reporting unused dependencies in Cargo
  • Reducing Cargo cache collisions
  • Cargo min-publish-age
  • Stabilized APIs
13
 
 

Here the verus github page with some code samples in color:

https://github.com/verus-lang/verus

14
15
16
17
 
 

I'm happy that the support for Aarch64 in rustc_codegen_gcc is getting closer to x86-64! Next step is some bug fixing and testing before doing a crater run.

18
19
20
21
22
23
 
 

@rust@programming.dev @rust@mas.to Ik ondervind een nare fout in de routing mechanisme van Rust.

24
25
view more: next ›