I've never understood how so many people seem to think these are a good idea, but to each their own i suppose. It just takes me longer to mentally parse and, imo, looks worse.
Yeah, style thing. I generally only see an explicit return if you're returning early. Otherwise, cleaner to just implicitly return the last expression in the block. This way, return is always an indicator that a certain path doesn't go through the whole function. Works if you have an if/else or match at the end too, each branch can just implicitly return.
Edit: i think cargo clippy has a lint for exactly this. Definitely recommend using it, great way to learn the style.
Nah, just something to learn like anything else. What's hard is using tools that don't verify memory safety at compile time, with all the extra boilerplate and testing and debugging...
Gentoo isn't about performance, it's about configurability. That Gentoo offers more than Arch in this regard is it really up for debate on either side. If you just need a standard desktop, yeah, Arch will do you just fine. But the universe of possible valid Gentoo setups is quite vast.
Personally, I'd stick with Gentoo. Arch is slightly more idiosyncratic, and the only real downside to Gentoo over Arch is the compile times, which can be mitigated with PORTAGE_NICENESS and by running world updates overnight.
Yup. Not denying any of that. Good Python will outperform shitty C, that's not a huge surprise. But there are numerous domains in which the runtime checks/gc pauses that come with choosing Python will make your life harder than it needs to be to get to the next frame or tick on time. Front loading that task back to the programmer and dealing with type checking at compile time is really the only feasible solution in those situations. Use both, choose for the problem. Case in point, numpy.
Edit: I should say, I'm pretty sure we're both making the same point, more or less.
To be completely fair, that and many others are implemented in C. I'm not arguing against Python, clearly it's a highly useful tool, but when you need performance you always drop down to something else.
Yeah, I hear ya. Not one of those things has anything at all to do with a set of kernel config options. Unless I'm grossly mistaken, you could do the same thing by hand in menuconfig
I'm often targeting extremely minimal sandbox environments. A python interpreter isn't always worth including.
...it was 1987, we're not talking lifetimes ago.
I've never understood how so many people seem to think these are a good idea, but to each their own i suppose. It just takes me longer to mentally parse and, imo, looks worse.
Wait until you see the Rust community, we're all over the place.
Yeah, style thing. I generally only see an explicit
returnif you're returning early. Otherwise, cleaner to just implicitly return the last expression in the block. This way,returnis always an indicator that a certain path doesn't go through the whole function. Works if you have an if/else or match at the end too, each branch can just implicitly return.Edit: i think
cargo clippyhas a lint for exactly this. Definitely recommend using it, great way to learn the style.Oh, btw, those
returns aren't necessary. You can ditch the keyword and final semicolon.Nah, just something to learn like anything else. What's hard is using tools that don't verify memory safety at compile time, with all the extra boilerplate and testing and debugging...
The more you use it, the less you want to use anything else.
Love all the Rust around here.
I disagree, this sounds like the most efficient way to learn to me. Great work!
Ah! Okay, as expected, I was missing something obvious :). Thanks so much, of course, it works fine now.
It took me nearly a year to get through it, but I was never in a hurry. Lots of ground to cover.
Yes, I think these are specifically exercises from Haskell from First Principles, which is great. I have a file very similar to this one :)
Into the...clouds?
Is that not a gigantic no-no?
See? This redditor gets it.
If you already know and use Emacs, spacemacs is considerably less amazing than rolling your own config.
Gentoo isn't about performance, it's about configurability. That Gentoo offers more than Arch in this regard is it really up for debate on either side. If you just need a standard desktop, yeah, Arch will do you just fine. But the universe of possible valid Gentoo setups is quite vast.
If you've got any slackware or mandriva CDs around, a seance isn't out of the question.
Personally, I'd stick with Gentoo. Arch is slightly more idiosyncratic, and the only real downside to Gentoo over Arch is the compile times, which can be mitigated with PORTAGE_NICENESS and by running world updates overnight.
Yup. Not denying any of that. Good Python will outperform shitty C, that's not a huge surprise. But there are numerous domains in which the runtime checks/gc pauses that come with choosing Python will make your life harder than it needs to be to get to the next frame or tick on time. Front loading that task back to the programmer and dealing with type checking at compile time is really the only feasible solution in those situations. Use both, choose for the problem. Case in point, numpy.
Edit: I should say, I'm pretty sure we're both making the same point, more or less.
To be completely fair, that and many others are implemented in C. I'm not arguing against Python, clearly it's a highly useful tool, but when you need performance you always drop down to something else.
Yeah, I hear ya. Not one of those things has anything at all to do with a set of kernel config options. Unless I'm grossly mistaken, you could do the same thing by hand in
menuconfigBecause of the arhictectural issue? Well, that's largely unrelated, isn't it? Switch on CONFIG_PAGE_TABLE_ISOLATION
This is a map of San Francisco - I assume you mean originally/your phone's language?
AFAIK it's a both - but I've had my eye on Way Cooler since I started dabbling in Rust, and will probably give it a whirl sometime.