Better HN
topnewbestaskshowjobs
Log inSign up

loadzero

429 karma · joined Feb 9, 2015 (11y ago) · 54 submissions

blog.loadzero.com

loadzero dot dev at gmail dot com

Submissions

comment 6y ago · link · parent

Thanks for pulling the code and trying it out, jacquesm!

That kind of feedback is gold.

I have updated the README with the correct Ubuntu package details.

I think the issue with the includes is likely to do with having both SDL1 and 2 installed, and the slightly dirty way I am pulling in the header (so it works on Mac too).

I will have a bit of a think about how best to resolve that issue, likely needs some ifdefing.

comment 6y ago · link · parent

Good question. The sound is a hardware component (synth circuit) that I haven't looked into much, because it's essentially outside the game code.

si78c is faithfully sending all the right bits to the right port, but the hardware component would have to be emulated to get it going.

The relevant code could most likely be borrowed from MAME.

comment 6y ago · link · parent

It felt like it took forever. But about 200 hours all up, over a few months.

comment 6y ago · link · parent

Yes, I ran with the original in lockstep and confirmed the same reads and writes were occurring.

comment 6y ago · link · parent

Author here.

This is a bit of a love letter to Space Invaders, and video games in general.

I started working on this as a simple emulation project, to rekindle my own passion in low level video game hacking, but then realized with a bit of care I could take it further.

So, this is not a simple clone of the game, but rather a painstaking recreation of the source code in clean, readable C code.

I wanted to make something nice that would last a while, as a tribute to the original, and hopefully function a bit like a rosetta stone for future audiences.

Enjoy.

36.

Show HN: Space Invaders in C(blog.loadzero.com ↗)

478 points · by loadzero · 6y ago · 105 comments

37.

Show HN: Space Invaders in C(blog.loadzero.com ↗)

4 points · by loadzero · 6y ago · discuss

comment 8y ago · link · parent

I didn't realize that the CSIRO had its own 2LD within the .au TLD, that's neat.

https://www.domainregistration.com.au/news/2014/1404-au-doma...

comment 9y ago · link · parent

Author here. I am guessing you mean display the parse trees for python snippets?

It wouldn't be too difficult to do in backend code, using something like https://docs.python.org/2/library/ast.html.

It might be tricky to get it to work completely in the frontend, like the demos in this article.

40.

Creating a visual map between code and its parse tree(blog.loadzero.com ↗)

2 points · by loadzero · 9y ago · discuss

41.

Show HN: MIPS disassembler in the browser(blog.loadzero.com ↗)

2 points · by loadzero · 9y ago · discuss

42.

Thoughts on preventing Cloudbleed(blog.loadzero.com ↗)

3 points · by loadzero · 9y ago · 1 comment

comment 10y ago · link · parent

A) Continuous triggers are implemented by using the logical replication features of Postgres. This means that changes are consumed from a queue and evaluated in a separate process to the rest of the system. A long running trigger will block the trigger process only.

B) We do re-use quite a bit of the standard trigger mechanisms, but we wanted to use our own evaluation context to support extra features. For example, continuous triggers can be defined on sliding windows, which require the trigger to be evaluated over multiple transformed tuples in the underlying table.

44.

Show HN: Geoloc: Fast geolocation on the command line in C++(blog.loadzero.com ↗)

8 points · by loadzero · 11y ago · discuss

45.

Show HN: Geoloc: Fast geolocation on the command line in C++(blog.loadzero.com ↗)

1 points · by loadzero · 11y ago · discuss

46.

Digging deeper into the grep segfault(blog.loadzero.com ↗)

8 points · by loadzero · 11y ago · discuss

comment 11y ago · link · parent

Thanks for the positive feedback and the contribution, I appreciate it. It's a good book :)

comment 11y ago · link · parent

Yep - I'm on 10.9.5

comment 11y ago · link · parent

Author here. Part 2 will be coming soon.

If you would like the immersive experience - try this at the mac terminal:

echo i860 | grep --color -e i860 -e i86

50.

Tracking down a segfault in grep(blog.loadzero.com ↗)

61 points · by loadzero · 11y ago · 10 comments

comment 11y ago · link · parent

Looks like a version of valgrind but for reversing purposes.

The basic block stuff reminded me of this: http://www.gtoal.com/sbt/

comment 11y ago · link · parent

I remember reading about the c65 in zzap!64 back in the day.

This (old) page has a bit more info.

http://www.floodgap.com/retrobits/ckb/secret/65.html

12