pyzaist
pyzaist
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
ah got it, that adds more clarity for me! import attributes are new to me so i will look into them more. very much appreciate the responses and thoughtfulness you all take. thanks again!
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
from a user perspective, i will still say that it is unfortunate that i would have to write with { type: "string" } after every GLSL (or CSS, or HTML, or whatever plaintext file i would use) import i do, instead of specify in one place that GLSL files should always be imported in this way. for my use case this is totally fine, but just providing signal to you all for how i would anticipate larger projects would prefer to engage with this topic
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
yeah yeah, exactly. okay that makes a ton of sense.
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
until the new import method is available as you mentioned above, im leaning towards having a pre-build step that takes these two files im working in and generating a ts file that outputs the contents as a string. i think thatll do fine for a quick solution. and this is a small hobby project, so it doesnt need to be completely ideal
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
hmmmmm okay i was going to ask why the plan is not to replicate how typescript does this as i discussed above, but i think im starting to get it. in the non-deno case, there is a loader/bundler that takes all my TS and plaintext imports and handles the actual turning it into runnable JS code. however in the deno case, TS is the native language, so it needs to be able to run the code without all this. so it cant simply say "this file will be a string" to satisfy the type system, it needs to know what particular string it will be. is that getting at the right explanation?
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Awesome, thanks!
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Is there somewhere I could follow along on that progress?
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Oh that’s awesome! That would work great
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
issue from a long time ago that discusses this: https://github.com/Microsoft/TypeScript/issues/2709
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
but from what i am reading, this comment does not seem to be true. the import setup i did was for the typescript compiler. it is a part of typescript itself.
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
hmm okay so im checking this out today. it appears that 1) webGPU is not widely supported yet (https://caniuse.com/webgpu) but likely will be soon and 2) even if it was, i would have the same problem with WGSL as i do with GLSL - so it doesnt really benefit me to use it
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Got it. I will play around with some things then and probably post back here with what I come up with, for posterity
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Hey nice! So I don’t have much experience with WebGPU but my understanding is that it gives more control at the cost of more complexity. So would def prefer WegGL
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Also Deno.readFile won’t work because this is for the front end. So I want the file contents in the bundle
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Yeah I currently have a .ts file with a single import of a string, but there’s a few sad things about this: 1) it treats glsl code as second class rather than first class, and more tangibly 2) it doesn’t allow syntax highlighting in vs code
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
Oof, that is sad
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
hmmmm also when i do "deno check" i get this: error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
30 replies
DDeno
Created by pyzaist on 12/22/2023 in #help
Deno, TypeScript, ESBuild, WebGL, VSCode
30 replies
DDeno
Created by pyzaist on 9/9/2023 in #help
WebSocket connections killing setInterval()
oh awesome! glad to get confirmation. thanks for all the work you guys do, ive loved using Deno so far
5 replies
DDeno
Created by pyzaist on 9/9/2023 in #help
WebSocket connections killing setInterval()
I've updated and someone else on the issue already created a minimal repro script
5 replies