Hacker Newsnew | past | comments | ask | show | jobs | submit | more YesBox's commentslogin

This year I've been diving into Game dev books and Harry Potter fan fiction. There's a lot of great reads out there. I assume having an entire world built for you removes a lot of the heavy lifting (as a writer).

GameDev:

- The Masters of Doom

- The Doom Guy

- Play Nice

- Press Reset

- Blood, Sweat, and Pixels

- Console Wars

- Ask Iwata

- Embed with Games

HP Fanfic:

- All The Young Dudes (by MsKingBean89) [student life of the Marauders]

- Grey Space (by noaacat) [Pre Hogwarts. Focuses on parental abuse. One scene I'll never forget (paraphrasing) is when another student at school notices Harry's bruises, slides up her sleeve, and implies she slipped too]

- Just started the Glasslight series (noaacat).

I also reread the entire Harry Potter series, and revisited a handful of Redwall books. I find it interesting how I loved RW as a kid/teen, was bored out of my mind with it in my 20s, and now I love it again.


Shareware Heroes is worth checking out, if you liked Masters of Doom.


Thanks, haven’t heard of this one!


Every time I think about EVs, I become filled with dread thinking about what will happen if an area loses power for an extended period of time. I used to live in an area that had transformers blow from rain showers.

At least you could hook up a generator to pump gas at a gas station.

:/ Life's about trade offs.

Edit: Whoops.. Im not against EVs to be clear. But from a safety POV, having two different energy sources is safer than having one. Im not sure if you'll understand this if you haven't lived in a very snowy state.


You could also flip that and talk about the risks of when your gasoline supply get shut down due to some event. With an EV stack you can generate your power locally and add resilience that way.


That's why Vehicle to the Grid / Home is so exciting. Your multi-kWh car battery can power your home for several days.

https://carnewschina.com/2024/12/05/byd-struck-deal-with-jap...


my area lost power for about 3 days last week and I ran all of my house's critical systems from my EV. it was great - silent, unlike the old generator, and not counting the sunk cost of the car, extremely cheap. Cost maybe $5 in electricity to keep the furnace, refrigerator/freezer, and internet on for 3 days, contrasted with probably $50 in gasoline for a similar amount of time.

If the outage had been longer, I could have made a half-hour trip to an area that had working EV fast chargers and come back with another 5-6 days of power for the house.


How expensive is the setup to tie in your vehicle into a house grid? Or can it be something as crude as running extension cables to plug into a powerstrip attached to the car?


I did it cheap - I just ran extension cables from my car (previously from a generator). I have a manual transfer switch at my furnace to safely switch between utility power and extension cable power, and just replugged appliances. I think everything drew on average about 800 watts, up to maybe 1500. I split it between 2 1.8 kW 110v outlets in the car.


How did you split the power from the two outlets into your one house supply?


If your vehicle has V2H (Vehicle to Home) the way it generally works in newer cars is that you have a bidirectional charger that can be used to connect the car battery to an external inverter, which is then tied into your house grid the same way a generator would be, e.g., via a transfer switch on the circuit you want to power.

This isn't cheap--I think it was generally many thousands of dollars for the cars I looked at that had V2H when I was EV shopping--but it generally gives you something something in the 9-20 kW range of power. For most people that gets into the territory of "as long as you remember not to use the electric clothes dryer at the same time you are making a meal that uses the electric oven and all of its burners you can just continue as if power is not out".

I seriously considered it. In the summer I use around 8-10 kWh per day, and in most of winter under 40 kWh per day. With a car with an 85 kWh battery, keeping it in the 20-80% range, and keeping it near 80% when outages are likely, That would give me several days of backup power during a summer outage, and over a day during a winter outage. In 18 years in my current house I think I've only had one outage that went over a day, and never had an outage so widespread that I would not have been able to find a public DC charging station within 10 miles to recharge the car if an outage actually did last long enough to take it down to 20%.

But the cars with V2H were out of my price range, even before adding the cost of the equipment to use V2H.

