Earlier quoted context omitted.
> "Transpilation" and "compilation" describe the exact same concept. No I think transpile implies compiling from one level of abstraction to another similar level of abstraction, which is quite different in theory and practice to compiling to a much lower level of abstraction. It's a useful word to have in your communication toolbox.
I agree with your overall definition. In fact, the dictionary definition of compile does also suggest that you are transforming to a 'lower level' so, in strictness, there is a need for a word to fill the void that you suggest transpile provides. But I do wonder about the actual usefulness of the distinction. If someone says that they compile Typescript to Javascript, I'm not sure that anyone is going to be confused…
3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
31–40 of 52 posts
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#32Earlier quoted context omitted.
I agree with your overall definition. In fact, the dictionary definition of compile does also suggest that you are transforming to a 'lower level' so, in strictness, there is a need for a word to fill the void that you suggest transpile provides. But I do wonder about the actual usefulness of the distinction. If someone says that they compile Typescript to Javascript, I'm not sure that anyone is going to be confused…
'This is a transpiler' gives me a massive amount of additional context compared to 'this is a compiler' - likely structure, implementation techniques, output. Not all transpilers will fit this usual structure, but if they do you can tell me by changing this one little word. Powerful communication tool, I think.
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#33As someone with very little knowledge of computer graphics, are there any resources anyone would recommend in order to learn how to build something like this?
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#34Earlier quoted context omitted.
I agree. Does anyone know how they achieve the alignment of all the ‘=‘ signs? Perhaps a VSCode extension?
SublimeText has the AlignTabs extension which can do this.
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#35This is awesome, very well done. As someone with very little knowledge of computer graphics, are there any resources anyone would recommend in order to learn how to build something like this?
Note that when you're building test cases, matrix multiplication is not commutative.
My high school teacher literally just pointed me at the Wikipedia article and said go:
https://en.wikipedia.org/wiki/Matrix_multiplication
The next step up from that is to then render meshes using some form of projection (isometric or perspective). You'll need to figure out how to actually map the drawing to the screen at that point. (In high school we just used the built-in 2D methods in Java. Some of my classmates then went on to shading and textures, but I didn't quite get that far.)
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#36Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#37Someone please post something cool made with this
(See: Recursion)
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#38This is awesome, very well done. As someone with very little knowledge of computer graphics, are there any resources anyone would recommend in order to learn how to build something like this?
A smaller subproblem to get you started is to build a matrix multiplication library (with matrices, vectors, and the ability to multiply them). Note that when you're building test cases, matrix multiplication is not commutative. My high school teacher literally just pointed me at the Wikipedia article and said go: https://en.wikipedia.org/wiki/Matrix_multiplication The next step up from that is to then render meshes…
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#39This is awesome, very well done. As someone with very little knowledge of computer graphics, are there any resources anyone would recommend in order to learn how to build something like this?
A smaller subproblem to get you started is to build a matrix multiplication library (with matrices, vectors, and the ability to multiply them). Note that when you're building test cases, matrix multiplication is not commutative. My high school teacher literally just pointed me at the Wikipedia article and said go: https://en.wikipedia.org/wiki/Matrix_multiplication The next step up from that is to then render meshes…
https://en.wikipedia.org/wiki/Ray_casting
Of course it has more to do with raytracing than with 3D projections (which is most often used for real time 3D rendering). If you want to learn about 3D projections, first you should understand what linear algebra has to do with projecting a 3D model on a 2D screen. This is probably a good start.
https://en.wikipedia.org/wiki/3D_projection
And then, learning about matrix multiplications makes sense.
Re: 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal
#40Earlier quoted context omitted.
"Transpilation" and "compilation" describe the exact same concept. From user's perspective, readable code is translated into runnable code. From theoretical perspective, code in a more complex language is translated into a less complex language while preserving semantics. From a compiler writer's perspective, it's a totem pole of compilers, with at least one middle-level language usually. Plenty of people use the ter…
> "Transpilation" and "compilation" describe the exact same concept. No I think transpile implies compiling from one level of abstraction to another similar level of abstraction, which is quite different in theory and practice to compiling to a much lower level of abstraction. It's a useful word to have in your communication toolbox.