Better HN
topnewbestaskshowjobs
Log inSign up

strags

457 karma · joined Apr 9, 2010 (16y ago) · 99 submissions

Submissions

comment 6mo ago · link · parent

Authentication is an interesting example - it sounds like might be the easiest component to remove. But without authentication, you don't have identity. And without identity you have no viable notion of accounts - and without accounts you don't have persistence, entitlements, progression, achievements, or any of the meta aspects that are deeply entwined with modern games. Not to mention how extensively identity ties into Matchmaking - another fairly complex backend service.

This legislation might be more persuasive if it were tied to a reasonable time limit, but I don't see anything of that nature in the text. An obligation to support or refund customers that lasts for a fair timespan (ie. preventing rugpulls) is far less onerous than an obligation to release your code to satisfy someone's nostalgia.

comment 6mo ago · link · parent

> That way the community has the opportunity to run their own servers if they want to.

That might be fine for very small titles - where the "game server" is a relatively simple binary that can be run anywhere. Larger titles depend on a huge amount of infrastructure, for authentication, progression, matchmaking, etc... It's not feasible to open-source all of that, especially given that it may well still be in use for more recent titles.

comment 3y ago · link · parent

I remember that PIC project. I don't know if source was ever released, but I recall a lot of folks being very dubious about the claims made.

Quote: The PIC has 1024 words (12-bits) of program ROM, ~256 bytes contain a hand-crafted RFC1122-compliant implementation of TCP/IP including.

HTTP/1.0 and i2c eeprom Filesystem, using 3 to 99 instructions. TCP and UDP protocol stack, using 70 to 99 instructions. ICMP [supports upto ping -s 11], using upto 14 instructions. IP - Internet Protocol, v4, using 68 to 77 instructions. SLIP - Serial Line IP packetisation, about 76 inst Fully buffered UART, upto 115200 bps, using 38 to 56 instructions. Operating system: RTOS with Rate Monotonic Analysis, using 3 to 15 instructions.

comment 6y ago · link · parent

Yeah, this is absolutely true, but we don't really like to impose a rule regarding which editor(s) people use. Most of our workflow is Windows-based.

comment 6y ago · link · parent

The problem with shebangs that I really want to solve is that I often need to edit files on a Windows machine, and then try to run the resulting CR/LF scripts on a Linux machine using a shared filesystem. (Docker, WSL, Vagrant etc...).

I'd like to invoke them with just (eg.) ./dostuff.py - Python, Ruby etc... have absolutely no problem running files containing Win-style line-endings. The only issue is that /usr/bin/env complains that it can't find (eg.) "python3\n".

Yes, I know I could convert these files with dos2unix, and I also know that I can just invoke the interpreter explicitly - but I'm lazy, and this seems like such a trivial thing to solve that I can't believe it's not been done already.

I've taken to actually recompiling /usr/bin/env to strip trailing whitespace from the executable name - but there must be a better solution.

comment 6y ago · link · parent

From personal experience, I've always had better results from Simulated Annealing than Genetic Programming. I hasten to point out that it's entirely possible I've been doing GP poorly - but part of the problem seems to me that GP has so many more knobs/dials/parameters that need to be tweaked correctly in order to yield good results.

comment 6y ago · link · parent

Curious as to why they'd base this on AngelScript (which I had not heard of before today) instead of a more widespread language like Python?

comment 6y ago · link · parent

Cost and Latency.

My team and I run the servers for a number of very big videogames. For a high-cpu workload, if you look around at static on-prem hosting and actually do some real performance bencharking, you will find that cloud machines - though convenient - generally cost at least 2x as much per unit performance. Not only that, but cloud will absolutely gouge you on egress bandwidth - leading to a cost multiplier that's closer to 4x, depending on the balance between compute and outbound bandwidth.

That's not to say we don't use the cloud - in fact we use it extensively.

Since you have to pay for static capacity 24/7 - even when your regional players are asleep and the machines are idle, there are some gains to be had by using the right blend of static/elastic - don't plan to cover peaks with 100% static - and spin up the elastic machines when your static capacity is fully consumed. This holds true for anything that results in more usage - a busy weekend, an in-game event, a new piece of downloadable content, etc... It's also a great way to deal with not knowing exactly how many players are going to show up on day 1.

