Péter Szabó

Results 102 comments of Péter Szabó

Adding `-lc` doesn't make any difference (as expected): ``` $ zig cc -target x86_64-macos.10.5-none -Werror=partial-availability -W -Wall -s -O2 -o hello.darwin105 hello.c -lc hello.c:1:10: fatal error: 'stdio.h' file not found...

Thank you for the clarification on which macOS versions Zig can target. > You have to use one of the latest 3 versions or else your system is not being...

I can confirm that the following commands work in Zig 0.11.0-dev.1637+4e6f21e2c , and they target the respective version of macOS (as verified by the the output of `otool -l prog...

Something's quite wrong here: I've just downloaded https://justine.lol/cosmopolitan/cosmopolitan.tar.gz (65562747 bytes), and I'm still getting a ~250 KB hello-world: ``` $ make MODE=tinylinux o/tinylinux/examples/hello.com ... $ ls -ld o/tinylinux/examples/hello.com -rwxrwxr-x 1...

Indeed, if I use https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-tinylinux-2.2.zip , the hello-world program is just 24.5 KB: ``` $ wget -O cosmopolitan-amalgamation-tinylinux-2.2.zip https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-tinylinux-2.2.zip $ mkdir cosmopolitan-amalgamation-tinylinux-2.2 $ cd cosmopolitan-amalgamation-tinylinux-2.2 $ unzip ../cosmopolitan-amalgamation-tinylinux-2.2.zip $ gcc...

Possible action items here: 1. Disable whatever caused the size regression since version 2.2, and make the tiny hello-world go back to 24 KB. 2. Analyze what caused the size...

Thank you for reporting this! The `/CalRGB` colorspace is not supported by pdfsizeopt. This code explicitly skips unsupported colorspaces: ``` if not re.match(r'(?:/Device(?:RGB|Gray)\Z|\[[\0\t\n\r\f ]*' r'/Indexed[\0\t\n\r\f ]*' r'/Device(?:RGB|Gray)[\0\t\n\r\f (

I can confirm that just changing the `/ColorSpace` value to `/DeviceRGB` in *p-010.pdf* makes the output of pdfsizeopt much smaller (*info: generated 42726 bytes (12%)*). However, this change is not...

Good news: it is possible to add support for these color spaces to pdfsizeopt with keeping existing image optimizers (sam2p, jbig2, pngout etc.) in a safe way, without introducing visible...

@FredWahl: You seem to have a different problem: for you, jpegtran creates an output file larger than the input file. In this issue, the output file of jpegtran (both 3.1...