Ai Dreams Forum

Member's Experiments & Projects => AI Programming => Topic started by: Zero on August 12, 2017, 03:47:49 pm

Title: Who's afraid of C ?
Post by: Zero on August 12, 2017, 03:47:49 pm
A nice book about C11 : http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf (http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf)
And a nice DevKit : http://www.smorgasbordet.com/pellesc/ (http://www.smorgasbordet.com/pellesc/)
Title: Re: Who's afraid of C ?
Post by: ivan.moony on August 12, 2017, 03:57:13 pm
I've heard that Rust is a modern version of C++. But I didn't check it out yet.

For C++ I used Qt framework (https://en.wikipedia.org/wiki/Qt_(software)) that comes with a great IDE and a nice bunch of libraries. I think Motorola bought it some time ago.

[Edit] No, it was Nokia that bought it.
Title: Re: Who's afraid of C ?
Post by: Zero on August 12, 2017, 04:23:55 pm
Yeah, Rust obviously. Actually, I try Rust every once in a while... I don't know there's something I don't like in it, can't put the finger on what.

About Qt... well Qt is cute, but I could never get it to work  :P

But come on, C  :D  the Tyler Durden of programming languages, the realm of faster-than-light stupid bugs!!! I gotta get back to it. Final destination. Kaboom.
Title: Re: Who's afraid of C ?
Post by: ivan.moony on August 12, 2017, 05:03:33 pm
the realm of faster-than-light stupid bugs

 ;D I didn't know how to put it into words, but you described it perfectly.

Other than that, I had an itch with declaration separated from definitions. But speed, man... It is worth of pain  :-X

Not to mention ability to mix in an assembler code, if you want something really, really fast. I didn't use that in c, but I remember once when I programmed my Commodore 64 in assembler to cycle the whole cathode tv screen through all 16 colors. The monster was changing colors so fastly that only thin horizontal stripes of changing different colors was running across the screen. in one frame (of 24 tv frames per sec) the color of whole screen changed hundreds of times, so the tv output couldn't keep up with that speed  ^-^
Title: Re: Who's afraid of C ?
Post by: Freddy on August 12, 2017, 06:48:16 pm
We did C at university and since then I have barely used it. I would need to start again now from scratch it has been so long. I was doing just that about ten years back, but ended up doing a lot of web programming and so focused on PHP and javascript.

I do however use C# in Unity a fair bit and really like the language.

I think it's about tools for the job. I don't think that there is much point learning a language for the sake of it. And also programming is largely about training your brain to break things down into processes - then you use some convenient language to express all that. So once you have a couple of languages sorted out in your mind, then others become easier to use and work out.

Often though I will write something in C# and think to myself I wish I had this or that from PHP to use here. Natively I mean.
Title: Re: Who's afraid of C ?
Post by: Zero on August 12, 2017, 10:29:27 pm
It is said that speaking/thinking in another language (I mean a natural language) brings you other ways to understand/compute reality. The movie Arrival (https://www.youtube.com/watch?v=tFMo3UJ4B4g) is about this. I think the same goes for programming languages. For instance, my recent contact with Racket unlocked a specific idea in me, about a network made of functions.

But here, it's different. Going back to C isn't for thinking differently, nor exploring. And I do, like you, need to start again from (almost) scratch, so to speak. It's just... time has come to make. I never really pushed as hard as I can. Now, I'm ready. I begin.

Hey ivan.moony, your faster-than-screen hack is really cool, I'm impressed  O0   Ah good'ol time...
Title: Re: Who's afraid of C ?
Post by: Korrelan on August 13, 2017, 06:18:14 pm
Quote
I never really pushed as hard as I can. Now, I'm ready. I begin.

Someone sounds driven and serious...

 :)
Title: Re: Who's afraid of C ?
Post by: Zero on August 13, 2017, 11:04:50 pm
 :)
Title: Re: Who's afraid of C ?
Post by: Zero on August 21, 2017, 09:30:44 pm
 :tickedoff:  Literally every book about C is stuffed with bugged code samples. Unfkinbelievable.
Title: Re: Who's afraid of C ?
Post by: Zero on August 25, 2017, 09:25:57 pm
https://www.youtube.com/watch?v=orZqmG1TOBI