Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Go Programming Language

The Go Programming Language

Scheduled Pinned Locked Moved The Lounge
csharpc++
38 Posts 17 Posters 50 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nemanja Trifunovic

    Interesting...[^] Ken Thompson and Rob Pike are among the language designers. Personally, I dislike C-style syntax and a mandatory garbage collector (in a system language).

    utf8-cpp

    C Offline
    C Offline
    CaptainSeeSharp
    wrote on last edited by
    #12

    I would like to see a refined version of C++, taking lessons from C# but being native. A clean type system such as byte, sbyte, short, ushort, int, unit, long, ulong. Standard libraries much like what we have with the BCL, and an optional metadata scheme where metadata is compactly injected directly with the executable code that all C~ code can find.

    Watch the Fall of the Republic (High Quality 2:24:19)[^]

    1 Reply Last reply
    0
    • P PIEBALDconsult

      I'll stick with C# for now and continue to await The Coming Of The Great New Language.

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #13

      I am doing that too! But I'm wondering if The Great New Language won't be C# 6.0 running on Window 10.0? With all MS work on Midori / Singularity / Phoenix (?) etc... After all be C# could The Great New Language, if not for the performance and the lack of low level system access, but those managed OS attempt (above) could (and would, hopefully) bring it to C#!!!

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      K P 2 Replies Last reply
      0
      • N Nemanja Trifunovic

        Interesting...[^] Ken Thompson and Rob Pike are among the language designers. Personally, I dislike C-style syntax and a mandatory garbage collector (in a system language).

        utf8-cpp

        M Offline
        M Offline
        MikeMarq
        wrote on last edited by
        #14

        If they want a modern systems/embedded programming language why don't they just use Ada? Granted I'm just starting to fool around with this language so I might be overlooking something, but as far as I can see Ada seems to have all the power and low level capabilities of c/c++ but seems to be on the opposite end of the spectrum when it comes to safety/error checking. In my opinion Ada seems to be very well thought out and modern and has the best error checking and type system of any programming language. From what I've read most safety critical software is written in Ada and I can't recall hearing of any airplane that crashed or nuclear power plant that exploded because of a bug so they must doing something right. As far as Go goes I have to agree I'm not sure if mandatory garbage collection is a good feature in a systems programming language since it can be a problem if you are writing anything that has real time requirements since garbage collection cycles have unpredictable timing.

        S N 2 Replies Last reply
        0
        • C Chris Losinger

          is it like the game? The rules are simple, but the practical strategy is extremely complex.

          image processing toolkits | batch image processing

          M Offline
          M Offline
          MikeMarq
          wrote on last edited by
          #15

          I'm glad to know I'm not the only person who's discovered that game :-D

          G 1 Reply Last reply
          0
          • N Nemanja Trifunovic

            Interesting...[^] Ken Thompson and Rob Pike are among the language designers. Personally, I dislike C-style syntax and a mandatory garbage collector (in a system language).

            utf8-cpp

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #16

            http://code.google.com/p/go/issues/detail?id=9[^] Kinda sloppy... Now if the other Go was a word processor or something else, you can live with it, but not like this :(

            xacc.ide
            IronScheme - 1.0 RC 1 - out now!
            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

            1 Reply Last reply
            0
            • M MikeMarq

              If they want a modern systems/embedded programming language why don't they just use Ada? Granted I'm just starting to fool around with this language so I might be overlooking something, but as far as I can see Ada seems to have all the power and low level capabilities of c/c++ but seems to be on the opposite end of the spectrum when it comes to safety/error checking. In my opinion Ada seems to be very well thought out and modern and has the best error checking and type system of any programming language. From what I've read most safety critical software is written in Ada and I can't recall hearing of any airplane that crashed or nuclear power plant that exploded because of a bug so they must doing something right. As far as Go goes I have to agree I'm not sure if mandatory garbage collection is a good feature in a systems programming language since it can be a problem if you are writing anything that has real time requirements since garbage collection cycles have unpredictable timing.

              S Offline
              S Offline
              Stuart Dootson
              wrote on last edited by
              #17

              MikeMarq wrote:

              as far as I can see Ada seems to have all the power and low level capabilities of c/c++

              More in some cases. Take a look at Ada representation clauses - much more powerful than anything C can offer.

              MikeMarq wrote:

              From what I've read most safety critical software is written in Ada and I can't recall hearing of any airplane that crashed or nuclear power plant that exploded because of a bug so they must doing something right

              I seem to remember there was a study that indicated that the choice of language impacted more on the efficiency of certain verification activities than on the safety of the system per se. Ada (and more specifically SPARK Ada) allow more design intent (e.g. specification of expected ranges for numeric types representing real-world quantities) to be expressed within code.

              MikeMarq wrote:

              I have to agree I'm not sure if mandatory garbage collection is a good feature in a systems programming language since it can be a problem if you are writing anything that has real time requirements since garbage collection cycles have unpredictable timing.

              Heap allocation of any sort (never mind garbage collected) is an issue - the allocation could fail and, even if it doesn't, it's difficult to predict the time that an allocation will take (e.g. if the allocator traverses a list of free blocks to find a big enough memory block), so in general all memory is allocated statically (i.e. in BSS or DATA segments) at initialisation.

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              1 Reply Last reply
              0
              • N Nemanja Trifunovic

                Interesting...[^] Ken Thompson and Rob Pike are among the language designers. Personally, I dislike C-style syntax and a mandatory garbage collector (in a system language).

                utf8-cpp

                R Offline
                R Offline
                Rocky Moore
                wrote on last edited by
                #18

                Seems like a couple steps backward from where we are in today's world. I am only moving forward not backward... Make my life easier and less work not more.

                Rocky <>< Recent Blog Post: Win2008 Server without FrontPage Extensions, really?

                N 1 Reply Last reply
                0
                • M MikeMarq

                  If they want a modern systems/embedded programming language why don't they just use Ada? Granted I'm just starting to fool around with this language so I might be overlooking something, but as far as I can see Ada seems to have all the power and low level capabilities of c/c++ but seems to be on the opposite end of the spectrum when it comes to safety/error checking. In my opinion Ada seems to be very well thought out and modern and has the best error checking and type system of any programming language. From what I've read most safety critical software is written in Ada and I can't recall hearing of any airplane that crashed or nuclear power plant that exploded because of a bug so they must doing something right. As far as Go goes I have to agree I'm not sure if mandatory garbage collection is a good feature in a systems programming language since it can be a problem if you are writing anything that has real time requirements since garbage collection cycles have unpredictable timing.

                  N Offline
                  N Offline
                  Nemanja Trifunovic
                  wrote on last edited by
                  #19

                  MikeMarq wrote:

                  In my opinion Ada seems to be very well thought out and modern and has the best error checking and type system of any programming language.

                  I agree. It seems it become unpopular because it was mandated for defense projects for a while. Also, the compilers were very expensive. It is a shame, though, it looks much nicer than any C-based language I have seen.

                  MikeMarq wrote:

                  As far as Go goes I have to agree I'm not sure if mandatory garbage collection is a good feature in a systems programming language since it can be a problem if you are writing anything that has real time requirements since garbage collection cycles have unpredictable timing.

                  Amen!

                  utf8-cpp

                  K 1 Reply Last reply
                  0
                  • N Nemanja Trifunovic

                    Steve Echols wrote:

                    Plus the use of the pascal like :=

                    That part I like. In fact, I wish they departed from C syntax even more...

                    utf8-cpp

                    K Offline
                    K Offline
                    Kevin McFarlane
                    wrote on last edited by
                    #20

                    Nemanja Trifunovic wrote:

                    I wish they departed from C syntax even more...

                    There's a tendency to make most new languages use C or C-like syntax. I think they're frightened of alienating the C-syntax fanatics. :laugh: In the 21st century we ought to be moving on from C syntax IMO.

                    Kevin

                    P 1 Reply Last reply
                    0
                    • S Super Lloyd

                      I am doing that too! But I'm wondering if The Great New Language won't be C# 6.0 running on Window 10.0? With all MS work on Midori / Singularity / Phoenix (?) etc... After all be C# could The Great New Language, if not for the performance and the lack of low level system access, but those managed OS attempt (above) could (and would, hopefully) bring it to C#!!!

                      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                      K Offline
                      K Offline
                      Kevin McFarlane
                      wrote on last edited by
                      #21

                      Super Lloyd wrote:

                      But I'm wondering if The Great New Language won't be C# 6.0 running on Window 10.0?

                      No, it will be Axum[^]. :)

                      Kevin

                      S 1 Reply Last reply
                      0
                      • R Rocky Moore

                        Seems like a couple steps backward from where we are in today's world. I am only moving forward not backward... Make my life easier and less work not more.

                        Rocky <>< Recent Blog Post: Win2008 Server without FrontPage Extensions, really?

                        N Offline
                        N Offline
                        Nemanja Trifunovic
                        wrote on last edited by
                        #22

                        Rocky Moore wrote:

                        I am only moving forward not backward...

                        Keep moving forward and you'll discover SmallTalk. And if you move even more forward you may hit Lisp (first released in 1958)

                        utf8-cpp

                        1 Reply Last reply
                        0
                        • L Luc Pattyn

                          and +:= or is it :+=?? :)

                          Luc Pattyn


                          I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


                          P Offline
                          P Offline
                          PIEBALDconsult
                          wrote on last edited by
                          #23

                          Neither, obviously; and now I won't tell you about the Belgian beer I had last night. :-D

                          L 1 Reply Last reply
                          0
                          • N Nemanja Trifunovic

                            MikeMarq wrote:

                            In my opinion Ada seems to be very well thought out and modern and has the best error checking and type system of any programming language.

                            I agree. It seems it become unpopular because it was mandated for defense projects for a while. Also, the compilers were very expensive. It is a shame, though, it looks much nicer than any C-based language I have seen.

                            MikeMarq wrote:

                            As far as Go goes I have to agree I'm not sure if mandatory garbage collection is a good feature in a systems programming language since it can be a problem if you are writing anything that has real time requirements since garbage collection cycles have unpredictable timing.

                            Amen!

                            utf8-cpp

                            K Offline
                            K Offline
                            Kevin McFarlane
                            wrote on last edited by
                            #24

                            Nemanja Trifunovic wrote:

                            I agree. It seems it become unpopular because it was mandated for defense projects for a while. Also, the compilers were very expensive. It is a shame, though, it looks much nicer than any C-based language I have seen.

                            I like the look of Eiffel (which is itself influenced by Ada), though it is not systems oriented. It also suffers from there being only one realistic vendor who offer a very expensive product unless you are producing open source software.

                            Kevin

                            1 Reply Last reply
                            0
                            • S Super Lloyd

                              I am doing that too! But I'm wondering if The Great New Language won't be C# 6.0 running on Window 10.0? With all MS work on Midori / Singularity / Phoenix (?) etc... After all be C# could The Great New Language, if not for the performance and the lack of low level system access, but those managed OS attempt (above) could (and would, hopefully) bring it to C#!!!

                              A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                              P Offline
                              P Offline
                              PIEBALDconsult
                              wrote on last edited by
                              #25

                              C# is already an old language (ten years!); adding new features is only making it worse.

                              N 1 Reply Last reply
                              0
                              • P PIEBALDconsult

                                C# is already an old language (ten years!); adding new features is only making it worse.

                                N Offline
                                N Offline
                                Nemanja Trifunovic
                                wrote on last edited by
                                #26

                                PIEBALDconsult wrote:

                                C# is already an old language (ten years!); adding new features is only making it worse.

                                I never liked C# much, but up to version 2.0 it was at least simple (sort of) and easy to learn.

                                utf8-cpp

                                1 Reply Last reply
                                0
                                • M MikeMarq

                                  I'm glad to know I'm not the only person who's discovered that game :-D

                                  G Offline
                                  G Offline
                                  GSGeek
                                  wrote on last edited by
                                  #27

                                  LOL! Does the Go language involves manipulations of black and white tokens? In addition, is there a -ko compiler option to detect infinite loops, or -atari to detect dead code? Interesting enough, maybe I should have a go on this language (bad pun intended) Happy coding, Yves

                                  1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    Neither, obviously; and now I won't tell you about the Belgian beer I had last night. :-D

                                    L Offline
                                    L Offline
                                    Luc Pattyn
                                    wrote on last edited by
                                    #28

                                    if (:beer: == :cool:) :bob: := :) ; else :bob: := :mad: ;

                                    Luc Pattyn


                                    I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


                                    1 Reply Last reply
                                    0
                                    • Steve EcholsS Steve Echols

                                      Interesting... This will kill me: if (a < b) f(); // INVALID for (i = 0; i < 10; i++) {} // INVALID Invalid!! But I've been typing it that way for 20 years! Grrrrr.... Plus the use of the pascal like := Still interesting though.


                                      - S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.

                                      L Offline
                                      L Offline
                                      Lutoslaw
                                      wrote on last edited by
                                      #29

                                      Steve Echols wrote:

                                      Plus the use of the pascal like :=

                                      Not exactly. As far as I understood, the := operator in Go is a declaration of a new variable + initialization, not only association. Pascal:

                                      A:= B <=> A = B;

                                      Go:

                                      A:= B <=> int A = B; (where int is an implied type of B)

                                      Greetings - Jacek

                                      1 Reply Last reply
                                      0
                                      • S Super Lloyd

                                        There is a plethora of newer, safer, easier to ease low level language. I particularly like D[^]. I even think they have some native compiler of a variant of C#. Anyway, sadly, none seems to take off or have good commercial and wide library support.... Hopefully Go will go further! :-)

                                        A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                                        modified on Tuesday, November 10, 2009 7:56 PM

                                        P Offline
                                        P Offline
                                        PIEBALDconsult
                                        wrote on last edited by
                                        #30

                                        Yes, D is likely the best; but I don't use it, C# pays the bills (at least it did).

                                        1 Reply Last reply
                                        0
                                        • K Kevin McFarlane

                                          Nemanja Trifunovic wrote:

                                          I wish they departed from C syntax even more...

                                          There's a tendency to make most new languages use C or C-like syntax. I think they're frightened of alienating the C-syntax fanatics. :laugh: In the 21st century we ought to be moving on from C syntax IMO.

                                          Kevin

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #31

                                          Not frightened; it's a practical matter. The feeling is that there is so much C code (and coders) out there that making people rewrite it is a bad idea. So if the new language can use existing C code pretty much as it is, then the language has a better chance of acceptance. As I recall the D website used to say that a piece of C code passed through the D compiler should either compile and work as it did under C or fail. I don't see that notation anymore. At any rate, the D website does say: "Have a short learning curve for programmers comfortable with programming in C or C++." I know I had a tough time changing from Pascal to C, I don't want to have to go through that again, especially if the new language is more verbose.

                                          K 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups