Hacker Newsnew | past | comments | ask | show | jobs | submit | FpUser's commentslogin

On one particular project I started by "spamming" relevant interest based forums. Luckily I was a member of said forums for quite a while before I have released my first version. It was about 13 years ago. Strategy had worked and then I got CEO as a partner along with some investment so I no longer had to do it

>"Sam Altman may control our future"

TLDR but just the heading is already ugly. No single person no matter how nice they're should be able to control our future. Power corrupts, what fucking trust. We are supposed to be democratic society (well looking at what is going on around this is becoming laughable)


Switzerland - self hosting paradise.

Translation: "reaffirming our commitment to spy upon, control and censor users"

Fuck you.


I do not have anything resembling problems described. Before I ask AI to create new code (except super trivial things). I first split application into smaller functional modules. I then design structure of the code down to main classes and methods and their interaction. Also try to keep scope small. Then AI just fills out the actual code. I have no problems reviewing it. Sometimes I discover some issues - like using arrays instead of maps leading to performance issues but it is easily spotted.

I have shared mutable state which is available through the whole application lifetime. Having ARC in this situation makes no sense, single mutex should be all I need.

That's also an option available to you: Mutex::new() is const, so there's no trouble putting one in a static variable. If the inner value can't be const-constructed, you'll need a way to prevent access before it's initialized; for that, you can use a OnceLock or just Box::leak() the Mutex once it's constructed and pass around a simple reference.

I happen to be just now experimenting with app states. Out of interest, you mean something like this? https://gist.github.com/Ciantic/63526ebfe65570b669eca33bf340...

What would be disadvanatages of this approach? I don't like Arc's myself either, I would like to see what is best alternative for those in multi threaded apps.


Different commenter but yes, that's exactly what they mean.

The main disadvantage is strong coupling. The shared state inside the static makes it more difficult to test your code. There are ways to reduce this coupling, the most obvious being that you push as much logic as possible into functions that accept a reference rather than use your static directly. Then you minimize the size of the code which is difficult to test, and cover it with end to end testing.

