skysight-inc/HackerNews huggingface dataset:
> This is about composed objects. So an allocated array of objects, which in turn also hold allocated objects, which might in turn also hold allocated objects.

The way this is solved by calling the cleanup routine for the first object in the hierarchy. If that object is responsible for the lifetime of other objects, then it will also call their cleanup routine. From the user's perspective, those are invisible, just as any calls to free() or close() or fflush() inside an fclose() are.

> If you read the line "return 5;", you don't know if that triggers one (or multiple) function calls.

If you read the line "continue;" or "break;", you don't know if that triggers one (or multiple) function calls until you read the surrounding code.

I still find it much easier to follow code inside a function than to jump through classes.

But the bigger picture is that it makes lifetime management explicit and thus transparent, and you needn't complicate the language with copy constructors and move semantics.
> unwilling to play nice with "external" dependencies

But that's a policy decision - the dependencies should themselves be packages, because that's the only way to guarantee reliability.

The inability to install multiple versions is probably the only serious problem with the dpkg model. Even then we might argue that the dependent software should be fixed so that it's not so fussy about specific dependency versions.
You should expect the seller to maximize their profit however they can. Also, sellers that show no sign of ethics shouldn't be trusted period. Amazon is definitely one. Putting your stuff in the Amazon cloud worrying about deceptive practices or overcharging is asking the fox to guard the hen house.

Pick a different provider(s) with a better track record. Alternatively, choose Amazon saying its benefits outweigh its deceptive practices. Whichever.
Talking from a developer's point of view, I've thought about this for a while and I think it has something to do with what I refer to as "anti-imposter syndrome" - the notion that anyone can make software. You see, over the past 10 years or so, self-proclaimed "educational" services/websites/institutions have been shoving down everyone's throat the idea that anyone will be able to create the next FAANG from scratch after just 3 months of training. Which is the same as claiming that I can become an F1 driver in 3 months. Where do I sign up?!?!?! The thing is, F1 results are a lot more visible since you have a point of reference - the top dogs. Chances of scoring a fastest lap or coming even close to them - little to none. Software - not so much - you have a shiny interface and what it does underneath is always a mystery to the end user. And people who have gone through those magical 3 months of training are often lead to believe that the way they are doing things is what everyone is doing and that is how it should be done. Often people who have signed up for those courses are people who have just a smudge above average technical knowledge - they have no idea how OS'es work, what should be considered safe or even why. Don't hate me for saying it, but essentially Windows users. And this is the software they end up building and distributing. 10 years down the line, thousands have picked up random scraps of knowledge from here and there and tried to mash something together. Don't get me wrong, I think technologies like Docker are astonishing and an incredible tools in the hands of people with knowledge and experience. However way too many people have picked up some scraps from there and created the unholy mess the author is talking about.
So the premise of the article is to literally take mind-altering drugs in order to become more valuable to your employer.

This is so fucked up.
I'm pretty sure when Decartes said that, he meant that that's the only thing we know for sure to be true, since everything else could be a hallucination. He wasn't making an argument for cognitive enhancement... was he?
None of these are intrinsic properties of credit cards so it's a bit optimistic to assume they apply in all countries.
> As far as I know, at least AWS has two WebSockets based services.

True. WebSocket APIs in Amazon API Gateway looks good and is accessible from Lambda functions. Didn't try myself though: https://aws.amazon.com/blogs/compute/announcing-websocket-ap...

> At least AWS has allows to bring your own runtime, it just has to be compiled for Amazon Linux 2.

I did not know this. I will check it out.

> Azure does something like that with Durable Functions

Also didn't know this. Yes local state destroys scalability but it is such a convenience sometimes. Will also check this out.
Is the world ordered as a system or as a project?
There is almost no way that occurs. 5.6 and the compatible wireguard-tools won't be out before the 20.04 freezes.
This is good advice for only a particularly narrow use case. If your clients are likely to be on-prem in the same cloud as you, I think most cloud providers will charge you local data transfer fees (e.g. nothing) rather than egress fees, even if the request is made over the public IP address.

