skysight-inc/HackerNews huggingface dataset:
> To me, I see the TypeScript tradeoff as coming with only marginal upside, in return for a large downside as described above.

I've coded using static and dynamic types. C#, Java, Ruby, JS, etc. 20 something years doing it, mainly for business applications (opposed to system or embedded). My personal opinion is that types bring an elusive value of control and maintainability. Confronted with legacy / spaghetti code, developers with less experience will bring lint, code style, some layers and ... types, as a way to solve the problem of long term maintainability.

But unfortunately it does not bring that much value. Actually it brings costs to readability and unnecessary abstraction (interfaces, generics, etc) aka "fighting the compiler".

A better test suite can have exponential more value on maintainability than types.

> Static Typing was the most requested language feature in the State of JS survey in both 2020 and 2021. [1]

So when I see static types been the most requested feature I wonder how many of them know how to create a good test suit or a good architecture. If its behind this feature request is a different pain to be solved.

[1] https://github.com/giltayar/proposal-types-as-comments/#comm...
Definitely, ES6 was great and it seems we've ramped up to add as many features as possible, which has produced a lot of churn and unused/hated features. A committee was formed to add new features when needed, and now they... just keep adding and adding even when not needed.
I've lost weight with Noom too. It has the usual things like tracking food you eat and weight but more importantly, it has a strong psychological component to address why you eat. It doesn't shame you into never eating pizza or chocolate, it reframes your relationship with food. I'm not sure if it is setting things up for long term success but it does work in the short term. It focuses a lot on foods that contain a high percentage of water which makes them less calorie dense.
I think you can train your body to deal with it. I used to hike a lot. I realized I felt a lot better while hiking if I didn't eat. I'd get up at say 5am, hike, and not need food until around noon before I bonked. It took work to get there. When I was younger, I'd get hypoglycemia if I didn't snack every hour or so. When I started hiking, I could go about an hour before I'd feel lightheaded. I got sick of it and started pushing through the wall. It was rough, then things started to change. After that, my eating habits changed even when I wasn't hiking. I got down to my ideal weight for the first time in my life at 40 years old.

That weight and the shape I was in allowed me to meet my wife. Unfortunately we like to eat garbage and now I'm back where I started at 47. It was a healthy 5 years though.
Ask HN: Best resources for learning about Russia?
I'm interesting in learning what Russians hear, see and think, preferably from non-state sources as close to regular folk as possible.

Some challenges:

- Freedom of speech is not easy in Russia

- I'm not familiar with Russian news / social / community websites

- I don't speak Russian

Please list any tools, websites, forums, apps or other methods you recommend for getting a feel for the honest thoughts and opinions of everyday Russians.
Technology vs. Tools
There are several IF studies that say this may be the best way to do it. As the rising of the sun triggers some hormones that help process the food. So having an earlier 'window' has more benefits. Not a doctor. But something i have seen in my studies of this.
I was happy to see that this article is actually talking about tensors, not just multidimensional arrays (which for some reasons are often called tensors by machine learning folks).
Refactoring is much easier in a well typed codebase.

When refactoring is easier, it happens more often, which means code quality and readability are higher, which reduces the likelihood of every other kind of error.
After dinner when the weather is better. Spring-fall I try to get out for a walk like that everyday if not a run.

Or cumulatively. When the officemates take a smoke break, I take a 15 minute walk (when the weather is better).
Oddly enough, I've found that weightlifting is completely contrary to my weight loss goals. Lifting makes me ravenous, often in unpredictable ways, which makes it much easier to overeat.

I'm trying to lose a little weight, so after ten years as a huge gym rat, Im currently going once a week just to keep my body functional. It now feels almost trivially easy to eat few, healthy, small meals. Combined with fasting every few days, the lbs are just melting away.
> The way we describe chemicals is usually component based and not functional. H2O and H2O2 look similar but water and hydrogen peroxide have radically different properties. One is good to drink regularly, the other deadly.

I don't think this is a fair characterization.

In inorganic chemistry, the ions do matter. Saying that something contains Fe ions is basically all you need to know; Fe 2+ and Fe 3+ can be easily converted into each other through redux reactions, so distinguishing them doesn't provide value.

If you are honest in your communication, you also distinguish between H20 and H2O2, precisely because they aren't equivalent.

> Then you take this extremely-hard-for-lay-people-to-parse language and try to use it to predict interactions with a human body.

This part I agree with.

Remember the "free radicals" craze of the 90s (or was it early 00's?) Biologists talked about free radicals in the blood being a potential cause of some damage (was it cancer?), and people started to eat food that would bind free radicals, completely ignoring all the chemistry of the digestive system that stands between the food and the blood.

> I'd love to be told I'm wrong, but it just seems like any discussion of these topics is not just fruitless but genuinely dangerous as it's possible, given the lack of a credible causative structure, to convince ourselves of anything.

Basically all research that is published, by its very nature, contributes a small piece of the puzzle. But it's the job of other researchers to interpret that and work towards a fuller understanding, until we have something that is ready for general consumption, both in terms of validating it, and putting it into context.

This is something that we as a society haven't figured out yet. Media loves to report on new science publications, and has a hard time putting the maturity (or lack thereof) and actual impact on daily life into context. But we cannot just blame "the media", we also have to blame ourselves for consuming it.

> I'd love to know the truth about the safety of stainless v plastic v glass etc

I think the only thing we can say with certainty is that things that have been around long enough (like cast iron, clay cooking ware etc.) is most likely safe, otherwise we would have noticed it by now.
In the year 2000, when we got married, I don't think think there was an automated system for doing such a check in India, where my wife was then living. But in the U.S. in 2022, I think it should be possible.
I use google sheets :D because of the flexibility it offers.

It's accessible everywhere already, works good on mobile, so you don't have to haul laptops/tablets when cooking/shopping.

If i need extra notes on some ingredient, i just use some adjacent cell.

But above all - formulas. A lot of recipes lend themselves to calculations. Things like crepes (something superior to pancake) can be narrowed down to exact number of crepes you want. Same goes for ny cheesecake - dial the pan size and ingredients and baking time, temp are modified. Breads are basically fully formulaic so that is also covered.
Are you sure? Don't an attacker need knowledge of the onion address, which is almost unguessable?

But with client authentification that wouldn't be a problem anyways because only chosen clients get access.
You seem very emotional about all this, I must apologise - I simply don't see this. I read the comment as specifying that this is a very specific and unusual hobby, so when people think this about your hobbies you have something to relate to. It is not negative or positive, it is just providing context.
For me it required both dietary and psychological techniques to deal with feelings of hunger.

- During my morning fast if I'm hungry I'll mix two tablespoons of psyllium husk with water and drink it. Fiber helps you feel full and in this form doesn't break the fast https://www.ifbuddy.com/nutrition/does-fiber-break-a-fast/

- Psychologically I remind myself it's OK to feel hungry. I reframed feelings of hunger from a signal that I forgot to eat to a signal that in a few hours I'll need to eat, as if hunting and gathering will take a few hours so my body is telling me to start now :-)
> because it tends to be dominated by younger people illicitly using their older relatives' race numbers

I can't say I've seen evidence of that being a massive problem specifically, though people running under other people's names is an issue more generally.

> (events tend to restrict refunds and transfers)

That isn't just to be difficult. It can affect their insurance, there can be genuine health & safety concerns, and is often enforced by running bodies that the events associate with. Not implementing such restrictions could mean the difference between an event being able to run or not.

Transfers are also an admin faf for the organisers, even ignoring that.

> I'm pretty sure only online cheating detectives pay much attention

I would suggest that this story is a reason to reconsider how sure you are about that?

