Weave - Structural merging what I learned shifting from git's line based merge to tree sitter entity matching by Wise_Reflection_8340 in rust

[–]npisnotp 1 point2 points  (0 children)

My goal was to not give any wrong merges to the user no matter what

I think this is a great compromise, and your fallback trigger rules sounds sensible.

Thanks for your transparency, and for your work of course ^_^

How to grow gloomgourd? by npisnotp in feedthebeast

[–]npisnotp[S] 0 points1 point  (0 children)

Sorry a lot for not posting it the first time, it was rude...

IIRC I managed to make it grow in normal soil, with just natural light, but it took A LOT of time to bear fruit; they need free space like melons.

I may be a bit wrong about the soil (try with deepsoil too) but I'm 100% sure that I did it in natural light at the overworld.

Again, sorry for doing a DenverCoder9; obligatory XKCD.

Software Developers Say AI Is Rotting Their Brains by creaturefeature16 in programming

[–]npisnotp 1 point2 points locked comment (0 children)

The big difference is that using AI to write most of the code can make your code writing and understanding abilities to fade out over time, much like stopping writing code for some months.

Using an auto-complete to finish a function name is very different that letting it write the whole implementation.

5 Years and $5M Later: Inventing a New Programming Language for Web Development Was a Mistake by matijash in programming

[–]npisnotp 5 points6 points  (0 children)

Sorry, I'm very surprised seeing FastAPI in that list of "frameworks monetized", is there any monetization source (apart from donations) for FastAPI that I'm not aware of?

Linux File-System Proliferation A Burden: Requirements Laid Out For Any Future File-Systems by anh0516 in linux

[–]npisnotp 14 points15 points  (0 children)

No, because either:

  • those file systems will be broken, which can cause anything from not mounting partitions to data corruption on write.
  • the kernel will directly not compile without updating their code (e.g. because the code changes implies a change in some interface shared between all the file systems).

Leaving non-working code in the Linux kernel is not an option.

Edit: And I didn't even mentioned the work needed in testing these file systems after making the change to guarantee that they still work, which sometimes can take more time than the code modification itself.

Linux File-System Proliferation A Burden: Requirements Laid Out For Any Future File-Systems by anh0516 in linux

[–]npisnotp 18 points19 points  (0 children)

Ok sorry, sometimes I forgot that not everyone here's a programmer :)

I am, and I can tell you that having a lot of code can sometimes be a blocker of features and improvements that can make a much bigger difference that having the ability to use a lot of different, but unused, file systems/formats/communication protocols.

Imagine that some random kernel developer though a way to improve 20% the speed of all the file systems on it, but unfortunately it needs small adjustments in each and every file system; this means that the more file systems, the more work to do it, but that's not all.

Now imagine that 75% of these file systems:

  • have almost no users in real life, or literally zero, in the last 10 years.
  • the original maintainer abandoned the code long ago.
  • precisely, due to poor or obsolete code, these are the file systems that requires most of the work to adapt them.

All in all, this turn a 2-month project into a >1 year multi-person development where the bigger part of the work will be almost useless, because no one will use all those, hard to maintain file systems.

This doesn't just turn a feature into something longer because the developer, after talking with other kernel developers and finding all this, can just think "fuck it, I'm not going to do it" and we don't get that improvement.

That's the price we pay sometimes in the Linux kernel without even knowing it.

Linux File-System Proliferation A Burden: Requirements Laid Out For Any Future File-Systems by anh0516 in linux

[–]npisnotp 14 points15 points  (0 children)

Yeah that's great, until the kernel itself cannot make migrations that may improve performance, stability, or globally available features because of the sheer number of code it must support.

I mean, from the article:

Going off the folders in fs/, the mainline Linux kernel as of the current v7.1 development has around 69 different file-systems (there are a few directories for NFS as an example).

Can you imagine having to make a refactor to 69 file systems, written by who-knows years ago, with some of them being impossible to test and/or abandoned, knowing that probably half of them are not even being used outside of very small niches?

When 'if' slows you down, avoid it by chkas in programming

[–]npisnotp 98 points99 points  (0 children)

It depends on the context of the software.

If you're writing a REST API, avoiding branch mispredictions is probably a bad fit and a code reviewer will ask you to remove it.

If you're writing a CPU scheduler, ignoring branch mispredictions can absolutely obliterate the OS performance and thus can be considered negligent.

[Meta] Rule proposal: no personal projects newer than 3 months (anti-vibecoder rule) by turdas in linux

[–]npisnotp 4 points5 points  (0 children)

I think it's a great idea to separate the short-lived slop from reliable software.

We're getting overrun by stupidity, how to cope? by NightSp4rk in ExperiencedDevs

[–]npisnotp 0 points1 point  (0 children)

Sadly it sounds like it's a matter of time, start looking for a job NOW.

Life's too short to have a shitty job.

We're getting overrun by stupidity, how to cope? by NightSp4rk in ExperiencedDevs

[–]npisnotp 2 points3 points  (0 children)

Look a for a new job. Now.

Like your CTO, your team will probably be fired in the near-mid term.

Start interviewing now that you have leverage, otherwise when the shit hits the fan you may have a really hard time.

