4 ms·
Serious question: Is there any real difference between the title and just "Programming PIC32 Microcontroller"? Would almost any language you can compile to LLVM
by ncmncm 5y ago
Serious question: Is there any real difference between the title and just "Programming PIC32 Microcontroller"? Would almost any language you can compile to LLVM IR serve about as well, modulo trivia? Is the focus on the PIC32, or on Rust?
The site likes to strip off leading "Why ...", "How ... ", and "9 ways to ...", as clickbait. Isn't "...in Rust" often just a peculiarly HNish variety?
- pjmlp 5y agoYes there is, up to this article most people would be fooled to think PIC32 programming was only possible in either C or Assembly, most likely they wouldn't be even aware that MikroElektronika has been selling Basic, Pascal and C compilers targeting the PIC32 for years. So "...in Rust" makes those people aware that Rust now is also an option, alongside Assembly, Basic, Pascal and C.
- ncmncm 5y agoAnd C++, D, Nim, Zig, and several others. Does it really mean "... with LLVM"? Maybe say that.
- pjmlp 5y agoAs you certainly are aware, just with LLVM doesn't mean the language actually works even if LLVM can emit PIC32 machine code, but you have to make your point.
- ncmncm 5y agoThere are lots of LLVM-targeting languages that need a runtime environment hard to provide in a PIC32. So, maybe Swift, or Kotlin, or Julia is not a good candidate. (I don't know.) Still, plenty of languages you can compile to LLVM IR do work exactly as well as C, or as Rust. We all know that anything with Rust in the title gets a huge signal boost on HN, far beyond its objective relevance, which defines clickbait. So the question is really, what should be done to these titles to make them not clickbait? My proposal was "with LLVM", for programming microcontrollers. If you have a better idea, say.
- pjmlp 5y agoMy idea is simple, don't get upset with fashion titles that get changed every couple of years. It has been Ruby, Elixir, Erlang, Clojure, Go, and now Rust, probably it will be Zig after it gets 1.0, or something else even more fancy. Besides, > Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize.
- ncmncm 5y agoAnd around we go again. The "in Rust" part of the title is what is identified as linkbait.