If nothing else, consider that it being important enough for someone to cheat suggests it is important enough that other people don't want their achievements to be diminished by cheaters.

There are many things in life that only matter to a minority of people, that doesn't mean it is right for someone to stomp over that something for some perverse sense of self-satisfaction. While the trollish mob bullying is going too far by a massive margin, it is not wrong for people to care when someone cheats.
He said, if it were 12000 years old, that would be a massive clue for the Hancock's theories. Well… it's a little bit older. Not what they hoped for.
I spat out my coffee this morning when a CNN news reader commented that because of the 5 trillion that was handed out to people last year, people will be able to fight through this inflationary period. I think we aren't too far away from "thank goodness that the regime printed trillions of dollars for everyone so we can fight through the Putin price hike!"
I don't know but I've been using JavaScript for a while now. It seems like a lot of the people that want JavaScript to look similar to other languages are coming from different programming fields, and want JavaScript to look more like their language of choice.

Most of the changes to JS in the last 20 years, have been serious improvements, but they did not change the fundamental characteristics of the language.

Believe it or not there are a lot of people that like JavaScript!
You still need some way to make typed javascript run on older javascript engines. This would become yet another babel preset you have to juggle.

Why not just use typescript directly in the browser?
Or to the kind of developer that works in a big team for a big project.
During development it would be helpful to have type checking enabled at runtime behind some flag or configuration. I want code to fail fast and early in my development environment. In production the code will be stripped and minified.

I read the FAQ in the proposal but don't understand the challenges in adding type introspection at runtime. It seems weird to add all this syntax and not have any way to leverage it during runtime. Although maybe it wouldn't be that useful? Still making up my mind about this.

Glad to see that these questions are at least being considered and explored as part of the proposal.

Great job from everyone involved, this proposal shows a lot of promise and it makes me excited for the future of JS.
Gov't contractor
I'm not a doctor or nutritionist, so do some research before you buy into this, but I read somewhere once upon a time that in order to physically move protein molecules into your muscle cells where they can be used to repair said tissue, you need carbohydrates. One frequent criticism of things like the ketogenic (aka "atkins", "low carb" etc.) diet/lifestyle is that you almost can't gain muscle on it at all, even with the perfect routine otherwise in place. Takes a very long time by comparison. So just make sure that you're not doubling down on 100% protein with no carbs in there. I'm not sure what the "best" split is there, but I'd start at 50/50 and tweak as needed.

Regarding fats: while they are more than double the energy density per gram than protein or carbohydrate (9 cals. vs 4), they're also far more satiety-promoting. In other words, if you're filling up on fats, you're getting calories, but not necessarily the ones you may need to start building useful new tissue. Obviously zero fat is crazy (and unhealthy!), not to mention it makes things taste awful, but try to avoid the temptation to just suck down a lot of fat. You'll feel too full to get much of anything else!
Yes, client authentification it is called.
Sorry, but that is not correct. Urease is the best-known nickel enzyme (yes, I know, it's bacterial), but there are many more, also in eukaryotes: https://onlinelibrary.wiley.com/doi/full/10.1002/pro.3836

I don't think anyone has discovered a Cr-containing enzyme but there are hints that it is involved in glucose metabolism.
We are currently testing it through testflight. Should be ready for a release soon.
> walking just ~8k steps per day

You kind of gloss over this, but 8k steps is around 3 miles of walking for the average person. You might be able to get that "naturally" if you live in an urban area and go out on foot every day to get coffee, groceries, etc., but if you're a typical WFH software engineer living in the suburbs, you're probably going to have to spend 45 min to an hour every day walking for exercise to achieve that number. I'm certainly not claiming that this is excessive or impossible or anything, but spending more than an hour a day (when combined with the weight lifting) on exercise and fitness is a MAJOR lifestyle change for most people. I think it's extremely important to be honest about the effort and commitment required. Getting healthy and staying healthy is _hard_, especially if you're starting out seriously overweight or obese.
I guess they finally found The Fortress of Solitude...
Ansible Solution for Installing Mattermost: Introducing Mattermost Omnibus(2020)
People get mad when they hear this, but:

A) Obesity is HIGHLY heritable. Tons of twin and adoption studies prove this. The correlation between the adult BMIs of adopted (non-related) siblings raised in the same household is virtually zero. This means that parenting practices have no long-term impact on body fatness. The correlation between the adult BMIs of biological siblings raised in different households is strong, though.*

