News for hackers. Stuff that matters.
Re:Scripting-language inspired by JavaScript and GLSL by ianertson on Thursday December 29, 2022 @05:16PM (#34178790)
I'm working on a scripting-language heavily inspired by Javascript and GLSL. The idea is to use this for a game engine I'm working on.
Re:Scripting-language inspired by JavaScript and GLSL by skywal_l on Friday December 30, 2022 @04:55PM (#34190571)
Had a cursory look so sorry if I missed something but does this run on the GPU? If not what's the point?
Re:Scripting-language inspired by JavaScript and GLSL by ianertson on Friday December 30, 2022 @08:32PM (#34192403)
Well, I'm going to use it for one of my personal projects. I wanted a scripting language for a game engine that I'm working on, and wanted something that felt like GLSL
Re:Scripting-language inspired by JavaScript and GLSL by pipeline_peak on Friday December 30, 2022 @05:35PM (#34190921)
There’s nothing about this that screams “this language needs to be created”. Call me a pessimist, but I’ve seen So many toy languages on HN.

My advice is, if you don’t have any original ideas and want users, your best bet is to implement a subset of JS, that’s the route I’m taking.

Jonathan Blow has a great talk on the redundancy of scripting languages in game engines.

https://youtu.be/y2Wmz15aXk0

Re:Scripting-language inspired by JavaScript and GLSL by ianertson on Friday December 30, 2022 @08:33PM (#34192410)
It's definitely not a language that needs to be created. I was just in the need for a scripting language in my game engine, and I wanted something that felt like GLSL.
Re:Scripting-language inspired by JavaScript and GLSL by trevoristall on Friday December 30, 2022 @11:21PM (#34193529)
Cool project, writing a lexer/parser/tokenizer for a simple language was an enjoyable and gratifying experience when I dabbled in the past. It's fun to learn about how those things work in such a hands-on way.
Re:Scripting-language inspired by JavaScript and GLSL by ianertson on Saturday December 31, 2022 @10:08AM (#34197065)
Thank you!! Indeed, it's really fun actually