With the release of Swift 3.0 being available for Mac OS and Windows, does this mean you can compile and run Swift code on Windows? If so what compiler do you use for Windows?
There is an open source project on GitHub that (quote) "provides an easy-to-use development environment for Swift programming for Windows applications": Swift for Windows.
System Requirement
Windows 10 64bit, Windows 7 64bit
NOTE
The project was initially hosted on Microsoft CodePlex, but then moved to GitHub.
Since Swift got open sourced, many more platforms were supported by Swift.
Linux was added shortly after it was open sourced, and just recently, the Android support for Swift was merged into the master branch.
You can track the progress of porting Swift to Windows here. As you might see, it's not currently being worked on actively by the Swift team, there is, however, a community port on Github trying to port Swift to Windows.
It is possible to write, build and run Swift code on Windows. With "Siver" and "Elements".
Silver is a free implementation of Apple's Swift programming language. With Silver, you can use Swift to write code directly against the .NET, Java, Android and Cocoa APIs.
Elements is a compiler and development tool chain for Oxygene, C# and Swift which targets the .NET runtime, Java/Android virtual machines. Elements is developed by RemObjects Software (https://en.wikipedia.org/wiki/RemObjects_Software).
HelloWorld.exe example here:
https://github.com/alexbaban/Various-Programming-Languages/blob/master/Swift/Building%20Swift%20Code%20On%20Windows.md
You say:
With the release of swift 3.0 being avaliable for Mac OS and Windows
But this hasn't been announced officially.
There's some projects, but nothing from Apple... yet.
And anyway, the site where you read this:
swift.im/releases.html
is not about Apple's Swift, it's an entirely different project with, unfortunately, the same name.
As far as I know: Swift is available for linux and you can expect swift for Windows, Android soon in the future.
If you want to use Swift language on windows, you must be rely on web based platform. For example: http://swiftstub.com , http://www.runswiftlang.com , etc.
Silver runs on Windows and allows you to compile Swift code to Java and .NET.
Yes, as of September 2020 Swift is available as a binary download for windows. There are even windows-specific instructions for getting started.
The OP asked about which compiler is used. I believe the swift binary is what actually builds the code into an executable. (As of the blog post in 2020, it was CMake, but swift packages are now supported, as well as the swift build command.)
This question is quite old, so no doubt the other answers were all correct when they were written, but this shows up prominently in search results, and should probably have a community wiki answer.
I have to developed a project that is using DB2 and jRuby on rails. It will be used on Linux platform when it is ready.
I want to know if I developed in using windows 7, I will get any problems when deploying it on Linux?
I want to use the topic ask a few questions about the used technologies too:
What is the official website for "jRuby on rails"?Why there is only a little information about this technology and the few video presentations and the only a book are made 4-5 years ago?
Has anyone knew about any jruby on rails and db2 tutorial or article?
The reason I am asking this questions too is because I want to read something more about these and to be updated about the fixes and new versions as I am really unfamiliar with these two technologies.
Thanks in advance.
I develop Rails applications on Windows and made deployments into Tomcat on Linux servers without any problems.
About your other question, I agree with you, some times it feels like theres not much documentation JRuby oriented but at the end remember that JRuby its only Ruby running over the JVM.
This is the wiki for JRuby https://github.com/jruby/jruby/wiki and here is the official website http://jruby.org/.
Regarding a db2 tutorial I think you should try harder in Google.com there are some gems and more information on the web.
I'm starting to use Django and I find that every example I see is done in Mac OS. I'm a Windows user. I've used Mac OS X Lion and I have no problem with it other that my personal computer doesn't have it. I would prefer not to go out and spend money on an operating system and set up dual booting just to follow a quick tutorial for Django.
So my question Is, can anyone point me in to a tutorial that uses Windows so I can get a good idea of how it works, and get a good ground, so that I can translate the other tutorials a little more easily.
Any help would be appreciated.
There are no windows specific django tutorials because django as a framework is platform agnostic. All of the python code that goes into writing a project is the same across platforms. The only time you would see something different is when a tutorial references a path on the filesystem.
The actual installation process of django would however be platform specific, but thats more of just a python for windows question. It would be the same situation for installing any python package or framework.
Ultimately you only have a few commands you need to actually run when you are learning django:
python manage.py syncb
python manage.py runserver
python manage.py shell
How you call python is the platform specific part, but the django aspect is the same. The project file structure is also the same. As long as a project doesn't use platform specific file path references, you could run a project written under linux on windows.
This doc might be the only one you need, which explains various installation procedures:
https://docs.djangoproject.com/en/1.4/topics/install/
If you need more info, you might need to provide some specific examples of where its confusing you to see non-windows style tutorials.
Here's a slightly old tutorial: http://mirkobonadei.wordpress.com/2010/01/25/install-python-and-django-on-windows/
The official Django docs also have a section on installation, which covers Windows: https://docs.djangoproject.com/en/dev/topics/install/
Could any one provide me with step-by-step tutorial how to install hadoop on windows.
I read official manual, but I can't get from it where should I input scripts from manual.
Here are the instructions for setting up Hadoop on Windows. BTW. currently Hadoop on Windows is OK for development, but now for production.
HortonWorks and Microsoft are working on porting Hadoop to Azure and Windows Server. As of this writing this is in limited preview. If you are interested in this then follow this Avkash. the author has been extensively blogging.
I read official manual, but i can't get from it where should I input scripts from manual.
What official manual are you referring to? Not clear about the second part.
I had tried this one and this stuff worked well:
http://pages.cs.brandeis.edu/~cs147a/lab/hadoop-windows/
I'm starting to learn how to write network device driver from:
http://tldp.org/LDP/LGNET/issue93/bhaskaran.html
In the article, the author compiles his example with:
cc -I/usr/src/linux-2.4/include/ -Wall -c rtl8139.c
My problem is that I'm using 2.6.35.23-generic and I don't have "config.h" in "/usr/src/linux_headers-2.6.35-23-generic/linux/".
Is this file replaced by another file? Is there any site that gives you information for such changes?
Thanks,
Pete.
The article http://tldp.org/LDP/LGNET/issue93/bhaskaran.html in your question is from 2003. I'm afraid the C code of Linux kernel changes too quickly, so the C code snippets and compilation instructions in that article most probably don't apply anymore.
Please also note that the article provides information about the 2.4.x Linux kernel versions, but you're trying to compile its code with a 2.6.x kernel. The 2.4 and 2.6 series are very different both in terms of C code and compilation instructions. My advice: try to find a more recent article (preferably from 2010 or 2009) and example code about the 2.6 series.