Readit News logoReadit News
apk-d commented on Human Hibernation Is a Real Possibility   theatlantic.com/health/ar... · Posted by u/gozzoo
war1025 · 5 years ago
Also the bit about "Astronauts would need a tube surgically implanted in their abdomen to remain fed during their hibernation"
apk-d · 5 years ago
I'm confused about that part. There's cases of people living without food for many months, given enough stored body fat. I'm assuming there's a reason for the surgical approach (you still need water and supplements), but I think the article isn't clear on what it is.
apk-d commented on Classic Calculator Was Reverse Engineered from the Bare Metal   spectrum.ieee.org/geek-li... · Posted by u/samizdis
thaumasiotes · 5 years ago
> The Sinclair Scientific was able to reduce complexity by using reverse Polish notation, in which mathematical operators come after the numbers they are operating on—for instance, “5 + 4 =” becomes “5 4 +.”

This is a great example of a place where you shouldn't use punc-quote formatting. There is no . key on the calculator, but that's not obvious while you're reading the article.

apk-d · 5 years ago
Maybe my monkey programmer brain is broken already from doing syntax parsing all day, but I can never imagine any context where this formatting makes sense. I always place quotation marks "like this". The other way is not even consistent with the conventional parentheses placement (like this).
ResidentSleeper commented on Stack Overflow reduces global workforce by approximately 15%   stackoverflow.blog/2020/0... · Posted by u/nsoonhui
TheSpiceIsLife · 5 years ago
I think you’re missing my point.

The CEO likely doesn’t give a hoot about HN’s opinion.

They probably care about their bonus and how it all advances themselves on their career path.

ResidentSleeper · 5 years ago
> They probably care about their bonus and how it all advances themselves on their career path.

That doesn't sound anything like the priorities of a competent CEO. I think you're missing my point, too.

ResidentSleeper commented on Stack Overflow reduces global workforce by approximately 15%   stackoverflow.blog/2020/0... · Posted by u/nsoonhui
TheSpiceIsLife · 5 years ago
> new CEO is an incompetent person who decided to use the vehicle of the covid virus to announce job cuts that he has planned a long time ago.

Why would that indicate the CEO is incompetent?

Doesn’t it stand to reason that management would and should take advantage of the whatever is happening in the wider scheme of things to advance their narrative, and that doing so is indicative of competence within their frame of reference?

ResidentSleeper · 5 years ago
Take a look around this comment section. This move isn't being received well by anyone and nobody is buying his bullshit. That, and mass layoffs are typically an excellent indicator of incompetence.
apk-d commented on Java Feature Spotlight: Text Blocks   infoq.com/articles/java-t... · Posted by u/chhum
ygra · 5 years ago
There's plenty of contexts where the extra indentation doesn't matter, though. And C#'s verbatim strings, at least when it comes to multiple lines, have the benefit of being extremely predictable in what ends up in the string (everything, including whitespace). They also have other uses that Java doesn't even address, like not interpreting escape sequences inside the string.

I'm not sure you can really compare them. They're two different features with fairly different uses, it's just that one or two of those uses somewhat overlap.

apk-d · 5 years ago
They're comparable in the sense that I'm guessing C# is unlikely to get yet another string declaration syntax, so we're stuck with what we've got. Regarding predictability I definitely agree, but good syntax highlighting would help with that.
apk-d commented on Java Feature Spotlight: Text Blocks   infoq.com/articles/java-t... · Posted by u/chhum
looperhacks · 5 years ago
The difference between Python and Java is that the following (Python):

    text = """hello
              world"""
will contain the intendation before world, while in Java:

    String text = """hello
                     world"""
will be equivalent to "hello\nworld".

apk-d · 5 years ago
I wish that's how C# handled it! There are verbatim string literals that support newlines, but in practice, most of the time I see people stick to regular string concatenation because it ruins code indentation/alignment. That's how Rider chooses to refactor code when you insert a newline as well. Multi-line verbatim strings begin to get useful around the point where you should be probably loading your text from some resource instead of embedding it in the source.
apk-d commented on OCaml is Pretty Great (2019)   blog.chewxy.com/2019/02/2... · Posted by u/lelf
jchw · 5 years ago
Interesting but I find myself confused. There is not really much discussion about what kinds of implications these metrics might have in practice and what the limitations of this analysis are. Obviously the goals of programming languages vary, and outside of esoteric languages few really strive to be very terse. It seems at least a bit odd to me , then, to make value judgements based on this.

Hate to be a wet towel, since it is interesting. But does it actually mean anything?

apk-d · 5 years ago
When it comes to picking criteria to compare languages with, performance and succinctness have the advantage of definitely having a large impact on developer productivity/happiness (same thing tbh) while being (relatively) easily measurable.

Having recently jumped ship to a language/runtime that gives up to several orders of magnitude of performance speedup while maintaining similar verbosity, I appreciate the many opportunities this opens. I can write "lazy" code that pretty much always runs (way) faster than the stuff I used to carefully optimize. Perhaps the last metric I'd be interested in is the a number of bugs in the average codebase, and while I've seen language comparisons for that, I'm not sure whether to believe that they're accurate.

apk-d commented on Intel's flagship 10th-gen desktop CPU has 10 cores, reaches 5.3GHz   engadget.com/intel-10th-g... · Posted by u/redm
skocznymroczny · 5 years ago
Factorio is an indie game, I guess it might not be easy for indie developers to make use of multithreading, whereas AAA game developers have entire teams dedicated to engine development and multithreading.

Anyway, traditional graphics APIs like OpenGL are practically single-threaded. Modern APIs like DX12 and Vulkan have been designed with multithreading in mind and support scaling with number of cores much better (with added overhead of having to do manual synchronization).

apk-d · 5 years ago
> AAA game developers have entire teams dedicated to engine development and multithreading

Unity has been introducing a lot of features (Job System, ECS) that make excellent use of parallelism. Additionally, a lot of the engine internals are being rewritten with that as a base (and some of the old features get patched with APIs that allow access from multithreaded jobs). It's a lot of fun when the code you write by default runs on all of the cores, with (almost) none of the usual parallel programming headaches.

Pretty soon you should start seeing all kinds of indie titles making use of those features.

apk-d commented on 68 Bits of Unsolicited Advice   kk.org/thetechnium/68-bit... · Posted by u/ericzawo
GuB-42 · 5 years ago
> Don’t be the best. Be the only.

No, if you are "the only" you are going to do that for the rest of your life.

Also, it is at odds with the second previous point "Hangout with, and learn from, people smarter than yourself". You can't have people smarter than yourself if you are the only.

And it is at odds with all the other points promoting sharing and generosity too. If you are the only, it means you didn't share your knowledge.

apk-d · 5 years ago
I still think it's very good advice. Barely anyone bothers to share their knowledge, and even less people manage to communicate it effectively. In this context, if you put any amount of effort into sharing, you're probably already "the only" among your close peers.

Just because you're "the only" doesn't mean you're the smartest person in the room. You might, however, have the knowledge in the right areas that makes you indispensable. For example, I often find myself to be the only person around with enough knowledge in the areas of graphics, design and programming to combine them effectively. I might not even be particularly talented in any of them, but very often I'll be the only person capable of knowing how to complete certain tasks.

u/apk-d

KarmaCake day369April 18, 2017View Original