HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ptspts

no profile record

comments

ptspts
·13 วันที่ผ่านมา·discuss
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.
ptspts
·เดือนที่แล้ว·discuss
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.
ptspts
·2 เดือนที่ผ่านมา·discuss
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.
ptspts
·3 เดือนที่ผ่านมา·discuss
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.
ptspts
·3 เดือนที่ผ่านมา·discuss
Isn't creating a Docker image containing the right version of GCC or Clang a solution to the toolchain problem?
ptspts
·3 เดือนที่ผ่านมา·discuss
Shameless self-promotion: I think I hold the record (83 bytes) for the shortest hello-world Linux ELF executable: https://github.com/pts/mininasm/blob/master/demo/hello/hello...
ptspts
·4 เดือนที่ผ่านมา·discuss
GDSL is written in C++ with use of STL, templates and lambdas, so it's 2600 lines of such C++ source code. There is no self-hosting: neither the LISP compiler nor the C compiler can compile itself. No operating system is implemented, the word kernel in the title means something else.

FYI Here is a 700-line subset-of-C compiler which can compile itself: https://github.com/valdanylchuk/xcc700 . FYI The linker and the libc are not included.
ptspts
·6 เดือนที่ผ่านมา·discuss
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.
ptspts
·6 เดือนที่ผ่านมา·discuss
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.
ptspts
·6 เดือนที่ผ่านมา·discuss
It does exclude unused code. But glibc has too many inter-object-file dependencies, so too much code gets used.
ptspts
·6 เดือนที่ผ่านมา·discuss
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?
ptspts
·6 เดือนที่ผ่านมา·discuss
As a text editor user, I prefer selecting the font and the syntax highlighting independently. This font is not useful for me.
ptspts
·7 เดือนที่ผ่านมา·discuss
What is the advantage of this circular implementation?

Is it faster than the simple one? Does it use less memory? Is it easier to write? Is it easier to understand?

I think all of the above is false, but I have a limited understanding of Haskell. Please correct me if I'm wrong.
ptspts
·8 เดือนที่ผ่านมา·discuss
Why is ELF so much slower and/or more memory hungry than a.out on Linux?
ptspts
·8 เดือนที่ผ่านมา·discuss
Shameless plug: Some of my hobby projects written in C (e.g. https://github.com/pts/bakefat) can be built reproducibly for Linux >=1.0 (1994), FreeBSD (same ELF executable program file as for Linux) and Win32 working on all versions of Windows (Windows NT 3.1 (1993)--Windows 11). The C compiler (running on Linux i386 and amd64 host) used for the release build is self-contained and included in the project, along with the libc.

Doing such backward compatibility is definitiely possible for command-line tools. Once set up, it's automatic, and it needs extra testing after major changes.
ptspts
·8 เดือนที่ผ่านมา·discuss
If a text-mode process monitor is larger than about 200 KiB, then it sounds bloated to me. If it's loaded with tons of features, then my upper limit is 1 MiB.
ptspts
·8 เดือนที่ผ่านมา·discuss
[flagged]
ptspts
·10 เดือนที่ผ่านมา·discuss
This video doesn't explain what the project does and how it does it. Also it's deliberately misleading the viewer, for example it purposefully incorrectly states that C++ is an interpreted language.

Also the music is way is too loud and sudden.
ptspts
·10 เดือนที่ผ่านมา·discuss
This should have been solved in the last 30 years on Linux console, X terminal emulators and through SSH.
ptspts
·ปีที่แล้ว·discuss
Isn't `gcc -O0` (for both C and C++) even slower than `clang -O0`?