Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 11y ago · link · parent

Fair enough. It might not scale down that well, especially since on low-memory systems you often worry about CPU usage and power usage as well. But Go uses a lot less memory to begin with, so the default GOGC value of 100% (half of application memory used, half free) will still be less than a similar Java program, even ignoring that Java also needs a heap larger than the allocated size to get good performance.

comment 11y ago · link · parent

Yes, that's true, but this GC lets you get more throughput by using more memory, so you can still decide how you want to make that trade-off. But no amount of knobs can save you from a long stop-the-world pause, so they made absolutely the right decision, in my opinion. With multi-core server CPUs, throughput is relatively cheap to obtain. Latency is hard, you can't just throw money at the problem.

comment 11y ago · link · parent

It's not a limitation, just a tuning knob that can be used to trade off GC cycles against memory usage. If you're in a low-memory environment, tune the knob to use more CPU.

comment 11y ago · link · parent

Unpredictable latency is a huge no-no in these days of responsive server applications. Long GC pauses are just not acceptable to many server developers, so I don't think it's correct to consider it only a client-side problem. If you look at the mechanical sympathy mailing list, you'll see a large group of Official Knob Turners for the Java garbage collectors discussing their trade.

comment 11y ago · link · parent

Actually he wanted to use a quad-color implementation, which AFAIK is a Mike Pall tweak of a tri-color collector.

comment 11y ago · link · parent

I'm sorry, what exactly is your criticism?

comment 11y ago · link · parent

IOW still not remotely price-performance competitive with commodity hardware. How does this company sell anything?

comment 11y ago · link · parent

I see this as hugely superior to the freemium model, both from the perspective of the user and the app developers. App developers no longer need to cripple their apps and sell in-app band-aids to make money. The developers of the more entertaining and engaging apps will make more money. End users no longer spend a bunch of time on a game only to find out they need to pay to advance to the next part, or bypass some artificial restriction that shouldn't be there.

It just seems like a much more civil relationship.

comment 11y ago · link · parent

I think there's a big elephant in the room here. Companies usually take time to fail, especially with VC funding. The companies from the newer batches are going to be skewing those fail statistics. If you only look at companies from 4 years ago and older, you might get a more realistic impression.

It still won't be 90% though, but YC companies are widely known to not be representative. It's the highest profile accelerator, so it attracts the best talent. Just like people who graduate from Ivy League schools earn more on average, but mostly that's because they attract people who are above average to begin with.

comment 11y ago · link · parent

AFAIK LuaJIT was the work of Solo programmer Mike Pall. He built it on top of Lua, of course, but it's still an incredible feat of engineering and dedication. There are some who speculate that Mike Pall is possibly an alias for a whole team of people, but I think the reality is it's just one hard-working and extremely talented individual. He's now in the process of passing on the torch to the community, after a decade of shepherding LuaJIT.

comment 11y ago · link · parent

Doesn't it go the other way? If your currency decreases in value, exports go up because your goods priced in local currency can be had for less foreign currency.

It makes Apple happy, theoretically. But it also means Chinese goods and services are more competitive globally, which will, of course, hurt the competition.

comment 11y ago · link · parent

You can argue about his choice of words, but shift workers fare worse on just about every measure of physical and mental well-being. There's always a choice. If I were the OP, rather than try to band-aid the symptoms with medications, I would plan and prepare to change my career to something where I don't have to do shift work. Just the same as if I had a job that I hated. It's just a job, better to find one that doesn't have so many negative impacts on your life.

comment 11y ago · link · parent

There are no anonymous structs in that slide, just anonymous interfaces.

comment 11y ago · link · parent

Yes any country could do it alone, but all it does is slightly reduce global demand, Australia being a fairly small country population-wise likely didn't make a dent. All other things being equal it doesn't leave fossil fuels in the ground, just increases the amount of time before we extract them. That does buy time for the human race to find a lasting solution.

comment 11y ago · link · parent

When you can get all of the world's major economic powers to agree on that, then you can say it's easy. In principle it's easy, but in reality good luck!

comment 11y ago · link · parent

I was hoping you were being sarcastic. The trouble with sarcasm is it's indistinguishable from foolish sincerity, which abounds on the interwebs. Without facial or voice cues, there's no way to know. That's why you have to use the /sarcasm tag.

comment 11y ago · link · parent

Yes, but that's temporary. As demand exceeds supply again (because we're running out of oil) then the prices rise and suddenly all these unconventional oil projects become feasible again.

The only way to keep that oil in the ground is to eliminate the market for oil at profitable extraction prices through very cheap energy alternatives.

