skysight-inc/HackerNews huggingface dataset:
> Doesn't "marketing" suggest someone was trying to sell something?

Yes. An agenda.

Personally, and I have held this opinion for more than 2 decades now, is that I don't see any practical difference between marketing campaigns and political propaganda. They are both trying to influence an audience for their own benefit, and are constantly trying to sell something.

Services. Check. Products. Check. Ideas. Check. A way of life. Check.

An agenda? Check.

(EDIT: make quoted text appear in italics)
My main gripe with Rust so far has been the unnecessary profusion of Result<> types, making it hard to process and forward errors.

Case in point: the example in the article from the rust documentation that converts errors to strings just to forward them: https://doc.rust-lang.org/book/error-handling.html#the-limit...

In practice, I find a type like Google's util::StatusOr (https://github.com/google/lmctfy/blob/master/util/task/statu...) a lot easier to use (I've written >100kloc c++ using it). This uses a standardized set of error codes and a freeform string to indicate errors. I've yet to encounter a case where these ~15 codes were insufficient: https://github.com/google/lmctfy/blob/master/util/task/codes...
The term "anti-Israel" is used extremely often in North America to refer to things that are not "pro-Israel". For example John Kerry's speech about the occupation and why it is in Israel's best interests to end it.

Large segments of media here branded that as an "anti-Israel" speech even though it wasn't questioning existence of Israel:

https://www.google.ca/search?q=John+Kerry+anti-israel&q=John...

Anti-Israel is misused in many of its uses these days, not always but a lot of the time.
Interesting.

I'm not familiar with the Californian model. But as with direct democracy in cities and villages, California is not a country, so certain life/death decisions, like engaging in warfare, are not applicable.

Moreover, I believe that some of California's problems are a direct consequence of its spectacular success, which attracts large-scale immigration, largely from poorer countries. California has grown by > 10x in the last century. In contrast, the Swiss population expanded at a much lower pace.

Be that all as it may, by many metrics California is also a spectacular success.
Before this becomes one of the many ignored bookmarks in my Favorites folder, can anyone tell me how useful this resource is to a self-ascribed mathematical lightweight as myself?

I took calc BC back in high school and now I'm 31. I realize to a certain extent that many things I believe today are based on a rudimentary understanding of probability theory. Aren't all clinical trials, scientific studies, etc, validated by that 95% confidence interval? And I notice that whenever something happens and my human nature wants draw a conclusion of causality, that cold, rational part of my brain tells me to wait until I have more data.

Anyway I'd love to get into what I feel might be the most fundamental mathematical concept. Probability theory might be our modern day religion.
Also Obama was considered "anti-Israel" because well, I guess he said something that wasn't pro-Israel enough:

https://www.google.ca/search?q=Obama+"anti-Israel"&sourceid=...

It is sort of ridiculous what some segments will call anti-Israel.
Does this allow for the client to say, "Give me all results matching x", and for the server to say, here's the first N results, but there are potentially more, and then the client can then ask for more, in multiple requests until it has them all, allowing them to progressively show results until they're all retrieved?

That's how I would expect a JSON based protocol to work for pretty much all types of requests that provide potentially large lists in a response. I would expect getMailboxes to work this way too to be honest.
I like it. I bet that's where the American "cut off your nose to spite your face" comes from, too - in a country that says "tidbit" instead of "titbit" and "bunny" instead of "coney", I don't think it's too hard to suspect the same Bowdleresque hand here.
Image-based, as Pharo is a close fork of Smalltalk.

I've been thinking about a source control system, that will track functions/classes, instead of bytes. You could track who changed that helper method and not be distracted by moving classes between files.
Safari 10.1 on OS X 10.11.6
Regarding your notion of "there's nothing there to identify" which I assume means there's nothing to the work of Cambridge Analytica.

If that was true then Cambridge Analytica would not make any money. The fact that Cambridge, and facebook, make money, and a ton of it, can make you relatively certain that they can influence people.
Being able to port a 20 line Python script to a 20 line Rust is the holy grail. Surely Rust has the ambition to one day achieve that, but it is by no means the main priority nor the original design goal of the language.

Justin criticizes the file_double function, it being complex with nested maps and conditionals. All of this complexity is also in the Python code, just hidden away in abstractions, the library and the virtual machine. Rust, right now, is still very explicit and revealing of inherent complexities. This code is exactly why you should use Python and not Rust for this kind of little script. One day the Rust developers hope Rust will be comfortable enough for you to consider using Rust in this situation, but it won't be soon.

The point gets softened a little by the remark that it probably would not be a picnic in C either, but I don't think even that is true. C still allows you to be very expressive, it would not encourage using those maps or even half of those conditionals. Rust is just that more explicit about complexity.

That said I honestly believe Rust is the best thing that has happened to programming languages in general in 20 years. Rust is rocking the socks off all the non-web, non-sysadmin fields, soon its community will make good implementations of almost every hard problem in software and Rust will be absolutely everywhere.
This argument for increased centralization has become very tiring, on both sides of the Atlantic.

"If you let people form smaller communities, some of those smaller communities might contain NAZIS!!!! Won't somebody think of the children?????"
I think I'd rather have NGOs lobbying for laws to mitigate corruption and improve education, than NGOs telling people in Africa that using birth control is a sin and that they should kill gay people.
Very nice!

