1. 8

    I did at one point consider alacritty, but the latency turned me away. How mb/s of text it can render is quite irrelevant when latency is bad.

    A bug existed about this, but it was closed without fixing.

    1. 6
      1. 1

        No. Furthermore, I did not miss that when looking at the bug I linked.

        1. 4

          Yeah but your comment sounded a bit like the devs had no intentions of improving the latency issue.

          Also I hoped that the PR would help you, and all of us with those issues.

          1. 2

            I’m not as optimistic.

            When I see the bug tracker, what I see is that throughput, not latency, was their priority from the start. They didn’t care about latency in 2017 when the bug was opened. This hasn’t changed, and thus it’s unlikely it ever will.

            1. 1

              The wayland backend is driven by frame-callbacks since https://github.com/alacritty/alacritty/commit/04f0bcaf54ed373128ca0f84ee8fcdd8e52bce23 - any adaptive timing logic and sleeping barber like scheduling should be approached compositor side.

      2. 2

        How does the latency compare to gnome-terminal? I’ve been thinking that alacritty feels a lot faster.

        1. 1

          I wouldn’t know. I’ve never even used gnome-terminal.

        2. 1

          What do you use instead?

          1. 1

            Plain mlterm.

        1. 2

          I have a dumb question. What it is used for?

          1. 4

            Murders the dynamic range of an audio stream’s volume. In exchange for relatively dull sound, your ears will be protected against sudden large volume changes.

            1. 2

              Thanks!

            2. 3

              This would let you watch shows that were quiet, and shows that are louder, and shows that have loud parts and quiet parts, without having to adjust the volume.

              1. 1

                That sounds awesome. Thanks!

            1. 1

              I like the idea. I tried manyverse the other day on my phone but it was a bit laggy (and heavy on the battery I guess). Like when I follow someone.

              1. 3

                I love prometheus but I wish there was a community resource to share rules and up-to-date dashboards. Grafana’s dashboard site could be a lot better.

                1. 4

                  Rules, especially rules.

                  Dashboarding is more of a “creative” task, but exporters’ could do a better job at offering its’ users safe parameters (or how to calculate them) for rules for each and every metric they export.

                  1. 1

                    I have failed a number of times to get realistic and useful throughput numbers. I understand the pain.

                1. 2

                  About how much it cost per month to run VPC, RDS, EBS and ECS? I think I checked once only for RDS for a hobby project and it was a bit expensive.

                  1. 2

                    That’s a good question! VPC is free (NAT gateways and Elastic IPs you may have to pay for), EBS is pretty cheap, and ECS uses EC2 instances underneath the hood, so if you pay for reserved or spot pricing it’s less of an issue. You can stick multiple containers on an EC2 instance, but if you need to connect them together you may need something like DNS service discovery for those services to talk to each other, which is a PITA. RDS is the most expensive. Everything else is like $5 / mo., RDS is $20-50 / mo.

                    However, since RDS is merely a data sink for this stack, you don’t have to have RDS. You can use something like ElephantSQL’s free plan and punch in the PostgreSQL URI into the custom db compute CloudFormation template. Then it’d be $5 / mo. total.

                    1. 2

                      Thank you very much.

                      1. 2

                        Hmm, correction…I’m using t3.medium instance which is $30 / mo., but you can switch that to t3.nano which would be $3.70 / mo., but you’d have to adjust the “CPU / memory units” that ECS uses to allocate for each container on the VM.

                        The principle should be the same though, you should be able to downscale and not suffer any other behaviour differences except slowness / capacity issues.

                  1. 2

                    Not directly related but anyone knows a list of awesome RSS feeds? A bit like the other “awesome” lists.

                    1. 13

                      I find myself using RSS rather for the non-awesome feeds. The awesome stuff reaches me via lobsters or other aggregator. RSS is necessary for feeds I care for but which are not mainstream enough to be on an awesome list.

                      1. 3

                        This is what I have realized as well. In this way, I have 100s of feeds which I don’t even see in a month. But, when I want to narrow my sources to something specific I am working on, then I could just go back to the mountain of feeds with relevant information.

                        1. 1

                          Good idea. Thanks!

                        2. 3

                          RSS is probably too personal, but there is this website where people have added their own personal sites.

                          1. 3

                            https://github.com/learn-anything/blogs contains lots of blogs who have RSS feeds

                            1. 3

                              One good source I recently found on hn is https://reddit.com/r/hnblogs/. You can append .rss to this URL as well: https://www.reddit.com/r/hnblogs.rss

                              1. 2

                                For all the (mostly warranted) excitement around static site generators, this is a bit of a downside: RSS tends to be left out.

                                1. 6

                                  Really?! That’s disappointing.

                                  I mean, if your SSG is generating a generic site, that’s fine I guess, but in my experience most people want to use them as blogs, and a blog without RSS/Atom is a travesty of the term, in my arrogant opinion.

                                  1. 2

                                    Not so arrogant, I agree. Or maybe that means we’re both are.

                                    1. 9

                                      I’m prepared to die on the hill that a blog without syndication is not a blog.

                                      1. 2

                                        Right beside you, brother. 💪🏾

                                    2. 2

                                      The default template for Jekyll has an RSS feed, if it’s any help.

                                1. 2

                                  Is opentelemetry going to be huge?

                                  I heard of opentracing before but it didn’t seem to light the internet on fire.

                                  1. 1

                                    Can’t tools like cargo-tarpaulin help for this?

                                    1. 2

                                      cargo-tarpalin serves a different need. It measures general code coverage, while this technique allows you to express that a test covers precisely that mark, without relying on external tools.

                                      1. 1

                                        I see. Thank you very much.

                                    1. 1

                                      Extracting data from Google, Instagram and such sounds like a chore, but the browser extension part is interesting.

                                      1. 2

                                        uMatrix seems to block those connections.

                                        1. 3

                                          I’m currently testing elfeed (emacs) synced to a self-hosted freshrss.

                                          1. 2

                                            Have any of you successfully set up something that enables PXE boot with persistent NFS storage? I have a gaming rig with Windows installed and occupying the hard drives with games, etc. I’d like to boot Linux on the metal every now and then without necessarily using any of the connected hard drive space. I have PXE set up on my home network (using https://netboot.xyz for the most part), so booting a live distro is stupid easy. Persisting that, not so much.

                                            I’d love something that I can set up that pulls down a base image, installs additional packages listed in a configuration file (e.g. packages in a nix config) downloaded from a local proxy, and then mounts my home directory over NFS. I feel like this could give me a productive environment that’s not my aging Macbook Pro with lots of distractions on it without me needing to purchase more hard drives for the Windows machine and maintain an always-rickety dual bootloader config.

                                            1. 1

                                              Did you see the wiki page about how to build a netboot image? https://nixos.wiki/wiki/Netboot

                                              I don’t know if you can “[pull] down a base image, [install] additional packages” while booting the pxe image but I guess you can build the image with everything you need (including the nfs mount probably). Maybe check https://nixos.wiki/wiki/NFS

                                              Now that pixiecore is included in nixpkgs-unstable we can simply use the following to have a working pxe server serving https://netboot.xyz:

                                              services.pixiecore = {
                                                enable = true;
                                                openFirewall = true;
                                                kernel = "https://boot.netboot.xyz/ipxe/netboot.xyz.lkrn";
                                              };
                                              

                                              To serve a NixOS image (thanks to mic92):

                                              services.pixiecore = let
                                                nixos = import <nixpkgs/nixos> {
                                                  configuration = { config, pkgs, lib, ... }: with lib; {
                                                    imports = [
                                                      <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
                                                    ];
                                                    # Some useful options for setting up a new system
                                                    services.mingetty.autologinUser = mkForce "root";
                                                    # Enable sshd which gets disabled by netboot-minimal.nix
                                                    systemd.services.sshd.wantedBy = mkOverride 0 [ "multi-user.target" ];
                                                    # users.users.root.openssh.authorizedKeys.keys = [ ... ];
                                                    # i18n.consoleKeyMap = "de";
                                                  };
                                                };
                                                build = nixos.config.system.build;
                                              in {
                                                enable = true;
                                                openFirewall = true;
                                                kernel = "${build.kernel}/bzImage";
                                                initrd = "${toString build.netbootRamdisk}/initrd";
                                                cmdLine = "init=${build.netbootIpxeScript} ${lib.concatStringsSep " " nixos.config.boot.kernelParams} debug";
                                                dhcpNoBind = true;
                                              };
                                              
                                            1. 2

                                              It was interesting to hear Greg Kroah-Hartman’s suprising to me comments on the stability of ZFS on Linux in a recent AMA.

                                              “You are relying on a kernel module that no one in the kernel community can ever touch, help out with, or debug. The very existence of the kernel module is at the whim of the kernel itself not doing something that might end up breaking it either with api changes, or functional changes, as the kernel community does not know what is in that code, nor does it care one bit about it.”

                                              https://www.reddit.com/r/linux/comments/fx5e4v/im_greg_kroahhartman_linux_kernel_developer_ama/fn5t6t4

                                              Slightly scary considering how important correctness is when talking about filesystems. I’ve been using btrfs recently but prefer ZFS and would like more explicit kernel support.

                                              1. 8

                                                It was interesting to hear Greg Kroah-Hartman’s suprising to me comments on the stability of ZFS on Linux in a recent AMA: “You are relying on a kernel module that no one in the kernel community can ever touch, help out with, or debug. […]”

                                                Slightly scary considering how important correctness is when talking about filesystems.

                                                That ZFS on Linux is an unsupported external module is scary. But relying on filesystems such as ext4 or XFS that do not have any measures in place against data silent data corruption is, to me, even scarier.

                                                1. 1

                                                  What about btrfs? I use it at work and it seems to work pretty well.

                                                2. 6

                                                  They have a point, but you’ve got to pick the least risky option that provides the features you want.

                                                  I’ve ran btrfs. I’ve ran zfs. I’ve used snapshots/subvolumes on both. Btrfs was flaky and I lost data. ZFS was a joy to use and I have not lost data.

                                                  1. 5

                                                    the kernel community does not know what is in that code, nor does it care one bit about it

                                                    An even stronger argument could be made for 99% of flagship Android phones shipping proprietary, out of tree modules. Yet, ZFS is open source and gets flak anyway because it’s not GPL.

                                                    I think we’d all like to see ZFS ship with the Linux kernel, but adding boot.supportedFilesystems = ["zfs"] to my nix config isn’t really ever going to be a huge deal. So, really, this entire line of argument is just more party-line GPL bickering, nothing new to see here.

                                                    1. 4

                                                      The position Greg, and seemingly others in the Linux project, take on this is persistently tedious – for ZFS users and developers alike. All I can suggest is that there are other UNIX platforms that make different trade-offs, and which don’t have a frustrating relationship with ZFS; e.g., illumos or FreeBSD.

                                                    1. 1

                                                      Nice tool but the repo doesn’t look active.

                                                      1. 9

                                                        Obligatory link to https://makemediumreadable.com/ so you can read medium without the annoying parts.

                                                        1. 2

                                                          Is that still working? It haven’t been updated in a year and I heard that medium made changes breaking it.

                                                          1. 4

                                                            It’s not working properly for me. I have a bad habit of marking text I am reading, and the share functions relating to that is still popping up even after I enabled the blocking function for it. Other features might work, but I don’t see the difference when I turn it on or off.

                                                            1. 1

                                                              Thanks

                                                        1. 1

                                                          Is uMatrix really worth it over just using uBlock Origin’s medium or hard mode?

                                                          1. 2

                                                            The one clear area that uBlock Origin’s medium and hard modes don’t seem to cover is cookies (for successful requests). You can clean them up after the fact with Cookie AutoDelete, but they’ll still be sent back to sites you visit before you close things down (or manually delete them).

                                                            1. 1

                                                              Good to know. Thank you very much.

                                                          1. 2

                                                            What did they use to build the moving illustration at the beginning?

                                                            1. 3

                                                              Maybe mathbox according to the HTML.

                                                            1. 12

                                                              Most of these are written in rust, is that a coincidence?

                                                              Personally I dislike the style that CLI tools tend to have when they’re written in rust. They tend to be too colourful, using too many Unicode characters, etc (for my taste).But then again, I’m also the kind of person who avoids curses UIs.

                                                              1. 7

                                                                There’s also a consistent refusal to write man pages.

                                                                1. 6

                                                                  A very sad trend. I hate having to go open a web browser to read some markdown documentation on some website that requires javascript to function when I want to know how to use some command line application :(

                                                                2. 6

                                                                  Most of these are written in rust, is that a coincidence?

                                                                  It’s not a coincidence. I’m a fan of Rust and will prefer tools written in it because they are typically fast, reliable and have a UI I like – that is of course a personal preference.

                                                                  1. 2

                                                                    It might be a “modern” thing. Rust isn’t that old so the tools written with it are not old either. It might be trendy now to use emojis, font-awesome, Nerd Font…

                                                                    1. 6

                                                                      Rust also has more consistent Unicode support than C does, especially if you want the same app to run on Linux (which uses UTF-8 for everything) and Windows (where you have to dip into UCS-2, or mess with the very buggy codepage 65001).

                                                                      1. 1

                                                                        I agree. I have thought of it as a Node.JS thing – CLI tools written in ECMAScript tend to look like that. What they have in common with Rust implementations is age.

                                                                        1. 2

                                                                          I’m not sure I’d bundle the average Rust CLI tool with Node.js—the latter seem to sacrifice functionality and performance for looks to a much greater degree. I can handle color and Unicode (where they’re appropriate), but animations that are so slow that the process takes half as long without them are ridiculous (looking at you, npm i)….

                                                                      2. 1

                                                                        I’m happy to report that watchexec’s codebase has no emoji that I know of; and doesn’t even support colors.

                                                                        To further join you on your lawn, I dislike that a lot of bug reports for it involve rather insane Docker use cases.

                                                                      1. 1

                                                                        I like to think of myself as a CLI tool connoisseur—but I’ve hardly heard of any of these before. Great job!

                                                                        1. 2

                                                                          Most of them are not that old. You are still hip.

                                                                          1. 1

                                                                            Thanks! :)

                                                                          1. 1

                                                                            Nice list.

                                                                            pazi is a nice Rust alternative to ‘z’ and starship is a nice prompt written in Rust.