Better HN
topnewbestaskshowjobs
Log inSign up

bin_bash

2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions

FAANG engineer
Submissions

comment 3y ago · link · parent

agreed, no way am I going to bother reading something so clearly biased.

comment 3y ago · link · parent

Mixers exchange coins without using the blockchain so you can't trace them.

As a simple example of how this is possible: imagine you and I both have 0.1 BTC. We could simply swap wallets which would exchange tokens but that wouldn't be represented on the blockchain at all.

comment 3y ago · link · parent

Isn’t Volta only for JS?

I always recommend rtx.

comment 3y ago · link · parent

can't beat homebrew imo

comment 3y ago · link · parent

I've never needed it, but there is bass for this use-case: https://github.com/edc/bass

comment 3y ago · link · parent

OK so if you're new to fish you should understand universal variables since it's a concept that bash/zsh does not have and it's actually pretty great.

When people first try out fish they want to add their global env vars and PATH configuration to ~/.config/fish/config.fish. You can absolutely do this similar to how you do it in ~/.bashrc. However, it's not idiomatic and once you get used to universal variables, you'll see that it's a lot of yak shaving you really just don't need editing config.fish.

Instead, if you want to permanently set an env var across the current session and all new sessions, run: `set -Ux MY_ENV_VAR 1` (set a universal variable, and export it to subprocesses)

That will put it into a machine-readable file ~/.config/fish/fish_variables. You can open it if you want but this way you don't need to source your rc files, open a new shell, or even open your editor.

For PATH, just run: `fish_add_path ~/my-new-bin`. It uses universal variables by default.

For some reason I avoided universal variables as much as possible for years using fish and now I think that was really silly.

comment 3y ago · link · parent

They're really completely different. Fish is mostly about having features that help you enter a command (history, error checking, completions, etc). Once you execute something, it really behaves the same as bash/zsh.

Nushell is really more about command output (my understanding, I haven't used it heavily). With Nushell you can do things like parse TOML files right in your shell:

    open Cargo.toml | get package.version
Nushell understands the structure of data but fish is like bash/zsh in that it just deals with streams of text. Nushell can even interact directly with sqlite databases which is very cool.

I think if you're just looking for a simple shell that behaves a lot like bash/zsh, use fish. I think Nushell is more targeted to people that want to use its powerful data pipeline features—or are generally interested in a bigger departure from bash/zsh.

Personally I prefer fish, but I should start using Nushell more since it could definitely help with some tasks. I probably would just run Nushell when I need it though, I don't see myself running chsh to switch over.

comment 3y ago · link · parent

as long as you're not doing conditionals and loops you probably won't be able to tell you're not using bash

personally I almost never put anything that complicated into my shell, once it gets to that point it goes into a script.

comment 3y ago · link · parent

Nobody (I know) that uses fish actually writes scripts in fish. Everyone writes scripts in bash for portability.

comment 3y ago · link · parent

you just push ctrl-r just like in zsh

comment 3y ago · link · parent

I often see people complain about this but I seriously don't understand. The shebang at the top of a bash script will point to bash no matter what your shell is.

comment 3y ago · link · parent

Too much Tao, not enough Go. Code samples!

comment 3y ago · link · parent

I feel like I see them by security or food courts, not gates

comment 3y ago · link · parent

most college towns, for example

comment 3y ago · link · parent

I feel like it’d definitely help to know what the rules are. Might make it better to editorialize slightly and avoid having it happen automatically

comment 3y ago · link · parent

Well for what it’s worth this certainly isn’t new

comment 3y ago · link · parent

The submitted title might very well have been "This code smells of desperation.". HN has some strange rules that edit submitted titles like stripping "10" or "How to"

comment 3y ago · link · parent

that tank thing isn't a great example, even blue collar folk could pretty easily afford some of them. It's a hell of a lot cheaper than a Disneyland hotel!

comment 3y ago · link · parent

and it looks like they have 7 high speed lines coming from Paris. Seems the PNW could afford 1.

comment 3y ago · link · parent

it's not for stability, it's because it doesn't require posts so it's cheap and quick

comment 3y ago · link · parent

isn't molten salt quite a bit different?

comment 3y ago · link · parent

lol I see a lot of tools using npm to distribute binary CLIs written in compiled languages: https://blog.orhun.dev/packaging-rust-for-npm/

people are way more likely to be setup with npm than they are with cargo

comment 3y ago · link · parent

I stand corrected, strange I don't remember that. I don't think it hurt the storytelling at least.

comment 3y ago · link · parent

Dunkirk didn't have any gimmicks like that so far as I can remember

comment 3y ago · link · parent

WSJ really did a great job with this headline: https://www.wsj.com/articles/mark-zuckerberg-looks-to-delive...

comment 3y ago · link · parent

Well they are memorable for the people that live in the area—at least that was the case when broadcast TV/radio was important. There really wasn't a need for them to be decipherable to outsiders since historically they would be outside of the broadcast range.
12345
33