I just learned about the slug and I‘m absolutely flabbergasted that this exists.
Translating a Fortran F-16 Simulator to Unity3D
71–80 of 129 posts
Re: Translating a Fortran F-16 Simulator to Unity3D
#72My Mom was a FORTRAN programmer for a defense contractor from the late 50s to the mid 90s. She spent her career doing things like that F16 simulator. The last thing I remember her talking about was one of the B1 or B2 bombers. When I was elementary school age in the late 70s, I'd go into her office with her sometimes on school holidays that were not work holidays. She'd let me play Colossal Cave Adventure on a termin…
FWIW she probably wasn’t breaking any security protocols - basically as long as the kids can’t read well they are fine to be escorted without the red light. I used to take my daughter into the SCIF when she was about 2 when needed, and there was a week where I was took my son into work at the Pentagon. I working for Snake Clark at the time and people kept bringing him candies and treats. I think he was watching carto…
Re: Translating a Fortran F-16 Simulator to Unity3D
#73In keeping with the discussion here a few days ago, this article demonstrates exactly my point about developer types not being the target for computational codes. Their interpolation routine looks extremely verbose already, I cannot imagine them attempting to solve or compute any other more complex formula like that beyond a mere 2d interpolator writing so verbosely like that. The result would be unreadable, to my ey…
Math or engineering people do not have problems with short symbol names, that's it. Also our formulas are complex. If you wrote out many of our formulas with long descriptive variable names the structure and relation between the variables would no longer be readable, there would be many more mistakes. We were educated doing these things on paper with pages and pages of math with these symbols. 20 years later I can st…
Re: Translating a Fortran F-16 Simulator to Unity3D
#74Earlier quoted context omitted.
I'd agree with 1-based indexing problems, but not 0-based, which seems very natural. And if you have -2-based, I'd argue that perhaps you don't want an array.
I think it's down to personal preferences/how you think. I haven't actually used any languages that didn't have 0 based indexing, but I remember it being very painful and super unintuitive to learn, it just didn't make sense at all (still doesn't, but it's not a problem for me anymore). I always thought 1 based would make a lot more sense and be way easier to learn.
Re: Translating a Fortran F-16 Simulator to Unity3D
#75I just learned about the slug and I‘m absolutely flabbergasted that this exists.
https://en.wikipedia.org/wiki/Shake_(unit)
Re: Translating a Fortran F-16 Simulator to Unity3D
#76When I was growing up computers were getting faster by leaps and bounds, and I remember a video game that was so 'sophisticated' that it needed a math (FP) co-processor (80387) to play some parts of it: > The program requires a minimum of a 12MHz 80286, 1MB RAM, DOS 5.0 or DR DOS, one 1.2MB 5 1⁄4" or 1.44MB 3 1⁄2" disk drive, hard drive with 11MB of free disk space, and VGA graphics. In addition, Falcon3.O supports a…
Falcon 4.0 source code leak led to Falcon BMS, still actively developed today.
Re: Translating a Fortran F-16 Simulator to Unity3D
#77Earlier quoted context omitted.
Lua actually has arbitrary indexing, it's just that some iterator functions in the standard library assume arrays begin at 1.
It does and doesn't. You can have any arbitrary index, but that changes the table from being an array to being both an array and a dictionary, some real weird Frankenstein stuff
You're confusing the definition of the language with the implementation. In implementation you're right, most runtimes will treat arrays starting at 1 as a special case and optimize that access. The language itself doesn't make that distinction though. Here an array is simply any table indexed by integers. The documentation states it's thusly:
You can start an array at index 0, 1, or any other valueRe: Translating a Fortran F-16 Simulator to Unity3D
#78My Mom was a FORTRAN programmer for a defense contractor from the late 50s to the mid 90s. She spent her career doing things like that F16 simulator. The last thing I remember her talking about was one of the B1 or B2 bombers. When I was elementary school age in the late 70s, I'd go into her office with her sometimes on school holidays that were not work holidays. She'd let me play Colossal Cave Adventure on a termin…
Your mom was awesome :)
Re: Translating a Fortran F-16 Simulator to Unity3D
#79Earlier quoted context omitted.
I would say it is sensible. Given that an array index is an unsigned integer, what are you going to do with an index of zero? Perhaps I've been influenced by writing a lot of code in assembler, way back when, but zero-based has always seemed completely natural to me, to the extent that I find it very hard to understand algorithms expressed in non-zero based code.
An array index can be signed with no problem. If you're worried about the address calculations, well, the address of an array doesn't have to be the address to its initial element, does it? It can be the address of the element with index 0 (even if an array does not have such an index at all): arr: array[-2..10] of integer; pointer(@arr) == pointer(@arr[0]) Or you can use descriptors (dope vectors), but that involves…
> The books on compilers from the 70s (e.g. Gries's "Compiler construction for digital computers")
Yellow cover, I think? My then GF bought it for Xmas at about 1984 or so. Not the best book on the topic, IMHO.
Re: Translating a Fortran F-16 Simulator to Unity3D
#80I later added the high fidelity flight dynamics model by translating C code.