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

421.

Do we own our Steam games?(rockpapershotgun.com ↗)

103 points · by CountHackulus · 14y ago · 59 comments

422.

Catch as catch can(theregister.co.uk ↗)

2 points · by CountHackulus · 14y ago · discuss

comment 14y ago · link · parent

Sort of. As of right now executable code is only allowed in the lower 2GB, but data is allowed anywhere. "Below the bar" I think is the term.

424.

Combining C's volatile and const Keywords(embeddedgurus.com ↗)

3 points · by CountHackulus · 14y ago · discuss

comment 14y ago · link · parent

Much in the same way the Poul Anderson story "Sam Hall" progressed. "Sam Hall" originally started as an fake record entry, but then slowly people in a rebellion started to use his name as a symbol. The decentralized nature of Anonymous lends itself well to this.

Also highly recommend the short story, really good fun.

comment 14y ago · link · parent

Well that certainly sounds reasonable. Maybe I'm just being overly cynical, but I'm wondering if there's a catch to this.

comment 14y ago · link · parent

Which if you look at the sorting visualization links at the bottom, is actually a really effective way of showing when things are very out of order, or close to in order.

comment 14y ago · link · parent

I'd just like to point out that your complaints are specific to the Oracle JVM (except for the new for() syntax obviously).

Even the collection classes can change between JVM versions. I'm not saying that they're all necessarily better, just that different versions are different. So the Dalvik or IBM J9 versions might do what you want better.

comment 14y ago · link · parent

That's one of the things I loved about my N900 when I first got it. When you slide open the shutter, you're instantly in camera mode. No waiting, no unlocking.

comment 14y ago · link · parent

In addition to that, if you're using the Intel compiler, then you can say

   #pragma ivdep
Which tells the compiler that the loop you're writing doesn't have any vector dependencies. Or -fno-fnalias to say that none of the arguments you're passing to a function are aliased.

Seems like pretty reasonable ways around the problem. Not to mention things like OpenMP.

comment 14y ago · link · parent

Interesting argument, and from my experience seems to hold true. The only counterexample I can think of is the Taj Mahal: http://www.brickset.com/detail/?Set=10189-1

This is why I always enjoyed getting larger sets, especially technic sets, as they always had rare pieces that were extremely useful for a specific function. For example, the shifter gate piece in the original supercar set: http://www.peeron.com/inv/parts/6543

comment 14y ago · link · parent

I do enjoy that this piece is so well written, gets all the points across clearly and effectively.

comment 14y ago · link · parent

Too bad it's US only. I'd love to have something email me about whenever something happens regarding my credit (for free would be best).

comment 14y ago · link · parent

The main difference between these and Project Euler is that these are far more "programming" challenges, whereas Project Euler often boils down to brute forcing a solution once you've figured out the one or two mathematical tricks to reducing the problem space.

comment 14y ago · link · parent

Something like this was done in the Cory Doctorow book Little Brother. It's surprisingly relevant to the SOPA discussion.

comment 14y ago · link · parent

This kind of thing was popular during the LEGO "dark ages" in the early 2000s but has really died out as of late. The Millenium Falcon that's being referred to has very few, if any, unique parts. LEGO has really gone back to its roots in the past 2 or 3 years, especially with the AWESOME creator series.

comment 14y ago · link · parent

From what I know of the technology proposed here, nuclear weapons aren't even possible with the fuel or byproducts. Only really dirty bombs would be possible, but I'd say that's a problem regardless of nuclear technology.

I say go for it, it's good for the environment, and good for the bottom line.

438.

Evil: An extensible vi layer for Emacs(gitorious.org ↗)

1 points · by CountHackulus · 14y ago · discuss

comment 14y ago · link · parent

Small aside, "you're talking chinese" is a French colloquialism for not understanding someone. So the quote is quite apt in this case.

comment 14y ago · link · parent

How did they choose the "500 leading developers"? This seems to be heavily skewed towards web development.

comment 14y ago · link · parent

IBM does happen to have quite a lot of patents to counter with. Having been in business for 100+ years tends to do that.

comment 14y ago · link · parent

In the JIT world, going .java->.class is not AOT. You may call it that, but it's essentially just source->source conversion.

What AOT really is, is when you first run a java program with certain flags, and some compilation starts, a special AOT version, which is usually a low optimization level which is saved to disk with some relocation markers.

This helps with startup time in subsequent runs as the compiler can just load its baseline pre-compiled classes straight into memory instead of having to do a bunch of grunt work during startup. Once things get going, the compiler can much more quickly work its way up to the higher optimization levels on the sections of code that need it.

THAT is what AOT means from a jitted language perspective.

comment 14y ago · link · parent

I'm surprised there's no calculus. Not even a basic derivative. The rest of the exam is certainly difficult to warrant a calculus question.

444.

Copyright Corruption Scandal Surrounds Anti-Piracy Campaign(torrentfreak.com ↗)

126 points · by CountHackulus · 14y ago · 7 comments

445.

Lauren Booth: I'm now a Muslim. Why all the shock and horror?(guardian.co.uk ↗)

4 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

This works, but then you have to use the mouse, and when you're done sharing, context isn't returned to what it used to be, so keyboard shorcuts (n, shift+n, j, k, l, etc...) don't work until you click on a story to focus.

Also, I can't hit l to like (maybe p to plus now?) or shift+s to share.

You can change my sharing options, you can change the look and feel. But messing with my keyboard shortcuts is tantamount to murder.

comment 15y ago · link · parent

I agree, it's essentially unusable on my netbook now.

comment 15y ago · link · parent

The G1 Garbage collector isn't certified for realtime operation. If you want a Java VM that's certified for HARD realtime, you can check out IBM's latest real time GC policy that I believe came out with IBM's Java 7.

comment 15y ago · link · parent

How does this differ from the new concurrency and parallelism constructs available in C++11?

comment 15y ago · link · parent

I don't see what the problem is here, this is very readable to me. You want to find between the beginning and end of a list called v, for a value between y < i < x. Admittedly the condition in the lambda could be better written, and the results should probably be called something other than i, but it's perfectly clear what's going on here.

Let's look at the equivalent C++98 loop:

   int i = -1;
   for(std::vector<int>::iterator iter = v.begin(); iter != v.end(); ++iter)
   {
      if(*iter > x && *iter < y)
      {
         i = *iter;
         break;
      }
   }
It's not only much more verbose, but the types need to be expressly written, and what's going on isn't immediately obvious from the function name.

No, C++ will never win a beauty contest (I'd vote for D or Haskell personally), but it's great for expressibility, and the new C++11 changes make things more concise.

1
141516
21