There Is Life Before Main in Rust
11–20 of 28 posts
Re: There Is Life Before Main in Rust
#12Re: There Is Life Before Main in Rust
#13Re: There Is Life Before Main in Rust
#14> This post is 100% human-written. Claude was used for feedback and to assist with the linker symbol diagram. Cursor was used for feedback and to ensure examples were compilable. Love this, I hope every blog have the same disclaimer about how AI is used.
If Claude gave feedback then it’s not really 100% human written is it?
Further, can anything be "100% human writt even if it uses pen and paper? No of course not! Unless it is created by pricking a finger and put on human vellum, it's only partially human written.
Seriously though - if you want to do stupid purity test games, at least be properly pure about it. This half-assed nonsense is just trite.
Re: There Is Life Before Main in Rust
#15Earlier quoted context omitted.
If Claude gave feedback then it’s not really 100% human written is it?
If you merely get feedback from a human, are they now a co-author?
Re: There Is Life Before Main in Rust
#16> This post is 100% human-written. Claude was used for feedback and to assist with the linker symbol diagram. Cursor was used for feedback and to ensure examples were compilable. Love this, I hope every blog have the same disclaimer about how AI is used.
If Claude gave feedback then it’s not really 100% human written is it?
Re: There Is Life Before Main in Rust
#17Earlier quoted context omitted.
If you merely get feedback from a human, are they now a co-author?
If the feedback or involvement is substantive it used to be common to mention this, even if just in a prologue, epilogue, or footnote. You still see this is some academic writing and some journalism, where authors mention with whom they consulted. Books and other literature have tended to dissociate people from sources of knowledge, and the Internet furthered the dissociation. But honest writing should disclose all t…
Re: There Is Life Before Main in Rust
#18The general lesson of these things is main is not that special and it pays to understand how your program actually starts. This has little/nothing to do with Rust or other language tools. On Linux, given a static ELF program, the kernel returns to the IP given by e_entry, which can proceed to do anything. If the program is dynamic (has a .interp) then it loads the interpreter and returns to its e_entry instead. The i…
* Which you should think very carefully before concluding is the case, as it's responsible for rather a lot of bugs in C++. I think in Rust it is mostly used for registry-pattern type stuff since the const system can't currently(?) handle that.
Re: There Is Life Before Main in Rust
#19> This post is 100% human-written. Claude was used for feedback and to assist with the linker symbol diagram. Cursor was used for feedback and to ensure examples were compilable. Love this, I hope every blog have the same disclaimer about how AI is used.
Re: There Is Life Before Main in Rust
#20Author here, happy to answer any questions. I've been working on building some higher-level abstractions on link sections (specifically, link-time optimized collections like maps (1) and sorted slices (2)) and wanted to share the hard-fought knowledge from the last couple of months. There's a decent amount of knowledge around pre-main work in Rust, but I think this is one of the first attempts to walk through mutable…