News for hackers. Stuff that matters.

AndreyK1984

Show HN: Made a xcom like game in a weekend with AI. 3D, textures, models, etc.

https://playgama.ai/play/55p62bkfsc

I published it to playgama, but first want to say how it helped me. One of my ideas was to make something like X-Com but provide an indirect control - you control the leader, and your squad members make the turns themselves, based on their intelligence stats! If they get alive over battles - they learn how to play smarter, not just to get MORE hp!Now the most interesting part - the development....

( Read More... | no comments | 2 points | on HN )
good enough for simple tasks.
Now please, start researching TRT too. Just go to pubmed and make a meta analysis of all advantages and disadvantages.
Re:Ask HN: We just had an actual UUID v4 collision... on Friday May 08, 2026 @06:26AM (#48061142)
Why not to have timestamp-uuid instead ?
Re:Solar and batteries can power the world on Friday April 03, 2026 @11:32AM (#47627901)
What about STORING excess power and delivering it during the day at a same level ? That is a critical part! I remember last time it was too expensive.
CamuFox will fix it easy peasy.
Re:CSS is DOOMed on Saturday March 28, 2026 @09:46PM (#47559754)
I try a simple absolutely layout (all calculated on a server), and helps me a lot. 1) no reflow 2) very few exceptions 3) WAY EASIER FOR LLMs
Re:The 49MB Web Page on Monday March 16, 2026 @12:12PM (#47400942)
I started writing in a Dioxus (rust framework) style. max 1KB of js code. Sending the diff via WebSocket from the rust server, and , what is more important, all code is now on a server, and because of websocket and rust it executes almost same speed as on the client. Back to normal pages sizes. And, of course, virtual scrolling everywhere.
Re:Tesla ending Models S and X production on Thursday January 29, 2026 @01:16AM (#46806457)
I was exactly going to shot Tesla. Is Tesla more like Elon meme ?
Any chance to see the other side ? I regularly read the opposite side press, their points are basically this:

- get rid of all immigrants (illegal alients)

- get rid of everyone who is against ICE

- take Canada, Greenland, Mexico and Colombia

Thus seriously, any minimal possibility to justify actions of ICE? Scared, non trained, a very stupid agent, whatever ?

Re:The Overcomplexity of the Shadcn Radio Button on Tuesday January 20, 2026 @11:57AM (#46694285)
Hard feelings here. I like react and have to work with it, still it is all insanely wrong.

The best approach I've found so far is egui , and I hope people are moving that direction. Draw whole frame, collect events, process, update internal state.

Re:Simple data management for new prototypes on Saturday January 17, 2026 @06:24AM (#46657165)
Yep. If I have only one express js process - I can just save and load. if it is 1-5 users - lets story all in a single JSON (although sometimes I use excel for storage). People underestimate simplicity
Re:Simple data management for new prototypes on Saturday January 17, 2026 @06:23AM (#46657161)
Thank you, yes and indexed db too, as in other comment.

I like to have exactly two API calls.

-- load data (returns json)

-- save data (sends json, returns 200 ok)

That is all! Let frontend bind everything to that json and save it every 1-2 seconds in setInterval.

Simple data management for new prototypes

Hi folks! I have huge success on a prototype of this approach:- Store all data as json- App loads: load full json on a client- Something changes by user - change json locally and every 10 seconds save whole json to backend as a single json file- also every 10 seconds load the updated json from backend to client.Yes, I know, parallel access problems, lack of schema, lack of db, using file to...

( Read More... | 8 comments | on HN )
Re:The Palantir app helping ICE raids in Minneapolis on Friday January 16, 2026 @06:51AM (#46645534)
Thank you all for detailed answers! As I see, if all goes well the problem will be solved in two years (more or less).

Again, no comments regarding if it is good to hunt "illegal aliens" and kick them away - US citizens must decide this themselves.

Re:The Palantir app helping ICE raids in Minneapolis on Thursday January 15, 2026 @04:33PM (#46639645)
Can someone tell me three things, please! - is ICE illegal or immoral ? Or it is a good tool used wrong ? - can people vote and make ICE stronger / weaker depending on their choice ? - are non registered people breaking the law or not ? Is it basically bad law or bad people ? I am sure US is republic and democracy together, but everyone here pretends ICE is a tool of dictatorship and should be stopped immediately.

If you ask about my personal opinion - it is an internal problem of US citizens, and they need to fix it.