Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
estebank
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
66 ms
·
961.
▲
by
estebank
4y ago
Are you a simple parser? Because you read until finding the first reason to stop and bailed out. Marginally more advanced compilers will try to recover, get to the end with as much context as possible, and then complain, including maybe s
962.
▲
by
estebank
4y ago
If when trying to use them the compiler fails to provide adequate feedback to get you on track, please file diagnostics tickets! We take them seriously.
963.
▲
by
estebank
4y ago
I'm absolutely biased, as one of the rustc parser maintainers, but removing all redundancies of a languages syntax is actually terrible for usability. The fewer "landmarks" the parser has to work with, the harder job tooling
964.
▲
by
estebank
4y ago
I do want to highlight a comment in passing in the OP: the team has plans (and some work) around accomplishing that optimization in an automatic way, without extra syntax, under the whimsical name of polymorphisation.
965.
▲
by
estebank
4y ago
Source code is mainly a communication tool for other people, and less importantly, instructions for a computer. At the same time, compilers are an error reporting tool with a code generation side-gig.
966.
▲
by
estebank
4y ago
[] are already taken by the slicing syntax, but if that wasn't the case you could have something like vec@2 and vec@{end - start} for that, which would open them up for generics. I'm pretty sure the main reason to choose <>
967.
▲
by
estebank
4y ago
> If they stuck with C++ for such a long time, it means they are used to it and accept C++ with all its flaws. This is also partly because there was never a language that fit the niche where GC isn't a good fit that brought enough t
968.
▲
by
estebank
4y ago
The stdlib can use some nightly features in stable. Not a big issue.
969.
▲
by
estebank
4y ago
An alternative I'm not against is having the concept of "crate distros", where a bunch of related crates can be pulled in in one go with a tested set of versions. Something that delivers an experience like Django or Rails. At
970.
▲
by
estebank
4y ago
Distro provided compilers are meant to build the distro's provided packages, nothing more, nothing less. It is an accident of several confounding factors (slow release cadence, bad alternative delivery methods, wide disparity of featur
971.
▲
by
estebank
4y ago
Breaking SMS delivery, logins, increased number of 500 responses, failures in the recommendation engine, failures loading conversations and bugs galore, including displaying tweets of locked accounts you don't follow that someone you d
972.
▲
by
estebank
4y ago
> it would be safest to do it in three smaller 5% waves rather than one fell swoop This disregards the effect of repeated layoffs on the morale and mental health of human beings, which affects how "the system" settles and recov
973.
▲
by
estebank
4y ago
> seeming negligible external-facing impact on the core product In both technical and product axes Twitter has already deteriorated massively, possibly beyond repair and the company might not make it to 2024, so I wouldn't call that
974.
▲
by
estebank
4y ago
On top of that, you could provide a `format` macro that shadows the language item and does support gettext or similar (although that might not be true with regards to the f-string support).
975.
▲
by
estebank
4y ago
But even then the point still stands: you wouldn't want a non-custom debug representation of the iterator precisely because of the cost. You could create a new-type that wraps your iterator and implements a custom `Debug` impl with
976.
▲
by
estebank
4y ago
Someone has to implement those frameworks, and those people need to understand pretty much everything covered by this book :)
977.
▲
by
estebank
4y ago
The "About this book" tells you what the book covers. The whole book is available for you to peek at if you don't trust it to correctly summarize itself. As you would expect, Rust does have concurrency primitives, which is
978.
▲
by
estebank
4y ago
The foreword by Paul E. McKenney makes a great case to read this book even if you don't care about Rust at all: > Which brings us to another group of potential readers, the Rust skeptics. While I do believe that most Rust skeptics a
979.
▲
by
estebank
4y ago
Easter egg: you can use -> _ to ask the compiler what type it thinks the return type should be, given your body. Because it is only used for diagnostics it isn't fully featured and there are things it doesn't cope well with, bu
980.
▲
by
estebank
4y ago
Even if they own a car, the aim is to reduce car ownership and drastically reduce car usage/need, not eliminate them entirely . There are 289MM cars in the US (.87 cars per person), in The Netherlands there are 8.7MM cars (0.5 car
981.
▲
by
estebank
4y ago
> So why would anyone decide, much less how would one justify to a corporate overlord, to spend all the time and resources to refactor their code, upgrade libraries (assuming the libraries themselves upgrade), update build systems, perfo
982.
▲
by
estebank
4y ago
This is technically true, but somewhat misleading. The borrow checker was added pre1.0, and originally wasn't known to be possible to rely on it exclusively for memory management. It was bolted on later, but it changed the language s
983.
▲
by
estebank
4y ago
Honest question: what would the engineering rationale be behind dropping LLVM entirely and have rustc have its own code generation backend? There are two out there that might be interesting, one uses gcc and another is called cranelift, but
984.
▲
by
estebank
4y ago
What task can you do in C that you can't in Rust (or Zig, for that matter)?
985.
▲
by
estebank
4y ago
A modern low level labguage would expose you to the concepts of cache lines and homogeneous and eterogeneous cores directly, with locality awareness to recognize false sharing. It would be something suitable to program the Cell architecture
986.
▲
by
estebank
4y ago
Not everything needs to be connected to the Internet, and not every micro controller is running a non-mission critical task. A micro controller hitting a memory safety bug that causes the LEDs to present invalid output can have real world c
987.
▲
by
estebank
4y ago
What do you dislike of Rust's traits?
988.
▲
by
estebank
4y ago
Is there any production ready language that isn't conservative with its decision making?
989.
▲
by
estebank
4y ago
Why is it that when it comes to transportation the discussion is always talking past each other? "Trucks don't belong in cities for personal transportation." "I need a truck for my farm." "Vehicle transportatio
990.
▲
by
estebank
4y ago
The thing I don't get is that a common retort to critiques of the usage patterns is "who can afford to buy two vehicles!?", but if you look at the cost of these trucks, and the number of comfort features they are marketed wit
More ›