opengl + script + windows?
category: code [glöplog]
anyone know of a script language on windows that supports opengl? (and please don't say python)
Why not python?
javascript :P (with WebGL)
ruby has ogl bindings. used it 3 years ago or so, worked fine. darned ridiculously slow though. my 1000 cubes ran at 3 fps or so. but maybe i just did something wrong, dunno.
i dislike the structure of python.
i'd actually prefer php or perhaps javascript ...
i'd actually prefer php or perhaps javascript ...
well javascript is obvious indeed, like bloodnok said. it's basically download a firefox nightly and hack away.
php sounds like a lot more strings attached though, imo. e.g. does it have decent java-style garbage collection?
php sounds like a lot more strings attached though, imo. e.g. does it have decent java-style garbage collection?
then again, what are your goals? "scripting language" typically means either dynamic typing, or eliminating the compile step from the workflow. with today's decent IDEs, Java (or Scala if you're hip) has the same effect; the compile step is so fast that it isn't really noticeable. also dynamic code generation and loading is well supported by these languages. C# probably has similar properties, but i don't know.
http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation
and not to mention iq's awesomeness: http://www.iquilezles.org/apps/shadertoy/
and not to mention iq's awesomeness: http://www.iquilezles.org/apps/shadertoy/
Lua.
lua has ogl bindings? thought it only handled software rendering
rasmus: maybe not what you're looking for but: http://www.pawfal.org/fluxus/
Possibly on the side of what you are looking for, but anyway:
http://fscript.net/
http://fscript.net/
oCaml, Haskell, F#...
Quote:
Possibly on the side of what you are looking for, but anyway:
http://fscript.net/
hey, that's damn cool. who made it? the crapsuckyness of c(++) is (part of) what kept me from democoding for a while now. fscript seems to be just what i'm looking for! if i understand it well, it's just V8 + frontend bindings, right?
fscript seems to severly lack AudioStream.getCurrentPosition() though.
Not knowing what you need it for, but could cinder or processing be useful?
http://www.learningprocessing.com/
http://libcinder.org/docs/hello_cinder.html
http://www.learningprocessing.com/
http://libcinder.org/docs/hello_cinder.html
Quote:
crapsuckyness of c(++)
???
come on, c++ hates humans and you know it. compilation takes centuries, the lack of garbage collection creates seventy thousand unnecessary problems, etc etc. it's just significantly more time-consuming to create the same functionality (in many fields) in e.g. ruby or even java than in c++, to my experience. i don't want to know how the compiler packs that struct. i don't want to have to remember to mark that method virtual or get untraceable bugs. i don't want to have to choose between either memory-management crap (pointers) or no polymorphism at all (references). i want it all together, and i want it to work. </rant>
Okay :)
For my work I always use Microsoft C# and I love it. But for coding graphics I love C++, but maybe it's just because I have been doing that for such a long time :) I like pointers, structs, etc.
For my work I always use Microsoft C# and I love it. But for coding graphics I love C++, but maybe it's just because I have been doing that for such a long time :) I like pointers, structs, etc.
fair enough. maybe i also should get over myself and recognise that it's not actually so bad for democoding. especially since the occasional memory leak is no biggie, so doing pointers all the way works fine (and fuckings to you too, boost::shared_ptr). i still hate the compile times though :)
skrebbel, if you want garbage collection with your C++ simply use CLR. otherwise - know your memory management, i.e. use auto_ptr and other structures to keep track of memory for you.
Why do you need a garbage collector? Can't you manage your pointers, boy?
I can't say I have much problems with compilation time. But my experiences are limited to visual studio and I divided my code in a lot of seperate lib files. Dunno about other compilers.
skrebbel: memory leaks make textures look cool!
rasmus, well, even more fuckings to auto_ptr than to shared_ptr. :-)
don't worry, i know all the issues can be solved. but all in all to code decent c++ you need so ridiculously much understanding of every little detail that goes on in the compiler and in run-time memory, i just don't see why that should be necessary. that's why c++ is for computers, not humans. with JITs becoming faster and faster, the amount of application areas where you can't let computers (i.e. smarter compilers plus CLR/Java VMs, etc) work that shit out for you becomes increasingly small. there's just no need for programming languages to be that difficult anymore. so i stubbornly avoid having to deal with it.
xernobyl, i'm perfectly capable of managing my pointers, but i feel it is a gross waste of my time. hellooo, technology improved, it's not 1990 anymore. i'm not hand-washing my clothes either. why would i? there's technology for that now.
i find it amazing that of all areas, technology companies and people seem to be among the slowest in adapting to new technology. except the finance sector maybe (MULTIPLY amount BY 5, anyone?), but ok.
don't worry, i know all the issues can be solved. but all in all to code decent c++ you need so ridiculously much understanding of every little detail that goes on in the compiler and in run-time memory, i just don't see why that should be necessary. that's why c++ is for computers, not humans. with JITs becoming faster and faster, the amount of application areas where you can't let computers (i.e. smarter compilers plus CLR/Java VMs, etc) work that shit out for you becomes increasingly small. there's just no need for programming languages to be that difficult anymore. so i stubbornly avoid having to deal with it.
xernobyl, i'm perfectly capable of managing my pointers, but i feel it is a gross waste of my time. hellooo, technology improved, it's not 1990 anymore. i'm not hand-washing my clothes either. why would i? there's technology for that now.
i find it amazing that of all areas, technology companies and people seem to be among the slowest in adapting to new technology. except the finance sector maybe (MULTIPLY amount BY 5, anyone?), but ok.