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

This is neat, but your implementation does seem to allow duplicates sometimes

Should be fixed now, sorry for trouble.

Docker layer caching is complicated!

CircleCI has an implementation that used to use a detachable disk, but that had issues with concurrency

It’s since been replaced with an approach that uses a docker plugin under the hood to store layers in object storage

https://circleci.com/docs/docker-layer-caching/


Is it any better than buildx cache then, that also stores caches in object storage (via OCI registry)?

I have to disagree with this.

Yes existing terms have meaning, but they also have baggage.

Forming a new term is a reasonably effective way to shed that baggage and attempt to start the cycle all over again.

Seeing a term you’re not as familiar with and needing to look up the definition (whether that’s a local or a global definition) is usually a good thing IME.


This is naturally happening in all languages, but there’s a big difference between widely accepted new norm and a jargon invented by a small group of people who didn’t bother to think enough.


> needing to look up the definition

Who has ever needed to look up the definition of something like "impactful" or "observability"...?


Folks who don't have English as their native language...?


> Is this a real problem? If there's a function signature that accepts `Operation`, the caller must explicitly cast the `int` to `Operation`. At that point, it's the caller's own fault.

You would think that, but that isn't always the case: https://play.golang.com/p/Ze3pfNEVTVs

It's very easy to create an enum value that isn't actually in the defined range


Can you explain the thought process of a developer when they write 'performOperation(2)'? What do they believe '2' signifies in this context? I struggle to believe that this could occur by accident.


You struggle to imagine a programmer passing a value of the wrong type to a function?


Or passing a wrong value and the compiler allows it because the programmer trusted the compiler to "always do the right thing".


If you're producing more than a full-time colleague, does the 50% pay cut seem a bit harsh?


Probably, yes, but I suspect that it's so hard to find this arrangement (20 hours per week, full benefits, and still very good pay despite it being 50% of total), that I'm just very content with the arrangement.


In my opinion the best antidote to overly complex architectures is to have engineering teams and the engineers in them be rewarded based on actual business outcomes.

I suspect the era of VC-money and ZIRP led to a large number of engineers who were disconnected from successful long-term business outcomes, so there was no incentive to simplify.


What is this obsession on HN about "everything can explained with the end of ZIRP" (zero interest rate policy)? Really: Even with overnight rates at 5%, the returns are still awful compared to even moderatly successful VC firms. And, I do not write this as a fanboi/gurl for VCs. (Many have shitty, immoral business practices to enrich themselves at the expense of hard-working non-executive staff.) Also, "end of VC-money": No such thing. They are practically bursting at the seams with uninvested money gathered during ZIRP.


Are you suggesting that the macroeconomic environment in terms of funding and performance expectations of startups hasn't changed signficantly in the last few years?

VC-money and ZIRP is a convenient shorthand for what's changed, neither are terms I think particularly encapsulate what did change, but I think it's very hard to argue that it's still just as easy to get a bunch of funding without a business model. (aside from in AI perhaps?)


This only makes sense if the engineering teams own the process from end to end, at which point they stop being engineering teams.


A sales team gets measured on the sales they make - but they don't own the end to end process of building the thing that they're selling.

It's entirely possible to measure teams on business outcomes without having them own things end-to-end, but to be really effective in this they'll need to collaborate with the other teams across the company - which is generally a desirable outcome.


I agree.

In my experience, this exists in a few, rare (investment bank) trading floor technology teams. From a distance, it looks like traders who are programmers.


Am I missing something?

Couldn’t they allow you open PWAs in Safari, or fall back to opening a URL in another browser?

Is there some part of the DMA which demands full feature parity?


>Is there some part of the DMA which demands full feature parity?

Very likely the EU wouldn't like them prioritizing their own browser for a feature


Personally I’d have separated finding the Author line from pulling out the contents of that line - but still used Regex


it's also worth noting that even on the same platform, compiling with CGO enabled creates a dynamic link against `glibc`, which creates a dependency on having the matching version in your deployment target.

We ran into this recently as our CI system is running a newer OS than we currently deploy to - and disabling CGO was an easy way to sidestep this requirement


