skysight-inc/HackerNews huggingface dataset:
It's actually a struct that only has a name in the scope of the function which returns `auto`, and thus cannot be named outside of it. Like this:

#include <iostream>

auto createVoldemortType(int value) {
struct Voldemort {
int value;
};
return Voldemort{value};
}

int main() {
auto voldemort = createVoldemortType(7);
std::cout << voldemort.value << std::endl; // output: 7
}
Ask HN: Is anyone using GPTs regularly?
Hi HN,

The GPTStore launched on January 10th, and I've been curious about how many people are using GPTs.

I created a few myself that I use regularly. Essentially, they are specific system prompts I use (though I wish OpenAI offered a feature to store and switch between multiple system prompts instead!)

For cases where you're chatting with documents of some sort of data source, GPTs seem to work well. But for most other use cases, the chat interface seems quite limiting (e.g., video maker).

I've been wondering if it's more that I haven't found the right GPTs, or if is it just that there are only a few that are truly useful.

So, is anyone using GPTs regularly that they'd recommend?
> What should clue you off is that Phillips announced yesterday he's considering a third-party run.

I don't think that follows. Biden is not a popular guy, and it appears his strategy is to crush all internal opposition while engineering a rematch with Trump (probably because he'd lose against anyone else).
A lot of weight loss suggestions - the linked article included - start with "improve your diet", "eat healthy", "substitute fruits for hamburgers" and the like.

I am fat despite eating healthy. Or rather, because of it: I almost entirely avoid junk food and alcohol, rarely have restaurant food, but I love healthy, nutritious, home-cooked meals and fresh fruits and vegs so much that I simply eat far too much of them. I wonder if anyone has been in my situation and has suggestions?
Business analyst, project manager, product manager, UI/UX designer... those are all roles that do what you're describing. Doesn't hurt of the programmers to have a hand in things too but usability and functionality really aren't their responsibility on most projects beyond the trivial. If any of those roles are mainly one sex, then that might be an issue.
"In sending out music, the idea was to communicate that sense of humanness, that feeling and drive, that ecstasy."

Somehow, this makes perfect sense.
based on https://en.cppreference.com/w/c/compiler_support/23

even the newest clang does not support many of the c23 features.

gcc13 is much better, only a very few c23 are yet to be supported.

this is a long standing problem with clang/clang++: they're used in many linters and intellisense but they're lagging behind by a lot comparing to gcc.
I am curious where people cannot provide a healthy and stable environment.

I grew up poor, somewhat stable. My children are going to be growing up in a stable and healthy environment because of my choices. This is course has a cost. The wife doesn't have a full time job. Income is limited to one earner. Vacations aren't as extravagant.

I am in the middle of becoming a foster family. Loads more sacrifices and paperwork. The families that lose their children are really screwed up. There's neglect, abuse, and no blood related that are available to help.

The State is not any better at parenting because their interest doesn't align with the child's best interest. The State essentially contracts out parenting. The problem is parenting is essentially its own religion. Naturally that means the State will be in conflict with the Parenting.

Foster children are protected by the State so disciplining methods aren't always accepted. A child of any age without effective discipline will be subject to natural consequences which are often more severe that a loving parent with patience, grace, understanding, and attention to desired outcome.
Congrats! This is a great read and aligns with my own experiences being in a similar position. Before COVID I was 210lbs, pre-hypertension, and sedentary. The work from home change and pandemic was a wake up call that allowed me to eat better food at home, exercise before and after work, and get better sleep.

I think this is the recipe to weight loss, not once did I go on a special diet or crazy hard exercise routine, just eating less and a bit of exercise over time.

Im now down to 165lbs and the healthiest I've ever been.
> especially a university (which should be a bastion of people with competence and organizational power).

Those people are not the ones running the IT systems. Even the software engineering and information systems departments have no say. IME university IT are understaffed, outsource a lot (often without a choice), and often have to follow decrees from higher management that don't seem to have been thought through.
Writing WebSocket Client Applications
> Even the Linux kernel is considering switching to C++ now.

considering doesn't mean it will happen in near future, because toolchains/ecosystem is not there, the same is applicable for many other projects.
I have a piece of art hanging up from my favourite modern artists - Jim'll. A fantastic blend of a great film and my slightly wild young years...

My copy is now out of print and removed from his site so please excuse the FB link [0]

"Ravers of the Lost Ark"

[0] https://m.facebook.com/story.php?story_fbid=pfbid02LFCbCLF7K...
Europe puts people before corporations.

America puts corporations before people.

There are endless articles about how American business is "more competitive"
... and it is, but this is the price.
I'm probably one of the few who actually enjoys my tinnitus.

It acts as white noise and can focus on it to drown people out.

If I can't sleep, I just focus on it and past out.
Perhaps, but very few people are wary of Chinese technology, they just virtue signal for particular examples like Huawei.
I think the author's take on the role of exercise is kind of harsh compared to my own experiences and of those around me.

> An hour of intense exercise might burn 500 calories, and it’s very hard to keep up that level of effort for even one full hour — especially if you’ve been sitting in a chair all day for years on end.

This is probably true, though it doesn't factor in the effect of muscle mass and "afterburn" on resting metabolism. Muscle is expensive, that's why your body gets rid of it quickly when you don't use it. And you spend a lot of calories replenishing energy stores and repairing your muscles in the days after your exercise, because that's far from a 100% efficient process.

If you're male and an absolute beginner (as sitting in a chair all day implies), you can gain significant muscle mass with just 90 minutes a week of strength training.

The direct calorie expenditure of exercising that much may be minor. But you will soon be burning an extra 150kcal/day in afterburn and muscle maintenance just sitting on your ass on your off-days. That adds up to a nice beer budget.

Intensive strength training isn't for everyone though, I can see why a guide for the lazy person might leave it out. But if you're even slightly more of a minmaxer than just lazy you should consider it, given all the other additional benefits of exercise.

Finally the protein paragraphs are very spot on. Especially now quality protein shakes are cheap and easily available. One of those (125kcal) fills me up like lunch, and two like dinner. They're an incredible weight loss hack.
Fear Uncertainty and Doubt springs eternal. People are desperate to believe in inherent badness and abuse.
It’s possible our ears never evolved to handle that. Instead we evolved to move around, build shelters, protect our ears etc. and generally take defensive measures against excessively loud environments.
> Women in their early age are attracted to the risk-taking macho

Many middle-aged women I know remain attracted to the same type of men. It often works out poorly for them, but they still don't seem to learn new preferences.

I know of far too many arsehole guys that never lack for a girlfriend.

Smart, attractive, caring women that don't seem to be able to choose a worthwhile guy. And I know of too many women that can't extricate themselves after they are entrapped by some arsehole.

I don't have much of a theory of why, but one pattern is often a taking guy and a giving woman.

I don't know enough gay men or women to have noticed similar patterns within my gay acquantances.

The other odd thing is that I have some caring male friends who would make fabulous husbands (and fathers), however they are not snapped up by women. It appears to me that their positives are not valued - and perhaps they are judged too harshly by their flaws (goofy, overweight, bad teeth, crappy job, whatever).

It isn't just young women. Women in their 30's, 40's, 50's still often make the same choices. They seem to remain attracted to the same type of guy, but may avoid entrapment through a variety of mental gymnastics (or plain celibacy).

(Re-edited for clarity).
Try V https://vlang.io/

One caveat is still being heavily developed.
Love that you're inspired by RC! I went through an RC in-person mini-batch in 2019, and I'm still part of the alumni community there -- I've attended a few virtual Never Graduate Weeks (NGWs). Glad to share my experience.

(You can find me in TampaDevs Slack. I moved to Tampa from NY in 2021. Keep up the good work!)
If you have rapid generalization you don’t need scale. Large datasets are only necessary to compensate for the lack of good generalization.

The model I posted in my earlier comment responds in character for all queries and was trained in 60 seconds with a dataset smaller than this comment thread.
I would agree with the other comment: commercial merch is dystopian. This month I finally disposed of my simple, black HP (not HPE) T-shirt. It is truly dystopian what the current merch doesn't hold up for.. does a quick 24 - 08 math .. 16 years!
In my experience, similar to the authors, it comes down to caloric intake. If you sit at home most of day and aren’t expending much energy, then you need to eat less.

When I go out and have a big day hiking or biking, I’ll eat more to fuel that activity and recovery. But on a rest day or day at home, ill eat a good bit less since my body doesn’t need the fuel.
How to make a text only browser for iPhone?
I read on internet extensively.I use violoncello app to access this and other websites. This named app is a text only browser but it requires safari app to be allowed from the content blocker in screeen time app. If I disable the Safari from that app Violoncello gives error and doesn't load pages.
My reason to have a only text browser and disable safari is that this safari app has a bug which enables user to access undesirable websites despite restrictions.

so I want to create a text-only browser IPA for my personal use that works with safari disabled either by apple configurator or screen time app .

I am not an app developer but generally aware individual who would understand if guided step by step broadly.
Actually neutral white and blue tinged white (the most common led shade) is terrible for night vision, glare, and light pollution all due to the actual physics of light.
COW2LLVM: A Swift Compiler Deep-Dive
Please read what exactly has been discussed in the meeting which has been the reason for the current protests. The government has just passed new policies on deportations so for the AfD it‘s not just about deporting criminals.