If your users aren’t mostly in the cloud with you, than this strategy doesn’t help at all.
Some things that help for me are (1) a cup or two of green tea on mornings I don't exercise (can get me "over the hump" of the end of a fast), or preferably (2) exercising as early as possible in the morning. It took me about 30 days to get into a good rhythm.
Cloud auto-scaling has made quite a few things in the public sector cheaper to operate. There are the obvious use cases like tax-returns or student-registration, which are annual loads where you could technically scale without the auto part. As more and more things become web-based applications, however, auto-scaling proves it’s worth on things like student/teacher/parent work tools that see a high load during the hours from 08:00-15:00 and again from 18:00-21:00 and almost no loads outside of those times as well as during holidays or weekends.
From Mocha to Mesh: Insights from Percolation Theory
No. This is a preliminary study of a new fasting method. There is no-one who is deliberately spreading this on social media to advance their own political situation.
Byran M. Cantrill: https://invidio.us/watch?t=34m00s&v=-zRN7XLCRhc
just quit it with the "AI" adjective already.
> The LoA held knowledge collated and collected by the best thinkers of the time.

... that had access to writing services and were wealthy enough to have their thoughts stored.

There could have been many odd voices out there that would've told us an entire different story. But these are unknown because they didn't have access.

Now we are in the era of (almost) universal access to storing our thoughts and we still don't listen to the everyone or mark them as uninteresting and not worthy.
> We saw a 3% reduction in their weight

> participants consumed about 8.6% fewer calories

I would say the interesting fact is that people consumed less food. It was basically forced diet.

They should do a different study to see how 14-hours fasting compares with a -8.6% calories intake diet.
But if you were hosting it yourself you wouldn't transfer 6G of data around per user. You'd be a bit more intelligent about it.
I've come to the conclusion, and so have many around me, that the stereotypical "hippy" attitude is in many cases a deterministic result of taking psychedelics. Its impossible for me to point to a number and say, look it changed by x amount in that part of the brain. In my own experience, I could describe what is known as the "afterglow" of psychedelics as a calming anti anxious, anti "negative emotion" feeling. But the feeling is accompanied by an odd feeling that somewhere in your brain is just not firing like it used to.
Eh... how long does it take to call somebody a success? Everything can happen in the future.

The change Elon Musk brought to the EV industry and rocket launches is permanent. Doesn't matter what happens to his companies in the future. What he did has changed both industries permanently. Everybody is making an EV now and everybody is trying to make some sort of reusable rocket.
Non-Lethal Weapons
Some type systems have set theoretical semantics, but this does not usually correspond to the semantics of the program.

For instance the type ∀ A. (A → A) → A would be empty in the set theoretical semantics, but in many programming languages there are terms of this type – the fixed point operator.

A better framework for semantics of many programming languages is domain theory[0]. But it also has its limitations.

The type system types the terms of the language. Thus it has to be intertwined with them. One of the purposes is to allow only well-typed terms, which then have a better understood semantics.

[0]: https://en.wikipedia.org/wiki/Domain_theory
If they were valuable, why would someone give them away for free!
> I’m not complaining about old-school sysadmins. They know how to keep systems running, manage update and upgrade paths.

Sadly these ways of olde didn't scale. They could only do it for a handful of servers, change request took months and the systems were not to be 'touched'.

> And since nobody is still able to compile things from scratch, everybody just downloads precompiled binaries from random websites. Often without any authentication or signature.

Right, that would have never happened back then, when packages were not signed and freshmeat.net was still a thing.
For some reason compiling C code from some website (`wget;./configure;make;make install`) seems to be more secure than `go install`, maybe because nobody understands automake anymore.
you could also do it to become more valuable to yourself, as an entrepreneur.
Most electric cars won't be charged at fast chargers most of the time. Because unlike fossil cars you can refuel them pretty much anywhere where there is electricity. At first this is only true for people with garages (or employers with a garage), but eventually most parking spots will have a slow charger installed. Since the typical car is parked for about 23h a day, charging time becomes a non issue as soon as charger availability is good enough. Fast charging is really only necessary for long roadtrips that exceed whatever range the car has.
This has worked pretty well for me and my own weight loss (and maintenance) journey. When I eat outside of my own 9-10 hour window it usually ends up as a meal that I overindulge in and subsequently regret.

As more anecdata, I find myself voracious between 8 and 9 AM, again between 11 and noon, and then between 4 and 5. After that I’ll throw back a decaf coffee or two but don’t normally crave food. When I ate whenever I was hungry I was all over the place and simply ate too large of a portion of anything and everything except breakfast.
So you could call that "so you can become more valuable to the capitalist machine."

Still fucked up that the concept is that you have to do drugs in order to, apparently, avoid being out-competed by your drug-addled competition and suddenly being unable to provide for yourself/your family.
I don't know where they got that figure from, but it is unrealistic to not also expect a decent amount of latency to be introduced by the transmission hardware, particularly under load. I have no idea how much, but this has generally been the case with most systems of this sort.
If this strategy works to encourage people to accidentally consume fewer calories, isn't that good enough? I don't think this was about the mechanism about the weight loss, but merely that the behavior pattern ended up encouraging it.
As far as I can tell, json() also needs to be treated as a promise, and fetch doesn't take a callback as an argument Wouldn't the correct non-await version look like this?

fetch(url).then( response => {
response.json().then( json => {
// do stuff
});
});

This is already much worse then the await version, without any error handling yet. And if I need to call another promise in order, I'd need yet another level of callback. Instead of two easily intelligible lines that could be wrapped into a single try/catch, we now have 4 lines and two new scopes/levels.

Why would I ever use this over await?
People adapt to the situation they experience. Github (and other repositories) tend to be stable, so they are used. Network speeds have increased, so we use the network and expend less efforts on local caching etc.

There's nothing "complacent" about this: previous generations also relied on infrastructure and didn't plan for prolonged power outages or had backup ham radio network links for when AOL was down.

People using nom install instead of custom makefiles aren't ignorant or stupid, they have found better ways to achieve their needs. And if 10 years on the job don't create the need to learn some skill, there is no reason to invest time into it. And I have complete confidence that people would be able to come with some workable solutions rather quickly if the githubcopalypse ever happens.

There is some cultural component at play among the "luddites" here as well, maybe comparable to preppers? It feels like planning for really exciting emergencies when one's skills that have been derided for so long are suddenly needed and safe the day. In this analogy, I guess Makefiles are the equivalent of very masculine hunting and zombie-defending skills.
I had exactly the same issue, I just had to power through. Tried to view it as a way to exercise my willpower muscle... multiple failures later my bad moods just went away.

Coffee helped. Also, planning my meals.
IPsec, at least using IKEv2, also uses UDP in most deployments where you are not using IPsec directly without encapsulation (not that it makes a real difference). You may be confusing with OpenVPN, which can run over TCP.

In terms of speed, they are comparable. The great benefit of WireGuard is simplicity on Linux compared to the configuration nightmare that is StrongSWAN, but implementing IPsec/IKEv2 on OpenBSD using OpenIKEd is roughly comparable if you use Let's Encrypt certificates.

You can get really inexpensive GL.inet GL-MT300N-V2 "mango" boxes (about $20) that will provide transparent WireGuard or OpenVPN encryption for a device that doesn't support VPNs out of the box (ahem, a Smart TV or streaming box, to bypass geo restrictions). They don't support IPsec.

https://www.gl-inet.com/products/gl-mt300n-v2/
I sort of agree. GraphQL just seems like a solution for a small set of niche problems that's being promoted as a general REST replacement for any and all web APIs.

Seems like we (as in, our industry) went through this before with everyone ditching relational databases and glomming onto NoSQL (particularly MongoDB) - only to realize later it was a mistake.
China orders state offices to replace foreign computers, software
A gas station costs millions of dollars, an environmental impact assessment, regular safety checks, staff to run it, etc, etc. A fast charging station needs a machine. A gas station requires you to transport the gasoline to the gas station. A fast charging station can be put practically anywhere in a city now.

I don't even have a charger at home. I recharge at a fast charger every time. Usually I go shopping, or do some programming or play a game. Not for everybody perhaps, but seriously not as bad as portrayed by this article.
I think the author is using 'silica' and 'silicon' interchangeably in the fifth and sixth paragraphs, ie:

> boron or phosphorus, could be added to the molten silica in precise amounts to change the silica’s carrier concentration. Depending on what dopants he added, the silica turned into p-type or n-type silicon

In almost every case the author probably means silicon since this is a method used for growing semiconductor crystals, not quartz crystals.
This is what I've advising people with a little bit of know-how to do. Using Algo [0] (If you only need Wireguard and little else) or Streisand [1] (If you need Wireguard in addition to many other things) makes it pretty much trivial.

[0] https://github.com/trailofbits/algo

[1] https://github.com/StreisandEffect/streisand
These are problems associated with personal car ownership, not EV's themselves. In a utopia with fully autonomous affordable electric taxi cabs this is not an issue, as they can charge by themselves in a cheap parking field outside cities, combined with a large solar array.
I have been skipping breakfast for the past year. This works for me when nothing else has.

I started a new job which is highly unpredictable and involves a lot of last minute travel. Due to the stress, lack of sleep, etc I had gone from 165 -> 180 pounds in 8 months. All fat.

After 3-4 months of morning fasting I am down to 165 pounds again. No change in workout routine. I generally stop eating around 8pm local time, and have my first meal around 11 or 12pm.

The best part is I can eat whatever I want still - burgers, pizza, etc. No restrictions.

I am wondering if female metabolism is fundamentally different. My wife tried the same diet and it just hasn’t worked for her. She gets too hangry whereas I find myself in a flow-state by mid morning.

Dr Peter Attia has done some great podcasts and YouTube presentations on the science behind fasting for the curious.
Parent's code with callbacks would be more like this:

fetch((err, res) => {
if (err) {
// yay - error handling! :)
}

res.json((err, myJson) => {
if (err) {
// oh no - another error handler :(
}

// do stuff
});
}

fetch.json is async as well. With await the try / catch would just be around both await calls.
I try to recycle metal (especially aluminum) and glass. The recycling of everything else is mostly a combination of virtue signaling and a jobs program.
> with pictures

...and some animation of Mickey Mouse & cie congratulating the user with some school notation at every step of the tutorial. Like this :

"Great, you didn't forget to prefix your command with 'sudo' while avoiding the evil 'root' user. You deserve a A+. Now take a candy bar in the bag provided by Cloudron just for you."
Here's something from my experience, it's not based on any research or someone's book, it's literally entirely subjective so who knows if it's even helpful: for me, intermittent fasting had effect when it was entirely irregular.

If my body didn't get a chance to notice the pattern, that's what made it behave different. Same goes for exercise, if I do regularly one type of exercise - body quickly gets used to it and it's harder to achieve gains by doing the same movement.

What I do is irregular fasting. Sometimes I won't eat for 30 hours. Sometimes I'll eat 6x a day. Sometimes it'll be eating at 11:00 and next meal is 12 hours after. These are not guidelines, just examples of irregular intervals.

I noticed results, it could have been placebo, who knows, I have no means to measure except subjective feeling. If you're capable of enduring hunger, you could try it. It might be dangerous so don't listen to random advice from a nobody online :) anyone reading this and trying what I wrote out: it's not my fault if something happens to you, I'm not a medical doctor.
A man after my own heart. I've long been saying that corporate tax rates should be zero, but all dividend and capital gains rates should be taxed at regular earned income rates. What we have now is this weird system where income earned through investments is taxed twice (first corporate, then dividend or cap gain) but each at a lower rate. Just normalize everything.
> 3) There's lots of strategies which don't make enough money for companies to be interested in, but are viable for an individual.