If your vehicle has V2L (which is what the one I bought has) it is considerably cheaper. The car gives you one or two outlets similar to ordinary household outlets. Mine gives a single outlet, which you get by plugging an adapter into the charge port. With these you generally don't try to tie it into your house grid. You just run an extension cord (or two if your V2L provides two outlets) to where you want power.

Some people get some sort of socket installed on the outside of their house that a cable from the car's outlet can be connected to, with that socket connected to an indoor outlet. Me, I just leave sliding door open enough for an extension cord to go through, and then stuff the gap with some foam strips that I got at Home Depot.

It is surprising how much a single 120V 15A circuit can do. What I need to get through a one day power outage comfortably (which as mentioned would be an unusually long outage here) is: (1) power for the fridge, (2) power for an electric space heater, (3) power for my computer area and cable gateway (if cable is not out), (4) maybe power for some cooking, and (5) water to flush the toilet.

Any time the weather forecast even hints at something that could cause widespread outages I fill a bathtub with water for #5. For the rest I've been monitoring power used for those things with a bunch of energy monitoring smart outlets (Tapo P110M controlled by Home Assistant using Matter).

For #1, my fridge during a normal cycles draws 90-100W. During a defrost cycles it draws 400W. I have wireless thermometers in the fridge and freezer compartments so I can easily coordinate with other uses such as cooking to make sure I cook at a time when the fridge is going to not need to run for a while (which I can ensure by unplugging it).

For #2 my space heater is usually 1500W, but I've got another one that is supposed to be 1500W but due to age is only 1300W, and I've got year another one which is 1500W on high but has a medium setting that is 1000W. On all but the coldest days 1300W and probably 1000W would keep it warm enough as long as I'm warmly dressed.

For #3 my entire computer setup (Mac Studio, 27" 5K monitor, 24" 1920x1200 monitor, speakers, external Thunderbolt drive bay with 4 SSDs), a network switch, and a Hue hub is about 130W with short spikes to around 170W. If I turn off the second monitor that drops about 25W from that. The cable gateway is 15W.

For #4 I've got a microwave, a toaster oven, and a couple George Foreman grills. The microwave draws over 1900W for the first minute or so on high, but I can set it lower and it is an inverter microwave so on lower settings it actually reduces the amps drawn rather than just cycling between full and off. The toaster oven is 1000W and the biggest GF grill is 1200W.

I should be able to run all of these, as long as I take some care to not run too many at once. Some observations:

1. If I'm not going to use the computer for a while, such as when sleeping, I can run the 1500W space heater, turning it off when the fridge needs to run. I could actually then turn it back on once the fridge has started and gotten past its inrush current (20A, which my V2L has no trouble with). It would then be 1600W total unless the fridge is doing a defrost cycle than it would be 1900W. That's fine because the 400W defrost phase only lasts about 10 minutes and the non-defrost cycle only a bit over an hour, and it is around 3 to 8 hours (depending on how often I open the fridge I assume) after a cycle ends that it needs to run again. That counts as an intermittent load and so should be OK with my extension cords (rated 15A intermittent, 12A continuous).

2. If I'm using the computer I can switch to the 1300W space heater. That plus the computer both in continuous used would be under the 12A continuous rating of my extension cord. When the fridge needs to run I'd have to switch to a lower setting on the space heater until the fridge is done.

3. When I need to cook I'd just need to time it so it happens when the fridge won't need to run, and turn off the space heater while cooking. Nothing I'd be cooking in the toaster over or the GF grill takes more than 20 minutes. The computer stuff could remain powered during this.

4. If I don't have a bathtub full of toilet flushing water, I might be able to run my well pump from V2L. It's 120V with a 1/2 HP motor which would be under 1000W, but the inrush current may be too high. The specs say maximum of 44A, but from what I've read many people have had success with motors with that kind of inrush current, and the way the V2L system works it is safe to try it--worst case is the V2L safety systems shut it down. I just haven't gotten around to trying it yet.

Overall then it seems like that single 120V 15A from V2L will actually be enough to get me comfortably through most power outages. I had not expected that when I got the car.


That sounds like the extreme version of "but I need a fuel car because I want to drive it to France once a year for holiday". Driving something around all year for a once-a-year event is silly, but this is just insane. In a good life, you don't need this fallback from grid power even once in your lifetime!

At least, not beyond the inconvenience that is having to stay at home like 1 unplanned day per several decades. That's still three and three quarters of a nine of uptime even if you'd get the recent Iberian peninsula event every 10 years, and assumes you emptied the battery coincidentally the day before the outage. If you're not an EMT or power plant technician, you're doing more harm than good by being the person who can drive to work during a power outage and find that you're the only one there and nothing works anyway


> That sounds like the extreme version of "but I need a fuel car because I want to drive it to France once a year for holiday".

Having just made the 1,000km trip to the French Alps and back again in a Tesla Y, that's not a valid excuse any more. Back at home in Australia driving 2,200km from Mackay to Melbourne in a EV also a common enough holiday trip.

The 5,000km trip to Perth might be a stretch, but it's considered a major undertaking in a conventional car too. You are crossing some of the most remote places on the planet that has paved roads. The problem isn't charging. It's that you need to carry spares - like drinking water for emergencies, and spare tyres.

It's the tyres that would stop me from doing it in a Tesla Y. The Y doesn't have a place for a spare tyre, which is a disease that seems to afflict many modern cars of all types. It doesn't even come with a jack. Worse it needs special tyres that are hard(ish) to find in a major city, let alone 1000km from anywhere.

Unless grandma lives in a place without electricity, the one issue you won't have in Australia or Europe is charging. EV charging points are everywhere now. Most parking lots have them. I dunno what the situation is in the USA, but if EV charging points are a problem I'd suspect deliberate government interference because in Australia at least every one seems to have been built privately. Unlike Europe Australia does not have much in the way of EV subsidies, yet they are springing up like weeds.

I suspect the reason is location, location, location. Similar to petrol stations, but unlike a petrol station the upfront investment is low, they aren't manned so no wage costs, in a shopping centre they attract customers and they seem to markup the cost by 80..150%. What's not to like? So get in early and get the best spots.


I guess I didn't make it clear that this quoted argument was meant to sound silly. I know you can go on holiday with EVs! My mom was a bit apprehensive about spontaneously needing to find chargers and figure them out, and so I invited her to a weekend trip for just the two of us, one of the goals being to see together how charging works out in different places and countries and how often that ends up being necessary etc. It was no problem at all if you can figure out the different payment methods (most worked with a magic card she got with the car, others wanted paypal via a web portal etc.)


Considering how expensive cars are, I do find the trip-to-grandma reasoning useful. Most people want a single vehicle that can do everything. Dismissing that with, "Well just drive differently" or "You can do the hassle that is renting a car" is not a compelling sell. What if I want to do my vacation trips during the holidays where rentals are already booked?

I think full EVs are great if the lifestyle allows it, but plug-in hybrids seem a better fit for most people without requiring undue compromise.


What trip to grandma can't you do anymore with an EV?

> What if I want to do my vacation trips during the holidays where rentals are already booked?

The same as you do when any other part is booked out: go elsewhere or do something else. I don't buy a backup train in case the one I want is booked out one of the next ten summers

Consider also the lifestyle change that's "growing older more healthily" by not having a population sit in exhaust fumes for 2x the daily average commute length


Why there focus on sitting in traffic. Instead of more visionary solutions like banning single family homes and razing them all to ground and replacing them with high rises next to offices supported by forced public transport? Surely that should be the true alternatives for use of ICE and not EVs.


We’ve already had some experiences with this in Florida after a hurricane. EVs do quite well, turns out, better in many cases than gas cars. The grid is a very high priority for fixing, more so even than gas supplies.


> Every time I think about EVs, I become filled with dread thinking about what will happen if an area loses power for an extended period of time

A mid-size EV battery can easily store 60kWh of energy. That's enough to power a domestic refrigerator for ~12 days (assuming 200w average power usage, which is on the higher end).

I lost power for about a day last year and was very happy to be able to keep my fridge and some emergency lighting powered from an EV battery.


Rooftop solar is getting cheaper, easier, more efficient, and more reliable every year.