As they‘re basically Nazis, just look up how everything was building up back in the 1930s-1940s. Then you‘ll know what the people are demonstrating against today.
Start an EU Company with Your (Estonian) E- Residency Digital ID
It standardizes existing common practice. Everyone already has `__auto_type` macros, but nearly nobody was using `auto` as a synonym for `int`.
I didn't downvote you, but it's probably because your comment added nothing to the conversation. We're already down here at the bottom of the page, we already slogged through the gratuitous inline quote, and then there's you telling us something irrelevant we already know. And now I'm here making it even worse. Sorry.
Then surely millions people in east asian countries like Japan or Korea sitting at top of highest life expectency table having drinking rooted in their culture are anamoly.

Edit: Billions if you add China to that list.
So your claim is that a new language could define a spec to a degree that it would not have similar problems?
> but once you decide to give someone citizenship you can't retroactively take it back and deport them.

My understanding was that they basically planned exactly that.

The questions around immigration, integration, asylum and German citizenship make up an eternal debate between centrist/progressive/left on the one and conservative/right groups on the other hand. It flares up every few years and in some form or other persisted since the 50s.

To my knowledge, the AFD position is not that different from the usual positions of hard right and Neonazi parties in that regard.

However what is new is exactly the plan to revoke citizenship of potentially large parts of the population according to completely arbitrary "integration" criteria. That plan evoked some very unfortunate memories of changes to citizenship laws in Nazi Germany and gave many Germans with some kind of immigration history the realisation that they might not be safe. This is what triggered this intense wave of demonstrations.
I’ve switched to web version of fb messenger.com as they finally respect “request desktop website” in safari. Still it’s pretty broken, doesn’t do push notifications and forces you to log in each time. All obviously on purpose.

Instagram is a little better, but won’t let you post videos for whatever reason.

TikTok is fairly useable if you manage to log in.
Show HN: I made a fronted web framework in Python
Snorkeling without knowing how to swim seems like a pretty bad idea in the first place…
Where do you source your chargers now where you can track the entire supply chain?
> In October of 2021 the Software Freedom Conservancy (SFC) decided to launch what is believed to be the first significant open source lawsuit based in contract rather than in copyright. Critically, the SFC’s case argued that anyone who benefits from the General Public License (GPL), not just the authors of the software, should be able to bring a lawsuit to enforce the terms of the GPL.

This seems to be the key issue. It's the first time I've heard of a case in which the party claiming harm was not the author of the software.

It raises a lot of questions - for example around linking. My understanding of the issue with respect to Linux was that Linus won't enforce GPL against those who link, therefore, Linux is immune to the reciprocity requirement when just linking occurs.

This new case seems to raise the issue of whether those other than authors of GPL software can bring suit under contract rather than copyright for linking to GPL-licensed software.
Yes, but it’s always a question of timeframe and personal distance. One of the insidious problems behind the modern MBAs’ veneration of Jack Welch is that GE always made its numbers, irregardless of the long-term cost to the company. If you’re in a position where your personal compensation depends on something going on a particular schedule, such as a huge sale of airplanes once a new model is approved, it’s going to be very easy to tell yourself that it’s “just”government red-tape delaying your cabin cruiser and the “safety Nazis” are just over-concerned. The odds are good that nothing will happen for years so you might not even be there when it happens, and complex failures usually mean there will be some complicating factors so the guys who made bad calls might be telling themselves that everything would have been fine if it wasn’t for someone else’s actions.
Neat. Had run into them before (the "careers" page was marked as visited in my Firefox history ;-) ), but didn't make the connection.
> A modern European washing machine uses 30-50 litres per wash, vs 75-100 for a modern American one.

Maybe we just have bigger washing machines? You need to control for washer capacity to make a fair comparison here. If you need to do twice as many loads of laundry because you can only fit half as much laundry in each load, you’ve gained nothing. And it’s not like having a bigger washing machine requires every load of laundry to use the full water capacity of the machine even if you only do small loads. On older machines you can set a dial for load size while newer ones have sensors for that.
Given the transitive property, does that mean the NSA “gifts” IP to the PRC?

Edit: clearly it is wrong, terribly wrong, for Federal dollars to be used as such a gift to the PRC.
Rocketry, no, but Twitter, yes. Watching him go in and do the dumbest imaginable things, then make up excuses for his stupid decisions, then watching fans buy those excuses without an ounce of critical thinking… well, it raises a lot of questions in my head about his other ventures.
>Your password should not go anywhere near a database.

>

> It should be salted and hashed a few hundred thousand times and that compared to the salted, hashed version stored on file.

