AstraKernel, to rust
chfkch,
@chfkch@ruhr.social avatar

@AstraKernel
I think the println will not find {age}.

pipewire, to random
@pipewire@fosstodon.org avatar
AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

@pipewire

Is it true, that one of the major goals in the coming period is to change the code base to ?

Or did I misread something a while ago?

janriemer, to rust

makes some happy screaming noise :awesome: :ferris:

#Rust will end this year with a long awaited feature that will define it's future:

We will get "async fn and return-position impl Trait in trait" (#AFIT & #RPITIT).

It will be stabilized in the next #RustLang version 1.75, which will be released on 28 December, 2023.

https://releases.rs/docs/1.75.0/

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

Thank you Rust #community for all of your hard work! ❤️

#RustAsync #AsyncRust

janriemer,

Whoop! 🎉 Continuing this series, we'll (very likely) get dyn (trait) upcasting in 1.76! :awesome: 🎡

I've accidentally stumbled upon this (😄), while trying to answer @luna's question here:

https://floss.social/@luna@lunar.place/111511081757642056

It basically allows you to upcast trait objects.

See the original RFC (with some nice examples on when you need this)...:
https://github.com/rust-lang/rfcs/blob/master/text/3324-dyn-upcasting.md

...and it's tracking issue:
https://github.com/rust-lang/rust/issues/65991

janriemer, to graphics

This is genius:

vong | The first compute-centric vector graphic video game

https://github.com/simbleau/vong

I think zooming should be an explicit feature in the game (which triggers some behaviour/state change in the game besides zooming).🙃

janriemer,

@elementbound Good question! I honestly have no idea. ¯_(ツ)_/¯

Maybe because it uses vello:

https://github.com/simbleau/vong/blob/main/src/main.rs#L11

https://github.com/vectorgameexperts/bevy-vello

is "an experimental GPU compute-centric 2D renderer."

https://github.com/linebender/vello

Seems like it turtles all the way down, lol. 😅

blinkygal, to cpp

Swift is getting really mature. Stable ABI. Using clang to access and represent C++ types natively. No ffi bindings required. Foundation library available on all desktop platforms.

I hope Rust will start putting some serious effort behind C++ migration/interop. Or I can see a future where the C++ industry migrates largely to Swift, with perhaps Rust libraries for specific tasks like codecs. Which is fine but I worry about some companies, that would be willing to use Rust, never catching up to that.

C++ code will never migrate directly into Safe Rust. Swift found a middle ground for it that Rust will need too. Unsafe Rust needs to become a language people can do their daily work in that is better than C++. That’s what migration can look like.

I was skeptical of Carbon’s plan to build out an unsafe language that is good to work in, since I felt like the safe language is where people should be. I still worry about coming in and building the safe language later, but I can see the value of making an ergonomic unsafe language (nullability for pointers for example), because they are taking seriously the idea of migrating whole C++ codebases to this language. AND understanding that people will be working in that (unsafe) language full time.

1/2

heaths,
@heaths@fosstodon.org avatar

@blinkygal I use with a lot of FFI and this is what makes me most unproductive. I've over 35 years of development and fluent in numerous languages (including C, which was my first real language, and C++), but Rust's safety when working with handles or raw memory is painful. Leaves a bad taste in my mouth that makes me less likely to use Rust in other projects where the language choice doesn't matter.

AdeptVeritatis, (edited ) to GraphicsProgramming
@AdeptVeritatis@social.tchncs.de avatar

Uploaded a preview of "pw-videomix" with a new render backend.

Amazing new possibilities!

Complex chains of mixers and mandala filter lead to marvelous animations. Even loopbacks between two mixers don't break anything. (Maybe keep an eye on GPU temps.)

Still more like a prototype, but the framework seems pretty solid.

Menu allows for a little bit more customization now.

You can find compiled binaries here:
https://gitlab.freedesktop.org/AdeptVeritatis/pw-videomix

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

Mixer values work now completely, by the way. You can blend in sources with the mix slider.

And move around, scale and remove the sources.

Click on the mixer node to open the side panel for all options.

AdeptVeritatis,
@AdeptVeritatis@social.tchncs.de avatar

Snapshot sequences is done too for .

You can select between taking a series of snapshots within a time frame or after certain frames.

You can even use it, to make snapshots of your work for up to every 10 minutes.

Now I can create animations again with defined frame numbers and convert them to GIFs afterwards.

Would like to have scaling the output next. But I think, a new version number would fit first after all these changes.

https://gitlab.freedesktop.org/AdeptVeritatis/pw-videomix

AstraKernel, to rust

🦀 Will RWF2 Resurrect Rust's Rocket Framework?

👉 Rocket's assets, including its domain, website, source code are transferring to RWF2 foundation

👉 Rocket 0.5 released

https://rocket.rs/v0.5/news/2023-11-17-rwf2-prelaunch/

thisweekinrust, to rust
@thisweekinrust@mastodon.social avatar
AstraKernel, to rust

✨ Rust std fs slower than Python!? No, it's hardware!

https://xuanwo.io/2023/04-rust-std-fs-slower-than-python/

slint, to rust
@slint@fosstodon.org avatar

🚀 Slint 1.3.1 is here! 🛠️ This patch release fixes a bunch of bugs, introduces a new clamp function in the Slint Language, and adds the loadSource function in . For details, check out the ChangeLog https://github.com/slint-ui/slint/blob/master/CHANGELOG.md#131---2023-11-28

hywan, to linux
@hywan@fosstodon.org avatar
0xSim, to rust
@0xSim@hachyderm.io avatar

The duality of man.

To learn the language, I'm doing the in . There is a lot of good in the language but it's so painful to learn.

slint, to esp32
@slint@fosstodon.org avatar

Our customer, BrewTools, showcased the Fermentation Control System at tradeshow this week. The UI on the control panel is running on an MCU. 🚀

video/mp4

timClicks, to rust
@timClicks@mastodon.nz avatar
hywan, (edited ) to rust
@hywan@fosstodon.org avatar

It’s possible to pass multiple --target arguments to cargo, https://github.com/rust-lang/cargo/issues/8176.

I’ve totally missed this new feature. And it’s awesome.

#RustLang #cargo #compiler

hywan, to rust
@hywan@fosstodon.org avatar
AstraKernel, to rust
AstraKernel, to rust
0xor0ne, to rust
AstraKernel, to rust

✨ Should you participate in the Advent of Code this year?

https://youtu.be/HMh2XYp82x4?si=6c6RL560tjqCrq9Q

👉 Discord for Rust Adventure:
https://discord.com/invite/UhCQ36VMrC

AstraKernel, to rust

🦀

What is the output?

A.
Astra
Kernel
Dropped
Dropped

B.
Astra
Dropped
Kernel
Dropped

C.
Compilation error:
value used here after move

D.
Astra
Astra
Dropped
Dropped

AstraKernel, to rust

✨ Rust Refactor: Eliminating Lifetimes w/ Enums

https://youtu.be/GAyQDy5wElQ?si=kVD-FnSBD0FYfVAq

Related Video:
✨ Make an AI using Rust! Matrices and Neural Networks Tutorial
https://youtu.be/FI-8L-hobDY?si=xQZIbfVMYaAlwQjF

janriemer, to rust

Game Development with - by Tainted Coders

https://taintedcoders.com/

Looks like a really nice guide to .

AstraKernel, to rust

This is why many feel Rust has steep learning curve

no

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