Better HN
topnewbestaskshowjobs
Log inSign up

CountHackulus

2,246 karma · joined Feb 1, 2010 (16y ago) · 627 submissions

HTML5 Game Dev Compiler grey beard Functional programming fan guillaumecl.ca
Submissions

comment 16y ago · link · parent

How about Maemo? Flash works fine on my N900.

comment 16y ago · link · parent

They don't need to work 100%, just better than it works now.

comment 16y ago · link · parent

Look at the 3 genres of music he chose, then look at the suggestions. Just try and justify Yo-Yo Ma. Don't get me wrong, I love his work, it's just that the blogger here didn't choose classical.

comment 16y ago · link · parent

Win+D is actually toggle desktop. See what happens if you press it twice in a row.

Win+M = minimize all Win+U = utility manager

comment 16y ago · link · parent

Steve Jobs may have a public stance of hating porn on his devices, but the Apple TV sure is perfect for it. It's connected to your home theater, can stream files from your computer, and is internet connected. What more could someone watching porn want?

606.

Canada is a telecom backwater, says backer of Wind Mobile (theglobeandmail.com ↗)

8 points · by CountHackulus · 16y ago · discuss

comment 16y ago · link · parent

I find it interesting that he seems to disagree with his co-founder on what seems like a key issue moving forward.

comment 16y ago · link · parent

If you've ever written cross-platform code, especially between little and big endian machines, or even worse, different 64-bit implementations, then you know that compilers can't even come close to solving everything for you.

Cross platform code needs lots of thought and hard work. THAT is why VM languages are nice.

As for JITs, yes, they're getting much faster and much better at recognizing code to optimize. Then again, so are static compilers. But both of these technologies are slowly merging together. JITs are getting ahead of time compilation, and static compilers are getting profile directed compilations.

You just have to ask yourself, is a 40% boost in performance worth hours, possibly weeks, of rewriting code for a different platform?

comment 16y ago · link · parent

The heterogeneous nature of a data centre has really come to an interesting crossroads. If you pay attention to the mainframe world (and let's face it, nearly no one does) you might've noticed that IBM recently announced their new Z system [1] and it had an interesting feature.

Namely, it can run Z books along with POWER7 blades and x86 blades in the same (admittedly very large) box. Basically, run your compute workloads on Power, database on x86, and control on Z. Seems like a pretty good idea to me!

[1] http://www-03.ibm.com/systems/z/news/announcement/20100722_a...

comment 16y ago · link · parent

Actually, there's a few Java VMs that are made to start nearly instantly or have an option for a quick startup.

For example, [1] shows that the IBM J9 VM has a -Xquickstart option.

[1] http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index....

comment 16y ago · link · parent

Surprisingly, compilers already do much of these optimization, particularly profile directed feedback (basically a static JIT), and the mixing of high-level and low-level optimizations.

Now while, LLVM may not do this, it's far from the only compiler on the block; especially in the non-open-source world.

The IR argument is a non-argument. Certain optimizations work better with certain IRs than others, that's just the way it is. It's unlikely that there will be one to rule them all. More likely, we'll convert between them to use the optimal one.

Superoptimizers are an interesting case, it's kind of like having a database of optimality. While it may not give much speedup compared to time invested, if you're desperate for that last little bit of performance, it's a great tool. Plus it should make itself faster over time. Could even locate it in the cloud, such that a compiler send its hottest methods over to a remote machine, and it'll use its massive database of optimality to optimize it as best as possible.

Verifiable transformations are great in theory, but it's true, it's extremely hard to implement currently.

The author definitely has a point about AOT/JIT compilers being the future of optimization. Static compilers have been done to death, while dynamic compilers are still (comparatively) new and fresh.

comment 16y ago · link · parent

Interesting to note that designs can be just flat out wrong. Like a visual syntax error.

comment 16y ago · link · parent

I can't believe that no one's tried to make an Xzibit joke yet. This either shows that HNers are 2 years behind in internet memes, or have the common sense to not use them everywhere.

comment 16y ago · link · parent

This is MILES better than when I attempted to create a virtualized Oracle RAC 10g cluster. Never before have I cursed a company's name so much.

This looks downright pleasant to configure.

comment 16y ago · link · parent

Another annoying limitation is that Amazon MP3 is limited to US customers only.

This greatly annoys me as there's an album I want that's not on iTunes, but is on Amazon MP3. None of the local music stores stock it. My only choices are to either pirate the album or pay exorbitant fees and wait several weeks to import the disc.

Guess which one's easier.

comment 16y ago · link · parent

It's a good list, but there's been a few articles on here that talked about hashing and other security-related algorithms. Generally speaking, if you're implementing one, you're doing it wrong. Of course knowing about them and how they work is essential.

comment 16y ago · link · parent

Can't believe I missed that, but you're entirely correct, that second %d doesn't map to anything.

Guess loops aren't the source of ALL evil.

comment 16y ago · link · parent

I'd just like to point out that in your string example, you gain nothing by keeping that string copy short. The compiler doesn't see lines, all it sees are tokens, and what you've written there is fine for a compiler to read, but difficult for a human.

Instead of adding parentheses, try writing it like this:

  while(*dst)
  {
    *dst = *src;
    dst++;
    src++;
  }
It's instantly more readably, it's very obvious what's going on, and you've lost no performance. There's also no parentheses to add.

comment 16y ago · link · parent

As a native French speaker, I'm quite amused that several of these words are either French or have a basis in French. Seems that English has appropriated many words from other languages.

comment 16y ago · link · parent

I do see a potential problem here. In the pictures, they show a bunch of Atom CPUs soldered directly to the board. That means dire things for service. Now, if a single CPU has a a flaw, you need to replace an entire board of CPUs.

Compare this to a standard blade setup, where you could just swap out CPUs, or even an IBM System Z where you could hotswap the CPU, and service doesn't look so great.

comment 16y ago · link · parent

Believe it or not, just last night I was wishing I could use COBOL instead of C for a project. For simple read/process/write of fixed size binary records, COBOL is a dream to work with. You'd be surprised, there's still some awesome optimizing compilers being written for COBOL.

comment 16y ago · link · parent

I work on a compiler, I agree, there's some weird behaviour that's possible, but a lot of the things he's described are implementation defined. There are general conventions, but things like shifting values more than double their size is implementation defined.

If you really want to get a good handle on C, there's nothing like reading the spec.

comment 16y ago · link · parent

For anyone planning to write to their MP and up, you should watch this short TED talk on writing to public officials. It'll help you get heard.

http://www.ted.com/talks/omar_ahmad_political_change_with_pe...

comment 16y ago · link · parent

I find it interesting that IBM's JVM wasn't even mentioned in the article, yet there's an ad for IBM at the bottom of the page.

comment 16y ago · link · parent

You can also use Erlang with Nitrogen, and of course you can configure Apache to run any arbitrary executable.

comment 16y ago · link · parent

The first language I was taught at school was Pascal, and thinking back, it's probably a decent choice. The school board I was in used only macs, so VB is straight out, and C/C++ is far too complex to teach at a grade 10 level.

Basic is nice, but it lacks the explicit structure that Pascal, C/C++, and other high-level languages enforce.

I'm thinking Pascal is a good choice because it's explicit enough in its constructs to force the programmer to realize what they're doing, but not so fine-grained that you need to start thinking about memory management, pointers, and other more advanced constructs.

The skills are then easily transferable to other similar languages like C/C++, Java, C#, etc.

comment 16y ago · link · parent

I have to wonder why people are so excited about a PHP compiler when there's been an open-source one out that runs on top of the IBM Java JIT for a while. http://www.projectzero.org/
1
1718192021