Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Sunday June 14 2015, @10:44PM   Printer-friendly
from the swift-rise-in-popularity dept.

The hype around Swift is near non-existent by Apple standards, yet the language has attracted high praise since its release last year. Swift is essentially one of the very few Apple products representing a clear departure from the hardware-led approach Steve Jobs took to the business. If Stack Overflow's 2015 dev survey is anything to go by, it looks as if the Swift language might have potential to really shake things up.

Might the days of Apple programmers relying upon objective C be numbered?


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1, Flamebait) by c0lo on Monday June 15 2015, @06:01AM

    by c0lo (156) Subscriber Badge on Monday June 15 2015, @06:01AM (#196374) Journal

    However if you think Swift is in any way comparable to VB, you're a cluless idiot.

    Really? Doesn't it serve for Apple the same purpose as the old VB did for MS?
    I mean... "make available the Godness of our API to masses. Because, you know... developers, developers, developers... memory management and whatnot is too hard for the wannabe programmer" (I still remember the days before the dotcom bust, everybody and their dog would got hired with "I know VB" on their CV - 'cause, you know, before ASPX and other dontNet goodnesses MS came afterwards, the VB was the "language of Web as decreed by Microsoft").

    Yeah, sure, maybe it's more evolved than VB, but in the end... it only runs on Apple - very much like VB used to run only on MS. Yet another point they somehow resemble, don't yea think?

    --
    https://www.youtube.com/watch?v=aoFiw2jMy-0 https://soylentnews.org/~MichaelDavidCrawford
    Starting Score:    1  point
    Moderation   -1  
       Flamebait=1, Total=1
    Extra 'Flamebait' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   1  
  • (Score: 5, Informative) by BasilBrush on Monday June 15 2015, @07:22AM

    by BasilBrush (3994) on Monday June 15 2015, @07:22AM (#196385)

    Really? Doesn't it serve for Apple the same purpose as the old VB did for MS?

    No. This isn't an easy to use option for casual use. This is a replacement of the professional languages both for apps and systems programming.

    it only runs on Apple

    Wrong. Linux and open source is part of the v2.0 release.

    --
    Hurrah! Quoting works now!
    • (Score: 2) by c0lo on Monday June 15 2015, @08:58AM

      by c0lo (156) Subscriber Badge on Monday June 15 2015, @08:58AM (#196402) Journal

      it only runs on Apple

      Wrong. Linux and open source is part of the v2.0 release.

      It may seem pedantic, but I detect a slightly misleading use of tense time. The as precise as possible way to put it is:

      Linux and open source will be part of the v2.0 release. Sometime "later this year" [theregister.co.uk]

      On the other side, what should I be so enthused by Swift on Linux? For some +Informative mods, what does the language brings new/useful to Linux? (why should I believe is something else than an expression of Not-Invented-Here-Syndrome coming from Apple?)
      Does it have some standard libraries besides OSX/Cocoa to make it useful? Multi-threading, async/futures... something?

      --
      https://www.youtube.com/watch?v=aoFiw2jMy-0 https://soylentnews.org/~MichaelDavidCrawford
      • (Score: 2) by BasilBrush on Monday June 15 2015, @03:26PM

        by BasilBrush (3994) on Monday June 15 2015, @03:26PM (#196537)

        You shouldn't be excited at all. You hate Apple and thus won't be using it. Some of the more open minded language experimenters will though.

        --
        Hurrah! Quoting works now!
    • (Score: 4, Insightful) by c0lo on Monday June 15 2015, @11:00AM

      by c0lo (156) Subscriber Badge on Monday June 15 2015, @11:00AM (#196421) Journal

      This is a replacement of the professional languages both for apps and systems

      Groan... Really? [wikipedia.org]

      Swift uses Automatic Reference Counting (ARC) to manage memory. Apple used to require manual memory management in Objective-C, but introduced ARC in 2011 to allow for easier memory allocation and deallocation.[29] One problem with ARC is the possibility of creating a strong reference cycle, where instances of two different classes each include a reference to the other, causing them to become leaked into memory as they are never released. Swift provides the weak and unowned keywords that allow the programmer to prevent strong reference cycles from occurring. Typically a parent-child relationship would use a strong reference while a child-parent would use either weak reference, where parents and children can be unrelated, or unowned where a child always has a parent, but parent may not have a child.

      Because... you know?... there's never going to be a relation between siblings, it will always be an asymmetrical parent-child-like relationship.
      Yes, circular lists or bidi-graphs with cycles are evil constructs one is never going to need in practice.

      Those foolish younsters with disdain for ancient wisdom [catb.org] are in for surprises:

      One day a student came to Moon and said: “I understand how to make a better garbage collector. We must keep a reference count of the pointers to each cons.”

      Moon patiently told the student the following story:

      “One day a student came to Moon and said: ‘I understand how to make a better garbage collector...

      --
      https://www.youtube.com/watch?v=aoFiw2jMy-0 https://soylentnews.org/~MichaelDavidCrawford
      • (Score: 3, Touché) by BasilBrush on Monday June 15 2015, @03:23PM

        by BasilBrush (3994) on Monday June 15 2015, @03:23PM (#196535)

        Really.

        Because... you know?... there's never going to be a relation between siblings, it will always be an asymmetrical parent-child-like relationship.
        Yes, circular lists or bidi-graphs with cycles are evil constructs one is never going to need in practice.

        Just because it is possible to write software that has circular references, doesn't mean that properly written software ever has them. Put the correct attributes on properties and there is no problem I've been programming with ARC for years and literally never had a bug of that nature.

        ARC is NOT a garbage collector. That's your first mistake.

        --
        Hurrah! Quoting works now!
      • (Score: 2) by kaszz on Tuesday June 16 2015, @06:27PM

        by kaszz (4211) on Tuesday June 16 2015, @06:27PM (#196975) Journal

        "to allow for easier" alright, then only idiots will use it .. ;-)

        It sounds more and more like Swift might be useful to learn if creating apps for iPhone is your task. Otherwise it's just another NIH thing waiting to be scrapped.