HNHacker News
TopNewBestAskShowJobs

da-x

404 karma · joined July 22, 2014

https://twitter.com/DanAloni

http://github.com/da-x

Email: alonid [at] gmail.com

submissionscomments
da-x··on Beyond Meat fights for survival
Boy, the C-suite that sold in the 2019-2021 peak at $150 a share knew what they were doing.
da-x··on Psilocybin shows promise as anti-aging therapy
It may be a secondary effect - that the extension of life from reduction of cellular damage was due to the mice being less stressed out mentally after being stoned.
da-x··on Introducing tmux-rs
I am using tmux with a 200,000 line history and have no issues.

Also, in 2017-2018 I contributed a few fixes for memory leaks related to buffer history, so make sure you are using a recent version.

da-x··on Peter Thiel: Elon Musk has given up on Mars
I wonder if in 2040 after 100 Gigafactories are built, large majority of power planets are green and rely on batteries, and ICE vehicles contribute only to tiny fraction of all pollution, there will still be people saying "it was just for money, meh".
da-x··on Peter Thiel: Elon Musk has given up on Mars
This is unlikely. It's his life's mission.
da-x··on Lossless LLM 3x Throughput Increase by LMCache
Yes, there's KV cache 'Blending' see [1].

Future versions of LMCache are aiming to support this.

[1] CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion- https://arxiv.org/abs/2405.16444

da-x··on Linux as co-operative Windows process (2017)
Many stuff gets invented in raw form much before everyone receives it in a much more structured way.

Around 2007 when Linux namespaces started getting better support, I had made a small executable to use these system calls and to spin up a squashfs image 'just for compiling stuff for another system'. Much later, this whole method was replaced with 'docker run'.

da-x··on Linux as co-operative Windows process (2017)
WSL2 is analogue to coLinux and WSL1 is analogue to Cygwin. WSL2 is definitely what you want in place of coLinux. However, both have merit in what they can achieve depending on the circumstances. There is long thread on Github about the switch between the two, with many people asking to maintain both.

[1] - State of WSL1 · microsoft/WSL · Discussion - https://github.com/microsoft/WSL/discussions/4022#discussion...

da-x··on Linux as co-operative Windows process (2017)
Hi. I'm Dan Aloni, original author of this project. It still warms my heart to see this pops in HN every few years. The others who have worked on it and myself are keeping that site as the good relic that it obviously should be :)

It still amazes me how breakthrough it was to have that working, given the lack of hardware virtualization for PCs in late 2003.

da-x··on Are We Multiplanetary Yet?
Do not go gentle into that good night.

I will never subscribe to such negatively fatalistic views.

da-x··on Are We Multiplanetary Yet?
I really thought he was talking about relocating mankind to asteroids and orbital stations
da-x··on Are We Multiplanetary Yet?
Multiplanetary is easy, multistellar will be a whole different game
da-x··on ICC issues warrants for Netanyahu, Gallant, and Hamas officials
"instead" ?!

There was already a cold war with Iran before Oct 7, and many warned it could pop any moment. It could be said to the detriment of Netanyahu that he ignored that and didn't want this on his watch. Iran was priming and planning for a moment where a joint Hezbollah-Hamas ground invasion would have put the Israeli military to a stress beyond its means, and with many thousands casualties on the first day. It would have happened sooner or later if it wasn't for the Hamas independent action.

Also, on Oct 2023 he and other officials said it is going to be a long battle from the beginning. He never once promised this to be short. And also, a clear victory from a long war gets him more electorates, so he aligns his own victory with Israel's.

da-x··on Five minutes of exercise a day could lower blood pressure
There's no way around getting having the nutrition part figured out too, meaning you need to stop eating like crazy. Saying this from a personal account, where I went down from 20% body fat to 13% in just 3 months and saw various health metrics improving.
da-x··on How I stopped worrying and loved Makefiles
This pattern of usage always seems like abuse.

When `make` is used as a glorified front-end to `bash` scriptlets, why not use `bash` directly instead of having two-level of scripting?

See: https://blog.aloni.org/posts/bash-functional-command-relay/

da-x··on Silicon Photonics Manufacturing Ramps Up
AFAIK the main issue with silicon electronics is not the propagation of electric signals in wire but the switching time of transistors, in such that wait time of computation is 99% inside the transistor and not on the wires between them.
da-x··on Darling: Run macOS Software on Linux
With some smart dynamic binary translation it would be able to run Arm64 OSX binaries. Just 5 times slower.
da-x··on Ask HN: Is 36 too old to (re)start a career in tech?
Find the actual source of your inferiority complex and root it out.
da-x··on Nearly 1 in 4 Israelis will be ultra-Orthodox by 2050, study says
There are so many of them, and they are in fact so successful, that a Knesset MP _suggested_ passing a law that will make it criminally illegal to elicit orthodox jews to leave the religion! Link: https://www.maariv.co.il/news/israel/Article-991752
da-x··on Nearly 1 in 4 Israelis will be ultra-Orthodox by 2050, study says
The argument _for_ the exemption is that it will allow them to join the workforce and contribute to the economy, instead of staying in the yeshiva (which is currently a condition necessary to get the _current_ exemption, and which I think also furthers cements into the orthodox lifestyle). I wonder whether this argument can be tested before the exemption is actually given.
da-x··on Discussion: ChatGPT Outage, Reliance on AI
Way too much, have been using GPT4 every day since it was available. Engineering.

I hope to train a good local LLM that I can run on my Nvidia GTX 4090. I don't have high expectations though.

da-x··on GNU Parallel, where have you been all my life?
It takes time to notice that if you do _several_ of these background jobs with `&`, you will only get the exit status of the last one when you do `wait`. Errors of the others will be swallowed.

Then you _have_ resort to 'wait <pid>' with the 20 lines of bash coded need to manage all those PIDs. I have a large editor bash snippet just for that.

da-x··on Ask HN: How do you implement option flags in your shell scripts?
Recursive decent parsing! For example, here's a template for a script, with a `main` function, parsing for an `--interactive` flag, and handling of positional arguments. If you want an option to take an argument, you can simple extend the `case` with a new option, with shift and take `$1`.

    #!/bin/bash

    set -eu
    set -o pipefail
    set +o posix

    main() {
        local interactive=0
        local positional=()
    
        while [[ $# != 0 ]] ; do
            if [[ "$1" =~ ^--(.*)$ ]] ; then
                shift
                local param
                param="${BASH_REMATCH[1]}"
                case ${param} in
                    interactive) interactive=1 ;;
                    *) "invalid parameter ${param}"; return 1 ;;
                esac
            else
                positional+=("$1")
                shift
            fi
        done
        set -- "${positional[@]}"
    
        if [[ "${interactive}" == "1" ]] ; then
            echo "I am interactive"
        else
            echo "I am not interactive"
        fi
    
        echo "Rest of my arguments: "$@
    }
    
    main "$@"
da-x··on Two atomic clocks have been quantum entangled for the first time
Do you mean that it was proven that observation affects the other end immediately, or is it only just a theory? If so, how it was proven, without it also being useful for sending information?
da-x··on Proper use of Git tags
IIRC, in `git fetch` if a tag is contained in one of the updated branches, you get it automatically without specifying an additional flag. What you say is true for 'orphaned tags' which no remote branch contains.
da-x··on Proper use of Git tags
The tag in the repo is `v4.11-rc7` not `v4.11-rc7-87`. The `-87-g28cf22d0ba28` suffix is added by `git describe`.
da-x··on Proper use of Git tags
I'll try to clarify. The `<tag>-g<hash>` string is _not_ the name of the tag, it's a string emitted by `git describe` based on the existence of `<tag>` in the history.

Of course I'm not suggesting that tag names should include the hash. The existence of the tag `v4.11-rc7` allows other commits to have nicer derived names.

EDIT:

Also to your last inquiry, it may be indeed a surprise that Git resolves `<anystring>-g<githash>` to `<githash>`, but some may argue it's a feature, not a bug :)

da-x··on Proper use of Git tags
Yes, but a pushed tag `test` pollutes a local `test` name for everybody, whereas `test` as a local branch is just a local branch. A remote `test` branch is only referred via `<remote-name>/test` from a local POV.
da-x··on Proper use of Git tags
My example is relevant to tagging in branches that may merge back into the main one. The stable branches in Linux are cherry-pick branches that don't get merged back and therefore creating tags there is harmless.
da-x··on Proper use of Git tags
I don't think that it poses an issue with merge conflicts. It is likely not an issue as long as the tagging is only made on the main branch by the release managers.

I know it is working well for Linux kernel hackers. Linus does all the tagging, and I don't recall issues with merge conflicts on the top Makefile with the part that holds the version.

← PreviousPage 4 of 6Next →