B) Virtually all attempts to lose weight eventually fail. "Eat less and exercise more" essentially doesn't work as a long-term weight loss intervention, because very few people are able to comply with it over the long term. The one exception is gastric bypass surgery, which does reliably produce long-term weight loss. There are some new medications that show promise, but it's too soon to tell if they'll work permanently.

*People will inevitably say "how can obesity be heritable when it's increased so much over time? Americans used to be much thinner!" But the same is true of other highly heritable traits, like height. In some Asian countries, people are six inches taller than they were 100 years ago. Nevertheless, height is heritable. Heritability exists within a specific environmental context, and our environment is much more conducive to obesity than it was in the past.
I still advocate for the use of f.lux itself. Not only does it support them continuing to lead the charge, but we are also at risk of OS makers reducing the functionality if we don’t keep them on their toes.

f.lux still lets me go to a lower colour temp than either Windows or OSX. I know I’m a niche audience, but it makes a difference to me and I don’t think I’ll get anywhere by shouting at the giant Wall of Apple to expand their range.
We arent even considering the amount of information one would need to provide to actually get an accurate report. Foolish to think a racket that already creates fake users to goad real users wouldnt sell that info to anyone with cash.
Discipline and reward are the solution for me.

It sucks but you absolutely must prioritize getting that work done and off your desk as soon as possible. I tackle this work with the energy of a rabid dog, using my hate for it as fuel to work quickly. Afterwards, I make a nice cup of tea. It still sucks, but I am minimizing the total amount of time I spend with this type of work on my mind which has had ineffable benefits on my mental state

If possible, get a coworker into the flow by working up drafts and having them review and provide feedback. while waiting for feedback, it isn't on your desk. If you have to provide your own feedback, still chunk and draft the work as if you were sending it to a coworker and then create a time-block for when to review it yourself.

I have a lot of 'shallow work' right now as you describe. I am at a small business and I often get other peoples shallow work randomly dropped on my desk as well since my desk is also an operations overflow.
Ask HN: When will car prices normalize?
What’s causing demand to be so high, and when might that go down, and what’s causing supply to be low, and when might that go up?
You can use a reseller like https://paddle.com/.
This was my first thought as well, but I do think it could still be useful, even if not all TypeScript can be run as pure JavaScript. There's a lot of use cases where some type hinting would be useful, but the full feature set of TypeScript is not necessary. Long term, I could see a world where these features effectively replace TypeScript, which could help simplify dev pipelines.
Slow-Motion Suicide in San Francisco
I know a little about constraint optimization programming, but I don't know how it works (or would work, if scaled) for neural nets. Do you know of any work on this (citations)?
Pedantic but an impact crater either is or is not. Scientists (and others) might have controversial opinions, theories and hypothesis' about the crater and us mere mortals will be forced to take sides.
This is ascribing an incredibly negative attitude to me and frankly it is unnecessary. I don't deserve to be attacked just because I do not understand what you meant, especially because I took the time to ask you for clarification.

Clearly I feel like what you have to say could have merit and I would like to know what that merit is.
It's much harder to deanonymize people who are connecting to hidden services because they don't have to use exit relays which are often illegal to run.
Back when I was staff on (pre-madness) freenode providing an onion address was pretty much the only way we could afford to support tor at all given the moderation resources available.

