288 karma · joined Apr 5, 2011 (15y ago) · 38 submissions
comment 2y ago · link · parent
In Marxism what they call "full communism" is envisioned to be the "final state of humanity" where productivity is described to be higher than the sum of needs and wants - everybody can help themselves to anything from the warehouses. Obviously very utopian, and I'm not sure there ever was any detailed analysis on how a society a would actually function in "full communism" - but I don't think the economics of The Culture would be that far off if you would describe it to someone of those views. Early Marxists were much a bit more practical, more focused on critiquing the practices of their contemporary societies than envisioning the details of their utopia.
comment 2y ago · link · parent
comment 6y ago · link · parent
But I'm managing and I'm sure you will too. Clichés exist for a reason: as it turns out; I wouldn't trade it for anything.
comment 7y ago · link · parent
Yes.
> An app store? A payment provider? A cloud provider? A health data store? An update mechanism?
Yes, Yes, Yes, Yes and Yes.
To do otherwise, is to invite platform owners to be (potentially abusive) monopolists with a license to favor their own services instead of promoting and maintaining fair competition in markets on top of that platform. In western societies, since the last century, that has been behavior which has been regulated by law and courts.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
So if you're in the market for a lightweight JIT engine and target C++/X86, I'd give Xbyak a whirl too and see which one you like better.
comment 11y ago · link · parent
No, the thing to worry about is the memory subsystem. How does the data interact with the caches? What DRAM access patterns do I have? How do I flow data as efficiently as possible?
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
Here's an example of one manufacturer and products: http://www.nibe.eu/Domestic-heatingcooling/Airwater-heat-pum...
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
Stack: C, C++, Python, Assembly, JIT compilation, Optimization, Drivers, CPU architecture, Embedded, Linux. Prefer low level, but enjoy web and app work as subtasks of larger project.
Contact: hn username at gmail.
I drive change. I can design, implement and get a team working together to navigate the journey from idea to working, shipping product. I tend towards a hands on architect type of role. I'm looking for a company with minimal bureaucracy, with responsibility for technical solutions.
comment 13y ago · link · parent
It's funny, had the author tweaked the problem just slightly to try make C++ look good by saying that the program should output sorted words instead of lines, you could have deleted the entire Line nonsense. Had the problem been to output sorted, unique words, you could have made the rather elegant:
int main(int argc, const char* argv[])
{
using input = istream_iterator<string>;
using output = ostream_iterator<string>;
ifstream inputfile(argv[1]);
ofstream outputfile(argv[2]);
set<string> words{input(inputfile), input()};
copy(words.begin(), words.end(), output(outputfile, "\n"));
}
But then again, it's not exactly in C++'s favor as a scripting language that copying words is easy, while lines is hard.comment 13y ago · link · parent
I actually did a version which did the reduction over minimum purely using SIMD and then a post step which reduced the SIMD minimums to a single scalar. It was somewhat tricky to get the index right, and in the end it turned out to not be faster (at least not for the little example of 32 objects, I imagine you would gain something on a more complex scene)
Anyway, it was a fun little exercise and it has sparked some interesting discussion. Thanks for posting the original.
comment 13y ago · link · parent
I still think that a systems programming language need to offer escape hatches, whilst striving towards ease of use in the common case. C++ has plenty of hatches, at the cost of horrific complexity.
But suppose I'm willing to pay the cost of writing my code in 5 different code paths for different processors for that extra 2-4x of performance. Very few languages offer that possibility, and most of those who do only offer to call a C library. I'm the guy stuck writing the Intel math libraries of the world, and I want something more reasonable to do it in.
comment 13y ago · link · parent
But I wouldn't say writing media and signal processing inner loops using SIMD intrinsics is uncommon. The style of optimization I illustrate is pretty common, perhaps minus the AVX code path. Most widely used video/image processing, ray tracing and other compute bound libraries will probably be SIMD optimized in some fashion (probably with different code paths for different processors). You gain 1-8x performance, which is pretty significant. It's on the same order of magnitude speedup as threading your program.
I have yet to see anyone truly and systematically trusting automatic vectorization, but perhaps there are libs out there I've missed. Anyone know of some?
comment 13y ago · link · parent
29.
On comparing languages, C++ and Go(blog.grok.se ↗)
126 points · by abelsson · 13y ago · 127 comments
comment 13y ago · link · parent
Mediatek Sweden is developing a family of configurable baseband signal processors, with a full toolchain, simulator and RTL implementation. We're looking for Python, C++ and Verilog hackers. A definite plus if you think the X86/ARM duopoly is boring and would like to work on more interesting architectures. Also a plus if you're a hardware guy or gal and have shipped asics and know about power optimization flows.
The fridge is always stocked with beer (selected by our resident beer geeks), competitive salaries, free gym. Sane and flexible working hours, 6 weeks of vacation that we actually expect you to use.
Contact me (HN username at gmail) if you want to have a chat about how things are here.