skysight-inc/HackerNews huggingface dataset:
Not the parent but the biggest overheads are going to be startup time (which is easy to work around by just bringing up the procs and keeping them there) and memory overhead. There's some extra memory used for keeping all of the code or other shared resources around but let's assume that's negligible.

Because the JVM never gives memory back to the OS, you have to give it the maximum amount of memory that it could ever want, plus enough to last you between GC runs. Often this means that you have to give it at least twice the memory it actually needs. If you have more than one process, you end up having to multiply that extra "slack" memory by the number of processes that you have, which means that you have all of this wasted memory sitting around all of the time. "Memory is cheap" is a common attitude but in my experience in web stuff it's the only resource that's anywhere close to 100% used on an app server. So things with high memory overhead mean that you need more machines or bigger ones.

Of course, whether that matters depends on the actual numbers of how much memory is needed, how much is "wasted", whether that's actually your bottleneck, etc.
The punishment should be incidental, not the point. Our justice system is punishment-first, when it really should be correction-first.

I don't think anyone is arguing that convicted criminals don't deserve to be punished, just that punishing them shouldn't be the primary goal of our justice system.
Gradle is fantastic to work with. Groovy is nice when you need it, but the DSL is just much better to work with than Maven.
>
There's a lot of abstract "this deal is bad!" stuff, but what, specific, are the issues with TPP?

Imagine a trade deal 100 years ago.

This deal will increase trade in all kinds of products, but it contains a rule saying "only the manufacturer of a machine is allowed to repair it." Anyone repairing a machine they bought would be breaking the law.

"Only a tiny portion of our economy is based upon machines", its defendants will say. "Yes, it has problems, but this increased trade in horse whips makes the deal worth it."
Thanks, we updated the link from the homepage.
Adding on, paraphrasing from Anthony Kenny in an introduction to a volumen of his book A New History of Philosophy, philosophy is affectionately called the mother of sciences. When a philosophical question, e.g. what is free will, and is there free will, develops a well-defined approach to an answer, it often splits off into its own scientific field. For example, for the question of free will, we can investigate it as politics, and examine the structures of coercion by power, as behavior and psychology, and as biological processes.
Yeah, all you need is a business-class Internet connection (residential Internet services block mail services), and a server.

I run my own servers both onsite and in the cloud. I have my only little personal "corporate" network.
Now that the CLR is getting more attention because of Microsoft's cross-platform efforts, how comparable is the CLR to the JVM, engineering-wise?

I ask because, as a C# developer, I like C# as a language, but am jealous of Java's extensive libraries and the legendary engineering of the JVM. How likely is it that the CLR can serve as the basis for future Big Data projects like Hadoop or Spark?
meta: If you can still edit the title, you can add a "Show HN:" to the title: https://news.ycombinator.com/showhn.html, otherwise I hope a mod will do so.

content: looks very cool. Does it still work cleanly if you e.g. open and parse a file (I assume later loads come from the file system cache and are quicker, but still), or do complex operations? A lot of my use case for REPL programming is breaking down data from log-like files, where some steps take seconds.

Can I maybe "pin" lines that should not be rerun every time?
As another case in point, from another HN comment and article, look at the case of plea-bargaining:

https://news.ycombinator.com/item?id=12282830

One party (the prosecutor) has the option to threaten a severe penalty (high cost) to the defendant, whilst the defendant (often indigent) has little means to mount a defense. The DA's benefit is not only offsetting court costs (an interest in which the Court is complicit), but in racking up a conviction.

That is, the costs (overbearing convictions, often false convictions) are externalised, the benefits (trial costs, political advantage) are internalised.

I don't see how this can be considered "rent seeking". It's simply a strongly asymmetric power relationship and cost/benefit allocation.
Yes. Value Types, Reified Generics and Generic Specialization (e.g. List<int>) will all be in Java 10.
It's a pretty nifty concept. Had to use this type of processing a couple years ago when doing some calculations that involved rotating azimuth/elevation/distance values around a sphere. Fortunately, I was able to find a nicely-licensed C implementation in https://github.com/smonkewitz/scisql that was originally intended for embedded use in a database.
Here is the case for TPP,https://piie.com/blogs/trade-investment-policy-watch/case-tp...
> The fact the Democratic Party is being targeted by a foreign power tells a lot about which side the external actors prefer.

As a democratic socialist, I'm almost starting to prefer the other side as well.

Or shall we simply continue to excuse this sort of behavior?

https://wikileaks.org/dnc-emails/emailid/20280

"Can we set up a time for a very brief call to go over our process for handling donations from donors who have given us pay to play letters? Want to make sure we have a robust process in place to make sure that donations that come in from those donors, in any form, get put into the operating account."
I've debated with cliff click about this before actually. There was a consensus that the JVM can support certain kinds of operations for that stuff (eg: basic SIMD) with that coding style. It can't do everything though.

It's a lot better to go JNI for 99% of this stuff though.

I'd also love to know when java has first class support for gpus (you know where hpc actually runs?).

I'll continue relying on c++ for that stuff. It's also what nvidia supports first class.

If you have any first hand experience with this stuff
I'd also love to hear your thoughts on this as well.

Better yet: Here's a mailing list where these people (including me) sit.

Go ahead and peruse it. I've learned a lot being on here.

I'm STILL of the opinion the JVM

can't do most of these
things well after having run the numbers:
https://groups.google.com/forum/#!forum/mechanical-sympathy

For cpu I'll be sticking with openmp for the long term. Don't even get me started with cpu specific optimizations (eg: different intel generations)
There's a lot of controversy regarding the specific contents of the TPP, but for me personally, I am against the cloud of secrecy that it (along with most trade agreements) was developed under. It took WikiLeaks to even let the public know of its existence. And after that they refused to let members of congress (our elected officials) from even reviewing the document except for selected sections, under the watchful eyes of a USTR official. No matter what the pros and cons of the TPP, the people had no say in it, nor did our elected officials; and when we tried to get a say, they refused. That's inherently anti-democratic.
(Edited to clarify that I think Java was good in the very beginning, less so in the middle, and is good once again)

Java started off as the Golang of the 90s: small, simple, opinionated, statically-typed, in many ways state-of-the-art, and engineered to protect the programmer from doing bad things (either due to ignorance or will). It came with a batteries-included standard library.

Then, in a quirk of fate, it became very popular. Though its library provided clean abstractions, you had to chain several of them together to actually accomplish anything: this is why it was so verbose. Everyone was writing Java, but no one was sharing Java, yet. Before Apache (Jakarta) Commons, no one bothered to make wrappers for basic stuff... just like how we were writing bad JS before jQuery or underscore came out. We were caught between our own experimentation, Sun's desire to take over the desktop, and companies like IBM and Oracle that wanted to ensure they could sell commercial support for big monolithic Java appservers.

When the 'Design Patterns' book came out, someone should've made a framework, but instead we sprinkled AbstractStrategyFactoryBuilders everywhere because that's what the enterprise libraries did... and it read like a bad parody of object-oriented programming, but by now, we've learned our mistake.

Now that bad APIs have fallen out of favor, Java EE is nearly abandoned, Spring brought some sanity but also forced us to consider why we're even thinking about convention over configuration, Java is much, much nicer. In the Maven, Github, CI world, we can -- environment and company policies permitting -- easily pull in libraries and frameworks that allow us to actually get stuff done at the correct level of abstraction.
Can also be solved with some aliases to curl

alias GET='curl -sk'

alias DELETE='curl -sk -X DELETE'

alias PUT='curl -sk -X PUT --data-binary @-'

alias POST='curl -sk -X POST --data-binary @-'

echo "hello" | POST localhost
>If there were one regional government, that could be avoided by focusing decisions about infrastructure, housing, services, and taxation on the actual region's health.