I would suggest you to add /best as well (unless I missed it and it's already there)
Again, my post made clear that I don't necessarily buy the thesis that Cambridge Analytica swung the election. So I don't see where the florid break from reality comes into it either.

My preference is strongly however to attempt to understand (and have visibility over) the factors that are influencing people rather than retreat behind a veil of 'we can't possibly understand it' ignorance.
"But what sensor tech can be used to smell odor?"

Measure the far infrared spectrum.
For Toronto folks reading this, an Anishinaabe restaurant called NishDish just opened on Bloor. It's quite tasty, about 10-15 dollars for a meal.
Holly shit. Its actually faster than original HN. Great job!

You should add option for table view too.
I wanted to ask about your methods of modelling multi component diffusion. Also do the machines use the psychophysical aspects of headspace for smell analysis?

I'm working on molecular models for complex perfume models.

Hit me up if you have any answers please. HaoZeke@yandex.com
This is cool, though I was a bit disappointed to notice the part about no support for CJK characters after trying to draw one and not having it recognized. It seems to me that looking up Unihan ideographs is an area where a tool like this could be particularly useful.
I'd bet that within five years a good proportion, even the majority, of Amazon & Google servers, will be running on RISC V chips.

Can I take the other side of that bet?

I'm mildly bullish on RISC V, but displacing x86/AMD64 in the data center in 2 generations (servers generally have a 2 year refresh cycle) seems fairly optimistic.

ARM hasn't managed it, despite some good attempts. Nor has AMD, nor Power8/9.
Minor nitpick: I get what you mean, but GitHub might be a poor example since GitLab is a strong competitor in this space that is arguably better in both features (self-hosted) and price (free). That said, I can't think of ones for Basecamp or Trello off the top of my head.
With the addition of `?` operator I think it's no longer the problem. It keeps error handling explicit, but the syntax is small enough that it doesn't make code noisy or tedious to write.

Note that you can also make your functions return `Box<Error>` which works like a base class for all common errors, so you don't have to worry about converting error types.
What an amazing comment. Did you listen to the media in the run up to the referendum? Remain was absolutely the establishment position with the BBC and almost all the universities cheering them on along with numerous NGO's funding campaigns intended to influence the vote towards remaining in the EU. In spite of that, people understood that Remain meant obeying laws made by unelected officials who they could remove, and MEPs who can't even propose new laws.

They also understood something about democracy in Europe when EU boss, President Juncker commented:

French Referendum: "If it's a Yes, we will say 'on we go', and if it's a No we will say 'we continue'."
"There can be no democratic choice against the European treaties, one cannot exit the euro without leaving the EU".
Greece's economic meltdown - 2011: "When it becomes serious, you have to lie."
"I'm ready to be insulted as being insufficiently democratic, but I want to be serious ... I am for secret, dark debates"
"We decide on something, leave it lying around, and wait and see what happens. If no one kicks up a fuss, because most people don't understand what has been decided, we continue step by step until there is no turning back."
Lisbon Treaty: "Colleagues in the European Council are listening exclusively to their national opinion. “And if you are listening to your national opinion, you are not developing what should be common European sense: a feeling for the need we have to put together our efforts."
And a giant gold hat. If he's making a point with his choice of watch, it's a mixed one.
You're playing your own psy-ops game now. It is no secret Soros is funding all sorts of questionable institutions around the world, but it is an inconvenient truth to those who align with his ideology as it grants some validity to the other side's arguments (which is why the media barely paid attention to the OpenSociety leaks). For example, one has to wonder why an American citizen is financing Islamists in Europe [0], buying off members of the EU parliament [1] and bankrolling initiatives to sway elections in European countries [2].

[0] https://twitter.com/i/moments/860146697376325632
[1] http://www.geenstijl.nl/archives/images/soroskooptbrussel.pd...
[2] http://narod.hr/wp-content/uploads/2016/08/Full_list_of_Soro...
The big question is would the Python script crash or handle the error when obvious problems like not valid JSON or file not found happen?

My experience with Swift vs Objective-C is that clean Swift is crash free but more verbose when all other things are equal.

If you don't need that level of security because it's just a small script Python was the right choice.
No.

Step 1: Those two lines are completely useless.

Step 2: How about explaining those settings?

Step 3: Enabling the mouse for what, exactly? Is that necessary for using Vim, as an IDE or not?

Step 4: What is Vundle? Why is it necessary? Why Vundle and not the alternatives?

Step 5: That part is completely useless.

Step 6: Vim already has a file explorer. How about explaining why you think people should install a second one? And why this one and not the other alternatives?

Step 7: How about explaining why you think a huge plugin is needed for syntax checking when Vim already has everything needed? And why this plugin and not the other alternatives?

Step 8: Why is that useful? What about the built-in features?

Step 9: Again, why a plugin and why this one specifically?

Step 11: Why gitgutter and not a (much better) alternative? And why do you think it's a good idea to do version control stuff in your editor in the first place?

Step 12: How is that useful?

Step 13: How is that useful?

Step 14: That plugin is only useful if you use tmux which is itself of limited usefulness outside of a couple of very specific use cases… that you didn't talk about.

Step 16: Is that a joke?
Conan.io – A C++ Package Manager
No, I'm referring to the idea that the Brexit vote wouldn't have come out as it did absent, essentially, a conspiracy.

That said, plenty of firms make money despite not actually doing as they purport to do. Perhaps Cambridge Analytica and Facebook and the like simply have yet to be exposed as charlatans.
> It's probably because Rust looks and operates mostly like a high-level language, but still satisfies low-level constraints.

In an ideal language, you could decide to ignore low-level constraints and your code would work just fine, although perhaps less efficiently.
>jdiez17 2 hours ago [-]

>I work for Owlstone Medical as a software engineer, so ask me any questions and I'll try to answer as best I can.
It's worth mentioning that this Guardian page had so much ajaxy crap embedded it that it brought my dual-core 3ghz laptop to its knees reading it. It was almost impossible to scroll through the article.

It would be a metaphor for the surveillance culture, if it weren't actually a genuine sign of that culture.
Kai restaurant in Phoenix has the following the following 2 tasting menu options.

Short story - $145/$250 with wine

Journey - $245/$375 with wine and must be ordered by the entire table

Maybe price has something to do with the lack of popularity.

Link to Kai menu: http://c12d8f7925c6939ef765-69128410dff90197ed724116b2713034...
i used this as a resource all through MS while working on a stats second major. it's a very high quality set of notes at the level of Casella Berger (but more complete since it includes measure theory).
Awesome, but the thumbnail for this site doesn't render on this site. I was hoping for an infinite loop of thumbnails.
> I bet that's where the American "cut off your nose to spite your face" comes from, too

Not to nitpick, but that term dates back to 12th century England.
It's easy to imagine how "Jews run Hollywood" is used (well we don't have to imagine; we know, and examples are probably not hard to find).

