opensuse, to rust
@opensuse@fosstodon.org avatar

Dive into the intricacies of packaging projects in the Open Build Service (OBS). In less than 20 minutes, you can gain knowledge & put it to immediate use. https://youtu.be/J__6pqGbR3o?si=Uk4b0EJDJYeJCZYm

kubikpixel, (edited ) to webdev
@kubikpixel@chaos.social avatar

I'm a and try learning / , what is the "best" stable distro about? I don't like @manjarolinux any more.

@rockylinux vs. @opensuse

:BoostOK:

lw64, to rust German

My expectation: will replace most other low level languages for relatively low level use cases. For example platform libraries, kernels, OS components, like services etc.
But I also think that a lot of these projects (especially platform libraries) care about that they won't just be able to be used by other Rust code.
Also my expectation: For a lot of these projects, will replace , because it just supports more features, and makes integration into an existing system easier.

leanpub, to rust
@leanpub@mastodon.social avatar

The bundle Rust Programming MasterClass by Rustacean Team is on sale on Leanpub! Its suggested price is $104.97; get it for $62.41 with this coupon: https://leanpub.com/b/rustprogrammingbundle/c/LeanpubWeeklySale2024May17

soller, to random
@soller@fosstodon.org avatar

I wrote a PDF reader with libcosmic yesterday. While it is very basic and not likely to be ready for the first COSMIC release, it is pure rust, lightweight, GPU accelerated, and highly portable.

lw64,

@soller Saying an application is "pure Rust" feels to me like saying " I am pure [nationality]"

I don't get how every dependency needs to be 100% written in Rust, otherwise it's not "safe" or something. Different programming languages have different strengths, and Rust isn't the only language you can write "safe" code with.

Just my opinion, and I guess you didn't mean it, but just saying...

CodexArcanum, to GraphicsProgramming
@CodexArcanum@hachyderm.io avatar

Well, it took about 2 weeks longer than I expected (spare time for programming is especially spare at times!) but I finally finished swapping out the graphical backend of my roguelike project with a handrolled one using #wgpu! I'm super excited to be fully in control of my #gamedev destiny!

Wgpu is still pretty difficult, even if it is cleaner than opengl with glow and #glutin. (And up-to-date with its own dependencies, always nice!) #rust

CodexArcanum,
@CodexArcanum@hachyderm.io avatar

At some point I'll need to refactor all this again if I want to support #wasm. Wasm puts a lot of restrictions on the game I don't like, but the ease of access for players (just try it in the browser!) is an undeniable draw. Maybe I can do a cut-down version, like a demo or shareware for the web? #gamedev #rust

weiznich, to rust
@weiznich@social.weiznich.de avatar

I'm looking for help to test out prebuild diesel-cli binaries for the upcoming diesel release. Can you try to download the binaries from here: https://github.com/diesel-rs/diesel/actions/runs/9186949014?pr=4034 and check:

  • That the binaries work on your platform
  • That the binaries have no runtime dependencies on any database driver library

I'm mostly interested in feedback for windows (x86_64) and macos (both x86_64 and aarch64).

kubikpixel, to opensource
@kubikpixel@chaos.social avatar

Gifsky: Highest-quality #Gif encoder

Thank you @kornel for your #opensource Gif #tool codet in #Rust / #RustLang to use it also in #ffmpeg.

🖌️ https://gif.ski

Gifsky snimation demo
Gifsky snimation demo

prma, to rust
@prma@fosstodon.org avatar

I have tried SQLite, fjall, persy/structsy and redb.

At the end I decided to go with fjall + postcard, which offers the simplest implementation.

However it is probably the newest kid in the block.

For an alpha stage program it is good enough. If I find any problems with consistency or durability it should be easy enough to go back to other options.

davidbisset, to ilaughed
@davidbisset@phpc.social avatar

gifski converts frames to animations producing animated GIFs that use thousands of colors per frame. Impressive.

https://github.com/ImageOptim/gifski

sotolf, to rust
@sotolf@alpha.polymaths.social avatar

So, to get back onto having fun with programming after some bad experiences with people I decided to do a bit of (skull) to get back into the groove again.

One thing that I really like about nim is just how natural and extremely readable it feels. just being allowed to overload stuff, being able to pretty easily just extend stuff small things like indexing a 2D array with a point or that making a contains functino automatically lets me use the "if point in grid" style syntax is really nice.

The one thing from that I kind of miss is that each struct kind of works like a namespace where you can add your functions that works on that type, it kind of makes the code more ordered, because as I end up doing it in my code, it does become a bit more cluttered since everything is on the top level.

Another really nice thing that I like with nim is that it allows me to use the (oca)ml type function calls, so that I can do "seq.add blah" rather than having to do "seq.add(blah)" it's a small thing, but it's really nice.

https://gist.github.com/sotolf2/fc66ac3ae9e217f9dcc932b8900c23dd

asynchronaut, to Java
@asynchronaut@fosstodon.org avatar

As it turns out efficiency actually matters:

https://arxiv.org/abs/2405.11182

kubikpixel, to rust
@kubikpixel@chaos.social avatar

Blessed.rs: An unofficial guide to the Rust ecosystem

🦀 https://blessed.rs


kubikpixel, to rust
@kubikpixel@chaos.social avatar
chriskrycho, to rust
@chriskrycho@mastodon.social avatar

Finally found something that can make the fans run continuously on my M1 Max MacBook Pro:

Building from source. 😂

drbrain, to rust
@drbrain@mastodon.social avatar

My team at Fastly is hiring!

https://www.fastly.com/about/jobs/apply/?gh_jid=5966125

We work on the content caching service that is part of Fastly's Compute products, all in , (we do work frequently with other teams with C codebases).

lily, to rust
@lily@glaceon.social avatar

what is the point of "Ext" traits in rust?

is it just to avoid method namespace pollution?

at first i thought it would be to reduce vtable size, but vtables are passed by pointer anyway, so it wouldn't make a big difference unless you were constructing a lot of different "dyn" objects.

frankel, to rust
@frankel@mastodon.top avatar

Envconfig is a library that helps to initialize configuration structure from environment variables

https://docs.rs/envconfig/latest/envconfig/

Xanatos, to rust
@Xanatos@mastodon.gamedev.place avatar

So I wrote a rest API for a note app to learn the language. The code looks horrible I guess but I learned a lot about rust.

I used rocket to do so, now I just need an frontend properly written with clap or ratatui.

amapanda, to rust
@amapanda@en.osm.town avatar

How can I swap out data to disk, to save memory in ?

I'm storing lots of data in a big dict/hashtable. Keys are 64bit ints, values about 20-100 bytes. But I have 600-800M items. I'm currently using a BTreeMap<i64, _>.

Solution must be Rust, open source. Ideally nothing that needs another service running (ie j want something "embedded")

Is a sensible choice?
:boost_requested:

mizah, to rust

Wait what.

fn main() {<br></br>    // Declare a variable binding<br></br>    let a_binding;<br></br><br></br>    {<br></br>        let x = 2;<br></br><br></br>        // Initialize the binding<br></br>        a_binding = x * x;<br></br>    }<br></br><br></br>    println!("a binding: {}", a_binding);<br></br><br></br>    let another_binding;<br></br><br></br>    // Error! Use of uninitialized binding<br></br>    println!("another binding: {}", another_binding);<br></br>    // FIXME ^ Comment out this line<br></br><br></br>    another_binding = 1;<br></br><br></br>    println!("another binding: {}", another_binding);<br></br>}<br></br>

Since when is this a thing?

https://doc.rust-lang.org/rust-by-example/variable_bindings/declare.html

thomastospace, to rust
@thomastospace@phpc.social avatar

I'm learning some the last couple of days, mostly since it looked very complicated to me.

First thing I'm learning: All variables are immutable by default.

I'm a very happy programmer right now.

predrag, to rust
@predrag@hachyderm.io avatar

Nice round numbers coming up for your friendly neighborhood SemVer linter for Rust 👀

dvshkn, to rust
@dvshkn@fosstodon.org avatar

The difference between using async/await in typescript vs #rust is that the rust compiler routinely asks "are you sure about that??"

More times than not it's a good thing.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • JUstTest
  • All magazines