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 13y ago · link · parent

In iOS5, css transforms worked great, a bug was introduced in iOS6 crippling the performance, it still hasn't been fixed in iOS7. I'm not comparing to Android, I'm just saying that a huge mobile market is basically unavailable with this feature.

comment 13y ago · link · parent

Seems ripe for geurilla advertisement.

comment 13y ago · link · parent

Great, now all Apple has to do is fix their performance bug with CSS transforms on iOS and I can consider using these.

comment 13y ago · link · parent

It's the only way I could explain #fuckthelaw being banned but #fuckthepolice not being on that list.

comment 13y ago · link · parent

I wonder if the SIMD part of this could be integrated into D's compile time regex support. Would be neat to see.

comment 13y ago · link · parent

From experience at IBM, it was just as terrible there.

comment 13y ago · link · parent

That article is from years ago, and this current article is based on a paper published a few weeks ago. Science advances.

comment 13y ago · link · parent

Well not literally no, but the algorithm is certainly applicable.

comment 13y ago · link · parent

There's any number of ways this could be improved. Better layout, better textures, different building types, stochastic city planning/zoning. But this is a nice starting place that shows off a few easy techniques. Probably good enough to use in a JS1K demo.

comment 13y ago · link · parent

Just look at this glorious echo chamber.

comment 13y ago · link · parent

Decently fast on Firefox 24a2.

comment 13y ago · link · parent

When I was in university I had a similar experience for one of my coop jobs. I got hired to do testing, mostly print testing, and managed to automate my full day's work into about 2 hours with diff and grep. Then the company acquired another very large company, and my entire team got either laid off or reshuffled. My entire row of cubicles was empty. My manager had no clue what to do with me, so had me make a "web event portal" where he could track the latest events in certain places. It was a nice 2 weeks where I learned SQL and JSP, but I was still low on work.

I ended up writing a rasterizer from scratch, then writing a text mode demo, and also using my used paper (print testing remember?) to make progressively more complex origami. That was the one coop job I wasn't sad about leaving, on my last day I just handed the person who used to be my manager my pass and walked out.

comment 13y ago · link · parent

Java does this a whole bunch, it's decently easy for compiler writers to implement and it gets a good speedup on most benchmarks.

comment 13y ago · link · parent

I used to work on compilers, C/C++, COBOL, PL/I, Java, a whole bunch of them. This is actually somewhat similar to my favorite bug I encountered while implementing some stack mapping optimizations.

The compiler itself was crashing out while compiling a SPEC2000 test case (perlbmk I think?) with an illegal instruction. This was already quite suspect since it was branching to somewhere WAY outside of where the program usually resides, and the compiler was compiled with a compiler that's known to be nearly rock solid. I got quite lucky in that I managed to find one level of the stack trace, and it pointed me towards sprintf. Using some awesome tools some coworkers and I had developed over the years, I managed to narrow down the test case to about 5 lines of code that involved long doubles. So I grepped the compiler source code for sprintf, set breakpoints on the ones that I thought would get called, and just kept stepping through them until it finally crashed hard. Then I just reran, and stopped at the final breakpoint and started stepping through the assembly. What I saw happen just blew my mind, the code was just a simple:

sprintf(buffer, "fold: %Lf", result);

But what was happening is that the buffer was only 200 characters long, and the long double was roughly 1000 characters long. It was just a buffer overflow, that was so long it ended up overwriting the register save area, and the return address pointer. So the sprintf completed, but when it went to branch back, it loaded some characters instead of the return address. Just hilarious, and good thing I was working on stack mapping and was familiar with the stack layout of this linkage convention.

The solution of course was to just use snprintf instead. No sorry, that's wrong since that platform doesn't have an snprintf (yay mainframes!), and so I had to use %0.6Lg instead of %Lf.

Compilers are fun!

comment 13y ago · link · parent

So like Fortress, X10, Chapel, UPC, or (arguably) IBM InfoSphere Streams.

comment 13y ago · link · parent

Yup, CSS animations are easier to both write and use, and are super fast. Except on iOS6+ where a long-standing bug has made them nearly unusably slow.

comment 13y ago · link · parent

This is awesome, and would be even more awesome if you supported other countries.

comment 13y ago · link · parent

For me, the only issue with AirBnB is that they want me to upload a picture of my passport. I don't care who's on the other end, you're not getting a picture of my passport.

Because of this requirement I had to cancel my nice apartment reservation in Boston only to stay in a far more expensive hotel. But at least they didn't keep a picture of my passport on file.

289.

This 19-Year-Old Self-Taught Developer Will Not Be Stopped(fastcoexist.com ↗)

4 points · by CountHackulus · 13y ago · discuss

comment 13y ago · link · parent

And yet the CSS animation performance bug persists in iOS7.

comment 13y ago · link · parent

Exactly, this is the first ever 5GHz x86 chip. The title is factually inaccurate.

comment 13y ago · link · parent

I seem to remember someone doing this for the original xbox and getting up to the halo "start game" screen. That was probably easier due to it being roughly the same architecture. This is something else quite different and really neat.

293.

The Gospel of Consumption(orionmagazine.org ↗)

1 points · by CountHackulus · 13y ago · discuss

comment 13y ago · link · parent

Every compiler has bugs. All of them, even ICC, xlC, and other heavyweight ones. The fact that Go has a bug in the GC on a 32-bit machine is hardly surprising.

comment 13y ago · link · parent

Lots of really interesting things here. The most valuable is definitely having some reference implementations.

296.

Hammer Quest(mchammerquest.com ↗)

2 points · by CountHackulus · 13y ago · discuss

comment 13y ago · link · parent

Go with chicken thighs instead. It's cheaper and better tasting. Just takes a tiny bit longer to cook.

comment 13y ago · link · parent

You're reading too much into this, he is literally holding them together with magnets.

299.

Creating Flood Effects in Uncharted 3(twvideo01.ubm-us.net ↗)

2 points · by CountHackulus · 13y ago · discuss

300.

Mech Force (HTML5 Game) Post Mortem(gamasutra.com ↗)

1 points · by CountHackulus · 13y ago · discuss

1
91011
21