skysight-inc/HackerNews huggingface dataset:
> When kids are raised without the persistent threat of not surviving?

Having to contribute to society by keeping a job, and using the income of said job to finance your cost of living is far from being a life-risking enterprise.

You're trying to avoid the point by inventing absurd emotional examples.
So python's got a with statement. What of it didn't? Well then, you're screwed. Hope you like calling file.close().

If lisp didn't have a with statement, you could add one yourself. And if scheme didn't have a with statement... well, you could always add one, but before dynamic-wind got added, it could break if you weren't careful. Some things you can't just patch in. Anyways, now you'll say, "but python does have a with statement!" But that was just an example: there are things python will never have that you can add to lisp yourself. Like multimethod dispatch and generics, anaphoric operators, lazy module loading, pattern matching, ADTs, regex literals (with readtables), non-deterministic operators (the classic amb/assert operators, for concisely expressing searching a list (although they're admittedly more toys than anything else)), and a full-on looping construct that allows for awk-style record processing of arbitrarily typed records from arbitrary sources (field splitting is handled by other functions). And that's just a few examples I came across. There are dozens of others.

That would never all be added to the language: there's way too much, and it's too specialized.

As for your theory that macros make code harder to understand, you don't have any proof. In fact, you have negative proof, as there's plenty of logic, good programming practice, and individual cases indicating that careful use of macros can make code easier to understand.
That might be true for the average person, but since they only need a few candidates, it'd be pretty easy to select people with little or no sex drive. They are not very rare.
You're further reinforcing his point, that people in SV have no clue about politics and government. Ronald Reagan is supposed to have said that a government program is the closest thing to eternal life that we’ve ever seen on Earth. Government programs never die. Period.

http://www.washingtontimes.com/news/2012/aug/28/government-p...

https://www.washingtonpost.com/politics/even-in-an-era-of-bu...
The other responses have not addressed the possibility that you are referring to a quantum harmonic oscillator. If you are, that is a very good question. I believe the resolution here is that while the phase of a quantum harmonic oscillator in the ground state changes with time, the results of bracketing any hermitian operator (i.e. measuring a physical quantity) does not change throughout time. Therefore in the ground state of the quantum harmonic oscillator, the system is time translation invariant. So a quantum harmonic oscillator does not form a time crystal.
This I guess (last paragraph): https://news.ycombinator.com/item?id=12473552
> Credit reporting system works pretty well

Citation needed.

> (where government forced banks to ignore credit ratings)

This is simply not true. The mortgage bubble burst when big investment and gambling/speculation institutions could no longer cover the shorts against mortgage bond derivatives and the incentive for packaging questionable mortgages into the underlyings disappeared. These mortgages weren't all (or even mostly) to poor people with no ability to pay, and the government didn't force anybody to do anything.

These same banks paid ratings agencies to ignore the bad mortgages in these securities specifically so they could increase the volume of mortgage bond sales. So your example is actually one that shows that ratings agencies' products are not necessarily accurate (some might call them fraudulent, even).
"Gartner, Inc.'s 2015 Hadoop Adoption Study has found that investment remains tentative in the face of sizable challenges around business value and skills.

Despite considerable hype and reported successes for early adopters, 54 percent of survey respondents report no plans to invest at this time, while only 18 percent have plans to invest in Hadoop over the next two years. Furthermore, the early adopters don't appear to be championing for substantial Hadoop adoption over the next 24 months; in fact, there are fewer who plan to begin in the next two years than already have."

So lots of big businesses are doing just fine without Hadoop and have no plans for beginning to use it. This seems very much at odds with your statement that "The chosen approach is the only choice!"

In fact I would hazard a guess that for businesses that aren't primarily driven by internet pages, big data is generally not a good value proposition, simply because their "big data sets" are very diverse, specialised and mainly used by certain non-overlapping subgroups of the company. Take a car manufacturer, for instance. They will have really big data sets coming out of CFD and FEA analysis by the engineers. Then they will have a lot of complex data for assembly line documentation. Other data sets from quality assurance and testing. Then they will have data sets created by the sales people, other data sets created by accountants, etc. In all of these cases they will have bespoke data management and analysis tools, and the engineers won't want to look at the raw data from the sales team, etc.
Do not count hours but contribution. Some peoples 15h contribution might be equally (or more) valuable than other peoples 40h+.
Sounds similar to the Sprint class action lawsuit where customers were being charged minor amounts of extra money, but in aggregate it added up to a ton. Sprint lost that case and lost millions.
The French also don't snack all the time, and also cook many of their own meals.
Fifteen Years After 9/11, Neverending War
I would hope the entities purchasing the credit reports (landlords, employers, whomever) would care about their accuracy but usually this doesn't seem to be the case. From what I've seen any false negatives around bad credit just ends up in a person being passed upon during evaluation as a tenant or employee and nobody follows up with the ratings agencies.
That's what I'm talking about. What other database tests against power outages and hardware failure?
> For other use cases, Rust is still lacking. One such use case would be an OpenGL GUI, like CEGUI or nanogui.

I'm curious if anyone has tried developing a Qt5 app in Rust -- are there any Rust-ic bindings out there?
Why not self-represent in small claims court?
The headline of another article linked from the original article: "Time crystals could behave almost like perpetual motion machines"[1]

That could be the reason Microsoft is researching these.

[1] - http://m.phys.org/news/2012-02-crystals-perpetual-motion-mac...
Hey eekfuh,

If you scroll down a little further you'll see there are a few sections where they're organized by hue; once in a bar chart and once around a circle.

Let me know if you still can't find it and I'll try to explain more thoroughly or send you a screenshot.

Someone else mentioned they'd like to see the colors sorted by hue in the area where they're broken out by site. Maybe I'll update that section to be less random.
> What happens when kids know living for the good cause will never starve them to death?

Can you point out exactly how many people starved to death in any western country? Because I vividly remember that there isn't any universal basic income program in effect, and somehow people manage to feed themselves just fine.

You can't expect to be taken seriously if all you can come up with are absurd emotional works of fiction.
I'd suggest the little red book (Stonebraker's not Mao's):

http://www.redbook.io/
What is your point???
Nobody "needs" anything. Do you "need" a car that can exceed 80mph on a road?

We want to have certain things, and once you have accumulated the resources to get them, you can purchase them.
> The French example of basic income isn't. It's a means tested benefit which is utterly incomparable to UBI.

Read the article again. His point is that the RMI (RSA) is what they ended up with, even though they wanted (started with) something similar to UBI.
In Germany, it was long years the custom, that when somebody asked the agency about his score, they in turn dropped his score.

This is not legal anymore, as much I know, but still also in Germany, your fate is sometimes bound to the street, in which you live, instead of your own behavior.
Show HN: CaliforniaBirthIndex.org – look up people born in California
Practically no one had put on a seat belt before they were introduced either. The cost of parachutes and placards to describe their proper usage is absolutely trivial in consideration of the budget of any building from which parachutes could actually be deployed.

Buildings don't just collapse from airplane collisions; fires, bombs, earthquakes, structural failure, hostile takeover, and more could all be scenarios where you might only survive if you have a chute.
is it just me or does this seem like a bad idea?
Of course, one of the strongest reasons for encryption is not having omnipotent government. Absolute power and all that...
> but the price of getting it wrong can be fatal

Oh please, give it a rest.

We're talking about driving down a road with a car and camping near it for a night or two. Maybe going for a short walk. Like, you know, walking to the store. To say that the consequences of doing that can be fatal is exactly the same insane hyperbole as saying choking on lettuce can be fatal.

Yes, both can. The chances are remotely slim, and you shouldn't scare people off by mentioning it constantly.
The alpha channel?

Edit: You're right though. Using imagemagick to clone it like so:

convert puzzle.png puzzle2.png

results in an image that's at least 40% smaller. It might just be better compression, but there might be another layer of steganography going on.
I'm curious why you think that is absurdly backwards. Not necessarily disagreeing, but it's not hard to justify wanting to see a history of repayment vs trusting by default.
The solution linked to in "Go has a suitable answer" isn't relevant, because it doesn't support virtual methods. You can do the same thing described there in Rust by having a base struct, embedding the base struct in any child structs (composition over inheritance), and implementing Deref/DerefMut on the child if you like.

Go has the exact same set of features Rust has here, no more: struct composition or interfaces/traits.

Regarding graphs: The best solution is option 3, using a crate on crates.io (petgraph is the most popular, but rust-forest is fine too). The preferred solution to having multiple types of nodes in the same tree is to use an enum or a trait. (Servo uses a trait for its flow tree, with downcast methods like as_block() if needed.)

I'm puzzled by the contention that the fact that all nodes have to be the same type is a problem with Rust. That's always true in any language. Even in C, you'd have to have your next/previous pointers have some type, or else you couldn't traverse the list!
Only if someone writes (and shares widely, to be used) code that depends on it.

I've [ab]used the stability of dict order when you haven't modified the dict in the meantime, in one-off scripts.

But I wouldn't write code that depended on predicting dict key order though, that seems a bit too much to me.

----

For me, I feel that a Python syntax text should run unmodified on as many interpreters as possible, cPython, Pypy, Jython, Brython et. al., embedded, etc. There are lots of Python and Pythonish runtimes out there, beyond just what core dev produces.

If I can write code that works on most of those systems out-of-the-box that's a huge win from my point of view.

It should be clear that changing the semantics of the interpreter, even in subtle ways, puts a burden onto anyone hoping to maintain parity in their own runtime, yes?
180 years is not much, other kind of republics fared better (the roman republic lasted 500 years, and the venetian republic more than 1000).

Also, the direct democracy in, e.g. Athens actually encompassed a very limited number of people (adult males owners of land) so it's not 100% comparable with a modern version.

I do agree we should try more things though.
> Apathy and laziness.

Apathy is a valid position. Let them not vote. So what?

> Plus in the us there have been quite a few states which try to pass laws for the sole purpose of making it more difficult for certain groups, usually minorities, to vote. Making voting voting compulsory would do a lot to solve that.

Yes, then make laws to solve the real problem.

> I'm sorry, but that's just stupid. If anything it's forced democracy and not even remotely close to totalitarianism.

It's not only forcing democracy but the current flavor of it, no matter how sick it is.

> What I've heard from Australians is that a common thing there is spoiling your ballet if you don't want to vote.

Right. In my country people always say that too. In the end the media reports mostly on participation levels, while blank votes are a minor footnote at 3am.
Which honest hardworking person shoulders the burden when the federal reserve poofs a billion dollars into existence? Why no outrage over that, but we complain about those who default when the default rate is priced into a financial product's APR and profit margin?
Hmm, should this be linked on the "other languages" page? I don't remember you telling me it was ready -- sorry if I missed something!
Hey arjie,

Further down there are a few visualizations where colors are sorted by hue and saturation.

I'm debating whether or not to sort the initial visualizations in the same way.

Unfortunately my script doesn't currently pull colors from images, only CSS color codes. A couple people have been confused by this so I'll add more info about that at the top.

Thanks for the feedback!
Sure. You could require every American to get at least a passport card. Maybe even waive fees for those below a certain income level.

I'm not qualified to comment on constitutional issues so I won't.

I will say that, even if it's mostly an emotional issue (people already need at least some sort of state government-issued ID to do lots of things), there's a huge resistance in the US to anything that smells like "papers, please" or universal ID that people are required to carry and present upon request.

Which is how a lot of people view the idea of a Federal ID system. That may seem silly to a lot of people outside the US but it's how things are.
Precisely. Thanks for summarising it so succinctly and truthfully.
In 20 Short Years, We’ve Wiped Out 10 Percent of Earth’s Wilderness
uWebSockets 0.9.0
Well, yeah, I thought it was a given that we're in quantum-land here. In classical physics the lowest energy state of a system is necessarily static.
Looks like Internet is mostly blue.
TheFamily Papers
I've attempted to do Coursera's ML course, but I am not very good at learning from videos - I much prefer reading a text book and then attempting the problems in my own time.

Are there any recommended text books that one can read from start to finish in order to get a similar introduction to ML?
>Coursera ML course the past few weeks(started on the 22th of August). I can only give it my highest recommendation.

I'm taking the edX series of courses on Machine Learning with Apache Spark. It is a pretty good class and covers linear algebra and the basic ETL workflow, plus selection of models, model parameters tweaking parameters etc., study cases involving user ad clicks prediction and PCA analysis of neural synapse data of jellyfishes.

However, my biggest fear is that re-learning different matrix manipulations, walk-through of logistics regression, PCA and SVM will be similar to learning Spanish in high school without immersion, learning guitar scales without improvising with it, learning mappings of different Madden key-combo's; I remember learning all of these mathematical syntactical operations in high school, and have an eerie feeling of once grasping these concepts concretely once and yet only knowing it vaguely. It is nice to re-learn these things, like refreshing myself with a rolodex of Spanish verb conjugation, only to go back to the CRUD work I deal with on a daily basis and fade back to oblivion.

Not sure about the Coursera class, the structure of the edX courses are presented in Python Juypter notebooks where you fill in the code snippets. It is fun and addictive to solve each exercise as a mini-puzzle; but not sure how much it'll stick vs. if one had to take an concrete problem and take its pieces and puzzles from start to finish, without the hands-holding.

I think perhaps Cousera courses have "capstone" projects - curious if anyone have had experience doing one? In lieu of one on the edX course, I think I plan to grok some papers with some large genomic dataset and/or financial time-series and try to replicate their result.
Government transparency is absolutely necessary, especially financial, but very lacking.
> Both of these problems are fundamental to the creation of true, autonomous AI.

What makes you say that? I could see your statement being self-evidently true only if you meant "fundamental to the creation of an anthropomorphized AI." Of course, even that glosses over the fact that there are already strong indications within the AI community that the first general purpose AI will likely not "think" even remotely in the same fashion as humans do.
PSA: If, like me, you sign up on www.transunion.com to view your account, be aware that the sign-up process uses dark patterns to stealthily sign you up for a $19.95 / month subscription.

The 'Cancel Membership' page is hard to find, but here it is:

https://membership.tui.transunion.com/tucm/cancelMembership....
I don't think "keeping an open mind" means accepting statements without evidence until they are debunked. Rather, it means that if evidence arises which contradicts your presuppositions, you must not ignore it.

But this all assumes there is evidence available. Is there?
Before You Spend $26,000 on Weight-Loss Surgery, Do This
Rendezvous with Rama - Arthur C. Clarke

Set in the near-ish future, a big asteroid comes whizzing into the solar system. Looks weird, so we investigate. It's a total page turner, and reads like an adventure/mystery. Highly recommended.

---------

The Malazan Book of the Fallen series - Steven Erikson

A fantasy series, set in a really unique setting. It's an epic fantasy series with a huge ensemble cast and a bunch of parallel plots that break a lot of the usual tropes. It's tough to describe, but if you like epic fantasy it's a must read. I'm on book five of ten and loving it.
Holy crap that is nuts. Towards the middle/end in here:

https://www.theengineer.co.uk/issues/june-2015-online/jewel-...

Also cool to hear them talking about automating as much stuff as possible to remove human error. Incidentally that's also how we go about software release processes where I work.
https://news.ycombinator.com/item?id=12473172
This a good argument for legally changing your name to a unique id.
I think in the US is the environmental regulations and other similar approvals and higher labor costs.

In terms of environmental regulations, much time and money is spend researching and mitigating damage to every little critter and vegetation. That bare field you are building over could be home to some rare field cricket and you have to find a new home for them. In some other countries they just bulldoze over that field and be done with it. I got a little experience on this working for an engineering company fresh out of college. They had to write reams of reports documenting what they found in some former military bases before cleanup. From my understanding nobody ever read those documents... they just read summaries.

I have a college buddy who works for the state transportation department in the engineering design division and he tells me all the red tape he has to go through in expanding a highway. They find a couple of native american artifacts during a dig and suddenly things are halted while that is being investigated. When they widened a highway, some people in adjacent houses started complaining even though the highway existed before those houses were build and space was set aside for future expansion. He ended up adding noise barriers to placate them. Then you have nimbys who will fight and further development.

We use highly skilled union workers for public projects in the US while India and likely China use low cost day laborers. They get paid quite low wages.
It could also be something on your machine, or a malicious ad breaking out of its sandbox.
The point is that they are still paying money. Calling it a "tax write-off" to the layman sounds like they're just doing it to reduce how much they pay in taxes. I.e. It sounds like tax-evasion/fraud.
File a complaint with the FCC or BBB and (at least with Comcast) they'll suddenly be very eager to fix the problem. Ran into a similar issue where I was told one thing and billed for another, a few days after a BBB complaint they had someone from "executive customer relations" calling/emailing me to get it resolved ASAP.
Rust seems to be a poor match for the way the author wishes to solve this particular problem. That doesn't mean that their design is wrong, or that Rust is wrong, but it does mean that mixing the two would require rethinking parts of the design.

> So a trait can define abstract functions, but can't access any underlying fields.

In Rust, a trait is a purely abstract interface to a type. It explains how you can use that type, but it knows nothing about the implementation.

I'm not quite sure what the design goal was with the Widget type, but the closest solution is to replace the member variable in the abstract type with some kind of accessor (and to replace the magic negative font sizes with an Option):

trait Widget {
// ADDED: Access whatever underlying font
// size you have stored in this type.
fn desired_font_size(&self) -> Option<i32>;
// ADDED: Access the theme of this object.
fn theme(&self) -> &Theme;
// High-level interface to get font size.
// (With a default implementation in terms of
// other functions on this trait.)
fn font_size(&self) -> i32 {
if let Some(sz) = self.desired_font_size() {
sz
} else {
self.theme().get_standard_font_size()
}
}
}

I'm not sure this is how I'd personally design this, but it should compile.

> What IS the idiomatic Rust way to do a cyclical directed graph?

Unfortunately, the correct idiomatic way is that you try very hard to avoid doing so. Rust is all about clear ownership, and it doesn't like circular references.

The usual solution is to put the cyclic graph code into a library, and to use pointers and about 20 lines of unsafe code. (EDIT: See below for a better solution.) It's not much different from the C++ solution.

The Servo team really wants GCed, safe pointer support in Rust, and design work is well underway. But it's going to take a while to stabilize.

GUI libraries are an interesting special case: They involve huge class hierarchies, lots of implementation inheritance, circular references, and tricky ownership. Most older OO languages were optimized for this case. Newer languages tend to favor flatter type hierarchies and far less implementation inheritance. Which means that traditional object-oriented GUI designs may be awkward.
[in the US]

Dell Precision 17 7000's can be ordered with Ubuntu 12.04 LTS. They come standard with three year next business day onsite warranties.

http://www.dell.com/us/business/p/precision-m7710-workstatio...
Ask HN: How to forward client port number used?
Usually the standard for proxies to notify the origin of the client IP is using X-Forwarded-For (https://en.wikipedia.org/wiki/X-Forwarded-For) whereas none such exists for forwarding the port number used. Is there one I can use or should I resort to X-Client-Port?
> The US is as far as I know the only country in the world who have a positive creditscore system.

They are trying to bring something like that to Brazil too. Fortunately, it's opt-in, at least for now.