LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-15-2022, 10:12 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,434

Rep: Reputation: 110Reputation: 110
No Swift language for Linux?


I just found out there is a programming language called Swift. And I found it interesting. Seems to be very easy.

Then they say it's only available for Ubuntu. I wonder why. Is the Linux community not interested in it? Is there any reason? I'm just curious.
 
Old 03-15-2022, 10:32 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by lucmove View Post
I just found out there is a programming language called Swift. And I found it interesting. Seems to be very easy.

Then they say it's only available for Ubuntu. I wonder why.
Presumably you are referring to their compiler, not the language.
I just checked the compiler github repo: https://github.com/apple/swift

It seems to be released under the Apache 2.0 licence. If it builds/runs on Ubuntu then it should also work on other distros

Quote:
Originally Posted by lucmove View Post
Is the Linux community not interested in it? Is there any reason? I'm just curious.
It wouldn't at all surprise me if there is not much interest in things from Apple within the Linux community. I avoid them like the plague.

Evo2.
 
2 members found this post helpful.
Old 03-15-2022, 10:55 PM   #3
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
Maybe https://www.linuxcapable.com/how-to-...n-11-bullseye/ (5.4.2; req py3.8)
https://www.cyberithub.com/how-to-in...ntu-20-04-lts/ (5.5.1; no mention of py3.8)

Last edited by GentleThotSeaMonkey; 03-15-2022 at 11:02 PM.
 
Old 03-15-2022, 11:16 PM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,434

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by GentleThotSeaMonkey View Post
It runs on Python???!!! What is the point?
 
Old 03-15-2022, 11:20 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Swift is in Fedora's repos. I just checked.
 
Old 03-16-2022, 01:19 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,987

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by lucmove View Post
It runs on Python???!!! What is the point?
No, I don't think so, but it (the package) contains some python scripts.
 
Old 03-16-2022, 07:51 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555
Quote:
Originally Posted by lucmove View Post
Then they say it's only available for Ubuntu.
Who is "they" and what precisely is being said? (Because Apple do not say that.)

 
Old 03-16-2022, 08:14 AM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Swift has been around for about 8 years and supported in Linux nearly the whole time. I think the first few releases were MAC only.
 
Old 03-16-2022, 09:14 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Swift was Apple's internal replacement for "Objective C," which proved to be quite difficult to use especially as hardware continued to evolve and "non-Mac" became more interesting and relevant. (Their original Mac programming language was Pascal.)
 
Old 03-16-2022, 03:42 PM   #10
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,434

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by boughtonp View Post
Who is "they" and what precisely is being said? (Because Apple do not say that.)
Whoever they are who maintain the language or at least the website.

https://www.swift.org/platform-support/
https://www.swift.org/download/
 
Old 03-16-2022, 03:57 PM   #11
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555Reputation: 2555

As I said, Apple do not say that - both of those pages explicitly mention CentOS and Amazon Linux too, for both the development tools and as deployment targets, so it's odd that you can say "only available for Ubuntu" whilst clearly being aware of those pages.

Still, if you want to know why Apple only target the OSes they do, you'll need to ask Apple.

 
  


Reply

Tags
swift programming



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Swift Language: How to easily install SWIFT on Linux LXer Syndicated Linux News 0 04-23-2018 07:45 AM
LXer: Apple Releases Swift 2.2 Programming Language with Ubuntu Linux Support LXer Syndicated Linux News 0 03-22-2016 04:11 AM
Apple to Open Source Swift programming language; Swift 2.0 will support Linux jeremy Linux - News 4 06-11-2015 05:09 AM
LXer: Apple to tailor Swift into a fully open source language - for Linux, too LXer Syndicated Linux News 0 06-08-2015 09:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration