Better HN
topnewbestaskshowjobs
Log inSign up

voidlogic

3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions

Submissions

comment 11y ago · link · parent

Sorry- I read what you said as trying to make the opposite point. Re-reading it on context of what you intended it makes more sense now.

comment 11y ago · link · parent

Any company that wants to have a presence in the US must abide by the list as far as I know. Even further to the point AMD and Intel are actually headquartered in the US...

comment 11y ago · link · parent

I'm disappointed that the dietary interventions did not include a ketogenic diet as there has been recent evidence that such a diet is competitive with caloric restriction in terms of life extension (and would not suck so bad to actually practice).

http://www.the-scientist.com/?articles.view/articleNo/42273/...

334.

Study shows humans are evolving faster than previously thought(theguardian.com ↗)

3 points · by voidlogic · 11y ago · discuss

comment 11y ago · link · parent

Did you make use of sync.Pool at all for your common garbage generation cases?

comment 11y ago · link · parent

>>Diet

I would have never believed this, but after I started on a ketogenic diet I realized my stress/anxiety was greatly reduced. (Beware: antidote, n=1, etc).

>>Exercise

I find the days I feel "too busy" (aka really just stressed) for a walk are the days I need it most. I seldom find a 45 min walk to be a waste of time in retrospect.

comment 11y ago · link · parent

I should point out if you use my above approach and vary on the checksum/hash header, you don't even break the semantics here either...

comment 11y ago · link · parent

It often does, and if not, the above approach is to inform your client of the failure so it can switch to using POST or whatever else is best.

Edit: As I mentioned on another follow up, you may need to vary on your checksum header to play nice with proxy caches, etc. Or mark your responses as uncachable.

comment 11y ago · link · parent

>GET requests don’t have a request body, so all parameters must appear in the URL or in a header.

GETs can have bodies--- its just that some people who write software forget this.

A simple solution is to put a hash or maybe even just a body content length in the query string or a header so the server can make sure the body made it to it. If the the body doesn't make it, then it can inform the client retry with another less ideal HTTP method.

comment 11y ago · link · parent

  :~$ file `which vlc`
  /usr/bin/vlc: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=XXXXX, stripped

comment 11y ago · link · parent

Either way the British Empire being helped or hindered by Catholicism (or the lack there of) is mostly conjecture. Its like trying to argue if the Romans had abolished slavery they would have landed on the moon in 1462. Without time traveling and alternate histories to explore we will never know.

comment 11y ago · link · parent

>>A full-fledged package manager automates the process of installing, upgrading, configuring and removing software packages in a consistent manner.

That sounds like deb(dpgk)/rpm's job. In golang-land I just need to use vendoring+godeps for repeatable builds.

comment 11y ago · link · parent

FYI: XINU was started in 1979 and GNU was in 1983.

comment 11y ago · link · parent

That is not actually where the name "Linux" comes from... http://en.wikipedia.org/wiki/Linux#Naming

There is actually an OS I have used with a similar meaning name however: XINU ("Xinu Is Not Unix"): http://en.wikipedia.org/wiki/Xinu

comment 11y ago · link · parent

>The question is, "Did the US achieve its political goals in Iraq and Afghanistan?"

My questions was: "Did the US millitary fail to achieve its component of political goals in Iraq and Afghanistan?"

comment 11y ago · link · parent

Please see my response to dcposch below, it would be about the same.

comment 11y ago · link · parent

>No. Iraq is fractured into halves. The northern half is controlled by ISIS, the southern by a dysfunction democracy where the elections are not about ideas and policies, but rather about Sunnis vs Shiites.

All true, but the discussion here is around the effectiveness of the U.S. military and you are referring to the political failure to build a strong enough post-US occupation Iraq.

> Afghanistan is also sectarian. Neither are anything we'd recognize as free and stable democracies.

I don't think the expectation of western-style democracies coming into existence is reasonable in that part of the world. We can all wish for it... But that doesn't mean the U.S. military (pre-whithdrawl) wasn't effective in effecting regime change and maintaining control.

>Our wars there were brutal, protracted, expensive, and ultimately didn't work.

brutal, protracted, expensive- yes, yes, yes ultimately didn't work- sure, but I would argue that was not a military failure and this discussion is about the military performance.

A better article would have been "The US sucks at post-WWII nation building"...

comment 11y ago · link · parent

I think many of the points raise are very valid areas of improvement, for example: "Learn the Language"; Others are products of politician reality: "Fear of Casualties".

But I think the premise: "the World’s Biggest Military Keeps Losing Wars", is wrong.

1. Conventional forces have trouble wining asymmetrical conflicts unless they are allowed to wage total war (which is usually precluded by modern political/moral concerns). Nothing new here- the Romans had experience with this.

