HNHacker News
TopNewBestAskShowJobs

IAmLiterallyAB

567 karma · joined March 22, 2018

submissionscomments
IAmLiterallyAB··on Cooperative C++ Evolution – Toward a TypeScript for C++
When Sean is willing to release the source, I'll start paying attention. Until then, it's just a tech demo.
IAmLiterallyAB··on Cooperative C++ Evolution – Toward a TypeScript for C++
The TS approach isn't about having a meta compiler. cppfront is just a temporary stepping stone, just like cfront (the original C++ compiler) was a temporary frontend for C++. Eventually the goal would be to add support for the new syntax to GCC, Clang, MSVC
IAmLiterallyAB··on McDonalds is giving free French fries in return for waiving the right to sue
I don't eat McDonald's for my health, but back when I did they give out a lot of free food and big discounts. More than the other fast food chains who's apps I've tried. A bunch of my friends have the app.
IAmLiterallyAB··on Shadow: New browser engine made almost entirely in JavaScript
I dunno I'd say the new IE is Chrome. They basically control the ecosystem and everyone targets them when developing. "Best viewed with I̶n̶t̶e̶r̶n̶e̶t̶ ̶E̶x̶p̶l̶o̶r̶e̶r Chrome"
IAmLiterallyAB··on Trying out C++20's modules with Clang and Make
The progress is frustratingly slow. My understanding is GCC and Clang still haven't finished implementing them fully. Last I read they are still making significant changes, for example moving to the strong ownership model for symbols. Once they're done, hopefully the build system and IDE support will follow quickly. MSVC seems to be in much better shape.
IAmLiterallyAB··on Escape analysis hates copy elision (2021)
Fascinating. Does anyone know why x escapes here? Is it an optimization miss? Because to my untrained eye modifying x should still be undefined behavior.

Does the way x is initialized make it not "const-y" enough?

IAmLiterallyAB··on Escape analysis hates copy elision (2021)
One of the escape analysis examples in the article got me thinking. Turns out this is one of those cases where marking a local variable const _does_ result in different code.

See this godbolt example https://godbolt.org/z/nbzd59E33

As I understand it, performing a const_cast itself isn't undefined behavior, which is why the compiler cannot assume function f doesn't modify the local. However, if we mark the local variable as const, the compiler is able to assume no modification will occur (because that would be undefined) and optimize the return.

IAmLiterallyAB··on Extracting IP from getaddrinfo call
I must be missing something. It's a pretty normal function. Just call it, then walk through the struct and get the value out. It's like 3 lines of code. Why is the debugger involved?

I suppose the one complication is you have to cast sockaddr to sockaddr_in but that's all documented

IAmLiterallyAB··on Java 21: The Nice, the Meh, and the Momentous
> less than a page; about 1kiB IIRC

Interesting, didn't realize the kernel would let you do that. I guess it makes sense since it's up to user space to map pages for the stack. The kernel doesn't have much to do on clone except set the stack pointer.

IAmLiterallyAB··on This isn’t the way to speed up Rust compile times
Huh, interesting
IAmLiterallyAB··on This isn’t the way to speed up Rust compile times
Mold is ELF only. They'd have to rewrite it anyway. I don't see much point in a Windows port
IAmLiterallyAB··on The GRUB MBR (2008)
Now there is rEFInd, a fork of rEFIt. http://www.rodsbooks.com/refind/
IAmLiterallyAB··on A Year in Review of 0-days Exploited In-the-Wild in 2022
They've bumped it up to 5 years for Pixel 6 and later https://support.google.com/pixelphone/answer/4457705#zippy=%...
IAmLiterallyAB··on C++23: The Next C++ Standard
Hoping compilers will get their C++20 modules implementation working well enough that we'll get C++23 standard library modules soon. As an outside observer, it seems like progress is happening in spurts, but it feels kinda slow.
IAmLiterallyAB··on Ask HN: When were flagged submissions/comments added to the profile page?
I had 10, all of which were accidental. It's so easy to accidentally hit flag with this UI
IAmLiterallyAB··on ProtonMail Rewrites Your Emails
Incorrect, DKIM also signs the body of the message.
IAmLiterallyAB··on The legend of “x86 CPUs decode instructions into RISC form internally” (2020)
IIRC They made new branch instructions without delay slots, but the normal branch instructions still have delay slots.

Had to write MIPS assembly by hand recently, incredibly counter intuitive.

IAmLiterallyAB··on The DRAKON Language
> Line intersections are forbidden

Not all graphs are planar. Not even all DAGs. Which I assume can throw a wrench into things

IAmLiterallyAB··on BBEdit is 30 years old as a commercial product
Why does GPLv3 stop you from looking at the source?
IAmLiterallyAB··on Bcachefs – A New COW Filesystem
Here's a link to the Bcachefs site https://bcachefs.org/

I think it summarizes its features and strengths pretty well, and it has a lot of good technical information.

IAmLiterallyAB··on Tensegrity Wiki
I didn't know what tensegrity was and the Wiki is... very unhelpful. Almost cult like. Here it is verbatim:

What is tensegrity?

Tensegrity is the way the world organizes itself. Build or buy a model and experience it yourself!

Why learn about it?

Whatever your goal in life, it's good to understand how the world works. Tensegrity, discovered about 60 years ago, is a new way of understanding forces at play. Whether you are building a business, designing household objects, building robots, or trying to live sustainably in a resource-challenged world, tensegrity offers innovative ways of thinking about how parts and wholes interact.

What is Tensegrity Wiki, The Encyclopedia of Tensegrity?

This website is a wiki dedicated to exploring the field of tensegrity, a subset of energetic-synergetic geometry. It is intended to use the "power of crowds" to fine-tune and make available accurate knowledge about tensegrities. This includes all aspects of tensegrity including structural tensegrity sculptures, dynamically adjusting tensegrity robotics, biotensegrity as expressed in cellular mechanics, biotensegrity as expressed in mammalian anatomical fascial/bone structure, tensegrity therapy as a set of mind-body practices, tensegrity as it illuminates ancient philosophies of harmony, music and dance inspired by tensegrity, and so on.

IAmLiterallyAB··on PSA: Upgrade your LUKS key derivation function
According to one of the experts on the panel of the Password Hashing Competition, Argon2 is actually weaker than bcrypt https://twitter.com/TerahashCorp/status/1155129705034653698

I'm not an expert, but I'm really curious to hear more. It's especially weird given I've heard nothing but good things about Argon2 otherwise.

IAmLiterallyAB··on Cryptographic Best Practices
According to one of the experts on the panel of the Password Hashing Competition, Argon2 is actually weaker than bcrypt https://twitter.com/TerahashCorp/status/1155129705034653698

I'm not an expert, but I'm really curious to hear more. It's especially weird given I've heard nothing but good things about Argon2 otherwise.

IAmLiterallyAB··on NAND Flash Data Recovery Cookbook (2013) [pdf]
Gotcha. That's the conclusion I came too as well. Never was able to fully RE it, but maybe someday I'll revisit it.
IAmLiterallyAB··on NAND Flash Data Recovery Cookbook (2013) [pdf]
A couple years ago I was trying to extract and interpret information from a NAND flash chip. I was able to get a dump of the bytes, and identified the pages and their spare areas. But I never was able to figure out the logical ordering of the pages. What all the bits in the spare areas meant, which pages were bad, etc. So I never was able to reconstruct a logical view of the disk.

I tried reading datasheets, but they didn't seem to have the full picture. Had I know about this document then I might have had a chance at figuring it out.

IAmLiterallyAB··on Synthetic Memory Protections: An update on ROP mitigations [pdf]
Was lucky enough to watch this in person. One of the best talks of the conference.

The immutable bit together with the syscall bit is going to be a real pain for shell code

IAmLiterallyAB··on Possible reasons for 8-bit bytes
"byte" has become so synonymous with 8 bits that I like to use the term "addressable unit".

I found this LLVM forum thread discussing it interesting: https://groups.google.com/g/llvm-dev/c/s2yuELeQMA8

And related PR https://reviews.llvm.org/D61725

IAmLiterallyAB··on Furby source code (1998)
Busy at the moment, but send me a message at samuelwanderson45 @ gmail . com and I'll try to get back to you
IAmLiterallyAB··on Furby source code (1998)
I'm actually the guy (Sam) from that post! Never got DOOM running on the Furby, but I was able to get a custom version of Pong running, with accelerometer controlled paddles.

The CPUs are definitely weird, and I ended up porting Ghidra to support u'nSP as part of that project. https://github.com/SamuelWAnderson45/sleigh-unsp Reverse engineering a CPU was a wildly fun learning experience; still proud of that project.

IAmLiterallyAB··on Should small Rust structs be passed by-copy or by-borrow? (2019)
Ehh that's not quite what those are. The types being added for C++23 are designed for FFI.

Herb made a proposal for proper in/out parameters for C++ in 2020 https://youtu.be/6lurOCdaj0Y

← PreviousPage 5 of 8Next →