Flash is learning C!

flash · 14032

Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
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 »

Coding for the love of it!


Offline Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 3119
    • Spitoufs
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.



Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
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!! :)

Coding for the love of it!


Offline Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 3119
    • Spitoufs
Reply #3 on: November 20, 2009, 10:29:19 pm
Technically speaking, add a year, remove a month, it's all the same really.



Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
Reply #4 on: November 20, 2009, 10:32:12 pm
Ok God!

(Flash types from understair cupboard)

Coding for the love of it!


Offline Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 3119
    • Spitoufs
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.  ;)



Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
Reply #6 on: November 20, 2009, 11:18:00 pm
Phew!

Well.. You can never be too careful!

Coding for the love of it!


Offline Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 3119
    • Spitoufs
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



Offline Sokurah

  • RBP Member
  • Cray-1 Super Computer
  • *****
    • Posts: 724
    • Tardis Remakes
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.  :-[



Offline Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 3119
    • Spitoufs
Reply #9 on: November 21, 2009, 12:01:10 am
...solid effort and not too many distractions and then I'll come automatically.

 :)



Offline Sokurah

  • RBP Member
  • Cray-1 Super Computer
  • *****
    • Posts: 724
    • Tardis Remakes
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



Offline Lobo

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 3119
    • Spitoufs
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.  ;)



Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
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? :)

Coding for the love of it!


Offline sverx

  • RBP Member
  • IBM PC
  • *****
    • Posts: 516
  • "Ow!!! What's that ?!?!"
    • My NDS folder
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' ?  ;)




Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
Reply #14 on: December 03, 2009, 07:38:05 am
Perhaps there was a language called 'A' LOL

Coding for the love of it!


Offline sverx

  • RBP Member
  • IBM PC
  • *****
    • Posts: 516
  • "Ow!!! What's that ?!?!"
    • My NDS folder
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




Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
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?

Coding for the love of it!


Offline sverx

  • RBP Member
  • IBM PC
  • *****
    • Posts: 516
  • "Ow!!! What's that ?!?!"
    • My NDS folder
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?




Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
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 »

Coding for the love of it!


Offline sverx

  • RBP Member
  • IBM PC
  • *****
    • Posts: 516
  • "Ow!!! What's that ?!?!"
    • My NDS folder
Reply #19 on: December 04, 2009, 09:40:44 am
Wow! You know, HK is writing a game that might interest you ;)




Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
Reply #20 on: September 22, 2010, 11:36:52 pm
Flash is still learning C++

I now know what a ; does...

Next is the == compare...

Phew!
 :)  ;)

Coding for the love of it!


Offline headkaze

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 7838
Reply #21 on: September 23, 2010, 06:51:51 pm
Comon Flash, don't be so modest ;)



Offline spacefractal

  • RBP Team Member
  • Blue Gene Super Computer
  • *****
    • Posts: 4138
Reply #22 on: September 23, 2010, 09: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

The Musician for the RetroBytes Portal Projects.


Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
Reply #23 on: September 23, 2010, 09:14:40 pm
Bugger!

I could not remember ASM now, my mind is full of squiggly brackets LOL

Coding for the love of it!