HNHacker News
TopNewBestAskShowJobs

SamInTheShell

236 karma · joined August 13, 2024

submissionscomments
SamInTheShell··on Genie, Take the Wheel
Code losing value was my first take away when trialing out these coder agents. I think one of the skills I leverage more now than I have had to in the past is "How can I break this" thinking. The ability to validate the results is more valuable than being able to produce code now imo.
SamInTheShell··on Casey Muratori: I can always tell a good programmer in an interview
No. You may not even talk around the topics. This explicitly comes with the training. Anyone asks me about my last job, I don’t really state much more than what the job title was and what the job postings said for the role I applied to.
SamInTheShell··on Postman which I thought worked locally on my computer, is down
This makes me feel more justified in using Posting in my terminal these days.
SamInTheShell··on AI model trapped in a Raspberry Pi
Your prompt is incomplete. He only called out the system prompt. What you're missing in the user prompt, that only shows up in his code he shows off.

Edit: also as the other guy points out, you're going to get different results depending on the model used. llama3.2:3b works fine for this, probably because Meta pirated their training data from books, some of which are probably scifi.

SamInTheShell··on Implementing a local AI coding agent is hard
My daily driver is a M1 MBP with 64GB of ram. Using ollama, lm studio, or even just max-lm in python, a model like gpt-oss:20b can produce results. It runs anywhere from 50-80 tps, so don’t expect blazing fast edits, but it’s usable such that you can background it with clear instructions and come back to something that isn’t complete trash.
SamInTheShell··on AI model trapped in a Raspberry Pi
The words "Reflect on the nature of your own existence." is doing a lot of heavy lifting here to make it work.
SamInTheShell··on Show HN: Tallyit.co/coparents – Split costs with your baby dady
I suspect you misunderstand my intent here.

Right now the url is site.co/coparenting.

That’s .co/coparenting

What I’m saying is this works too: .co/parenting

It’s just irrelevant linking linguistics that I’m pointing out that was a missed opportunity. Doesn’t truly matter though.

SamInTheShell··on I ditched Docker for Podman
It’s gotten a lot better on MacOS as the virtualization framework had virtio functionality added to it.
SamInTheShell··on Show HN: Tallyit.co/coparents – Split costs with your baby dady
Route should absolutely be just /parents. The co is the tld.
SamInTheShell··on How do you handle JDK/JRE patch updates for Java apps on K8s?
Just my experience, but slow start times, high memory usage, tracking down GC pauses, getting the memory flags in line with the k8s resources config, and fat image sizes. All things I enjoy living without.

Also regarding Quarkus, that's java stuff. I don't use it, but I know people do use it for shortcomings of Java in k8s. Perhaps GraalVM is the thing that makes it worth-while, idk.

There's also a distroless Java container from Google that could be of value.

SamInTheShell··on Bear is now source-available
I actually put this in the wrong thread. Disregard, I have no clue where the thread I meant to put that was.
SamInTheShell··on Bear is now source-available
The history stems from the term “free” software not being very palatable for marketing. There are 4 tenants to free software. Bear is no longer free software.
SamInTheShell··on How do you handle JDK/JRE patch updates for Java apps on K8s?
Java is the worse language to deal with in Kubernetes. You might want to look into Quarkus. I’m of the opinion that ditching Java for Go is better if possible.
SamInTheShell··on Are OpenAI and Anthropic losing money on inference?
Those same H100's are probably also going to be responsible for the R&D of new model versions. Running a model is definitely cheaper than training them.
SamInTheShell··on Agent-C: a 4KB AI agent
Bro, you gave it all the tools. I wouldn't call this minimal. Throw it in a docker container and call it good. :)
SamInTheShell··on [dead]
Gemini is an LLM. These are text completion algorithms. They can generate fiction about as well as they can generate code.
SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
Seems like a non issue to me, time is just relative. Analysis on receipt is still possible, because you can calculate latency.

I'd recommend checking out Leslie Lamport's work, you can probably derive some ideas. I'm not be prescriptive here because this isn't a space I plan to work in to solve problems since it's just games. Entertainment isn't really my thing, I tend to lean heavily into systems and security knowledge which has served me well broadly.

SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
It sure doesn't. Any reason you couldn't just slap a TCP connection on top of it to make your replication log for analysis though?

As I mentioned in my last comment, someone would need to design a system to better deal with this type of stuff. The way things are stem from decades of decisions made, starting with more design constraints than we have today.

SamInTheShell··on Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
This is a nifty little project. If I wasn't already neck deep in blocknote adoption in a small experiment I'm doing, I'd be taking this for a spin.

I noticed on the site the really cool animation you got has a 1px solid border on one of the overlays in firefox. Figure you might care since it's clearly supposed to be flashy.

SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
Everything other than the isHuman part is absolutely detectable. It's just a matter of building a system for it.