The OnceLock does impose 1 atomic operation of overhead, whereas an Arc imposes 2 (in this case, it can be more if weak references are used). However neither are likely to be important when you consider the overhead of the Mutex; the Mutex is likely to involve system calls and so will dominate the overhead. (If there's little to no contention then the Mutex is a lot like an Arc.)

Your alternative would be to use `Box::leak()` as the parent comment describes, which would force you to pass a reference around (resulting in better coupling) and eliminate overhead from OnceLock. However, it's unlikely to result in any material performance benefit, and you could reduce coupling without departing from your current approach, so I don't think either approach is clearly or overwhelmingly better.


If you want to spawn multiple threads, all with access to a mutex, but without putting it behind an Arc, then you can simply spawn all your threads in a std::thread::scope(||{...}). These let you pass references &'scope Mutex<...> I find Rc or Arc almost never the right tool for a job where I want to "share state" or such

You can Box::leak() it to make a &’static ref to it.

Use a LazyLock for your state, then

>"They can't shoot the people they want so they just shoot these other randoms."

Same as sanctions. There are many places where they can not tell governments what to do, so they suffocate general population


Why is it said? Being independent to the degree possible is the best state for human being I think.

Do you think we became the dominant species by being independent loners, or by forming complex interdependent groups?

I said "independent to the degree possible", not absolutely.

I do not live in a binary world. I accept things in between.

Being part of group should be voluntary, not forced

What I definitely do not want is my life to be dictated by a few imbeciles at the top who are bought by large corps to pretend to be "by the people for the people".


The solution to that is widespread active low level constant community engagement in policy and monitoring the people you hire to debate policy (politicians) and the various silo's created to enact policy (military, civil service, legal, emergancy response, etc.).

Some people think it sufficient to pay no attention and let things slide indefinitely because "ultimately we can just rise up and shoot the government".

Such people have clogged toilets.


Isn't it expected that in a system that favors individualism over collectivism that a few people will be able to amass disproportionately more wealth and power than everyone else with no incentive or societally enforced responsibility to share that wealth and power, thus creating a society were your life is dictated by a few imbeciles at the top, not who are not bought by large corps, but who own the large corps?

Collectivism has many problems as well including that some are "more equal" and amass the same disproportional wealth (maybe under the cover and not placated but it is still there).

Indeed. It then follows that the optimal arrangement will find a balance, ameliorating the flaws of system each with the strengths of the other.

Several Northern European countries (like the Netherlands, which GP finds congenial) pursue this, though pragmaticism (unlike ideology) never reaches an end-state, and remains a work in progress. The USA, from ~1933 until sometime in the 1970s, operated on this model. It's probably only possible to sustain in high-trust societies.


A city whose citizens mostly drive is less independent than a city whose citizens mostly ride bicycles. Bicycling infrastructure is orders of magnitude cheaper to maintain than the same for heavier, motorized vehicles. It's not just the roadways: you need service stations, tire shops, parking lots and garages. Gasoline engine cars need gasoline distributed to stations all over the place and emissions testing. All of these things take up lots of space because motor vehicles are big.

All that bicycles really need are a (much narrower) right of way and some cheap pavement. Maintenance can be done all at home, even in a small apartment. The apparent independence available to motor vehicle drivers is an illusion afforded by massive private and public investment.


In what crystal ball did you see me saying anything about bicycles? I am long time cyclist, EUC rider and have car for cases when it is needed.

Maybe, but the "loneliness epidemic" articles and frankly, my own experience lead me to believe that independance is overated. Community is not though.

Independent? You say independent, I say parasitic. Just like any ruling class of the Middle East, especially the UAE. They’re not independent, they’re very much dependent on the semi slave labor they manage to exploit. Anything that makes life worth living is the result of collective labor. People coming together and building or learning upon previous knowledge. Hell, even your understanding of yourself comes from the social relationships you form during your formative years. This desire to be what amounts to an outcast is a defect, an abnormality imposed by the mode of production that organizes the world right now.

>" This desire to be what amounts to an outcast"

I think you have to get off your meds first


I can't imagine the logic chain that made you come to that conclusion.

But buying a lot of tacky stuff isn't independence in any meaningful way. It's just choosing a lifestyle with a larger dependency surface.

This sounds like a wise parent explaining some higher truth to a kid. Except that it is not truth but some our of blue baseless conclusion you've managed to somehow extract from my sentence.

What a memory. I loved game.

In a normal society courts should be protecting from signing away basic freedoms

That would also preclude non-disclosure agreements. I'm curious if you also find those unreasonable?

Both non-disparagement and non-disclosure agreements should—just as many jurisdictions have for non-compete agreements, which do not even implicate free speech the way the others do—be sharply limited as a matter of public policy (non-disparagement even moreso than non-disclosure.) Both are routinely used to inflict public harm for private gain, and government enforcement of either is in tension with freedom of speech; while there is a legitimate case to be made that non-disclosure agreements within certain bounds have a certain degree of necessity in enabling legitimate business, this is a much harder case to make for non-disparagement agreements, at least for ones that are not temporally bounded within an active business relationship.

Depends on what type of non-disclosure. Disclosing technical guarded and not publicly known technical know-how - I am ok with those. Disclosing that boss treats people like trash should be allowed and I think lawmakers should have enough intelligence in their brains to make laws accordingly.

> Disclosing technical guarded and not publicly known technical know-how - I am ok with those.

I would love to see NDAs for trade secrets limited in a way that incentivizes companies to rely on patent protection instead, where the system is set up to ensure that knowledge eventually becomes public record and freely usable by anyone. It would be very interesting to see how eg. the tech industry would change if trade secret protection were limited to a meaningfully shorter duration than patents.


I get that you're not a free speech maximalist, but that's still signing away a basic freedom.

What are 'basic freedoms'?

If you don't believe that people should be able to sell themselves into slavery, you should start by offering your list. If you do believe that people should be able to sell themselves into slavery, then unlimited freedom of contract is a basic freedom for you.

What you shouldn't do is pretend not to understand.


I'm not the one making a positive claim. I haven't even claimed such rights exist so why on earth would be the expectation be that I list them? You've assumed that I believe in this shared fiction.

We sell ourselves into a form of slavery every day. Some would argue that is a big driver of our current society and way of life.


You can’t get people to try to break out of a prison they don’t think they are in

Speech, for example.

Those that are deemed inalienable.

Freedom of speech is far from inalienable. Non-disclosure agreements are most relevant, but every country on earth also has at least some regulations regarding hate speech, threats, incitement, purjury, or defamation — not to mention security clearances or state secrets.

And that's where the complexity arises in this argument that I don't know how to resolve. In the case of this woman vs Meta, to me it doesn't "feel" legal that one disparaging comment costs $50K. It feels that there's something wrong here that should not be allowed despite her entering the agreement. Maybe I don't believe she should have been allowed to enter the agreement.

But I understand that my point of view doesn't match legal code. Just feels fucked.


To be clear, I do agree with everything you've said here — I just disagree that freedom of speech is an inalienable right, and I don't think there's ever been a time or place where it has actually been considered one.

If it were up to me, I would require non-disparagement agreements to be standalone contracts, and cap the damages a company can claim to the amount they paid you to sign it. Once that number is met, the contract is void. That way the company only gets as much leverage as they're willing to pay for.


The majority of people will self-alienate themselves in exchange for power or even just survival

Think of a person digging their own grave under threat of immediate murder (tons of well documented examples). This is the maximum self alienation: do work to make life easier for your oppressors.

In my 41 years it seems like the majority of people are content digging their own graves


Please enumerate these inaliable basic freedoms that I should not be able to deal in.

If you'd like to research basic freedoms, I would suggest starting here.

https://en.wikipedia.org/wiki/Fundamental_rights


It's very boring for you not to actually commit to anything specific, so that you don't have to defend it.

There's a basic list on that page. There are many LLMs out there that you can discuss this with if you want to waste your own time. I'm not going to waste any more time with this thread. You have an attitude that says "Debate me but you'll never convince me". If you'd like to learn something, there are many resources on the internet available to you.

I'm glad we're all here under the goal of making non-boring statements for 0x3f

We're all essentially here under the goal of making non-boring statements for each other, yes. That is the general purpose of an online forum.

The US will not permit you to sign yourself into slavery, as an example.

Only for a very narrow definition of slavery. Arguably constructing society such that it costs so much to just exist (for example, by artificially restricting housing supply) and thus you have to work is not all that different to slavery. I would say the dollar is but company scrip with better PR.

> Only for a very narrow definition of slavery.

Good. We have "enumerate[d] [at least one] inaliable basic [freedom] that I should not be able to deal in".


Well now you're equivocating. We've established one that you can't deal in in a specific country. _Should_ is quite a different question. You can't establish should by establishing is.

Don't hurt your back moving those goalposts. Lift with hips.

America = literally the whole world and everyone in it so QED inalienable rights exist

Well I wouldn't call it a strong argument...

Nonetheless the goalposts were never shifted. The question was always 'should'. So I'm very confused by your confusion.


What proof, exactly, would you accept for "should"?

Should is an opinion. You're welcome to feel "slavery should be legal". I'm welcome to (and should) think you're insane for holding that opinion.


> Should is an opinion.

Well that would seem to make the rights in question not particularly inalienable. In fact if we're talking about the US slavery _is_ legal in certain contexts. So it's definitely not inalienable. Only in the context of voluntary agreements between private citizens.


> Well that would seem to make the rights in question not particularly inalienable.

You should read up on what "inalienable rights" are about. Even the first couple of paragraphs on Wikipedia will suffice.

They get violated all the time and need constant protecting.


You're taking a strangely ethnocentric view here. I don't take the founding fathers' writings as a form of scripture. Those are but bare assertions.

You're taking a strangely US-centric view here.

This has nothing to do with the founding fathers. The Ancient Greeks talked about natural law. The UN passed the Universal Declaration of Human Rights. 193 countries have ratified at least parts of it.

Again, I beg you to at least read a paragraph or two off Wikipedia.


The specific term 'inalienable' is heavily associated with the founding of the US. The others are different things but not very different in substance, i.e. ultimately some guy claimed these are universal rights. Wikipedia is not going to make appeal to authority work any better as an argument, I'm afraid.

Clear ignorance again.

https://www.un.org/en/about-us/universal-declaration-of-huma...

> Preamble

> Whereas recognition of the inherent dignity and of the equal and inalienable rights of all members of the human family is the foundation of freedom, justice and peace in the world...


Is the US not in the UN now or something? The whole UNUDHR was an Eleanor Roosevelt project. She literally drafted the documents! At least look it up before being rude. You need to get the knowledge before applying the sass.

"An American helped convince 193 countries of something, therefore it's invalid" is a take, I suppose.

Well this was really just a sub-argument about whether 'inalienable' is an Americanism, which it is. The real point about 'natural' rights, or whatever term you've switched to using, is that they're simply assertions. Not supported by anything else. Doesn't really matter who is asserting them. The argument takes the same form, and is equally bunk.

> whatever term you've switched to using

They're synonyms. https://en.wikipedia.org/wiki/Inalienable_right goes to https://en.wikipedia.org/wiki/Natural_rights_and_legal_right.... This happens a lot in English.

"Natural rights are those that are not dependent on the laws or customs of any particular culture or government, and so are universal, fundamental and inalienable..."

> is that they're simply assertions

So's "we don't have natural rights".


Free speech?

So I can't sign an exclusive book deal? Or write for a newspaper?

Exclusive book deals tend to have defined timespans.

I'm not clear on the newspaper example; do you think reporters aren't allowed to write stuff outside their job? Plenty of reporters publish books.


No I just mean in the sense that I give over the rights to my own words. I can't repeat them outside of the context that I've agreed to. They were both examples of the same kind of agreement. They'll keep those rights well after I'm dead, by the way.

You're not giving over the rights, you're selling the right to profit from them under contract.

You can argue that contract law is essentially a battle of relative political and economic power, and IP and employment contracts will always be unfair unless limits are set by statute and enforced enthusiastically.

And personally I would.

But generally you're signing away the rights to specific text, not the insights or commentary in that text, and if you freelance there's nothing to stop you making your points through some other channel, and/or some other text.

If you're a full-time employee then the usual agreement is that your words (code) are work product and owned by your employer, and you're in that situation because your political and economic power is relatively limited.


> Exclusive book deals tend to have defined timespans

Good. We have "enumerate[d] [at least one] inaliable basic [freedom] that peopke should be able to deal in".

Of course, we can quibble over the permissible duration of such timespans, but I think the point has been made clear.


Just to be clear: you're asserting that "there are some inalienable rights" can be debunked by the existance of one that is not inalienable?

That's not how this works.


We're talking about whether people should be permitted to sign away their right to speech. I think you've conceded that such is permissible at least for a limited duration. Shall we quibble the permissible durations, or are you done?

Sure; we have to resolve conflicts between two sets of people with rights sometimes. The inalienable right to free speech doesn't extend to defamation and fraud; the inalienable right to freedom of movement doesn't apply to jailed murderers.

Unconscionability is a bit like obscenity; hard to perfectly define, but sometimes quite clear.


> The inalienable right to free speech doesn't extend to defamation and fraud

You have a strange definition of "inalienable".


Not really; it's a conflict between two groups and sets of rights.

I have the inalienable right to not be defamed and defrauded.

Now we have to resolve the contradiction as a society. That it's sometimes messy doesn't mean we ditch the concept of rights.


Those are not inalienable rights either, they're legal rights. Here, courtesy of Cornell law:

"An inalienable right is a fundamental entitlement inherent to every person that cannot be sold, transferred, or taken away by the government. These rights, often called natural rights are considered essential, cannot be surrendered by the individual, and are not dependent on laws."

Just Google "is x an inalienable right" next time.


An inalienable right can also be a legally protected one.

"Inalienable" is an assertion; a should.

The right not to be genocided is inalienable. It gets violated still.


You asserted that free speech was an inalienable right, they provided an example showing it's not.

They also could have mentioned: NDA's, hate speech, threats, incitement, purjury, defamation, security-clearances or state secrets.


> You asserted that free speech was an inaliable right, they provided an example showing it's not.

No.

"Inalienable right", like the "right to bear arms", has never meant you get to do anything with it. Free speech doesn't extend to defamation; free expression doesn't extend to murder; freedom of the press doesn't extend to sneaking into the CIA's archives, freedom of movement doesn't apply to jails.

I'm of the opinion that arbitration clauses and non-disparagement agreements of the scope involved in this particular case are unconsionable, because they unreasonably infringe upon such inalienable rights.


You're proving my my point, the right to bear arms is a constitutional right, not an inalienable right. Please look up the definition of inalienable.

Some assert it's inalienable.

(I don't agree - re-read my wording carefully - but some certainly take that position. My point: those who do still tend to take the "but there are limits!" position on, say, home-brewed nukes.)

In each case, though - constitutional right, human right, inalienable right, natural right - the fundamental concept of "sometimes two people have rights that conflict, and society has to resolve this" applies.


Washington state does this with some parts of tenant law. There are certain tenant rights about habitability (heating, etc.) that are protected by law, and cannot be nullified by a rental/lease contract, even with consideration. The law states that the tenant legally cannot waive those rights.

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

Search: