HNHacker News
TopNewBestAskShowJobs

codedivine

1,401 karma · joined December 23, 2008

submissionscomments
codedivine··on Show HN: A simple memory bandwidth benchmark for Android
It is a simple memory bandwidth benchmark application for Android. Simply install, press "Run" and it will give you a score for achievable memory bandwidth.

Alternately, you can try out various settings such as number of threads. You can also run the "Misc" tests which are a variation of the STREAM benchmarks. The "Simple" simply tests the memcpy performance.

edit: Some scores. 1.25 GB/s on Samsung Hummingbird processor. 1.8GB/s on the previous-gen dual-core Snapdragon.

codedivine··on AMD deal brings Android apps to Windows 8
Yes, same with my NDK based apps though in my case I have only compiled for x86 and ARMv7-A. About MIPS, is there any MIPS based hardware with Play store access out there that we need to worry about?

Btw you may want to know that there is a bug in 4.0.3 that sometimes loads armeabi code instead of armv7-a code on some ARMv7 systems like HTC One S.

codedivine··on Preliminary analysis of a floating-point benchmark on ARM processors
Thanks. Good to know it is consistent with what other users reported to me :)
codedivine··on Cling: Running C++ in an interpreter
Well, for anyone interested in Cling, check out this Google tech talk: http://www.youtube.com/watch?v=f9Xfh8pv3Fs

This is a CERN project and it uses Clang from the LLVM project. The idea is simple: use the clang to generate LLVM and then use LLVM just-in-time compiler.

codedivine··on An Unexpected Ass Kicking
No discussion about this?

when people use iPads they end up just using technology to consume things instead of making things. With a computer you can make things. You can code, you can make things and create things that have never before existed and do things that have never been done before.

I think closed devices are really a step backwards. I learnt programming (and a whole lot more, like mathematics and logic), when I picked up a computer as a kid and discovered Python and started hacking around. I could look around for tutorials, download code or try out code from books and nobody stopped me.

On a somewhat similar vein, I am also sad that desktops are slowly going away. I learnt so much more about computers (and how it is not magic) by building my own.

I think something needs to be said about systems that allow you to explore and hack around for the fun of it.

codedivine··on How low (power) can you go?
I think the assumption that Moore's law, or even Koomey's law, is going to hold for another two decades is wildly optimistic. I would expect a taper off much sooner, perhaps even this decade.

The physics and the economics of smaller process nodes is becoming harder and harder, to the point where anything beyond 10nm or so looks extremely difficult.

codedivine··on Nokia Reportedly Selling Off Qt
Well Qt is simply a C++ API and as such can become a standard part of the Android NDK if Google chooses.
codedivine··on Nokia Reportedly Selling Off Qt
Its not "yet another integration", Qt is already the base component of their Cascades framework which is RIM's preferred way of building BB10 apps.
codedivine··on Nokia Reportedly Selling Off Qt
Well Qt doesn't require X11. Qt's backends are actually VERY flexible, essentially all you need to do is provide it with a 2D drawing surface in most cases.

There is already an Android port of Qt in progress here, with a lot of things (including Qt Quick and QWidgets) already working: http://sourceforge.net/p/necessitas/home/necessitas/ Several apps using Qt have already been published in Google Play.

codedivine··on Is C/C++ worth it?
Well, two points:

1. Using raw pointers as opposed to vectors gives 2x the performance on my machine.

2. This is a microbenchmark with extremely simple array indexing pattern. JVMs can optimize away the array bounds checks penalty in this case but those become hard to do once your access patterns become anything other than "i" or "i-1". For example, even more general linear subscripts are hard to correctly optimize for array bounds checks, let alone anything non-linear. How do I know? Compiler researcher here :)

However, still impressive to see JVMs advance.

codedivine··on Ask HN: Why is there no stopping Apple's monopoly of tablet/phone's browsers?
True, but bear in mind that third-party apps still have limitations such as no JIT compilation, that hurt the JS performance of third-party browsers. Safari does not have this limitation which gives it an unfair advantage.
codedivine··on Qt 5 and Android
Qt 5 work on Android looks to be highly experimental at this stage. You should look at Necessitas project. Qt 4.8 works fine for the most part, though apps that do 3D work through OpenGL don't always work due to limitations in Android GL stack. Non-OpenGL apps should work fine with several Qt apps that I know of in Google Play already.
codedivine··on Qt 5 and Android
Qt (especially Qt 5) is one of the most portable toolkits out there, its almost like Webkit in that respect. Lot of excellent work has been done in Qt 5 (and Qt 4.8) to make it easy to port to any platform with minimal dependencies. It already works on Windows (albeit Win32, not WinRT), Linux (X11, Wayland as well as almost pure Qt), OSX, QNX.

Sure, it is still not a one-click task, but that can never be the case. I think Qt has a bright future simply because it is essentially unkillable at this point. (Open-source licensing, open governance already in place, highly portable).

codedivine··on Show HN: My HTML5 animation app now supports WebGL
Very cool! About your video demo, you should mention on the page that it is not just a pre-rendered video, but actually THE live demo itself :D

Took me a while to realize that you can actually apply effects to the video element!

codedivine··on If you were involved in the OpenGL ES specification, you are an idiot
Much respect to JWZ, but I don't agree here. I am not even sure what to say, except that he is wrong, so I will just leave it there. And no, I was not involved in anyway with GL ES specification.
codedivine··on Half-Life 2 Performance: Mac vs PC
Sorry everyone, didn't notice it was written two years ago :(
codedivine··on Sorry, Young Man, You're Not the Most Important Demographic in Tech
I wonder if it is true only in geographies like the USA or Canada, or whether it holds true in countries like India which have a much younger population?
codedivine··on Orange San Diego: Intel brings the x86 vs. ARM smartphone war to Europe
ARM are completely dominant .. currently. If Intel does manage to execute on their roadmap, then I wouldn't be so sure.
codedivine··on Workplace experiments: A month to yourself
Most of their products are web-based with paid subscriptions.
codedivine··on RIM to cut 40% of workforce as another top exec resigns
As a sidenote, all the cheering and celebration that goes on in the techpress when a company dies is somewhat disgusting. I don't understand why a large section of tech industry wants RIM or Nokia etc to fail. I would rather them see them succeed, see them build something cool and have more and fun things to play with.

edit: I think we can safely conclude that hackers are about as human and as fallible as any other group. We have our own fashions and our own tabloids.

codedivine··on RIM to cut 40% of workforce as another top exec resigns
Well, people are too quick to jump on any stories blasting RIM nowadays. We should rename HN to "Questionable Hacker Rumors".

For one, it is a rumor. Apple Insider isn't exactly known for well placed sources inside RIM.

Second, even if we were to take this at face value, read the text: "The layoffs will affect the company's legal, marketing, sales, operations, and human resources divisions, a source said." Not that engineering isn't mentioned. That is a good cutting of cruft.

codedivine··on How a CPU works
No mention of JIT compilation of Java either.
codedivine··on How a CPU works
This post is not worth bothering with. It is a really simplistic world-view, with some errors along the way too. Certainly not suitable for HN crowd.
codedivine··on LLVM Adds Support for Nvidia GPUs
This was already discussed at length on HN on previous posts such as http://news.ycombinator.com/item?id=3949899 (77 points at the time of writing, posted 4 days ago).
codedivine··on FYI: No JIT on Windows 8 for ARM
Actually no jit for windows metro apps on x86/64 either
codedivine··on NVIDIA Announces Open-Source CUDA Compiler
No. It does not generate GPU binaries. It generates "PTX", which is a pseudo-assembler format. You then feed the PTX to Nvidia driver to generate the actual binary. AFAIK the actual ISA and binary formats are not openly (officially) documented.
codedivine··on Nokia Shareholder Meeting - That the Future is Far Worse than we Thought
Here is a different perspective from another attendee: http://mynokiablog.com/2012/05/04/mnb-reader-generated-fact-...

I must say I am a little disappointed that rants like these are now on HN front page.

codedivine··on Apple TV "single core" A5 actually has two cores, one is off
And of course GPU vendors also employ similar techniques. It is not uncommon to see the same chip in multiple models, with lower-end models with parts of the chip disabled either due to defects or for product differentiation.
codedivine··on WebGL Stats
"RimOs: 100%" I do love the great WebGL support on the Playbook browser :)
codedivine··on Edit scheme on your iPad via the parse tree: Lisping launched
Yes. 1st restriction above is more for business reasons, so that there are no ways to circumvent the app store, while 2nd is a technical restriction on 3rd party apps for security purposes. Apple apps (like Safari) can obviously do JIT compilation.

However, I speculate even the 2nd restriction is partly for business reasons because it prevents some third-party toolkits (such as those compiling to LLVM) from achieving high performance. You might remember that Adobe was compiling Flash to LLVM to allow devs to port their Flash apps to iOS, but since LLVM cannot do proper JIT compilation on iOS, it will reduce performance.

FWIW: WinRT imposes both the restrictions above. Android technically doesn't impose either for sideloaded apps. But if you want to distribute app through Google Play, the 1st restriction is indeed imposed.

Page 1 of 7Next →