Better HN
topnewbestaskshowjobs
Log inSign up

bfm

865 karma · joined Jun 4, 2010 (16y ago) · 88 submissions

Submissions

31.

Protocol-Aware Recovery for Consensus-Based Storage(usenix.org ↗)

1 points · by bfm · 4y ago · 1 comment

comment 4y ago · link · parent

How prevalent is XDG? The only place I have seen it used is on [Caddy's Dockerfile].

The defaults do not seem to match what the [Filesystem Hierarchy Standard] is proposing, but they do seem reasonable:

    # user data (/usr/share)
    XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
    # config files (/etc)
    XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
    # cache files (/usr/share)
    XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
    # state files (/var/lib)
    XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"

  [Caddy's Dockerfile]: https://github.com/caddyserver/caddy-docker/blob/master/Dockerfile.tmpl#L40
  [Filesystem Hierarchy Standard]: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

33.

The Power of the XDG Base Directory Specification (2019)(maex.me ↗)

3 points · by bfm · 4y ago · 1 comment

comment 4y ago · link · parent

I recommend reading the book “ Panic: The Story of Modern Financial Insanity” by Michael Lewis. It’s a series of articles and expert opinions before and after modern market crashes that helps gaining perspective of expert opinions during the ups and downs of the market.

comment 4y ago · link · parent

It makes sense, DuckDB's documentation has significantly improved, but it is still lacking when it comes to the limitations of using parquet. We have also hit some roadblocks when updating schemas backed by parquet files, so we now only use DuckDB for querying parquet via SQL.

comment 4y ago · link · parent

What was the motivation for building your own instead of using something like DuckDB which support parquet out of the box? What are the differences?

comment 4y ago · link · parent

A self hosted alternative we've been using for our infrastructure is innernet, which was discussed on https://news.ycombinator.com/item?id=26628285 last year

comment 4y ago · link · parent

The control server is not open source. Thankfully headspace https://github.com/juanfont/headscale is filling that gap

comment 4y ago · link · parent

Relevant discussion comparing KeyCloak to the Ory stack https://news.ycombinator.com/item?id=25763320

comment 4y ago · link · parent

We are currently evaluating self hosting supabase auth.

41.

Periodic Table of Network Centrality (2016)(schochastics.net ↗)

4 points · by bfm · 4y ago · discuss

comment 4y ago · link · parent

Not one-liners, but some of the tools that I have found helpful for working with large bash codebases are:

  - shellcheck and shfmt for linting and formatting
  - sub for organizing subcommands
  - bashdb for debugging scripts interactively via the VSCode extension
I'm still missing a way to share modules with others like it can be done with ansible/terraform, but I have not found an optimal way to do it yet.

[shellcheck] https://github.com/koalaman/shellcheck [shfmt] https://github.com/mvdan/sh [sub] https://github.com/qrush/sub [bashdb] http://bashdb.sourceforge.net/ [vscode-bash-debug] https://github.com/rogalmic/vscode-bash-debug

comment 4y ago · link · parent

Thanks for sharing, I love the animations and diagrams.

44.

Bash-oneliner: A collection of handy Bash one-liners and terminal tricks(github.com ↗)

439 points · by bfm · 4y ago · 108 comments

comment 4y ago · link · parent

From the OP

  Rules were established after the “flash crash” of May 2010 to govern when trades should be canceled. Knight’s buying binge did not drive up the price of the purchased stocks by more than 30 percent, the cancellation threshold, except for six stocks. Those transactions were reversed. In the other cases, the trades stood.

comment 4y ago · link · parent

Today there was a 300B oopsie in Europe caused by a Citibank "glitch" bloomberg.com/news/articles/2022-05-02/citi-s-london-trading-desk-behind-rare-european-flash-crash

comment 4y ago · link · parent

Updated the title

comment 4y ago · link · parent

It is challenging, although, with financial markets, it seems like it would be simpler to have some automatic anomaly detection mechanism to unplug or slow things down to prevent further damage.

comment 4y ago · link · parent

The OP details how poor software engineering practices brought down a 1.4B market marker with 1400 employees in 2012.

Some of the issues mentioned include:

  - Keeping synthetic test data generation as part of a production build.
  - Keeping dead code for years.
  - Re-purposing a feature flag.
  - Refactoring without regression tests.
  - Manual deployments without peer reviews. They forgot to update one of their servers with the new code.
  - Automated alerts sent via email were ignored.
  - Rolled back to a version of the code running on the server they forgot to update, making things worse.
  - Rushing out a release without proper software engineering hygiene.
The article suggests improvements that could have prevented the chain of events.

For those here who are in HFT circles, have things improved after the Knight Capital Group debacle?

edit: formatting

50.

The $440M software error at Knight Capital (2019)(henricodolfing.com ↗)

294 points · by bfm · 4y ago · 172 comments

comment 4y ago · link · parent

It looks like the IMPORT_CACHE can be used for vendoring.

A quick example:

    #!/usr/bin/env bash

    export IMPORT_CACHE="vendor/import" 

    source ./bin/import

    import "tootallnate/hello"
    import assert@2.1.3

    hello
    assert_equal foo bar

generates the following dir structure:

    vendor/import/
    ├── data
    │   ├── 0a1c5188c768b3b150f1a8a104bb71a3fa160aad
    │   └── a4f0a20c03de97c490413f0c58f480f2ad17ba27
    ├── links
    │   └── https
    │       └── import.sh
    │           ├── assert@2.1.3 -> ../../../data/0a1c5188c768b3b150f1a8a104bb71a3fa160aad
    │           └── tootallnate
    │               └── hello -> ../../../../data/a4f0a20c03de97c490413f0c58f480f2ad17ba27
    └── locations
        └── https
            └── import.sh
                ├── assert@2.1.3
                └── tootallnate
                    └── hello

comment 4y ago · link · parent

After years of using Terraform and Puppet, I seriously consider using plain bash to handle infrastructure as code on a future project, which deploys to multiple cloud and non-cloud vendors.

There is some beauty to creating a standalone idempotent and well-tested bash scripts that are simple to share and version using something like import.sh

Given the maturity of tools such as shellcheck, simple composable tools such as age (for encryption), machma (parallel execution), Make for the dependency graph and the assistance provided by Github Copilot to developers intimidated by bash syntax, what would be the drawbacks of going with this approach?

What other simple tools like import.sh would you recommend for building IaaC pipelines?

53.

Import.sh A module system for Bash and other Unix shells(import.sh ↗)

2 points · by bfm · 4y ago · 3 comments

54.

Types of Machine Learning Paper(twitter.com ↗)

2 points · by bfm · 5y ago · discuss

comment 5y ago · link · parent

This!

After working with node.js for more than eight years I decided to give deno a try (https://github.com/bermi/genetic) and I’ve been gratefully surprised by the development experience.

I’m just missing a simple way to include deno code on my existing node.js and browser projects.

comment 5y ago · link · parent

If you have not been following the work José and Sean have been doing lately, I recommend you watching José’s talk introducing Elixir Nx https://youtu.be/fPKMmJpAGWc

57.

Elixir and Phoenix after two years(nts.strzibny.name ↗)

264 points · by bfm · 5y ago · 111 comments

comment 5y ago · link · parent

A quote by Avi Bryant regarding continuations in Drabble DB "... in Dabble we essentially don't use continuations although we do use Seaside"

You can read the whole interview on https://www.infoq.com/interviews/bryant-smalltalk-dabbledb/

123