HNHacker News
TopNewBestAskShowJobs

iliketrains

1,304 karma · joined August 25, 2016

submissionscomments
iliketrains··on Ask HN: What game do you wish existed?
I love factory simulation games (think Factorio, Satisfactory, Banished, DSP, ...) and one thing that I was always missing was a game with better simulation of raw material mining. Most simulation games have you just place a "mine" on a resource and that's it.

I wanted to manage an open pit mine myself. Have excavators that mine ore and trucks move it for processing, but as they do, the shape of the terrain changes, leaving deep holes behind. Maybe even compromising your factory as the mining operation expands.

And as it sometimes go, when you want something and that does not exist, you try to make it, and that was my case here. Together with a fried we attempted to make such game. It's called Captain of Industry in case anyone is interested: https://store.steampowered.com/app/1594320/Captain_of_Indust...

iliketrains··on Astronomers reveal first image of the black hole at the heart of our galaxy
This is incredible! Veritasium has a nice video explaining how those images were obtained and what they mean: https://www.youtube.com/watch?v=Q1bSDnuIPbo
iliketrains··on Software Engineering at Google (2020) [pdf]
Having worked at Google for many years, 80 char line limit was easily the biggest frustration with coding. Because of that, I was forced to write less readable code, shorten variable and function names, omit some comments, fight with formatter and linter, spend extra time aligning things, etc.

For example, Python requires extra effort to brake lines, often adding extra parentheses or doing other unnecessary tricks. Lambda does not fit on the rest of the line? Too bad, define an extra function, because liner won't let you submit a lambda that spans more than one line...

Now, I am so happy with 120 char limit while still being able to fit two columns on one screen.

iliketrains··on Bunnymark GL in Jai – 200k sprites at 200fps [video]
Rendering only one large triangle can be faster than two. First one triangle needs less memory, less vertex processing, etc.

Second, modern GPUs render pixels in groups of 2x2 up to 8x8 "tiles". If only one pixel from this group is part of a triangle, the entire group will be rendered. When two triangles form a quad, the entire area along the diagonal "seam" will be rendered twice. The smaller quads you have, the more overhead.

Also see https://www.saschawillems.de/blog/2016/08/13/vulkan-tutorial...

iliketrains··on EU to make it mandatory to use customer-replaceable batteries in household items
Yes! I wish this was mandatory world-wide!

Just recently my shaver battery got to the point it lasts ~2 seconds on "full charge" and it is not replaceable. The charging adapter does not provide enough power to make it run. So I am forced to trash a perfectly working shaver just due to old battery. And this is how majority of battery-powered shavers work. My next shaver is corded.

iliketrains··on Amazon sent the FBI to take my family’s bank accounts
Recently I've found the Institute for Justice, a nonprofit that among other things fights to end civil asset forfeiture practices. They have so many heart-breaking stories on their youtube channel!

For example, did you know that cops can seize all your cash during a traffic stop, regardless of you having receipts of withdrawal? See https://www.youtube.com/watch?v=MkeS_0NQUZs

Or, government took all of a family’s money (incl. from bank accounts of two teenage daughters) based on mere suspicion that one family member committed a crime: https://www.youtube.com/watch?v=gI3hHVcIcdY

iliketrains··on C# Raw String Literal Proposal
This is fantastic! After this is in, can anyone propose a better documentation syntax please? I am really tired of typing verbose XML as comments, and not even being able to write "a < b" or "T<int>" in my comments...
iliketrains··on The Factorio Mindset
I am not in any game dev discords. Frankly, I am having hard time engaging with the indie game dev community (be it on forums, reddit, discord), it seems that the problems I am dealing with (and could use some help with) are very specific and quite technical, so my posts are usually unanswered. I'd love to find a good place for having such discussions.

And good luck with your project!

iliketrains··on The Factorio Mindset
Thanks for the clarification and you are right. I probably should have said that it is merely more realistic than other games in this genre.

It's great to hear from other game devs! What is your game called?

iliketrains··on The Factorio Mindset
I am not sure what do you mean by "realistic spacing/placement of structures", could you elaborate? Do you mean that in reality you would not build a farm next to a blast furnace? That's true, we did not implement any mechanics regarding building proximity to others, but that is certainly an interesting idea!

When I mentioned our focus on reality, I meant that the mechanics and processes are mostly driven how things are done in the real world and by playing the game you can even learn something new (e.g. steel production needs oxygen). However, it is a game and this can be done only to a certain degree, especially the early game has a lot of "shortcuts".

As an example of realistic mechanics and processes, you build excavators that mine ores and coal, trucks haul materials around the factory, terrain collapses as it is being mined, iron and steel smelting produces slag that needs to be disposed, fertilizer for farms is made from ammonia (synthetic process) or from compost (natural process), etc. (see our wiki for more https://wiki.captain-of-industry.com/ ).

iliketrains··on The Factorio Mindset
Me and my friend are actually working on a somewhat similar game called Captain of Industry [1]. The game is less about automation and scaling and more about realistic processes, mining with excavators, trucks logistics, and taking care of your workers. It's not done yet but we are quite close!

[1] https://www.captain-of-industry.com/

PS: To my surprise, simulation games are a lot of very technical work full of algorithms and optimizations, compared to an average SWE work in a tech company.

iliketrains··on Starship Update [video]
That is interesting, so could you replace the biggest and most powerful internal combustion engine in the world that weighs 2,300 tons by [whatever powers] turbopumps from a raptor engine and get the same power output? Where is the catch? Less fuel efficient? Less torque?

Edit: What I meant to ask was: Can one use "whatever is powering the turbopumps and delivering the 100k HP" to power say a ship propeller, instead of that 2.3k ton internal combustion engine. Like, make some variant of raptor engine that delivers this power to a shaft.

iliketrains··on Everything must be paid for twice
Interesting read. I'd argue that there is also a third price -- the price of getting rid of it.

While throwing something in a garbage may be "cheap", there are many hidden costs, especially for the society as a whole.

I have definitely started to consider "price of disposal" when purchasing new tings.

iliketrains··on In MySQL, use “utf8mb4” instead of “utf8” (2016)
Fun story: When I was working at one of the FAANG companies, I have placed the (Night with stars, it does not seem to render here [0]) character in my preferred name. Some time later, I was notified by HR that I must change my preferred name and I can only use UTF-8 characters with maximum length of 3 bytes. I was quite confused why such specific demand, I am pretty sure it was exactly this issue. I replaced it with ᗧ···ᗣ···

[0] https://emojipedia.org/night-with-stars/

iliketrains··on Electric vehicles could fully recharge in 5 minutes with new cable design
They achieve this by "charging cable that can deliver a current 4.6 times that of the fastest available EV chargers".

However, that also means 4.6^2 = 21 times more losses in the transfer cable since losses are P = I × V = I² × R (where P are losses, I is current, V is voltage, and R is resistance of the cable).

Wouldn't be better to increase voltage? I guess that would require changes to cars?

iliketrains··on Image file formats that didn’t make it
I find TGA very useful when in need of image output and without easy access to a proper image lib. TGAs are trivial to output just by writing RGB values to a file with a simple header, no encoder needed.

I am so glad that many image viewers/editors still load TGA, my computer has gigabytes of them!

Spec here: http://www.paulbourke.net/dataformats/tga/

iliketrains··on Audacity may collect “Data necessary for law enforcement, litigation” and more
On Windows I use henrypp/simplewall. It is lightweight UI on top of Windows Filtering Platform. My only complaint is to all the self-updating programs that keep changing its binary and I need to re-enable them periodically...
iliketrains··on Amazon’s quest for more, cheaper products has resulted in a flea market of fakes
Product review. There are seller reviews too?
iliketrains··on Amazon’s quest for more, cheaper products has resulted in a flea market of fakes
One of my Amazon orders was just re-ordered from Wallmart under my name and shipped by Wallmart to my address. I even got the Walmart receipt with the cheaper price in the package.

I was not happy about that, esp. that some stranger is entering my shipping info to some other retailers DB. It is also clearly against Amazon ToS. I have contacted Amazon, citing the ToS violation and concern about my personal data and the only thing they said was that they are sorry and will notify the seller bout this. Nothing happened.

Also, my honest review about this was taken down.

iliketrains··on Czech climber Adam Ondra has conquered the Dawn Wall in record time
Extremely unlikely but possible :) Nice interview, thanks!

For English speakers I would recommend "La Dura Complete: The Hardest Rock Climb In The World" (https://www.youtube.com/watch?v=V1P97VVt6_k)

iliketrains··on What’s New in C# 7.0
Nice! I was also hoping for some sort of guaranteed not-nullable type and immutable classes. Maybe in C# 8.
← PreviousPage 3 of 3