HNHacker News
TopNewBestAskShowJobs

ptspts

377 karma · joined October 2, 2014

[ my public key: https://keybase.io/pts; my proof: https://keybase.io/pts/sigs/C34Y9N0h_-KIkEDMgG6Jf5TicT20del-Z3zqVJh1afY ]
submissionscomments
ptspts··on Why is the Rust compiler so slow?
Isn't `gcc -O0` (for both C and C++) even slower than `clang -O0`?
ptspts··on Parsing JSON in Forty Lines of Awk
This is much safer: xargs -d '\n' rm -f --
ptspts··on Ask HN: What are good high-information density UIs (screenshots, apps, sites)?
Is there a high information density (small font size, little whitespace, thin window borders, no transparency) GNOME theme, ready for everyday use in Ubuntu? Combined with a similar Chrome theme and Firefox theme, it would be awesome.
ptspts··on Kotlin, Swift, and Ruby losing popularity
> being a superset, the ability to seamlessly drop in and out of pure C within the same file is something no other language can do.

C++ and Objective C++ can do it just as well.

D and Zig have good C ABI integration.

ptspts··on Microsoft’s original source code
Absolutely not true about the best programmers I know.
ptspts··on Gumroad’s license wouldn’t meet the widely regarded definition of open source
How much does Stripe and typical other providers charge?
ptspts··on Ask HN: What less-popular systems programming language are you using?
fasm is indeed great. It has many features, it can do all the code size optimizations, it even knows the sizes of variables (e.g. `mov myvar, 5` depends on `myvar db 0` vs `myvar dw 0`). NASM and fasm syntax are quite similar.

NASM supports more output file formats (i.e. .o files for many systems), and it can receive macro definitions from the command line (e.g. `nasm -DDEBUG`).

ptspts··on Ask HN: What less-popular systems programming language are you using?
I do systems programming in i386 (32-bit) assembly language with NASM.

For me it doesn't scale beyond a few dozen kilobytes (executable program file size) per program. For others (such as Chris Sawyer) assembly scales much better.

ptspts··on 1972 Unix V2 "Beta" Resurrected
My https://github.com/pts/minilibc686 can do printf-hello-world on i386 in less than 1 KiB. write-hello-world is less than 170 bytes.
ptspts··on A whirlwind tutorial on creating teensy ELF executables for Linux (1999)
Shameless plug: write your program in C, get almost as little size overhead as in the Whirlwind turorial: https://github.com/pts/minilibc686 (libc, compiler, linker, settings)
ptspts··on Linux Running in a PDF
From the computation point of view, it's possible. PostScript has integer arithmetic operations needed for x86 CPU emulation. It also has mutable byte strings, which are useful as emulated memory.
ptspts··on Reverse Engineering Apple's typedstream Format
If you parse a serialized protobuf byte array without having a .proto file, you have no way to dustinguish a byte string field from a nested message field. Thus you have no way to know how deep your parser should go.
ptspts··on Google Pixel 4a's old firmware is gone, trapping users on buggy battery update
Is it possible to decline this update on the UI of an internet-connected Pixel 4a?

Mine has already updated, and I'm wondering if I had a chance to say no.

ptspts··on Guten: A Tiny Newspaper Printer
This is a reference to the story of the novel The Name of the Rose by Umberto Eco.
ptspts··on Mufasa's 'Bye Bye' shows how Disney villain songs went wrong
Do you mean this song?

> Der Hölle Rache kocht in meinem Herzen

ptspts··on DOS live USB image with tools for writers
What is the benefit of DOS over a Linux live CD, with wifi and notifications disabled?
ptspts··on Ugandan runner due to arrive in London after 516 days, 7,700 miles on the road
Why would someone start this long run without enough funding secured for the whole length?
ptspts··on A Simple ELF
Aren't there GCC command-line flags to specify alignment assumptions?
ptspts··on A Simple ELF
For 32-bit x86 (i386 and i686), I've written a libc and a toolchain to.automate this: https://github.com/pts/minilibc686 . It can use mainstream free C compilers (GCC, Clang, OpenWatcom cc386, TinyCC and PCC) and assemblers (GNU as and NASM) out of the box.

A printf-hello-world is about 1 KiB. A write-hello-world (syscalls only) is less than 200 bytes. Assembly programming skills not needed to use it.

ptspts··on OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
Then you have to bet carefully, to avoid winning by accident.
ptspts··on Show HN: I made an ls alternative for my personal use
I typically turn this off. Many times it's too slow, and many times it hides local filenames, and I do want local filenames.
ptspts··on A life that added up to something (Obituary of Paul Erdòs)
The correct spelling of the name of this mathematician is Pál Erdős. With international first name it is Paul Erdős.
ptspts··on Pretty.c
The Zig toolchain can compile both Zig and C.
ptspts··on Pretty.c
Python stdlib conveniently supports both byte strings and Unicode strings, even for regexps. Ther is no need to migrate to any other language.
ptspts··on Show HN: FFmpeg-over-IP – Connect to remote FFmpeg servers
What problem does it solve?

How to use it? Do you have example commands?

How is video data transferred between the client and the server?

Would it be possible to connect with SSH to a Linux server, using SFTP with FUSE or Samba with port forwarding for file sharing? This way the server could be zero-configuration (except that ffmpeg has to be installed, but the executable can also be transferred over SSH).

ptspts··on Litecli: CLI for SQLite Databases with auto-completion and syntax highlighting
It's still useful for the remaining 10%.
ptspts··on Honey, I shrunk {fmt}: bringing binary size to 14k and ditching the C++ runtime
Shameless plug: printf(Hello, World!\n"); is possible with an executable size of 1008 bytes, including libc with output buffering: https://github.com/pts/minilibc686

Please note that a direct comparison would be apples-to-oranges though.

ptspts··on Trying for twelve years to chase down and catch an antelope by foot [audio]
TL;DR TL;DR They have been failing so far: they haven't caught a single sntelope.
ptspts··on If you give Copilot the reins, don't be surprised when it spills your secrets
In the article was expecting a screen capture video showing Copilot spilling secrets. Does it contain one?
ptspts··on macOS in QEMU in Docker
My guess is that macOS on Hyper-V is faster.
← PreviousPage 2 of 7Next →