• November 16, 2018, 05:30:05 AM
  • Welcome, Guest
Advanced search  

News:

Author Topic: Flash is learning C!  (Read 8298 times)

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Flash is learning C!
« on: November 20, 2009, 06:56:29 PM »

Oh Joy!  :'(

I jest!

Started learning C for the benefit (hopefully) of future developments with my beloved team, and to be honest (take note Sokky) it is not as bad as I had thought! I have a small demo of what I have been up to working fine (so far) and have been playing and learning since.
It is hard when you come from an ASM background to work with something that is totally alien in respect of syntax and the hows & whys of what is going on behind the scenes - but not impossible (not by a long chalk).
For a GL Basic, Blitz, etc coder, I cannot see how it would be that hard to slip into?

But, I digress.

I just wanted to make a post (mostly because I am suprising myself) on how hard C coding is. It isn't for C itself. Certainly some elements of C++ scare the fucking tits off me, but C does have a logic that can be fathomed with a bit of appliance.

Oh well, I will keep you all updated on my progress.

2010 could be a wonderful year!

(2012 looks a bit creepy though  :'( )

EDIT: As I learn things that may be important to anyone wanting to learn (in keeping with the flow of this most loved of forums 'he he') I will post my findings here and my failures. It may become an interesting read or a dead topic.. who knows or dares to dream?
« Last Edit: November 20, 2009, 06:59:28 PM by Flash »
Logged
Coding for the love of it!

Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 3119
    • Spitoufs
Re: Flash is learning C!
« Reply #1 on: November 20, 2009, 10:06:34 PM »


Started learning C for the benefit (hopefully) of future developments with my beloved team...

Tear! Oh, man..fuck the biz, we do it for the kids.  ;)

Glad to see you're getting it, I always use to say.."Martha, this boy gets it". And yes, 2010 is gonna be officially 'The Year of the Horace" and as for 2012, what's creepy about that? You talking about that Maya calendar nonsense?
There is an explanation for it...they didn't have enough space on the calendar to carve 2013 so no worries.
So simple.
Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #2 on: November 20, 2009, 10:22:57 PM »

so, you are saying that we have another fucking year!!

Woop!

You are my savior!! :)
Logged
Coding for the love of it!

Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 3119
    • Spitoufs
Re: Flash is learning C!
« Reply #3 on: November 20, 2009, 10:29:19 PM »

Technically speaking, add a year, remove a month, it's all the same really.
Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #4 on: November 20, 2009, 10:32:12 PM »

Ok God!

(Flash types from understair cupboard)
Logged
Coding for the love of it!

Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 3119
    • Spitoufs
Re: Flash is learning C!
« Reply #5 on: November 20, 2009, 10:44:42 PM »

Seriously, you can come out of bunker now and continue C classes upstairs.
I hear some tea is on the way as well.  ;)
Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #6 on: November 20, 2009, 11:18:00 PM »

Phew!

Well.. You can never be too careful!
Logged
Coding for the love of it!

Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 3119
    • Spitoufs
Re: Flash is learning C!
« Reply #7 on: November 20, 2009, 11:24:19 PM »

.. who knows or dares to dream?

 :) You really crack me up sometimes, buddy. I can almost see a dude with stache in a stadium,  yellow pants and Superman tee singing that line.  ;D
Logged

Sokurah

  • RBP Member
  • Cray-1 Super Computer
  • *****
  • Offline Offline
  • Posts: 722
    • Tardis Remakes
Re: Flash is learning C!
« Reply #8 on: November 20, 2009, 11:57:18 PM »

Started learning C and to be honest (take note Sokky) it is not as bad as I had thought!
For a GL Basic, Blitz, etc coder, I cannot see how it would be that hard to slip into?

You're probably right. All it takes is a solid effort and not too many distractions and then I'll come automatically.
...if I can teach myself Z80 I should be able to learn C too. And it's a lot easier to find reference these days.

Just have to finish everything else first.  :-[
Logged

Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 3119
    • Spitoufs
Re: Flash is learning C!
« Reply #9 on: November 21, 2009, 12:01:10 AM »

...solid effort and not too many distractions and then I'll come automatically.

 :)
Logged

Sokurah

  • RBP Member
  • Cray-1 Super Computer
  • *****
  • Offline Offline
  • Posts: 722
    • Tardis Remakes
Re: Flash is learning C!
« Reply #10 on: November 21, 2009, 12:06:30 AM »

Whoops, FFS (Fat Finger Syndrome)

I meant to say "then it'll come automatically" but I'm sure you know that.

...because coming doesn't happen automatically - that takes a bit of work. :P
Logged

Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 3119
    • Spitoufs
Re: Flash is learning C!
« Reply #11 on: November 21, 2009, 12:14:28 AM »

Whoops, FFS (Fat Finger Syndrome)

I meant to say "then it'll come automatically" but I'm sure you know that.

...because coming doesn't happen automatically - that takes a bit of work. :P

Indeed, it's all in the wrist.  ;)
Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #12 on: December 03, 2009, 12:09:43 AM »

OK, I am still learning C!

So far, I have learnt that it is called C because the language it is based on was called B.

See, Who said you can't teach me anything? :)
Logged
Coding for the love of it!

sverx

  • RBP Member
  • IBM PC
  • *****
  • Offline Offline
  • Posts: 510
  • "Ow!!! What's that ?!?!"
    • My NDS folder
Re: Flash is learning C!
« Reply #13 on: December 03, 2009, 07:36:12 AM »

So far, I have learnt that it is called C because the language it is based on was called B.

Btw, do you know why it was called 'B' ?  ;)

Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #14 on: December 03, 2009, 07:38:05 AM »

Perhaps there was a language called 'A' LOL
Logged
Coding for the love of it!

sverx

  • RBP Member
  • IBM PC
  • *****
  • Offline Offline
  • Posts: 510
  • "Ow!!! What's that ?!?!"
    • My NDS folder
Re: Flash is learning C!
« Reply #15 on: December 03, 2009, 01:22:28 PM »

Perhaps there was a language called 'A' LOL

Well, actually there was, but it seems it has no relation with 'B' and 'C'. This might be interesting: http://people.ku.edu/~nkinners/LangList/Extras/search.htm

Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #16 on: December 03, 2009, 02:17:09 PM »

Well, following that list, it looks like Algol was the first in the line that led to C

(A)lgol
B
C

Well, it does follow perhaps?
Logged
Coding for the love of it!

sverx

  • RBP Member
  • IBM PC
  • *****
  • Offline Offline
  • Posts: 510
  • "Ow!!! What's that ?!?!"
    • My NDS folder
Re: Flash is learning C!
« Reply #17 on: December 04, 2009, 07:19:59 AM »

well... I didn't find any evidence (lol) of connection between Algol and B... did you?

Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #18 on: December 04, 2009, 07:35:02 AM »

Sort of,

Click 'B[1]' "B was the predecessor of C, Derived from BCPL" >

'BCPL' "A British systems language, a descendant of CPL[1] and the inspiration for B[1] and C." >

'CPL[1]' which states,
"A very complex language, syntactically based on ALGOL 60, with a pure functional subset. Provides the ..where.. form of local definitions. It is a strongly typed language, but it has a "general" type enabling a weak form of polymorphism. Functions may be defined as either normal or applicative order. Typed array and polymorphic list structures. List selection is through structure matching. Partially implemented on the Titan (Atlas 2) computer at Cambridge. It led to the much simpler BCPL. " >

'ALGOL 60' "In an era dominated by IBM computers and FORTRAN programming, ALGOL 60 offered a portable alternative. It was small and elegant, the first language to be described in BNF. It was block-structured ("begin...end"), nested, and recursive.

So! perhaps that is where the 'A' comes from
« Last Edit: December 04, 2009, 07:37:34 AM by Flash »
Logged
Coding for the love of it!

sverx

  • RBP Member
  • IBM PC
  • *****
  • Offline Offline
  • Posts: 510
  • "Ow!!! What's that ?!?!"
    • My NDS folder
Re: Flash is learning C!
« Reply #19 on: December 04, 2009, 09:40:44 AM »

Wow! You know, HK is writing a game that might interest you ;)

Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #20 on: September 22, 2010, 10:36:52 PM »

Flash is still learning C++

I now know what a ; does...

Next is the == compare...

Phew!
 :)  ;)
Logged
Coding for the love of it!

headkaze

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 7833
Re: Flash is learning C!
« Reply #21 on: September 23, 2010, 05:51:51 PM »

Comon Flash, don't be so modest ;)
Logged

spacefractal

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
  • Offline Offline
  • Posts: 4137
Re: Flash is learning C!
« Reply #22 on: September 23, 2010, 08:12:13 PM »

I mean I saw about half years ago some code about your secret game you have learned abit more about it, hehe  :).

Now Apple have axed any code restrictions (apart now code download from net), we should convert the whole game to Assembly, but I think its to late now :-D
Logged
The Musician for the RetroBytes Portal Projects.

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Flash is learning C!
« Reply #23 on: September 23, 2010, 08:14:40 PM »

Bugger!

I could not remember ASM now, my mind is full of squiggly brackets LOL
Logged
Coding for the love of it!