pouët.net

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?
added on the 2010-07-08 07:47:28 by kusma kusma
javascript :P (with WebGL)
added on the 2010-07-08 07:51:11 by bloodnok bloodnok
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.
added on the 2010-07-08 08:05:27 by skrebbel skrebbel
i dislike the structure of python.

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?
added on the 2010-07-08 08:10:17 by skrebbel skrebbel
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.
added on the 2010-07-08 08:14:46 by skrebbel skrebbel
Lua.
added on the 2010-07-08 08:57:51 by visy visy
lua has ogl bindings? thought it only handled software rendering
added on the 2010-07-08 11:37:03 by psenough psenough
rasmus: maybe not what you're looking for but: http://www.pawfal.org/fluxus/
added on the 2010-07-08 11:38:26 by psenough psenough
Possibly on the side of what you are looking for, but anyway:
http://fscript.net/
added on the 2010-07-08 11:45:03 by lug00ber lug00ber
oCaml, Haskell, F#...
added on the 2010-07-08 12:12:36 by xernobyl xernobyl
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?
added on the 2010-07-08 12:18:03 by skrebbel skrebbel
fscript seems to severly lack AudioStream.getCurrentPosition() though.
added on the 2010-07-08 12:19:30 by skrebbel skrebbel
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
added on the 2010-07-08 12:20:58 by hornet hornet
Quote:
crapsuckyness of c(++)


???
added on the 2010-07-08 12:21:07 by Rob Rob
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>
added on the 2010-07-08 12:25:22 by skrebbel skrebbel
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.
added on the 2010-07-08 12:28:48 by Rob Rob
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 :)
added on the 2010-07-08 12:31:35 by skrebbel skrebbel
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?
added on the 2010-07-08 12:38:20 by xernobyl xernobyl
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.
added on the 2010-07-08 12:46:28 by Rob Rob
skrebbel: memory leaks make textures look cool!
added on the 2010-07-08 12:48:51 by psenough psenough
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.
added on the 2010-07-08 12:49:35 by skrebbel skrebbel

login