Readit News logoReadit News
arandomhuman commented on Show HN: A Language Server Implementation for SystemD Unit Files   github.com/JFryy/systemd-... · Posted by u/arandomhuman
figmert · 2 months ago
Would be good to add support for custom units based on generates (e.g. Podman[0]).

[0] https://docs.podman.io/en/latest/markdown/podman-systemd.uni...

arandomhuman · 2 months ago
thanks, not familiar with this in all entirety, will keep this in mind and always welcome for contributions expanding functionality :)
arandomhuman commented on Anthropic cut up millions of used books, and downloaded 7M pirated ones – judge   businessinsider.com/anthr... · Posted by u/pyman
rvnx · 2 months ago
At the very least, they should have purchased the originals once
arandomhuman · 2 months ago
Yeah, people have gone to jail for a few copies of content. Taking that large of a corpus and getting off without penalty would be a farce of the justice system.
arandomhuman commented on Anthropic cut up millions of used books, and downloaded 7M pirated ones – judge   businessinsider.com/anthr... · Posted by u/pyman
dialup_sounds · 2 months ago
Swartz wasn't charged with copyright infringement.
arandomhuman · 2 months ago
No but he coincidentally passed away after he was accused of it.
arandomhuman commented on Show HN: A Language Server Implementation for SystemD Unit Files   github.com/JFryy/systemd-... · Posted by u/arandomhuman
do_not_redeem · 2 months ago
I regret to inform you--you just responded to an LLM bot.
arandomhuman · 2 months ago
it's that bad these days? Yikes :( I will not be redeeming.
arandomhuman commented on Show HN: A Language Server Implementation for SystemD Unit Files   github.com/JFryy/systemd-... · Posted by u/arandomhuman
arandomhuman · 2 months ago
I think a user of _not_ neovim they'd have to implement their own js client. I honestly can't say much but with INI style formatting it's been mostly based on contstants rather than abstract syntax tree parsing which is unique and a bit of a problem in its own right. I haven't implemented a language server before so this was a learning experience, but I was very pleasantly surprised how adding it to my neovim configuration was. I am hoping at some point it's added to "mason" so it's even easier.

I would create a vscode client, but I am not really very familiar with that ecosystem. Welcoming anyone to implement this in any other editors. This is just the language server implementation with no assumption regarding clients.

arandomhuman commented on Show HN: Modernized file manager and program manager from Windows 3.x   github.com/brianluft/heir... · Posted by u/electroly
JdeBP · 2 months ago
When I see a commit like https://github.com/brianluft/heirloom/commit/445ea8ef7018ef0... , I am convinced that yes, this is the original source code. (-:

https://github.com/brianluft/heirloom/commit/3001b284130c399... is rather interesting. Not only for all of the implicit type conversions that the code turned out to be doing, but also for all of the things that were dropped.

It is not totally "modernized", though. Its idea of "Unicode only" is using WTF-16 rather than UTF-8 (which is possible on Win32 nowadays with code page 65001).

arandomhuman · 2 months ago
yikes
arandomhuman commented on Show HN: A Language Server Implementation for SystemD Unit Files   github.com/JFryy/systemd-... · Posted by u/arandomhuman
rendaw · 2 months ago
I made a Systemd competitor/aternative https://github.com/andrewbaxter/puteron that uses JSON for everything. The advantage to JSON is you can use a `$schema` key at the top and vscode will do autocompletion, error checking, and (I think) documentation from the jsonschema automatically without needing a custom language server. The power of standards at work!

I was trying to figure out why Systemd decided on their ini-like syntax instead of something like xml or json or whatever. I thought maybe it was some standard that existed at the time, but it does seem to be a custom format unique to systemd...

arandomhuman · 2 months ago
That’s very interesting, but systemd is pretty pervasive I really don’t think it’s going anywhere anytime soon for better or for worse. Language servers aren't just adopted in vscode, other editors use them in fact. I am not a VS Code user myself, but I appreciate their implementation of the language server protocol, they did a fantastic job with that.
arandomhuman commented on Show HN: A Language Server Implementation for SystemD Unit Files   github.com/JFryy/systemd-... · Posted by u/arandomhuman
Splizard · 2 months ago
This is great! There's way too many arcane text file formats (configs, Dockerfiles, workflow definitions etc) without any sort of fast feedback loop on type-safety, documentation etc.

We need more projects like this and if a system is running SystemD, this needs to be enabled and integrated with any LSP-supported editors.

arandomhuman · 2 months ago
Thanks for the positive feedback! The documentation needs a bit of revision, but I agree there's a lot of configuration file formats that should be supported with language servers that might not necessarily have rich AST parsing as part of their contents.
arandomhuman commented on Show HN: I built a website to summarize Tech Twitter each day   todayontechtwitter.com... · Posted by u/nsomani
robertritz · 2 months ago
I like the idea, but it's really just three summaries each day, which I can get from Google News. Would be nice to have links to the tweets at the very least.

Also the top three stories are most likely what your audience already knows. What people are craving, at least what I'm craving, is something that isn't on my feed everywhere else.

arandomhuman · 2 months ago
Not to be that guy, tech twitter is already so reductionist in terms of actually quality content. Getting the most popular posts from there is going to be really "fluffy" in terms technical details. For instance how is Elon Musk declaring he's forming a new political party technology related news?

u/arandomhuman

KarmaCake day210June 17, 2022View Original