Better HN
topnewbestaskshowjobs
Log inSign up

phoboslab

5,828 karma · joined Feb 16, 2010 (16y ago) · 420 submissions

X: https://x.com/phoboslab

Blog: https://phoboslab.org/

Submissions

91.

The Vostochny Cosmodrome: Launch of the Soyuz-2.1a Launch Vehicle(gelio.livejournal.com ↗)

2 points · by phoboslab · 7y ago · discuss

comment 7y ago · link · parent

So what stops me from abusing Cloudflare's gateway as a free CDN for petabytes of traffic? There has to be a catch?

Edit: found it. https://www.reddit.com/r/ipfs/comments/al8emd/cloudflare_ban...

93.

Wiz: A high-level assembly language for homebrew software and retro games(github.com ↗)

3 points · by phoboslab · 7y ago · discuss

comment 7y ago · link · parent

IIRC the NES PPU only supports one background layer. You can just change the scroll position mid-frame to give it the illusion of multiple background layers.

See here for some clever examples of this technique. Everything that's overlapping is done with sprites:

https://youtu.be/ZGyFQ9aRp_U?t=579

comment 7y ago · link · parent

The 2015 game SOMA[1] paints a far darker picture of precisely this topic: a brain donated to research. It really explores this in depth. If you're remotely interested in games I can only recommend it.

[1] https://www.somagame.com/

comment 7y ago · link · parent

BPS.space is attempting it.

Test Launch: https://www.youtube.com/watch?v=QQt-9SSJ51c

Test Landing: https://www.youtube.com/watch?v=lXy-x6lkQvQ

97.

Show HN: Play Connect 4 against the other half of the internet(foursnet.com ↗)

3 points · by phoboslab · 7y ago · discuss

comment 7y ago · link · parent

Ha, didn't expect to find my own comment there.

I also mentioned selling jQuery plugins (remember jQuery?) and advertising my own game engine (now free) in the thread. Feels like such a long time ago.

Gratz for pulling it off, Sahil!

comment 7y ago · link · parent

Wider columns are harder to read. That's why newspapers and magazines typically divide a page into slimmer columns.

https://baymard.com/blog/line-length-readability

comment 8y ago · link · parent

Oh, so the physical size on the die, not the size in bytes. That makes sense!

comment 8y ago · link · parent

> Each of the 2-8 main CPU cores (...) has its own private cache (bigger than most computers’ RAM up to even recently)

That sounds odd. I take it the author is not talking about the L1, L2 L3 caches, as they are typically only a few MB in size? So what is meant by this statement?

comment 8y ago · link · parent

Just a friendly reminder that AWS pricing is still insanely high compared to dedicated bare metal servers. On AWS you'd pay around $1500/mo for 24 cores ("m5a.12xlarge")[1] while e.g. Hetzner offers a 24 core AMD bare metal server for $190/mo[2].

Also consider that on AWS you pay for traffic on top of that; prices for which is even more insane. 100TB, while free with Hetzner, would cost you somewhere around $9000 on AWS.

[1] https://aws.amazon.com/ec2/pricing/on-demand/

[2] https://www.hetzner.de/dedicated-rootserver/matrix-ax

103.

How to match “A B C” where A+B=C: The Beast Reborn(drregex.com ↗)

2 points · by phoboslab · 8y ago · discuss

comment 8y ago · link · parent

Should be fixed with https://github.com/phoboslab/underrun/commit/2477c5a45f5be4d...

Rolling back X and Z when any collision occurs would prevent you from "hugging" (i.e. sliding along) walls. The problem was that a near corner collision wasn't correctly detected when the player didn't collide in X direction in the last frame (last_x) but does collide in the current frame (t.x), allowing the player to move into the corner in Y direction.

Thanks!

105.

The Making of Underrun – A WebGL Shooter in 13kb of JavaScript(phoboslab.org ↗)

434 points · by phoboslab · 8y ago · 37 comments

comment 8y ago · link · parent

It only worked because the Impact community had people like you. Thank you so much <3

comment 8y ago · link · parent

> Bandwidth at AWS costs about 50 times as much as with Hetzner for example.

It's actually closer to 70x

Hetzner: 1.25 USD per TB (after 30 TB free per server) [1]

AWS: 90 USD per TB [2]

So, 100 TB at Hetzner will cost you 125 USD (not counting the 30 TB free). You would pay 9000 USD at AWS.

[1] https://wiki.hetzner.de/index.php/Traffic/en

[2] https://aws.amazon.com/ec2/pricing/on-demand/

108.

RPCS3 begins to emulate several awaited AAA exclusives(rpcs3.net ↗)

2 points · by phoboslab · 9y ago · discuss

comment 9y ago · link · parent

I just tried it, but it simply hangs on connect. After ctrl+c it quits with "Connect to 127.0.0.1:11211 failed.".

Doing `echo "stats" | nc 127.0.0.1 11211` on the console returns the current memcached stats (and keeps the connection open). So I think I have the correct host/port :)

Edit: I think I found the issue: https://github.com/hyperia-sk/memcache-info/issues/1

comment 9y ago · link · parent

The result is dependent on your Browser. This library uses the Browser's native `ctx.toDataURL('image/jpeg', quality)` method to re-encode the image. The actual compression algorithm is not implemented in JavaScript.

comment 9y ago · link · parent

As I understand it, this library draws the image into a Canvas to then re-compress the Canvas' via the Browser's native `toDataURL('image/jpeg', quality);`. You can optionally specify a width/height to downscale the image.

Imho the readme needs to state what the library actually does. E.g.

"This takes a user image from a file input, optionally resizes it, and returns a JPEG, PNG or WebP as a Blob, ready to upload."

comment 9y ago · link · parent

I'm hosting ztype on the same server as all my other personal sites (http://phoboslab.org, http://impactjs.com and a few more) and pay 50€/mo for everything.

The project with the 14m visits/mo generated 700tb of traffic and required half a dozen servers. Cost was around $2000/mo with traffic being the most expensive part. (I complained about traffic costs with cloud hosters a while back: https://news.ycombinator.com/item?id=11301085)

comment 9y ago · link · parent

Build a community site and wait for 9 years. I'm not joking. The first 6 years saw maybe 2k visits/mo.

comment 9y ago · link · parent

I make about $600/mo pretty consistently with a typing game (http://zty.pe) - about 200k visits/mo.

I once managed another project that had about 14m visits/mo and made a meager $3000. Bad target demographic.

comment 9y ago · link · parent

http://jsmpeg.com/ work nicely in Safari.

116.

Basic 2D Rasterization(magcius.github.io ↗)

3 points · by phoboslab · 9y ago · 2 comments

comment 9y ago · link · parent

Almost true. Even Microsoft's Edge supports Opus now, but Safari still does not.

comment 9y ago · link · parent

Interesting clip from Good Hair: https://www.youtube.com/watch?v=vCEX34-1o6M
12345
14