Preferences

d0mine
Joined 4,658 karma
email: ZDBtaW5l at google mail

  1. It might explain why there is a stereotype the more beautiful woman the crazier she is. (everybody tells her what she wants to hear)
  2. Gedankenexperiments are valid scientific tools. Some predictions of general relativity were confirmed experimentally only 100 years after it was proposed. It is well known that Einstein used Gedankenexperiments.
  3. There is Org Babel in Emacs that can be an alternative to jupyter notebooks for literate programming (research/devopsy tasks). It is more powerful in some aspects and weaker in others.
  4. The same can be said about driving but self-driving cars exist.
  5. I see fabric python library (open source ssh automation) https://pypi.org/project/fabric/

    No connection to microsoft.

  6. > cartel continues to profit

    It doesn't follow. The reverse is more likely: If you end prohibition, you end the mafia.

  7. Usually, a simple function is enough:

        def make_counter(start=0):
          count = start
          def incr():
            nonlocal count
            count += 1
            return count
          return incr
    
    Example:

        >>> c = make_counter()
        >>> c()
        1
        >>> c()
        2
    
    But it hides nothing:

        >>> c.__closure__[0].cell_contents
        2
        >>> c.__closure__[0].cell_contents = -1
        >>> c()
        0
    
    "private" in Python is cultural, not enforced. (you can access `self.__private` from outside too if you want).
  8. Idiomatic Python code can be faster than naive C/C++ code. The secret is to offload hot paths outside pure Python. Most such things are written that way already: you do not try to optimize the internal loop for a matrix multiplication in pure Python, you call numpy.dot() instead (pytorch if GPUs can help).

    Otherwise, optimizing code in Python is the same as in any other language eg

    http://scipy-lectures.org/advanced/optimizing/

    https://scikit-learn.org/stable/developers/performance.html

  9. > 5% less efficient

    Emacs changes big O. It is not about changing constant factor. If you need N commands with M features then you can implement and combine them in emacs in O(N+M), to get O(N*M) custom commands.

    For example, if you need “Search” feature then you can use it everywhere. It can help find you a file in Dired buffer. It can help you find a git chunk in magit. It can help you find todo item in Org mode, etc. It like having a separate `uniq` command instead of implementing it for each shell command (`sort -u` vs. `sort | uniq`). Another example, having `repeat <N> <cmd>` to repeat `<cmd>` command `<N>` times in zsh vs. implementing `<cmd> —repeat <N>` for each command.

    The difference is linear vs. quadratic. If you need to do 1000 actions that can be decomposed into 100 commands with 10 features each then in emacs then you need to know and understand ~100 things vs. 1000 in less customizable environments.

  10. In Python, no user object is modified by a simple assignment to a name. It just binds it.

    It is not about mutable/immutable objects , it is about using a name for a single purpose within given scope.

        a = 1
        b = 2
        a = b
    
    "a" name refers to the "2" object. "1" hasn't changed (ints are immutable in Python). If nothing else references it, it might as well disappear (or not).

    Though both "single purpose" and immutability may be [distinct] good ideas.

  11. > TRM obtains 45% test-accuracy on ARC-AGI-1 and 8% on ARC-AGI-2, higher than most LLMs (e.g., Deepseek R1, o3-mini, Gemini 2.5 Pro) with less than 0.01% of the parameters.
  12. Monetary debt is often a useful tool. Technical debt in many cases is just shortsightedness in throwing delayed time bombs around. It is built on the hope that you won't need to return on this minefield again (the product dies sooner).
  13. There is a difference between unintentionally introducing a bias and propaganda . The latter is a guided by professionals. It is not an accident.
  14. You might have meant "code is a liability not an asset"
  15. The whole premise of uv that you don't need to know that you can install specific python version using eg pyenv (`uv python install` or `uv run` may do it implicitly), you don't need to know about `python -m venv`/virtualenv (`uv venv`), or how to create lock files pip-tools / pipenv / poetry / etc(`uv lock`), or pipx (`uv tool install`) or `pip install`/ `pipenv install`/`poetry add` / many others (`uv add`), or how to build artifacts setuptools / hatchling / poetry way / etc (`uv build`). Other commands such as `uv sync` didn't break new ground too.

    `uv format` is similar (you don't need to know about `ruff format` / black / yapf ).

  16. One can find repos using `make format` / `make lint`/ `make typecheck` / or similar

    I remember David Beazley mentioning that code with Makefiles were relatively easier to analyze based on ~Terabyte of C++ code and no internet connection (pycon 2014) https://youtube.com/watch?v=RZ4Sn-Y7AP8

  17. There is a telegram client for emacs: telega.el https://github.com/zevlg/telega.el

    The installation instructions are scary but It has been straightforward to install melpa version via use-package with telega-server in docker.

  18. f""-strings for logging is an example of "practicality beats purity"

    Yes, f""-strings may be evaluated unnecessarily (perhaps, t-strings could solve it). But in practice they are too convenient. Unless profiler says otherwise, it may be ok to use them in many circumstances.

  19. Wordpress dominates internet outside megacorps. There are a lot of security issues but there is a lot of utility too.
  20. "chaotic system" might be more precise here: small variations in the input may result in arbitrary large differences in the output.

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal