Readit News logoReadit News
IAmLiterallyAB commented on Code formatting comes to uv experimentally   pydevtools.com/blog/uv-fo... · Posted by u/tanelpoder
amanzi · 2 days ago
It wouldn't surprise me if the ruff featurset eventually gets integrated into uv and ty. The linting seems to better suited to ty which would be able to provide more intelligent linting since it understands the codebase better. And the formatting seems better suited to uv since that's all about managing your project.
IAmLiterallyAB · 2 days ago
ty is already in the same repo as ruff, so integrating seems likely
IAmLiterallyAB commented on Show HN: Bolt – A super-fast, statically-typed scripting language written in C   github.com/Beariish/bolt... · Posted by u/beariish
themonsu · 14 days ago
Looks cool, but please can we stop naming things ”bolt”
IAmLiterallyAB · 13 days ago
Yeah this is the third programming language named Bolt that I'm aware of
IAmLiterallyAB commented on Generic Containers in C: Vec   uecker.codeberg.page/2025... · Posted by u/uecker
sparkie · a month ago
The biggest issue is the ABI for C - it's the lingua-franca of language interoperability and can't really be changed - so whatever approach is taken it needs to be fully compatible with the existing ABI. `_Generic` is certainly flawed but doesn't cause any breaking ABI changes.

That's also a major reason why you'd use C rather than C++. The C++ ABI is terrible for language interoperability. It's common for C++ libraries to wrap their API in C so that it can be used from other language's FFIs.

Aside from that another reason we prefer C to C++ is because we don't want vtables. I think there's room for a `C+` language, by which I mean C+templates and not C+classes - perhaps with an ABI which is a subset of the C++ ABI but superset of the C ABI.

IAmLiterallyAB · a month ago
> we don't want vtables

Then don't use virtual functions. Then there will be no vtables.

You might have known that already, but in general I'm surprised how many engineers think that all C++ classes have vtables. No, most in fact do not. C++ classes generally have the same memory layout as a C struct as long as you don't use virtual functions.

IAmLiterallyAB commented on Death by a Thousand Slops   daniel.haxx.se/blog/2025/... · Posted by u/robin_reala
IAmLiterallyAB · a month ago
Minimum reputation to submit might help
IAmLiterallyAB commented on The hidden JTAG in a Qualcomm/Snapdragon device’s USB port   linaro.org/blog/hidden-jt... · Posted by u/denysvitali
Tharre · 2 months ago
On the newer pixel phones (starting with the ones containing the titan chip) you can also mux the SBU pins to the security chip USB interface with "fastboot oem citadel suzyq".

And BTW, the SuzyQ cable is nothing more then two pull up resistors and a USB hub connected to the normal usb D+/D- pins on one port and the SBU pins on the 2nd port. Nothing fancy about it, people have even made their own (minus the hub) by soldering some wires and resistors to a usb-c breakout board. Google has also published the schematics for it:

https://www.chromium.org/chromium-os/ccd/951-00273-01_201806...

IAmLiterallyAB · 2 months ago
Been wanting to play with the citadel interface. Last time I looked at it there was 0 public information, but that was years ago. And if there still isn't, then it'll be a good excuse to RE

Also, the titan chip has been around since the Pixel 3 I believe, so "newer" might be a strong word :)

IAmLiterallyAB commented on The hidden JTAG in a Qualcomm/Snapdragon device’s USB port   linaro.org/blog/hidden-jt... · Posted by u/denysvitali
mmastrac · 2 months ago
This is a much better experience than the previous Qualcomm debug experience, which was a hand-rolled set of read/write/execute primitives exposed over USB. It was hilariously undersecured, allowing a few of us to continually get root on various Qualcomm models.

In seriousness, these debug ports are seriously lacking in most mobile chipsets. MediaTek still has the old-style approach in many of their devices, requiring some incantations which expose serial over USB, but not in the way you think -- it's serial over USB pins!

I've done tonnes of work with mobile chipsets and security and this seems like they've finally started down the road to making this functionality accessible. Don't be surprised if you don't see this supported out of the box in most places, though. Most OEMs will certainly disable this once they've adapted their bootloaders to it. The big G doesn't like debuggability in end user devices.

IAmLiterallyAB · 2 months ago
Google exposes serial Serial over the SBU pins on all the Pixel devices
IAmLiterallyAB commented on Parameterized types in C using the new tag compatibility rule   nullprogram.com/blog/2025... · Posted by u/ingve
IAmLiterallyAB · 2 months ago
If you're reaching for that hack, just use C++? You don't have to go all in on C++-isms, you can always write C-style C++ and only use the features you need.
IAmLiterallyAB commented on What the hell is a target triple?   mcyoung.xyz/2025/04/14/ta... · Posted by u/ingve
IAmLiterallyAB · 4 months ago
> However, due to the runaway popularity of LLVM, virtually all compilers now use target triples.

That's a wild take. I think its pretty universally accepted the GCC and the GNU toolchain is what made this ubiquitous.

Also, the x32 ABI is still around, support is still around, I don't know where the author got that notion

IAmLiterallyAB commented on Rsync replaced with openrsync on macOS Sequoia   derflounder.wordpress.com... · Posted by u/zdw
chasil · 5 months ago
"...Apple decided that while it could comply with the terms of GPLv2 license with regards to rsync 2.x, it could not comply with the terms of GPLv3 license with regards to rsync 3.x."

This is due to the software patent terms that appeared in GPLv3.

https://news.ycombinator.com/item?id=21645618

https://lobste.rs/s/8lbh1k

https://archive.ph/AeMTz

IAmLiterallyAB · 5 months ago
I think its actually the anti-Tivoization stuff that they take issue with
IAmLiterallyAB commented on An interactive-speed Linux computer made of only 3 8-pin chips   dmitry.gr/?r=05.Projects&... · Posted by u/dmitrygr
dmitrygr · 5 months ago
Actually, no, mips is an easier JIT target than arm as well. Source: I've written both ARM-to-thumb1 and MIPS-to-thumb1 JITs
IAmLiterallyAB · 5 months ago
Fascinating!

u/IAmLiterallyAB

KarmaCake day510March 22, 2018View Original