mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#rust

172 Beiträge149 Beteiligte1 Beitrag heute

I've been on a bit of a docs kick for #bevy recently; the words have been flowing smoothly and I'm feeling an urge to teach :D Today's work was a fairly opinionated page on project structure and organization in #rust.

Toss me a review? Beginner feedback very welcome! github.com/bevyengine/bevy-web

I decided that modules / crates all fit into the same page, and realized that talking about visibility here made sense too.
This PR also includes a couple of small stubs for other sections, created...
GitHubAdd a book page on project organization by alice-i-cecile · Pull Request #2185 · bevyengine/bevy-websiteVon alice-i-cecile

Exciting to see the first #Rust code running on #CHERIoT! Edoardo has rebased the Kent work on a newer rustc and added the CHERIoT bits so we can now add two integers together in Rust!

Probably other things work too. The core library compiles, but not much of it is tested. Cross-compartment calls aren’t possible yet and the alloc crate needs implementing wrapping our shared heap (there’s also a fun project at UBC to replace our allocator with a formally verified one in Rust, but it’s not there yet and, of course, depends on Rust working).

Fortgeführter Thread

"#JamieZawinski has #repeatedly said:

Now hear me out, but What If…? #browser #development was in the hands of some kind of #nonprofit #organization?

In my #humble but #correct #opinion, #Mozilla should be doing two things and two things only:

#Building THE #reference #implementation #WebBrowser and
Being a jugular-#snapping #attack #dog on #standards #committees.
There is no 3."
"Perhaps this is the only #viable #resolution."

"#Mozilla, for all its many #failings, has #invented a lot of #amazing #tech, from #Rust to #Servo to the #leading #budget #phone #OS. It shouldn't be trying to #capitalize on this #stuff. Maybe 3encourage it to have semi-independent #spinoffs, such as #Thunderbird, and as #KaiOS ought to be, and as #Rust could have been."
"But #JamieZawinski has the only #clear #vision and #solution we've seen yet. Perhaps he's #right, and #Mozilla #should be a #nonprofit, #working to #fund the one #independent, non-#vendor-driven, #standardscompliant #browserEngine."

Tanked

Atticus Lambord was known for his mountain dew. It had a distinctive gas tank rust flavor. But, after the first sip, you couldn't really taste anything anyway, so, no one fussed about the odd flavor. One of his most popular batches was what he called '84.

Bakersfield, California 2003
#Tanked #Hogwash_Book_Two #gas_tank #rust #Bakersfield #California #Kern_County #Hogwash #Hog_Wash #photography
flic.kr/p/21S6puM

FlickrTankedVon davidseibold

Jet lag! Not so great for sleep. But certainly great for getting a few last-minute features into my vacation software rasterizer project. Now it has (hacky) specular lighting and voxel shadows.

It was refreshing to have some time and energy for hobby coding. It is pretty much complete I guess. Back my normal busy schedule starting today.

"Hey Evil, kenns´te zufällig was womit ich Nextcloud ersetzen kann? Brauch nur eine einfache Dateifreigabe und CalDAV /& CardDAV"

Klar hier bitte, diese 2 Tools sind da geeignet:

Zipline für Dateifreigaben mit möglichem anonymen Hochladen, Passwortschutz etc. Möglichkeiten hat es viele :neofox_sign_yes:

zipline.diced.sh/

Und für Kontakte / Kalender nehmen wir mal ein recht junges Projekt, dafür kommt es ohne PHP aus, ist eine Rarität im Bereich CalDAV / CardDAV. Die Rede ist von Rustical, geschrieben in Rust. Wer hätte das vermutet bei dem Namen :neocat_aww:

github.com/lennart-k/rustical

zipline.diced.shZiplineThe next generation ShareX / File upload server, packed with tons of features and a great dashboard. What more could you want?
#rust#docker#caldav

I implemented the int_format_into feature into the Rust core library.

It allows you to reuse a buffer when converting an integer into a string:

let mut buf = NumBuffer::new();
let string_repr = 12u32.format_into(&mut buf);

let other_string_repr = 128u32.format_into(&mut buf);

Nightly only for now, and I have some ideas on how to improve it, let's see where it will lead us. :)

PR: github.com/rust-lang/rust/pull

I took over #138338 with @madhav-madhusoodanan's approval.
Since #136264, a lot of changes happened so I made use of them to reduce the number of changes.
ACP approval: rust-lang/libs-team#546 ...
GitHubImplement `int_format_into` feature by GuillaumeGomez · Pull Request #142098 · rust-lang/rustVon GuillaumeGomez
Antwortete im Thread

@bobulous Panics exist because explicitly handling all possible errors is considered impractical (i.e. unacceptably verbose).

In a language like #Rust, a simple division can cause a panic (because the language design doesn't enable the compiler to detect all possible divisions by zero), any function call can cause a panic (because the compiler doesn't prevent stack overflows), and when running inside a virtual memory space any write to a new memory page can cause a panic.