Main.ComparisonProcessing History

Hide minor edits - Show changes to output

August 16, 2009, at 12:04 PM by David A. Mellis -
Changed lines 1-37 from:
!!Arduino/Processing Language Comparison

The Arduino language (based on Wiring) is implemented in C, and therefore has some differences from the Processing language, which is based on Java.

!!!Arrays

(:table width=75% cellspacing=0 cellpadding=5:)
(:cellnr width=50% bgcolor=#999999:) ''Arduino''
(:cell width=50% bgcolor=#CCCCCC:) ''Processing''
(:cellnr:) int bar[8]; [[<<]] bar[0] = 1;
(:cell:) int[] bar = new int[8]; [[<<]] bar[0] = 1;
(:cellnr bgcolor=#999999:) int foo[] = { 0, 1, 2 };
(:cell bgcolor=#CCCCCC:) int foo[] = { 0, 1, 2 }; [[<<]] ''or'' [[<<]] int[] foo = { 0, 1, 2 };
(:tableend:)

!!!Loops

(:table width=75% cellspacing=0 cellpadding=5:)
(:cellnr width=50% bgcolor=#999999:) ''Arduino''
(:cell width=50% bgcolor=#CCCCCC:) ''Processing''
(:cellnr:) int i; [[<<]] for (i = 0; i < 5; i++) { ... }
(:cell:) for (int i = 0; i < 5; i++) { ... }
(:tableend:)

!!!Printing

(:table width=75% cellspacing=0 cellpadding=5:)
(:cellnr width=50% bgcolor=#999999:) ''Arduino''
(:cell width=50% bgcolor=#CCCCCC:) ''Processing''
(:cellnr:) printString("hello world"); [[<<]] printNewline();
(:cell:) println("hello world");
(:cellnr bgcolor=#999999:) int i = 5; [[<<]] printInteger(i); [[<<]] printNewline();
(:cell bgcolor=#CCCCCC:) int i = 5; [[<<]] println(i);
(:cellnr:) int i = 5; [[<<]] printString("i = "); [[<<]] printInteger(i); [[<<]] printNewline();
(:cell:) int i = 5; [[<<]] println("i = " + i);
(:tableend:)
to:
(:redirect Reference/Comparison :)
January 20, 2006, at 05:42 PM by 85.18.81.162 -
Changed lines 1-4 from:
!!Wiring/Processing Language Comparison

The Wiring language (used by Arduino) is based on C, and therefore has some differences from the Processing language, which is based on Java.
to:
!!Arduino/Processing Language Comparison

The Arduino language (based on Wiring) is implemented in C, and therefore has some differences from the Processing language, which is based on Java.
Changed line 8 from:
(:cellnr width=50% bgcolor=#999999:) ''Wiring''
to:
(:cellnr width=50% bgcolor=#999999:) ''Arduino''
Changed line 19 from:
(:cellnr width=50% bgcolor=#999999:) ''Wiring''
to:
(:cellnr width=50% bgcolor=#999999:) ''Arduino''
Changed line 28 from:
(:cellnr width=50% bgcolor=#999999:) ''Wiring''
to:
(:cellnr width=50% bgcolor=#999999:) ''Arduino''
Changed line 30 from:
(:cellnr:) print("hello world\n");
to:
(:cellnr:) printString("hello world"); [[<<]] printNewline();
Changed line 32 from:
(:cellnr bgcolor=#999999:) int i = 5; [[<<]] print("%d\n", i);
to:
(:cellnr bgcolor=#999999:) int i = 5; [[<<]] printInteger(i); [[<<]] printNewline();
Changed line 34 from:
(:cellnr:) int i = 5; [[<<]] print("i = %d\n", i);
to:
(:cellnr:) int i = 5; [[<<]] printString("i = "); [[<<]] printInteger(i); [[<<]] printNewline();
September 10, 2005, at 04:03 PM by 81.75.243.242 -
Changed lines 32-35 from:
(:cellnr bgcolor=#999999:) int i = 5; [[<<]] print("%d", i);
(:cell bgcolor=#CCCCCC:) int i = 5; [[<<]] print(i);
(:cellnr:) int i = 5; [[<<]] print("i = %d", i);
(:cell:) int i = 5; [[<<]] print("i = " + i);
to:
(:cellnr bgcolor=#999999:) int i = 5; [[<<]] print("%d\n", i);
(:cell bgcolor=#CCCCCC:) int i = 5; [[<<]] println(i);
(:cellnr:) int i = 5; [[<<]] print("i = %d\n", i);
(:cell:) int i = 5; [[<<]] println("i = " + i);
September 10, 2005, at 04:01 PM by 81.75.243.242 -
Changed line 11 from:
(:cell:) int[8] bar; [[<<]] bar[0] = 1;
to:
(:cell:) int[] bar = new int[8]; [[<<]] bar[0] = 1;
September 10, 2005, at 03:43 PM by 81.75.243.242 -
Changed line 35 from:
(:cell:) int i = 5; [[<<]] print("i = " + 5);
to:
(:cell:) int i = 5; [[<<]] print("i = " + i);
September 10, 2005, at 03:42 PM by 81.75.243.242 -
Changed lines 8-9 from:
(:cellnr bgcolor=#999999:) ''Wiring''
(:cell bgcolor=#CCCCCC:) ''Processing''
to:
(:cellnr width=50% bgcolor=#999999:) ''Wiring''
(:cell width=50% bgcolor=#CCCCCC:) ''Processing''
Changed lines 19-20 from:
(:cellnr bgcolor=#999999:) ''Wiring''
(:cell bgcolor=#CCCCCC:) ''Processing''
to:
(:cellnr width=50% bgcolor=#999999:) ''Wiring''
(:cell width=50% bgcolor=#CCCCCC:) ''Processing''
Added lines 24-37:

!!!Printing

(:table width=75% cellspacing=0 cellpadding=5:)
(:cellnr width=50% bgcolor=#999999:) ''Wiring''
(:cell width=50% bgcolor=#CCCCCC:) ''Processing''
(:cellnr:) print("hello world\n");
(:cell:) println("hello world");
(:cellnr bgcolor=#999999:) int i = 5; [[<<]] print("%d", i);
(:cell bgcolor=#CCCCCC:) int i = 5; [[<<]] print(i);
(:cellnr:) int i = 5; [[<<]] print("i = %d", i);
(:cell:) int i = 5; [[<<]] print("i = " + 5);
(:tableend:)
September 10, 2005, at 03:10 PM by 81.75.243.242 -
Changed lines 21-22 from:
(:cellnr:) int i; [[<<]] for (i = 0; i < 5; i++) { f(i); }
(:cell:) for (int i = 0; i < 5; i++) { f(i); }
to:
(:cellnr:) int i; [[<<]] for (i = 0; i < 5; i++) { ... }
(:cell:) for (int i = 0; i < 5; i++) { ... }
September 10, 2005, at 03:09 PM by 81.75.243.242 -
Changed line 13 from:
(:cell bgcolor=#CCCCCC:) int foo[] = { 0, 1, 2 }; [[<<]] int[] foo = { 0, 1, 2 };
to:
(:cell bgcolor=#CCCCCC:) int foo[] = { 0, 1, 2 }; [[<<]] ''or'' [[<<]] int[] foo = { 0, 1, 2 };
Changed lines 16-17 from:
'''Loops'''
to:
!!!Loops
September 10, 2005, at 03:08 PM by 81.75.243.242 -
Changed line 7 from:
(:table cellspacing=0 cellpadding=5:)
to:
(:table width=75% cellspacing=0 cellpadding=5:)
Changed line 17 from:
(:table cellspacing=0 cellpadding=5:)
to:
(:table width=75% cellspacing=0 cellpadding=5:)
September 10, 2005, at 03:07 PM by 81.75.243.242 -
Changed lines 17-18 from:
||''Wiring''||''Processing''||
||int i; [[<<]] for (i = 0; i < 5; i++) [[<<]] { [[<<]] [= =] f(i); [[<<]] }||for (int i = 0; i < 5; i++) [[<<]] { [[<<]] f(i); [[<<]] }||
to:
(:table cellspacing=0 cellpadding=5:)
(:cellnr bgcolor=#999999:) ''Wiring''
(:cell bgcolor=#CCCCCC:) ''Processing''
(:cellnr:) int i; [[<<]] for (i = 0; i < 5; i++) { f(i); }
(:cell:) for (int i = 0; i < 5; i++) { f(i); }
(:tableend:)
September 10, 2005, at 03:04 PM by 81.75.243.242 -
Changed lines 5-6 from:
'''Arrays'''
to:
!!!Arrays
Changed lines 10-15 from:
(:cellnr:) int foo[] = { 0, 1, 2 };
(:cell:) int foo[] = { 0, 1, 2 }; [[<<]] int[] foo = { 0, 1, 2 };
(:cellnr bgcolor=#999999:) foo[0] = 5;
(:cell bgcolor=#CCCCCC:) foo[0] = 5;
(:cellnr bgcolor=#999999:) int bar[8];
(:cell bgcolor=#CCCCCC:) int[8] bar;
to:
(:cellnr:) int bar[8]; [[<<]] bar[0] = 1;
(:cell:) int[8] bar; [[<<]] bar[0] = 1;
(:cellnr bgcolor=#999999:) int foo[] = { 0, 1, 2 };
(:cell bgcolor=#CCCCCC:) int foo[] = { 0, 1, 2 }; [[<<]] int[] foo = { 0, 1, 2 };
September 10, 2005, at 03:02 PM by 81.75.243.242 -
Changed line 6 from:
(:table:)
to:
(:table cellspacing=0 cellpadding=5:)
Added lines 11-14:
(:cellnr bgcolor=#999999:) foo[0] = 5;
(:cell bgcolor=#CCCCCC:) foo[0] = 5;
(:cellnr bgcolor=#999999:) int bar[8];
(:cell bgcolor=#CCCCCC:) int[8] bar;
Added line 17:
'''Loops'''
Deleted lines 18-23:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 }; [[<<]] int[] foo = { 0, 1, 2 };||
||foo[0] = 5;||foo[0] = 5;||
||int bar[8];||int[8] bar;||

'''Loops'''
||''Wiring''||''Processing''||
September 10, 2005, at 03:01 PM by 81.75.243.242 -
Changed lines 7-8 from:
(:cellnr (bgcolor="#999999"):) ''Wiring''
(:cell (bgcolor="#CCCCCC"):) ''Processing''
to:
(:cellnr bgcolor=#999999:) ''Wiring''
(:cell bgcolor=#CCCCCC:) ''Processing''
September 10, 2005, at 03:00 PM by 81.75.243.242 -
Added lines 6-12:
(:table:)
(:cellnr (bgcolor="#999999"):) ''Wiring''
(:cell (bgcolor="#CCCCCC"):) ''Processing''
(:cellnr:) int foo[] = { 0, 1, 2 };
(:cell:) int foo[] = { 0, 1, 2 }; [[<<]] int[] foo = { 0, 1, 2 };
(:tableend:)
September 10, 2005, at 02:55 PM by 81.75.243.242 -
Deleted line 5:
Changed line 13 from:
||int i; \\ for (i = 0; i < 5; i++) \\ { \\ [= =] f(i); \\ }||for (int i = 0; i < 5; i++) \\ { \\ f(i); \\ }
to:
||int i; [[<<]] for (i = 0; i < 5; i++) [[<<]] { [[<<]] [= =] f(i); [[<<]] }||for (int i = 0; i < 5; i++) [[<<]] { [[<<]] f(i); [[<<]] }||
September 10, 2005, at 02:53 PM by 81.75.243.242 -
Changed line 8 from:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 }; \\ int[] foo = { 0, 1, 2 };||
to:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 }; [[<<]] int[] foo = { 0, 1, 2 };||
Changed line 14 from:
||int i; \\ for (i = 0; i < 5; i++) \\ { \\ [= =] f(i); \\ }||for (int i = 0; i < 5; i++) \\ { \\ [= =] f(i); \\ }
to:
||int i; \\ for (i = 0; i < 5; i++) \\ { \\ [= =] f(i); \\ }||for (int i = 0; i < 5; i++) \\ { \\ f(i); \\ }
September 10, 2005, at 02:53 PM by 81.75.243.242 -
Changed line 8 from:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 };\\int[] foo = { 0, 1, 2 };||
to:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 }; \\ int[] foo = { 0, 1, 2 };||
Added line 14:
||int i; \\ for (i = 0; i < 5; i++) \\ { \\ [= =] f(i); \\ }||for (int i = 0; i < 5; i++) \\ { \\ [= =] f(i); \\ }
September 10, 2005, at 02:50 PM by 81.75.243.242 -
Changed lines 8-9 from:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 };
int[] foo = { 0, 1, 2 };||
to:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 };\\int[] foo = { 0, 1, 2 };||
September 10, 2005, at 02:49 PM by 81.75.243.242 -
Changed lines 8-9 from:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 }; ''or'' int[] foo = { 0, 1, 2 };||
to:
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 };
int[] foo = { 0, 1, 2 };||
Added lines 13-14:
'''Loops'''
||''Wiring''||''Processing''||
September 10, 2005, at 02:48 PM by 81.75.243.242 -
Changed lines 7-10 from:
|''Wiring''|''Processing''|
|int foo[] = { 0, 1, 2 };|int foo[] = { 0, 1, 2 };|
|int bar[8];|int[8] bar;|
to:
||''Wiring''||''Processing''||
||int foo[] = { 0, 1, 2 };||int foo[] = { 0, 1, 2 }; ''or'' int[] foo = { 0, 1, 2 };||
||foo[0] = 5;||foo[0] = 5;||
||int bar[8];||int[8] bar;||
September 10, 2005, at 02:46 PM by 81.75.243.242 -
Added lines 1-10:
!!Wiring/Processing Language Comparison

The Wiring language (used by Arduino) is based on C, and therefore has some differences from the Processing language, which is based on Java.

'''Arrays'''

|''Wiring''|''Processing''|
|int foo[] = { 0, 1, 2 };|int foo[] = { 0, 1, 2 };|
|int bar[8];|int[8] bar;|

Share