HN user

mpwoz

104 karma
Posts0
Comments52
View on HN
No posts found.

For context, I recently completed a game on a team of 4 devs who were all relatively new to ECS for the last bevy game jam [1]

Initially, we struggled a bit with how much ceremony there seemed to be to make simple stuff like movement work within the paradigm of an ECS (entity component system) engine.

But by the end of the week I think i can safely speak for all of us when i say we came away impressed by how organized everything was - despite everyone working on different pieces at a frantic pace for a week.

One concrete example is a last minute addition of little text dialog popups over various entities in response to different events : enemy sighting a player, player respawning, reaching an objective, etc. This ended up being trivial once the system for picking which line to say was in place, largely thanks to ecs and bevy’s event system.

Now i wouldn’t want to go back to the gameObject / update function way of structuring things ecs and bevy actually really shine once you do cross a certain threshold of size/complexity - especially with multiple people working simultaneously.

That said i do agree with you on the generalized physics engine point - we decided early on that was overkill and we could write our own collision and movement much faster, with better game feel to boot.

[1] https://itch.io/jam/bevy-jam-5/rate/2824463

This was a really cool deep dive into various optimizations that apply specifically to voxel-based games.

I especially enjoyed how the author packed progressively more information into the bits of a single integer using some clever tricks, and it stayed approachable the whole time even for those who don’t do a lot of low level bitwise optimizations in their day to day (me)

Re: [1] - I was interested in how this worked so I read the article, here's a quote:

"The 55-year-old electrical troubleshooter ignored his financial planner's advice, keeping 100 percent of his 401(k) money invested in Enron stock. He purchased more Enron shares with his savings and annual bonus"

"In addition to contributing the maximum 15 percent to their 401(k) funds, the Stevenses were buying $600 a month in Enron stock. Cathie Stevens, who had been so poor as a teenager that she picked strawberries for clothing money, even flipped her annual bonus money back into the purchase of Enron options."

Not sure who you're really blaming for people "retiring with nothing" if they put all their eggs in one basket like that, against experts' advice.

I discovered Isaac Arthur's Youtube channel in another comment thread, and I've been watching his videos for several weeks now. They've almost entirely replaced news about the war in Ukraine and economic doomsdaying, and I've noticed my own mental health and future outlook improving immensely in that time.

I'd highly recommend this playlist about near-future technologies that could revolutionize life as we know it, without being too high sci-fi about it: https://www.youtube.com/watch?v=ChTJHEdf6yM&list=PLIIOUpOge0...

Something about his approach really resonates with me - I think it's because he really believes a lot of the things he is researching are possible in our future - and his optimism is infectious. It really puts things in perspective, at least it did for me.

Surprised nobody has mentioned org-mode yet. It does everything shown in the video: collapse/expand nodes, focus on subtrees, ability to highlight across rows/nodes, etc.

That said, the fluid animations in Bike look great, and the video was very slick! Nice work.

Narrator: A new car built by my company leaves somewhere traveling at 60 mph. The rear differential locks up. The car crashes and burns with everyone trapped inside. Now, should we initiate a recall? Take the number of vehicles in the field, A, multiply by the probable rate of failure, B, multiply by the average out-of-court settlement, C. A times B times C equals X. If X is less than the cost of a recall, we don't do one.

Business woman on plane: Are there a lot of these kinds of accidents?

Narrator: You wouldn't believe.

Business woman on plane: Which car company do you work for?

Narrator: A major one.

In this example, isn't the problem that you're declaring column A as an 'int' type when what you really wanted was a string? Column B would be the "correct" one for your use case I'd think, unless you also need numeric sorting behavior.

Is there a type in e.g. Postgresql that would let you store '000123', give you numeric sorting (000123 > 1), and still return the leading zero characters? AFAIK that doesn't exist but I'm not that familiar with DB types.

Excalidraw+ 5 years ago

Draw.io [1] (now diagrams.net I guess?) lets you export a .png file with the diagram embedded in the image. So you don't need to keep the original file, and even an old image from a wiki can be opened up and edited by anybody on the team without having to get the "diagram file" from the original author.

Granted, I don't think it does collaboration so that may be a dealbreaker for you

1: https://app.diagrams.net

Thank you for the Robin Sloan link, I've been a fan of his ever since I read Sourdough for a book club a few years ago (incidentally while learning how to make my own by total coincedence) and his style really resonates with me. That blog was an interesting take and I've definitely experienced some of his frustration while making a small browser extension - it took an hour to code, and about 3 hours to wrangle it to conform to the chrome web store requirements before giving up and switching to Firefox ;)

Love the achievements section too, neat idea!

I'm the same way - I hardly ever use actual vim anymore! But I use the keybindings everywhere: web browsing with vimium, org-mode in spacemacs/evil, intellij vim plugin, etc.

Your experience mirrors mine in that most of the benefit of vim is in the basic motions and modal way of editing, which most of the plugins provide in a decent enough way for me.

Only if everything you do is in a terminal.

If you also need a browser, IDE, or any other non-terminal application open then i3 lets you tile those as well.

I haven't used it in a while since we switched to macs and ssh'ing to remote linux dev desktops but when I had an all-linux dev setup I remember i3 being pretty amazing.

>> Back in the day, the British Empire's customs reserved the right to immediately buy the entire freight of a merchant ship for the value declared at customs

Can you elaborate on this/help me out with what to google for? I've never thought of this but it's actually a brilliant idea - would love to read more about it!

Someone already mentioned it upthread, but I highly recommend playing "Kerbal Space Program" to gain a better intuition of orbital mechanics. I'm no rocket scientist but that game really helped me wrap my head around how things like orbital transfers work without actually learning any of the math behind it.