news.volyx.in

Beating C with one line of Brainfuck (kiwec.net)

567 points by pmontra · 2516 days ago · 86 comments on HN

Article summary

The article appears to be a humorous comparison between the programming languages C and Brainfuck, with Brainfuck supposedly beating C in some aspect. The exact details of the article are not available, but the comments suggest it is a lighthearted and tongue-in-cheek piece. The discussion revolves around the merits and drawbacks of various programming languages, including C, Brainfuck, and others. The conversation also touches on the importance of security, performance, and ease of use in programming languages.

Main themes

  • programming language comparison
  • C vs Brainfuck
  • language security
  • performance optimization
  • esoteric programming languages

What commenters say

  • C is a flawed language that should be replaced with safer alternatives, but its existing tooling and libraries make it difficult to switch.
  • Some programming language features, such as variadic macros, are useful but also potentially hazardous.
  • The choice of programming language depends on the specific needs of the project, and no single language is suitable for all tasks.
  • Zero-length arrays in C are a non-standard feature that can be useful but also lead to undefined behavior.
  • High-level languages can provide safety guarantees and isolate unsafe code, making them a better choice for many applications.
  • In some cases, low-level details such as instruction execution and cache state are crucial, and high-level languages may not provide sufficient control.
  • Benchmarking and performance comparisons between programming languages can be misleading due to caching and other factors.
  • The importance of security in programming languages is often at odds with the need for performance and ease of use.