Recent

Author Topic: Brook 1.0 - A new framework for web was born  (Read 132731 times)

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #165 on: January 09, 2014, 02:55:20 pm »
So, I avoid using packages like XAMMP / WAMP, they handle the in Apache settings. I stumbled upon a XAMMP that not returning the PATH_INFO variable.

Try to use a standard copy of Apache (e.g.: http://archive.apache.org/dist/httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi), or follow the Leledumbo's hint, to use your own server.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #166 on: January 27, 2014, 08:19:45 pm »
Book's site now has a new look and new domain: http://silvioprog.github.io/brookframework. And due to some spam attacks, the demos are now running under HTTPS. ;D

bee

  • Sr. Member
  • ****
  • Posts: 360
Re: Brook 1.0 - A new framework for web was born
« Reply #167 on: January 28, 2014, 04:53:19 am »
Book's site now has a new look and new domain: http://silvioprog.github.io/brookframework. And due to some spam attacks, the demos are now running under HTTPS. ;D

Silvio, do you have any plan to implement Pascal scripting like DelphiWebScript (DWS) into Brook?
-Bee-

A long time pascal lover.

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #168 on: January 29, 2014, 01:14:39 am »
I and Gilson Nunes (https://github.com/gilsonnr) tried some drafts with Pascal Script, worked fine, but a memory leak (https://github.com/remobjects/pascalscript/issues/61) in Pascal Script stopped our work.

I tried DWS too, but:

https://code.google.com/p/dwscript/issues/detail?id=428

So, I'll dedicate some time to try InstantFPC, although it requiring Free Pascal installed on the server, it would not be a problem, because the most important in moment is make a code that works.

Python requires 38MB of executables distributed together the programmer application. Ruby, PHP etc. requires your libs too, so with the Free Pascal would be no different. :)

Sorry for my englysh plz.

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: Brook 1.0 - A new framework for web was born
« Reply #169 on: January 29, 2014, 02:02:12 am »
have you tried any of the following? http://sourceforge.net/projects/blaise/?source=directory
http://sourceforge.net/projects/scriptengine2/

I have recently found out about them too so I don't have any idea what so ever how suitable they might be and it seems that they do not implement pascal but something more liberal.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

bee

  • Sr. Member
  • ****
  • Posts: 360
Re: Brook 1.0 - A new framework for web was born
« Reply #170 on: January 29, 2014, 07:39:34 am »
@silvio:

So, FPC doesn't yet support full unicode in the RTL? I can't blame the DWS guy if that's the case. Then how do you support unicode in Brook? Pascal Script does work with FPC, albeit the memory leak, but the features are far behind DWS. The ability to create class from script, for example.

Then, do you dare to create your own powerful crossplatform pascal scripting engine? :)
-Bee-

A long time pascal lover.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8111
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Brook 1.0 - A new framework for web was born
« Reply #171 on: January 29, 2014, 04:10:46 pm »
@taazz:
I've looked a glance at ScriptEngine II a couple of times ago. It's good. Very good for a Pascal scripting solution, I think it supports all newer Delphi (XE and up) constructs. The only downsides are the IDE is Delphi only (porting to Lazarus will require a bit amount of work due to JEDI VCL dependencies) and the documentation is in German only. The platform seems to be limited to x86 though, but someone with German reading ability should be able to confirm that.

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: Brook 1.0 - A new framework for web was born
« Reply #172 on: January 30, 2014, 12:03:36 am »
@taazz:
I've looked a glance at ScriptEngine II a couple of times ago. It's good. Very good for a Pascal scripting solution, I think it supports all newer Delphi (XE and up) constructs.

That sounds interesting, it just moved on the top of scripting list.

The only downsides are the IDE is Delphi only (porting to Lazarus will require a bit amount of work due to JEDI VCL dependencies)

Well I'm guessing the IDE you are talking about has nothing to do with the engine it self as long as I don't use the IDE in my applications (or if I right a new one) I can still use the engine right?

and the documentation is in German only.

That's bad and indifferent news at the same time it is bad because a scripting language needs documentation to be used in its full and indifferent because who RTFM's in the programming world?

The platform seems to be limited to x86 though, but someone with German reading ability should be able to confirm that.

You mean that the enginee can only be in a x86 executable and it will not work if I compile it for arm or x64 or that it only produces x86 intermediate code that can be executed from any target CPU?
If the first it just moved way way down on my scripting list (last position actually and probably will fall off eventually) I'm not going to use something that needs special attention to compile on different CPUs from the start, I don't have the time or the will to work on yet an other component set my self.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Leledumbo

  • Hero Member
  • *****
  • Posts: 8111
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Brook 1.0 - A new framework for web was born
« Reply #173 on: January 30, 2014, 04:58:34 pm »
Quote
Well I'm guessing the IDE you are talking about has nothing to do with the engine it self as long as I don't use the IDE in my applications (or if I right a new one) I can still use the engine right?
No, the engine itself is fully compatible with FPC. It's just the IDE is a very good tool to test the scripts as well. Both compilation and interpretation works FAST, though I haven't tested with big programs yet. After all, if it's a scripting engine, it shouldn't execute big code.
Quote
You mean that the enginee can only be in a x86 executable and it will not work if I compile it for arm or x64 or that it only produces x86 intermediate code that can be executed from any target CPU?
If the first it just moved way way down on my scripting list (last position actually and probably will fall off eventually) I'm not going to use something that needs special attention to compile on different CPUs from the start, I don't have the time or the will to work on yet an other component set my self.
I don't know, I see something x86 in the documentation and it looks like so. As I said, someone with German reading ability should confirm that. And that someone is not me :P

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #174 on: February 01, 2014, 05:44:44 am »
@guys, sorry for delay, Lazarus forum doesn't notify me of new replies in this topic. :(

@taazz, hm... I don't know this projects, seems good, but, they are compatible with Free Pascal and Linux?

Thx

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #175 on: February 01, 2014, 05:50:45 am »
@bee, Brook uses the same unicode of FPC. But if we analyze well, unicode isn't a problem in Brook, because all the texts trafficked from the side (client->server) to the other side (server->client) are converted and deconverted to URI, automatically. :)

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #176 on: February 01, 2014, 06:42:55 am »
taazz, I converted and tested the demo "SEII (v. 0.6.1.0)\samples\Simple Test" to Lazarus and it worked like a cham on Windows (XP and 8, and my environment is "Lazarus 1.0.14 r43446 FPC 2.6.2 i386-win32-win32/win64")! :)

I'll test it in Linux soon... (I'm returning from my vacation :D)

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #177 on: February 01, 2014, 07:02:33 am »
Sorry, I forgot the picture: http://imagebin.org/290230

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: Brook 1.0 - A new framework for web was born
« Reply #178 on: February 01, 2014, 07:04:22 am »
I'm glad that at least there is a new toy that we can play with, if it works for 64bit applications as well as 32bit then I'm going to rewrite the IDE leledumbo talks about in lazarus as a thank you to you guys. In any case I really hope that it will not require to much trouble to make work for every CPU target supported by fpc at least x86, x64 and arm should be great.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Silvio Clécio

  • Guest
Re: Brook 1.0 - A new framework for web was born
« Reply #179 on: February 01, 2014, 07:11:32 am »
I'm hope that it work fine in Linux too. Even that doesn't work, I'll check what I can be made to it work.