Moving to rust

921 points · 104 comments · view on lemmy.world

104 Comments

hperrin@lemmy.ca · 307 pts · 146d (20 replies)

This is absolutely ridiculous. It should be migrated to Java, so it can run everywhere.

tristan@tarte.nuage-libre.fr · 100 pts · 146d (6 replies)

3 billion

Devices Run Java

lauha@lemmy.world · 39 pts · 146d (2 replies)

3 billion devices have been running java for past 20 years.

GreenCrunch@piefed.blahaj.zone · 24 pts · 146d

Proof of stability!

Valmond@lemmy.dbzer0.com · 8 pts · 146d

Most of them have not loaded the kvm just yet, any minute now ...

elvith@feddit.org · 14 pts · 146d (1 reply)

Don't you think, that's enough already?

Simulation6@sopuli.xyz · 2 pts · 146d

At least one to many in my opinion.

RustyNova@lemmy.world · 6 pts · 146d

And no more than that. There's a queue now...

ryannathans@aussie.zone · 51 pts · 146d (1 reply)

Except next to pools, no one should run there

Klear@quokk.au · 15 pts · 146d

Unless you have scissors. That cancels it out.

Archer@lemmy.world · 31 pts · 146d

J2EE ffmpeg for flip phones

SCmSTR@lemmy.blahaj.zone · 23 pts · 146d (1 reply)

You mean JavaScript so that it does the same thing each time

hperrin@lemmy.ca · 17 pts · 146d

Not exactly the same thing, but…

https://github.com/ffmpegwasm/ffmpeg.wasm

MrKoyun@lemmy.world · 8 pts · 144d

Scratch should be the choice, obviously. It will be so much easier to maintain! Think of all of the new contributors!

a_non_monotonic_function@lemmy.world · 5 pts · 146d (4 replies)

Python, for badassness.

ReluctantMuskrat@lemmy.world · 4 pts · 146d (3 replies)

I think you meant perl.

a_non_monotonic_function@lemmy.world · 5 pts · 146d (1 reply)

The entire system is going to be regex.

ReluctantMuskrat@lemmy.world · 2 pts · 146d

That's the genius of it

OpenStars@piefed.social · 1 pts · 144d

Better yet: bash. If you can read the code, then someone didn't do their job properly!

LodeMike@lemmy.today · 3 pts · 146d

Surely at least one other person knows about qemu-user

ViatorOmnium@piefed.social · 2 pts · 146d

Lies, damn lies, and write once run anywhere™️.

fargeol@lemmy.world · 219 pts · 146d (12 replies)

I hope they’re doing it with AI for faster development. Now that Claude is open source, there’s no excuse to refuse progress anymore!

InFerNo@lemmy.ml · 45 pts · 146d (6 replies)

Only Claude's frontend leaked, not the models

vga@sopuli.xyz · 40 pts · 146d (5 replies)

To which Anthropic answered by open sourcing the whole thing under AGPL. Didn't you see the news?

victorz@lemmy.world · 32 pts · 146d (1 reply)

April 1?

vga@sopuli.xyz · 20 pts · 146d

Yeah! April number one!

Liketearsinrain@lemmy.ml · 22 pts · 146d
[ removed ]
NocturnalMorning@lemmy.world · 8 pts · 146d (1 reply)

You had me for a second

MonkeMischief@lemmy.today · 8 pts · 145d

Can't believe people don't link sources anymore. Anyway yeah it just happened today.

irelephant@lemmy.dbzer0.com · 10 pts · 146d (4 replies)

That's unironically what ladybird (browser engine) did

yessikg@fedia.io · 10 pts · 145d (3 replies)

Ew another reason to ignore it and wait for Servo instead

MrKoyun@lemmy.world · 0 pts · 144d (2 replies)

Why the ladybird hate?

yessikg@fedia.io · 1 pts · 144d (1 reply)

Besides the fact that they are vibe coding?

MrKoyun@lemmy.world · 1 pts · 129d

Oh, I didn't know. Yeah that's not nice.

UnfortunateShort@lemmy.world · 147 pts · 146d (26 replies)

What did Rust do to FFmpeg to make them so mad lol

ripcord@lemmy.world · 109 pts · 146d (11 replies)

Ah, just realized what day it is

SirEDCaLot@lemmy.today · 17 pts · 146d (4 replies)

East Coast here, it's not even midnight for another 4 minutes!

Appoxo@lemmy.dbzer0.com · 13 pts · 146d (1 reply)

The world doesnt only exist within the US timezone ;)

SirEDCaLot@lemmy.today · 4 pts · 146d

I don't understand. I learned in school that America is the only important country in the world.

eatham@aussie.zone · 4 pts · 146d

In the real east coast April 1St ended over an hour ago

ripcord@lemmy.world · 3 pts · 146d

I am on the east coast and it had been April 1 for 14 hours when you posted this

Knock_Knock_Lemmy_In@lemmy.world · 3 pts · 146d (5 replies)

But the message says it was sent on March 31st.

forestbeasts@pawb.social · 9 pts · 146d (1 reply)

Timezones, probably!

kubica@fedia.io · 3 pts · 146d

They just were so fucking fast they posted to the past.

boonhet@sopuli.xyz · 6 pts · 146d (1 reply)

A lot of April 1st posts seem to get made on March 31st and that includes from people in fairly western timezones, so I think they just get their post done the previous night, go to sleep, and let the chaos unravel.

absGeekNZ@lemmy.nz · 3 pts · 146d

I guess next year I'll have to post a joke just after midnight. I'll wake to find confusion and chaos.

Often we are not even included on maps.

grozzle@lemmy.zip · 1 pts · 146d

the timestamp is generally local for the reader, not the poster.

AudaciousArmadillo@piefed.blahaj.zone · 70 pts · 146d (8 replies)

I guess not rust itself, but people telling them to switch to rust over and over again. They use a lot of assembly magic to get good performance, they aren't in C land.

communism@lemmy.ml · 12 pts · 146d (7 replies)

You can embed Assembly in Rust. A lot of low-level Rust projects embed Assembly.

UnfortunateShort@lemmy.world · 4 pts · 146d

Totally, though I wouldn't bother switching if your project is half assembly anyway. Unsafe Rust definitely has some beauty to it, but only if there is some safe Rust to embedd it into

CanadaPlus@lemmy.sdf.org · 2 pts · 146d

Although if you're doing it a lot, you've basically removed the main advantage of using Rust.

By the way, how is compilation to things other than LLVM going? I haven't checked in a while.

three@piefed.social · -3 pts · 146d (4 replies)

Bro, just use Rust, bro.

We get it, Rust can suck your dick... and more!

cows_are_underrated@feddit.org · 12 pts · 146d (2 replies)

You can Programm microcontrollers with rust, so while rust may not be able to suck your dick directly, you can build a fully automated memory safe dick-sucking-machine with rust.

Liketearsinrain@lemmy.ml · 5 pts · 146d
[ removed ]
ZILtoid1991@lemmy.world · 3 pts · 146d

I often joked, that if South Park made an episode about Rust, the compiler would work with a USB connected dildo, that you must suck every time you want to declare a variable instead of a constant, or go unsafe, also would feature a Cult of Java developers, that argue Java isn't OOP, because you can just suck off the dick of the compiler in the same way, and use static functions and not have a complicated class hierarchy.

communism@lemmy.ml · 4 pts · 146d

I don't see where I said any of the words you just quoted. Impressive if Rust can suck a dick I don't have though, I'll give them that.

rtxn@lemmy.world · 45 pts · 146d (2 replies)

The person behind their twitter account is a notorious shitter.

BuboScandiacus@mander.xyz · 15 pts · 146d (1 reply)

Well

That checks out for xitter

gandalf_der_12te@discuss.tchncs.de · 4 pts · 146d

did you know, in spain (or some regions thereof) the "x" is pronounced as sh

subignition@fedia.io · 5 pts · 146d
chunes@lemmy.world · 1 pts · 146d
[ removed ]
Quetzalcutlass@lemmy.world · 111 pts · 146d (8 replies)

460 replies

That's Hell you're walking into.

resipsaloquitur@lemmy.world · 14 pts · 146d (5 replies)

Are rustaceans cantankerous?

volore@scribe.disroot.org · 12 pts · 146d (2 replies)

Does the Pope shit in the woods?

SwingingTheLamp@piefed.zip · 9 pts · 146d (1 reply)

(Yeah, AI slop from the early days when I was checking it out.)

volore@scribe.disroot.org · 5 pts · 146d

I'll be damned.

Now we just need to find out if the bear's Catholic, and we'll be set.

Ephera@lemmy.ml · 2 pts · 145d

My instance went down, so I'm way too late to make this joke, but anyways:

We're not cantankerous, just a little ...crabby. 🙃

Saapas@piefed.zip · 2 pts · 146d

It has rabid fans and rabid haters, much of it is some identity politics shit too. It's a whole mess

hemko@lemmy.dbzer0.com · 10 pts · 146d

It's over 1.1k comments already, all the rusties fuming 🤣

OpenStars@piefed.social · 2 pts · 146d

img

WagnasT@piefed.world · 91 pts · 146d (7 replies)

Just make a rust fork of ffmpeg, it can be ffmpreg.

irelephant@lemmy.dbzer0.com · 32 pts · 146d (4 replies)
mbp@lemmy.sdf.org · 19 pts · 146d (1 reply)

The readme is far too serious for such a silly name

mang0@lemmy.zip · 5 pts · 145d

While you're right, this holds true for e.g. 'gimp' and 'git' too.

ResistingArrest@lemmy.zip · 11 pts · 146d

This made my fucking day… ffmpreg…