>

> If you can't even manage that, you have no business writing software that can store credentials

That's misunderstanding the nature of the vulnerability. It's not about where the password is stored, but where it is entered. Before it can be salted & hashed, there's software that has to decide where the password input starts and ends. If it gets that wrong, that's how you get the vulnerability.

It's not even clear that there is a vulnerability problem here, though there is obviously a usability/UI problem. It could very well be that having those words in your password doesn't compromise security anywhere, but some systems might reject the password before even attempting to authenticate with it.
Some games and systems have a "night mode". It's more a question of decreasing the dynamic range, not just adjusting gain up or down. A footstep is much quieter than a gunshot, for example, so you'd want to compress the range so you can hear both without going deaf.
Public charging has always been a nightmare. As an EV driver for (checks calendar) 14 years, it's always been a nightmare.

I certainly hope that the transition to NACS and wide availability of DC fast charging can change that.

Until then: you charge at home. You wake up in the morning, and like your phone, your car is charged. You go out, you come back, you plug your phone and your car into the wall. The next morning, all will be well.

I'm a huge proponent of EVs and I would not buy one unless I had a dedicated charging station where I lived.
Newton, apparently. But it’s subscription. https://newtonhq.com/
Cheers on loosing weight. But so many things are wrong in this approach, guaranteed weight gain in the next months/years. Always focus on calories and muscle mass. Writing training doesn't account for much is such a lack of understanding it's troubling. And BMI? a complete waist of time.
Registered memory has a buffer for communication between the dram and the memory controller. So the DDR bus is attached to an intermediate buffer chip, rather than directly to the dram chips on the DIMM.

This can give better electrical characteristics of the bus, as the buffer chip to the DIMM connector can have simplified routing and higher power signaling without putting more load on the DRAM chips, and the buffer chip design being focused on this interface signaling rather than compromising between that and the actual DRAM cells.

It's a bit more expensive, being an extra chip on each DIMM, and has a latency penalty, as the buffer chip means everything on the DDR bus is effectively 1 clock behind what the DRAM chips themselves provide. But it's often necessary if you have a large number of DIMMs on a single channel or very long traces required for packing lots of DIMMs around a CPU, as that increases the electrical capacitance and noise of each path, which many DRAM chips can struggle to drive, especially at higher speeds.

As dram chip density increases you can get higher capacities without the longer bus traces and more DIMMs per channel that might require registered ram, there's nothing "fundamental" about 64gb needing registered ram, and you are already seeing 48gb DDR5 DIMMs that can work on consumer platforms, which often have no issues running 4 DIMMs without registered ram.
I guess garbage collection has it's uses, but it's very niche. Since C++11 (i.e 2011) (STL, unique_ptr, shared_ptr), any need for it in C++ has all but disappeared. For the most part you are using STL data structures, and if you need something custom then just use a class with a smart pointer member owner, and you get memory management for free (and a lot more performant than a garbage collector).
On an individual basis it doesn't really matter. Those calculators can only ever provide a rough estimate as a starting point. People who want to lose weight will have to weigh themselves on at least a weekly basis and then titrate their calorie intake up or down to hit their target.

If you do want to know how many calories you burn as a sedentary person, then just go get a resting metabolic rate (RMR) test. This is a cheap, non-invasive test where they measure how much oxygen you metabolize and use that to directly calculate baseline daily calorie consumption. Any physical activity will then be additive to that baseline.

Effects on body fat or body composition vary tremendously based on dietary macronutrients, exercise, genetics, gut microbiome, and other factors so I don't think we know enough to construct an accurate probabilistic model of that. In general, to avoid loss of muscle tissue the recommendation is to maintain a high protein intake and do resistance (weight) training.
Nonius
But WeChat is already available on iOS and Android. Or do you mean it would be removed?

I wonder if that really matters outside of China though. I don't think anyone outside of China would ever use those.
No, I don't generally think it's okay to profit off of the work of others without their consent.

>Moreover, you said it was "Baffling to see anyone argue against this technology" but it seems there are at least some models (like if my above detector was non-commercial) that you're ethically okay with and could be affected by this poisoning.

Just because I think there are situations where it's not ethically wrong to use someone's work without permission does not mean I think it's ethically wrong for someone to protect their work any way they see fit.

To use an extreme example: I do not think it's wrong for a starving man to steal food. I also do not think it's wrong for someone to defend their food from being stolen, regardless of the morality of the thieves' motivation.
It's okay to demand competence, but I wouldn't expect competence to materialize overnight.
> especially if the built in Safari can do everything a native App could or would.

No downloads without a native app, which could affect the whole "using it on a plane" thing people keep mentioning.