c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.8K
active users

#rust

306 posts261 participants0 posts today

Had a really good laugh with @hannah just now trying our hands at the clearly way superior & production ready act of #VibeCoding with #Codestral.

We told it to build a calculator in #Rust. After telling it to use an AST it looked promising, even adhering to order of operation (already better than MS Calc!).

Then we told it to add support for braces and it utterly and completely shat itself. Like, Mexican diet explosive diarrhea-style. 😂

Now everything is an invalid expression. #AI 👍
#coding

Finished my day job, so I can come back to fixing my personal projects. And this time, I have a "funny" story! :3

Just fixed a segfault in my Rust sysinfo crate on FreeBSD. So, apparently, in some FreeBSD types, a pointer isn't actually a pointer but a kernel pointer. So to get access to the data, you need to use kvm_read function... And it might return types that also have kernel pointers and so on.

Lost a few hours trying to understand why my non-null pointers were out of my memory to discover by reading FreeBSD source code what was going on (because if there is documentation about this, didn't find it).

Anyway, I think this whole API is awful. FreeBSD making breaking changes in structs layout between each version is also a nightmare. Of all platforms I wrote Rust bindings for, this is the worst by far.

PR is here: github.com/GuillaumeGomez/sysi

Fixes #1497.
GitHubFix segfault on FreeBSD by GuillaumeGomez · Pull Request #1499 · GuillaumeGomez/sysinfoBy GuillaumeGomez

i would like to announce that i am rewriting my game in #rust !

this will greatly increase the productivity:
i will no longer be able to improve my makefile, or have to test my code to be sure itll work, cargo will do it for me!

and dont worry about the downsides, i dont use linked lists, you can always buy a larger hard drive, and the cpu overhead is minimal!

as for all 0 users who cant use a non-c compiler for any reason, theyre unimportant and holding us back

Replied in thread

@liaizon no name yet, directory on my projects folder is called "activitypub", Python module is un-creatively called "leoactivitypub".

All it can do is follow people (send signed Follow actions) and validate incoming post signatures.

I wanted to do it in #Rust but ended up in #Python to get something working quickly. The whole thing is a mess right now :(

Rust developers upgrade to newer versions of Rust _vastly_ faster than Python developers do.

As of yesterday:

11% of downloads on PyPI were for Python versions 3.12 or newer, released in October 2023.

97% of package downloads on crates.io were for Rust 1.75 or later, released in December 2023.

From my experience, there's a rational reason for this difference: major Python vresion upgrades usually aren't _hard_, but they do require some tweaking. So there's always lag. Meanwhile, Rust upgrades are a non-event, with no changes to user code needed. And insofar as Rust wants to introduce breaking changes, the edition mechanism means it's opt-in rather than being forced on you when you upgrade.

UPDATE: As someone implied in their replies, this is somewhat misleading insofar as it includes lots of open source projects that are testing in CI against old Python versions. Even so, if open source project CI dominated download numbers, I would expect something like 40% of downloads to be for Python 3.12 or later, since most projects are likely supporting 3.9-3.13 at the moment.

Data sources:

- pypistats.org/packages/__all__
- lib.rs/stats#rustc

pypistats.orgPyPI Download StatsPyPI Download Stats