Is this something inherent in CGO implementation? If your dependency happened because the compiled library depended on it, do you know that that is probably avoidable (I haven't tried your use case, so I could be wrong) by using zig as a compiler as it can "cross compile" for lower glibc version and also to musl, avoiding glibc altogether?


With zig I think you can avoid libc deps on Linux, at least, by statically linking musl instead.

Not sure SQLite is tested in this configuration, for the fans of “this didn't pass TH3 so we can't trust it at all.”


AFAIK: you also link to a different (lower!) glibc version from the one on which you do the compilation, probably solving the problem you had without having an excuse that you linked an "untested" library.


I once attended an internal presentation while working for the UK's Ministry of Justice.

A large number of contraband mobile phones had been confiscated, and a team performed some data analysis to see what they'd been used for.

The overwhelming conclusion was that the phones had been primarily used to keen in touch with family.

There's also a whole bunch of research that showed that maintaining ties with the outside world while incarcerated led to reduced rates of reoffending (and the inverse was also true - isolation led to increased rates).

Allowing free phone calls in and out of prisons makes a lot of sense both socially and economically.


I would guess that there are many cases where it reduces the burden on the prisoner's family - a burden that should never be a purpose of incarceration, and which may lead to follow-on social dysfunction.


> reduced rates of reoffending

Sounds like something bad for business when you run for-profit prisons.


A lot of what makes sense socially and economically doesn't happen (esp. in the US) when the alternative is a very profitable business, often an oligopoly. E.g. free prison phone calls hurt the >$1B "inmate telephone business."

Prisons themselves can be a profitable business, which (if you own a for-profit prison) provides strong incentive for reducing rehabilitation and increasing recidivism.


Incarcerations should be harsh and life-ending. Look at North Korea, they have way less crime than even Tokyo. In comparions to Chicago look like a mess mafia gangland. When you reward the prisoners with a lot of benefits, you simply tell everyone crime pays. The focus should be on expediting justice and ensuring correct justice to be dispense. Prisoners that committed crimes should be left for them to be in miserable states to discourage them to do crime. Reoffending one can be liquidated. I really dont want my tax going to feed this kind of inhumans.


But the purpose of the prison system isn't to improve society and economics.


For a well-functioning prison system it is.


[flagged]


your snark is obscuring any point that you might be trying to make here...


What snark? These are the goals of the USA prison system.


Even if you're into the pure punishment angle, prolonged isolation is a factory for mental instability. And you're releasing most of these people back into society at some point.


This is an absolutely bizarre take. Even if you’re all for the pure punitive aspect of it, why would you not want to improve society and the economics? Are you Kim Jong Un or something? I’m genuinely confused how any reasonable argument can be made here, regardless on your stance towards the prisoners themselves.


If you're a retributivist, you believe the point of prison is to punish the guilty. Therefore you will be uncomfortable with the idea of prison as a means to "improve society or economics".

Kant:

> [Punishment] can never be inflicted merely as a means to promote some other good for the criminal himself or for civil society. It must always be inflicted upon him only because he has committed a crime. For a human being can never be treated merely as a means to the purposes of another or be put among the objects of rights to things


And the country we're talking about is run by retributivists, and even further, whatever that is called - people who just want to see other people punished.


But if I’m a retributivist, why do I want to be less efficient with money and also make MY life worse, just to inflict more punishment on some prisoner? That just genuinely makes no sense. I can understand the logic of wanting to punish them for the sake of it, but I would also want to be efficient about it, and not make my life worse in the process.


You don't want to be "less efficient with money" or "make your life worse". Factors like that don't come into it. Neither does "making society better," "reforming the guilty party," or deterrence. And "inflicting more punishment" isn't the goal either -- that's just cruelty.

The basic point is simple. If a person commits a crime, they should be punished in proportion to the crime. Full stop. Within that simple framework, efficiency is fine, but it shouldn't be the goal.


The US is really big on making sure criminals never stop paying for their crimes.

Improving society in a way that helps anyone who hasn’t earned it is contrary to the goals way too many voters.


They didn’t say they support the status quo.


Then they should elaborate on their point because their comment sounds like they do.


I interpreted it as snarking on the current state of affairs. By and large, in the US the point of the prison system is *not* rehabilitation or providing benefit to society. It's about lining the pockets of wealthy people and keeping the downtrodden in that position. And that sucks, but stating it as a matter of fact doesn't mean one supports it.


That's definitely how I interpreted it also, but the comment definitely buries the lede at least


I'm hoping the comment you're replying to was sardonic.


Ah, you're thinking of the American prison system. We were talking more about a prison system that is functional and beneficial.

Easy mistake to make, I know.


That’s precisely what it’s for.

Make take a reflecting break.


While it may improve the outcome for prisoners wouldn't it be abused by criminals at a large scale? In my country at least phones are smuggled by criminals to continue running their enterprises from behind the bars.


This is the same type of logic used by police to justify civil forfeiture of cash in the USA. Drug dealers carry a lot of cash because they can't use banks, so anybody carrying a lot of cash must be a drug dealer and the cash must be illegal proceeds from drug dealing.

Not only has this logic severely damaged public trust in police, but it's been incrementally extended to seize money and property from many innocent and/or uninvolved people.

I'm not saying it will never happen, but we should not be punishing everyone for the misdeeds of the few. We should not be attributing anything to criminal activity that has not yet been proven to be criminal activity.


Prison should be about aggregate improvement of society while minimizing dehumanization. Sure, a drug kingpin might keep running their empire from within prison. But we might buy safer prisons and improved reintegration with this cost.


Most inmates probably don't have a criminal enterprise they can run.

Those are the odd cases, yes, maybe you should be able to make exceptions.

But the vast majority of inmates are not kingpins.


According to whatever study the parent comment cites, most of them are used to contact family. Seems the solution to allow free calls from monitored prison phones is a good compromise.


Seems great to allow it through monitored devices for free, you might gather more evidence this way and convict others.

That is do everything possible to prevent smuggled non monitored devices so that the only communication is through sanctioned monitored devices.

Obviously the right to privacy (4th amendment) is lost in prison among other rights so there shouldn't be any issue with the surveillance.


> Seems great to allow it through monitored devices for free, you might gather more evidence this way and convict others.

The conviction already happened. Continuing to gathering evidence (for any purpose other than exoneration in cases of suspected wrongful convictions) - and without new warrants - violates the spirit of double jeopardy (Fifth Amendment).

> Obviously the right to privacy (4th amendment) is lost in prison among other rights so there shouldn't be any issue with the surveillance.

When you say "Obviously" do you mean what things are like, or do you mean what things should be like? If you mean the latter only, then I would agree with you. (Although, I'm not sure whether the US constitution implicitly supports a right to privacy.) The chilling effect means that both the convict and the loved one on the other end can't freely express themselves in a private conversation with each other. If your family member gets prison for life then should you lose your First Amendment rights whenever you want to talk with the convicted family member? By default, criminals shouldn't have zero speech rights and zero privacy either. Whether someone is dangerous or has done immoral things is on its own not enough reason to take away constitutional rights. One possible reading of the 13th Amendment allows slavery and involuntary servitude "as a punishment for crime whereof the party shall have been duly convicted" [1], but the same doesn't apply to other rights.

In the context of prison, freedom of expression and privacy are about as important to me as voting, and I'm not a fan of felony disenfranchisement [1]. In my opinion, US citizens in prison shouldn't lose their voting rights for any period of time, especially considering that vote by mail exists.

[1] https://en.wikipedia.org/wiki/Thirteenth_Amendment_to_the_Un...

[2] https://en.wikipedia.org/wiki/Felony_disenfranchisement_in_t...


>When you say "Obviously" do you mean what things are like, or do you mean what things should be like?

I mean thats what things are like based on previous Supreme Court rulings [1].

You have no privacy or expectation of privacy in prison, this includes communication with the outside world.

There as with all things of this nature some nuance to this, but bottom line telephone communications are allowed to be tapped without a warrant so long as the phone isn't given under false pretense of being unmonitored, which leads to expectation of privacy [2].

Its seems odd to be debating this since at it base prison is an act of depriving rights. You cannot have a private conversation with your family nor can you have dinner with them or go anywhere because you are in prison...

It basically in the 5th amendment: "nor be deprived of life, liberty, or property, without due process of law".

You have been deprived of liberty through due process of law...

[1] https://en.wikipedia.org/wiki/Hudson_v._Palmer

[2] https://en.wikipedia.org/wiki/Expectation_of_privacy_(United...


There is no logic that a good thing should be free. In fact it should likely cost prisoners something if it is good for them. Just like breakfast is good for you but it is not free.


“If it’s good for you, it shouldn’t be free” is a very strange hill to die on, even if we weren’t even specifically talking about attempting to rehabilitate criminals.


Can you find a “shouldn’t“ part in my response?


In an earlier comment you wrote:

> In fact it should likely cost prisoners something if it is good for them.

Which is equivalent to "if it is good for them it should likely cost prisoners something" i.e. "if it is good for them it likely should not be free for prisoners".

I'm aware that the hnarn's comment said "you" instead of "prisoners", but the principle of charity leads me to assume that hnarn meant specifically a prisoner rather than any person. And regardless, the answer to the question "Can you find a “shouldn’t“ part in my response?" is yes.


>“Which is equivalent to "if it is good for them it should likely cost prisoners something" i.e. "if it is good for them it likely should not be free for prisoners".”

You will have the same conclusion if there is no “likely” in the sentence, so you are obviously trying to pretend it is not there or you likely need basic logic course. (Don’t ignore likely here again, though)


If I say "you likely should give me 1 dollar" then in my interpretation there is a "should give" part in my response, even if there were also a "should not give" part or an "I don't know" part.

hnarn:

>> “If it’s good for you, it shouldn’t be free” is a very strange hill to die on, even if we weren’t even specifically talking about attempting to rehabilitate criminals.

up2isomorphism:

> Can you find a “shouldn’t“ part in my response?

In your case, you said "should likely cost". You took issue with the "shouldn't be free" part in hnarn's comment, so in the context of hnarn's comment, your first comment in the thread can be expressed as "should likely not be free". To me, there is a "should not" part in "should likely not be free", and I am not claiming that the "should not" part is the whole.

There's more to it though. Here's what you, up2isomorphism, wrote in full:

> There is no logic that a good thing should be free. In fact it should likely cost prisoners something if it is good for them. Just like breakfast is good for you but it is not free.

My natural interpretation is going to be one of the following:

1. up2isomorphism wants calls to cost something for prisoners (should not be free for prisoners)

2. up2isomorphism thinks that calls should cost something for prisoners regardless of which outcome up2isomorphism personally wants (should not be free for prisoners)

3. up2isomorphism is not sure about what they want or what should be the case regarding whether calls should cost something for prisoners, but they are leaning toward "should cost something" (should not be free for prisoners)

If all three of those interpretations are wrong then I'm just wrong about what you said. If so, sorry.


I know it is your "natural" interpretation, but it does not automatically make you correct. In this case, I did not give anything particular stance of if prisoner should be given free calls or not. I merely state that being a good thing for somebody is really not an supporting cause why it should be free. There might other valid reasons to provide it free or not free, but being a good thing for prisoner is just a poor argument. The same goes for things like since non-prisoner are already paying bunch of things for the prisoners they should not be bothered to pay another thing.


Yes, it's implied.


At the same time, there's no logic that says that a good thing should cost money. A walk in the woods is good for you, should we charge for that?


Also in your particular example, if you walking in a woods that is private or requires hiring people to maintain, you will likely need to pay it. You don’t need to pay it if you walk in the wilderness, but even that you still indirectly paying it via tax if there are any work needs to be done to keep the wilderness looks good to you.


The lack of basic logic training in the responses are hilarious, and some of them can’t even notice there is a damn “likely” there.

The fact that A does not imply B, and A often implies not B does not mean that you cannot find an example that show both A and B. But it is sufficient to weaken the argument to support B using A.


This is silly. Non-prisoners are paying out the nose for prisoners' "free" stuff already, and worrying about some pennies on top of that is petty.

Offering prisoners free phone access is very likely to save non-prisoners shittons of money, so we should do it.


This is totally stupid and illogical. The fact that you already paid some money for the other people doesn’t necessarily give you any reason why you should pay more for another expense, big or small.

Again, none of you guys seems to care about the reason and just want the conclusion.


> The fact that you already paid some money for the other people doesn’t necessarily give you any reason why you should pay more for another expense, big or small.

You're right, but in the wrong place.

You're paying for another big expense when the person commits another offense and ends up with another round of prison. BIG bucks. If you'd just paid for their phone calls when they were in the last time, you'd have had a much better chance of not needing to spend that additional money.


People that become incarcerated have also paid for their phone calls and prison sentences by virtue of having been part of the public. They also don't cease producing value while incarcerated, but the prison system captures that, not the public.

Think of it like health insurance. Everyone pays, it's a service available to all of us, but not everyone uses it.


Breakfast is literally free for prisoners


I know you just threw that in, but there is considerable evidence that breakfast is not good for you (unless perhaps you're out working in the fields), and the modern concept that "breakfast is the most important meal of the day" was invented by ad agencies.

On the topic of meal timing, I recommend anything by Salk Institute researcher Dr. Satchin Panda.


What about clean air


You do pay for that through tax. And yes it costs money to maintain clean air, at least in urban settings.


In the libertarian ideal, a clean ecosystem should be monetized to incentivize the production of value by those who think they need a clean ecosystem. In theory, we would all be richer for it.


A terrible theory. Business owners can increase profits by X% by polluting more, and they can just live in the clean air areas that have higher property values and make the poor live in the polluted areas. Weather patterns move pollution in specific directions.

Don't believe me? Look at industrial cities like Cleveland where the poor areas are concentrated phyiscally downwind of the factories, and the wealthy areas are either upstream on the West side or further away on the East side, where they built a private train for themselves that allowed them to be further from the city while keeping commuting distance. This line is now the RTA Blue/Green line, and if you do a street view of the line in Shaker Heights you'll see that it runs straight down a boulevard of period mansions.

The wealthy can avoid almost every negative externality they create:

Underfunded public transit in NYC? Just take a helicopter to work.

Too many people are poor and crime is high? Hire private security and live in a gated community.

The poor are mad at you every time you go out in public and have their pitchforks at the ready? Fly private, have your assistant pick up your coffee, dine out in a private room, spend time in places the poor can't afford to go like your yacht or Monaco.

In Science Fiction, they go as far as moving off-planet, like in Elysium.

If things that were good for society were profitable we'd be living in a Star Trek utopia by now.


Sorry omitted /s


Haha, you got me


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

Search: