Home > Delphi, JavaScript, nodeJS, Object Pascal, OP4JS, Smart Mobile Studio > Amazon + DWScript + Smart mobile = true

Amazon + DWScript + Smart mobile = true

I havent really had time to do much lately. We have two girls who each had their big birthday, and me with a back injury — well, let’s just cap it off to “slow work, but we got there”. Thankfully we had a couple of friends who helped out to get everything in order. But man, these two weeks of finals, school’s out and soccer finals on top of that has been a test.

Anyways, I decided it was time to get some work done – so I signed up for a normal Amazon EC2 Windows 2012 server account. Spent some time fiddling with how to make the server publicly available — but finally found out that you had to add the services to the security group (e.g “http” and so on). Which makes sense since we are talking virtual instances here. I’m used to doing this inside Windows on real hardware, but here Amazon’s flexible IP’s are managed and assigned from the outside.

DWScript up and running

I did the mistake of installing IIS first, figured that was the easiest way to get port 80 allocated — but it was not. So when that mistake was done I just downloaded the DWScript binaries, installed using the setup.exe as per usual — did some allowance in the firewall, and voila! DWScript is now running on it’s default 888 port 🙂

Works like a charm, and really easy once you get passed the VPC stuff

Works like a charm, and really easy once you get passed the VPC stuff

But now the fun begins, because now I’ll install nodeJS and use Smart Mobile Studio from scratch to write my service layer’s. It’s going to be very interesting to see the performance of nodeJS vs. DWScript. I honestly feel DWScript will kick some serious node ass to be honest, and the fact that DWScript has a DB engine or two built-in saves a lot of time.

First up is to extent HexLicense with cloud management, which I have been tinkering for a while now, so that I can simply clone out VM’s to my customers who wants to deal with serial management via Amazon.

Well, that’s really all I have on my chest right now. Im knacker’d after all that rig work and I am going to have a glass of wine and just listen to music (read: re-charge those internal batteries).

Tomorrow, puja for a friend of mine who is in the hospital and mantrayana for 2 hours at least — Om Nama Shivaya!

  1. June 17, 2015 at 6:22 am

    IMHO you should not have to install IIS if you want to use the DWS server.
    IIS would consume resources, whereas DWS won’t use it, but just talk to the http.sys kernel-mode server, shared by IIS. DWS could be used to server static content also, with the same speed as IIS, without the overhead of this component.

    • Jon Lennart Aasenden
      June 17, 2015 at 12:13 pm

      Exactly. I un-installed IIS and all the bloat and now it’s a lean, mean DWScript machine 🙂

  2. July 12, 2015 at 1:00 am

    Jon, can you shed some light on how can I implement this in pure smart pascal?

    var TAN = {};
    TAN.instances = {
    symbols : {
    “dados” : []
    controllers : []
    TAN.Symbol = function () {
    //return TAN.instances.symbols.dados.push(this);
    TAN.Controller = function () {
    //return TAN.instances.controllers.push(this);

    • Jon Lennart Aasenden
      August 2, 2015 at 1:04 pm

      On top of my head, this should be close:

      TTan = Class(JObject)
      Instances: Record
      Symbols: Record
      Dados: Array of variant;

      Symbol: TProcedureRef;
      Controller: TProcedureRef;

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: