News for hackers. Stuff that matters.
Re:Write libraries instead of services, where possible by sid6376 on Tuesday March 09, 2021 @10:16AM (#26399545)
This is very sound advice.

That being said it's incredibly hard to follow this advice in environments which encourage a polyglot stack and 'the best tool for the job' mindset. The moment you have more than one language in your stack it becomes easier to build services than to maintain libraries in each language. You can of course write native C libraries with bindings to different languages but that's a bit weird.

It's also requires more discipline to maintain abstractions and boundaries properly with libraries in large code bases but that's another story.

Re:Write libraries instead of services, where possible by pedro2 on Tuesday March 09, 2021 @10:34AM (#26399755)
Not everyone's cup of tea, but on Linux gobject-introspection allows for automatic or semi-automatic generation of bindings for X languages.

.NET also -- and this is only my interpretation -- is following that path.

Re:Write libraries instead of services, where possible by viferga on Tuesday March 09, 2021 @10:52AM (#26399980)
I also think it's the way to go: https://github.com/metacall/core
Re:Write libraries instead of services, where possible by inter_netuser on Tuesday March 09, 2021 @10:26AM (#26399650)
why weird?

It also doesn't have to be C, just anything that compiles to a native binary lib.