How're you parsing dates?
rosetta-date ? let dt = rosetta_date::parse("5 days ago")?; - no predefined date format needed, and it uses the time backend by default.
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
Latest posts
rosetta-date ? let dt = rosetta_date::parse("5 days ago")?; - no predefined date format needed, and it uses the time backend by default.
I thought js UI framework like electron is too heavy and have too much packages to manage, so I have decided to use AI to just build it all in Rust. So far I think it has reached working similar as shadcn...? here is the work so far Repository hyuskui/ui GitHub - hyuskui/ui: Copy-and-own components for GPUI Copy-and-own components for GPUI and documentation hyuskui/ui hyuskui/ui - Native components for GPUI Well-designed components for GPUI, the GPU-accelerated Rust UI framework. Copy them into…
I am making UI library on top of GPUI. hyuskui/ui hyuskui/ui - Native components for GPUI Well-designed components for GPUI, the GPU-accelerated Rust UI framework. Copy them into your app and make them your own. feedbacks are welcome Repository hyuskui/ui GitHub - hyuskui/ui: Copy-and-own components for GPUI Copy-and-own components for GPUI
I'm writing a program that needs to parse dates written by humans who don't necessarily follow any particular standard, the way date from GNU coreutils can understand nearly anything. There's a crate that does exactly this, called dtparse, but its git repo hasn't been touched in two years and it also depends on chrono which has been marked unmaintained recommending jiff or time crates as replacements. Both of those crates offer built-in ways to parse date strings that are in a known format, but…
Thanks, @Anlis! I'd like to simplify it, but PostgreSQL's UPDATE doesn't support LIMIT or ORDER BY. A plain UPDATE ... WHERE status = 'pending' would claim every ready job at once instead of one. The subquery is there to pick exactly one row (the oldest ready one), and once there's a subquery, SKIP LOCKED keeps workers from waiting on the same row. Good point on RETURNING: it returns the new value, and that's what I use.
Hi everyone, I'd like to share Cairnflow, a durable execution engine written in Rust. Its one constraint shapes everything else: nodes hold no state. Every byte — journals, timers, queues, the range table itself — lives in an S3-compatible bucket, and the only coordination primitive is the store's conditional PUT. There is no Raft, no etcd, no Postgres to run beside it. Kill a node with kill -9, start another one anywhere with the same bucket URI, and every invocation continues from its last…
This list mixes legitimate criticisms, overstatements, outdated claims, and subjective preferences. · “Not memory safe/type safe” is mostly false for safe Rust. Safe Rust prevents memory-safety bugs and data races in safe code; unsafe exists, and logic bugs/panics/deadlocks remain. No language promises “no major runtime faults.” · Maturity/optimizations: Rust is younger, but LLVM-based optimization is generally good. Compile times are a real weakness, especially with heavy generics/macros. ·…
My goal with both is to highlight the inadequacies of the language. I do not expect this post to lead to any tangible change, because the Rust community is simply not capable of accepting and improving from their failings (similar to the D Language people, and their plang died similar to how Rust will). They're free to try and do so, but I know they will not.
Hey everyone! I've been working on an open-source project called Rill, and I'd love to get some feedback from the Rust community. GitHub: GitHub - Joy-Majumder/Rill: Rust-backed neighbor sampling for PyTorch. · GitHub PyPI: rill-gnn · PyPI What is Rill? Rill is an attempt to build Rust-powered infrastructure for Graph Machine Learning (Graph ML). The initial focus is graph data loading and neighbor sampling for Graph Neural Network (GNN) workloads. When working with GNNs, data processing can…
winner: I am not coloring everyone, by "Rust Community", I mean specifically these Rust zealots, which probably includes you. What is your goal with your initial post? your ad-hominem against me? Do you want to improve the language? What are your suggestions to address the issues that you see with the language as-is?
conqp: ~> rustup target list | grep bsd aarch64-unknown-freebsd i686-unknown-freebsd x86_64-unknown-freebsd x86_64-unknown-netbsd ~> All of those targets are Tier 3. Which means they are untested, ergo, they will not be reliable. conqp: So you want decentralization, but everything in the standard library? This is the kind of baseless contrarianism that really irritates me about the Rust people, did I ever say "everything in the standard library"? The stdlib lacks things as fundamental as RNG…
I'll take the rage bait. winner: It is not as decentralized as C++, all decisions come down to a very opinionated core team. winner: Incomplete or immature standard library relative to the claims - many basic things still require third-party crates, increasing the surface area for supply-chain risk. So you want decentralization, but everything in the standard library? winner: It's not memory safe, type safe, or free from major runtime faults, which is it's biggest selling point. The Rust…

winner: me right through their "moderation team" by quickly deleting this post, because they can't handle criticism, It happens to me each time and I proud of that. Why? Because my posts are read and turn critical strings. So thank you Rust people for that, working together we create the beauty.
It's not memory safe, type safe, or free from major runtime faults, which is it's biggest selling point. It's not nearly as mature as C++, and lacks the optimizations that has been made to C++ compilers. It is not as decentralized as C++, all decisions come down to a very opinionated core team. Slow compile times. Restrictive, unintuitive borrow checker that encourages .clone() everywhere, leading to slow, allocation-heavy and non-performant code. Can't use custom allocators because "the…
Your question is very general and the topic is very broad, so it's hard to give a great reply. Below I given an outline of how borrow checking works, which is probably the most common lifetime-related hangup people have when learning Rust. If your question was more about how to use lifetimes in structs, traits, or function signatures, it may not help much. proRust: and what their main uses are The main role that Rust lifetimes ('a things) play is to enable the borrow checker to do its job. The…
early phase of a CLI based 3D editor / workshop cargo install spi3derr I am very happy for any test. help: /help commands: / The basic key is: Tab = select a next target. T = target under cursor, ESC = lost target. space = stop movement. w = forward s = backward a = left, left turn , s right, right turn r = up, up turn, f = down, down turn. q = edit model under cursor, or create a box and edit detailed post on dev.to: DEV Community cargo install spi3derr cargo install spi3derr Enter fullscreen…

Thanks for your feedback. This is presented in the First sub-section in the README.md (Is shrewd Right for You? section) - just bellow the initial short introductory paragraph. Can you perhaps explain more on what exactly you expect here? Are you suggesting to add data distribution examples to the README.md on when the byte packing is better and when its worse?
I've had success porting a (much smaller!) project to Rust in a similar way to the Fish blog's description. My main problem there was untangling all the static data that used. It's possible to share that between C++ and Rust, but incredibly ugly! That was a stand out of the more general issue of pulling out a clear and clean dependency tree of what you can port first easily; it's often a lot easier to first refactor the C++ to simplify the dependencies, especially interdependencies, before…
I finally got around to writing the core logic for my application (mesh networking, document sync, and doc rendering), so now I'm starting to plug it all into a Tauri application. Which ought to be fun, since currently the core lib itself (no frontend) has >800 deps...
That's still more work than "cargo publish", even if most of it only has to be done once. (That said I do think this is probably my least bad long-term approach, coupled with releasing from CI which ought to happen anyway. Thanks for the "please see the repo for benchmarks" suggestion in particular.)
MASHMARO2718: Do you think this separation makes sense, or would the need to rethink the original design make it impractical anyway? So you mean automated translation, a transpiler. I'm not sure I see the point, to be honest. If it's a library, I'd definitely use the FFI approach, as others said. It'll avoid having to port the code and maintain two libraries separately. If the C++ library doesn't change any more, maybe you can translate it incrementally if there's time. If the idea is to fork…
early phase of a CLI based 3D editor / workshop cargo install spi3derr I am very happy for any test detailed post on dev.to: DEV Community cargo install spi3derr cargo install spi3derr Enter fullscreen mode Exit fullscreen mode ...

I've been dissatisfied with num-traits in my projects for many reasons, so I'm developing my own abstract algebra library with traits for numbers and number-likes, numlike.
webdomain0126: SKIP LOCKED: every statement runs in its own implicit transaction, so the row lock inside the subquery is real. Without SKIP LOCKED, two workers can pick the same row; one then waits and gets nothing. With it, each worker skips to a different row. Fair enough, but my main point was that this query probably might be simplified to just UPDATE without additional select, so you could also get rid of lock. The only caveat is that in this case RETURNING d.attempts will return updated…
Thanks again, @Anlis! Migrations: great point. I'll switch to sqlx::migrate!() so it runs only new migrations at startup. That also makes the release easier to set up. SKIP LOCKED: every statement runs in its own implicit transaction, so the row lock inside the subquery is real. Without SKIP LOCKED, two workers can pick the same row; one then waits and gets nothing. With it, each worker skips to a different row. Transactions vs lease: I chose the lease on purpose. Holding a transaction during…
Some more feedback: Migrations. Currently I don't see any migrations management. The problem is that if you run migrations 2 times it gonna fail because you already have tables/indexes/etc created. Usually you have some migrations manager which creates and manages another table which contains the records about applied migrations. This way if you add new migrations, it applies only new ones, skipping the already applied. Sqlx has it's own built-in migrations manager, see the docs. Claim next…
shrewd stores a Vec<i64> in 2–8× less memory and still lets you read any element by index. You should specify under what conditions your structure actually uses less memory and under which it uses more early in the readme. (all methods of encoding data that make some values smaller must make others larger unless information is lost)
Previously when I used tracy's flamegraph window I could select between instrumentation (the timing of entire spans) and sampling (the timing of individual functions), the second option suddenly disappeared for some reason, how do i get it back? I use tracing-tracy and tracy 1.13.1 incase it makes a difference. My tracing profile: [profile.trace] inherits = "release" debug = "full" [profile.trace.package."*"] debug = "full" The tracy initialisation code: use…

For me it's entirely different metaprogramming model. Lack of if constexpr and requires means compile-time inspect-and-choose metaprogramming is more-or-less impossible. Instead you are forced to do all these things with macros and collection of marker traits… often there are simply no way to adopt what you have in C++ into Rust: static_assert can be replaced with const { assert!(…); } but if you try to replace if constexpr with if const { … } you often need a lot of creativity to ensuree that…