Author Topic: General Programming Megathread - New OP  (Read 29885 times)

I've just found a cache feature embedded in ProgramR. It allows for dumping of the entire AIML learned set which should save considerable time in loading new instances of the bot.


If I could get a good modeler, I could make a TTT Game. But uh, I need a modeler.
and a mapper.

in any news Im looking for a project to code for
so if anyone has any Blockland or Python projects, contact me

Anyone ever heard of robocode?

Look it up, it's awesome

KIND OF crosspost, but

I've acquired a Torquescript package for Sublime Text 2. It's great. I've dropboxed it here.
To install it, open %appdata%\Sublime Text 2\Installed Packages\ and put it in there. Then you'll have to open up a .cs file and force it to always open .cs with the syntax (due to .cs actually being C#. forgetin' Torque) - View->Syntax->Open all with current extension as... (right at the top) and select Torquescript.

Credit where it is due: It's from a TextMate bundle by Mystery Coconut. Sublime Text 2 can load TextMate language files, so I just packaged it on its own since most of the rest of the files weren't needed - there is function and datablock snippets in the bundle, though, if that's your thing. I also cut out a heap of stuff not needed for Blockland, like mission/interior/terrain/shapereplicator/foliagereplicator autocompletes, since those don't exist anymore.




As for smalltalk, jesus christ Torque is slow. Let's do some quick comparisons:
This thing I happen to have open implements some basic bin partitioning to cut down on collision checks. As you can see, it's running almost 5,000 collision checks once completed - per update, meaning probably at least 60 times a second.
By contrast, some code in Torque running about 768 similar checks takes just over a full second to execute. That's just shy of 400x as long, or nearabouts.
So now I need to write another forgetload of code to optimize positional insertion to inventories. I need to get the first position a given object can fit onto the grid. In terms of algorithms I can only optimize the collision test (using bins or a quadtree, but the space is too small to effectively do that), but I need to rewrite the entire method for finding that position to test in the first place because it is where the real issue is and it's taken me in excess of four hours to come up with anything relevant. BUTTFRUSTRATED
If I can get this under 100 loop iterations involved I'll be happy, because that should execute in a fairly timely manner. I'm only doing at most 60 collision checks, which isn't a huge amount of overhead, but the nearly thousand iterations of looping that involves when brute-force checking for space is a huge problem.

I've acquired a Torquescript package for Sublime Text 2. It's great. I've dropboxed it here.
SEE PORT

PEOPLE CANT FIND IT

SEE PORT

PEOPLE CANT FIND IT

I've acquired a Torquescript package for ..

Seems like they can.

Ugh. Can someone link me to a graphics engine, SDK, or library for Visual Basic that doesn't require a long web search or complicated install or something?
(And by complicated install I mean ANY install. Has to be a zip or something cuz I can't install things on this computer.)
« Last Edit: November 18, 2012, 07:31:55 AM by ThinkInvisible »

I know Python and MATLAB, and I'm thinking about taking a course on C++ next semester. Any opinions on C++ compared to Python? What are the major differences? Is it hard to learn?

Trying to make an automatic electron configuration builder.
It's giving me hell. :C

Okay, here's the code, what the hell is going on with this thing? ('count' is passed to the function as the number of electrons, shorthand is always True)

I'm an idiot. Fixed.

I forgot to increment a variable.
« Last Edit: November 18, 2012, 08:56:41 AM by ThinkInvisible »

I just got Sublime Text 2

I got to say it's lovey

I just got Sublime Text 2

I got to say it's lovey

How could you not already be using it in the first place?

This is starting to look REAL damn awesome.


That looks really cool.