What's the best programming language for BOT coding?

I host at home.
PHP has no native multithreading ability.

I'm assuming you mean running multiple CLI instances of php at the same time?

If not, please go into more detail. It's driving me mad.

let me correct you, PHP DOES have multithreading
Can't post link yet, google php multithreading, and look and read
 
Any one here, did custom http implementation using TCPclient or sockets in C#, Iam doing that now for a project , stuck up in session management, any one here with experience, do shed some light.
 
Any one here, did custom http implementation using TCPclient or sockets in C#, Iam doing that now for a project , stuck up in session management, any one here with experience, do shed some light.

one of my partners (who i affectionately refer to as yoda due to his insane coding mojo) created an excellent http class with sockets. i've been fortunate enough to get to use it quite regularly so i have a decent amount of knowledge about it.

it's built in vb.net, but thanks to the always wonderful framework the concepts are the same.

what kind of session management issues are you having?

with an instance based http class your session is almost always tied to a cookie or cookies sent back from the site. an instance member of System.Net.CookieCollection should be what you're looking for, i think?
 
one of my partners (who i affectionately refer to as yoda due to his insane coding mojo) created an excellent http class with sockets. i've been fortunate enough to get to use it quite regularly so i have a decent amount of knowledge about it.

it's built in vb.net, but thanks to the always wonderful framework the concepts are the same.

what kind of session management issues are you having?

with an instance based http class your session is almost always tied to a cookie or cookies sent back from the site. an instance member of System.Net.CookieCollection should be what you're looking for, i think?

Iam confused whether choosing TCPClient was a right decision, or should I go with bare Sockets for my implementation.

@Smack, any suggestions?
 
i've never worked directly with tcpclient, but from what i have seen about it, it should have the capabilities you are looking for.

however the particular implementation that i have is just using the Sockets class.

maybe i misunderstood your initial question. what type of session are you referring to?
 
Does anybody know what programming language ScrapeBox is written in? I want to write a similar bot with added functionality. I prefer programming in PHP but I just haven't found anything that will let me build standalone windows applications with PHP.
 
You actually have several options to design programs in PHP for the desktop on Windows (and other platforms, ie: Linux, Mac OS):

Code:
http://gtk.php.net
http://www.fltk.org
http://www.php-qt.org
http://www.exvision.net/miniphp/
http://www.memecode.com/lgi.php
 
Does anybody know what programming language ScrapeBox is written in? I want to write a similar bot with added functionality. I prefer programming in PHP but I just haven't found anything that will let me build standalone windows applications with PHP.

I guess its written in Delphi, Sweet Funny would be a better person to answer this.
 
i've created my bot using c++, controlling IE browser within app
 
I know all these languages but Basic, and I strongly recommend Python for bots. Python is (1) dynamic, (2) has lots of libraries related to http, (3) programs writen in python are readable and short, (4) supports OOP, functional, declarative, procedural styles, (5) the programs will work on almost every OS you can imagine.
There are a few flaws in it tho. It's the slowest of the lot, it doesn't work with threads well (but as you're going to write bots, your threads will be in IO waiting state most of the time, so you won't see the difference).

That is a very outdated characterization of Python. As of 2.5 it is certainly not the "slowest of the lot" and the per-core threading issues related the GIL were solved by the multiprocessing module (which was backported from its inclusion in the stdlib of 2.6).

As another aside, any bot's speed will naturally be bound by network latency or waiting for further input. I can not think of any bot that would need high CPU-related performance, thus making any language with decent text processing very suitable for bot development.

Short answer to OP's question: go with whatever you know.
 
Back
Top