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

451.

Mr. Papf's Perpetual Motion(indian-skeptic.org ↗)

3 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

I love listening to Sussman. You can just hear the passion in his voice.

453.

Getting C++ like performance from your Java application(ibm.com ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

This is pretty much how the new F-35B (STOVL variant of the Joint Strike Fighter) works. There's a ducted fan in the middle of the plane.

http://en.wikipedia.org/wiki/F-35C#F-35B

comment 15y ago · link · parent

Sure, that works for ASCII and UTF-8, but what if I'm on an IBM System Z machine? Then everything's in EBCDIC, and that's just a nightmare.

comment 15y ago · link · parent

This is also (roughly) how profiling JIT compilers (like most JVMs) work. The method that needs the more expensive optimizations applied to it is the one that gets the most samples.

comment 15y ago · link · parent

I'm glad they're not cramming a ton of megapixels into that camera. Let's just hope they took a hint from Nokia and stuck a decent lens on it.

comment 15y ago · link · parent

This is pretty neat, but I have a few issues with it.

* In the bundle editor, that's not C, that's C++

* There's no "new from template" for C++

* The Open project dialog could be clearer

* When I type "main()" I end up with "main())"

Still, looks promising, and I'll definitely keep tabs on this.

comment 15y ago · link · parent

Just want to clear up a few things here. This article focuses entirely on the HotSpot JVM. There are other JVMs out there that support invokedynamic, and they don't all work the same way. Also saying that Java isn't a consumer of invokedynamic is only true currently and is likely to change in the future.

The more people use invokedynamic, the more the compiler people are going to look at it. Not to mention that the current way things are done (at least in JRuby), the compiler basically hits a wall in a lot of cases because it can't decide what to inline and where to get it. Invokedynamic will (with a bit of VM magic) make those optimizations a lot easier for the compiler to do.

comment 15y ago · link · parent

Interesting, so to extrapolate from this theory, we could halt and even reverse global warming by killing off tons of people. Seems obvious in hindsight.

comment 15y ago · link · parent

Whoops, that's what I get for prettying things up after copy and pasting. Thanks for pointing that out.

As for the double underscore being reserved for implementation use, this was in fact part of the compiler (well, runtime in this case) implementation, again a side-effect of copy and paste.

comment 15y ago · link · parent

My fav is one that I've actually had to use in practice when using an (arcane) platform specific builtin. It's a way to arbitrarily align variables:

   #define ALIGN(type, name, align) __ALIGN_MASK(type, name, (align - 1))
   #define __ALIGN_MASK(type, name, mask) char __##name##_buffer[sizeof(type) + mask];\
   int * name = (type *)((size_t)(__##name##_buffer + mask) & ~mask);
Then you can just use it in the code like so:

   ALIGN(int, y, 16);
And you've just declared a pointer to a 16-byte aligned int on the stack. Very useful.

comment 15y ago · link · parent

Interesting answers there. I remember doing the capacitor experiment in a first-year physics course in university. Though we were measuring mu sub 0, the permeability of free space. The formula is just reversed though.

It should be an interesting and cheap way to measure the speed of light.

comment 15y ago · link · parent

Don't look at flagpoles, the wind close to the ground is going to vary a lot more than the wind higher up where the clouds are.

comment 15y ago · link · parent

or a free EC2 instance.

comment 15y ago · link · parent

How about adding the VA.equals and VA.notequals functions? You've got all the other comparators, but it seems a shame that you don't have these.

comment 15y ago · link · parent

Alternatively you can insert this code for the median of 3 version:

   centre = (left + right) / 2;
   if VA.lt(left, centre)
     if VA.lt(centre, right)
       VA.swap(left, centre)
     else if VA.lt(left, right)
       VA.swap(left, right)
   else
     if VA.lt(centre, right)
       VA.swap(left, centre)
     else if VA.lt(left, right)
       VA.swap(left, right)

comment 15y ago · link · parent

Definitely a common effect. I remember seeing this kind of thing in the demoscene a lot of times. In fact I remember seeing a larger evolution of this recently.

What they did is used smooth particle hydrodynamics to simulate water, but then also use the text mesh as a local attractor. So the water would drip onto the invisible mesh, but then it would stick to the text just a bit more than normal allowing the words to form.

Link: http://directtovideo.wordpress.com/2011/05/03/numb-res/

comment 15y ago · link · parent

Pretty sure that the Ars staffer misunderstood the commenter. He was saying that a huge iMac like that is overkill for that work. Someone's earlier comment about getting the same work done with a Win 95 486 and WordPerfect 5.1 was about equivalent.

470.

Making the Best Use of Your Tools(carsonbrown.ca ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

This is a fantastic idea. It's like the 100-in-1 electronics kit of the embedded world. The compatibility with existing popular embedded boards is just icing on the cake.

472.

A Taste of Their Own Medicine(orgprepdaily.wordpress.com ↗)

1 points · by CountHackulus · 15y ago · discuss

473.

Missing E Developer Keeps Trying to Work With Tumblr But Tumblr Isn’t Having It(betabeat.com ↗)

1 points · by CountHackulus · 15y ago · 1 comment

474.

Some Dangerous Coding Standard Rules(embeddedgurus.com ↗)

1 points · by CountHackulus · 15y ago · discuss

comment 15y ago · link · parent

You can certainly build a computer out of legos. Or at least a Difference Engine, and what really is a better introduction to computability than making your own calculator? http://acarol.woz.org/difference_engine.html

comment 15y ago · link · parent

While I don't disagree with what you're saying, I do think that the general culture is a bit more tolerant of differences now than it was when the experiment was run.

comment 15y ago · link · parent

Or written another way, it's a weighted average of weighted averages.

478.

Atari Attacks The Few Remaining Retro Fans It Has Left(gameinformer.com ↗)

2 points · by CountHackulus · 15y ago · discuss

479.

One step forward, and fifty steps steps back for bloggers (and society).(twistimage.com ↗)

1 points · by CountHackulus · 15y ago · discuss

1
151617
21