Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
estebank
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
931.
▲
by
estebank
4y ago
https://wiki.mozilla.org/Areweyet https://github.com/UgurcanAkkok/AreWeRustYet
932.
▲
by
estebank
4y ago
It depends on the TTS software involved: some were outright skipping the characters which is worse than the ASCII version, but I consider that to be a bug of that software.
933.
▲
by
estebank
4y ago
It's a request for the following to be valid enum X { A, B, } fn foo() -> X::A { X::A } which helps a lot when composing state machines. In the meantime, you can indeed do what you propos
934.
▲
by
estebank
4y ago
Both are valid Rust. The former means "I don't own var, but I can change it", while the later means "I own a reference that I can change where it points, but I can't change the pointed value." An argument could
935.
▲
by
estebank
4y ago
And anyone that has learned (or just plain gotten used to) Rust in the last 3 years would be in for a shock if they tried to use Rust 1.0. Things have gotten better since. And I'd bet that it will continue to do so, at least for a wh
936.
▲
by
estebank
4y ago
OP isn't talking about the performance of Rust code to calculate fib(35), but rather the performance of a Rust implementation vs a Zig implementation of an interpreted language executing code to calculate fib(35). They are saying that
937.
▲
by
estebank
4y ago
Not Just Bikes just released a very relevant video about the very real problems that SUVs and modern trucks have on urban environments. https://www.youtube.com/watch?v=jN7mSXMruEo
938.
▲
by
estebank
4y ago
That's not far off the (B?) plot of the Rainbow Six book.
939.
▲
by
estebank
4y ago
This new picture is in conversation with the older one, acknowledging its legacy while also making a statement. Is there anything about the new picture that is souless, beige, featureless or boring?
940.
▲
by
estebank
4y ago
> On MY computer, I run what I want. You can always do so, as long as you're not connected to the internet. In the same way that on your property you can drive what you want, but on the road there are minimum standards of safety
941.
▲
by
estebank
4y ago
The article wasn't about adding ASCII art, only about allowing the default panic handler to print the output correctly when the application uses raw mode in the terminal. It is a good introduction to what registering a panic handler lo
942.
▲
by
estebank
4y ago
> It doesn't matter if you know it's fake I am reminded of the study that found that placebos "worked" (had positive effects) even when the patient knew it was a placebo [1]. Unrealistic standards of beauty perpetua
943.
▲
by
estebank
4y ago
It's been a while since I started learning Rust, and have the advantage of learning new constructs as they are being implemented before they even hit stable, so I find it hard to put myself in your shoes. Could you give some examples o
944.
▲
by
estebank
4y ago
> It's more that Rust is just difficult for many to actually work with. I don't mean 'learn' in the absolute beginner sense. There's no shortage of excellent and generously accessible materials (the Rust Book amo
945.
▲
by
estebank
4y ago
There's a wide gulf between "one-off afternoon-long project done for fun" and "serving all traffic for amazon.com during black friday", so I am receptive to the "I can just do this one off thing in Perl".
946.
▲
by
estebank
4y ago
In the list of projects I don't see many that would actually materially change frameworks, beyond changes from -> Box<dyn Future> to -> impl Future or reduced boilerplate due to more concise syntax sugar. https://
947.
▲
by
estebank
4y ago
I can confirm all of this is still the case. > I legitimately can't tell if I am an idiot and skipped some basic Rust training, or the error messages are truly confusing and unproductive. It doesn't make a difference. The compi
948.
▲
by
estebank
4y ago
GitHub works great for it, for diagnostic tickets in particular you can file them at https://github.com/rust-lang/rust/issues/new?assignees=&labe... Even if it is an "it hurts when I do this" wi
949.
▲
by
estebank
4y ago
Having examples of these is useful to see what we could get rustc to do. The general case might be impossible to deal with in a generic way, but we can target specific patterns libraries use and emit custom errors for them. The problem wi
950.
▲
by
estebank
4y ago
I find it surprising that so many people are arguing about the benefits and drawbacks of `?`, when in my experience the handling of Result and Option haven't been an issue in practice on the consuming side (`?`, `.unwrap()`, `.map()`,
951.
▲
by
estebank
4y ago
> - bad error messages (even though that was a focus for the rust team!) I would love to hear more! (If you have the time.)
952.
▲
by
estebank
4y ago
This is not an uncommon pitfall when working with strings in all languages. In Java for example it is drilled into people to use StringBuilder instead of concatenating with + on String if you do it in a loop, precisely because of this exact
953.
▲
by
estebank
4y ago
One day I need to get around to figuring out how to detect when people are going in circles with lifetime errors and have rustc open https://keepcalmandcallclone.website/ for them.
954.
▲
by
estebank
4y ago
> We now have two async runtimes. It’s a problem. I agree that this is a problem, which is why "providing an abstraction layer for runtimes" is something that comes up often as a desired project, but if you zoom out I believe
955.
▲
by
estebank
4y ago
> or that can understand String can be matched to a str That's called "deref patterns" and it's been made to work on nightly only for String for now, but 1) the implementation is currently a huge hack, 2) development
956.
▲
by
estebank
4y ago
Although I haven't personally used it, Elm has done a lot on this space, even predating Rust's push.
957.
▲
by
estebank
4y ago
I was gonna ask if match case wasn't a really recent thing, but it seems to be from 3.10 released in October 2021.
958.
▲
by
estebank
4y ago
Keep in mind that the people working on rustc are not the same working on rust-analyzer, even if there's some overlap in contributors and there's a desire to share libraries as much as possible. Someone working on speeding up rust
959.
▲
by
estebank
4y ago
> Is it more efficient resource and time-wise to rewrite everything in [Language of choice], or to comb through the currently existing code manually and with special tools to find bugs and fix them? One thing you're missing is that
960.
▲
by
estebank
4y ago
I can give you a straightforward example: the parser can recover from missing semicolons at the end of statements. The language could do automatic semicolon insertion a-la javascript. But then that means that all the ambiguous cases have
More ›