skysight-inc/HackerNews huggingface dataset:
There might be many ways in which people fall below the threshold of being able to afford housing. But the fact is that they can't afford it. The government tends to support landowners in keeping land value high and letting them build luxury housing on it to make more money on rent/speculation, rather than making it possible for everyone to afford housing.
Take the context into consideration: this whole thread is about performance and the comment on mutability was speaking of mutability in place, because that matters for performance.
>Thoughts?

Imagine a blank graph. Randomly place 1 million circles on it. No two with identical boundaries. This is our hypothetical Venn diagram of people's preferences for how communication happens online. Drop another million circles to represent how those people will actually act online.

It doesn't matter what points on the graph are labeled "toxicity," "echo chamber," "uncomfortably friendly," or "sparse comments, experts only." It only matter's that the circles are not all identical.
Daylight Savings Transition
Your facts is what he says to the public. That's not a "fact", that's taking politics at face value. I told you, such men are sharks. Not merely the men you back on your own political aisle.

I told you to read Robert Caro's series on Lyndon B.Johnson because it opens your eyes to the political process. Do you think Johnson campaigned as a Roosevelt man because he liked Roosevelt? Hell no, he was an opportunist.
Ah, but we still can dream, can't we? ;-)
They can't have my device without a warrant. I'm not comfortable with them even taking it out of my sight or connecting it to anything. This is an agency that absolutely cannot be trusted.
It depends. Most people are exhausted at the end of the workday. It isn't the time that is the key component; it's the energy.

Give me a few days to a week of pure relaxation, and my creative juices start to flow.
> (granted, there is some ground to be covered before such an abstraction would fit in Rust)

I would claim that such an abstraction is fundamentally incompatible with Rust.

Not only does Rust lack the means to write a Monad trait on which to build do-notation, but even given HKT there's no single type signature that the various monad instances would fit. `Result` and `Option` are type constructors while `Iterator` and `Future` are generic traits; some instances require `Fn` or `FnMut` while others require `FnOnce`.

And even assuming those problems could be solved, the way do-notation interacts with control flow is not composable with idiomatic Rust. Nested closures prevent the use of return/break/continue and imperative loops; Haskell doesn't have those features so people just lift their functional counterparts into monads. Monad transformer stacks make the situation even worse- they are a pain to compose even with each other, let alone imperative code.

