skysight-inc/HackerNews huggingface dataset:
> I've yet to come across anybody outside of the HN crowd that knows about or uses Rust.

Interesting. High school students and university students that my kids know are using Rust (in New Zealand, not some high-tech mecca).

> Think of what I'm doing as explorative programming, I'm both trying to understand the problem and trying to solve it at once.

OK. I might recommend Julia then.

> It is interesting that you recommended Rust and not say Java which has pretty good performance, is memory safe and is in production for well over a decade, for this particular use case I would choose that over Rust.

Sure, Java sounds like a fine choice. I didn't know much about your requirements when I suggested Rust. People often choose C because of strict performance or deployment constraints, which Java often can't meet, which makes Rust often a safer recommendation.

> There isn't a month or we see an announcement of the next point release of Rust on HN.

That's because they release every six weeks. That doesn't mean the language is unstable or you will keep having to make changes to your code. It means there's a steady flow of incremental improvements that preserve backwards compatibility.

> you seriously believe that writing a new project in C is irresponsible (which smacks of FUD, and is one of the reasons why I think Rust is one of the more toxic language communities on the internet, I have never seen a Java proponent use that kind of language)

In hindsight I shouldn't have mentioned Rust at all. I do sincerely believe that propagating C code is irresponsible and the software industry needs to recognize this. It sounds harsh, but I think that's partly because software developers have historically taken too lightly the consequences of their choices (even for hobby projects).

People like me who are zealous about the industry moving away from unsafe code tend to be big Rust fans, because Rust finally makes that possible for the systems/embedded domain where C/C++ were for such a long time the only viable option. I guess we have skewed the Rust community to some extent. Mea culpa.

> it smacks of 'you should do as I do' rather than that it is the best for me.

When we write code and distribute it, we have an effect on the world, and then I think it behoves us to consider more than just "what is the best for me".

For hobby projects where the code is never distributed, these issues are mostly moot ... though it's amazing how often such projects escape sooner or later.
Seeing how google is firing people for trying to unionize... I would guess there would be less spyware in ads?
People said the same thing about technologies such as automobiles, airplanes, and cell phones. Yes, they have some annoyances and safety issues, but overall they have made our lives much better. I would rather let each state and municipality decide on whether to ban drones than to limit the future of the entire country.
Swift is a corporate-backed language, and everyone knows Apple is trying to lock-in customers (both users and devs).
terrifying.
I do not believe this is true. Perhaps if you are an elite international-level competitor in your 20-30s or something. But otherwise, no. I consistently add several kg to my powerlifts each year for the past 5+ and I’m late middle age. I don’t see any signs of this changing, in fact the more I’ve trained the smarter I’ve gotten about things, so I have fewer injuries etc, so even more effective progress. Buts it’s a hugely tiny incremental grind to get this. Probably impatient people get dismayed and stop. Fortunately it appeals to my personality so I stick with it.
This falls into the same gotcha as many laws. Someone with ill intentions is not going to follow this law, so this law doesn't really stop this from happening.
I like the general thrust of this article that some calorie deficit is the key to weight loss. Alas, he is still suffering under the misconception that cardio works for weight loss/fat loss. All the published research shows this never happens. Here is a summary of that research[0]. The research always shows that humans who expend extra calories during one activity will, over the course of the rest of the day, expend fewer calories to, on average, expend essentially the same amount of energy as those who did not engage in the strenuous activity. Women who train for their first marathon gain, on average, 2-3 lbs of fat, even though they have expended tens of thousands of extra calories during their marathon training. Cardio has its uses in fitness, just not for losing fat.

[0] https://youtu.be/jHOeoGMiFz8?t=270
Problem is a tribe and all its associated organizations become dependent on a fresh supply of racists, sexists in order to justify its own continued existence. Evolutionarily, it must continue to find more and more of them to survive, even if they are mostly imaginary
> M-AILABS data contains 9 language varieties with a modified BSD 3-Clause License, however there is no community-driven aspect.

