Spore

joined 1 year ago
[–] Spore@lemmy.ml 1 points 9 months ago* (last edited 9 months ago)

I think there's no need to stick with one particular language. It benefits to learn more languages and bring the "good parts" of their design into your code whatever you are writing it in.

Btw It happens that I've learned a bit of RISC-V, with Rust.

[–] Spore@lemmy.ml 3 points 9 months ago (2 children)

I'd say no. Programming safely requires non-trivial transformation in code and a radical change in style, which afaik cannot be easily done automated.

Do you think that there's any chance to convert from this to this? It requires understanding of the algorithm and a thorough rewrite. Automated tools can only generate the former one because it must not change C's crooked semantics.

[–] Spore@lemmy.ml 4 points 9 months ago* (last edited 9 months ago) (1 children)

Well, they are not going to release in between, but their rewrite still "works" at each commit being a hybrid of Rust and C++.

[–] Spore@lemmy.ml 45 points 9 months ago* (last edited 9 months ago) (3 children)
  1. breaks compatibility
  2. breaks compatibility
  3. breaks compatibility
  4. hard to add without breaking compatibility

Then we arrive at Rust as a natural outcome.

And it's of course possible to migrate to Rust from C or C++ progressively, fish has almost got it done.

[–] Spore@lemmy.ml 3 points 10 months ago

Yeah, I literally learnt how nix works through guix documentations.

[–] Spore@lemmy.ml 2 points 10 months ago

I believe that I'm already using it on NixOS. Working without visible problems since half a year ago.

[–] Spore@lemmy.ml 2 points 10 months ago* (last edited 10 months ago)

It kinda fills a niche.

I use fish for simple command pipelines as well. But traditional shells are not as good when I need to do anything "structured", because they treats almost any value as a string and don't have anonymous functions. The first problem means that you have to parse a string again and again to do anything useful, the second means that when both pipe and xargs fails you are doomed.
Nu solves both of the big problems that matters when you want to do rather complex but ad-hoc processing of data. And with a rather principled design, nu is very easy to learn (fish is already way better than something POSIX like bash though).

Personally another important reason is that I have a Windows machine at work and nushell is much easier than pwsh.

Btw fish is also going to be a "tool in rust" soon :)

[–] Spore@lemmy.ml 1 points 10 months ago (1 children)

A git server don't need to know email to work, and it is not required to have a git server. Email in this workflow is an alternative to a PR: contributor submit a set of commits to the maintainer (or anyone interested). Then the maintainer is free to apply or merge the commits. After that the code can be pushed to any servers.

[–] Spore@lemmy.ml 1 points 10 months ago

I've tried it and I think it's easier than a natural language to learn. Modulo the speaking part.

[–] Spore@lemmy.ml 2 points 10 months ago* (last edited 10 months ago)

Difference is that YOU CAN BE THE ADMIN whenever you want while still being able to talk to others. Over.

[–] Spore@lemmy.ml 22 points 10 months ago* (last edited 10 months ago) (2 children)

Honestly I'm surprised that so many people don't know how git can be used without those repository hosting sites. That's one way to use it, not the only way. And it's not even the way it was originally designed for.

Checkout git format-patch.

[–] Spore@lemmy.ml 22 points 10 months ago* (last edited 10 months ago) (4 children)

Git and Email are not mutually exclusive. In order to collaborate with git, you need and only need a way to send your commits to others. Commits can be formatted as plain-text files and sent through emails. That is how git has been used by its author from literally the first release of it.

view more: ‹ prev next ›