HN user

dfritz

24 karma
Posts0
Comments9
View on HN
No posts found.

I like how the repository's history was discretely rewritten since then.

Commit 7cc9a8fff679fcd31bca7d18c8b3b960796d032f was replaced by bcc3e09783ca31039183d5084d8480bd76d531f5, without the sunxi-debug.c file.

Compare https://github.com/allwinner-zh/linux-3.4-sunxi/commit/7cc9a... (original) with https://github.com/allwinner-zh/linux-3.4-sunxi/commit/bcc3e... (modified)

https://github.com/allwinner-zh/linux-3.4-sunxi/blob/7cc9a8f...

https://github.com/allwinner-zh/linux-3.4-sunxi/blob/bcc3e09... → 404

This is interesting, but I don't really understand the differences with the existing coroutine libraries like libtask, libconcurrency or libcoro.

Of course, it uses the longjmp/setjmp trick, as suggested by Dmitry Vyukov.

http://www.1024cores.net/home/lock-free-algorithms/tricks/fi...

However, I'm not sure of the benefit of this approach, compared to writing a few lines of stack switching assembly code per architecture. Especially, how portable are the implementations of longjmp and setjmp across the multitude of C libraries and operating systems?

But more importantly, it doesn't seem to solve the two main issues of coroutines libraries written in C that were already solved in Go:

- How does the stack can grow or shrink? (specifying the stack size in the worse case scenario doesn't scale well)

- How can a coroutine be moved to another operating system thread and back? (useful when blocking or when parallelism is needed)

Nexus 6 Review 12 years ago

Yet, the Nexus 5 was already 50€ more expensive than its predecessor, the Nexus 4.

Nexus 6 Review 12 years ago

The Nexus 6 (Snapdragon 805, 2.7 GHz quad-core) have a slightly faster CPU than the Nexus 5 (Snapdragon 800, 2.26 GHz quad-core), but it only reflect the natural performance improvement over time.

The Nexus 6 (184g, 31g/inch) is heavier than the Nexus 5 (130g, 26g/inch), compared to its screen size.

While the battery capacity of the Nexus 6 (3220 mAh) is significantly larger then the Nexus 5 (2300 mAh), people reported the battery life of the Nexus 6 to be shorter.

I can't find any technical improvement that could explain a 1.75x price increase.

Nexus 6 Review 12 years ago

Pros: Reasonably priced for what it is

A year ago, we had a 5" smartphone (Nexus 5) for 399€ and a 7" tablet (Nexus 7) for 299€. Now, we have a 6" smartphone (Nexus 6) for 699€. Is it reasonably priced?

How Google Works 12 years ago

That's the same in most companies. But when they say "go build something", it really means "go build something at home, not during your working time!". In my career, the most interesting things I worked on were mostly done on my spare time. Then, I left the company and lost the right to use my own code. Retrospectively, I'd have rather spent this time on my own projects.