The title says "JavaScript", but the file extension says ".ts". It doesn't look very Javascript to me. Can anyone clarify?
3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
11–20 of 52 posts
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#12Also nice to see a Douglas Crockford book (who is not a fan of TS BTW) ...
Anyways I star'd this repo ... very impressive +1
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#13The title says "JavaScript", but the file extension says ".ts". It doesn't look very Javascript to me. Can anyone clarify?
What you type is usually considered what it's implemented in, not what it's compiled/transpiled to. The later is the target language, which there may be many.
This differentiation is required if you want to modify/read the code. You would almost certainly modify/read it in the language it was implemented in, and make it clear which language this is when sharing.
Maybe "...implemented in TS, targeting JS" or at least something more obvious like "...implemented in JS using TS".
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#14The title says "JavaScript", but the file extension says ".ts". It doesn't look very Javascript to me. Can anyone clarify?
*not exactly, there’s a couple of features that map differently. But there's a 1:1 TS to JS conversion.
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#15Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#16The title says "JavaScript", but the file extension says ".ts". It doesn't look very Javascript to me. Can anyone clarify?
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#17The title says "JavaScript", but the file extension says ".ts". It doesn't look very Javascript to me. Can anyone clarify?
.ts comes from TypeScript, which is just JavaScript but with compile-time-checked types (and some other goodies) added on top. TS is really popular now, I don't think any sane dev would start a new project today in plain JS instead of TS.
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#18The title says "JavaScript", but the file extension says ".ts". It doesn't look very Javascript to me. Can anyone clarify?
It's TypeScript! It is "a strict syntactical superset of JavaScript, and adds optional static typing to the language." [1], and compiles to standard JavaScript. [1] https://en.wikipedia.org/wiki/TypeScript
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#19Earlier quoted context omitted.
It's TypeScript! It is "a strict syntactical superset of JavaScript, and adds optional static typing to the language." [1], and compiles to standard JavaScript. [1] https://en.wikipedia.org/wiki/TypeScript
A more correct word for converting code from one programming language into another is "transpile".
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#20Earlier quoted context omitted.
A more correct word for converting code from one programming language into another is "transpile".
It's always "from one language to another", sometimes the destination is machine language. The output is generally not meant to be meant to be human-readable in any case. "Transpile" is an ugly and unnecessary word, please don't push it as "more correct".