HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Fulgen

no profile record

Submissions

Breaking BitLocker Again

twitter.com
4 points·by Fulgen·w zeszłym miesiącu·0 comments

comments

Fulgen
·5 miesięcy temu·discuss
This is about raw_sql, which is explicitely documented to not use prepared statements and thus doesn't support query parameters; not about the actual query() API SQLx offers.

> Note: query parameters are not supported.

> Query parameters require the use of prepared statements which this API does support.

> If you require dynamic input data in your SQL, you can use format!() but be very careful doing this with user input. SQLx does not provide escaping or sanitization for inserting dynamic input into queries this way.

> See query() for details.
Fulgen
·6 miesięcy temu·discuss
C++20 actually [changed the semantics of consume](https://devblogs.microsoft.com/oldnewthing/20230427-00/?p=10...), but Rust doesn't include it. And last I remember compilers still treat it as acquire, so it's not worth the bytes it's stored in.
Fulgen
·7 miesięcy temu·discuss
https://en.cppreference.com/w/cpp/utility/unreachable.html
Fulgen
·8 miesięcy temu·discuss
In Rust or in general? Because an arbitrary "too old" moniker is not something I've seen happening, and the only target that was removed instead of demoted in recent times was i586-pc-windows-msvc, aka Windows 10 without SSE, which was...utterly pointless since Windows 10 requires SSE.

If anything, I quite like the way Rust handles it with target tiers and easy switching between targets, because it's an honest approach about how well a target is supported. Having a win7 target that is tier 3 is a reflection of the support it has, and much better than stringing it along in the main Windows target that promises tested support when there isn't even a Windows 7 CI to test on.
Fulgen
·8 miesięcy temu·discuss
Nobody noticed because Windows special cased InstallShield.

https://devblogs.microsoft.com/oldnewthing/20131031-00/?p=27...
Fulgen
·8 miesięcy temu·discuss
The problem is, as usual, that some people want that support, but nobody is actually interested in helping out with that support - and that doesn't only include people willing to help out with the code, it includes things like CI. Just how the riscv targets won't be able to reach tier 1 without GH or someone else offering CI support.

Rust's target tiers, while historically not as enforced as they are today, have requirements attached to them that each target has to fulfill; demoting a target or removing support isn't done for fun, but because of what the reality reflects. In Windows 7's case, support from the Tier 1 Windows target was not so much removed as it was acknowledged that the support guaranteees just didn't exist - host tools had long been dead with LLVM having removed support for running on Windows 7, and tier 1 support wasn't guaranteed without any CI to test it on. Thus support was removed, and very soon contributors popped up to maintain the win7 target which is tier 3 and accurately reflects the support gurantees of that target.

(Not a jab at your situation btw, and I wish I could offer you a solution beyond the win7 target - but as it's essentially the preexisting Windows 7 support extracted into a target that matched its reality, it works quite well in practice)
Fulgen
·10 miesięcy temu·discuss
> You should absolutely be XP pair programming with your LLM.

If you want AI slop everywhere, that is.
Fulgen
·10 miesięcy temu·discuss
In some ways, Windows already does that too - the 32-bit syscall wrappers [switch into a 64-bit code segment](https://aktas.github.io/Heavens-Gate) so the 64-bit ntdll copy can call the 64-bit syscall.
Fulgen
·11 miesięcy temu·discuss
> You're starting to feel it absolutely everywhere

Starting to? 30-50% of the HN front page has been consisting of articles about LLMs for months now, to the point that a user script to hide all AI articles vastly improves the experience.