If you live in an area that is poor enough that this is not an option, it loses power frequently due to weather, and no one in power cares enough to fix it, that genuinely sucks, and I feel for you. But, as sibling comments said, some other poor areas don't get gasoline shipments in a timely manner—being poor and neglected is just always going to suck in various ways, and the solution is not to avoid any technological advancements that remove the crutch that your particular poor and neglected area is using to get through it a little easier, but to find ways to reduce the poverty and neglect.

And, frankly, solar power and electric vehicles are both great tools to help with that, especially when used together.


More batteries.

I cannot believe this is a serious question.

A small battery pack can easily run most essential domestic services.


The common advice among "preppers" and more anxious individuals is to never let your gas gauge go below half or 1/4 tank. I think people are much more anxious than they realize about running out of gas in a black swan event.


When a hurricane impacted my area last year, I kept seeing Facebook posts for a week or two afterward from people asking where to find gas. Meanwhile, the power never went out, so my EV was able to charge without issue.


I worry about that, too, but with my gas car. :)


Over time, do you think this process could lock you into an inflexible state?

I'm reminded of the trade off between automation and manual work. Automation crystalizes process, and thus the system as a whole loses it's ability to adapt in a dynamic environment.


Nothing about this feels inflexible to me at the moment - I'm evolving the way I use these tools on a daily basis, constantly discovering new tricks that work.

Just this morning I found out that I can tell Claude Code how to use my shot-scraper CLI tool to debug JavaScript and it will start doing exactly that:

  you can run javascript against the page using:
  shot-scraper javascript /tmp/output.html \
  'document.body.innerHTML.slice(0, 100)'
  - try that
Transcript: https://gistpreview.github.io/?1d5f524616bef403cdde4bc92da5b... - background: https://simonwillison.net/2025/Dec/22/claude-chrome-cloudfla...


We don't need automation for that, we "achieve" that through our processes already. Specifically, software creation processes of large teams with many changing developers over long periods. Example (but they are not the only one): https://news.ycombinator.com/item?id=18442941 -- changing or adding anything becomes increasingly burdensome.

I would like to post that every time somebody warns of the dangers of AI for maintainability. We are long past that point, long before AI. Businesses made the conscious decision that it is okay for quality to deteriorate, they'll squeeze profits from it for as long as possible and then they assume something new has already come along anyway. The few business still relying in that technical-debt-heavy product are still offered service, for large fees.

AI is just more of the same. When it becomes too hard to maintain they'll just create a new software product. Pretty much like other things in the material world work too, e.g. housing, or gadgets, or fashion. AI actually supports this even more, if new software can be created faster than old code can be maintained that's quite alright for the money-making oriented people. It is harder to sell maintenance than something new at least once every decade anyway.


Beautifully done! What more can I say?

Those disc drive sounds are so cool



heh, Im using this font in my game. Picking fonts is hard, and I feel like I've just dipped my toe in the water so far. Im not 100% satisfied with the non-monospace font I use (Adobe Source Sans), but I have more important things to focus on right now


Everything you see fits into a 64kb executable.


So happy I bought this game on GOG before they replaced it with the revamped version (modern looking art, etc).

I played through the orc campaign last year and had fun. It's definitely aged, but it makes me wonder if something like that could exist today. Story games are popular, and I think always will be (people like stories).

Instead of a solo protagonist, can we bring back the hero (a la WarCraft III) and their army? Or even the invisible god like WC2?


Here is a comparison of the original vs the remaster: https://youtube.com/watch?v=KZ9Ac4WVW6Q&t=100s in case anyone else is interested too.


Visually at least it looks like a pretty tasteful remaster. Mostly just sharpening things up. Thanks for posting