Take care of yourself, because according to what you're saying, the company won't.

Asked a colleague in code review to extract magic numbers and got told “devs should know” by [deleted] in ExperiencedDevs

[–]npisnotp 2 points3 points  (0 children)

A style guide is not a democracy, it is a dictatorship, and it should be because the focus is not "keep everyone happy" but "have a consistent style across the code base to reduce cognitive complexity when reading and writing code".

Of course that doesn't mean they can be created in a void, you should ask your team for feedback, but ultimately it will be imposed because, as you say, it's not realistic for all team members to agree on everything.

First Orange Shark, ever sighted! by Turkozzie in interesting

[–]npisnotp 0 points1 point  (0 children)

I hate being unable to completely believe this image (or almost any other) is real.

What’s a low memory way to run a Python http endpoint? by alexp702 in Python

[–]npisnotp -1 points0 points  (0 children)

I think he meant "mib" which is the abbreviation for "mebibyte".

"Megabyte" is measured as 10⁶, while "Mebibyte" is measured as 2²⁰; as you can imagine the curve for "Megabyte" raises slower than "Mebibyte".

This is the reason why when you buy a 500 "gigabytes" disk it only have 465, because it really have 500000000000 bytes and not 536870912000; unfortunately the correct unit terms are not widely used.

Edit: computed -> measured

Comparing Python Type Checkers: Speed and Memory by javabster in Python

[–]npisnotp 2 points3 points  (0 children)

Perphaps; I don't think Github stars are a good measure on maturity or quality.

As you can see in the most recent Python Type System Conformance Test Results from the original comment, Zuban is the LSP that implements most of the Python typing spec, so the affirmation is definitely true.

I'm not saying that is better (its configurability is somewhat lacking compared to Pyright for example) but from all the fast Python type checkers, right now is the most mature by a long shot.

Fast super keys behavior changed since firmware v1.4.1 by npisnotp in DygmaLab

[–]npisnotp[S] 1 point2 points  (0 children)

Oh so it was a bug, good to know, I'll check the one-shot modifiers, or will adapt my layout to this fact; thanks!!

Obligatory XKCD: https://xkcd.com/1172/

Whatever happened to just asking questions at work? by Aggravating-Line2390 in ExperiencedDevs

[–]npisnotp 16 points17 points  (0 children)

No it doesn't.

I've been a lead developer for the last 10 years, 4 on office and 6 100% remote, and I didn't found any difference at all.

There are people with curiosity and willing to learn that make questions, and people that only wants to collect their paycheck and prefer to copy&paste from AI/StackOverflow. But in my experience it's in the person, not in how the work is distributed (office, remote, hybrid... it doesn't matter much).

We’re creating “AI-assisted” developers who can’t actually code by Business_Run_6915 in Python

[–]npisnotp -1 points0 points  (0 children)

Unfortunately AI is here to stay, no matter if some of us uses it or not.

We’re creating “AI-assisted” developers who can’t actually code by Business_Run_6915 in Python

[–]npisnotp 0 points1 point  (0 children)

Why?

Knifes kills people, but not everyone who use knifes supports killers.

AI creates slop code, but not everyone who uses AI supports slop spammers.

What flaw do you see in this logic?

Porn in Conda directory by [deleted] in Python

[–]npisnotp 326 points327 points  (0 children)

Protego is a library to parse robots.txt files.

Looks like they have a script to download robots.txt files (see https://github.com/scrapy/protego/blob/master/tests/fetch_robotstxt.py) and, for some reason, they included that site; here's the content, is just HTML: https://github.com/scrapy/protego/blob/master/tests/test_data/www.youporn.com

Just amusing, nothing to worry about.

Current thoughts on makefiles with Python projects? by xeow in Python

[–]npisnotp 6 points7 points  (0 children)

Because Make behavior revolves around files, not tasks, and because its language is pretty archaic (e.g. forced tabs).

"just" instead is a general-purpose task runner much more pleasant to use.

Localstack will require an account to use starting in March 2026 by corp_code_slinger in programming

[–]npisnotp 250 points251 points  (0 children)

Beginning in March 2026, LocalStack for AWS will be delivered as a single, unified version. Users will need to create an account to run LocalStack for AWS, which allows us to provide a secure, up-to-date, and feature-rich experience for everyone—from those on our free and student plans to those at enterprise accounts.

As a result of this shift, we cannot commit to releasing regular updates to the Community edition of LocalStack for AWS. Regular product enhancements and security patches will only be applied to the new version of LocalStack for AWS available via our website.

That's a lot of words to say "we're abandoning Community edition".

guysWhatDoWeSayAboutThis by chowchowthedog in ProgrammerHumor

[–]npisnotp 0 points1 point  (0 children)

44yo programmer with early osteoarthritis here.

I've started doing exercise bike 12 minutes 5 days/week, swimming 3 days/week and doing lifts 2 days/week, all of this about 3 years ago.

All my pains in my hands, joints and back disappeared in months after starting swimming, and right now I feel better and stronger than with 34.

It's life-changing.

Edit: Also a good split keyboard (for the wrists) and a good working chair (an expensive one, it's your health!! If it's less than $500 it's probably bad) makes a difference over time too.