|
I was in total agreement until you wrote:
honey the codewitch wrote: a perfectly good language (C) Neither perfect nor good, IMO.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
Well I was being generous. I prefer C++ myself.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I can respect that. In my current and previous roles in the financial and music industries (respectively), both immersed in the Microsoft world with no need for hardware-level programming, I prefer C#. But if I had the opportunity to do hardware-level stuff again my preference would probably shift to Assembly. I love speaking CPU.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
I like the challenge of developing highly usable type safe interfaces that resolve to really efficient assembly like you'd have typed by hand.
A recent endeavor had me bitbanging the SPI hardware registers on an ESP32 MCU to get faster performance. It was all microsecond sensitive, requiring me to have total control over what got inlined and not. I had to use constexpr everywhere to forward as much of the configuration, like pin assignments off to compile time evaluations.
It replaced a nasty set of C preprocessor macros that accomplished the same. Byte for byte it generates the same assembly instructions.
The guts of this file are not clean, but what it presents to the user of this header *is*
htcw_tft_io/tft_spi.hpp at master · codewitch-honey-crisis/htcw_tft_io · GitHub[^]
To err is human. Fortune favors the monsters.
|
|
|
|
|
That's some sweet code there, and a great use-case for C. But gawd how I hate pointers.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
I'm a weirdo, but I feel like i have a knack for pointers. they don't intimidate me at all and i almost never cause AVs with them in C++. I'm much more likely to make bad things happen like that when I'm P/Invoking from C# just because i have less of an immediate idea of what marshalling is happening.
To err is human. Fortune favors the monsters.
|
|
|
|
|
It might be that Rust is designed to solve different problems than the ones you need to solve? Though it's okay to just flat out dislike it as well.
If you add up the billions of dollars of damage caused by good C programmers with decades of experience making mistakes that Rust would have disallowed - things like Heartbleed - you can see the motivation to use a language like Rust. Like it or not, year in and year old, a huge percentage of bugs and vulnerabilities in software are caused by memory safety issues.
It's certainly not the best choice for every problem. I can't say I *love* writing Rust. But I think it's a good choice for you need C-like performance but can't afford vulnerabilities. Say you're implementing something like OpenSSL - I'd argue that if you're starting a project like that in 2022, you'd be crazy to pick C (or even C++) over Rust. I suppose you could pick something like MISRA C or even Ada as well, but I don't think either of those would be more joyful to write than Rust.
For certain classes of problems, the only safe assumption you should make is that you do need training wheels because no matter how much experience you have or how good you are, eventually you will make a costly mistake. For most other applications, Rust probably isn't the best choice.
My personal position on it is that I never quite enjoy writing Rust as much as other language; I never seem to get into that state of seamless flow I get into in other languages. But I also think it fills a niche that isn't particularly well-served by other languages. I think that Rust might not be the #1 tool for you or me, but I also think our industry as a whole needs it (or something similar) pretty desperately.
|
|
|
|
|
This all makes a lot of sense to me, and I think it even goes to explain what I don't like about it in the end - it's not "flowy" enough.
I'd agree that our industry needs something like Rust, and maybe Rust is it. But I don't have to like it!
To err is human. Fortune favors the monsters.
|
|
|
|
|
Design in a studio tries for a role (9)
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
modified 22-Mar-22 6:32am.
|
|
|
|
|
Design (anag)
in a studio INASTUDIO
tries for a role
AUDITIONS
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Can't you wait for a full 10 minutes at least?
Tomorrow all yours!!
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
And there was me waiting the hour
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I haven't done one this week!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Nice clue Peter
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Why, thank you!
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Wordle 276 4/6
⬛⬛⬛🟩⬛
⬛⬛🟩🟩⬛
⬛🟩🟩🟩🟨
🟩🟩🟩🟩🟩
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
6 for me today thought I was going to lose
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I think I might have as well, if I'd tried a different second word - that made the solution easy for me.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Same here
⬜⬜⬜⬜⬜
⬜🟨🟨⬜🟨
🟩⬜🟩⬜🟨
🟩🟩🟩⬜⬜
🟩🟩🟩⬜⬜
🟩🟩🟩🟩🟩
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Is it your CCC today ?
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Yep! I was going to "Oi!" him in five minutes ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I have 2 minutes to go
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Wordle 276 3/6
⬜⬜⬜🟩⬜
⬜🟩⬜🟩🟩
🟩🟩🟩🟩🟩
My brain worked this morning unlike yesterday!
|
|
|
|
|
Wordle 276 3/6
⬜⬜⬜🟨🟨
🟩🟨🟩⬜⬜
🟩🟩🟩🟩🟩 I was lucky with the second guess - it gave me four letters, despite not testing one what one of them was! And the fifth was obvious from that.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
⬛⬛⬛🟩⬛
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|