Is this because these strategies don't scale well, or is there another reason?
I think there's good reason people are downvoting you, but a valuable nugget implicit in what you say is that we do not have, and may never have, a correctly representative sample of the general population (in terms of psychological profiles) taking these drugs on order to get accurate data on psychedelics.
Thanks for the comment and the book recommendation, will read.
Expect to be slower. You should be typing one handed and letting your wrist rest and heal. Time off can be very fairly argued. I have a friend who lost several fingers on one hand. They can still type at like 50wpm single handed. Took several weeks of practice before it got there.

Side note: is typing speed really that important? It is nice to quickly get ideas on screen, but I don't think it is much more than that, is it?
A self-contained type-system is called "a logic". There are plenty of logics, many of which are not related to set algebra. Furthermore, many type systems are not directly related to set algebra (for instance, Rust's ownership). There are also more profound reasons (what is the type of a type, cf the notion of impredicativity and questions about decidability), but those are usually of little practical consequences for "mainstream" languages.

With only a logic, you can't show properties about the language. In particular, we like to show that programs that are well typed avoid some errors (like segfaults),
or that if an expression ( `log2(length(s))`) has a type (`int`), when you evaluate it to a value, the value (`4`) has the same type. If you want to consider such (nice!) properties, you need to consider the type system and the language together.
Not so obviously as you might think. But, if they are going to do it, they should clearly do it well
I wasn't overweight, but started doing IF as part of a larger life shift as a way to improve general health. I ended up losing weight because of the lowering of calories through skipping a meal, but I kept most of my muscle.

The biggest adjustment is that I work out most mornings, and felt I needed food prior. After a few days it became no factor. After doing IF for the past year+, I'm almost never hungry in the morning.

The biggest positive change for me though, was my morning mental sharpness. The hours between my workout and lunch time have become the best hours of the day for anything requiring mental acuity.
I wonder if there is a way to connect with people who have private jets and wouldn't mind picking up a passenger on the way at a price? That might be able to lower the price point for private travel if people are willing to do that. This depends on whether the ones having private jets are even willing to have the hassle of random people joining their flights.
Right now I'm doing 16/8, with 3 full meals a day, and I also spend one day a week in full fasting.

IMHO, the current status of nutrition is very divergent, almost every habit is backed up and discouraged at the same time by more than one study. There seems to be some agreements (about sugar, for instance) but the rest is not clear at all. And on top of it, you have to take into account how your own body reacts to a particular habit. Seems that trial/error is the best option for now.
About a year and a half ago, I rented a Hetzner server with a 1080 GPU, 16 core i7, etc. it was only about $105/month. I had a job queue for TensorFlow/Keras experiments and set it to mine ether when there were no ML jobs. I did this until I bought a System76 laptop with a 1070 GPU.
It’s great if this is your baseline! It certainly isn’t for most people so they’ll likely feel a significant difference when changing up their timings, as I did.
Russia, yes, but individual non-implicated athletes can compete under a neutral flag. It's happened before; all it means is Russian contribution to international sports funding will be reduced.
Is this really suitable for discussion on HN? It's mainly a political issue...
When you can get people to adhere to -8.6% calorie diets let the rest of the world know.
I personally think that EV charging infrastructure is not ready for mass adoption of electric cars. (This is, migration from internal combustion engines.)

But this article tries to seem "more than fair" without stopping to mention the one great advantage of charging - that some can do so at home, every night. So that should greatly reduce the infrastructure needs.

Peak charging in the public can and will be a problem, but I don't think the scale can be quantified without factoring in home charging.