Posts tagged with hack

Comparing the PHP 7 and Hack Type Systems

After writing a couple small programs in Hack I've realized that it's not types themselves that make writing Hack enjoyable: it's the tight feedback loop Hack creates between the machine and myself. Integrating the Hack type checker into my editor means that my entire codebase is analyzed in a split second as soon as I save a file. This immediately surfaces any dumb, or subtle mistakes I made. I find myself writing code fearlessly: when I forget what a function returns, I just write code that calls it with what I think it returns. If I'm wrong, the type checker will tell me immediately. I can fix it quickly, and move on.
http://www.dmiller.io/blog/2015/4/26/comparing-the-php7-and-hack-type-systems

Read more

Join thousands of developers

Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.

No spam. Unsubscribe anytime. You can also follow me on X.

Reprogramming Super Mario World

This guy beats Super Mario World in 6 minutes. He uses the credits warp glitch to reprogram the game while playing it.

The exploit works by transferring control to sprite X-position table via the chuck eating glitch so that the game executes the X-position of sprites as if it were code. Using koopa shells, the X-position table can be filled with values which switches the game from mode 0x14 (normal level execution) to 0x1C (midway through the credits).
https://www.youtube.com/watch?v=14wqBA5Q1yc#t=24

EDIT: Today Carlsagan42 finished the game under 2 minutes.

Read more