r/Citybound • • Dec 04 '15

Swift went open source

So with the programming language Swift having just today gone open source, do you intend on using it? They don't have a windows compiler yet. You mentioned long term you want to use C, but its over 30 years old. I watched a few of their videos, not having to use #include statements, or variable types in declarations, just to name a few, is nice. You haven't started writing outside of java yet, and I suspect you wont until alpha, but I expect the other compilers to be done well before then, so I thought id re post this news here.

0 Upvotes

7 comments sorted by

7

u/Jimmyson07 Dec 04 '15

C might be 30 years old, but its still relevant today. Heck, they still build Linux with it!!

I don't see Swift as an option for the moment. Considering that Apple built it and that they like to keep control of it, I doubt that we would see desktop apps for non-Apple platforms built with it.

3

u/cellularized Dec 06 '15 edited Dec 06 '15

Still relevant today? :D

Windows, MacOS and Linux are written in C/C++ and Objective C and so are pretty much all high performance game engines and tools. And even if the perfect new language popped up today C would still be used on a large scale for decades to come because of the existing code infrastructure.

Anyway I totally agree, changing to an experimental language halfway on the way to alpha is a silly idea. (Well Chris Roberts might entertain the thought, someone should ask him about it)

2

u/theidleidol Dec 16 '15

Except that's clearly the intention in Apple open-sourcing it and even providing a Linux port. It would be nice to see a GUI framework connected by them, but it will happen regardless. The problem Apple has historically had with open source projects (Darwin, WebKit, and most importantly CUPS are all theirs) is not a lack of openness but a lack of governance of the project. CUPS gained a strong community and has had great success (your Linux of choice probably prints through CUPS), but the stewardship of WebKit fell mostly to Google and lost a huge amount of support and development steam when they forked Blink.

2

u/[deleted] Dec 20 '15

Err, the entire reasoning behind open sourcing the language is to loosen the control Apple has and encourage Swift's use on other platforms.

4

u/cerebellum42 Dec 07 '15

He hasn't actually written anything in the game in Java. Javascript is what he is using. Big difference.

3

u/schraubedrin Dec 04 '15

i haven't studied this but i think the age of C is it's advantage. Because it developed with the machines it's running on, it is more machine-oriented and therefore has the potential to run very efficiently.

But maybe someone more experienced can answer this?

3

u/dainless Dec 04 '15

Yes, you may have less "comfort-methods", but it's highly performant.

A year ago i heard a lecture about machine-oriented programming and we we're told that there are still most systems using C. But Go by Google is getting bigger and bigger, this year the professor talks way more about this and it gets more and more in the focus of the lecture as i heard from my fellow students who are visiting this lecture this semester.

@hubble: Anyway, because it needs to be said: Please don't get confused with JavaScript and Java, those are two completely diffrent things ^ Anselm is using JavaScript (mainly(?))