serenissi@lemmy.world · 2 pts · 144d
svcg@lemmy.blahaj.zone · 10 pts · 146d

Yes officer, this one right here.

OldQWERTYbastard@lemmy.world · 3 pts · 145d

FFmpregante!

mohammed_alibi@lemmy.world · 65 pts · 146d

Rust should switch to ffmpeg!

fubarx@lemmy.world · 57 pts · 146d (4 replies)

Was jokingly going to suggest a WASM version. But then: https://github.com/ffmpegwasm/ffmpeg.wasm

kopasz7@sh.itjust.works · 16 pts · 146d (3 replies)

I'm only asking this half jokingly, what the fuck?

The_Decryptor@aussie.zone · 17 pts · 146d

Makes it portable across architectures while also providing sandboxing.

The fedi software I use (GoToSocial) runs both ffmpeg (Sorry, ffmpreg) and sqlite through WASM, also makes it easier to integrate it with Go code apparently.

gandalf_der_12te@discuss.tchncs.de · 16 pts · 146d

WASM is great :) unironically

everything should switch to wasm. i'm not saying this because of arbitrarily. it's just very well thought-through. wasm automatically provides portability, sandboxing, and integration with other languages.

like, one of the things i still don't understand is why we don't have automatic sandboxing for every application. like, when i download and run a new game from steam, why isn't it automatically put in a sandbox? Why does it have full read/write access to my entire disk? i don't like that at all...

Converting everything to wasm would solve that automatically, and very easily on top of that.

SlurpingPus@lemmy.world · 7 pts · 146d

Reminder that Fabrice Bellard, who originally wrote FFMpeg (and QEMU), also made JSLinux, currently based on his other PC emulator TinyEMU and using WASM.

underisk@lemmy.ml · 47 pts · 146d (4 replies)

Further proof that this is the shittiest holiday only celebrated by the most insufferable.

CanadaPlus@lemmy.sdf.org · 5 pts · 146d (2 replies)

Aww. I just like funny stuff.

underisk@lemmy.ml · 2 pts · 146d (1 reply)

Me too, which is why I hate this fucking holiday.

CanadaPlus@lemmy.sdf.org · 2 pts · 144d

Not sure I believe you, TBH.

prole@lemmy.blahaj.zone · 3 pts · 146d

It's so fucking dumb

grue@lemmy.world · 32 pts · 146d

Huh, I guess the person who runs FFmpeg's Xitter account must live in western Europe (UTC+1:00).

MyTurtleSwimsUpsideDown@fedia.io · 17 pts · 146d

So begins the festival of fools.

fxdave@lemmy.ml · 15 pts · 146d

The reason I don't use C, because I don't hate my life.

homes@piefed.world · 13 pts · 146d (5 replies)

Everyone knows that Swift is the language of the future!

robocall@lemmy.world · 3 pts · 146d (4 replies)

I don't know what swift is

ChickenLadyLovesLife@lemmy.world · 10 pts · 146d (1 reply)

Mediocre pop star.

homes@piefed.world · 2 pts · 146d

Hey hey hey! She married that sports guy with the big dick and wrote a song about it!

Ephera@lemmy.ml · 3 pts · 145d (1 reply)

It's Apple's programming language, kind of intended as a successor to Objective-C.

From what I hear, it's actually decently designed and has quite a few similarities to Rust. Still not sure, how great it is outside of the Apple ecosystem...

robocall@lemmy.world · 3 pts · 145d

interesting. thanks for explaining. I am not an apple person in any capacity.

webkitten@piefed.social · 11 pts · 146d (1 reply)
[ removed ]
ChickenLadyLovesLife@lemmy.world · 5 pts · 146d

Visual Basic isn't dead ... it's just resting!

osaerisxero@kbin.melroy.org · 9 pts · 146d (2 replies)

Is green the high vis color in Europe?

addie@feddit.uk · 2 pts · 146d (1 reply)

The fluorescent green hi-vis is usually reserved for first-aiders, but there are exceptions. I was working on a site in the middle of some rapeseed fields once, and we all got issued green - anyone wearing yellow or orange was swarmed with insects in moments.

Appoxo@lemmy.dbzer0.com · 3 pts · 146d

The neon green in Germany is usually anything.
We have those as high vis vests for car issues.
But we also have yellow and orange

herseycokguzelolacak@lemmy.ml · 8 pts · 145d

Took me like 5 second after reading this to understand that it's April 1st.

Master_Increase_4625@indie-ver.se · 6 pts · 146d
[ removed ]
bookmeat@fedinsfw.app · 2 pts · 146d

Wasn't that last year?

libre_warrior@lemmy.ml · 2 pts · 146d

It's about time!

HeyThisIsntTheYMCA@lemmy.world · 1 pts · 146d

Chomp

RedFrank24@piefed.social · 1 pts · 146d
[ removed ]
jeffep@lemmy.world · 1 pts · 144d

Ha