demoscene

What languages or methods allow graphics & music demos to fit in 64kb EXEs?

橙三吉。 提交于 2019-12-22 05:24:20
问题 How is it possible that in a 64kb compiled exe, these programs can generate such crazy visuals, complete with matching music? An example: Ars Nova By Phantom Lord (YouTube video of the demo running) This program's only 64kb in size! How did they do that? Are they using some sorts of pre-existing objects, shaders, etc. inside DirectX or something like that? What languages do they even use? Is there some sort of guide to this stuff? EDIT: Another mind-blowing demo. How? http://www.scene.org

How to traverse cyclic directed graphs with modified DFS algorithm

淺唱寂寞╮ 提交于 2019-12-09 14:22:05
问题 OVERVIEW I'm trying to figure out how to traverse directed cyclic graphs using some sort of DFS iterative algorithm. Here's a little mcve version of what I currently got implemented (it doesn't deal with cycles): class Node(object): def __init__(self, name): self.name = name def start(self): print '{}_start'.format(self) def middle(self): print '{}_middle'.format(self) def end(self): print '{}_end'.format(self) def __str__(self): return "{0}".format(self.name) class NodeRepeat(Node): def _

What languages or methods allow graphics & music demos to fit in 64kb EXEs?

我怕爱的太早我们不能终老 提交于 2019-12-05 07:23:40
How is it possible that in a 64kb compiled exe, these programs can generate such crazy visuals, complete with matching music? An example: Ars Nova By Phantom Lord ( YouTube video of the demo running ) This program's only 64kb in size! How did they do that? Are they using some sorts of pre-existing objects, shaders, etc. inside DirectX or something like that? What languages do they even use? Is there some sort of guide to this stuff? EDIT: Another mind-blowing demo. How? http://www.scene.org/file.php?file=/demos/groups/farb-rausch/fr08_final.zip&fileinfo EDIT: More demoscene stuff. I found some

How to traverse cyclic directed graphs with modified DFS algorithm

亡梦爱人 提交于 2019-12-03 23:44:38
OVERVIEW I'm trying to figure out how to traverse directed cyclic graphs using some sort of DFS iterative algorithm. Here's a little mcve version of what I currently got implemented (it doesn't deal with cycles): class Node(object): def __init__(self, name): self.name = name def start(self): print '{}_start'.format(self) def middle(self): print '{}_middle'.format(self) def end(self): print '{}_end'.format(self) def __str__(self): return "{0}".format(self.name) class NodeRepeat(Node): def __init__(self, name, num_repeats=1): super(NodeRepeat, self).__init__(name) self.num_repeats = num_repeats

How to use VC++ intrinsic functions w/o run-time library

谁说胖子不能爱 提交于 2019-11-30 06:22:04
问题 I'm involved in one of those challenges where you try to produce the smallest possible binary, so I'm building my program without the C or C++ run-time libraries (RTL). I don't link to the DLL version or the static version. I don't even #include the header files. I have this working fine. Some RTL functions, like memset() , can be useful, so I tried adding my own implementation. It works fine in Debug builds (even for those places where the compiler generates an implicit call to memset() ).

How to use VC++ intrinsic functions w/o run-time library

安稳与你 提交于 2019-11-28 17:29:20
I'm involved in one of those challenges where you try to produce the smallest possible binary, so I'm building my program without the C or C++ run-time libraries (RTL). I don't link to the DLL version or the static version. I don't even #include the header files. I have this working fine. Some RTL functions, like memset() , can be useful, so I tried adding my own implementation. It works fine in Debug builds (even for those places where the compiler generates an implicit call to memset() ). But in Release builds, I get an error saying that I cannot define an intrinsic function. You see, in