There is certainly an aspect, as M-AILABS sources their data mainly from the librivox project, which is community-driven.

To give ballpark numbers on what it would have cost if you had had to pay people for providing the data instead of getting it for free:

It's low skilled labour so you'll likely find people to do it slightly above minimum wage. Let's take Germany as I'm most familiar with its rules and because that's where Common Voice is headquartered. Minimum wage here will be €9.35 / hr starting on Jan 1st. Let's say you pay them €11. There are various Arbeitgeberanteile which you have to pay as well. Let's say your per-employee expense would amount to €15/hour. Let's assume you can verify and record at 70% efficiency and you use two people to verify. Then you need to expend 4.29 employee-hours per final result hour.

You couldn't just get German at this rate: Berlin is one of the towns with the largest language diversities in Germany.

This would give you a price of €64.35 per result hour. You'd have to pay €64k for 1000 hours of validated training data, and 128k for the 2 thousand hour figure of currently achieved data.

These €128k are probably on the same order of magnitude that Mozilla pays for the project (employee time to design, build, and run it), and if the project scales it will look even better. From a business POV, going open source was thus a great idea.

To put the 2000 hours into comparison, the deepspeech 2 paper [1] used 10k hour datasets (per language, while the 2k hours are distributed amongst multiple languages) [1]. Record holder is probably Amazon with 1 million hours (although it's unlabeled) [2].

It's possible though that future breakthroughs will remove the need for tons of training data. So even if the restricted amount of training data can't create practical models in niche languages for now, it might very well be able to in the future.

[1]: https://arxiv.org/pdf/1512.02595.pdf

[1]: https://arxiv.org/pdf/1904.01624.pdf
I think that's a misleading characterization. It's actually a particularization not a generalization: the ordinary notion only deals with topological properties, fractal/Hausdorff dimension deals with metric properties as well.

That's the main distinction: the old notion doesn't care about roughness or changes in measurement at varied scales since it has nothing to do with metric properties.

The generalization from integers to reals in the actual values is not indicative of the relationship between the two concepts.
Is this just TV? How many of you second screen while watching Netflix? I’m talking about watching a show for the first time, not reruns just as background noise.
Ask HN: Reason for Apple Mac Discounts?
For the first time ever, Apple is offering significant discounts on Macbook Pros and Airs. For instance, you could pickup a 2019 Macbook Air with Retina display for $799 at Costco ($200 discount). Can anyone shed light on these significant discounts? Are Apple sales way down or did they over produce and are trying to clear inventory?
Microsoft Research 2019 Reflection – Progress on Tech’s Toughest Challenges
I've found that calories-in/calories-out logic only gets you so far. It's foundationally true, of course, because energy is conserved, and we use all of the calories that we eat, with few exceptions, either for energy or for fat storage.

But exercise really helps. It changes what you want to eat first of all. Fat loss can be grueling or easy, depending on where your body wants to be, and exercise pushes it to the easier side.

Some of the non-calorie burning exercises have the biggest effects here. Weightlifting is almost pointless from a calorie perspective, but it really energizes weight loss. I assume that the hormonal effects are king.

Biking colossal distances is another thing that seems to lead to leaning out. In theory it should be possible just to eat through the calories burned biking, but in practice, it seems to shift the bias towards losing.

Also, the biggest problem with calories-in calories-out is that weight regain after a calorie deficit period -- even a long one -- seems to be almost a law of nature. The body seems to push extremely hard for regaining everything that has been starved off.
Zen and the Art of Email Marketing
The GP is talking about the standard library support etc. of the compiled objects, while still being native.
In general I wonder about the ability to receive a root kit from any number of sources, sharing software projects is a major concern. What is best practice here? Only work inside a VM?
Where did you get $2700, OnlyKey is $46 USD
Vinmec has been poaching doctors from public hospitals with their much higher pay. But they still can't get the very best ones for some reasons (I heard those doctors like to help people and not work for money). So VinMec has good service, but don't expect the best doctors over there.
Protect Java Class from Decompilation
Of course it is. Any conference being paid for in one way of another by companies will do the companies bidding. He who holds the gold makes the rules, as they say.

But trying going to a conference that isn't organised by a company, or as a venue for companies to show their products. They exist. They are usually associated with open source groups/meetups of some kind. In some ways they are very vanilla - no fancy food or hotels, nobody actually pays for that crap out of their own pocket.

But the talks - the talks are from a different world. Nobody is there to talk about their company. It's engineers talking to other engineers. Some are serious, some are playful, some are seriously nuts, but all know they are talking to their peers and are not game to spout too much bullshit. If they don't believe it, it doesn't get said. It's like comparing the comments on HN to the journalistic output on a mass media site.
Probably that the original binding of p is immutable, as it would be in a functional language: you can create a new binding, but you can't actually change the value of the existing binding.
>This implies (well, directly states) that these asian women are only a step above prostitutes, while in fact either both are, or none of them, depending on the perspective.

I meant to state that the perception is that about Asian women not that I consider it the reality.

> If the male cannot find a match, it is a failure by definition, but I do not see how this fails his masculinity.

A man is often seen as having earned a Western trophy girlfriend, but as having likely bought the Asian counterpart. Why this is, and why the former is more accepted, is probably rooted in negative stereotypes about Asian women formed during America's wars in Asia (specifically Korea and Vietnam) and about the perceived "submissive" nature of Asian women in general.

>Masculinity doesn’t have to be linked with local wealth (pressing/buying someone with money, connections and law doesn’t make one alpha-dog nor a unique problem solver),

It doesn't have to be, but historically, it has been. Trump bragged about being able to "grab'em by the pussy" and it endeared him to (some of) the public, as did Clinton's escapades, as did JFK's. It's been the case since kings had harems.

>and I would add wealth actually tends to hide smaller balls, if you excuse a non-native speaker for this idiom.

Yes, people often say ostentatious displays of wealth are a way to compensate for a man's shortcomings.

>Masculinity is a thing that allows you to skip these steps altogether, unless women are heavily reprogrammed on money instead and everyone is okay with that.

There's masculinity, and there's "masculinity" as expressed by commercial culture (call it corporate masculinity.) The latter is telling men that they need wealth and status items (in other words, to participate in conspicuous consumerism) for a woman to find them attractive.
On the other hand, my parents found a computer game where arithmetic problems fell from the top of the screen and you got points for solving them quickly. My siblings and I loved it and played it whenever we were allowed - it wasn't a requirement for us to play it but a treat.
Same here. It's basically the same thing as people 100 years ago reading a newspaper while a radio was on. It's nice to just have a bit of background noise.
I trained an AI to tell jokes using deep learning and open sourced all the code
Let me guess, you are Argentinian, jajajaja.
The prices are localized. So $2700...ARS
For years Putin's defenders here at HN would talk about the great benefits he was bringing the country. Interesting how in the last year or so they have pretty much given up pushing that idea.
Agreed, I'm currently taking a similar approach, but forgoing pointers as much as possible as well. This leads to structs being passed by value, and const abuse.

Ray h_cast(const Hero hero, const Hit hit, const Sheer sheer, const int yres, const int xres)
{
const Point end = p_sub(hit.where, hero.where);
const Point corrected = p_turn(end, -hero.yaw);
const Line trace = { hero.where, hit.where };
const Projection projection = p_project(yres, xres, hero.fov.a.x, hero.pitch, corrected, hero.height);
const Ray ray = { trace, corrected, p_sheer(projection, sheer), hit.surface, hit.offset, hero.torch };
return ray;
}

It leads to some nice somewhat functional styles. I estimate its 80% pure, given its C99 alone. I've adopted this style in my Age of Empires 2 engine rewrite if anyone is curious: https://github.com/glouw/openempires

As for performance I am heavily relying on LTO. I seem to get a 50% performance boost with pass by values on structs - as I've sedded openempires to replace occurrences of _Type name_ with C++'s _Type& name_ for all functions arguments - and the added pointer aliasing and de-references bogged the engine down in heavily forested areas.

Compilers love singly assigned const values, and seem to suffer under heavy pointer aliasing.
H
Hello
Before lockfiles I would pin version in my package.json file. Now, I still pin version in my package.json file ;)
> I do sincerely believe that propagating C code is irresponsible and the software industry needs to recognize this.

I believe that you are sincere in this. At the same time I ask you to recognize that the way you - and many other proponents of 'safe' (safe between quotes because computer programming will never be safe) languages approach this is combative and therefore ultimately un-productive.

The old proverb says that you will catch more flies with honey then with vinegar and headbutting with people and calling them irresponsible is not going to get you where you want to be. It will have the exact opposite effect, people will dig in and their resolve will strengthen rather than weaken. This is because people tend to be invested in their tools and their creations. Going for a full on frontal confrontation about this is counter productive, that's just human psychology, which is in cases like these as important - if not more important - than having a technological edge or being right.

Zealotry is the last thing you want to take with you in your toolbox if you want to make change.
Presumably it's the people writing checks at universities that are making the decisions though.
At age 100, the father of preventive medicine is still going strong
Any where the To Lich flow. Quan hoa is one example
You're going too far here. "Never happens" is wrong. If anything, perhaps cardio doesn't help on average. But I know individuals who have lost huge amounts of weight through serious cardio activity and no special diet work. I mean 'serious' cardio though: 2-3 hours/day on a treadmill. I've personally leaned out a lot through cycling.
It is a joke, but I don’t think Zizek’s in on it.
Great job, played all levels with my 4 year old and enjoyed. This can easily be an ipad app. Also my browser is lacking a tip button as this would have been a $5 tip easily.
There are a few Schemes that can compile to C or machine code.
My recommendation is to get a phone number for with an area code out of state. It'll be pretty easy to avoid spam calls because they'll use your area code.
> Cardio has its uses in fitness, just not for losing fat.

