Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
civility
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
civility
10y ago
> the most uniquely Rust [hurdle] is the stack vs. heap issue I can only speak for myself, and I politely disagree. So far, explicit lifetimes (both the syntax and the concepts) seem like the most uniquely Rust issue. > [if you] want
272.
▲
by
civility
10y ago
> What were the hurdles that you encountered? > One difficult aspect of Rust relative to Go must surely be generics and trait bounds. Conceptually this isn't bad at all. I understand the value and mechanism of specifying the req
273.
▲
by
civility
10y ago
> Did they consider the OCaml approach of "generic modules"? Heh, I certainly can't speak for them, and I don't know what they've considered outside of that link. I also don't know C# or OCaml well enough t
274.
▲
by
civility
10y ago
Steve seems like a genuinely helpful guy, but I'm not sure my most recent headache is a documentation problem so much as a deficiency in the std/core library. I was trying to write a generic function that called abs() on some of
275.
▲
by
civility
10y ago
You're interested in the links, not the arguments. I can't see how this is going to be fruitful.
276.
▲
by
civility
10y ago
I've had several discussions with you over the last couple years. I create throw away accounts on Hacker News, Stack Exchange, Reddit, Slashdot, Rust Users, and so on because I value my privacy. I don't want to tie my throw away
277.
▲
by
civility
10y ago
I like generics as well, but this comment (and embedded links) made me appreciate why Go doesn't have them yet: https://news.ycombinator.com/item?id=9622417 I agree, the value in generics/templates is in not
278.
▲
by
civility
10y ago
Are you only asking the person you replied to? I have some topics I think indicate shortcomings in the language itself, but when I've brought these to the attention of core Rust developers in other threads of discussion the result has
279.
▲
by
civility
10y ago
Are Servo and rustc in the Rust documentation? Literate programming of some sort? Maybe you're replying to a different criticism. I've been through the Rust Documentation (doc.rust-lang.org) and Rust By Example (rustbyexample.co
280.
▲
by
civility
10y ago
> Rust is a formalization/codification of idiomatic C++ Idiomatic C++ favors values and copy semantics. Rust favors references and move semantics. C++ has function and method overloading, and Rust does not. There are so many plac
281.
▲
by
civility
10y ago
> The biggest hurdle people seem to have with Rust is that it makes you very aware of the difference between stack and heap allocated data. What do you base this belief on? I'm very comfortable with C and assembly. I am very certa
282.
▲
by
civility
10y ago
Same reason paleontology, geology, anthropology, climate science, astronomy, and so on have a difficult time... Any theory that can't be falsified by running an experiment shouldn't be called "science". At best, people
283.
▲
by
civility
10y ago
> If people really think that the government can maintain roads with no money Do you really think they brought in "no" money? That's ridiculous. The government should figure out how to waste less of the existing taxes be
284.
▲
by
civility
10y ago
Being motivated and not quitting are very different things. I like the work I do, and I work hard at it. However, other places have interesting problems too, and if I could find a place that pays me more than I make now, I'd jump.
285.
▲
by
civility
10y ago
It needs to compile (at least the C or C++ parts). Frequently the people who operate the software will want to make small changes.
286.
▲
by
civility
10y ago
It gets worse. My software has to run on my customer's computers. These can be any of RHEL 5, 6, or (rarely) 7. It'll be a few years before I can safely deliver C++ 11 software, and I snicker at the Pythonistas complaining abou
287.
▲
by
civility
10y ago
> The truth is that one does not need generics. I write a lot of algorithms that can work with float, double, complex float, and complex double. Without generics/templates (or a macro pre-processor), I have to cut and paste that co
288.
▲
by
civility
10y ago
You also won't find the value if you try it in the most difficult places.
289.
▲
by
civility
10y ago
No more spaces: typedef unsigned char uchar; DECLARE_AND_IMPLEMENT_ARRAY_API(uchar)
290.
▲
by
civility
10y ago
This still has nothing to do with what I've said. Take care.
291.
▲
by
civility
10y ago
We were talking about reading into a bounds checked array. Rust does not user iterators for this.
292.
▲
by
civility
10y ago
> Is this abstraction zero-cost? What's the overhead? It will cost a single correctly predicted branch, which is effectively free on modern architectures. Any "safe" language will have to make this conditional branch too
293.
▲
by
civility
10y ago
Completely agree. The same is true at a slightly higher level in C++. All of the "dangling reference" problems can be avoided by using a value-based collection library and not creating references. Then upgrade to a unique or sh
294.
▲
by
civility
10y ago
I'll bet he can give you an array_read() function that does what you ask. I know I could.