Readit News logoReadit News
jackac commented on Nushell: Introduction to a new kind of shell   dataswamp.org/~solene/202... · Posted by u/hucste
nerdponx · 3 years ago
Bash is not the best we can do!

If you want a traditional Unix-like shell that is mostly sensible in the places where Bash is not, check out Zsh. It has a ton of complicated features, but most Bash scripts can be ported easily (if not outright copied and pasted). Zsh has fewer footguns by default than Bash, and it has more "safety" settings that you can enable.

There is also the Oil shell, whose creator often posts on HN, and which I think is meant to be a superset of Bash, but I have not used it myself and can't vouch for it.

As for the alt shells, I've was specifically interested in Elvish, but I dropped it as soon as I saw that they don't support parameter interpolation in string literals, like `"${HOME}/.local"`. This is such a common operation in shell scripts that I have no interest in a shell that doesn't support it, and I can't imagine why Elvish doesn't.

jackac · 3 years ago
Elvish:

    $E:HOME'/.local'

jackac commented on We want to make Nix better   determinate.systems/posts... · Posted by u/biggestlou
rssoconnor · 3 years ago
> To seriously answer the question: is the Nix language required for the Nix packaging system to exist? Laziness is required, to some degree, but can the next iteration provide an on-ramp which doesn't involve learning a new lang and paradigm? Guix folks sure think so.

I'd love to hear from someone deeply familiar with Nix and Guix about laziness.

I'm deeply familiar with Nix and I've concluded that lazy semantics is absolutely critical for a configuration language. It lets me refer to other attributes of my configuration from anywhere. For example, I can refer to port number from my whatever service in my firewall. Nix's system of overlays depends on laziness too to provide efficient late-binding familiar from OOP.

I don't need to topologically sort the evaluation of the various inter-dependencies of my configuration. So long as there exists an evaluation order, laziness finds it.

Laziness is compelling enough that I managed to convince the author of Jsonnet <https://jsonnet.org/> of it when he was designing it, and in turn he helped me design what is now known as overlays in Nix.

I don't even understand how Guix manages to work without laziness, though clearly it does somehow. I'm curious as to how that is possible, though I fear I will only ever truly understand by diving into Guix.

jackac · 3 years ago
Recursion and merging semantics are also necessary. I use Nix and Jsonnet a lot, but Nix is much more expressive for complex structures, but the tooling being tightly coupled with the package manage make it impossible to adopt for common use cases.
jackac commented on uBlock Origin works best on Firefox   github.com/gorhill/uBlock... · Posted by u/Ayesh
coryrc · 3 years ago
uBlock Origin has an advanced mode (Dynamic filtering) that allows most of the config uMatrix allowed.

https://github.com/gorhill/uBlock/wiki/Dynamic-filtering

jackac · 3 years ago
I don't recommend using dynamic filters because they completely override any matching static filters. Makes the point of filter lists useless, if uBo had a way to set dynamic filters to a lower priority than static they might actually be useful. At the moment the only way I found to replicate uMatrix was to use static filters to block by default on a per domain basis and whitelist domains per request type. It is a lot more work so I only do so for sites with user generated content (e.g. hn or reddit) that have links to who knows where that you might want to prevent from loading.

  *$strict3p,~css,~image,~script,domain= \
    stackexchange.com| \
    stackoverflow.com| \
    superuser.com
  *$strict3p,css,image,domain=stackexchange.com|stackoverflow.com|superuser.com,denyallow=cdn.sstatic.net
  *$strict3p,script,domain=stackexchange.com|stackoverflow.com|superuser.com,denyallow= \
    cdn.sstatic.net| \
    ajax.googleapis.com

jackac commented on FFmpeg 5.1 out – LTS release   ffmpeg.org/download.html#... · Posted by u/gyan
gyan · 3 years ago
Changelog:

- add ipfs/ipns protocol support

- dialogue enhance audio filter

- dropped obsolete XvMC hwaccel

- pcm-bluray encoder

- DFPWM audio encoder/decoder and raw muxer/demuxer

- SITI filter

- Vizrt Binary Image encoder/decoder

- avsynctest source filter

- feedback video filter

- pixelize video filter

- colormap video filter

- colorchart video source filter

- multiply video filter

- PGS subtitle frame merge bitstream filter

- blurdetect filter

- tiltshelf audio filter

- QOI image format support

- ffprobe -o option

- virtualbass audio filter

- VDPAU AV1 hwaccel

- PHM image format support

- remap_opencl filter

- added chromakey_cuda filter

jackac · 3 years ago
Audio channel layout API finally got a long needed rework

https://github.com/FFmpeg/FFmpeg/commit/086a8048061bf9fb4c63...

jackac commented on All the giant companies used ffmpeg (2020)   twitter.com/ID_AA_Carmack... · Posted by u/tosh
lazylion2 · 4 years ago
Interested to know what Twitch is using, they did a two part blog where they explained how ffmpeg was too slow, so they developed their own.
jackac · 4 years ago
From sifting through the leak, it was a fork of ffmpeg they converted to C++, but still retains ffmpeg naming/structures. They dropped any code they didn't use also, so it isn't very much code.
jackac commented on Google keeps records of everything you buy, even if you delete the email receipt   mastodon.social/@gerowen/... · Posted by u/decrypt
pelorat · 4 years ago
That's good because my mailbox is filled with mail from other people. I signed up to gmail on day one using the x.lastname(at)gmail.com address format. Before dot meant "alias".

However I now get email from various people around the world with xlastname(at)gmail.com addresses. Apparently your email is not unique in the world, but only in your region, kind of (?!).

I get important emails (hotel bookings, insurance mails, trip reservations, orders, lawyer documents) from people which use xlastname(at)gmail.com in the USA, Canada, Australia, and Europe. All with similar names to me, obviously the surname is the same, but first name is different, just the same initial.

I've confirmed (by contacting some of them) that they are not missing out on any important documents. For some reason Google's system is duplicating emails meant for other people into my mailbox.

Only mails using x.lastname reaches MY inbox. If I tell someone I know to send a mail to xlastname I wont receive it, making the statement here...

https://support.google.com/mail/answer/10313

...false (for me).

I guess I'm God over all the non dotted versions of my email address. Thanks Google!

(However sometimes I wonder if other people see my emails as well)

jackac · 4 years ago
jackac commented on Intel Launches 10nm Atom Embedded CPUs: Elkhart Lake Now Available   anandtech.com/show/16102/... · Posted by u/rbanffy
jeffbee · 5 years ago
Among who? Not the people to whom they market these parts. People who are designing embedded systems with 24 low-power cores and integrated programmable 100gbps NICs don't care if the people on some overclocker forum don't like the Atom brand.
jackac · 5 years ago
They are probably referring to pre-silvermont(pre-2013) which were in-order execution.
jackac commented on GitHub CLI 1.0   github.blog/2020-09-17-gi... · Posted by u/todsacerdoti
londons_explore · 5 years ago
It would be really nice if the other features of github could get into the decentralized model of git... I could imagine issues and PR reviews/comments all being mini-commits to some kind of parallel metadata repo under the hood for example.
jackac · 5 years ago
There are some experimental tools for distributed code review and issues.

https://github.com/google/git-appraise

https://github.com/dspinellis/git-issue

Would be nice to have something more polished though.

u/jackac

KarmaCake day9March 22, 2020View Original