OTOH, unless we're saying Jews in Hollywood, or George Soros, get a free pass just because they happen to be Jewish (assuming Soros even is; I suspect most people who criticise him don't know), then we need to be careful of silencing legitimate criticism by falsely labelling it anti-Semitic.
Hilariously, one of the top three links is currently your own site, which fails to render properly. (https://h-u.gs/Ky20B for reference.)

That aside, this is a well-executed concept: It loads quickly, is fairly well laid out, and the comment section is more modern feeling than the original HN -- if a little too modern for my taste.

I'll never use it, the thumbnails are completely useless to me, and I'm in Australia. Dynamically loaded content is garbage, over here. Too much time spent staring at an empty screen waiting for content. The actual linked-site content takes as long as it takes, of course, and you have no control over that, but it's definitely well done!
Because strong spices never reached them?
Unfortunately I'm not the author, just an happy user. I find this app to be really useful to skim HN, specially on phones.
The thumbnail renders for me, but the thumbnails in the thumbnail don't seem to render.
Designed to be as basic as possible, but still runs android so only has three day standby on a 2g device.

Basic 2g Nokia standby 30 days.

Plus in Australia no more 2g any more.

Seems like an epic fail.
The file_double code was, IMO, quoted completely out of context. If you go read the error handling section, that code is used as a motivation to the next section, where you get gradually introduced to more economical error handling.

The error handling chapter is... Really big. Because it tries to explain everything from first principles. But it does include explanation and examples for using easy error handling as well, whose syntactic noise and level of boiler plate come quite close to Python.
They think that if they share it / sell out that it will be somehow changed or diluted and ultimately lost? That is probably 100% correct. This is the first defensible argument for closed source I have ever heard. I came to say I was surprised the company used the the term 'Indian' taco but maybe that is better than say 'Navajo-style' taco which might just become Navajo-taco. The term 'Indian' is not useful generally. That taco looks so tasty.
The `error-chain` crate [1] exists to get rid of precisely the error handling boilerplate the author has encountered. That's not ideal, though, as I believe that a place for such functionality is in the core language, not a separate library, but it gets the job done. As for the `let mut file` bit, that makes sense to me: a file in the standard library is an abstraction over a file descriptor in the operating system, and the descriptor has a file pointer which must be advanced when you read from it. I don't consider it internal state; the read operation will return new data every time, so it's not a pure function. It follows that in order to behave that way, it has to depend on some pretty explicit state.

As the other comment said, Rust needs to make some trade-offs, because you simply can't have an expressive and easy-to-use language that runs so close to the metal and is aimed at being C++-level fast. As such, Rust will never be as easy to write as Python, and for scripts like the author mentioned, I'd say that Python is a much better choice than Rust.

Rust is, by design, a systems programming language and it does have complexities and gotchas that arise from the need to have a lot of control of what actually happens at the machine code level. If we had a Sufficiently Smart Compiler(tm), of course, you wouldn't have to worry yourself about those low-level details and just write what your program needs to do and nothing more. However, in the absence of such an ideal, we must accept that a high-level abstraction must always leak in some way in order to let us control its operation more closely to get the performance we need. In my opinion, it's much better that necessary abstraction leakage is made a deliberate part of the API/language and carefully designed to minimize programmer error, and Rust, I think, does a good job of doing exactly that.

That's not to say that the language cannot be made more ergonomic. For one, I think that rules for lifetime elision are a bit too conservative and that the compiler can be made smart enough to deduce more than it currently does. I'm also excited about the ergonomics initiative, and I hope that the core team will deliver on their promises. In general, as someone who's written more lines in C/C++ in my life than any other language, I'm very excited about the language as a whole, as I think it provides the missing link between those languages that are expressive, high-level, and reasonably safe but slow, and those that are fast, low-level, a bit terse, and allow one to shoot oneself in the foot easily.

[1]: https://crates.io/crates/error-chain
Sure, but if you want to actually check for some error condition (say distinguish between file opened ok, file not found, or some other error) - which is the whole point of having an error type to begin with, otherwise you could just use optional - you still have to look up the definition of the actual error type used every time.

A standardized error type used by everything removes that need - I know I can just call util::IsNotFoundError(..), no matter which library I'm using.
>bring back jobs

Jobs don't have to be the same kind as before. If newer businesses flourish, new types of jobs will be created. Automation will lower prices of certain things and additional value can be created on top of it. Jobs can never die unless culled by government regulations.

>climate change is a Chinese hoax

It wouldn't be a big surprise if it was. The west has imposed environmental regulations which has forced manufacturing firms to move out to countries which haven't caught up. So, now the same products are taxing to the environment because they cause just as much harm to the environment because China uses the same processes... and to add to that fuel used in shipping causes extra harm and china has benefitted immensely.

>illegal immigrants, Mexico wall

No, you cannot correctly calculate if illegal immigrants are net benefit because there is no correct data. Estimates can be made either way. It doesn't prove anything.

Regardless, that's not the issue. Not imprisoning a mass murderers might be beneficial to the economy, however, it doesn't mean that they should be set free. If immigrants are good for the economy, why not make legal immigration easier? If it's because they would have to be paid minimum wage, why not lower minimum wage? Why insist on keeping them illegal? Liberals talk about how the other side is brainwashed... but I can't see how someone who is capable of thinking can support illegal immigration.

> sex ed, planned parenthood, contraceptions (again, costs of teen pregnancies are hurting them the most)

Overall fertility rates have been declining in the developed world... which is a huge problem. Teen pregnancies are more of a solution than a problem. Human populations are capable of self regulation to a very high degree. Besides, nobody is for banning contraception... the argument is that one should buy their own.
How expensive would it be to make a machine that can smell if you or your clothes stink?

I would pay at least $150 for that as a hard-of-smelling person. I would have far paid more back when I was single and lonely.
I have no sympathy with your argument, which boils down to the "British cannot be trusted to boot out a government they don't approve of", which begs a few questions. EU oversight is overrated (current Hungarian and Polish governments kept in check?) and lacks its own checks and balances (EU parliament is a uniquely weak affair).
Very easy way around it: do NOT use digest auth.
But what do you expect to hear from the algorithm? As in, how "deep" should the explanation go, and what do you do if you don't like the explanation? How do you verify that the explanation is correct?

It depends who you are explaining it to, of course, different audiences will have different standards, and will have or have access to, different kinds of experts to validate the explanation.

If the question is "why did your self-driving car hit that pedestrian?" for example, the standard would be pretty high. "It works most of the time but we don't know why it failed this time and we don't know when it might fail again" isn't going to fly. If the question is "we've just busted this trader for insider dealing, and you made the same trades at the same time, why?" then "the computer just told me to for no particular reason" isn't going to go down well either. You would need to show how data that you legitimately had access to reproducibly leads to exactly the same decision being made.

What do you do if you don't like the explanation? That's easy. Someone's going to jail. Don't let that be you :-)
RailsConf 2017: Opening Keynote by David Heinemeier Hansson
One Year After Fleeing Austin, Uber and Lyft Prepare a Fresh Invasion
It is similar to the US campaign finance reform - if you want to spend money for your candidate you will always find a way to do it. For me it is much more surprising why so little money has been funneled into EU elections so far.