Live data from Hacker News

Why Rust?

rerun.io

231–240 of 294 posts

Re: Why Rust?

#231

For someone like me that's an experienced programmer but relatively new to Rust, what are some open source Rust projects that could benefit from some help?

Check out 'This Week In Rust', which has some calls to action from various projects.

Re: Why Rust?

#232

Earlier quoted context omitted.

I hire candidates based on skill, core values and judgment. I completely accept that others might use different criteria.

So you think someone who worked at a crypto startup showed a lack of judgement? Do you have a blacklist of companies or sectors (adtech, surveillance tech, data collection, weapons manufacturers, pharma, lottery, porn, ...)? I would love to see that list.

> So you think someone who worked at a crypto startup showed a lack of judgement?

Yes, yes I do. I've had a candidate with 2 crypto rug pull startups under his belt, otherwise brilliant and passionate about tech. He went back in for a hat trick. I do not think he displayed proper judgement, do you?

Re: Why Rust?

#233

I just bootstrapped Rustc 1.58 using only GCC and mrustc sources on an 8 core 16 thread machine with 32 GB memory and lot's of disk space. It took 20 hours. If you think Rust is bloated, I agree.

It's hard to even respond to this lol

1. You used an in-progress compiler to build a project and you're drawing conclusions about the language it compiles?

2. The compiler is huge, why does that imply any "bloat" of the language? Compilers do lots of things that aren't "visible" at the language level - optimizations, producing helpful errors, providing code completion/analysis assistance, etc.

3. What does "bloated" even mean?

4. What makes you think that 20 hours is very slow? Have you tried building Clang and llvm together from source? It can take quite a while, but it also depends heavily on how you build it (which build system, flags, etc), which you've not given any information on.

Re: Why Rust?

#234

Earlier quoted context omitted.

I think you've covered all the major options: - Use Rc (or Arc if you need to be thread-safe) - Use a Vec, slotmap, or a similar data-structure and store handles (indexes). This doesn't entirely prevent use-after-free bugs. But it does tend to make them panics rather than silent errors. - Use unsafe (and ideally create your own higher-level safe abstraction) In theory, there should also be 4: - Use a GC library But I…

But most of the bugs I often face and seem to struggle with are with dynamic lifetimes (in graphics / simulation / gamedev). So even as a relatively low-level systems dev I don’t really find Rust’s borrow checker that useful.

I guess the benefit of Rust in this case is that you will get an index out of bounds error rather than Undefined Behaviour.

Re: Why Rust?

#235

Earlier quoted context omitted.

So you think someone who worked at a crypto startup showed a lack of judgement? Do you have a blacklist of companies or sectors (adtech, surveillance tech, data collection, weapons manufacturers, pharma, lottery, porn, ...)? I would love to see that list.

> So you think someone who worked at a crypto startup showed a lack of judgement? Yes, yes I do. I've had a candidate with 2 crypto rug pull startups under his belt, otherwise brilliant and passionate about tech. He went back in for a hat trick. I do not think he displayed proper judgement, do you?

Depends on the details of the prior two startups and the third one. It may or may not be poor judgement. But to get back to your original post, will you blacklist every single candidate who has had a stint in the Crypto space?

Do you also think that someone who worked on two Google chat apps (which are obviously discontinued) and now working on their third one is showing a lack of judgement?

Re: Why Rust?

#236
post #49

Earlier quoted context omitted.

Sounds a lot like Silicon Valley circa. 1999

Except that cryptomoney isn't adding insane amounts of value in any niche, outside of extortion and evading government controls.

Ability to evade government controls sounds like a great thing in a lot of circumstances. I have compiled a list of specific examples around that topic: https://news.ycombinator.com/item?id=32406095

Why do you think governments are always right? Haven't you learned any history?

Re: Why Rust?

#237
post #86

Earlier quoted context omitted.

Evading government controls sounds like a valuable attribute.

Yes and no, both. That really depends on what government and what control. But anyway, the amount of value you can provide there is severely limited, as you can only at most undo the value your government is destroying. You can't ever get in a better situation than what you would get with a competent liberal-ish government and no cryptomoney. That means some business can exist there, and a small amount of it can even…

> You can't ever get in a better situation than what you would get with a competent liberal-ish government and no cryptomoney.

And what if you have only an incompetent authoritarian government? How would you help fight citizens of those governments? Crypto is a great tool there. Just because there are insufferable crypto-bros peddling shitcoins to make a quick buck doesn't mean entire Crypto field is useless. That'd be like blacklisting the entire data mining field because surveillance tech and adtech exist.

Re: Why Rust?

#238
post #182
post #87

Earlier quoted context omitted.

Rust will never make it to the frontend at scale. There is a reason why JS was invented. People doing frontend dev don't want to bother with slow compile time or 3 strings implementation. And the fast argument is missleading at best, every modern language are "fast" enough, if Amazon and Google runs Java that mean it's fast enough for 99% of workload.

JS is the best language for web - and generally for high level systems design - and honestly I don't know why people don't want to see it. Good parts of JS are: first class functions and closures and prototypical inheritance. Find decently popular language with those things implemented well, good luck. Rest of JS features are a noise, improvements of developer work ergonomics (all those let/const, modules, async/awai…

Because lots of languages have first-class functions, and prototypical inheritance isn't actually that good an idea and most people just use it to implement bad class systems.

Re: Why Rust?

#239

Earlier quoted context omitted.

> So you think someone who worked at a crypto startup showed a lack of judgement? Yes, yes I do. I've had a candidate with 2 crypto rug pull startups under his belt, otherwise brilliant and passionate about tech. He went back in for a hat trick. I do not think he displayed proper judgement, do you?

Depends on the details of the prior two startups and the third one. It may or may not be poor judgement. But to get back to your original post, will you blacklist every single candidate who has had a stint in the Crypto space? Do you also think that someone who worked on two Google chat apps (which are obviously discontinued) and now working on their third one is showing a lack of judgement?

> But to get back to your original post, will you blacklist every single candidate who has had a stint in the Crypto space?

Not if they recognize the mistake and learn from it.

> Do you also think that someone who worked on two Google chat apps (which are obviously discontinued) and now working on their third one is showing a lack of judgement?

No, it's not fraud and the paycheck checks out. On the other hand, can you imagine? Do you know someone like that?

Re: Why Rust?

#240

Earlier quoted context omitted.

I'm not sure if I understand your wording: "a crate for seeding random number generators"? Do you mean, "is there a RNG that you can seed in Rust"? There's a `rand` crate[0] which I believe was written by folks in the Rust project, though it's not part of std. You can seed the RNG[1]. [0] https://crates.io/crates/rand , https://github.com/rust-random/rand [1] https://docs.rs/rand/latest/rand/rngs/struct.StdRng.html#m…

Sorry, yes, that's kind of what I meant. Ultimately, I want to be able to seed an RNG with an alphanumeric string, and in other languages that means using a third-party library or writing one myself.

The `rand` crate in Rust is a de facto standard, but it's not an official standard, so that does technically mean trusting a third-party library. A lot of the Rust ecosystem is structured this way, in part because package management with Cargo is convenient.
Post reply on HN