Hacker Newsnew | past | comments | ask | show | jobs | submit | more ptspts's commentslogin

Isn't `gcc -O0` (for both C and C++) even slower than `clang -O0`?


This is much safer: xargs -d '\n' rm -f --


Just tried to use "-d" and learned that it's a GNUism which isn't available under MacOS, so it's not a portable solution. And neither was it available under BSD 4.3 when I learned about xargs the first time.


Sure, but my example was just that and I actually use /identical$/ as the pattern. Sorry for the typo.

And I use this "historic" one liner only when I know about the contents of both directories. As soon as I need a "safer" solution I use a Perl script and pattern matching, as I said.


In this case the Perl one-liner would be conceptually identical, the same length, but more performant (no calling out to rm):

   diff -rs a/ b/ | perl -ane '/identical$/ && unlink $F[3]'


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.


> 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.


Absolutely not true about the best programmers I know.


How much does Stripe and typical other providers charge?


Stripe charges 2.9% (plus a fixed transaction fee).

https://stripe.com/pricing


Stripe is 2.9% + 30¢, I think most of the popular providers are pretty competitive with that. Gumroad does handle some hosting and analytics and stuff though, its not just a payment processor afaik.


2.9% + 30 cents


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.


Did you get a look at fasm [0] ? It has nice capabilities

[0] : https://flatassembler.net/


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`).


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.


Very nice!


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)


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.


PostScript it's Turing Complete. Get GhostScript, zmachine.ps and some game, such as calypso.z3. You can just ddg/google them freely.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: