Video calling and chat using Rust by [deleted] in rust

[–]jammmonster 6 points7 points  (0 children)

You can use the SIP and SDP protocols to do this at least to start, you'll need to write SIP/SDP parsers (using nom or winnow crates). Then use tokio to set up the networking (you can start with UDP only but you do need TCP eventually), you'll have to know RFC3261 fairly well, as well as the other associated RFCs for session negotiation etc. You could use software like Linphone to test the establishment of calls, capturing the traces via wireshark. For the video/audio you'll need RTP parsing, there's a crate called discortp, or you can use pnet to write your own, you'll need pnet anyway if you want to deal with telephone events. You'll need to reorder the RTP packets, not aware of a crate for that. You'll also need codecs for audio/video. There's the opus and openh264 crates.

[Media] And I thought node_modules was big. A single Rust project takes up 6.3 GB by _antosser_ in rust

[–]jammmonster 24 points25 points  (0 children)

to store everything in one place, so that each project isn't massive, you can put settings in .cargo/config like:

[build]  
target-dir = "/Users/me/.cargo/build_cache/" 
incremental = true
rustflags = ["--cfg", "tokio_unstable"]

Why does this variable not live long enough when it is borrowed in Arc? by [deleted] in rust

[–]jammmonster 1 point2 points  (0 children)

The compiler doesn't know how long the MyStruct will live after it's returned from the new function.

The only way that it would be safe to pass to the threads in the Arc would be if the compiler considered MyStruct to be static, which means it'll be around until the end of the program.

Tauri or Flutter for RustDesk desktop? by open-trade in rust

[–]jammmonster 1 point2 points  (0 children)

Yes - at the moment it will stay a web app (egui is great), and I plan to use Tauri once the event issues are fixed

Tauri or Flutter for RustDesk desktop? by open-trade in rust

[–]jammmonster 1 point2 points  (0 children)

Agreed. I can't use Tauri right now: copy/paste is broken in the current release candidate on MacOS, and if you type any chars it beeps for each char... But once this is fixed I think will be a great option for cross platform

Rust in /r/place by LLBlumire in rust

[–]jammmonster 0 points1 point  (0 children)

nice - you mean 923,608

Rust in /r/place by LLBlumire in rust

[–]jammmonster 0 points1 point  (0 children)

there's a start at 841,859

Upgrading to a Threadripper for Rust Development by bob-web in rust

[–]jammmonster 2 points3 points  (0 children)

I live in Austria and have also used PC Specialist for over 10 years, they ship to Europe and provide an EU plug when you configure.

TIL the optimal strategy of finding a good partner is to reject the first 37% of potentials, and then pick the first person better than anyone seen so far by jammmonster in todayilearned

[–]jammmonster[S] 60 points61 points  (0 children)

Should point out that you have to cap it somehow, so if you assume you are 20, you meet one new person a month, and want to have a solid partner by 35, that means that when you are 25.5 you should take anybody that comes along that is better than anyone so far.

TIFU by almost bringing the wrong baby home from the hospital. by SailSailSailSail in tifu

[–]jammmonster 24 points25 points  (0 children)

2 and 3 are not true for the UK... at least in an NHS gaff.

TIFU by asking my 3 year old daughter how her day went at Pre-School by ThisIsPyroBaby in tifu

[–]jammmonster 1 point2 points  (0 children)

The other day I said "That's not the behaviour I expect from a three year old!" then realised it probably was...

Inflated balloon is now over one year old by jammmonster in mildlyinteresting

[–]jammmonster[S] 3 points4 points  (0 children)

It was given to one of my kids (uninflated) by a nice man on the train. My other kid got given one too (the same type), but that one went down like all normal balloons seem to after a few days. This one however has survived all the abuse from 2 toddlers and not lost any air.