6 ms·
Code.nasa.gov
- amaks 12y agoThis is truly awesome.
- ChuckMcM 12y agoAh one of my favorites: http://opensource.gsfc.nasa.gov/projects/LHD/ http://opensource.gsfc.nasa.gov/projects/LHD/
- dthal 12y agoFrom the article: >>libSPRITE defines engineering units as types (i.e., Meters or Radians instead of double or int). I guess experience is a harsh teacher.[1] [1]http://en.wikipedia.org/wiki/Mars_Climate_Orbiter#Cause_of_failure http://en.wikipedia.org/wiki/Mars_Climate_Orbiter#Cause_of_f...
- plutonium 12y ago> Meters or Radians instead of double or int I was just thinking I've seen that at my job, but then I noticed [1] is my employer, heh.
- sliverstorm 12y agoGah, how many different times has unit incompatibility hit our space program now?
- davidgrenier 12y agoWorth noting that F# has language-support for Units of Measures and countless new languages have come since 2008 without that in mind.
- Osmium 12y ago> Worth noting that F# has language-support for Units of Measures I had no idea. That is crazy cool. Do you have any recommended resources for learning how this works behind the scenes? (I tried implementing something similar in Swift, without knowledge of prior examples, so probably ended up doing it in a really dumb way. I tried using structs ('Quantities') containing the underlying value and also dimensional information, and then enabling mathematical operations using operator overloading and generics. I'd love to know of a better/"proper" way of implementing it though. The big unknown for me was the best underlying type/data structure to use to represent SI dimensions, including fractional dimensions, and that would allow them to be combined algebraically. Might just have to have another go this weekend following F#'s example!) Edit: found this paper if anyone's interested http://research.microsoft.com/en-us/um/people/akenn/units/CEFP09TypesForUnitsOfMeasure.pdf http://research.microsoft.com/en-us/um/people/akenn/units/CE...
- doublec 12y ago"Scientific and Engineering C++" by Barton and Nackman had a good example of doing units in C++ using templates. This blog post describes the basic approach http://learningcppisfun.blogspot.com/2007/01/units-and-dimensions-with-c-templates.html http://learningcppisfun.blogspot.com/2007/01/units-and-dimen...
- louthy 12y ago> I had no idea. That is crazy cool. Do you have any recommended resources for learning how this works behind the scenes? http://fsharpforfunandprofit.com/posts/units-of-measure/ http://fsharpforfunandprofit.com/posts/units-of-measure/ The units are lost at runtime and are used for static type checking only. So if you were to consume an F# lib from C# (for example) then you wouldn't have a such strong system. Hopefully one day they'll end up as part of the CLR so it can be enforced at runtime too.
- pron 12y agoAdded in Java 8 as one of its pluggable type systems: http://types.cs.washington.edu/checker-framework/current/checker-framework-manual.html#units-checker http://types.cs.washington.edu/checker-framework/current/che...
- bokchoi 12y agoOk, that's awesome.
- GimbalLock 12y agoI just interned with the guy responsible for libSPRITE last summer at the Marshall Spaceflight Center in Huntsville. Kind of awesome to see he open sourced it. He really was hoping to get approval to do so. I used his library for my internship. Cool stuff. And he was a great teacher.
- akavel 12y agoClicked on https://github.com/nasa/libSPRITE https://github.com/nasa/libSPRITE, but as of now the repo contains only a README with a "Coming Soon!" note... :/ dated 1 Dec 2014, so 3 months ago already...
- thearn4 12y agoI currently work on one of these: https://github.com/OpenMDAO/OpenMDAO-Framework https://github.com/OpenMDAO/OpenMDAO-Framework It looks like the fork linked to on code.nasa.gov is a few years behind.
- auxym 12y agoOpenMDAO is cool, have an upvote!
- noselasd 12y agoI find the cFE , http://sourceforge.net/projects/coreflightexec/files/cFE-6.4.1/ http://sourceforge.net/projects/coreflightexec/files/cFE-6.4... pretty interesting - used as a base for actual spacecraft software, such as the LRO, LADEE, ATLAS and many others.
- davidgrenier 12y agoYou guys wanna make sure it crashes at run-time?
- unexistance 12y agounreadable with JS disabled ... wonder why that is
- krapp 12y agoBecause they're using AngularJS, apparently.
- pron 12y agoThe awesome Java PathFinder[1] (a model checker for Java) seems to be missing. [1] http://babelfish.arc.nasa.gov/trac/jpf http://babelfish.arc.nasa.gov/trac/jpf
- pbw 12y agoI dislike that they link to the full legal license without explanation or comment. I cannot read legal it makes my brain hurt. As a commercial closed-source software developer (aka leech) I just want to know can I use it?
- desdiv 12y agoSee https://en.wikipedia.org/wiki/NASA_Open_Source_Agreement https://en.wikipedia.org/wiki/NASA_Open_Source_Agreement OSI says it's an open source license, but FSF says no. In your case, I'd say you're in the clear, since you're clearly making an “original creation” in NASA terms. Does anyone know why NASA's open source code isn't in the public domain like it's supposed to be [0]? [0] https://en.wikipedia.org/wiki/Copyright_status_of_work_by_the_U._S._government https://en.wikipedia.org/wiki/Copyright_status_of_work_by_th...
- tbirdz 12y ago>Does anyone know why NASA's open source code isn't in the public domain like it's supposed to be? That only applies to works done by federal employees. Most of the coding is probably done by contractors, who are not required to release their work under public domain. However, it seems NASA might have made it a part of the contract to release the code under an open source license.
- newman8r 12y agohttps://github.com/nasa/code.nasa.gov https://github.com/nasa/code.nasa.gov hasn't been updated in years - if at least 1 or 2 people are interested in updating it quarterly I'll pitch in and set something up on aws. Would be nice to add a discussion board for each item too.
- wyclif 12y agoHow long has NASA had this project and subdomain up?
- yCloser 12y agoExactly what we needed for our Kerbal Space Program softwares!
- CatsoCatsoCatso 12y agoIt's refreshing to see a page about development & code which has some soul to it. So often now everything is presented either on Github's clean, dry interface or on an external page doing its very best to lack any personality.
- gulbrandr 12y agoAt first sight, I read code.NSA.gov. I had to read it at least 3 times to see it was NASA.