1
44
submitted 17 hours ago* (last edited 17 hours ago) by u_1f914@lemmy.world to c/rust@programming.dev

TCEC is a computer chess engine tournament where chess engines compete in long time controls on strong hardware.
Every game is played from a slightly uneven starting position ("book moves"), to avoid all games ending in a draw.
In order to make this fair, the engines play each starting position twice, once with the white pieces and once with the black pieces.

Reckless won League 1, got second place in the Premier Division, and will now play 100 games in the Superfinal against Stockfish (who has won the last 11 Seasons...).
Time controls are 120'+12".

2
6
submitted 22 hours ago by u_1f914@lemmy.world to c/rust@programming.dev
3
34
submitted 1 day ago* (last edited 1 day ago) by anything_but_windows@programming.dev to c/rust@programming.dev

Howdy! I already have some programming experience - i have taken 2 undergraduate-level courses in C - namely Computer Architecture an Operating Systems. My main interest in wanting to learn is that Rust seems to offer huge security benefits as compared to C.

Also if anyone knows a great beginner reference book please lmk! Peace out!

4
7
Synchi - Two-way file sync (jakobkreft.github.io)

Two-way file sync, no remote agent needed

Today Synchi is finally public! It's designed for syncing files between two locations (local or over SSH). It detects conflicts, and lets you decide what to do.

Why not rsync/Unison/Syncthing?

  • rsync has no memory between runs and is one-way
  • Unison needs to be installed on both sides
  • Syncthing requires always-on daemons

Synchi runs on demand, works over SSH, and only transfers what actually changed.

I use it daily for syncing a shared folder between my machines and an android phone. Works great in combination with Tailscale/WireGuard so that you can sync files remotely.

5
23
Security advisory for Cargo (blog.rust-lang.org)
submitted 2 days ago by cm0002@suppo.fi to c/rust@programming.dev
6
40
7
16
submitted 5 days ago by cm0002@suppo.fi to c/rust@programming.dev

Hi, some time ago I made a driver for STM32WLE5JC’s subGHz device in Rust, which communicates via internal SPI lines. Right now it can do RX/TX with LoRa, (G)FSK, (G)MSK and TX with BPSK, and today I decided to share it :3

It’s not yet finished and there’s some things I’d still like to do, including meeting the (boring) radio laws worldwide, or publishing it on crates.io. It’s my first project like that and I hope it’ll be helpful to someone.

I also wrote a blog post series covering the subGHz radio, my programming process and I also touched on some other interesting stuff like demodulation basics with GNU Radio. I learned so much and I hope others will find it interesting as well!

Here are the blog posts :3 go read them >:3

https://lusia.moe/tags/stm32wle5jc/

Developer @lukrecja@lemmy.world

8
18
submitted 5 days ago* (last edited 4 days ago) by such0299@sh.itjust.works to c/rust@programming.dev

Hello

I've been interested with Rust for the last year, but cannot find time to learn Rust.

Coming from Python, i have found my self quite difficult to learn Rust and grasp its concepts.

So, for the last couple of weeks, i have been able to spare some times to learn Rust, and created a mini project to parse Vendor OUI with Rust.

If you would be so kind to spare some of your time to review my code and give me some constructive feedback on how to tackle this, and some guidance for me about what i can improve because its not the rust way of doing things, i would be very happy. I want to improve my skills on Rust so i have another tools in my toolbox

This is not a promotion, because i believe there's another tools just like mine out there nor i want you to use my project, because this project is only for me to test my skill for using Rust.

Thank you in advanced :D

=== Additional text after posting ===

Thank you for those who reply, i really learned something new. I'll try to improve my code :D

Shout Out to Nous, Hades, Kwdg, BB_C

<3

9
6
submitted 4 days ago by cm0002@suppo.fi to c/rust@programming.dev

Hello rust!

I’ve recently wanted to create a blog with Gemini, but I have a very strong disdain for writing boilerplate. It’s a scar that has never left me since HTML. Instead, I JUST wanted to write the content, and not have to worry much about writing the same layout (though it matters less than in HTML).

Therefore, I created gtm with the knowledge that no one else tried doing the same thing I was doing. I ended up proving myself wrong after discovering Michael Lazar’s Jetforce, which is currently a much more complete project than my own. However, I still believe that working on it would result in something interesting.

This project was originally written in Python due to Jinja2, rich, click, and other libraries. However, I rewrote the program in Rust because I wanted more control over the context my plugins were going to run in. I've found that clap, anyhow and tera did what I want well enough :).

Feel free to let me (@amadaluzia@discuss.tchncs.de ) know if you want anything added to this. Currently, Lua is something I really want to add to gtm since I want people to be able to write their own functionality. I’d be glad to see what you lot have to say.

A side note before anyone gets curious, I wrote this entirely by hand as my first major project, and is also being used for me to learn Rust. No LLMs, GPTs, AI-powered smart fridges or similar were involved.

Cheers!

By Developer @amadaluzia@discuss.tchncs.de

10
87

I recently started learning rust, and I was ready for one hell of a fight. I heard all those horror Storys about the compiler complaining about every single detail and that developing rust means having a constant fight with the compiler about seemingly irrelevant things. However, so far I have to tell, that while its somewhat true, that the compiler is somewhat picky, it is incredibly helpful. Never before have I seen such good and helpful compiler messages. It not only says what you did wrong, but also gives direct help on what to do to fix your code. I also really like, that it gives you direct references to the rust book in the compiler messages.

Prior to starting my journey with rust I did quite a lot of python, some C and some bash and their interpreter/compiler messages are nothing when comparing them with rust. Especially the bash error messages are awful if you do not know what they mean and how to fix them.

11
15
12
9
This Week in Rust 642 (this-week-in-rust.org)
13
25
Announcing rustup 1.29.0 (blog.rust-lang.org)
14
26
submitted 2 weeks ago* (last edited 1 week ago) by silly_goose@lemmy.today to c/rust@programming.dev

Rust analyzer and compilation are very slow. My system is heating up, running out of ram and disk space. I have 8 GB ram.

I use helix editor.

edit: thank you for all your suggestions. I am breaking up the project into smaller crates to see if that makes a difference.

I got the biggest improvements from zram and sccache. With zram my memory usage stays at 90% instead of fully running out when rust-analyzer starts.

15
36
submitted 2 weeks ago by u_1f914@lemmy.world to c/rust@programming.dev
16
20
17
11
submitted 3 weeks ago by cm0002@infosec.pub to c/rust@programming.dev

Hi everyone! I want to introduce a project that I’ve been working on for 6 days with ARandomOSDever. It currently has only a few layout functions: Spacing, Direction (Row, Column), Padding, Margin, Min/Max Size, Align, and it already supports no std. I’m sharing this with you to get feedback, both good and bad. I would really appreciate your thoughts

GitHub repo: https://github.com/dest-hq/axes

Crates: https://crates.io/crates/axes

I’m not entirely sure, yet why Axes performs faster than Taffy, maybe it’s because Taffy has many layout functions that affect performance.

Here’s a benchmark (Axes 0.2.0 vs Taffy 0.9.2).

| Benchmark | Axes | Taffy | Difference | |


|


|


|


| | Tree: 1,000 Nodes | 15.889 µs | 89.114 µs | 139.472% | | Tree: 10,000 Nodes | 1.1744 ms | 1.0698 ms | 4.45988% | | Tree: 100,000 Nodes | 8.7379 ms | 33.083 ms | 116.426% | | Compute: 1,000 Nodes | 17.423 µs | 39.317 µs | 77.1731% | | Compute: 10,000 Nodes | 176.51 µs | 446.35 µs | 86.6455% | | Compute: 100,000 Nodes | 1.7988 ms | 14.976 ms | 157.107% |

Hope you have an awesome day

Developer @mxghj@programming.dev

18
72
19
11
20
19
21
24
22
21
submitted 4 weeks ago by u_1f914@lemmy.world to c/rust@programming.dev
23
34
submitted 4 weeks ago* (last edited 4 weeks ago) by xoron@programming.dev to c/rust@programming.dev

Id like to share my implementation of the signal protocol that i use in my messaging app. The implementation is in rust and compiles to WASM for browser-based usage.

Its far from finished and im not sure when its a good time to share it, but i think its reasonable now.

The aim is for it to align with the official implementation (https://github.com/signalapp/libsignal). That version was not used because my use case required client side browser-based functionality and i struggled to achieve that in the official one where javascript is used but is targeting nodejs.

There are other nuances to my approach like using module federation, which led to me moving away from the official version.

While i have made attempts to create things like audits and formal-proof verication, i am sharing it now if there is feedback about the implementation. Any outstanding issue i may be overlooking? Feel free to reach out for clarity on any details.

This signal implementation is for a p2p messaging app. See it in action here: https://p2p.positive-intentions.com/iframe.html?globals=&id=demo-p2p-messaging--p-2-p-messaging&viewMode=story

24
8

We finally have rustup distribution for rustc_codegen_gcc! Now I'll get back to build rustc for a target not currently supported by Rust.

25
23
submitted 1 month ago by nemeski@mander.xyz to c/rust@programming.dev
view more: next ›

Rust

7881 readers
72 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 2 years ago
MODERATORS