The ability to detect isHuman just seems to be on chopping block as far as I can tell. There is little to no barrier remaining today to prevent people from leveraging AI to get around this entire problem. There's a few outlier solutions that work for now, but AI does two things really well given time: solving classification and regression problems.

What can still be done is maintaining short lived replication logs and pattern analysis in this space. There is no reason that a player's actions can't be logged, analyzed, and responded to. It doesn't even need to be real time, it can just be latent. The server doesn't need to rely on reported timestamps for the analysis part, because the server can use it's own timestamping upon arrival to at least see how far apart the order of operations occur.

I know it's not an easy problem space to be in, I don't envy it, but I can't agree with the sentiment that it's impossible knowing how these systems are already designed in larger engines.

SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
Genuine question, why are people confused on what user input is here?

Suppose the game is a solo game primarily with additional multiplayer features. The agreement there is simply that they enter multiplayer with a valid game state (edit: you validate on join).

Upon entering multiplayer, monitoring begins. Player moves, is it valid? Player shoots gun. Is this valid? Ray cast reached target and does damage. Was that valid?

Did you track the player state during the replication streaming? If no, then there are user input validation gaps.

To be completely fair, most people aren't out writing their own game engine to account for this stuff and it's a lot of work to do that. None of the major game engines on the market do this.

In large database systems, log replication occurs all over the place and validation takes place (some systems better than others for sure). Difficult to implement, sure, but when you know, track, and monitor the state; you can validate and respond.

SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
Moderation is a fine suggestion. This idea could actually be implemented in such a way that other player clients do detection and reporting behind the scenes. Suppose a ton of clients see one user violating rules of the physics engine. Automated reporting on that can be observed as a trend and a ban would make sense.

Having argued about this specific topic in the past, I agree that going so far as to do checks on player movement is difficult and even expensive if you're validating physics for every user.

What concerns me more is the increased risk of RCEs when developers skip fundamental security practices because "the anti-cheat handles it" for them.

SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
> ok grandpa, time to get you a chamomile and time to go to bed

So you resign to insults because you're either incompetent in code or think you know something I don't. You would be better served to make a case for a counter argument, but can't because you lack the skills required.

Edit: Good developers figure out how to make better code, while some developers are just doomed to mediocrity. ¯\_(ツ)_/¯

SamInTheShell··on When did AI take over Hacker News?
It's just a fad. It'll die down eventually like everything else does. Don't see much talk about cryptocurrency lately (not that I care to see more, the technology choices are cool though).

Might take a long while for everyone to get on the same page about where these inference engines really work and don't work. People are still testing stuff out, haven't been in the know for long, and some fear the failure of job markets.

There is a lot of FUD to sift through.

SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
I wont play anything that doesn't work through proton or wine. This is how I vote with my dollars these days.
SamInTheShell··on Secure Boot, TPM and Anti-Cheat Engines
This is a hill I'm willing to die on: Failure to do proper server side checking is carelessness in the face of making a quick buck.

I distinctly remember being a kid bypassing this type of software back when it was just Game Guard at the top. There's nothing that's going to stop kids from doing it today.

It's an arms race doomed to failure until these game devs stop being lazy and just put in the sweat required to get their houses in order.

Server side checks. That's it. User input is tainted evil and you can't trust it. Anything less than server side checking is insecure.

SamInTheShell··on Do things that don't scale, and then don't scale
Vibe coding isn’t going to net you horizontal scalability out of the box if you know nothing about scalable system architecture. These models have more examples of single node wonder codebases than they do for real world application of algorithms like Paxos or RAFT. That being said I let Claude Sonnet 4 eat my GHC premium creds a few weeks back to see if it could figure out multiraft in Go. The short answer is just no, without doing an entire refresher on where it went wrong.

It doesn’t really matter though. If you target a DB like Yugabyte and use distributed storage like an s3 bucket or minio, you can get pretty far as long as you keep the core components memory efficient and stateless.

SamInTheShell··on Ask HN: Is React Dead?
Having come from traditional HTML/css/js back in the day and recently picking up react js in the last 5 months.

I agree with the sentiment.

SamInTheShell··on Ollama.com is being typosquatted by ollama.org
Looks like it was vibe coded by an amateur too.

Don’t know if their chat demo works, but if it does it could be a great way to just waste their compute.

SamInTheShell··on One weird trick to making Claude Code palatable to use
The way I interact with Claude involves referencing pop culture stuff that I enjoy so that it responds with something that I find mildly interesting to read.

At the end of the prompt:

Startrek stuff - Per Jean Luc Picard's orders, engage. - In the immortal words of a great science officer, the needs of this codebase outweighs the needs of few. - Code hard and prosper - You are borg. We are borg. (followed by a simple "status report" prompt after it's done with it's glazing)

Starwars - May the code be with you. - Code or code not, there is no try.

You probably get the idea.

As for the botched code problem. I surprisingly have less issues with Claude than I do GPT. I've gotta ask, do you have any deep knowledge in coding? How are your instructions?

← PreviousPage 5 of 7Next →