Um, no. This goes against all mainstream, tried and true research and practice.

> Women who train for their first marathon gain, on average, 2-3 lbs of fat

Marathons are an extreme activity. If this is true it doesn't disprove that cardio causes the average person to lose fat.
Is New Zealand a communist country? They banned foreign ownership recently.
I believe npm blocks publishing packages with similar names to existing packages.

https://stackoverflow.com/a/54135900/266535
> Weightlifting is almost pointless from a calorie perspective

Maybe in terms of the energy you burn directly by lifting weights, but it raises your base metabolic rate significantly for quite some time after a workout. The extra muscle mass you built also raises your BMR in a longer lasting way. Especially when combined with interval training, weights are very effective.
It's not just fun, there's a practicality to the method as well which I believe, judging from the responses, that my example failed to convey.

In another comment, I came up with another example that uses the same pattern that uses a more "practical" example. I'll paste it below:

the goal is to convert:

{"1":"2", "3":"4", "5":"6"} to {6:1, 2:3, 4:5}

Or essentially the ordered dict, rotated. Which space is a rotation more intuitive? A list space. [1,2,3,4,5,6] is more readily rotated into [6,1,2,3,4,5] with one operation and converted back into a dict.

If you tried to do the above directly by manipulating the dictionary it would not be as straightforward. Use a functor to lift the dict into a list, do the rotation and use the opposite functor to lift it back down to a dict.
It sounds like an "ain't" version of learned. I just read this from Grammarly:

"Learnt and learned are both used as the past participle and past tense of the verb to learn. Learned is the generally accepted spelling in the United States and Canada, while the rest of the English-speaking world seems to prefer learnt."

Apparently I'm an egocentric American.
This could blow Nebo out of the water.
If you want to throw money at it, try hiring a personal trainer for 2 or 3 days a week.

