gaul
gaul on Hacker News
Posted by
gaul on Monday January 19, 2026 @10:47PM
from the soc.me dept.
Posted by
gaul on Sunday January 11, 2026 @01:41PM
from the pigeonsnest.co.uk dept.
Posted by
gaul on Thursday May 23, 2024 @02:42AM
from the ciq.com dept.
Posted by
gaul on Thursday March 14, 2024 @07:22AM
from the github.com dept.
Posted by
gaul on Monday March 11, 2024 @09:36AM
from the grapheneos.social dept.
Posted by
gaul on Monday January 01, 2024 @01:32AM
from the open-web-advocacy.org dept.
Posted by
gaul on Friday December 22, 2023 @07:10AM
from the uberpubpolicy.medium.com dept.
Posted by
gaul on Sunday October 02, 2022 @10:47PM
from the landing.google.co.jp dept.
Posted by
gaul on Tuesday July 19, 2022 @01:55AM
from the blog.min.io dept.
Posted by
gaul on Monday August 30, 2021 @09:39AM
from the blog.pyston.org dept.
clang's -Wshorten-64-to-32 can catch this:
https://clang.llvm.org/docs/DiagnosticsReference.html#wshort...
The more general-purpose -Wconversion has many false positives, often around int to char conversion. Some functions like int toupper(int) have an unexpected int return type to deal with special out-of-bound values like EOF.
This is not a NOP; it explicitly clears the upper 32 bits of EDI since the compiler does not know that they are zero in this situation. If you change cc from an int to size_t (long on x86-64) the compiler will generate:
mov eax, OFFSET FLAT:.LC0
cmp rdi, 258
ja .L1
mov rax, QWORD PTR CSWTCH.1[0+rdi*8]
Note that in some cases the compiler can do this automatically via lifetime analysis but not in this freestanding example.
The article mentions 32-bit Raspbian which is moving to 64-bit to better support the Raspberry Pi 4 with 8 GB of RAM. Both the RPi 3 and 4 have 64-bit support but earlier models, including the popular and still-on-sale Zero, do not support 64-bit. This platform will likely stick around for a long time; we need to continue to fix issues like this size_t/off_t one in s3fs:
https://github.com/s3fs-fuse/s3fs-fuse/pull/1039
Could you expand on this comment? s3fs uses multiple threads for uploading and populating readdir metadata via S3fsMultiCurl::MultiPerform. Earlier versions used curl_multi_perform which may have hidden some of the parallelism from you.
This is not expected behavior. An older version had pessimized locking which preventing concurrently adding a file to a directory and listing the directory simultaneously which is the most similar symptom. I recommend upgrading to the latest version, running with debug flags `-f -d -o curldbg`, and observing what's happening. Please open an issue at
https://github.com/s3fs-fuse/s3fs-fuse/issues if your symptoms persist.
I maintain mbpfan and have contributed to a few other Linux on Mac tools.
Linux on Mac is not worth the effort. I ran Ubuntu on a 2011 MacBook Air and now run Fedora on a 2014 MacBook Air. There were several papercuts even with these relatively open models where it took a while to get suspend, trackpad, fan, webcam, wifi, etc. working properly. You will need to use binary drivers for the latter two features and some strange EFI bootloader. It seems that newer MacBook compatibility is worse:
https://github.com/Dunedan/mbp-2016-linux
I use Debian on ThinkPad at work and plan to buy this or a Dell XPS for my next laptop.
Posted by
gaul on Tuesday November 17, 2020 @08:23AM
from the mozilla.org dept.
Note that this laptop uses Kaby Lake based on the older Skylake design. Newer laptops use Sunny Cove based on Ice Lake and have improved single-core performance.
Posted by
gaul on Wednesday November 11, 2020 @03:17AM
from the github.com dept.
Every talk should include a link to the slides at the beginning and end of the deck, preferably with a shortened URL. This allows live viewers random access but also improves recorded talks. I often want to evaluate the content of a talk to see if I should invest 30-60 minutes watching. This would also help users with accessibility needs.
Posted by
gaul on Thursday May 21, 2020 @06:33AM
from the openjdk.java.net dept.
This changed in 1.86 and I updated the README as follows:
> random writes or appends to files require rewriting the entire object, optimized with multi-part upload copy
Now changing one bit means re-uploading 5 MB, the minimum S3 part size.
Fixed; thanks for the feedback.