The problem is that the bigger an organization gets the more it is prone to waste, inefficiency, and fraud. Another problem is that accountability is inversely proportional to concentration of power. This opinion is obviously at odds with that of the pointy heads in Washington DC and Brussels, but unlike their opinion, is congruent with reality.
Could you share a link(s) to the study that establishes a strong negative correlation between trade deals and the average American? I think the closest thing to a concensus among economists is that free trade produces some winners and losers, but on the whole, it improves overall welfare.
>use Postfix or Exim

Better yet, opensmtpd.
I submitted this as its own post, but it didn't get much traction, so I'll link it here as well.

http://static1.squarespace.com/static/579f40a01b631bd12f10c2...

This paper argues that the 2016 primaries were hacked based on the fact that (among other arguements):

There was consistent discrepencies between paper and machine voting results, favoring Clinton and against Trump.

Clinton and Trump support was corralated with precinct size

Demographics are not sufficent to explain the above observations.

I have not verified the accuracy of this analysis, or found other commentary on it.
In my experience on the web its all IO bound.

If you are using multiple JVMs and high performance IPC libraries you have largely already solved the memory bound problem on the JVM with standard techniques like arena allocation.
>Government officials don't compete to make their citizens as happy as possible, they compete to make their voter base as happy as possible.

No, government officials compete to make their donors and patrons as happy as possible. A government functionary that stands to land a cushy 6 figure job in the private sector if he does what he is told while he is in government service usually does what he is told.
"gmail and hotmail both mark my mails as spam."

And they will continue to do so for as long as it takes for your mail server to earn a positive reputation. I recently had this problem with gmail after moving mail servers. there's really nobody that you can contact, gmail doesn't whitelist mail servers.

You're going to run into this problem with proofpoint, barracuda, postini, etc...
Ask HN: Your opinions about desktop applications in Mono and GTK#?
Did anyone try recently to build UI applications using mono and GTK#? If so, how was your experience? I really like C# and I wanted to build a cross platform desktop application with it. GTK# seems to be the most mature option but I couldn't find a lot of info about the performance or the stability of the platform. Also, are there recent benchmarks comparing Mono to other platforms like Java..etc?
Norway has an interesting approach to the bottle return.

There is a tax on beverage containers of all types. This tax is reduced to be inversely proportional to return rates when return rates exceeds a certain level. So return rate of 40% means the seller pays only 60%. There is an additional charge on all containers that are not recyclable, regardless of the return rate.

There is then a recycling scheme that retailers can participate in which involves bottle collection and centralised reuse (glass bottles in good condition only) and recycling (glass and plastic bottles) and redemption. As a result of the high return rates coupled with the tax reduction, most larger stores etc. have machines you can feed bottles for store credit, and at least when I was a kid pretty much any corner store etc. would also take bottles and pay out cash.

This ability to return and redeem everywhere made picking bottles a simple way of making extra cash without having to go somewhere. When I was a kid it was a go-to way of supplementing my allowance, and you'd also see homeless people and retired people etc. doing it.

It's given Norway a return rate for glass bottles of 99%, and an overall return rate for recyclable beverage containers of 95%, which is well in excess of most places with bottle return programs.

Retailers have strong incentives to participate in the recycling programs to reduce their tax, especially given that all their competitors does too, and people expect to be able to return their bottles at the same time as making their purchases - if you don't participate in the return program, you force your customers to make an extra trip if shopping with you.

The fee used to be quite substantial, though I believe it makes up a smaller percentage of most beverages now as I don't think (I haven't lived in Norway the last 16 years) the redemption rate has kept up with inflation. When I was a kid at one point the bottle return for 0.5l bottles of soda was about 5% of the purchase price.
Location : Nevada

Remote : YES

Willing to Relocate : YES

Technologies : Mac OS X,iOS,Cocoa,Objective-C,Swift

Resume : https://www.dropbox.com/s/yip8tkx62cmd3kd/Resume4.pdf?dl=0
It was not well expressed, but it is a valid sentiment. I don't think rayiner's point was as you say, that "tough on crime" is rewarded at the ballot box, but that he thought the approach taken was justified. Many would argue that cruel and inhumane treatment is never justified, and as a long term solution is never effective (as it entrenches poverty and provides continuing motivation for crime).
Thanks for the advice about "Show HN:" :) It's my first post here, so I really appreciate it.

Opening a file works fine, as well! However, further loads are actually not from any cache. I decided against caching, because it becomes very difficult to add new language support if state persists between evaluations. To retain speed, Vim's asynchronous jobs are used if available. Complex operations will obviously take longer to show, but they will not interrupt typing. There's a big warning about trying to print infinite lists in Haskell, though ;)

The typical use case for Codi is trying out short code snippets to see if they do as you expect, or as a calculator where you can use your favorite interpreted language. Processing a lot of data is not really a good use case, but it's possible because the previous job is cancelled with every keystroke; it shouldn't be any slower than running it normally.

Pinning is a great idea. I'm not sure how it would be implemented, as anything you type in the buffer could be interpreted as a line to evaluate. Maybe a special directive like `!pin`, and escape exclamations via `!!`?
>> "A recent poll found that 34 percent of likely voters believed the general election would be rigged."

Even if it the US election was rigged, very possible US wouldn't even care.
Joplin is the only one you have heard of because he was just about the only one with a publisher. The rest simply improvised. Many could not read music. Joplin had some classical training, although he quit it young. His use of syncopation is much more restrained that many other ragtime musicians, and that is what makes it lastingly interesting. It is the lack of syncopation where you expect it that keeps the brain in a state of pleasant surprise.
I'm genuinely curious here since opensmtpd has been by far the easiest to configure MTA I've ever seen. What problem(s) did you have? Virtual users through a relay host is literally one simple line:

accept for domain "example.com" virtual <users> relay via relay.example.com

I don't see how anyone could conclude that is more difficult than postfix.
Not U.S. Federal judges.
I wonder if open-sourcing can help keep Moore's Law going.
Gopherpedia: The Gopher Interface to Wikipedia
Democracy Is Getting a Reboot on the Blockchain
Kenny Baker, the Actor Who Brought R2-D2 to Life, Passes Away
Thanks for the links (I won't likely read the EFF's take, as I am staunchly against the way the EFF writes its articles), but this feels like a rabbit hole. Cory Doctorow links to an article that links to an article that eventually gets to a World Bank report, claiming that 772k jobs will be lost "Because of the TPP" and that the GDP of developed nations will decrease by .52% for the US and .12% for Japan.

The Tufts analysis, however, is merely a response to another report done by the World Bank claiming, "The model simulations suggest that, by 2030, the TPP will raise member country GDP by 0.4-10 percent, and by 1.1 percent, on a GDP-weighted average basis."

So now you've got the World Bank arguing with economists, Cory Doctorow only linking some of the results of those reports, and this mysterious job loss (where the hell do those jobs go, exactly?) various economists disagreeing with one another...

How the hell do people extract an overarching viewpoint from all this noise? The biggest concern for me is the IP stuff, but I can't tell if this, too, is fearmongering (I go to jail because I cosplayed Darth Vader?? There's simply no way that's how it works, I don't care what the agreement says).

Also the loss of sovereignty seems scary. It'd be terrible of Phillip Morris could sue the US Government for the cigarette labeling, like they did in Uruguay.
Ask HN: Methods to kill weed, and unwanted insects in your garden
My parents own a garden in the back of the house growing organic fruits and vegetables. They complain insects and bugs (mosquitoes, etc). They also found weed growing everywhere, espeically around cracks.

Since we are growing food we eventually going to eat, I want to be careful with the kind of herbicides I eventually use in my treatment.

I have read methods such as vinegar to kill weed, or apply concentrated chemical with 2-4-D as active ingredient to kill weed. I see some people recommend Dr. Earth product to kill unwanted insects and bugs. There's even suggestion to just add wood chips to the soil.

The most comprehensive studies I could find is http://ipm.ucanr.edu/PMG/PESTNOTES/pn74113.html but leave me so many options I am not able to decide on a treatment.

Anyone experience with gardening can offer your experience?
It is my field; my training is as a biologist, and I love the science. Plus my frustration indicates a problem worth solving.
Lack of paper trail has been an election complaint for at least 16 years now.
And for those who didn't open mist while the vote was taking place?
Some examples of each?
GitHub: https://github.com/muffinista/gopher2000

From a previous thread: https://news.ycombinator.com/item?id=12280749
Some internal bias is one thing, if it is disclosed. Mother Jones, however, is a bastion of extreme leftist rhetoric that tries to pass itself off as a legitimate source of news. That is the part that is disturbing and very misleading to those that haven't been warned about or don't already know about the site. Maybe some sort of logo, even an arrow pointing to the left or right, or a Chrome plugin that turns the site blue or red for a few seconds when you first go to a page on it, would be good for these kinds of sites.
That would be true if people moved there because of the stop. I'm not sure Pawtucket is a big draw for either families or singles. I am sure that if there is parking, people who already live in RI will use it to commute to Boston to create real wealth for Boston companies while hoping for marginal trickle-down wealth for RI.
Fair enough, I personally don't have first hand experience with the super tight loop stuff on the JVM (though that seems like it'd be fun!). The JVM has always been fast enough for MY needs, but I realize that's not true for everyone. Thanks for the link, that seems like a good mailing list.
>The notion of cellular automata goes back to von Neumann and Ulam, whom Feynman had known at Los Alamos. Richard's recent interest in the subject was motivated by his friends Ed Fredkin and Stephen Wolfram, both of whom were fascinated by cellular automata models of physics. Feynman was always quick to point out to them that he considered their specific models "kooky," but like the Connection Machine, he considered the subject sufficiently crazy to put some energy into.

I am currently starting round four in my studies of CAs, and it I thought this quote was interesting in bridging the earlier work by von Neumann and Ulam to Ed Fredkin and Stephen Wolfram with Feynman in the middle spanning them.

The book, "Cellular Automata: A Discrete Universe" by Andrew Ilachinski, has had it critics, but it is an amazing compendium to read.
Doubtful. If the companies with multi-billion dollar IP, talent and fabs are having trouble making chips archive the same level of performance-increases every 18 months as they did in the past, sharing only the IP (and not Intel's, but that of a smaller player) still leaves several problems unsolved.

But it's still an effort to share knowledge, which is good.
The CM-2 didn't work that way.

If you declared a 64-bit value, it went "down" each processor's memory, so that it would still be 64K values.

Interestingly, you could ask the machine to consider itself as having twice the CPUs (each with half the memory) and so have 128k, 256k, etc. processors.

Ah, come to think about it, if you had the floating-point accelerator chips, you could program it "slice-wise", which was kind of what you're talking about. Our CM-2 didn't have them, so I never did it, so... ask someone else :-)
I just don't buy this argument, that a trade deal can't be negotiated in secret. The public's control over its government in the US is exclusively through its election system, and the idea that the public "has a right to debate the deal" is, to me, utter nonsense.

You elect officials who you trust to appoint other officials who will negotiate with the US's best interest in mind. If the deal goes through, you elect different people who you trust will fix the laws you don't agree with.

"The people" never have a say in any legislation, not directly, and there are countless meetings that take place on Capitol Hill which aren't open to the public.

We don't have a "democracy" as you describe it, and for very good reason. Populism is reactionary and predatory. It would be very harmful to minorities if we did live in a system where the most popular decisions were the ones that got made. Remember prop 8 in California, or more recently brexit?
Here is a fairly detailed explanation of how the investor-state dispute resolution mechanism works, an analysis of how similar provisions in NAFTA have been used, and why this is bad for democracy.

https://www.policyalternatives.ca/sites/default/files/upload...
There is this great presentation on MS-CHAPV2:

https://youtu.be/qjBHTS6BKX4?t=5m36s