Better HN
topnewbestaskshowjobs
Log inSign up

gameswithgo

10,455 karma · joined Feb 2, 2018 (8y ago) · 2,829 submissions

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

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

32 is thin only if you have highly specialized workload. Its enough for all games and even pretty hardcore software development.

comment 4y ago · link · parent

yes, but throughput is rarely a bottleneck for consumer grade cpus. Maybe on the 16 core ryzens you could get some benefit for select workloads

comment 4y ago · link · parent

Seems more like the natural progression of Elon turning into a boomer stereotype.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

What other process do you propose? A steam turbine is the best way we know how.

comment 4y ago · link · parent

Current belief is many elements can’t be made by supernova and would require neutron star collisions

comment 4y ago · link · parent

driving a non plug in hybrid to maximize electric use is not the goal, the goal is to minimize fuel use. The former is at odds with the latter.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

Since the 1950s battery energy density has improved by orders of magnitude, it has been happening and is still happening. Hasn’t stopped these incessant cynical takes though.
12345
95