Ah wow , rip the awesome fonts used in the original game. The new ones are so "clean" and boring :(

Glad to see the art itself was not too badly modified. It's weird though, like the vegetation in the Farm building looks weird. The original version you can tell it's some kind of yellow fruit or vegetable but in the remaster the yellow dots are unusually small and don't really "feel right". Strikes me as AI upscaling rather than hand-crafted editing.


Thanks for putting this together. Shaders are something I wish I had the time to dive deep into, but since I'm making a game, my time is very limited for the time being. i.e. I only learn what I need to.

Only critique is.. if you're sharing to teach, your compact/one line [460] char GLSL code is a poor delivery mechanism.


> Thanks for putting this together.

I'm glad it reaches an audience :)

> Only critique is.. if you're sharing to teach, your compact/one line [460] char GLSL code is a poor delivery mechanism.

Understandable. Though, the demos are here to illustrate "what you can do with the trick I'm sharing". It's like, I'm teaching you how to do watercolor, and illustrate it with some paintings you won't be able to perform just with that knowledge. They're meant to inspire you to create. You're not looking at a tutorial, you're looking at art.


That brought out a nice, hearty chuckle. At least you're owning your style.


I don't know, I kind of liked it.

For once instead of being shoved a ready-made solution there's a short explanation of the core idea with a live example, but instead of a fully documented shadertoy it's like the answer is ROT13'd which makes me itch for implementing a solution myself.


Same. I go one step further and create a macro _STOP which is defined as w/e your language's DebugBreak() is. And if it's really important, _CRASH (this coerces me to fix the issue immediately)


The "standard" (typically defined in projects I'm familiar with, and as of C23, an actual standard) is "unreachable": https://en.cppreference.com/w/c/program/unreachable.html


That is not the same thing at all. Unreachable means that entire branch cannot be taken and the compiler is free to inject optimizations assuming that’s the case. It doesn’t need to crash if the violation isn’t met - indeed it probably won’t. It’s the equivalent of having something like

    x->foo();
    if (x == null) {
        Return error…;
    }
This literally caused a security vulnerability in the Linux kernel because it’s UB to dereference null (even in the kernel where engineers assumed it had well defined semantics) and it elided the null pointer check which then created a vulnerability.

I would say that using unreachable() in mission critical software is super dangerous, moreso than an allocation failing. You want to remove all potential for UB (ie safe rust with no or minimal unsafe, not sprinkling in UB as a form of documentation).


You're right, the thing I linked to do does exactly that. I should have read it more closely.

The projects that I've worked on, unconditionally define it as a thing that crashes (e.g. `std::abort` with a message). They don't actually use that C/C++ thing (because C23 is too new), and apparently it would be wrong to do so.


You can use the standard feature with the unreachable sanitizer: https://godbolt.org/z/3hePd18Tn


For many types of projects and approaches, avoiding UB is necessary but not at all sufficient. It's perfectly possible to have critical bugs that can cause loss of health or life or loss of millions of dollars, without any undefined behavior being involved.

Funnily enough, Rust's pattern matching, an innovation among systems languages without GCs (a small space inhabited by languages like C, C++ and Ada), may matter more regarding correctness and reliability than its famous borrow checker.


Didn't PASCAL have variant record types with a kind of primitive pattern matching already?


Possibly, I am not sure, though Delphi, a successor language, doesn't seem to advertise itself as having pattern matching.

Maybe it is too primitive to be considered proper pattern matching, as pattern matching is known these days. Pattern matching has actually evolved quite a bit over the decades.


C++ keeps getting bigger and bigger :D

Thanks for sharing


This is actually C and C++ has not done something similar AFAIK.



Fortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.


C++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]


Im a encryption noob. Less than a noob. But something I've been wondering about is how can homomorphic computing be opaque/unencryptable?

If you are able to monitor what happens to encrypted data being processed by an LLM, could you not match that with the same patterns created by unencrypted data?

Real simple example, let's say I have a program that sums numbers. One sends the data to an LLM or w/e unencrypted, the other encrypted.

Wouldn't the same part of the LLM/compute machine "light up" so to speak?


I don’t actually think an LLM is a good way to sum numbers, but it is a pretty good example to explain the phenomenon you’re interested in. When you run an LLM, you essentially take your input and matrix multiply it with the weights to get an output. This happens regardless of what the input is or what the model “needs” to do. So, to some extent, the same part of the machine is being used every time even though the results seem very different.

(Of course, the reality is much more complicated than this; you can trace things like power and in theory track individual activations with great difficulty and then do interpretability to see what the model is doing. But hopefully it illustrates that you can usually take some sort of special operation and turn it into a process that does the same operation on different data.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: