Readit News logoReadit News
EPWN3D commented on The GitHub website is slow on Safari   github.com/orgs/community... · Posted by u/talboren
gloosx · 2 days ago
Slack is one the most slick and pleasant pieces of software to use. It's big success as well as the fact that it's acquisition cost was one of the largest software deals ever – tells of itself – it's certainly a fine piece of software made by fine engineers who used react and electron with a certain amount of dignity. People who rant about tools like react or electron affecting their performance just don't want to understand that it's organisation and people behind the tools who are responsible for their performance.
EPWN3D · 2 days ago
Slack is the best of a bunch of trash options. That doesn't make it good. I shouldn't be able to accidentally select every widget in an app as though it were text. But with Electron apps, that's just normal.

Slack puts a nicer shade of lipstick on the pig than Teams does, but the lips still belong to the same thing.

EPWN3D commented on The ROI of Exercise   herman.bearblog.dev/exerc... · Posted by u/ingve
ants_everywhere · 6 days ago
Every life long runner I know has had a serious knee problem or other injury.

But I think running is higher impact on the body that a lot of of other exercise. You're putting your full body weight on a small area several times a second for many minutes every day.

EPWN3D · 6 days ago
If that's what you're doing, you're not running correctly. Keep your knees bent so that the shock goes up to your gluts and hips.
EPWN3D commented on The ROI of Exercise   herman.bearblog.dev/exerc... · Posted by u/ingve
donatj · 6 days ago
> Less pain

Is there anything to back this up? The people I know who work out are always complaining about their muscles and joints.

EPWN3D · 6 days ago
In my case, it's "good" pain. If you exercise regularly, you're going to be sore a lot of the time, but you grow to like it. It's a reminder that you worked hard and not really debilitating.
EPWN3D commented on The ROI of Exercise   herman.bearblog.dev/exerc... · Posted by u/ingve
lazarus01 · 6 days ago
I can share a very simple incentive for exercise.

As you age, you will lose lean muscle and bone density. But you do have some control in maintaining a healthy level of strength for your elder years.

You can maintain strength and density by engaging in resistance training.

The total amount of training required is up for debate. I follow Dr. Peter Attia and he discusses needing about 1 hr a week of resistance training.

The other aspect of maintaining strength is protein intake. Dr. Attia describes it as a “chore”, that is to consume 1g of protein supplement for each pound of body mass. That’s a lot!

Think about your future, do you want to be strong and mobile into your later years? I see older unhealthy people walking the streets and don’t envisage myself letting that happen.

You must take good care of yourself and put in the time to exercise and eat properly.

EPWN3D · 6 days ago
Yep this. Every time I see an old person who can't walk normally or without a walker, is really overweight, etc., I tell myself that's not going to be me.
EPWN3D commented on Ozempic shows anti-aging effects in trial   trial.medpath.com/news/5c... · Posted by u/amichail
leidenfrost · 24 days ago
But it's not.

What you're referring to, is the basic concept of thermodynamic calorie in/calorie out. Yes, you can "just" reduce food and lose weight if you hit deficit numbers.

But if you don't do it correctly, you'll feel like trash, you'll suffer bad cravings, and put yourself in a stressful mental situation for days, possibly putting your job at risk.

You have to:

- Eat less than what you're already eating

- But enough to nourish yourself so you keep being in good shape for your work and hobbies

- Manage hunger

- Make the change sustainable so you can keep doing it for the rest of your life.

It's specially hard when your work is entirely sedentary, you live alone and, ironically, when you have a salary that let's you order food every day.

A lot of people don't have it hard. Maybe because they have someone cooking for them at home, because they meal prep the entire week, or because their work is so physically intensive they can just wing it and burn everything with what they need to do for a living anyway.

EPWN3D · 24 days ago
The first law of thermodynamics applies to closed systems, which your body is not. Yes it is true that, very broadly speaking, eating more results in weight gain past a certain point. But first principles are not the most proximate reason for that by a long shot.
EPWN3D commented on Operating system kernels could return multiple values from system calls   utcc.utoronto.ca/~cks/spa... · Posted by u/ingve
EPWN3D · 2 months ago
I mean... of course they can? It's just software.
EPWN3D commented on Show HN: A continuation of IRS Direct File that can be self-hosted   github.com/openfiletax/op... · Posted by u/elijahwright_
EPWN3D · 2 months ago
Would absolutely love a command line. Maybe if I ever get free time and feel like dusting off my Java.
EPWN3D commented on I write type-safe generic data structures in C   danielchasehooper.com/pos... · Posted by u/todsacerdoti
o11c · 2 months ago
For your level 2 code, `uint64_t data[];` is wrong for types whose alignment is greater than `uint64_t`, and also wasteful for types whose alignment is smaller (for example, under an ilp32 ABI on 64-bit architectures).

For your level 3 code, it should be `int main() { List(Foo) foo_list = {NULL};`

Note that working around a lack of `typeof` means you can't return anything. Also, your particular workaround allows `const`ness errors since `==` is symmetrical.

You can't safely omit `payload` since you need it to know the correct size. Consider a `List(int64_t)` and you try to add an `int32_t` to it - this should be fine, but you can't `sizeof` the `int32_t`. Your code is actually lacking quite a bit to make this work.

=====

There are 2 major limitations to generics in C right now:

* Delegating to a vtable (internal or external) is limited in functionality, since structs cannot contain macros, only functions.

* Delegating to an external vtable (mandatory to avoid overhead) means that you have to forward-declare all of the types you'll ever use a vtable with. So far the best approach I've found is to declare (but not define) static functions in the same forwarding header I declare the typedefs in; note that GCC and Clang differ in what phase the "undefined static" warning appears in for the case where you don't actually include that particular type's header in a given TU.

(think about writing a function that accepts either `struct SizedBuffer {void *p; size_t len;};` or `struct BoundedBuffer {void *begin; void *end;};`, and also const versions thereof - all from different headers).

EPWN3D · 2 months ago
I would love for `union`s to be federated, that is, a type could declare itself as thought it was part of a union with another type, without having to pre-declare all possible types in one place.
EPWN3D commented on AGI is Mathematically Impossible 2: When Entropy Returns   philarchive.org/archive/S... · Posted by u/ICBTheory
Workaccount2 · 2 months ago
We understand and build the trellis that the LLMs "grow" on. We don't have good insight into how a fully grown LLM actually turns any specific input into any specific output. We can follow it through the network, but it's a totally senseless noisy mess.

"Cat" lights up a certain set of neurons, but then "cat" looks completely different. That is what we don't really understand.

(This is an illustrative example made for easy understanding, not something I specifically went and compared)

EPWN3D · 2 months ago
We don't know the path for how a given input produces a given output, but that doesn't mean we don't know how LLMs work.

We don't and can't know with certainty which specific atoms will fission in a nuclear reactor either. But we know how nuclear fission works.

EPWN3D commented on Git Notes: Git's coolest, most unloved­ feature (2022)   tylercipriani.com/blog/20... · Posted by u/Delgan
oftenwrong · 2 months ago
Another little-known feature is git trailers:

https://alchemists.io/articles/git_trailers

These are key-value structures data that can be included on a commit when it is created. These are used by some systems for attaching metadata. For example, Gerrit uses this for attaching its Change-Id.

EPWN3D · 2 months ago
Yeah I love trailers. I remember trying to use notes for certain things, and they were just kind of a pain (though I cannot remember exactly what roadblocks I hit). Trailers met my needs nicely.

u/EPWN3D

KarmaCake day374May 23, 2020View Original