skysight-inc/HackerNews huggingface dataset:
Funny enough they've more gone from being integrated with each other to being in some sense parallels of each other, if you're willing to stretch the definitions a little bit, as one of several languages executing on top of a VM (V8 and friends and the JVM).
"If you write regular synchronous Rust code, unless you have a really good reason, you don't just start with a thread-pool. You write single-threaded code until you find a place where threads can help you, and then you parallelize it, [..]"

I cannot agree more with that. As someone who's done a good deal of Java in my day job, I can tell you a thing or two about spawning threads willy-nilly. At least it is easier to avoid in Rust, but I'd still prefer it the other way round: opt-in, instead of opt-out.
I thought I was crazy! Would love a fix for this
> Poetry systematically downloaded every single major, minor, patch version of another dependency in trying to find which would fit the version constraints.

Great news! Better do that then have to do it manually

But yes it sucks, still Poetry is much better than Pip (where it just gives up and tell you to go deal with the issue yourself!)

Now why do people care about Cython and especially in things like dependencies I don't understand. awscli shoud be an independent package! "oh but it is faster" are you counting the time it takes to fix things when they break because you are depending on a fragile thing?
Have you had any experience using deal on personal projects or professionally yet?
I think about reduction in volume rather than reduction in weight as a goal. Burning fat will reduce your volume but adding muscle will increase your weight (potentially).
Depends where. Some in New Zealand have been going since IIRC the 1950s
That sounds like crappy tint. IR is what carries most of the heat, so high-quality tint blocks that part of the spectrum well.
OTOH, your's is the stereotypical response from an HNer blindly pushing for developer convenience without considering the benefits and drastic power shift away from the user getting just static document data sent vs yet another VM environment to do what desktop apps are already doing, badly ;)
> Smarter people than me would have to answer

They have! Lawmakers and judges that are better at this than both of us put together have been wrangling over it for decades. The spirit (and letter) of the law is pretty clear that length of service is not a consideration here - in fact, HMRC don't include it in their CEST tool, which is very maximalist.

The actual tests, in law, are supervision direction or control, mutuality of obligation and right of substitution. IT contractors are generally weakest on substitution - it's written in to contracts as a fig leaf, but very seldom triggered. If a court finds that actual working practices differ from what's written in the contract they'll prioritise working practices in determining employment status. The clause I had to modify most often was one attempting to control working hours - because that would point to supervision direction or control. It's amazing how many agency contracts had that baked in.
If they were it probably would have already occurred.
Redis nailed multithreading :)
99% of the cases: don't. 1%: very carefully.
That's right, All this pain and still 7.9%. Who knew that electing morons and voting for brexit to smash the system might have consequences?
I think it doesn’t have a choice in downloading all versions if they use a setup.py config file. You have to get the sources to run it and get the package’s metadata.
I bought two NUCs, one personally and one through work. I had a desktop class i9 chipset that I could travel around the world with. I actually plugged it into something like [0] with an eGPU when it was at home for the extra oomph.

I'd buy another for my next machine.

[0] https://www.amazon.co.uk/Cooler-Master-MasterCase-enclosure-...
> posted on June 9, 2022

> this is old

???
Bonus points that you can still use English for the interface (ie. decoupling the currency and region).

Originally I thought the keyboard printing would be a sticking point for them not to ship there, but now that I just tried to customise a Framework 16, they do have Traditional Chinese keyboard (the usual English + 3 Chinese writing system on each key), and that's great. The 13 doesn't have it (yet?) though.
They’ve really lost the thread over there. Very happy with my move to Lemmy.
> Advancing the state of the art is not the goal, producing a tight, clean design is.

Sure, but they failed to deliver that.
Large part of biggest crimes I've seen in software comes down to picking some allegedly good property and optimizing for it irrespective of costs and limitations it involves. Encapsulation, modularity, flexibility, readability, purity, testability - you name it. Some dubious, some reasonable - no matter what, it usually involves costs and drawbacks.

I have 99 big problems developing software, and not being able to read it from start to end ain't one.

I'm a bit jealous for people advocating such things, being able to work on software tiny enough to even be able to think this is practical. Literate programming could work for tiny software that can be approximately flattened to a 1d "story": "beginning -> end" with only minor detours.

Most of projects I worked with was large enough that things are optimized precisely for not having to understand large parts that were abstracted away (and the problem is to try to do it without introducing too much complexity).
Last time I checked it didn't allow me to group tabs, so not sure why it would be applicable to my usecase which is an UI thing. Seems to be two separate features to me at least, but maybe you know how to use containers to group tabs in top bar of browser.
They didn't. Both games are dependent on one or more forms of football that were codified in England, just like American Football.

Think of them as forks that have deviated little enough, or deviated in similar enough ways, from the upstream that they are still somewhat compatible.
Now I’m imagining your coworkers talking about getting nookie.
so, what is the solution?..
Not to defend the troll you're arguing with, but conservatives moved to the GOP early to mid 1900s. Look up Strom Thurman for example. Reagan was another of many.
Upvoted, but why not unionise because altruism, rather than retaliation?
Ah the sweet smell of Astroturf in the morning...

Article claims that Fediverse (Mastodon) engagement is down, when, in fact, the past weeks have seen an increase in both sign-ups and active engagement.
When I was 40 I went from ~16% body fat to ~9% while also gaining about 5% of my body weight in muscle. It took me 2 years during which I experimented a lot with nutrition. I also consumed every article, video, study, advice, etc that I could find. Looking back I was pretty surprised to understand that all that information did almost nothing in helping me get results.

Getting "shredded" was mostly limited by finding out what works for me. What food I can easily buy and cook. What food I tolerated eating, because after 2 years I could not stand chicken breast any more. What fit into my schedule as I could not eat a big lunch because it made me sleepy at work. A big dinner meant I would sleep poorly. A big breakfast prevented me to train in the morning. I started by drinking almost a liter of milk a day but somewhere along those 2 years I became lactose intolerant. I ended up eating a lot of fat in the form of nuts, butter, cheese and that made my cholesterol go down somehow which puzzled my doctor. And so many other things I discovered about my body.

I am not even talking about bullshit science in the fitness industry (which is a lot). Articles and information like the present ones, which I can find nothing wrong with, do absolutely nothing in helping lose weight. This rant was provoked by the title "Numbers without which it's impossible to talk about weight loss". I call bullshit even as I recently started another weight loss journey as I'm close to 20% BF now. And very little of what I discovered before applies as I'm older, switched lifestyles, live in a different country with completely different food, etc. But one thing I am sure of: I will not waste another moment reading stuff like this.
I'm not saying Europeans don't consume.

I'm saying no one except USians would say "I consume more than you, therefore my quality of life is higher".
I tend to hang out with hundreds-to-thousands of endurance athletes [0], and the large plurality of them are not heavy people. Sure, there are some that don't run competitively and take around an hour to do a 5k with their friends. They do tend to be a bit curvier and say things like "I run for donuts" or "I've gotta work off my beer somehow". By and large, though, people who are consistently running throughout the week are not overweight. Some of us also eat a ton to support this.

All this is to say that I suspect our cultural understanding of "normal movement" is near zero minutes per week, and "exercising" is only slightly above that. The study itself references 150 minutes per week of moderate exercise out of the 6,720 waking minutes available. Allotting just over 1% of time to exercise does not strike me as the type of strategy that would effect meaningful change. In fact, 30 minutes is a relatively easy 5k time— a distance which most coaches would say a healthy adult can shake off and be well rested from within 24 hours. 25km per week is a very low volume for someone expecting to see a physical change.

Unfortunately, the levels of activity that do have a positive impact on peoples' lives are often described as "insane amounts" or other discouraging descriptions. Indeed, it takes time to adjust from old normal, where 292.6 minutes per day of television does not seem out of place, to a new normal where investing in ones body (and mind!) is given a high priority.

I haven't finished reading the second referenced study, but I'm seeing the same thing— small impacts at the start of something. The first random referenced study [1] I picked had this to say:

> The results suggest that dieting is associated with weight loss followed by regain after treatment ends, whereas exercise alone produced smaller weight losses but better maintenance.

The key, from my experience, is adopting a lower-weight lifestyle. We've all seen friends attempt a new diet and it never works, as TFA explains. Unfortunately we've built a culture of obesity, and cultural influences are very difficult things to avoid.

[0] https://ultrasignup.com (These are all over the country, and not all of them are ultramarathons)

[1] https://www.sciencedirect.com/science/article/abs/pii/S00028...
Slavery, extortion and kidnapping are not scams though. And you'll notice that in all these cases the victims would have been better off if their tormentor simply did not exist. Would employees be better off if their employer didn't exist?

> This system is definitely rigged.

How would a hypothetical non-rigged system look like?
If this nutjob gets the DNC nomination, Trump is going to look like the better choice, even if he has to carry out his term in a prison cell.

America is really going off the deep end.
Based on my research, and I'm just a schmuck on the internet, the things that seem to work are: (1) not getting fat in the first place by maintaining a healthy weight through persistent diet and exercise (2) bariatric surgery (3) GLP-1 drugs, although they're very new and (4) fasting, although that would have to be an ongoing thing, and the evidence for this is promising but limited.

Re: (1) I'm not being glib, your body has a strong homeostatic drive and once you overcome it to put on the weight, you have to overcome it to lose the weight - and that's far less enjoyable. Unfortunately losing the weight can come with permanent metabolic adaptations that bias you towards regain, and you'll be fighting them for years.
This is an important topic, but why post it here on HN? More and more posts are general news now. There are so many places for these discussions other than a technology oriented message board.
One for the Steven Skiena algorithms fans: In his other book "Calculated Bets" he devotes an entire chapter, entitled "what is jai alai", to explaining the intricacies of the game. His interest in probability and the math behind gambling was sparked by visits to these sporting events with his family.
The four space prefix is for code/monospaced blocks, not really for quotes.

Generally on HN people (myself included) seem to use the '> ' tradition for quoting, which the parser doesn't treat specially but works out fine.
Basically, if you have valuable tech skills and are young and healthy, the US is a great place to make a lot of money.

Otherwise, not so much.
Possibly more like instantiating the statistics problem by getting, say, every 3 members of an orchestra to represent a triplet of doors in the Monty Hall problem and then making a ball-park guess what the results are from a seat in the middle of the back row.
The problem with SWIG bindings I’ve used is that they don’t have any type hints. They also don’t offer context managers to handle resources, so it’s a pain to use safely in Python.

From the user POV, the best bindings I’ve seen were wrappers with a Python API that calls C++ using Cython.
Right. People should run for the sake of running (endurance and cardiovascular health) and lift for the sake of lifting (strength and size). Any metabolic bonuses are just that, bonuses.
You also get Shinty/Hurling matches between Scottish and Irish teams.

If you don't know what Shinty is, imagine if you took Ice Hockey, got rid of all the ice, allowed people to swing from as high and back as they like (golf swing, rather than "keep your stick on the ice"), and just in general made Ice Hockey really fast and violent.
You keep repeating that. You don't even know if the people commenting to you use the API or the "web app". I use the API and I noticed the same stuff others have.
That’s likely a very good example of the limitations of LLMs.
Only allowed if it's fexpr based though.
XML is to XmlHttpRequest like Java is to JavaScript?
As a baseball fan, it's funny to see this article from a few cycles of the pitching/batting arms race ago.

Corrupt is not quite how I would describe what's going on. Baseball has always had elements of deception, rule bending, innovation in equipment, the need for secretive methods of communication (and therefore codebreaking), and acts that are against the rules but within the spirit of the game (and acts that aren't against the rules but do violate the spirit of the game).

Baseball has a very rich and complex culture surrounding it.
The usual methods to control versions with a lockfile don’t work here because it’s a build dependency. You’d need to disable build isolation and install the right build tools in your environment before installing pyyaml but that can become a mess real quick.
I'm now sometimes using GPT3.5 because it produces better results than GPT4. GPT4 was amazing when it first came out for me. Either it has deteriorated or I was lucky in the beginning and am now lucky with GPT3.5 from time to time.
There are Intel NUC laptops, or as they call them kits, I'm not sure what the details are. They're sold and branded by third parties but the guts are the same, except maybe the RAM and SSD (very minor customisation anyway). When I was looking I ended up with one since it was a pretty good price compared to the competition, I wanted one with a serviceable GPU for occasional games.
Yup, there's like 10 different factors that change on daily basis.
Until you can find a way to store something for ~200,000 years then nuclear power is making our descendents pay for our consumption now

That is how long they will have to look after (some of) the waste.

There is no hole deep enough that you can put high level waste into and safely ignore it from then on.

It is not "green". It is the opposite. Selfish dangerous and greedy
Same experience for me. Very unlucky answers now.
> Yes the RwLock and mpsc comes from Tokio and lets you .await instead of blocking a thread, but these are not async primitives, these are multi-threading synchronization primitives.

The only reason all this async stuff even exists is because we want concurrency. We want to say "while this one task waits for I/O, this other task will do stuff". So it's not too surprising to me that an intro to async would include synchronization primitives. Those primitives aren't really "thread"-specific if by thread you mean OS thread. When you do async like this, you're basically re-implementing OS threads in user space.
While the article mostly focuses on the cognitive cost, which I deeply sympathize with, I do wonder about the runtime performance cost. Are there any good benchmarks actually quantifying the impact of all that extra thread-safety and the hoops that it adds? I'm not asking simply due personal interest in seeing the numbers, but also because if we want to steer the community towards this non-threadsafe direction it would help to have material to back the ideas and I suspect Rust community would be more responsive to complaints about perf than cognitive cost.
The solution is to create "native apps" which contain only a WebView that shows a webapp. Then you can implement the few native calls you need natively and cross-communicate with the Javascript of the webapp in the WebView.
This is just my opinion, but I think one thing that I haven't seen mentioned much is that modern diets (by which I mean foods) leave your stomach more empty than it should be for a given amount of calories absorbed. If you eat lots of whole foods, prepared the right way (e.g. steamed instead of fried in oil or fat) you body will 'see' less calories for the same stomach 'fullness'.
(I've done a bad job of expressing that - I hope someone will chime in with a better description and more information).
Researchers like Giulio Mattioli have shown pretty well what should be clear from watching politics: getting people out of their cars requires sticks as well as carrots.

>Improvement to public transport is the only win-win policy measure in the diagram. As a matter of fact, all policies that reduce the need for an automobile to access jobs and services by improving the effectiveness of other modes are generally seen as contributing to alleviating social exclusion, insofar as they improve the situation of households without a car (Shaw and Farrington, 2003, p.109). They should have a positive impact on environmental sustainability as well, insofar as they encourage a modal shift from the private car to less polluting means of transport. However, transport researchers generally agree that “pull” measures that encourage voluntary reductions of car use – or “carrots” – are unlikely to effectively bring about change at an adequate scale and speed (Huby and Burkitt, 2000, p.390); therefore it is generally pointed out that there is a need for complementary “push” measures, which aim to reduce car use in a more direct and coercive manner (“sticks”).

https://www.researchgate.net/profile/Giulio-Mattioli-2/publi...

Or see this thread: See https://twitter.com/giulio_mattioli/status/16250810050893660...

Making driving worse is good, actually.
Unicorns grow so fast and wildly, the company structure is all out of wack, but everyone is afraid to touch it because it's a machine that prints money. Now that the money-printing machine has broken down anyway, it's time to fix the annoying pinging sound it makes in third gear.
Want to explain how they computed it to us? Because if R0 is a real thing then either the people estimating R0=1.something were wrong, or Nick was wrong, and so somewhere some methodologies need to change. I read a fair few modelling papers and R0 (under varying names) was always being used by the model as a free variable used to achieve fit to a historical dataset. It was never being established via lab work, as you might expect given its definition.
Why are you constantly rebuilding dependencies? Surely you should only rebuild if there is a new (and vetted) version
More Software Projects Need Defenses of Design
Val overlaps with Vale but not with V and Vala. :D
> What's advantage over having tenant id as distribution column?

Ease of use is definitely the main one. If you're willing to put in the work required to use tenant ID as a distribution column (add it to tables, primary keys, foreign keys, filters, joins), then it's a more scalable approach.

A challenge with sharding by tenant ID is that many applications use a normalized data model, meaning not all tables obviously have a tenant ID column. When you use a schema per tenant on vanilla PostgreSQL, no additional steps are typically required to enable schema-based sharding.

There are some other benefits of schema-based sharding such as custom table definitions, simpler & more versatile access control, and longer term we expect it will be easier to pin a large tenant to a node using schemas, or distribute the tables of ultra-large tenants (by some other dimension). Of course, row-based sharding has other benefits like parallel cross-tenant queries and global DDL.

> Couldn't the microservice case be handled by having distributed tables with no distribution column?

Absolutely. We first implemented the notion of single shard distributed tables with a NULL distribution column, and then built schema-based sharding on top as a convenience layer.

> Can one have a reference schema which can be efficiently used alongside every other schema? Guess that's public schema with create_reference_table/create_distributed_function

Yes, public schema (or other another non-distributed schema) can have reference tables & distributed tables as usual, and tables in distributed schemas can have foreign keys / local joins with reference tables.
Can they be conserved for a longer time if they are used for a fraction of the day, like night?
The experience of stopping to exercise and then starting to gain weight is pretty common. So is experience of picking up exercise and starting to loose weight. Can it get you from super obese to thin? No. Is it true that your physical activity is irrelevant to your weight? Absolutely not.

> If you work out, you'll be hungry, and you'll rationalize or sneak extra food, and one muffin un-does like 5 miles of running.

This is really not how any of that works. Only some kind of exercise will make you more hungry ... and they happen to be the ones where muscle builds. You are more hungry after lifting weight, but you also should eat more after lifting weights, else the muscle wont build.
I mean, with all due respect, but if you cannot see any reason for this to exist, even given the explainer in the readme, then it's clearly not for you. But just because it's not for you doesn't mean I can't be for anyone.
I'm not a junior dev. I do not benefit a lot from lunchtime conversations about python 10 implementation of match case or why react FP tools are more efficient than it's OOP tools.

What I benefit from is going deep into the 'why' and 'how'. Sometimes it's just a clarification (I try to package them to avoid multiple interruptions), sometimes it require a two hour dive, starting dev Ec2s and plunge into a DB. I'm going on-site twice a month, so I know it's way easier to learn something w/o distractions. I tried to keep working on a complex task two months ago while in office, the loudness made me a X0.1 dev. It managed to get me really angry for the first time in months, without my gym or to work it out.

Nowadays I only take documentation/boilerplate or easy coding tasks that doesn't require to read code for 3-4 hours straight when going to the office. It's too inefficient otherwise. I think I prefer working while in the train tbh.