Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ygg2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
961.
▲
by
Ygg2
2y ago
> My big problem with Rust is too much "unsafe" code. I hear cargo-geiger is useful identifying such crates. > I just do not see why people seem to use "unsafe" so much. Because it's: A) fast (branchless acces
962.
▲
by
Ygg2
2y ago
> Try running `cargo build --timings`, it creates a report about build time Yeah, I got a bit longer time now, after `cargo clean `. Here are the timings: https://html-preview.github.io/?url=https://gist.github
963.
▲
by
Ygg2
2y ago
Duality of man - "It hurts when I touch it": - Linus: "Don't touch it!" - Kent: "Touch and probe it until it stops!"
964.
▲
by
Ygg2
2y ago
Nice library! Manipulating money is probably trickiest thing since time was invented. Library looks very usable. I have to ask though: > val transactionFee = 1.25.percent() // 1.5% How is it 1.5?
965.
▲
by
Ygg2
2y ago
So is /tmp a ramdisk? I have 64GB DDR4, but overclocked to double Infinity Fabric timings i.e. 3600 Mhz (it might be different for DDR5/ Zen4-5). I ran this on MSVC toolchain on windows. With like 43% memory taken by various Firef
966.
▲
by
Ygg2
2y ago
I have 5900X, and I got like 4m34s build time on Windows (which should be slower). What memory are you using? Are you overclocking? Are you using SSD?
967.
▲
by
Ygg2
2y ago
> Clone this popular open source game written in Rust: > https://github.com/veloren/veloren > Compile it, `cargo build` easy > Insert "... an hour later .." meme Download the repo - 15m Cargo fetc
968.
▲
by
Ygg2
2y ago
> Clone this popular open source game written in Rust. What does this have to do with Rust GPU? A game is compiling slowly, I get that but what is the connection?
969.
▲
by
Ygg2
2y ago
> Not serde, but newer version of rust, no? No, that's a separate issue in 1.80. See https://internals.rust-lang.org/t/type-inference-breakage-in... Issue was: new type inference caused problems for old version
970.
▲
by
Ygg2
2y ago
Here is another. Serde moving to binary blobs. - Does it alter API? No. - Does it change behavior? No. - Does it alter a public promise? No. - Is it SemVer violation? Nope. What is the problem then? Reproducible builds of NixOS and similar
971.
▲
by
Ygg2
2y ago
Honestly, impressive work. Getting any language on bare metal is hard work. That said is Ada Spark toolchain proprietary still?
972.
▲
by
Ygg2
2y ago
Java isn't that restrictive. Rust's type system is much more restrictive and customizable. That said, a good way to think about programs is a series of restrictions, i.e. invariants. Truth be told, only Ada Spark so far really emb
973.
▲
by
Ygg2
2y ago
> "One class per file". Wait. What? Neither Java nor Rust limit class/struct per file. You must mean public class per file. As a fellow Java dev, no it doesn't look like Java at all. Maybe it looks a bit like Kotlin,
974.
▲
by
Ygg2
2y ago
> But it also is so much more (and also a cult). Way to lose readers with memeish statements like that. That said it's in good company of cultists like Smalltalk and Lisp community ;) > * Its "oop" model is uncomfortabl
975.
▲
by
Ygg2
2y ago
> - rusts type system is strong enough to build extremely powerful zerocopy serialization, but people don't explore that space because of serde That's what I have a problem with. Pure Zero-copy parsers aren't explored beca
976.
▲
by
Ygg2
2y ago
> Put another way: a zero copy (de)serialization protocol is one where the on-disk format is the same as the (readily usable) in-memory format. Ok, but for it to be useful in a (Rust) program it has to be converted to a Rust type. At som
977.
▲
by
Ygg2
2y ago
> But my point, is that his crates (and thus he) hold too much power, even if there had been 0 incidents. That's not his failure per-se, but it's rusts failure if a single person can hold this much power, and be involved with t
978.
▲
by
Ygg2
2y ago
I'd like to challenge your theories. > syn itself is essentially a hack that has become so entrenched that there is little incentive to improve rusts metaprogramming story It's not a hack it's a way to expose compiler inte
979.
▲
by
Ygg2
2y ago
Tcl is yesterday's news. Hip crowd moved to artisanal ASM.
980.
▲
by
Ygg2
2y ago
Valuation isn't income.
981.
▲
by
Ygg2
2y ago
I thought you wanted to prevent transitive dependencies. For sandboxing crates, as JoshTriplett said it's another can of worms.
982.
▲
by
Ygg2
2y ago
Edit: replied to wrong person.
983.
▲
by
Ygg2
2y ago
Are They in the room with us?
984.
▲
by
Ygg2
2y ago
To a point. Let's say you're optimizing a backend written in TS on Amazon, sure it's cheaper to hire guys to optimize it, but at some point it won't be. Either you need some really high class talent to start optimizing s
985.
▲
by
Ygg2
2y ago
While there are trucks of nightly only features, some are stuck there for a good reason. Specializations allow unsound behavior in safe Rust, which is exactly what nightly was supposed to catch.
986.
▲
by
Ygg2
2y ago
Yes, I'm saying in those cases it does make some sense to rewrite it in Rust.
987.
▲
by
Ygg2
2y ago
From security perspective I agree but what if you want to be rid of GC or just reduce your overall resource consumption?
988.
▲
by
Ygg2
2y ago
> that it would be even better for security to stop adding new features when they aren't absolutely necessary Even if features aren't necessary to sell your software, new hardware and better security algorithms or full on depre
989.
▲
by
Ygg2
2y ago
Even i5 will only make it around twice as slow[1]. So from 5min -> 10min. And that's a relatively pessimistic scenario - huge number of dependencies, slow processor (i5), fresh build. In incremental build, it goes from minutes to se
990.
▲
by
Ygg2
2y ago
You're overestimating the budget needed for the rig. Would working with a Windows 7 era laptop and Rust suck? Yes. But so would anything else. I'm on a 4-year-old PC, granted it's 5900X, 3800 MHz RAM and my numbers are derive
More ›