1.A Note the single "win" on the list of post-Korea conflicts was the first Gulf War, a conventional conflict.

1.B It is arguable that the U.S. is actually better than most other conventional militaries at asymmetrical warfare: http://www.warriorlodge.com/blogs/news/16298760-a-french-sol..., however that may just be a product of being better at conventional warfare improving overall fitness.

2. "Winning" define this? Winning means very different things in total war vs. occupation/garrison/nation building actions. While its fair to say the U.S. lost Vietnam, I think its fair to say the U.S. won in Iraq and Afghanistan as they are now governed by friendly democracies... Military action is just a way of attempting to physically impose political will- If a nation's military helps the leaders reach their goals, it won.

comment 11y ago · link · parent

So how do I know if I could use this with my carrier? Kind of an important question when it comes to reservation?

comment 11y ago · link · parent

While "work well at all" might be an exaggeration, I have found Firefox to run much better than Chrome/Chromium on Ubuntu 14.04 LTS as well.

comment 11y ago · link · parent

Sorry, I meant "and" rather than "so" in retrospect.

Although youngness of an implementation temporally is obviously often correlated to naivety of implementation.

comment 11y ago · link · parent

The author, Dmitry, had a recent escape analysis fix related to maps with impressive results:

https://go.googlesource.com/go/+/b3be360f16c44d21b2594d06e8d...

comment 11y ago · link · parent

>I'm interested and surprised to see people putting much effort into escape analysis for stack allocation. The research that came out in the 90s and 00s pretty much said that if you have a good GC you won't see much benefit to using EA for stack allocation.

Garbage never generated is garbage never collected. Large enterprise Java apps often still have GC issues despite very advanced GCs to choose from. Also Go's GC is maturing slower than its escape analysis and its object pool (sync.Pool). Go is younger so its GC is weak compared to Java- but it does a good job using the stack and offers a state of the art object pool with thread local caching.

>It's very expensive to do EA well (O(n^3) or O(n^6) where n is the depth of the call graph). You can do it cheaper in a JIT that has on-stack-replacement

Isn't this apples to oranges since one of these is a compile time expense and the other is a run time expense?

comment 11y ago · link · parent

>but not a DMCA problem.

They do claim this:

a large portion of the uploaded code is copyrighted by the University of Illinois. Therefore, the repositories identified below constitute a violation of U.S. Copyright laws, in particular section(s) 1201(a)(2) and/or 1201(b)(1) of Title 17 of the United States Code, commonly referred to as the Digital Millennium Copyright Act, or "DMCA".

What do you think about that?

comment 11y ago · link · parent

You want evidence that a object pool with thread-local caching is faster than a garbage collector?

Barring major implementation mistakes this should be self-evident, but you could easily write some benchmarks to verify. Its worth noting that if the Java GC was good enough people would not bother to write object pools in Java- but they do. And Go has a very advanced GC/mutliprocessor aware object pool implementation built in its stdlib.

In an typical object pool only allocation up to the peak concurrent demand for the given object type will ever be allocated and the kicker is that allocation will only happen once. Adding thread-local caching means that that will scale well on multiprocessor systems.

TL;DR: A system that does not generate garbage is going to be faster than a system that does. My argument is that effective use of a good object pool implementation in Go is faster than even a more advanced garbage collector would be.

comment 11y ago · link · parent

Most Go apps can get better than advanced Java GC level allocation-memory performance simply by applying "sync.Pool" (http://golang.org/pkg/sync/#Pool) on applicable pain points.

Its also worth mentioning using a custom allocator + mmap is possible in Go if you really needed it.

Go is also better than Java about using stack allocation for objects.

comment 11y ago · link · parent

> Public companies are more boring, but having permanent capital does bring a little more stability

Privately held corporations can be very large too. Since there are fewer captains and stakeholders I would argue that at the same given size privately held corporations are more stable.

comment 11y ago · link · parent

>I'm half-convinced that it's "unnatural" for human consumption

Its not like a large portion of the Earth's human population has evolved the ability to process lactose after childhood or anything--

comment 11y ago · link · parent

>I don't think so. If testosterone is the culprit for increased risk of coronary artery disease, prostate cancer and sleep apnea, then doing things that naturally increase testosterone will increase risk also.

True- BUT many of those things mentioned to be thought to improve Testosterone above are also known to reduce risks that are associated with Testosterone itself (heart disease, etc). So there may be some net balancing at play here?

>Don't succumb to the naturalistic fallacy. The body doesn't care where it gets its chemicals from.

This is true in the immediate, but consuming things your body synthesizes (ex. testosterone, cholesterol) will often reduce the rate at which your body synthesizes it... Your body is a complex system with many feedback loops.

comment 11y ago · link · parent

I'm guessing its a sperm count / motility test.
1
111213
40