HNHacker News
TopNewBestAskShowJobs

tomtheelder

2,019 karma · joined July 26, 2016

submissionscomments
tomtheelder··on Please do not attempt to simplify this code
It’s actually so painful to go back to languages without destructuring and pattern matching.
tomtheelder··on Please do not attempt to simplify this code
Yeah you nailed the limitation. Switch type expression that returns a value is a pretty universal feature in expression based languages, often in the form of a pattern matching based expression.

Check out the ‘case’ statement in elixir for an example.

In languages that support it, it usually becomes an incredibly commonly used expression because it’s just so applicable and practical.

tomtheelder··on Please do not attempt to simplify this code
Depends on the language a bit, but a common feature in these languages is the tuple. Using a tuple you would end up with something like:

let (value1, value2) = if (condition) { (8, 16) } else { (16, 256) }

Or else you’d just use some other sort of compound value like a struct or something. Tuple is just convenient for doing it on the fly.

tomtheelder··on Please do not attempt to simplify this code
It’s only an acceptable workaround in the case of two conditions, but you’re still out of luck if you have >2 branches and no match expression.
tomtheelder··on Twitter kills its San Francisco headquarters, will relocate to South Bay
I have never heard anyone in real life call it X.

I do agree that the headline shouldn’t be editorialized, though. “X (formerly Twitter)” at most.

tomtheelder··on StarBook 7 14" Linux Laptop with Intel Core Ultra 7, 4K, Up to 96GB 5.6GHz RAM
I have a keyboard that has this exact arrow key layout and… idk it’s fine? I think within a day I was completely used to it. I’m actually kind of confused what the complaint is with full height left/right. That it’s harder to locate them by touch?
tomtheelder··on 77% of employees report AI has increased workloads and hampered productivity
I think it’s just an expectations question. Current gen models are a relatively minor productivity enhancer on the margin. Orgs that treat it as such are yielding the benefits. Those that think it means they can get 20% extra out of their existing workforce… are not.
tomtheelder··on Kawaii – A Keychain-Sized Nintendo Wii
You can what now?
tomtheelder··on In Praise of 5-Over-1 Buildings (2019)
It’s debated, but the prevailing belief is that it originated to refer to the number of stories. Hence you’ll also see “5-over-2” used fairy commonly as well.
tomtheelder··on Rust is not about memory safety
I like Rust a great deal and really enjoy using it, but I also think it's kind of ugly. Like I'm talking surface level aesthetics, purely subjective. I can't quite put my finger on why. I think it's to do with the heavy use of special characters?
tomtheelder··on In Colorado, an ambitious new highway policy is not building them
Absolutely, but that’s not a problem intrinsic to bicycles like it is to motorcycles, so I don’t think this comparison is meaningful.
tomtheelder··on In Colorado, an ambitious new highway policy is not building them
I think the argument is a little different. I’d say the best framing of it is that we have sacrificed every other method of transportation at the altar of personal cars. Building for cars is what has made every other option shitty.

So it’s not so much that just make driving cars shitty for no reason as it is that you _have_ to make driving shitty if you want to unshittify walking/biking/transit.

tomtheelder··on Show HN: Slipshow – A presentation tool not based on slides
If I'm understanding it correctly, I think it renders your presentation to an html file that you can just open in a browser. I assume the effects and transitions are all powered by embedded JS. So it should be portable.
tomtheelder··on The Rise of the Forever Renter Class
> The work from home "revolution" only touches a very thin layer of people, most people with jobs still need to show up physically every day.

I also think that it's a mistake to think that only jobs drives urbanization. Don't get me wrong, it's a huge factor, probably the biggest, but it's not the only reason.

Most of my peers now work full time remote, but they nearly all still live major metros. Some have moved from one metro to another. Only very few have left for more suburban or rural settings, and in those cases the motivation has almost always been reducing cost of living.

A lot of people live in cities simply because they want to.

tomtheelder··on Leaving Rust gamedev after 3 years
Absolutely agree. I think people saw that a lot of games are written in C++ and got confused into thinking that the right thing to do is to build your entire game in a systems language. The fact that we have games written entirely in C++ is mostly just due to the enormous amount of inertia that game engines have, and the fact that many of them have origins that go back decades to a time when the programming language landscape and broader development ecosystem were completely different.

And now, the most popular generally available game engines right now are: Unity - C++ in the engine, C# for game code Godot - C++ in the engine code, GDScript or C# for game code Unreal - C++ in the engine code, somewhat mangled C++ for game code BUT with also one of the most capable and widely used visual programming setups I have ever seen

I wouldn't be surprised if the "next great game engine" had a Rust core and some other language- I mean why not C# at this point?- for game code.

tomtheelder··on Cancer under age 50 increased 80% from 1990 to 2019
Low in milk??
tomtheelder··on Picotron Is a Fantasy Workstation
Do you have any examples? I’m pretty curious about Picotron, but would love to try an OSS alternative.
tomtheelder··on The Bevy Foundation
Last time I was using Bevy I had a cleanup system to solve exactly that issue. It queried for entities with the AssociatedWithState component, or whatever I called it, and destroyed any where the was a mismatch.

I could see an efficient version of that being a nice thing to have built in, though. It’s definitely a very common thing.

tomtheelder··on Sora: Creating video from text
I really don't think that's true. Essentially the argument is that these models are more or less just outputting the work of others. Work already done- not theoretical future work, which is what people usually criticize new technologies for.

The question here is really about whether it's sufficiently transformative, or whether that's even the right standard to be applied to generated media.

tomtheelder··on Handwriting but not typewriting leads to widespread brain connectivity
I did sort of the opposite. Used to do all typed, now I do both. I make a distinction between notes, which are ephemeral and for memory and quick reminders, and documentation, which is for long term reference. Notes are on paper, documentation is on my computer. I find it's actually a really helpful distinction to make at time of recording.
tomtheelder··on Has LA cracked the code for building affordable housing?
Neither the article nor the comment you are referring to were talking about government housing.

And you’re entitled to not want to live in a dense urban environment, but you might need to open your mind to the idea that not everyone feels the way you do.

tomtheelder··on Why Elixir Is the Best Language for Building a Bootstrapped, B2B SaaS in 2024
I assume the original language of the codebase
tomtheelder··on Plastic bag bans work
I responded to a sibling comment, but basically I think that study sort of misses the point. The reason to move away from plastic bags is due to plastic waste and microplastics, and the study doesn't touch on that really at all. Their analysis is based on stuff like ozone depletion, eutrophication, resource depletion, and other things that just aren't really meaningfully impacted by shopping bag material choice.

I don't think it's FUD exactly, I think it's just a bit of a weird analysis that focuses on the wrong things.

tomtheelder··on Plastic bag bans work
Yeah I've never been a fan of that study. They take a bunch of categories where the bags basically all have negligible impact regardless of material (ozone depletion, ionizing radiation, etc) and compare them on those without using a particularly reasonable weighting scheme. And in all those categories, none of them really have anything to do with the actual reasons we want to move away from plastic bags (terrestrial and oceanic plastic waste, microplastics in water sources, etc).

I guess I think it just sort of misses the point. It's like if they were to say "oh we should keep burning fossil fuels instead of solar because solar uses 1000x more land" but then didn't mention or compare CO2 emission.

tomtheelder··on Report on the role of standardized test scores in undergraduate admissions [pdf]
SAT/ACT for high achieving students means months of prep/studying and practice test taking. It ends up being a ~somewhat~ similar experience to a college class. Not really similar to humanities classes that depend on discussion section and papers, but if you squint enough it kind of looks like some STEM classes.
tomtheelder··on Plastic bag bans work
I feel like cotton canvas ones should be the thing we move toward. No plastic, and they last for so long. Never had one wear out before.
tomtheelder··on FDA says 561 deaths tied to recalled Philips sleep apnea machines
I think there’s plenty of reason to be concerned about microplastics, but not necessarily. There are plenty of fine particulates that you could eat to no ill effect which are very harmful if inhaled.
tomtheelder··on Amazon and iRobot call off their planned acquisition
Is yet another company getting hoovered up by Amazon better for society than it going out of business? Honestly I don't know that's as obvious as you're making it sound. Hyper consolidation is arguably the biggest economic issue facing developed economies right now.

IMO there's no valid reason to allow a company the size of Amazon to make acquisitions, and instead the conversation should be about urgently trying to break Amazon up.

tomtheelder··on Amazon and iRobot call off their planned acquisition
I'm firmly of the belief that they are negative value in most cases. Consolidation is an economic and social disaster. It's slowly been choking us out for decades. Certainly I think a corporation the size of Amazon making an acquisition is always negative value.

I think they should be assumed harmful, and burden of proof should be on the acquirer to demonstrate public good.

tomtheelder··on Apple announces changes to iOS, Safari, and the App Store in the European Union
Surely the only added complexity is in blocking other browser engines.
← PreviousPage 2 of 19Next →