|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Roborio and Swift?
Me and and another programmer on our team were wondering if anyone new if the roborio could run swift? If possible we would like to write our own libraries to use next season
|
|
#2
|
|||||
|
|||||
|
Re: Roborio and Swift?
So far as I know, Swift targets only Apple iOS and Mac OS X. Neither of those run on the roboRIO.
|
|
#3
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
Why swift specifically? programming languages are one in the same, the only difference between them is almost always syntactical sugar (nothing too special with swift), speed (probably wouldn't be different from Java), and personal experience. |
|
#4
|
|||
|
|||
|
Re: Roborio and Swift?
the only other language that i can actually see being programmed besides the one avalible is the .net languages mostly vb and c#
|
|
#5
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
Possibilities include (but are not limited to) Python (done), Ruby, Perl, Go, Javascript, Haskell, Lisp, C#/Mono, D, Brainf*k, LOLCode... whatever someone is willing to put the work into, is possible. I'd be interested in seeing someone create WPILib bindings for Go or Javascript. |
|
#6
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
While all the languages you listed can run on the roboRIO, there isn't a great reason to bring most of them to FRC. I could see arguments in favor of Python and C#, not so much the others. However, because they need to maintain a balance between offering a variety of languages and providing first class support for the available languages, I'm not holding my breath for more officially supported languages. |
|
#7
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
|
|
#8
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
This was good news for most languages though, because if you can interop with C++ libraries, getting basic communication working was really easy, and was done in about a day. Last edited by Thad House : 24-02-2015 at 13:50. |
|
#9
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
// just looked up "Go" Code:
no type inheritance no method or operator overloading no circular dependencies among packages no pointer arithmetic no assertions no generic programming |
|
#10
|
|||
|
|||
|
Re: Roborio and Swift?
Quote:
Code:
no type inheritance no method or operator overloading no circular dependencies among packages no pointer arithmetic no assertions no generic programming |
|
#11
|
||||
|
||||
|
Re: Roborio and Swift?
Go actually has *better* generic programming, sorta. It would be cool to use in FIRST.
|
|
#12
|
|||
|
|||
|
Re: Roborio and Swift?
I just dont get why you would do mono/c#, java has the same syntax as the library is more mature
|
|
#13
|
||||
|
||||
|
Re: Roborio and Swift?
Quote:
Javascript does not need method inheritance due to it's loose type definition, is built to avoid circular dependencies, and has no concept of pointers so pointer arithmetic is pointless. Please attempt to be less aggressive next time. ![]() Quote:
Quote:
|
|
#14
|
|||||
|
|||||
|
Re: Roborio and Swift?
Why would you need any of these features for an FRC robot? Proper inheritance and overloading is a comfort thing, but the rest are mostly useless in an FRC context.
|
|
#15
|
||||
|
||||
|
Re: Roborio and Swift?
Educational probably. Especially pointer arithmetic, that is a nearly daily part of my job.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|