HNHacker News
TopNewBestAskShowJobs

gameswithgo

10,455 karma · joined February 2, 2018

I am currently teaching programming on twitch via a series of small game-related projects. http://gameswithgo.org/
submissionscomments
gameswithgo··on Trivia About Rust Types
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.

gameswithgo··on Trivia About Rust Types
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.

gameswithgo··on Apple Unveils M2
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.

gameswithgo··on DDR5 RAM prices crashed by 20% in May
32 is thin only if you have highly specialized workload. Its enough for all games and even pretty hardcore software development.
gameswithgo··on DDR5 RAM prices crashed by 20% in May
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
gameswithgo··on Elon Musk Tesla email: Remote work is no longer acceptable
Seems more like the natural progression of Elon turning into a boomer stereotype.
gameswithgo··on The Go Programming Language and Environment
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.

gameswithgo··on The quest for fusion energy
What other process do you propose? A steam turbine is the best way we know how.
gameswithgo··on Stars in distant galaxies are typically more massive
Current belief is many elements can’t be made by supernova and would require neutron star collisions
gameswithgo··on Lucid recalls all of its 2022 Air EVs
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.
gameswithgo··on What Ever Happened to Scandium Bike Frames? (2016)
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.
gameswithgo··on HP Dev One Laptop with Pop_OS
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
gameswithgo··on Solid-state cells will cut EV charging time and increase volumetric density
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.
gameswithgo··on Go will use pdqsort in next release
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.
gameswithgo··on Forgetting a Child in a Car Is a Horrifying Mistake. Is It a Crime? (2009)
When our kids were little it was something I worried about a lot because I can absolutely imagine myself doing it. I would never support punishing a parent further because of an accident. There but for random chance goes any of us. (or at least many)
gameswithgo··on Ask HN: What’s a good laptop for software development at around $2k?
Framework laptop. I think the concerns about it being beta are unfounded, the few quirks it has are also had by Lenovo/Dell etc but you don’t have a discerning userbase talking about a single model so much.
gameswithgo··on James Webb telescope's coldest instrument reaches operating temperature
The two most recent large US mars rovers, and James Webb all seemed way too complex to ever work. All 3 worked!

Shows what I know.

gameswithgo··on Stabilization of gamma sulfur enables 4000 cycle Li-S batteries [pdf]
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.
gameswithgo··on Bevy 0.7: data oriented game engine built in Rust
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.

gameswithgo··on NASA will test SpinLaunch's ability to fling satellites into orbit
To temper your enthusiasm some:

They cannot fling things to orbit, they can fling things very fast but a (smaller) rocket is still needed to finish getting to orbit.

and G Forces are extreme so this is only suitable for payloads that don't mind extreme G forces.

gameswithgo··on I liked the idea of carbon offsets until I tried to explain it
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.

gameswithgo··on Single-chip processors have reached their limits
It is commonly said that on the new M1 macs, that the ram is on the chip, it is not. It is on the same substrate, but its just normal (fast) dram chips soldered on nearby.
gameswithgo··on OpenMW becomes a general-purpose engine for isometric RPGs
and Godot is actually free, but all of these are very general purpose, there is a lot of value in very specific engines for specific types of games, and we may see more of that in the future I think.
gameswithgo··on An unsolved math problem on the Colorado River
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.

gameswithgo··on Reinstating our SAT/ACT requirement for future admissions cycles
Is the current push back against coding tests in job hiring perhaps similar to this push back against the SAT?
gameswithgo··on Ask HN: Software with biggest potential for positive impact in 5 years?
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.

gameswithgo··on Alcohol-related deaths spiked during the pandemic, a study shows
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.

gameswithgo··on OneWeb will resume satellite launches with SpaceX as the launch provider
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.

gameswithgo··on OneWeb will resume satellite launches with SpaceX as the launch provider
Russia did the same thing in Afghanistan shortly before! With the same result!
gameswithgo··on OneWeb will resume satellite launches with SpaceX as the launch provider
If OneWeb wins, SpaceX makes a ton of money launching for them, and doesn't have to bother running an internet company.
Page 1 of 34Next →