#rust server
Explore tagged Tumblr posts
h3lian · 15 days ago
Text
Tumblr media
Colouring practice via a teehee meme 🫡
548 notes · View notes
gabbingwaves · 2 months ago
Text
Tumblr media
Wild mention of my favorite character! Sounds like Jade's playing low-effort mind games on Jamil's birthday just by knowing Jamil would turn it into a mindgame all on his own. Jade knowing Jamil knowing Jade knowing-
"I received a birthday card from Jade. He could have just said it in person; why go through all that extra effort...?"
22 notes · View notes
farlynthordens · 2 years ago
Text
Tumblr media
75 notes · View notes
engiiiiiii · 2 days ago
Text
i love how articles have taken the 'stop using c/c++ for secure applications due to memory vulnerabilities' and taken that to mean no-one should ever use it, c/c++ is over I guess... (I mean both windows and linux are written in a lot of c/c++ so...)
2 notes · View notes
thatancient2 · 27 days ago
Text
THIS IS GETTING OUT OF HAND
THERE ARE UNDERWATER RIFTS NOW???
Tumblr media
5 notes · View notes
spirit-sys · 2 months ago
Text
vintage story is the perfect comfort game for us bc its a satisfying cross of rust and minecraft where nothing can get done quickly.
2 notes · View notes
cerulity · 1 year ago
Text
All-level Rust
Web servers require layers upon layers of software and hardware. Routing, multiplexing, protocols, everything. Rust is a viable solution to making a web server, because it's safe and fast, and has many crates to help (tokio, warp, ws). You can make a browser in Rust, as well as games.
But at the same time, you can make an operating system with it. The lowest level of access to a computer you can get, creating and dereferencing raw pointers, running on the CPU itself. You can make not only games but game engines. You can make compilers. You can do FFI. You can make FFI. Your entire stack can be made with Rust.
You would make a web server in JavaScript, Java, C#, Go, or maybe even Python. But you wouldn't use any of those to make an operating system, because they require a runtime aren't bare metal enough, or throw exceptions. They are good for making web servers because they abstract away problems like buffer overflows, and they are extendable languages. You would use C, C++, or Zig. They are good for making operating systems because it's easy to dig into memory ((unsigned short*)0xb8000 is the VGA text buffer).
Rust can do both. Sure, you can make a web server in those OS languages, but you need to make sure it's safe as hell. Rust itself is safe as hell.
/rust rant
10 notes · View notes
codecraze · 2 years ago
Text
TCP Server Rust
This is a Rust program that sets up a TCP server to listen for incoming client connections on port 5566. When a client connects to the server and sends a JSON string representing an Employee object, the server deserializes the JSON string and prints the employee's first name to the console.
Here's a breakdown of the code:
The use statements at the top of the file import the necessary Rust modules and dependencies. The serde module is used for serializing and deserializing data, and the std::io and std::net modules are used for handling I/O and network connections.
The Employee struct is defined with three fields: first_name, last_name, and employee_id. The #[derive(Serialize, Deserialize)] attribute macros are used to generate the serde implementations for the struct, which allow it to be serialized and deserialized to and from JSON.
The main function sets up a TCP server using the TcpListener struct and listens for incoming client connections on port 5566. When a client connection is received, a new thread is spawned to handle the connection.
The process_object function is called in the new thread to handle the client connection. The function reads the incoming data from the client, deserializes the JSON string to an Employee object, and prints the employee's first name to the console.
The program uses the try_clone method to create a new handle to the same stream, which allows the function to read the incoming data without consuming the original stream.
The program uses Rust's Result type to handle errors that may occur during I/O operations or JSON deserialization.
Overall, this code demonstrates how to set up a TCP server in Rust and handle incoming client connections, as well as how to serialize and deserialize data to and from JSON using the serde library.
Here is main.rs
Tumblr media Tumblr media
Here is Cargo.toml
Tumblr media
Run the following command in your project directory to build and run the server:
cargo run
Open a new terminal window and connect to the server using a TCP client, such as netcat or telnet. For example, you can run the following command to connect to the server:
telnet 127.0.0.1 5566
Once connected, you can send a message or object to the server. For example, to send a message, simply type a string and press Enter. The server will respond with an acknowledgement message.
To send an object, create a JSON string representing an Employee object and send it to the server using the same connection. The server will deserialize the JSON string and print the employee's first name.
To stop the server, press Ctrl+C in the terminal window where the server is running.
2 notes · View notes
dirtypaperjoe · 26 days ago
Photo
Tumblr media
Pearl in the Rough
Shining on top of a throne of gunk, oil, and rust.
  It's crazy how much an idea can morph over time. I had this composition in my head for a long time now, almost since I began, and now that I sat down to work on it, it changed into something very different, something with a completely different intention. It's such an old idea that I think those changes came from me changing as a person as opposed to the regular development of an idea.  Also, it's been an erratic couple of weeks... again. I wish I had more time to sit down and paint, but my other priorities took over my time and energy.  
Here is a timelapse of the process. I'm open for commissions!
1 note · View note
farlynthordens · 2 years ago
Photo
Tumblr media Tumblr media Tumblr media Tumblr media
inui milo and nishigaki bisco (cobkubo’s initial character concepts)
Tumblr media
37 notes · View notes
panicbroadcast · 9 months ago
Text
my friends convinced me to play rust
and man it's so fun but im so scared all the time
0 notes
newcodesociety · 1 year ago
Text
0 notes
nexttimeisnotthesame · 1 year ago
Video
tumblr
Jae’s birthday message to June 🎂 (2021)
1 note · View note
realbadatpoker · 1 year ago
Text
Error messages in Java:
Something failed somewhere in your code, here's a thousand lines of unrelated stack trace. Oh, and how about it's error code 1. Good luck googling that, asshole.
Error messages in Python:
Is that... It's that a space next to a tab?
Eeeeeeewwwwwwwwwww
I'm not reading this!
Error messages in Rust:
Oh, hey, man, um, I think you forgot a semicolon here, I can fix that for you, don't forget next time!
1 note · View note
sethdomain · 1 year ago
Text
I’m not an inniter anymore but I still think about my rust design, should I just yoinked him and book it as my Oc
0 notes
eldritchdemonfox · 2 years ago
Text
Name: Molotov Rust
Nicknames: Sister (The Sisterhood of Flora), Molly, Friend (Buddy)
Age: “Born” in 1989
Gender: Nonbinary/Genderfluid (They/Them, Any)
Race: Redcap (a type of fae)
Height: 5'0'
Power: fae magic, very enhanced senses and physical abilities. Can detect and manipulate violent urges.
Affiliation: their knife collection, the Sisterhood of Flora (Adopted Sisters), Ë, Francis, Aven Mallory (Old Friend)
Extra: redcaps are a type of murderous fae spawned from bloodshed, often on battlefields. They must soak their red caps in fresh blood periodically or perish. Molly was born during The Troubles in Ireland.
Molly has an honour code about who they do or don’t kill. Panromantic and Demisexual. Lives in a house with Yoran, Airidey, and Lauren.
Tumblr media
1 note · View note