CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 06:02:16 GMT
content-type: text/html; charset=utf-8
cf-ray: 9659ed46dbf6c1b3-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=5d009de2-13a7-48cf-a147-5ed17aa37465; expires=Mon, 27 Jul 2026 06:02:16 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 4aacd5e7-552a-4849-b539-e4edf6f241b7
x-worker-origin-response-time: 1119000000
x-dns-prefetch-control: off
set-cookie: prov=5d009de2-13a7-48cf-a147-5ed17aa37465; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=TFQ4BzkY1MZHAgJqEmAFwZa3fMxRxp7nRDNWYOBXMuA-1753596136-1.0.1.1-82VbCcaSwGi3la5wXHcAxfRnc4nEXD_ez3Y5wYofbDfAQ.bLChoVaReuatYwOW9aQyqteOseo5UeHhSyKqCqYqJ3I3EUSZ943agJJDL9U0Y; path=/; expires=Sun, 27-Jul-25 06:32:16 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=Ivk8hpmdJlUeJoHrZ.TdazhCuYKmbs13df.gk3gqj.0-1753596136639-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'rust' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [rust]
Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without needing a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.
876 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
10
votes
4
answers
2k
views
Builder pattern in Rust
I tried to implement Builder pattern, a popular design pattern for constructing objects consisting of different components, in Rust.
Here is my attempt:
...
4
votes
1
answer
117
views
Higher-kinded types in Rust
Also posted on Reddit.
As a small personal exercise, I'm trying to implement a notion of higher-kinded types in Rust using type-level defunctionalisation based on the "Lightweight higher-kinded ...
7
votes
1
answer
556
views
Testing a user submitted python function
I am creating a website with coding questions. When a user submits a code for a question I use the contents of the question to create a python file and then I send it to the piston API for evaluation.
...
1
vote
2
answers
116
views
Translating an image encoded as u32 to an array
I have a function in an embedded system which translates an image encoded in a 32-bit integer to 3x9 matrix (an array of arrays):
...
2
votes
0
answers
56
views
Basic Rust server + client to handle future game logic
I made a really basic server and client in Rust using tokio for the server.
I would like to receive feedback on the (very limited) code I have so far, just to make sure I'm on track to follow Rust's ...
1
vote
1
answer
91
views
Creating functions that send and receive atomic messages in Rust paradigm
I'm converting a library from C to Rust, and I want to see if this is the optimal way to implement network communication. This ...
1
vote
2
answers
304
views
Fibonacci sequence generator
I have a piece of code that attempts to reduce the work and span in making a Fibonacci sequence. My approach is to parallelize the code as much as possible, along with doing matrix multiplication and ...
5
votes
1
answer
115
views
File system regex searcher
This is my first Rust project (I'm primarily a C guy). I want to know if my code is properly idiomatic (Rusty?). Also, are there any inefficiencies?
The code defines an iterator (...
4
votes
3
answers
122
views
Number guessing game in Rust
I am learning Rust and would like a review to make sure I am following best Rust practices before continuing. The user enters a number between 1 and 100 up to 6 times to guess the randomly-generated ...
2
votes
0
answers
92
views
Monte-Carlo pricing engine for a structured product
I'm implementing a Monte-Carlo pricing engine to price a structured product in Rust, using the usual Black-Scholes assumptions. This pricing engine is used in a (basic) gRPC server which receives all ...
4
votes
1
answer
137
views
Generating Time-based One Time Passcode
Following Wikipedia: Time-based one-time password and Wikipedia: HMAC-based one-time password, is this Rust implementation of the TOTP/HOTP algorithm correct?
As far as I can see, this matches the ...
1
vote
1
answer
63
views
Needleman-Wunsch algorithm with affine gap cost
Needleman-Wunsch is a bioinformatics algorithm used to align 2 sequences. The algorithm outputs the score of the alignment and a Vec containing all operations to reconstruct the alignment. I do not ...
0
votes
0
answers
37
views
GraphQL client for Github Projects API
As a fun hobby project I made my own time logger in Rust called Rusty Time Logger. You can track how many time you spent on a ticket or feature, until now it missed the feature to automatically update ...
5
votes
2
answers
400
views
Rust implementation of Euler problems
I'm starting to learn rust and figured my first simple project would be to solve some of the Euler problems. I'd appreciate if anyone could tell me where I might be ...
4
votes
1
answer
101
views
File list and monitor
I recently was given a take home assignment for a job interview. The task was specified like so:
...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
beginner × 208
performance × 69
algorithm × 53
parsing × 35
strings × 26
primes × 23
iterator × 22
multithreading × 19
file × 16
error-handling × 14
game × 14
console × 13
file-system × 13
linked-list × 13
sorting × 13
tree × 13
generics × 12
vectors × 12
cryptography × 11
comparative-review × 10
lexical-analysis × 10
mathematics × 10
more related tags
Hot Network Questions
- When did the OEIS get even better?
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- What is the weight of holy water?
- rock paper scissors game with randomized system choices. NOT using rnd()
- Most practical way to determine concentration of reducing sugar in frozen French fries?
- In Jurassic Park, is the lysine dependency intentionally fake (in-universe)?
- Not your ordinary affix riddle
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- how is it possible for a player to have crossed 2400 and secure 3+ IM norms to stay FM
- Did Denmark report that 64% Palestinian refugees from 1992 received serious fines or jail time?
- "I met a monk and philosopher." How many people did I meet?
- Existence of Jordan curves between a compact and an open set
- About security concerns using in find -exec vs interactively performing the same task
- Does SZNUD3160 really eliminate the need for diode?
- Are classified documents subject to a subpoena in discovery?
- When was the last time all humans were on the ground not in the air?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- Tracking stored procedure performance metrics
- How many simple groups are there of a given infinite cardinality?
- Word order for a phrase with a number, adjective and noun
- sum of squared distances between Farey neigbors
- How do Francophones hear "ChatGPT"?
- Class for validating code in different Conda environments with PyTorch
- Alternative to tedious assert-rewrite for trivial operations?