Regarding latency, we have machines in many smaller datacenters around the world. We can generally get players far closer to one of our machines than to AWS/GCP/Azure, resulting in better in-game ping, which is super important to us. This will change over time as more and more cloud DCs spring up, but for now we're pretty happy with the blend.

comment 6y ago · link · parent

That is awesome! The retro box is fantastic.

I discovered that my son (17 months old at the time) loves to mess with stereo controls. So I bought a few rotary encoders and neo-pixel rings - build a wooden enclosure with a plastic faceplate, and wrote some code to generate fancy light and audio effects when he turns/clicks the knobs. He loved it. We call it the "Max Distractor".

https://www.youtube.com/watch?v=xtE8oE9GOsM

Inside it's just a RPi. One of these days I really need to make it do something more fancy.

comment 6y ago · link · parent

I recently needed to encode a 32-bit value into something easy for QA folks to remember and report. I opted for 3 words out of an 11-bit (2048 entry) dictionary of commonly used words.

How to build the dictionary? Well, in order to determine the most commonly used English words, I downloaded a bunch of free texts from Project Gutenberg, and did some simple filtering - nothing less than 5 letters, no duplication of singular + plural, etc...

A valuable lesson that I learned during this process is that when your corpus includes older english texts, you should always give your final list a visual once-over and apply some judicious manual filtering. I'm looking at you, "The Adventures of Tom Sawyer". (And, to a lesser extent, Moby Dick).

comment 6y ago · link · parent

I have a Sonos that came with my house. It's actually the least of my worries.

The house was built about 10 years ago with what (I presume) was a state-of-the-art system at the time - an "AudioAccess WHEN" system. It works fine - there are keypads and speakers in every room, and I can pipe audio from the Sonos (or an Airplay receiver) to anywhere.

It's a weird topology, however - the speakers in each room are wired to the keypads (which is where the amps live). Each keypad has a power connection, and some kind of (presumably proprietary) Cat-5 connection to a central hub. The hub in turn is connected via Cat-5 to a head unit with FM receiver, CD/AUX inputs, etc...

When we moved into the house, the head unit wasn't working - it refused to establish a connection to the hub. I managed to track down a working tech support phone number, only to hear that they don't make this system any more, and that the head units often fail in this way. I managed to find what may have been the last replacement head unit in existence on Ebay - bought it, and fortunately everything started working!

I am, however, dreading the day when it inevitably dies. Since the speaker wires go to the keypad amps, and not to the wiring closet (where the hubs live), I'm not sure what I could replace it with - beyond re-running new speaker wire to a completely new system in the wiring closet.

comment 7y ago · link · parent

This is awesome. I now have Guns'n'Roses playing in my office, and Axl Rose is a faint voice coming from the garage.

comment 7y ago · link · parent

This one is fascinating - especially the slides from the JavaOne presentation. It JITs heavily-used R3000 blocks into Java bytecode, which is then JITted by the Java interpreter. And he did it 14 years ago!

comment 7y ago · link · parent

It's actually quite a bit louder than this now. Also, the lights aren't quite as infant-retina-searingly-bright as the camera would have you believe.

https://www.youtube.com/watch?v=xtE8oE9GOsM

Currently it's still running my test code, which just lets him mess with volume/pan/pitch. I need to get around to writing something a bit fancier.

Tech deets: It's just a RPi3 with most of the stuff written in Python. I tried to get a bunch of Python audio libs working, but gave up and wrote my own C++ module for sample mixing. The NeoPixel rings are driven via the SPI output, and the rotary encoders/switches are just hooked up to random GPIOs.

comment 7y ago · link · parent

I discovered that my 17-month old son loves to mess with stereo controls. So I bought a few rotary encoders and neo-pixel rings - build a wooden enclosure with a plastic faceplate, and wrote some code to generate fancy light and audio effects when he turns/clicks the knobs. He loves it.

comment 7y ago · link · parent

Take a look at HJSON.

comment 7y ago · link · parent

Switch your parsers to HJSON, and never look back :)

comment 7y ago · link · parent

HSON ( https://hjson.org/ ) addresses a lot of this. Just allowing trailing commas and adding comments reduces 90% of the friction involved.

comment 8y ago · link · parent

https://youtu.be/ITbqTl8pTMs?t=200

Err... were these commands meant to be obfuscated the whole time?

comment 9y ago · link · parent

We had to shift focus to the PS3 project, which needed everyone's full attention.

comment 9y ago · link · parent

Yeah, the runtime for GOAL was much closer to C/C++ than LISP. The pre-processor was pretty much a full Scheme implementation, and had all kinds of dynamic cons cell allocations and garbage collection, but not the generated code itself.

(In fact, C and GOAL code almost used the same ABI. IIRC, GOAL always had the GP(?) register pointing at the symbol table for fast access, but gcc MIPS code expected it to be something else. If you wanted to be able to call back and forth, you had to write tiny shim functions).

comment 9y ago · link · parent

I know of at least a couple of ex-dogs who lurk around here. The article's pretty much correct, if memory serves.

I started at ND in 2004, around the tail-end of Jak 3. After Andy had left, I picked up the Goal compiler, and hacked it around to generate code for the PSP. After about a week or two, we had the kernel booting, and hot-patching working. We built a whole engine that looked amazing, but unfortunately the project was shelved. Still, it was some of the most fun I've had in my career.

comment 9y ago · link · parent

"GOAL never had a source-line debugger, as far as I know, although there's no reason it couldn't given some effort to write one."

Actually, it did. IIRC, the debug state required for converting run-time addresses to source lines was persisted in the compiler (which was a REPL, not a one-shot process like C), rather than exported in the form of symbols. The interface was pretty sketchy, but I'd say it was about as usable as GDB. You could set breakpoints, inspect registers, etc...

A lot of debugging was "live" though - since all the code was hot-loadable, you could just insert a debug print in the middle of a function on the fly. It was a really nice, iterative way to work.

comment 10y ago · link · parent

I used to have a favorable opinion of Microchip, until their patent case against Scenix.

http://www.thefreelibrary.com/Court+Rules+for+Scenix+Semicon...

Featuring such fabulous claims as:

-- Having a number of I/O pins that is less than the instruction word size; the SX Series 12-bit instruction word is clearly smaller than its number of I/O pins.

comment 10y ago · link · parent

I added some copy-protection to a Nintendo 64 game once. If the anti-piracy checks ever triggered, the game would do nothing at first - but after a few minutes, the frame-rate would ever-so-slowly start to get progressively worse and worse until it was unplayable. I'd like to think that I pissed at least a few people off.

comment 11y ago · link · parent

We evolved packaging systems for a reason - they provide a standardized way to manage dependencies, provide clean uninstalls, etc... Having a shellscript pooping files arbitrarily into the filesystem is so 90's.

Seriously - you pretty much just have to make a .dep and a .rpm and you're covered. Is that so hard?

comment 11y ago · link · parent

I've always wondered about this.

Wikipedia says ( http://en.wikipedia.org/wiki/RSA_(cryptosystem) ): "When m is not relatively prime to n, the argument just given is invalid. This is highly improbable (only a proportion of 1/p + 1/q − 1/(pq) numbers have this property), but even in this case the desired congruence is still true. Either m ≡ 0 (mod p) or m ≡ 0 (mod q), and these cases can be treated using the previous proof.".

I'm not sure I follow 100% - perhaps someone smarter can explain.

comment 11y ago · link · parent

I found this extraordinarily helpful:

http://www2.physics.umd.edu/~yakovenk/teaching/Lorentz.pdf

The Lorentz transform allows you to calculate exactly how time/distance differ between two reference frames.

The above link derives the transform from first principles - assuming only spatial symmetry and the invariance of the speed of light in different reference frames. There are other derivations, but I found this one the most straightforward.

29.

Netgear's security video monitoring service broken for 11 days and counting(my.vuezone.com ↗)

1 points · by strags · 11y ago · discuss

comment 11y ago · link · parent

> Of 12224 players, just 182 passed the hardest level. The firm will get in touch with these elite players and help place them with one of their clients, who pay Starfighter a fee.

As player #181 out of those #182, I'm excited :)

1234