Smaller networks often (usually regretfully) end up blocking tor entirely if they don't have the capacity to set up such infrastructure.
Sinclair is getting in trouble lately for his questionable research. Look into the spat between Dr. Charles Brenner and Sinclair over unsubstantiated and low quality research claims. Sinclair finally blocked Brenner and others on Twitter because they kept calling out his frauds.
I'm not sure that's a useful metric.
Things I hate about Rust, redux
Another potential problem with magnesium is its flammability. Look up magnesium fire and you'll understand. Maybe not that likely in most settings (it takes a bit to get it going), but a forgotten pot on a gas burner would worry me.
I remember I tried Red Moon but it must have had some issue (either bright installation, or bright status bar or something else) because I end yp using "Screen Dimmer (dims notifications too)" from etsang, which is also open source and can recommend, works fine, everything dark plus has very good notificationto easily in steps brighten/darker your screen without going somewhere deep in settings

I remember there was some widely popular screen dimmer, which didn't even let you manually change setting and relied on location provided by google services which I don't have, not sure if it's not f.lux because it ws one of the most famous options
> but I've been using JavaScript for close to 20 years now

How dare you use JavaScript for anything else than validating forms!!! What is that jQuery thing??? Stop trying to make JavaScript into something it's not!!!
Bold comment after 2 years of mailing out money to mass population of people who weren't working or running their businesses, resulting in 7% inflation.

Neither Kenyes nor Hayek were idiots. Yes giving money (even more than a govt actually has on hand -- printing) can stimulate labor by market-making to enable barter across space and time. And yes printing more money doesn't magically create more productivity forever.
Demand will go down as gas keeps climbing. The days of $3 gas are fairly gone. Time to start seriously considering alternatives.
The toll on "sleep quality" has been debunked [1]. The original research only found ANY connection between screen usage in the evening and sleep in Teens. And no separate connection to Blue light or any other colour...

[1] https://www.sciencedaily.com/releases/2019/12/191216173654.h...
> I'd like to be proven wrong on this, but I believe the point of exercise that builds muscle is that it increases your energy costs at rest ... I can't see this fact anywhere though. Is that stupid? So obvious to everyone that nobody even mentions it?

What kind of sources are you looking for? It's pretty common bro science, and often repeated on HN and reddit.
Weird

I’ve used computers for years without f.lux and haven’t noticed any eye strain symptoms or sleep issues. I also got some blue blocking coating for my eye glasses last time because it was on a big discount and can’t tell the difference (symptom-wise… I can see the included blue laser is mostly stopped and things look slightly yellower) compared to my old glasses.
Yeah, I’ve always found the assumption that f.lux actually redshifted the screen the same way their cited experiments did to be on shaky ground.

I don’t recall seeing any studies that directly used f.lux, just studies with blue lightboxes, and that stuck out to me as odd.

Monitors, even modern ones, don’t 100% convert their backlights (which are white) to the displayed color, so you always have an amount of washout, and I was always curious if that spoiled the effect, among other unique quirks of computer monitors.
Ukrainian woman carried her old dog for 17km to cross the border with her
- No more soda. Cutting out soda and other sugary drinks reduced my calorie intake by almost 25%, which is honestly kind of crazy. For reference, a 12oz can of Coke is 140 calories. That adds up fast. There are even more calories in beer, but if you lead with "Stop drinking," people tune out real fast.

I was able to ween myself off of soda by buying the tiny 8oz cans for a while. It helped to reduce the amount I was drinking without disrupting my daily patterns, which was super important. I was honestly surprised at how effective this was. After a while, even 12oz started to feel like way too much.

- Prevent yourself from buying calorie-dense food. It's a lot easier to resist snacks in the grocery store (assuming you're not hungry lol) than it is to resist them in your home. Even if you find yourself eating out a lot, this is still a relatively easy step in the right direction.
A lot of what’s happened in JavaScript is just retracing Adobe’s circa 2005 proposal that nobody wanted at the time: types, JSX…
Uber, Lyft drivers clash with riders over masks as states lift mandates