Live data from Hacker News

The Art of 64-bit Assembly

nostarch.com

121–122 of 122 posts

Re: The Art of 64-bit Assembly

#121
post #6

Is anyone still writing assembly in the age of LLMs? Asking seriously because most assembly is just doing one very simple thing very fast and because it's so simple conceptually, an LLM can easily code it without errors.

I write all my code by hand for one simple reason: LLMs suck at programming, and I am both better and faster than they are. When that changes (not bloody likely), I'll consider changing my approach. Until then, I'm going to be over here kicking ass the way I've been doing for years.

What do you think about Linus Torvalds' recent opinion about LLMs?

  There are other questions around AI (like what the
  economy of it will actually look like in the end),
  but "is it useful" is no longer one of those
  questions. Anybody who doubts that clearly hasn't
  actually used it.
  
  And no, AI isn't perfect. But Christ, anybody who
  points to the problems at AI had better be looking
  in the mirror and pointing at themselves at the
  same time.
https://lore.kernel.org/all/CAHk-%3Dwi4zC%2BZe8e%2Bp3tMv8TtG...

Re: The Art of 64-bit Assembly

#122
post #72

Interesting to see that people are still spending much time on assembly languages :) I've had a lot of fun with it in recent years as well. (Shameless plug: I've written a few on LLVM integrated assembler regarding better fragments and improving expressions and relocations). When comparing GNU Assembler and MASM, GAS is missing many features: while loop, string processing (.e.g strlen) > page 3: "It’s important to un…

The GNU assembler is not intended to be used by humans, but its goal is to assemble the output of compilers. On Linux, the "standard" assembler for humans is "nasm", though there are also others. For anyone writing a non-negligible amount of code in an assembly language it is essential to develop or get from elsewhere a comprehensive library of macros, for avoiding to write huge amounts of boilerplate.

That is true of all UNIX assemblers, they never had the "used by humans" culture, rather being part of a C compiler pipeline approach.

At least since UNIX v4.

All good Assemblers have come from Amiga, Atari, PC world.

Post reply on HN