(I had a personal trainer for a while who trained me and a friend, just having the commitment to trainer at least made me show up, and it was his job to keep things fresh. Having a friend there also helped make it less boring).
It's mostly meant to filter out people who would think it's a finished product. Because it's... not.
>I was interested because I've started adopting the single assignment style in my own code

What benefit have you seen from doing this? Genuinely curious.
I am 62, and have been exercising pretty regularly for 18 years. I hate it. At its worst, it is painful and unpleasant. At its best, it is boring. I am fortunate to be able to eat anything I want and not gain weight (even when I don't exercise). It seems to be the case that I can eat any amount of carbs and not gain weight. But I don't eat crap, and I gave up soft drinks completely a long time ago (before I started exercising).

The secret for me was to recognize a few things:

- I do hate exercise. I don't have the willpower to exercise hard for an hour a day. It works best for me if I have someone telling me what to do. So over the years, I have tried various forms of group exercise. I am currently doing crossfit, (minus the cult aspects, thanks but no thanks) 3 days a week, and working with a personal trainer 2 days a week (basically an exhausting form of physical therapy to address problems with the ways that I move, and my lack of mobility).

- Making exercise a priority doesn't work for someone like me, because I hate it so much. No, I made it a habit, which is different. It's a regular thing on my schedule.

- It does make me feel better. Not when I do it. Immediately after exercising, all I feel is relief that it's over for the day. But if I stick to my 5x/week schedule, 1 hour/day, then my aches and pains -- charateristic for my age -- disappear. No more aching knees or frequent upper back pain. If I stop for a couple of weeks, these problems return and I generally feel less energetic.

- The battle is psychological. The worst thing is getting myself to the gym. I wait until the very last minute, and dread it for the whole short drive. The anticipation before the workout sucks. The warmup is the absolute worst, because I am transitioning from my normal lazy, comfortable mode, to a far more active mode, doing completely unnatural (for me) things. Doing the workout is mostly boring, often exhausting, but mentally easier that the buildup.

Figure out what works for you and make it a habit.
The Flourishing Business of Fake YouTube Views (2018)
. . .and then there was the BSODomy. . .

Less cheekily, I recall joy of not needing to look to the bottom for more commands and tabs.

First encounter with that paradigm was iTunes. It took me a week to realize that half the functionality was in the nether reaches of the screen. I felt I was the butt of some joke.
The charts show that wages are at record high levels, and are trending in the right direction.

I suppose we could hope that the record was set even higher, or that the trend was moving even faster in the right direction?

My point is that things really are good. We can always hope for better, but we need to understand that these are good times. (They won't always be so.)
Edit: s/claim/change
Abs are made in the kitchen.
I thought those water based ones are meant to be the actual hifi simulation of a boat on water. Does C2 make those ? The air rowers at gyms are fine value for money, but hardly deluxe.
What mathematical maturity went into designing the most popular models? What mathematical maturity lead to using ReLU instead of tanh for activation functions, for example?

As far as I know, a lot (most?) advances in the field are just trying new ideas that happen to work. Is this correct?
Jimmy Fallon is usually really annoying to me. It's something about the constant laughing and him being pretty bad at 'getting it' when it comes to the flow with guests, even though on a shallow level he's quite likeable.

The weird part is that when he gets into bantering with the other cast members (miming stuff at the desk, exchanging dumb jokes, etc), he's really, really entertaining to me in a way that the rest of the show doesn't manage at all, and yet he barely does it.
the autogenerated rolled paper is nice : https://www.zazzle.com/eschersketch_wrapping_paper-256519193...
You MUST use a food scale and weigh ALL of your food.

Don't use measuring cups, and don't eyeball it. Also, don't trust any calorie counts from a restaurant.

After a while you get better at not needing a food scale for absolutely everything, but I've been controlling my weight (both gaining and losing) via CICO for nearly two decades and I still weigh most of my food.
> The differences you are arguing are important in a highly specialized area of math and science.

Actually, I think they're arguing that it would be useful if more people understood this. In addition, the point of the game was to teach logic, not a colloquial understanding of language, which every child gets growing up anyway.