Hacker News new | past | comments | ask | show | jobs | submit | more goeiedaggoeie's comments login

setenv and getenv have never been thread safe, why the concern with it now?


The concern now is that, unlike when Posix was set in stone, threads exist.


The p in pthreads stands for Posix. I.e., uh, Posix is neither set in stone, nor entirely predates threads.


I am old enough to remeber when UNIX only had processes, and several thread designs were being discussed until eventually pthreads one design won.

POSIX predates adoption of threads in the UNIX world.


Yes, yes, but also post-dates adoption of threads. It's an ongoing standard.


Which only standardises existing practice, not inventing new ideas.

So first everyone implementing POSIX has to agree to move forward with thread safety where it fails short.


And when can we expect the version of Posix that fixes setenv to be MT-safe?


You've shifted the goalposts from the comment I responded to.


Not at all, because if Posix wasn't set in stone, then surely it would take somewhat less than three-ish decades to fix this problem.


This is very nice.

I has to convert a bitmask to svg and was wishing to skip the intermediatary step so looked around for papers about segmentation models outputting svg and found this one https://arxiv.org/abs/2311.05276


more tricky frequently because you need to measure the moisture for each plant as maintainance is difficult without, but this is generally the most efficient low cost method in very arid regions from what I have seen (dad is prof in the field, so exposure is years of unpaid labour as a child and student)


you don't need anything fancy for drip, a small hole in the pipe and a timer on your pump is is generally enough. If you really want to go fancy you can isolate the system and use moisture sensors, which are cheap.


Are moisture sensors any good? I always read about how useless they are, but maybe that’s just a certain type? What would you recommend?


Moisture sensors that measure conductivity are pretty useless unless frequently recalibrated but time domain reflectometry sensors are much better and more accurate.

I use the VH400 from Vegetronix: https://www.vegetronix.com/Products/VH400/


Yes, conductivity is pretty useless over time.


As I have aged (almost 50 now) I have realised that greed will turn any good thing dark without vigilance, and then who watches the watchers. Eternal spring perpetually. A culture which prioritises individual profits over the commons will destroy anything not regulated.

As I have said before on this forum, we need a way to price in the whole lifecycle of manufacturing through to waste and punishments for behaviour like Purdue and the opioid crisis should be the loss of all wealth generated by such dark behaviour.

of course this is also unworkable, but I am not personally certain what is workable without a secular moral revolution.


Or we could move away from pricing everything and the neoliberal obsession to turn everything into a market, and restructure our economy to provide everyone with their basic material needs, regardless of how much income they have.


even if we restructure everything to meet human basic needs, pricing will still be part of the equation. finite resources means value has to be attached to materials.


Value and price are not the same thing. Money is a form of access control which limits the availability of scarce resources to those people and organisations which have enough funds. It also collapses the value of all things to a single dimension. There are other ways to decide how much of something is produced and how it is distributed, for example participatory economics.


Money isn't just a form of rationing, it creates the scarcity it claims to solve.

A neoliberal economy wastes talent and skill in much the same way an ICE wastes most of the energy from the gas it burns. Vested interests clog up the engine and keep it from running cleanly and efficiently.

This doesn't just create pollution of all kinds - physical, social, political, and ecological - which makes the environment a very unpleasant space for most humans.

It also puts a hard cap on the maximum speed, which is nowhere close to what's possible.


pricing is the exercise of determining value, even in a non monetary economy (think barter or contribution) you still need to price the value of materials and time. obviously money creates secondary effects which are not related to value due to arbitrages and other effects, but I do not believe you can have finite resources without determining value, which is what I meant by pricing.


We still haven't found a better resource allocation model than pricing.

We have tried central planning, and it resulted in horrendous living standards (as compared to the western world), queues all-night-long that you had to wait in if you wanted to buy bread in the morning, "if you're not stealing from your employer, you're stealing from your family" being adopted as a common proverb, and the whole system basically running (for some definition of running) on bribes, favors and theft. Communism finally fell around '89 in most of Eastern Europe, and we're still recovering.

Perhaps you could solve some of these points with computer-aided optimization and dystopian AI-powered mass surveillance, but is that really what we want?

In my view, the problem isn't capitalism, the problem is the government trying to fix capitalism, but instead making it much harder for small competitors to emerge, effectively causing almost-government-mandated monopolies.

Think about what industries are complained about most in America, and how regulated those industries are. You can't just lay fiber, make medications or help patients without going through a regulatory minefield, mostly for good reasons, but this is why the big providers of these services aren't outcompeted by smaller ones. There's a reason why the mostly-unregulated big tech is considered to be one of the most trustworthy industries among most (non ideologically motivated) consumers, far surpassing any political party.

Capitalism is sometimes bad, central planning is worse, but heavily regulated capitalism is the worst of them all.


A key problem with unfettered capitalism is the tragedy of the commons. If left alone rogue/selfish actors will destroy that which belongs to all of us and is required to live (see nature). How do you propose to solve this without "benign" interference?


I'm personally in favor of taxing externalities.

If your property generates air pollution, noise pollution, smells, unclean water, radio interference etc, you get taxed and/or have to offset the effects (e.g. by planting trees).

You can do this with very simple, straightforward regulation, in a way that is very easy to understand, doesn't require an army of lawyers to follow and doesn't advantage or disadvantage large companies.

The temptation of exceptions, exceptions to exceptions, and exceptions to exceptions to exceptions might be too much for governments to stomach, though.


> We still haven't found a better resource allocation model than pricing.

There are many different models. Look at Elinor Ostrom's work, or projects using participatory budgeting.


So, a socialist society then?


Make it opt-in, please.


See also: enshittification


OMG i loved my 3dfx vodoo 3 card. I had a 20 port hub and we would basically have roaming LAN parties. You brought back a lot of good memories here.


Do you have a source you can point me to regarding sex imbalances in china historically. demographics, and its sibling, economic growth are super fascinating subjects.


Didn't the Malthusian cycle result in labour shortages continously? What about the roman empire (byzantanian) after plagues?


Yes, but at such a time you would not have a shortage of wood for fuel.


Shortly after a contraction, if anything the forests would regrow.

Fueling the war machines a decade or so later, of course.



API's are a lot more limited than IOS however from my experience.


many moons ago, before git was released, I put svn in front of clearcase and had people locally commit to that, trap into hooks of svn, check the file out of clearcase commit and recheck-in. the whole engineering group I worked in switched to using the svn and sped up, although user contribution was thrown out in the clear case log.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: