New Release 1.6.0 of Persy single file embedded storage is out
Persy is a single file transactional embedded storage, is scope is become a base of persistent databases implementations or for simple low level database to embed in application.
This is a new minor release 1.6.0 that include a simple feature that allow to create snapshots from the commit of a transaction, release post with all details here: https://persy.rs/posts/persy-1.6.html
In C and C++, two different operators are used for calling methods: you use . if you’re calling a method on the object directly and -> if you’re calling the method on a pointer to the object and need to dereference the pointer first. In other words, if object is a pointer, object->something() is similar to (*object).something().
What about Rust?
Rust doesn’t have an equivalent to the -> operator. Instead, Rust has what is called automatic referencing and dereferencing.
In other words, the following are the same:
p1.distance(&p2);
(&p1).distance(&p2);
Note:
this automatic referencing behavior works because methods have a clear receiver-the type of self. Given the receiver and name of a method, Rust can figure out definitively whether the method is reading (&self), mutating (&mut self), or consuming (self).
I am not sureI understood the note correctly, what does it mean that there is a clear receiver? Also, doesn't Rust actually have an operator for derefer
The ride is coming to an end. The experiment is done. We tried, but we admit defeat. Four years ago we started adding support for an alternative HTTP backend in curl. It would use a library written in rust, called hyper. The idea was to introduce an alternative implementation of HTTP internals that ...
Link Actions
It seems quite clear that rust users use hyper but few of them want to work on making it work for a C project like curl, and among existing curl users there is virtually no interest in hyper. The overlap in the Venn diagram of the two universes is not big enough.
I have started learning Rust. I have only made a fibonaci series program so far but I would make more complex program as I progress in learning Rust :D
Note: there are further relevant changes in axum-core's changelog.
Since v0.8.0-alpha.1:
breaking: Move Host extractor to axum-extra (#2956)
breaking: Remove WebSocket::close.
Users should explici...
Link Actions
axum is a web application framework that focuses on ergonomics and modularity.
Hey! If you're using axum, I would be happy if you tried the first release candidate of the upcoming v0.8.0, and shared any feedback you have. That's all :)
A TUI and CLI for managing *arr servers. Built with 🤎 in Rust - Dark-Alex-17/managarr
Link Actions
I was recently furloughed from work, so in between job applications, I decided to polish off Sonarr support in my Managarr TUI. Thus, I'm very proud to announce the beta release of Managarr with Sonarr support!
This mod is written in an unconventional way: it is written in Rust. The Rust code is here. It uses JNI and JVMTI to interact with Java objects. The only Java code in this mod is for loading the compiled native binary into memory.
Hey there! I'm starting my journey to the learning of Rust. I have been coding only with Python for 6 years now and last year, I had to code in JavaScript using VueJS for my job (I never workedeon frontend).
Now, I have a personal project idea which I'd like to create. I could do it in Python but I want to learn Rust. I've looked up on the Internet but may be some answers are too old or someone here can point me to something I haven't seen yet.
What do you recommand for webdev? I guess I need to code the back in Rust and use a JavaScript framework for the front. My backend will be for a REST API (my app will need to manage users and organisations).
Bonus question if you can recommend a BDD framework. I think there is something named Cucumber. Is it good?
I was playing around with rust and wondered if I could use const generics for toggling debug code on and off to avoid any runtime cost while still being able to toggle the DEBUG flag during runtime.
I came up with a nifty solution that requires a single dynamic dispatch which many programs have anyways.
It works by rewriting the vtable.
It's a zero cost bool!
In python, when you install stuff with pip, it is recommended to use a venv, to avoid breaking dependencies for a program when uninstalling another one, or when two programs need two different versions of the same dependence.
I was wondering if with Rust is the same, or if Cargo manages it all on its own (kind of like apt does), and I shouldn't care about it.
Also since I know Linux kernel is using some Rust, isn't there a risk of breaking my system if I uninstall a program that need some deps that the system itsel needs?
TLDR: Searching for person holding professor position to officially act as a committee member on a US PhD defense
Hi all,
I'm in a non CS field. I'm doing PhD in hydrology and I'm good at Geospatial Analysis, data analysis, visualization, modeling and such. I really like programming and have been making open source programs, contributing to open source programs and such. And have been learning rust for last 2 years.
For my PhD dissertation I'm doing a project where I'll be using Rust to make a program with compiled plugin system that can do generalized river related tasks including data analysis and visualization. I have professors in GIS and hydrology to guide those aspects, but I don't have anyone on software side to ask questions, or to look at my work. I tried emailing some people I have seen with open source projects on GIS+rust, but no response.
I'm ideally looking for someone that holds a professor position for my committee who is good with either rust, GIS related algori
I've only been coding with Python/Javascript since I started my career. I do APIs and websites frontend. I don't really understand what is interesting in learning an other language. For example, I could learn Ruby, but I'd do the same thing I already do.
Rust, C/C++ tho seem to me to be languages to code other things. Hence my question : what do you code? If possible, make distinction between personal projects and professional projects.