If you want a unifying mechanism for this stuff in Rust it's gonna need to be fundamentally more powerful than monads. Scoped continuations, maybe? Certainly nothing that looks like >>=.
Lua is fantastic for implementing languages. I did an implementation of Golang in it (https://github.com/gijit/gi). With metatables one can implement any kind of object/inheritance/interface scheme. Full builtin asymmetric coroutines, and a massively performant, ABI compatible backend (a just-in-time trace compiler) in LuaJIT are amazing tools.
A faster and sleeker way to get around? A new idea from Elon Musk
Citymapper run buses in London that use emoji to show at which stop you have to get off.
Android P release date first impressions and news
> It is well documented that there is no cell phone that cannot be unlocked.

Citation needed?
The US is pretty darn good at manufacturing and has gotten stronger with global competition. Even if US geopolitical dominance fades, it's hard to see this changing this century.
'Soda' is generally considered to be the sugary stuff (Coke, Pepsi, etc). If you replace with soda water (effectively 0 sugar), then it's not unreasonable to say that you've given up on soda in a non-literal sense.
Yes, this could use some clarification. Aggregation is fine, by discrimination I meant censoring and blocking certain individuals because you don't like them. Unless it is something illegal tech companies should respect freedom of speech.

By analogy, package (mail) is to packet (internet) is to post (social media). That's the common carrier connection I was trying to get at. ISPs and the postal service is not allowed to use discrimination to deny service to individuals because they don't like what they have to say.
Confirmed, it’s great
> C++ had an era of malaise where conflicting implementations of the standard library across a dozen+ platforms led to the complete abandonment of it by the mid 2000s

What are you talking about? C++ has continually been in the top 5 on the TIOBE list.

https://www.tiobe.com/tiobe-index/
https://www.tiobe.com/tiobe-index/cplusplus/
You are making the problem seem worse than it actually is. Account age and inability to delete comments make an anonymous reputation pretty realistic on HN at least. Just in this thread we see examples of toxic comments being downvoted into invisibility (oblivion).

Or is the problem that /r/the_donald exists? Just don't go there if you don't like it. And don't go to /r/trees if you don't like marijuana.
There are way more than 4, but each one makes sense and has a purpose. Trying to conflate them would make things conceptually less clear.

Also, somehow people seem to object less to Vec<T> vs. &[T] than String vs. &str.

It's great that owned string with contents on the heap is clearly distinguished from a borrowed view into a string. In C, when you see a char*, do you own the string or are you borrowing a string? The type doesn't say. In C++17, however, the distinction is present: std::string vs. std::string_view.

It's also great that Rust, unlike C or C++, distinguishes between strings that are valid UTF-8 and strings that came from a kernel that takes a GIGO position on encodings. Got a std::string in C++? Is it UTF-8 or garbage you got from the kernel? You don't know.
(I will ask if you could define "community building" a little more. You did not in your original post, and it seems my assumption was incorrect. Before trying to address better, I'd like to have a more concrete definition)

While I cannot speak for all MOOCS, I have not had the same experience. MIT's CS 6.00x course on EdX was work heavy, Udacity's Web Development course was work heavy, and even Coursera's Design of Everyday Things had participation components. In the only (barely a) MOOC that was video only, it was predominantly a "follow along with me" coding process.

For instructor lectures, I give more positive responses than negative about my anecdotes. At the end of the day, I'm human and I'm trying to enjoy my job (which students can tell if you don't). Development of tutoring systems is still in research phases as we identify knowledge components for different subjects. A history course operates different than a computer science course.

I will say EdX has produced research on instructor lecture videos. Users prefer 3-5 videos and so instructors should design courses like that. Instructors that simply upload a classroom lecture are not appropriately transitioning their material for online use. This satisfies your being able to flip from topic to topic.

I will end the Dunning-Kruger effect suggests that students are not the best at assessing what they know and that a professional instructor has a better idea of what "knowing" something means. This again gets back to my discussion on vocational vs. graduate school and again, humans are flawed, imperfect beings. While an intelligent tutoring system can alleviate this issue, humans are still building them for the foreseeable future.
Which lead to the actual US solution: outsourcing production to China.
For a long time, the air pollution control authorities in China didn't have enough authority to make much happen. Inspectors were basically told to get lost, and not allowed to inspect, let alone stop anything. That changed in 2015.
Now companies get shut down for violating environmental rules. Some bosses go to jail.
6% success rate does not seem to be that bad result, honestly. Good work I guess :). It sounds to be good preliminary test, sort of primary checks whether that person is suitable for this kind of mentoring.

I remember myself testing waters or getting interested/curious in multiple things dropping out of most rarely keeping only some. Even within same general area sometimes I was motivated to continue and other times not.
> Michael Greenstone runs the Energy Policy Institute at the University of Chicago and is the Milton Friedman professor of economics at the university.

Mr Greenstone's job likely depends on shoe-horning "market-based" into everything he writes.

Anyway, setting limits and fines are a market-based approach. The author contrasts against "engineering approached", where the central government prescribes action instead of constraints.
Ask HN: Are there any good resources on how to improve debugging skills/speed?
> Trouble like a couple of pages of errors, that are just not readable at all

This is indeed very frustrating. I've had to learn to translate between "what the compiler is telling me" and "what the issue actually is".
You'll miss your flight if you refuse. That's a lot of power they have over many people. It's expensive and you might not get to whatever was so important you flew there for.
Commute distance? To get to "the country" in most north american cities you need to live 2+ hours from downtown, so it's not feasible if you work there.

I live in an urban, walkable area, to be clear, so I'm not entirely sure of the motives.
It seems to me that with the lack of resources, and inability to separate out cause and effect of many foods that effect our biology, the rational reaction is to adopt a sort of cargo cult mentality. If we really have no idea whether sucralose is good or bad for us over a long period (or which conditions it even could be good or bad for us), if you want to maximize your healthy outcomes you just avoid it. Its pretty incredible to me just how little we really know about optimizing diets except in extreme situations.
Here [1,2]. I have to say this is very well known to anyone who has studied the history of Malaria.

1. http://cadmus.eui.eu/handle/1814/36118

2. http://historyrevived.blogspot.com.au/2014/09/did-malaria-cr...
Show HN: Ethergarden the First virtual garden on the ethereum blockchain
I would honestly say a lot of that is legacy from when the US really was indisputably dominant, and not really a reflection of current native capabilities.

There's also probably a list of many, more important strengths, that the US has lost, for example: It's no longer "the world's workshop."

I'd also challenge a lot of the items in your list:

> 1.) having the biggest economy in the world, and growing 3% per year

This might not be true for much longer, maybe only a couple of decades.

> 3.) having the biggest worldly influential video game business

If this is in the top 10, it's damning with faint praise.

> 4.) having 40% of assets in the world

This is really just #1 repeated, IMHO. Also, the strength of "ownership," especially that of foreign assets, is a legal concept that could be undone with the stroke of a pen. It could also be easily undone of those assets become less valuable (e.g. if the US enters a serious decline, it's unlikely that US stocks would remain a good investment).

> 5.) having most of the innovations in technology

Innovations and technology can be stolen, it's the ability to continuously create AND implement them that matters.

> 6.) having most of the biggest corporations

This is basically #4 repeated, IMHO.

> 7.) having the most brands

This is basically #6 repeated. Furthermore, what real power comes from having a "brand" let along a lot of them? Also, how long can this last if "brands" are often used in a shell game to mask quality declines (see https://recraigslist.com/2015/10/they-used-to-last-50-years/)?
Hi,
We have just launched Ethergarden https://ethergarden.io, the first virtual garden on the Ethereum blockchain.
In Ethergarden everybody can plant his tree (with a specific name and url) and water it to make it grow taller or cut other trees to make them shrink, by paying in ETH.
The DApp is inspired by Crypto High Score: the more your tree gets funded, the taller it grows and the more visible it becomes.
However, growing is not the only way to gain more visibility: you can make your tree the tallest also by cutting the other trees in the garden!
You can find the verified contract here: https://etherscan.io/address/0x471cd7a690b752e13826bbf3745a9...
Natural Hair Loss Prevention
Does QUIC do this in a way?
There are two string types in Rust: String and &str. The CString and OsString types only exist for FFI and platform-dependent interop (because unlike Rust's string types, there's no guarantee that the rest of the world is UTF8-encoded). The only time you'd use CString and OsString (or see them get used) is at the very edges of your system, and you'd convert them into String or &str as soon as possible (or Vec<u8>, but that's hardly a "string type").
Possibly a Result in F#? Is Scala Try the equivalent of an Either monad which automatically catches underlying exceptions from Java interop?
this is exactly what you shouldn't be afraid of.
Her statement is kinda strange that "socialist projects are unwalkable", and whole libertarian fixation on the everything Soviet, keeping in mind that Soviet cities are very, very walkable but becoming less so, because after the fall of USSR zoning rules became less strict.
I have been always asked to turn my devices on after a search for explosives (and whatever other substances they look for). They do that "to be sure you don't only carry the structure of the device to hide stuff inside". This happens in european flights.
Thanks, we changed to the first link from https://arstechnica.com/information-technology/2018/03/poten..., which cribs content from it.
Al-Shabaab used a laptop bomb on a plane out of Somalia after successfully getting it through X-ray machines. It blew a hole in the plane, but they managed to land it successfully.

Swabbing laptops for explosives doesn’t sound like security theatre to me.

https://en.m.wikipedia.org/wiki/Daallo_Airlines_Flight_159
That article has very little concrete info in it, but the core is not that advertising doesn't work but that advertising to millennials effectively requires updated approaches. I certainly would not say that advertising "subverts" capitalism. Advertising is part of capitalism. It always has been. You can't get your wagon repaired if you don't know where the wagon repair shop is.

Advertising is also part of the capitalism chain. Companies demand advertising, so it exists.

> Is demand created though? How do you know that some people weren't just unaware of the product before, and would have gladly bought it had they known of it.

You're describing creating demand. Someone didn't want something because they didn't know it existed. Now they want it. This is the most effective advertising possible.

> Because not buying something is the easiest, and default position.

Ok? If you exit the default position because you saw an ad, the ad worked.
Interesting that the story references this malware's similarities to Project Sauron, and that the two main modules here are named GollumApp and Cahnadr, which looks not entirely dissimilar from how one might play with the Russian version of "Gandalf" if one were to convert the Cyrillic letters into approximate English look-a-likes.
I'm coming mostly from Python for web development, so I haven't spent much time of my life thinking about strings. But I also usually have not really any clue what is going on under the hood when working with them. Which is fine, because most of the time it doesn't matter (as long as you don't do a+b+c... too much) in my work.

What I like about the page is not that it makes strings easy to understand for a beginner, but that it doesn't hide difficulties about strings, that there are different ways to look at them and Rust doesn't presume a certain one. They say it isn't easy, then go on explaining why.

To me this makes the steep learning curve feel justified. Where as some other language tutorials brush away any difficulty by saying "you don't need to understand that, just trust us."

This is also a matter of perspective. I'm not looking at Rust for general web development (at least not as main language) but for more lower level stuff I want to get into. And least to me as a beginner in that domain it sounds very believable that those distinctions matter in that context
This works quite well, until you're dealing with stuff such as `AndThen` with 10 different nested futures. Here, again, async/await will be a great help.
This. I've had TSA request "a personal device, like a phone or laptop" twice at the Austin airport. The first time, I (pretty defensively) refused and started asking why they needed it. Turns out I had been randomly selected for an explosives swab, and they wanted to test my devices rather than my person. Both times the test was performed with the devices powered off, and with me present.
This is terribly dangerous advice for a border crossing.
Yeah, I think this is close to the right interpretation.

Much of internet usage is, essentially, a giant slot machine. We've studied the things that make gambling addictive and intentionally incorporated them into social platforms to keep eyeballs on. The goal is to generate a reflexive subconscious impulse to check for new inputs with specific relation to the platform. A good high-level overview of this is the book Hooked, about how to build addictive computer interfaces. As we've "gamified" and "optimized for engagement", we've created an apparatus that many have difficulty understanding or overcoming.

This concept cemented more for me as I watched an Amazon FBA seller just impulsively hit "Match Price" over and over again, despite the fact that it was leaving him with margins of less than 25c per unit. He couldn't be reasoned out of this and insisted he had to match price with the lowest seller, even though his units would've sold for much higher margins over the ensuing weeks if he hadn't.

I realized then that really, he was simply gambling. He hits the button, sees a corresponding spike in sales, and sees a corresponding increase in his "income", despite the fact that letting it increase at a slightly more moderate rate would've easily netted 3x-4x more money (not talking years here -- just a few weeks to sell out as non-cheapest). He does it because he likes the impulse. He likes pressing the button and correlating that action with numbers that say he increased his money.

Facebook is the slot machine; Likes and Comments (broadly "engagement") are the currency; Your Posts are the input. You drop in a post and find that bland, mature, predictable posts don't generate a bright animation or engagement. You respond by posting more and more stuff that has high-engagement quality, which is, of course, the more controversial things like religion, politics, and identity.

The check on this is one's own identity is tied back to it, but that generally just means that you take the things you conceptualize as positive self-image to an extreme that warrants reaction, in particular in these controversial fields that generally have high-yield output from the slot machine.

So Republicans are put on a path toward cartoonish Republicanism, Democrats on a path toward cartoonish Democratism, and so forth. It has a distorting, reinforcing echo-chamber quality on everyone. It encourages people who are more moderate on certain issues to disengage, it encourages us to select them out and weaken our bonds, it makes it easier for our own little world to become all-consuming and feel all-encompassing. It has an overall corrosive effect on public discourse and relationships in general.

The more I think about it, the more I think the physical constraints of "real life" on dialogue and relationships, like being in a room with someone who can punch you if you sink too low, or making instinctive reactions and adjustments based on a conversation partner's body language, are much more valuable than we've assumed.
So the Highway Patrol is there to stop crime that happens on highways, and that's totally different?
Not salt per se, as much as the combination of salt, fat, and sugar leading to over-consumption of food.
Okay, after two failed attempts (mainly due to lack of motivation, I hasten to admit), I think it's time for me to learn me some Rust.

I spent a long time working mostly with dynamically typed languages, but over the past few years, I have slowly drifted back into statically typed territories. At home, I have used Go a lot, at work, I have grown to like C#. Rust kind of looks like the next logical step along that trajectory, doesn't it?

And I get the impression that people who took the time to learn Rust enjoyed it very much. So here's my delayed new-year's resolution (I am the ____ing king of procrastination!): I am going to learn Rust and I am going to like it (I hope)!
Software rendering and a straight C code base (i.e., not C++). I love old-school stuff like this.
FireWorks: store, execute, and manage calculation workflows
Why would they do this rather than simply image the device? How do you know what their protocol is?
I haven't thought about it in depth, but my guess is that it is not, because a lattice is not isomorphic with a cylinder or torus.

Figuring out the relationship in detail would be a good project.
Previous discussion: https://news.ycombinator.com/item?id=16138583