HN user

gameswithgo

10,455 karma

I am currently teaching programming on twitch via a series of small game-related projects. http://gameswithgo.org/

Posts4
Comments2,728
View on HN

You can specify the capacity on creation: Vec::with_capacity(foo)

There are also alternative vector like types for different use cases, and you can roll your own.

I really enjoy some of the optimization details like when the memory overhead of Option<> can be elided completely. Other languages with Options will actually toss data up on the heap that doesn't need to be because it is in a Option and, or at the very least always take up a byte with the tag.

Details like this let you use the safer and more ergonomic solutions by default rather than having to worry if they are worth the overhead.

Apple Unveils M2 4 years ago

This depends on what one thinks of as build quality. If it is a certain way things look and feels that evoke emotions of quality and power, then yes, Apple's build quality is better.

But if you appreciate that things are engineered in a way to make repair-ability and upgrade-ability easy to make your life better and have less hassle, perhaps the Framework has better build quality.

I don't think Go's documentation is better than Rust, Go is just a lot simpler than Rust. Especially if you are a programmer with a background in any of the C-ish syntax languages (C,C++, javascript, Java, C#, etc), its just really easy to pick up.

Rust is a mind bending ordeal by comparison with both the borrow checker and other foreign ideas that take a while to come to terms with.

harshness of aluminum is mostly mythological and based on design of some early aluminum frames due to them being noisy. also 99.9% of compliance comes from tires. people reliably fail to detect frame differences in blind studies as well. even people who are professionals and people who insist the difference is obvious.

What workload do you do that 16GB isn't enough? Compiling large database backed .NET projects and Rust projects and AAA gaming all fit fine in 16GB

In part the optimum algorithm changes as hardware changes. In the 1980s for instance the CPU was about as fast as a ram access. Today the CPU is on the order of 200 times quicker than a RAM access, which means algorithms need to be designed to work well with CPU caches to perform well. There is also much MORE memory available, so in some cases it makes much more sense now to consume more memory to get more speed. Computers often have many cores now as well, also changing the equation at times.

The cynicism for battery teach research is misplaced. In our lifetimes we have seen real enormous strides in battery technology actually go into production. LFP batteries are now in actual Teslas, provider a cheaper/safer/simpler option for lower range cars that depend on fewer exotic materials/mining. Sodium batteries are in the pipeline. Sulfur batteries may or may not make it too.

In general in Rust game engine culture right now there is a strong trend towards using entity component system based design. Sometimes this is a definite good thing, for certain kinds of games it can have benefits both for performance and coding niceness. Entity component systems also play nicely with Rust's borrow checker.

But, in my half educated opinion, it creates a massive amount of unnecessary complexity for many types of games. If you are making something pretty basic like pong/pac man/ simple 2d rpgs, etc, you just have all this infrastructure and all these new paradigms when all you wanted was a way to efficiently load and draw sprites and play sounds.

Yes the idea is perfectly sensible, the issue is that such schemes are probably a practical impossibility for humans to implement and police in a such a way that we achieve the goals or reducing co2 output, rather than just achieving a way for people to game the system for profit.

Even if everyone involved operated with good faith, even accounting accurately for the co2 externalities accurately is very difficult, and you can be sure a huge percentage of people will not be acting in good faith.

frank,

The article is not clear on what the 3 degree rise refers to, but looking at data on colorado river temperatures over time, they may be referring to that, as they have gone up about that much according to other sources. They are certainly not referring to global mean surface temperatures.

I see Rust with a lot of potential, especially if/when it moves into domains like aerospace and other control of critical physical hardware. These are places where a reduction of bugs saves lives and/or huge amounts of money.

Machine learning definitely has potential, if we have another surge of breakthroughs in the future amazing things will become possible

Something I would like to see is a movement for software user rights. Between hardware that locks you into to the manufacturers store, and software that is constantly interrupting you and pushing ads at you instead of allowing you to do your work, some kind of social movement to push back against these UI dark patterns is sorely needed. Using computers is absolutely horrible compared to what it could be because of these issues.

Hmmm, in America the most common intervention is AA, whose doctrine is that willpower alone is not sufficient, that you must appeal to a higher power. We also know this intervention isn't any more effective than someone just trying get over it on their own, yet it persists, and is even court ordered often. There will be replies to this post about how AA "worked for them" or something to that effect. Which doesn't mean anything.

My brother struggles with alcoholism and has been on and off the horse, with AA as the main thing all the time. The primary impact it seems to have on him is that all he wants to talk about is AA and alcoholism. It becomes his identity. "Alcoholics do this, alcoholics do that, alcoholics are like this". If I thought that was helpful then fine, but it seems more rewarding identities would be possible and less limiting.

They have been using the same rocket for like 30 years. I'm not sure they are organizationally equipped to innovate anymore. Similar to the standard NASA contractors, who are rearranging shuttle parts to make the SLS and costing and order of magnitude more than even SpaceX's outlandish experiments from scratch.

Also its entirely possible the cost of a Soyuz launch is cheaper than a Falcon9 despite re-use, due to it being used for so long and slightly smaller.