ptspts

Joined 12 years ago

Karma
370
Submissions
189
Member since
Oct 2
[ my public key: https://keybase.io/pts; my proof: https://keybase.io/pts/sigs/C34Y9N0h_-KIkEDMgG6Jf5TicT20del-Z3zqVJh1afY ]
View on Hacker News

Recent submissions

Comment · 2 months ago
The HN title is incorrect. It should contain std::move.
Comment · 3 months ago
I have a regular Bash shell history with about 750 000 entries on an SSD on a modern laptop, and would take about 1 second for Bash to load 1 million entries. The startup delay and the memory usage is noticeable.

Storing the shell command history in a database instead of the memory of each interactive Bash shell, it would make Bash start up faster, and also use less memory.

Comment · 3 months ago
As indicated in https://tangled.org/oppi.li/stinkpot/blob/cdf87ffcd36e96f3d4... , this software (stinkpot) still uses Bash PROMPT_COMMAND as an entry point to copy new shell history entries to its database.

PROMPT_COMMAND has the following flaw: a command gets recorded as soon as it has finished. So command which never finish (e.g. because they run for a long time, and the user closes the terminal window, or reboots the system) never get recorded. Another flaw: the users starts a long-running command in terminal window 1, and immediately they want to start a variant of it in terminal window 2, but it's not available in the history.

Comment · 4 months ago
In fact, it's possible to set up bind mounts without root on a modern Linux system, using a user namespace and a mount namespace.
Comment · 4 months ago
It does, so not 100% is reused. The patched parts are in different sections though, so the entire .text (code) section ends up being reused.
Comment · 6 months ago
I hate tiling window managers. After I start a program, I move and resize its window to the perfect position, and it stays there for weeks. I don't ever want it to be moved or resized automatically, which is what tiling window managers do by default.
Comment · 6 months ago
Does the new owner of the domain friendster.com also own the company, the patents and the other pieces of intellectual property? The article seemed to be unclear about this.
Comment · 6 months ago
Isn't creating a Docker image containing the right version of GCC or Clang a solution to the toolchain problem?
Comment · 7 months ago
Comment · 7 months ago
Comment · 9 months ago
It's possible to run WebAssembly programs from the command line (without any GUI) using WASI (see e.g. https://github.com/WebAssembly/WASI). Thus if the user downloads pdfconverter.wasi , and the user already has e.g. wasmtime installed, they can run `wasmtime pdfconverter.wasi input.pdf output.pdf` from the command line (see https://github.com/bytecodealliance/wasmtime/blob/main/docs/... for details).

In addition to the web site, the Electron app and the Chrome extension, you may want to distribute a command-line version of your tools as WASI-style .wasm program files. If you do so, I would exclusively use the them this way, from the command line.

Comment · 9 months ago
Your commands to process PDF with Ghostscript are lossy (they lose lots of metadata and in minor ways they also change how the PDF renders), and they produce very large PDF files.
Comment · 9 months ago
It does exclude unused code. But glibc has too many inter-object-file dependencies, so too much code gets used.
Comment · 10 months ago
Neither the article nor the README explains how it works.

How does it work? Which WASM euntime does it use? Does it use a Python jnterpreter compiled to WASM?

Comment · 10 months ago
As a text editor user, I prefer selecting the font and the syntax highlighting independently. This font is not useful for me.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton