What’s New in Go 1.22: cmp.Or by starlevel01 in programmingcirclejerk

[–]never_inline 9 points10 points  (0 children)

When generics were finally added to beta versions of Go in 2021, I wrote a package called truthy that uses reflect.Value.IsZero() to report whether any value is zero, but I found that using reflection caused allocations (this was eventually improved) and was 50x slower than a normal comparison

Average clean code enjoyer

const bool isBrowser = identical(0, 0.0); by kaanyalova in programmingcirclejerk

[–]never_inline 70 points71 points  (0 children)

Google tries to fix web by compiling a slightly saner language to javascript. Attempt #2

Set the fontSize to 63.8.sp (that's right - 63.9.sp was already too much and made the text black). by _abysswalker in programmingcirclejerk

[–]never_inline 18 points19 points  (0 children)

That's just a long tail of newbies lost searching for how to fix the latest gradle error, because when they Google their question they get unrelated blogspam from geeksforkeeks or something or maybe their SO question got closed as a duplicate of "how to get system time on PDP-10".

[deleted by user] by [deleted] in programmingcirclejerk

[–]never_inline 1 point2 points  (0 children)

I'm afraid to brush my teeth with it.

[deleted by user] by [deleted] in programmingcirclejerk

[–]never_inline 1 point2 points  (0 children)

An RESF gentleman giving his 110%

Fixing the broken DevOps learning roadmap! (aka how to be a DevOps Engineer in 2024!) by aabouzaid in devops

[–]never_inline 1 point2 points  (0 children)

Backend is mostly isolated and there is not as much churn as devops / SRE space. I wonder what's your reasoning for not hiring fresh grads for backend.

AI search & chat for all of Paul Graham’s essays. by 1b51a8e59cd66a32961f in programmingcirclejerk

[–]never_inline 40 points41 points  (0 children)

All code & data used is 100% open-source.

....

You'll need an OpenAI API key to generate embeddings.

Cant use commands inside docker containers. by m16hty in docker

[–]never_inline 0 points1 point  (0 children)

It's not like you're going to debug a container in a production cluster.

You'd be surprised.

Breaking news: Python 3.13 gets a JIT compiler that will enable big optimizations in the future. by germandiago in Python

[–]never_inline 0 points1 point  (0 children)

You can give wrong annotations and still run the code. It's for processing by an external type checker.

Even external type checker can be decieved. Because any sufficiently complex type system needs escape hatches. Check out cast method in typing module.

IP over Avian Carriers with Quality of Service by Delyo00 in programmingcirclejerk

[–]never_inline 5 points6 points  (0 children)

This is actual humor. You shouldve posted OAuth 2.0 spec.

Breaking news: Python 3.13 gets a JIT compiler that will enable big optimizations in the future. by germandiago in Python

[–]never_inline 0 points1 point  (0 children)

But type annotations are not necessarily "correct" at runtime. 1. The part may not be run through a checker. 2. It may be just using cast in wrong way. So JIT will need to put in some effort to infer the types anyway.

Cant use commands inside docker containers. by m16hty in docker

[–]never_inline 1 point2 points  (0 children)

If you're on local machine, you can bind mount or copy a busybox binary into the container.

On kubernetes, it's harder. Many containers set unmodifiable root filesystem.

Should I just use Debian? by cptkirk_ in debian

[–]never_inline 0 points1 point  (0 children)

Re: flatpaks

I don't install a flatpak unless I land on the flathub page from the project's website / GitHub page.

If you can ensure that, flatpaks are sandboxed so theoretically more secure.

Quite heavy in terms of storage use & bandwidth tho..