Better HN
topnewbestaskshowjobs
Log inSign up

brokencode

3,309 karma · joined Mar 26, 2015 (11y ago) · 825 submissions

Submissions

comment 5y ago · link · parent

What an insightful point! Maybe I should eat nothing but candy, smoke cigarettes, and go into bright sunlight with no sunscreen everyday. Who cares if I get diabetes or mouth, lung, or skin cancer!

Or maybe I can just take basic precautions like eating more than three different foods? You make it sound like that is such a burden, but it really isn’t. It’s possible to enjoy your life even while taking care of yourself.

In fact, I have a much easier time being happy when my health is good than when I am sick, so I’d say these precautions are important for a good life.

comment 5y ago · link · parent

“Not even a question that should come up” is a pretty sour attitude to take in general, and I don’t even think you’re right.

Fiber does have a health impact as you say, and having good health is one of the main ways known to delay death. And what is survival but the delay of death?

My point is that by eating a larger variety of nutritious food, you are less likely to suffer from poor health due to a lack of something you need.

comment 5y ago · link · parent

I think eating the same thing every day is fine, though you need to make sure to have a balanced diet with good nutrition. The author mentioned his uncle who just ate bread, butter, and cheese for every meal, and I’m not sure how you can even survive off of that. Surely it’s lacking something important with no fruit or vegetables.

I’ve heard that humans had a long period of time after we became sedentary and started relying on agriculture that the average height decreased significantly, and it was only in recent centuries that it has gotten back to normal due to more varied nutrition. So even if you can technically survive on a very limited diet, it can still have negative effects.

comment 5y ago · link · parent

It’s easy to rationalize yourself into this kind of opinion when you know there would be a monumental amount of work to get to 64 bit. I know this blogger is respected and the post influential, but that doesn’t make him right. Notably absent in his post is any kind of benchmark or data to support his opinion.

Meanwhile, are there any examples of modern applications being written in 32 bit for performance reasons? Not that I can think of, or at least nothing that is meant to run on a 64 bit PC.

There’s a lot you can do with extra memory headroom, especially when developers usually have 16 or 32 GB to work with.

comment 5y ago · link · parent

64 bit is an improvement IMO. If the main process has more memory to work with, then it’s easier to keep things in memory and in a single process where you don’t have to incur IPC overheads.

As mentioned elsewhere, the switch does increase pointer sizes, but I’d be very surprised if that is significant compared to the amount of memory used by strings and other data.

comment 5y ago · link · parent

Stutter is becoming much less of a factor with variable refresh rate display technology. Modern consoles, TVs, and many monitors are being built with VRR these days, and in a few years it will probably be ubiquitous.

Unless you have a highly optimized game, you are probably not able to consistently run at a 144 Hz monitor’s native refresh rate anyway, so even without skipping frames you will see stuttering. VRR solves this problem as well.

comment 5y ago · link · parent

GC can be very efficient when considering the average cost over time, and is faster than reference counting for instance. It also can have nice features such as heap compaction which you can’t easily do with manual memory management.

But the main thing most folks have problems with is the random latency spikes you get with GC. The GC can start at any time in most languages, and might stop all threads in your program for maybe dozens or hundreds of ms. This would be visible to users if you are rendering frames at a constant rate in a game, since each frame takes only around 16 ms in a 60 FPS game.

That’s what’s exciting about changes like what they are doing with ZGC. They are saying the max garbage collection time is 0.5 ms in normal situations, and the average time is even lower. Most games can accommodate that without a problem.

FYI, this is also important for web servers as well. Some web servers have a huge amount stored in memory, and the GC could take hundreds of ms or even multiple seconds to collect at random times in extreme cases. This can make a web request take perceptibly longer.

Also, if you have multiple machines communicating with one another and randomly spiking in latency due to GC, then worst case latency can add up to pretty terrible numbers if you are not careful.

comment 5y ago · link · parent

It’s all about prioritization. What will our customers be more upset about if we don’t do?

You can lessen the problem by reducing your scope or hiring more developers (with caveats), but at the end of the day, a single developer can only do so much work, no matter how competent and motivated they are.

comment 5y ago · link · parent

This and other posts have a very negative tone about the state of software development, as if the developers are stupid or lazy for not fixing annoying bugs.

As a developer myself, I can say that this kind of thing is usually the result of the developers being under immense pressure to finish an important project, leaving them no time or energy to even think about minor or moderately annoying bugs unless customers start pulling out their pitchforks.

comment 5y ago · link · parent

Turns out “???” was to write a popular blog post about the fix that stirs up a minor controversy and gets noticed by Rockstar.

comment 5y ago · link · parent

I’d attribute that to the other person playing the audio out of their computer speakers while using a mic that is not directional enough to filter it out.

comment 5y ago · link · parent

Pretty much every large company will play nasty when it suits them and if they think they can get away with it. That’s why they call it “corporate warfare”, not “corporate hugs and kisses”.

comment 5y ago · link · parent

I think this is really cool, and it elegantly brings together some pretty advanced features from FP and OO into one purely OO language. The only thing I’d like to see more about is how immutability would be handled, because that is harder than it sounds in OO.

And for all of you saying this is basically just Kotlin or Swift.. do those languages have higher-kinded types or true multiple inheritance? Not as far as I can tell. And you could argue those aren’t needed, but that does mean this is a different language with potentially different pros and cons.

comment 5y ago · link · parent

I don’t look at BBC news much, but now looking at its website, I have to agree with you that there is too much of this kind of content there. Its home page has articles about flying ships, eggs, and pterodactyls.. it does look like they are hitting a pretty low bar across the board, so maybe you’re on to something.

comment 5y ago · link · parent

Wow, what a toxic attitude you have towards journalists. This is a fluff piece, not a serious piece of investigative journalism. The bar does not not need to be very high for this kind of article.

comment 5y ago · link · parent

You can’t just change the words and intent of a joke and use that to argue against the original joke. Of course whether a joke is funny depends on the audience’s point of view.. that’s comedy 101.

What the author was saying really isn’t very contentious if you stop and think about it. Mobile games are a time sink and are often used as a distraction from stressful thoughts. The same is true for other video games, but the author’s view on that isn’t mentioned.

If you think that every humorous statement has to be so clean and pure that nobody takes offense, the I hope you like dad jokes, because that’s about all that’d be left.

comment 5y ago · link · parent

Lighten up. Not everything needs to be stuffy and professional. This is an open source project, and if the author wants to include a funny and clearly sarcastic critique of society in the documentation, then that’s up to them. It’s not like this is offensive or NSFW or anything.

comment 5y ago · link · parent

Successful people and businesses can be wrong. You are not making a case for why those development practices are okay, but are simply appealing to authority.

I and most other customers would argue that 6 minute loading times are atrocious, and if there is an easy fix like this, it makes me lose a lot of respect for the developer who doesn’t fix it. It maybe would even make me avoid them in the future.

A reputation is built over years, but can be lost pretty much instantly. Companies have to continue serving their customers to enjoy ongoing success.

comment 5y ago · link · parent

I think that’s a good explanation. Literature can help persuade emotionally when people are otherwise not willing to change their mind based on a purely rational argument.

But what if you already agree with the author to begin with? Then it would seem less profound. Maybe that’s why I haven’t experienced any revelations yet from literature.

Perhaps I can find a great piece of literature I disagree with and it would leave me with a greater appreciation for art.

comment 5y ago · link · parent

Sure, but is your argument that I should enjoy great art simply because it’s considered great? Surely there are reasons even for art.

comment 5y ago · link · parent

Uh, of course I’ve enjoyed those things. And I’ve enjoyed many books too. I’m saying that the idea of critical reading of books seems pointless to me, because I see them only as entertainment.

I also don’t really enjoy puzzles, so if a book is a puzzle to figure out, and people enjoy the act of decoding them for its own sake, then I can see what I’m missing.

I do like solving technical problems, and that’s why I’m a programmer, but I don’t really get much enjoyment from solving problems that wouldn’t benefit me or others to solve.

comment 5y ago · link · parent

That’s a pretty weak argument. You are saying that I should invest time and effort into a book to understand it, but also that the purpose of literature is not information.

What is there to understand then, if not information? I always hear the author is making a point about life, but why water it down in hundreds of extra pages instead of saying it directly?

The only thing I can think is that the story helps us connect with the author’s point and learn from it better. It can influence and persuade in a way that just laying out arguments can’t, because it stirs up emotion in the reader. Is that what you are trying to say?

I can’t say that I’ve ever experienced something like that from a book, but it sounds enjoyable. Maybe I’ll give it another shot sometime.

comment 5y ago · link · parent

Am I the only one who thinks most novels are 90% fluff? Like, they can certainly be entertaining, but the idea of the author making an argument that you need to decode and become enlightened by sits with me the wrong way. Why not just come out and say your points in a condensed form without the story around it?

Does it improve learning to have to decode information from a novel? Does it stick with you better, or make a more relatable case?

The same is true for most non fiction books. Endless stories and examples for something you could have said in 10 pages.

This is why I prefer articles, blog posts, etc. I want to learn, but don’t want to spend hours reading fluff. I enjoy TV shows for entertainment, and don’t feel the need to decode them, because I don’t believe there would be anything in there that isn’t the 50th variation of something I’ve heard before.

Am I missing out on incredible revelations? Upon reading a great book, I’ve never felt enlightened, even when prodded to analyze it in school. Maybe I haven’t tried hard enough, or maybe the point is lost on me, but it just doesn’t seem as worthwhile as so many people claim.

comment 5y ago · link · parent

I think they would. Facebook products are a huge part of any app ecosystem, and without them, Apple customers would be pissed.

Ecosystem concerns aren’t as relevant today, since both Android and iOS have everything you’d want, but in the olden days of Blackberry, Microsoft, and many other mobile operating system vendors trying to compete, they were always seriously hampered by their lack of ecosystem.

comment 5y ago · link · parent

Is it possible to use alternate linkers with Rust? Anything that helps Rust compile faster is pretty cool, especially if it allows better multithreaded scaling.

comment 5y ago · link · parent

I get what you’re saying, and it makes sense why you’d want that. I wonder if you posted on Postgres’s forms or asked one of the devs if they’d have some other ideas about improving performance.

Just at a initial take level, LLVM seems too low level for this kind of usage to me, and it doesn’t seem very robust or elegant. From that perspective, it doesn’t seem like something that would get much adoption or support from the Postgres community. I’m no expert in Postgres however, so maybe it would be better than I’m picturing.

Maybe creating a more efficient alternative query language would work, or a system for adding hints to your query about how it should execute. Like if you could specify in low level terms how you think it should work, and the database would feel free to ignore those hints or change any part if necessary because some internal data structure changed.

comment 5y ago · link · parent

Knowing exactly what query plan you want is not as easy as it sounds. That depends on all the indexes and internal data structures at the database’s disposal. These can change at any time, and you’d need to update your query plan to match.

Also, using raw LLVM, it seems like you could do all kinds of things to shoot yourself in the foot, such as breaking ACID guarantees or failing to properly update indexes.

That’s always the trade off with databases. More speed for less safety. Even fancy SQL databases that like throwing around claims about ACID don’t usually enable the full ACID guarantees by default for all transactions due to performance reasons.

If you want low-level control, then maybe a NoSQL database would be better suited to your needs. But otherwise, I think improving the native query planner in SQL would be a better use of resources.

comment 5y ago · link · parent

A microservice architecture should mainly be used to solve runtime issues, such as to improve scalability or fault tolerance. Also, it can be useful in order to adopt new languages or frameworks.

It is not something that should be used simply to clean up your code. You can refactor your code in any way you see fit within a monolith. Adding a network later in between your modules does not make this task simpler.

comment 5y ago · link · parent

I’m not saying police aren’t a crime deterrent, and I don’t support the idea of defunding or vilifying the police as a whole. I do support common-sense reforms to reduce the use of force and make police more accountable, though.

I’m saying that it takes a very sick and twisted state of mind to commit violence towards the elderly like this, and it isn’t “normal” crime. It takes real hatred and rage to do something like this.

comment 5y ago · link · parent

Because people think they can get away with it now? You think people are sitting around waiting for the day they can get away with seriously injuring a senior citizen?

I think this is about xenophobia and hatred towards China as a source of the coronavirus, amplified by the former president’s rhetoric about the “kung-flu” or “China virus” as he repeatedly called it.

1
232425
28