1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How many programming languages do you know?

Discussion in 'Programming' started by SEOsocialFollowers, Oct 22, 2012.

  1. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #41
    You ever use CC65 targeting the 6502? WinAVR? The crappy Arduino wrapper for GCC? Give it a try some time... processor targets can wildly change the result.

    It's like the difference between "while {}" and "do {} while" where you get the extra check at the start...

    Or just that in a C++ compiler you can declare the 0 with the variable declaration at the top, since there are no inline-declarations... one less thing to do. WHILE often needs to check FIRST, and on 8 bit targets they often use a jmp back to the beginning to run the loop again to jump.

    Just to show you what I mean, in CC65 this:

    void main() {
    	unsigned char t;
    	for (t=0; t<6; t++) {}
    }
    Code (markup):
    Compiles to:

    ;
    ; File generated by cc65 v 2.13.3
    ;
    	.fopt		compiler,"cc65 v 2.13.3"
    	.setcpu		"6502"
    	.smart		on
    	.autoimport	on
    	.case		on
    	.debuginfo	off
    	.importzp	sp, sreg, regsave, regbank, tmp1, ptr1, ptr2
    	.macpack	longbranch
    	.forceimport	__STARTUP__
    	.export		_main
    
    ; ---------------------------------------------------------------
    ; void __near__ main (void)
    ; ---------------------------------------------------------------
    
    .segment	"CODE"
    
    .proc	_main: near
    
    .segment	"CODE"
    
    	jsr     decsp1
    	ldx     #$00
    	lda     #$00
    	ldy     #$00
    	sta     (sp),y
    L0003:	ldy     #$00
    	ldx     #$00
    	lda     (sp),y
    	cmp     #$06
    	jsr     boolult
    	jne     L0005
    	jmp     L0004
    L0005:	ldy     #$00
    	ldx     #$00
    	lda     (sp),y
    	pha
    	clc
    	adc     #$01
    	ldy     #$00
    	sta     (sp),y
    	pla
    	jmp     L0003
    L0004:	jsr     incsp1
    	rts
    
    .endproc
    
    
    Code (markup):
    While this:

    void main() {
    	unsigned char t = 0;
    	do {} while (++t < 6);
    }
    Code (markup):
    Compiles to this:

    ;
    ; File generated by cc65 v 2.13.3
    ;
    	.fopt		compiler,"cc65 v 2.13.3"
    	.setcpu		"6502"
    	.smart		on
    	.autoimport	on
    	.case		on
    	.debuginfo	off
    	.importzp	sp, sreg, regsave, regbank, tmp1, ptr1, ptr2
    	.macpack	longbranch
    	.forceimport	__STARTUP__
    	.export		_main
    
    ; ---------------------------------------------------------------
    ; void __near__ main (void)
    ; ---------------------------------------------------------------
    
    .segment	"CODE"
    
    .proc	_main: near
    
    .segment	"CODE"
    
    	lda     #$00
    	jsr     pusha
    L0004:	ldy     #$00
    	ldx     #$00
    	clc
    	lda     #$01
    	adc     (sp),y
    	sta     (sp),y
    	cmp     #$06
    	jsr     boolult
    	jne     L0004
    	jsr     incsp1
    	rts
    
    .endproc
    Code (markup):
    Common problem with a LOT of compilers. Not as true as it used to be in GCC (as krakjoe already pointed out), at some point they FINALLY decided to fix it (sick of producing the slowest code of any C++ compiler maybe?) but it still persists in a LOT of C and C++ compilers -- particularly on 8 and 16 bit targets.

    Get a load of the MESS of compares and jumps in the first one.
     
    deathshadow, Jul 30, 2013 IP
  2. xmax555

    xmax555 Greenhorn

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #42
    I see, never been able to compare such a variety of compilers...
     
    xmax555, Jul 30, 2013 IP
  3. HostPlanz

    HostPlanz Well-Known Member

    Messages:
    449
    Likes Received:
    34
    Best Answers:
    4
    Trophy Points:
    130
    #43
    To answer the OP's question - ALL
     
    HostPlanz, Jul 30, 2013 IP
  4. boom bap

    boom bap Active Member

    Messages:
    48
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    70
    #44
    The most important thing in programming is not quantity but quality.
     
    boom bap, Jul 31, 2013 IP
    Wincrew likes this.
  5. aliyahmichle

    aliyahmichle Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #45
    I know only ASP.Net and PHP.
     
    aliyahmichle, Aug 8, 2013 IP
  6. scott_r

    scott_r Greenhorn

    Messages:
    42
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #46
    Comfortable in around a dozen languages. If I have a choice I'll work in Python. I'd like to get proficient in a functional language.
     
    scott_r, Aug 12, 2013 IP
  7. facebook

    facebook Well-Known Member

    Messages:
    387
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    140
    Digital Goods:
    1
    #47
    php, css, android, javascript, html, phython, actionscript, c, c++
     
    facebook, Aug 12, 2013 IP
  8. Designer6

    Designer6 Greenhorn

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    13
    #48
    Java and assembly, I know these 2 very well.I also know a lot of andriod development which is xml with java, but it has it's own commands. I have started some web programming too but I am still a beginner (php, javascript). I do feel that learning programming never ends and you really have to do a lot of practice.I hope to continue learning other stuff too.
     
    Designer6, Aug 15, 2013 IP
  9. hostswinds

    hostswinds Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #49
    I am pretty confident in JS, HTML5, CSS3 (count those if you wish), PHP, Ruby/RoR. I've touched on Python, and I plan on teaching myself C++ and Java soon.
     
    hostswinds, Aug 19, 2013 IP