Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
epage
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
301.
▲
by
epage
4y ago
Note that for providing more platform support, there is also rustc_codegen_gcc which just replaces LLVM with libgccjust but keeps the rustc frontend.
302.
▲
by
epage
4y ago
I agree with this as it puts emphasis on semantics rather than syntax and encourages focusing on intentionally similar code rather than unintentional. A related principle is what I call code locality. Instruction locality is the grouping of
303.
▲
by
epage
4y ago
For those unaware, some ask "why" - No need to look up the version (though some IDEs do it for you) - Auto-completion - It shows you what features the crate has and whether they are activated, making it easier to discover features
304.
▲
by
epage
4y ago
I've tried switching a couple of times. I had plugins that didn't work and had to look for neovim equivalents. I felt lost in figuring out how to adapt my configuration to the neovim way of things I tried some features (treesitter
305.
▲
by
epage
4y ago
> Hare gets around this by simply requiring all variables to be initialized as soon as they are declared. Since Hare is an expression-based language, variables which require logic to initialize correctly can be initialized from the resul
306.
▲
by
epage
4y ago
I had wrist issues with LabVIEW. When doing a lot, I had to be very particular about my posture and equipment. I had always wished they'd integrate those demos where there is no more manual layout. Pixel level layout, even with an auto
307.
▲
by
epage
4y ago
Looking through the Tutorial, the language has a very-english-like syntax to it For example. variables and functions can have spaces. Words are favored over operators set some variable to 123 You can even use possesive's
308.
▲
by
epage
4y ago
`cargo udeps` tries to uncover unused dependencies. I wish we had more reliable ways to detect it so we could integrate it into cargo.
309.
▲
by
epage
4y ago
Something for people to keep in mind that this is pulling in the source for: - An electron-like framework - A web framework - Multiple HTTP clients - An HTML parser - An image editor - A search engine Some potential dependency savings I not
310.
▲
by
epage
4y ago
I've been switching a lot of generated files to being checked in (with CI verifying they haven't drifted from the source). The primary motivation has been performance. For example, in Rust code, it means I don't need to foi
311.
▲
by
epage
4y ago
Earlier in Rust, I saw people recommending `#![deny(warnings)]` (always turn warnings into errors) but I think the community has shifted since then because I feel like I don't see that as much and instead see people disabling warnings
312.
▲
by
epage
4y ago
For more on switching Rust to mold, see https://github.com/rust-lang/rust/issues/94347
313.
▲
by
epage
4y ago
> This isn't because no one cares, but because Rusts async implementation (which is very cool due to it's low overhead) and it's interactions with the other language features require complicated extensions to the type syst
314.
▲
by
epage
4y ago
The Rust Cookbook [0] was meant to be one way of maintaining a curated list of crates though I don't know how much attention it has received since the 2018 edition documentation blitz. As for a central batteries-included crate, its bee
315.
▲
by
epage
4y ago
We have run offs in Texas but get extremely low turnout partially because they are not advertised, either by the government or the candidates. I can't imagine its cheap either, for the government, candidates, or the voters. This is wh
316.
▲
by
epage
4y ago
Part of it is how we do discourse in the country puts people on the defensive which leads to them being polarized. I sit in the middle of this in a couple of spots and its maddening. For brevity, I'll stick to just vaccines and anti-
317.
▲
by
epage
4y ago
This is what I was used to at a prior day job (another one just didn't keep a version in source). When I took over cargo-release [0], this was also the default though not anymore. Benefits of keeping the last version - Easier to detec
318.
▲
by
epage
4y ago
I find rustdoc lacking for clap. rustdoc does a good job with API reference documentation and is improving in its handling of examples but derive reference and tutorial documentation are a weak point. For examples, its improving with the e
319.
▲
by
epage
4y ago
I remember someone saying that "Rust skipped leg day", feeling that Rust was overly focused on the borrow checker while only solving a small number of problems. 1. I think its easy, especially for GC users, to forget that memory m
320.
▲
by
epage
4y ago
Don't forget about proc macros. If they don't, I wonder if one of the auditing commands should support drawing attention to build.rs and proc macros like this.
321.
▲
by
epage
4y ago
> Back when I wrote C and C++ for a living I'd occasionally meet someone who thought their ability to employ the spiral rule or parse a particularly dense template construct meant they were a genius. I get the same vibe from certain
322.
▲
by
epage
4y ago
> A few years ago people were so entrenched in their object-oriented upbringing that sum types were considered "weird functional stuff" A step further: I was hearing talk of enums being a code smell and that they should all be
323.
▲
by
epage
4y ago
> They have exactly one dependency, and it's optional. Except they would have two dependencies (the other being libc) but they wanted to avoid vendoring for that as well.
324.
▲
by
epage
4y ago
Glad to see an explanation for why they bypassed cargo. I had wondered about that when the PR was posted as it didn't contain any documentation for why they were going off the beaten path. However, I'm a bit confused at the reas
325.
▲
by
epage
4y ago
One of the reasons I appreciate this book so much, even if I disagree with parts, is the author's humble approach starting with the title, with both "a" and "philosophy". Throughout the content I also felt like he
326.
▲
by
epage
4y ago
You need to check both that its valid and that its still open. Many times I've seen TODOs with issues in code where the issue was closed. Since nothing gates the Issues being closed, you've now broken CI by closing them. Say you
327.
▲
by
epage
4y ago
Another reason for a system like yours is TODO is just another backlog but one that no one tracks and grows stale. I much prefer either - TODOs are resolved before merge (your FIXME) - TODOs are moved (not copied) to the team backlog (maint
328.
▲
by
epage
4y ago
pip-compile only generates it for your current platform and python version. Poetry generates a lock file for all platforms and python versions.
329.
▲
by
epage
4y ago
Does this generate a cross-platform lockfile? Besides usability, that is probably the most important feature from Poetry for me but I didn't see any details in this. The most annoying anti-feature in poetry is inability to override dep
330.
▲
by
epage
4y ago
One downside to implicit constexpr is its harder to know when an API intends it as a user and harder to enforce it works as an author. Seems like it could be easy to break compatibility.
More ›