It's very difficult to solve the problem through regulation because you need all the countries making up a sizable portion of demand to regulate together. The incentive will be strong for individual countries to defy global pressure to do so, because cheaper energy means more economic growth. So far we've seen very little in the way of effective regulation and I'm not optimistic for a change, the incentives for short-term-minded politicians are in the other direction.

comment 11y ago · link · parent

This is probably what's driving down the Canadian dollar: http://www.xe.com/currencycharts/?from=USD&to=CAD&view=2Y

comment 11y ago · link · parent

I don't think migrating from Angular to React is real work. If it takes a long time, it's probably best to stay with Angular. A failed company using Angular is the same as a failed company using React. Better to spend your time iterating on the product and acquiring customers. If you succeed you can always migrate later. It will cost more, but you will have more resources too. Doing something like that in an early stage startup just has too high of an opportunity cost. It's exactly the kind of fake work Altman is talking about.

comment 11y ago · link · parent

Not hard. Smart. Work on the right things is what the article is all about. You missed the point.

comment 11y ago · link · parent

I don't think it's fair to use the term slacking here. At worst they're people who focus on the wrong things and don't prioritize their resources optimally. Considering the number who burnout, they're likely working very hard, just not on the things that will matter in the end.

comment 11y ago · link · parent

Thanks for sharing! So roughly 20% slower for computationally intensive workloads, likely due to nested paging putting increased pressure on the TLB. For applications using huge pages, the slowdown would likely be much less. Both docker and KVM introduce a lot of overhead with frequent, small IOs. That's likely the chattiness of the syscalls with the Kernel, which is a problem even without virtualization. Doing more work per syscall reduces those overheads. e.g. writev, readv, sendmmsg recvmmsg, etc. The context switch involved in syscalls (especially the cache and TLB pollution they cause) is very expensive.

comment 11y ago · link · parent

It's fantastic that you've reduced the startup and memory overhead to the point where it's almost negligible. That's quite an achievement!

One thing that was not discussed is the impact hypervisor-based virtualization has on runtime. I've seen plenty of benchmarks where AWS EC2 instances perform much more poorly than a bare-metal machine with a similar processor. Do you have any idea what the overhead might be for clear containers vs standard linux namespace-based containers?

comment 11y ago · link · parent

A good intro to clear containers here, it's really fascinating reading: http://lwn.net/Articles/644675/

comment 11y ago · link · parent

The optimism in that article is astounding, and that's coming from a dyed-in-the-wool optimist. I think this is a classic case of a layman underestimating just how hard the technical problem of building a 100% autonomous car is. Tesla has some autonomous features, but the car still requires a human driver. Getting that last 5% of the problem solved for all the little, rare, unpredictable things that can happen in the real world is a really hard problem.

I agree that shared self-driving cars are the future, and at some point sooner rather than later they will likely be electric self-driving cars. But as to which company is going to dominate that space is not easy to predict, and a company like Tesla is the underdog in a ring with heavyweights like Google and Apple.

comment 11y ago · link · parent

I'll grant you all of those points, if you use Cython to compile your code to native or use a native library to do the expensive parts of your code, then it works out fine. Both of those get around Python's inherit slowness by doing the costly things outside of Python.

comment 11y ago · link · parent

What does that have to do with anything? I'm not suggesting Gates still wrote meaningful code in 1999, and the article was very dismissive of Gates coding abilities and the impact they had on his success. He did not restrict his criticism to 1999.

comment 11y ago · link · parent

I'm aware of that, but CPython is by far the most popular implementation. Add IronPython to the list without a GIL as well.

However, Jython, IronPython and PyPy must all variously slow down even single-threaded code without the GIL because Python having the GIL made lists, dicts, and sets threadsafe. The locking (or complex lock-free algorithms or STM in the case of PyPy) is not free.

The Python language is just a poor choice for concurrency. It's also a poor choice for a glue language, as Lua is much better designed for that, but Python seems to have become popular in that role anyway (likely due to a richer ecosystem.) Python, even with all of PyPy's JIT magic is still one of the slower languages. If you're using it for real work (not just as glue) and you need extreme performance, then it's a poor choice in the first place.

Keep in mind that I have a Python day job, and Python has been my favorite language for over a decade. I'm not hating on Python, I'm just acknowledging its failings.

comment 11y ago · link · parent

OT: If an index fund doesn't pay dividends, what happens to the dividends? Presumably the fund owns shares in every stock in the index, so there should be dividends?

Does it just go towards paying the fund overheads? What about for an ETF index fund?

1
172173174
184