HackerTrans
トップ新着トレンドコメント過去質問紹介求人

alex_x

123 カルマ登録 4 年前

投稿

Slow Down

x-x.codes
2 ポイント·投稿者 alex_x·2 か月前·0 コメント

The Programming Language for Agents

zerolang.ai
1 ポイント·投稿者 alex_x·2 か月前·0 コメント

Wrote this for humans, now I use it as a prompt

x-x.codes
2 ポイント·投稿者 alex_x·2 か月前·1 コメント

Show HN: Review code changes in a terminal and share with your coding agent

github.com
2 ポイント·投稿者 alex_x·2 か月前·0 コメント

Incomplete pull request results in repositories

githubstatus.com
4 ポイント·投稿者 alex_x·2 か月前·0 コメント

[untitled]

1 ポイント·投稿者 alex_x·5 か月前·0 コメント

Show HN: VS-1: an audio sample tournament sorter

github.com
3 ポイント·投稿者 alex_x·6 か月前·0 コメント

Ask HN: Feel stuck and overwhelmed by tech choice

11 ポイント·投稿者 alex_x·10 か月前·13 コメント

コメント

alex_x
·昨日·議論
A farmer producing meat is a better farmer than me even if I hire my own farmer.

If we invent a meta-farmer profession (for those who hired a farmer) I will be great meta-farmer, but still suck as a farmer
alex_x
·昨日·議論
Commit messages, comments and function names are hard to come up with, that's why we spent years to argue on maximizing value. We also learned to pay attention because we new that this particular name is like that with a reason.

Now it's hard to pay attention to code comments and commit messages because costs to produce them is zero and llm doesn't care about communication and your attention budget
alex_x
·昨日·議論
All above comes at a cost of author slowly starting to understand less and less code in their own projects.

Then in other projects as well.

After the initial boost is over they will have to pay money just to stay afloat because they have already outsourced their thinking.

I’m not anti AI, but I’m very worried about this bragging “you are not better engineer if you do things yourself”. Yes, you are, it all comes in small details.
alex_x
·26 日前·議論
I got emotional here as well.
alex_x
·2 か月前·議論
Easy-to-learn and built-for-learning-good-practices are two different things;

I think your point is perfectly correct but it's mostly about the second one
alex_x
·2 か月前·議論
Humans are highly dependent on the environment; you can blame people for eating too much of highly processed food and lots of sugar, but that's what happens if all you see around is highly processed food and sugar
alex_x
·2 か月前·議論
lmk if you ever visit Zürich :)
alex_x
·2 か月前·議論
I agree with that 100%
alex_x
·2 か月前·議論
I also wonder if this is so visible because a lot of people don't really care what they do and will happily use any bullshit machine to simulate work.
alex_x
·2 か月前·議論
thinking becomes a commodity
alex_x
·2 か月前·議論
That's a fair point for students, but as a beginner who simply wants to tinker with fun stuff, you can go very far without knowing of a program stack.

I think I had the wrong audience in mind
alex_x
·2 か月前·議論
I wonder why all these easy-to-learn languages use indentation to denote scope, not something like curly braces. Isn't it actually harder to explain?
alex_x
·2 か月前·議論
seeing this slop landings is so tiring.

It makes me not caring about potentially good product in no time
alex_x
·2 か月前·議論
About year and a half ago I put together code review guide for human-written code to help my team speed things up and show how to operate based on trust, respect, and mutual goals;

This aged well and now the same article shared as a prompt guides LLMs to review generated code focusing on understanding and maintaining consistency in a codebase
alex_x
·2 か月前·議論
been thinking about the same for a while but couldn't put this into words; thank you
alex_x
·2 か月前·議論
what's your average battery life?
alex_x
·2 か月前·議論
isn't that a normal timeline for critical vulnerability? Seems like paid marketing
alex_x
·3 か月前·議論
No bindings, I wrote a few wrappers myself to make often used functions a bit more swifty, but otherwise its pretty smooth sailing
alex_x
·3 か月前·議論
a lot of cool-looking stuff in my ECS is supported by Swift parameter packs; however, once you start using them a lot you find limits pretty soon.

One example: the following wouldn't compile in swift:

  func query<each T, each K>(
    _ body: ((repeat each T), (repeat each K)) -> Void
  ) { ... }
so you kinda work around it with extra type wrappers but this looks ugly - I've been using macros to hide some of the ugliness away xD

edit: the example is oversimplified just to show the point - in this example compiler can't really tell where T ends and K starts, so its logical; but I had more complex cases where a human would've been able to infer types correctly
alex_x
·3 か月前·議論
there is not much to brag about yet :'(

About a year ago I was curious about building an ECS-based game engine with world simulations like in dwarf fortress, but obviously at much smaller scale while playing Starfield. Something cool started to materialise after tinkering so I thought why not turn it into a space-sim roguelike with a simulated living world.

I use swift because it gives me fantastic devex with all its great type inference and macros + raylib gives me cross platform input handling / rendering and window management.

C-interop setup is basically instant - you point compiler to c headers and the API becomes immediately visible on swift side

As for swift ergonomics, I particularly love that I can now write very readable code, like:

> world.addRelation(attacker, Attacks.self, target) > world.addRelation(player, Owns.self, sword)

or

> for (entity, position) in world.query(Position.self).with(Health.self, Velocity.self).without(Enemy.self) {}