Better HN
topnewbestaskshowjobs
Log inSign up

computerphage

991 karma · joined Sep 9, 2016 (10y ago) · 292 submissions

Submissions

comment 9y ago · link · parent

This is experimental so far: https://github.com/rust-lang/rfcs/pull/2033#issuecomment-309...

> The key point then is that the experimental RFC is not enough to stabilize something. For that, we need a proper RFC that lays out the plan. This RFC can be informed by the experience and working implementation, so we should have a lot of data to use.

It's being merged into nightly (behind a flag) to gain understanding of how the feature would work. This isn't the day to celebrate Rust having fully-fledged co-routines coming soon to stable because there is no such guarantee yet.

Edit: removed extra word

comment 9y ago · link · parent

I still don't understand. Everyone already has a social network where someone earns pennies by making the experience worse.

comment 9y ago · link · parent

Or possibly strapped to another part of your body. You'd still get the benefit of not having a cord pulling on your head or tripping you.

comment 9y ago · link · parent

> Or it could skip requesting the tree and verify the whole file at once.

To clarify, this works by the client deterministically reconstructing the tree once they have the whole file, then checking the root's hash, correct?

comment 9y ago · link · parent

They meant 12:06 PM, actually, but still

comment 9y ago · link · parent

That's a good point that I didn't consider. You could squash commits to get that property back, but the results wouldn't carry much meaning.

comment 9y ago · link · parent

If your test-suite pass rate is significantly greater than 70% (and statistically independent), you can gain throughput by grouping PRs into batches.

For example, if the pass rate is 80%, then by batching 3 PRs together there's a 51.2% chance to pass with all three, which would save 2 test runs. and a 48.8% to fail, which would cost 1 extra run. That's a pretty substantial increase in throughput.

comment 9y ago · link · parent

Number of "people" in the us: 318.9 million (2014) => more like 1 in 13. Also, I'm pretty sure that 24 million figure includes the military.

comment 9y ago · link · parent

A limited form of incremental compilation is already available on nightly. And yes, more is coming.

comment 9y ago · link · parent

Yes... it is.

https://en.wikipedia.org/wiki/Contraposition

comment 9y ago · link · parent

It's not a fallacy. The truth table for implication and its contrapositive are the same.

    A | B | A => B | ¬B => ¬A
    T | T |   T    |    T
    T | F |   F    |    F
    F | T |   T    |    T
    F | F |   T    |    T
My original point was that my parent was implicitly claiming that only living things need resources. That seemed absurd to me because of things like viruses, companies, governments, etc.

comment 9y ago · link · parent

If "not alive" => "doesn't need resources", then "needs resources" => "alive". That doesn't seem right to me.

comment 9y ago · link · parent

Do you have a source for that I could read?

comment 9y ago · link · parent

Cruise was bought for a billion dollars. Argo got a billion dollar investment.

comment 9y ago · link · parent

For context: there's a rewrite of the rust book in progress for a while now. This is a chapter of that book.

comment 9y ago · link · parent

No, even in theory there's an advantage to having information only available at runtime. Some optimizations depend on the probability distribution of data coming in (eg. an optimization for a CSV parser that makes it faster when dealing with well-formed CSVs that would slow the program down if it starts getting a lot of mis-formatted CSVs). The compiler can choose one or the other, but not both. The JVM can effectively choose both by deciding during execution.

If the compiler is allowed to embed a JIT or other runtime system, then all bets are off.

comment 9y ago · link · parent

I would recommend this link actually: https://github.com/rust-lang/rust/milestones?state=open

comment 9y ago · link · parent

Sorry Manish, I had meant that you can have code that can be built using a stable compiler while still using Clippy via another means. I typically use stable, but I run clippy on my code anyway. I realize that my post is confusing, I'll edit.

comment 9y ago · link · parent

Don't worry. The Rust community is sensitive to the desire to only install Rust with a package manager. There was even talk (a few days ago) of making an LTS version of the Rust compiler for use in more conservative distros that don't want to update it every 6 weeks.

On another front, Rust is working hard to get people off of nightly. This project, for example, uses 3 unstable features. Clippy can already work on stable (edit: code that is linted with Clippy can also build on stable in some setups), Custom Derive will be stable in less than a month, and inclusive ranges is a pretty minor feature.

I would expect this project to begin working on stable for Rust 1.15, but I'm not affiliated with it directly, that's just my guess.

comment 9y ago · link · parent

Rust can already take advantage of the C ecosystem quite easily. Rust/C++ usability is a major goal for 2017. I'm hoping that by year end you can have the best of both worlds. The advantages of Rust for new code and the mountain of code that exists for C and for C++.

comment 9y ago · link · parent

Can you explain why?

comment 9y ago · link · parent

There are a lot of reasons. There's a terrific in-depth discussion of D on the Rust subreddit from a few weeks ago. https://www.reddit.com/r/rust/comments/5h0s2n/what_made_rust...

comment 9y ago · link · parent

> at least one feature that won’t get stabilized ever: > #![feature(plugin)]

> This is how they are utilized by Diesel, for example, a popular ORM and SQL query interface; or Serde, a serialization framework.

Diesel and Serde are going to be fully available on Rust 1.15, which is < 6 weeks away. This is actually an example of the complete opposite: the Rust project is working hard to get important projects to work on stable Rust so that people don't need nightlies.

comment 9y ago · link · parent

It would be nice to have access to an overloadable index operator that works on multiple dimensions at once (like C#'s [1, 2, 5] syntax). It's sometimes not easy to write something to be efficient if it has to go one-by-one like [1][2][5].

comment 9y ago · link · parent

You don't have the ability to edit to your own source code.

comment 9y ago · link · parent

Airgapped systems have been attacked in the past. Stuxnet is a good example. No magic required.

comment 9y ago · link · parent

Otto did that test, not Freightliner.

comment 9y ago · link · parent

No, they will charge you a fee called an overdraft fee for the "service" of allowing you to purchase the item. They basically extend you a small line of credit (there's some upper limit before they will deny the purchase) and then charge you, say, $35.

Credit cards are always overdrawn in the sense that the bank has extended you a line of credit, but they don't have a fee associated with typical use.

1
678910