RL_Dane, to rust
@RL_Dane@fosstodon.org avatar

WHOA, just got forked!

https://github.com/crablang/crab
https://news.ycombinator.com/item?id=36122270

And of course, it's hosted on the site run by the company that's going bollocks to the wallocks with ai and GPL violations, because we hate humanity. Yep.

Still, interesting development. Not sure if this will be a LibreOffice or a Glimpse yet, but time will tell.

Addendum: Yeah, this isn't exactly new. Gotta love the HN hype cycle ;)

ekuber, to rust
@ekuber@hachyderm.io avatar
to, to rust
@to@hachyderm.io avatar

This December, instead of doing the Advent of Code, I will try to pack “100 days of SwiftUI” inside the last 31 days of the year. I’ve never written any Swift, and my only mobile experience was with React Native in 2017, so this should be fun!

https://www.hackingwithswift.com/100/swiftui

alice_i_cecile, to gamedev
@alice_i_cecile@mastodon.gamedev.place avatar

Hi! Do you do in ( or not) and have cool gameplay footage to show off?

I've gotten a request from the organizers for clips to roll between talks! This seems like a fun idea, so I'm putting out a call for short, appealing gameplay clips with some form of credits on them. Get them to me (maybe post them as a reply?) within the next 24-48 hours and I'll get them to the organizers.

hko, to rust
@hko@fosstodon.org avatar

The oct tool for inspecting, configuring and using OpenPGP card devices (https://crates.io/crates/openpgp-card-tools) is on "This Week in Rust":

https://this-week-in-rust.org/blog/2024/02/21/this-week-in-rust-535/#projecttooling-updates

Yay! 🎉 Thanks again, @dvzrv 😀

tripplehelix, (edited ) to rust
@tripplehelix@fosstodon.org avatar

#RustLang / #Cargo builds seem to run very slow on my #Framework AMD system. They didn't take anywhere near as long on my old Intel system. Looking at btop it only seems to use one thread during #compile, am I missing something?

(Intel 11th Gen I7 & AMD Ryzen 7 7840U)

ian, (edited ) to random
@ian@phpc.social avatar

Me: couldn't possibly still have a horrid experience on installing packages.

Me, ten minutes later: Actually, nope, still horrid. How do people function in this environment?!?

h/t to @Tylae for being correct here.

For the record, /cargo actually behaves as expected, so props to for having a thing that properly works.

Context: finding a CLI for Toggl Track. Which...the Python CLI doesn't even support the current (not 410'd) version of the API.

aohorodnyk, to rust

I understand that shadowing in scope change is a good practice and an idea, but on the same level 🤯
Does it have any reasons to have a feature to initialize new variable with the same name in the same scope?

janriemer, (edited ) to javascript

This is mad 🤯

oxc - The Oxidation #Compiler is creating a suite of high-#performance tools for the #JavaScript / #TypeScript language re-written in #Rust - by Boshen:

https://github.com/web-infra-dev/oxc

Its linter is 50 - 100 times faster than #ESLint...

https://github.com/Boshen/bench-javascript-linter

...and its parser is even 2x faster than #swc

https://github.com/Boshen/bench-javascript-parser-written-in-rust

#JS tooling goes brrrrrrrrrrr! 🚀

#RustLang #WebDev #WebDevelopment

livingcoder, (edited ) to rust

Edit: solution found, posted as reply

I'm so confused why my function takes so long to return. I have an Instant::now() before the call, I have an Instant::now() in the very start of the method, it does a lot of stuff, I println the method's Instant elapsed.as_micros(), return the Result<Vec<T>> with one small item in it, and finally println the outer Instant elapsed.as_micros(). I'm seeing an extra 7,000 microseconds between both of them. Why??

Any suggestions on how to do proper performance tuning with Rust would be appreciated.

mo8it, to rust
@mo8it@fosstodon.org avatar

:ferris: vs :julia:

Rust vs Julia in scientific computing

Why I think that Julia doesn't solve the two-language problem and when you should use Rust instead.

https://mo8it.com/blog/rust-vs-julia

The blog post is the base for my tiny talk at which is now public:

https://youtu.be/0JkbNFpXlXc

Think of the recording as a trailer. The blog post has many more details and aspects that can not fit into 7 minutes ⏳️

I hope for discussions across both communities 🥰

jpm, to rust
@jpm@aus.social avatar

let mutex = None;
let file = None;

loop {
[…]
if let None = file {
file = None; // DO NOT REMOVE - makes borrow checker happy
mutex = None;
mutex = Some(card.lock().unwrap());
file = Some(mutex.open_file(FILE));
}
[…]
}

Completely normal programming language…

danielsreichenbach, to rust
@danielsreichenbach@mastodon.world avatar

I generally like but I think every project developer should be forced to use it on a Raspberry Pi with 4GB RAM... had to build Vaultwarden (https://github.com/dani-garcia/vaultwarden) on one, and man,,, after 15 minutes compilation is no longer running because the device went OOM and now is so hot the fan is louder that a datacenter server...

Just to be clear, I think this is a Rust problem, not a project problem.

omenos, to programming
@omenos@fosstodon.org avatar

Decided to try and compare the general base program size of several languages. I wrote a handful of Hello World programs, and stripped them of everything. Here's the final results in KiB:

strip -s -o ${lang}_strip
du *_strip

C: 16
C++: 76
Go: 1204
Hare: 220
Rust: 352

#c

alfredbaudisch, to rust

I'm experimenting with again, and my eyes always bleed with the "lifetime annotation syntax" - why does it have to use an apostrophe 😩 .

&'a mut i32

fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {

impl<'a> System<'a> for LeftWalker {
type SystemData = (ReadStorage<'a, LeftMover>,
WriteStorage<'a, Position>);

But this time I'll try not to rage quit in digust again. I'll stick until this experiment ends.

alice_i_cecile, to gamedev
@alice_i_cecile@mastodon.gamedev.place avatar

It's time for a #bevymergetrain before I go stare at the sun 🤩 After a bit of time catching up on my own reviews, @bevy has 10 open community-approved PRs in the backlog. Interested in #gamedev, #rustlang or #foss? Come see how the sausage is made as I go over my reasoning for what to merge and why.

https://github.com/bevyengine/bevy/pulls?q=is%3Aopen+is%3Apr+label%3AS-Ready-For-Final-Review+-label%3AS-Controversial+-label%3AS-Blocked+-label%3AS-Adopt-Me+

mackuba, to ruby
@mackuba@martianbase.net avatar

Current status: I opened about 100 links to articles and threads from Google results comparing , and and I'm planning to read them 🫠

(no, I'm not really considering Go, mostly just trying to convince myself that I'm not making a mistake starting to learn Rust and not Go 🦀😛)

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

When @maartenballiauw finds out I like #Rustlang and #RustRover, but I'm still doing #dotnet and #JetBrainsRider work. 😅

Amirography, to rust

I'm trying to decide if the simplicity of just making every struct field public in #rustlang, actually worth the risk of people/future me, not using the constructors and/or adding mut and changing the validity guarantees that come with using constructors or transformers that are accompanied by the struct.

What do you think?
#functionalprogramming

cliffle, to rust
@cliffle@hachyderm.io avatar

New blog post: on that time when I decided that if being able to panic one Rust program is good, then a feature that lets you panic other programs would be better, right?

No, really, it's awesome. Here's Hubris's oddest syscall.

https://cliffle.com/blog/hubris-reply-fault/

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

Happy #bevymergetrain :) The other maintainers have been doing a great job staying on top of our #rustlang PRs for #bevy, so there's only 7 in our backlog to review and merge this week. I've been busy and stressed with life in the past week, so it's much appreciated. Let's take a look!

https://github.com/bevyengine/bevy/pulls?q=is%3Aopen+is%3Apr+label%3AS-Ready-For-Final-Review+-label%3AS-Controversial+-label%3AS-Blocked+-label%3AS-Adopt-Me+

alice_i_cecile, to opensource
@alice_i_cecile@mastodon.gamedev.place avatar

I just started my first day as a professional #opensource #rustlang #gamedev (well, engine dev) for @bevy.

Super exciting to have the bandwidth to start putting my plans into motion. I decided that I want to do a daily status update in engine-dev, and let folks track my current areas of focus using a GitHub project board.

https://github.com/orgs/bevyengine/projects/17/views/1

Today was focused on laying out my priorities and tasks, then diving straight into the thorniest project management challenges we have (see below).

hrefna, to Java
@hrefna@hachyderm.io avatar

It's fascinating to me looking at beginning language guides and thinking "what does this say about the culture of the language"

When I was delving into it was (with affection) "here's hello world and here's a dense academic paper on implementing event systems in OCaml 5!"

guides used to be centered on the assumption that you were a web programmer looking to do applets, even long after that assumption died.

generally seems to assume a background in programming w/ a CLI.

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

I got running in with . The experience is what you'd expect from an ORM—pretty smooth and nice. I like this. I'll have to use this with a web app next.

It also works great with the built-in database tools in RustRover.

ekuber, to rust
@ekuber@hachyderm.io avatar

Sometimes I wish that rustc had a database of small breaking changes that affect only a handful of crates, so that we could on the fly patch them going forward. Things like "we now correctly check for lifetimes in assoc types" can technically be a breaking change that affects a handful of crates, but I want to ensure that building a project from today in 15 years doesn't require a compiler tool chain from today.

I guess this is the windows backwards compatibility approach.

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